OPERATION_ICON, STANDARD_OPERATIONS_RANK| Constructor and Description |
|---|
AbstractSingleFlavorOperation() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List |
getApplicableDataAndPositions(CmtModel model,
java.util.List positions,
oracle.javatools.datatransfer.ExtendedTransferable transferable)
Gets the possible
TransferDataInfos upon which this action could
be applied near the given position, and also returns the actual position
at which the operation could be performed. |
protected abstract java.util.List |
getApplicableDataAndPositionsImpl(CmtModel model,
java.util.List positions,
java.util.List dataInfos)
Returns the list of
DataAndPositions instances, like
getApplicableDataAndPositions(oracle.jdeveloper.cmt.CmtModel, java.util.List, oracle.javatools.datatransfer.ExtendedTransferable). |
protected abstract java.awt.datatransfer.DataFlavor |
getRequiredDataFlavor()
Gets the data flavor this operation requires.
|
apply, createAsAction, doesActionMutateModel, getDisplayName, getPositionDisplayName, getSuitabilityRank, getSupportedActionspublic final java.util.List getApplicableDataAndPositions(CmtModel model, java.util.List positions, oracle.javatools.datatransfer.ExtendedTransferable transferable)
OperationTransferDataInfos upon which this action could
be applied near the given position, and also returns the actual position
at which the operation could be performed.getApplicableDataAndPositions in class Operationmodel - Model on which the operation may be appliedpositions - List of CmtModelNodes to consider. The order of
this list should be preserved in any return
DataAndPosition.transferable - Data being transferedDataAndPositions to be applied "near" the given
position list, ordered by suitability (first return is most
preferable datum). Each DataAndPosition's position list should
be in a similar order to the positions parameter.protected abstract java.util.List getApplicableDataAndPositionsImpl(CmtModel model, java.util.List positions, java.util.List dataInfos)
DataAndPositions instances, like
getApplicableDataAndPositions(oracle.jdeveloper.cmt.CmtModel, java.util.List, oracle.javatools.datatransfer.ExtendedTransferable).model - Abstract modelpositions - List of positions to considerdataInfos - List of data infos to consider, all of which will be of
the getRequiredDataFlavor() flavor.getApplicableDataAndPositions(oracle.jdeveloper.cmt.CmtModel, java.util.List, oracle.javatools.datatransfer.ExtendedTransferable)protected abstract java.awt.datatransfer.DataFlavor getRequiredDataFlavor()