Package com.iizigo.vs.link
Interface IVSLinkEnabler
- All Known Subinterfaces:
IEUIPanel,IVSParticipantLinkEnabler
- All Known Implementing Classes:
EditorInputProps,EditorOutputProps,EditorRESTfulInputProps,EditorResultProps,EditorResultSetProps,EditorScreenProp,EMUISimpleDialog,EUIDialog,EUIPanel,EUIPanelPart
public interface IVSLinkEnablerInterface providing support for VirtualSpace or VS component linking upon drag-drop-link or paste-link.- Author:
- Christopher Mindus
Field Summary
Fields Modifier and Type Field Description static VSLinkInfo<?>[]EMPTY_VSLINK_INFOEmpty links array.static java.lang.StringOPERATION_CANCELEDOperation canceled reply when dialog is canceled.
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.StringattempVSLink(boolean doPerform, GProp<?>[] props, java.lang.String description, IPropUndoRedo undoRedo)Processes VS-linking from properties.static voidconfigureSkipDialog(IPropUndoRedo undoRedo)Configures the undoRedo operation to skip showing this dialog.VSLinkInfo<?>[]getVSLinkInfo()Returns the possible array of VS links possible, their types, the reference type, and so on.static voidperformLink(org.eclipse.swt.widgets.Shell shell, PropCnr target, java.util.ArrayList<VSLinkInfo<?>> infoList, java.util.ArrayList<VSSubLinkInfo> subInfoList, java.util.ArrayList<java.util.ArrayList<IVSComponent>> componentsList, ComplexOperation op)Called to perform the operations.
Field Detail
EMPTY_VSLINK_INFO
static final VSLinkInfo<?>[] EMPTY_VSLINK_INFO
Empty links array.
OPERATION_CANCELED
static final java.lang.String OPERATION_CANCELED
Operation canceled reply when dialog is canceled.- See Also:
- Constant Field Values
Method Detail
getVSLinkInfo
VSLinkInfo<?>[] getVSLinkInfo()
Returns the possible array of VS links possible, their types, the reference type, and so on.- Returns:
- The array of VSLink's possible for the property container.
configureSkipDialog
static void configureSkipDialog(IPropUndoRedo undoRedo)
Configures the undoRedo operation to skip showing this dialog.- Parameters:
undoRedo- Undo/redo operation.
attempVSLink
default java.lang.String attempVSLink(boolean doPerform, GProp<?>[] props, java.lang.String description, IPropUndoRedo undoRedo)Processes VS-linking from properties.- Parameters:
doPerform- The perform flag when true, false = testing.props- The properties to link with target.description- The operation description for undo/redo.undoRedo- Undo/redo operation.- Returns:
- null for linking OK, otherwise the error message why it failed.
performLink
static void performLink(org.eclipse.swt.widgets.Shell shell, PropCnr target, java.util.ArrayList<VSLinkInfo<?>> infoList, java.util.ArrayList<VSSubLinkInfo> subInfoList, java.util.ArrayList<java.util.ArrayList<IVSComponent>> componentsList, ComplexOperation op)Called to perform the operations.