Class EditorVSAction

    • Constructor Detail

      • EditorVSAction

        public EditorVSAction()
        Creates the VirtualSpace Action property container without a name. The name must be set in all cases using the setPropertyAtom call.
      • EditorVSAction

        public EditorVSAction​(Atom propertyAtom)
        Creates the VirtualSpace Action 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

      • onEventSelf

        public void onEventSelf​(GEvent event)
        Checks for state change events and fires it to listeners.
        Specified by:
        onEventSelf in interface IGProp<GProp<?>[]>
        Overrides:
        onEventSelf in class VSComponent
        Parameters:
        event - The property event.
      • onListenerChanged

        protected void onListenerChanged​(IVSActionListener listener)
        Called when a listener is added or removed. This method is overridden by the Designer to update connections.
        Overrides:
        onListenerChanged in class VSAction
      • isBackReferenceValid

        public java.lang.String isBackReferenceValid​(AnnotationType annotationType,
                                                     java.lang.String name,
                                                     boolean isRefOnly)
        Validates if the back-reference specified is referenced in the first place, i.e. is valid or not. /** Validates if the back-reference specified is referenced in the first place, i.e. is valid or not.
        Specified by:
        isBackReferenceValid in interface IBackReferenceProvider
        Parameters:
        annotationType - The annotation type.
        name - The class or method name.
        isRefOnly - Flag indicating the back reference is not required, but must be valid otherwise.
        Returns:
        null for valid, otherwise an error message.
      • 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.
      • getRelativeMethodAnnotationReference

        public java.lang.String getRelativeMethodAnnotationReference()
        Gets the annotation relative reference to the element.
        Specified by:
        getRelativeMethodAnnotationReference in interface IJavaMethodLinkEnabler
        Returns:
        The relative reference in the method annotation of e.g. "OnUIFocus" for this component.
      • isLinkCapable

        public org.eclipse.core.runtime.IStatus isLinkCapable​(LinkData data)
        Returns if this property container could potentially be link capable.

        This call is done many times during drag-drop and must be very fast and not cause too much garbage collection.

        Specified by:
        isLinkCapable in interface IJavaMethodLinkEnabler
        Specified by:
        isLinkCapable in interface ILinkCapable
        Specified by:
        isLinkCapable in interface IUICreationFromVS
        Parameters:
        data - The link data.
        Returns:
        The status of capability of the operation.
      • verify

        public void 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 PropCnr
        Parameters:
        verification - The property verification class.