Interface IVSLinkEnabler

    • 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.