Class EditorSelector

    • Constructor Detail

      • EditorSelector

        public EditorSelector()
        Creates the screen identification property container without a name. The name must be set in all cases using the setPropertyAtom call.
      • EditorSelector

        public EditorSelector​(Atom propertyAtom)
        Creates the screen identification property container with the specified name. All system-reserved names for components begins with "$".
        Parameters:
        propertyAtom - the name of the component, unique within it's parent.
    • Method Detail

      • getUndoContext

        public org.eclipse.core.commands.operations.IUndoContext getUndoContext()
        Gets the undo context.
        Specified by:
        getUndoContext in interface IPropUndoContext
        Returns:
        The undo context for the Editor part(s) for this container.
      • createSelectorExpression

        protected EditorSelectorExpression createSelectorExpression​(java.lang.String expression)
        Creates the SelectorExpression, overridden by the Designer version of the class.
        Overrides:
        createSelectorExpression in class Selector
        Parameters:
        expression - The reference.
      • createClassReference

        protected EditorClassReference createClassReference​(Atom atom,
                                                            java.lang.String ref)
        Creates a ClassReference, overridden by the Designer version of the class.
        Overrides:
        createClassReference in class Selector
        Parameters:
        atom - The atom name.
        ref - The reference.
      • createSelectorReference

        protected EditorSelectorReference createSelectorReference​(Atom atom,
                                                                  java.lang.String ref)
        Creates a SelectorReference, overridden by the Designer version of the class.
        Overrides:
        createSelectorReference in class Selector
        Parameters:
        atom - The atom name.
        ref - The reference.
      • getExtendsPossibleClasses

        public java.lang.Class<?>[] getExtendsPossibleClasses()
        Gets the possible classes this container supports for the Extends Framework. The default implementation is to return null.
        Specified by:
        getExtendsPossibleClasses in interface IPropCnr
        Overrides:
        getExtendsPossibleClasses in class PropCnr
        Returns:
        List of supported classes, or null for none.
      • getSelectPropViewerFilter

        public org.eclipse.jface.viewers.ViewerFilter getSelectPropViewerFilter()
        Gets the viewer filter for the tree in the dialog for selecting extends property name.
        Specified by:
        getSelectPropViewerFilter in interface IExtendsSelection
      • onClassRefactored

        public void onClassRefactored​(ClassReference classReference,
                                      java.lang.String oldName,
                                      java.lang.String newName)
        Called for class rename refactoring.
        Specified by:
        onClassRefactored in interface IClassReferenceOwnerUpdates
        Parameters:
        classReference - The class reference that changes.
        oldName - The old name.
        newName - The new name.
      • verify

        public boolean verify​(PropVerification verification)
        Verifies this property container. The check performed is the extension of classes and that no circular reference is present.
        Specified by:
        verify in interface IGProp<GProp<?>[]>
        Overrides:
        verify in class Selector
        Parameters:
        verification - The property verification class.
        Returns:
        true if verification should proceed, false if disposed of and verification should not take place.
      • createDefaultSelectors

        public static java.util.List<EditorSelector> createDefaultSelectors​(boolean doPerform,
                                                                            ModuleModel model)
                                                                     throws org.eclipse.core.runtime.CoreException
        Creates the default selectors for Phone, Tablet and Desktop.
        Parameters:
        doPerform - Flag to perform the operation or just to test it.
        model - The module model.
        Returns:
        The list of selectors to create or was created.
        Throws:
        org.eclipse.core.runtime.CoreException - For file errors.
      • createDefaultSelectorsForPhone

        public static java.util.List<EditorSelector> createDefaultSelectorsForPhone​(boolean doPerform,
                                                                                    ModuleModel model)
                                                                             throws org.eclipse.core.runtime.CoreException
        Creates the default selectors for Phone.
        Parameters:
        doPerform - Flag to perform the operation or just to test it.
        model - The module model.
        Returns:
        The list of selectors to create or was created.
        Throws:
        org.eclipse.core.runtime.CoreException - For file errors.
      • createDefaultSelectorsForTablet

        public static java.util.List<EditorSelector> createDefaultSelectorsForTablet​(boolean doPerform,
                                                                                     ModuleModel model)
                                                                              throws org.eclipse.core.runtime.CoreException
        Creates the default selectors for Tablet.
        Parameters:
        doPerform - Flag to perform the operation or just to test it.
        model - The module model.
        Returns:
        The list of selectors to create or was created.
        Throws:
        org.eclipse.core.runtime.CoreException - For file errors.
      • createDefaultSelectorsForDesktop

        public static java.util.List<EditorSelector> createDefaultSelectorsForDesktop​(boolean doPerform,
                                                                                      ModuleModel model)
                                                                               throws org.eclipse.core.runtime.CoreException
        Creates the default selectors for Desktop.
        Parameters:
        doPerform - Flag to perform the operation or just to test it.
        model - The module model.
        Returns:
        The list of selectors to create or was created.
        Throws:
        org.eclipse.core.runtime.CoreException - For file errors.