Class ModuleRootPropCnr

    • Constructor Detail

      • ModuleRootPropCnr

        public ModuleRootPropCnr()
        Creates a PropCnr for the designer with the specified name with a null value.
    • Method Detail

      • isPropReferenceTreeValid

        public boolean isPropReferenceTreeValid()
        Verifies if the tree is valid for reference creation. This method is typically overridden in a root property that has a Property Manager owner that in turn is checked for a particular configuration (e.g. Client-related references such as LabelForReference that does not create references when communicating).
        Specified by:
        isPropReferenceTreeValid in interface IGProp<GProp<?>[]>
        isPropReferenceTreeValid in class GProp<GProp<?>[]>
        true if the root property manager is found, false otherwise.
      • onPropDispose

        protected void onPropDispose()
        Called when a property is disposed of by delete/remove in a container, or by the dispose method.

        This call is done just at the end of the delete/remove routine in the container, without synchronization.

        During this call, whatever components that e.g. the client needs to disposed of is done.

        Subclasses needing to perform some intelligent operations upon deletion should do it by overloading this method and always call the super.onPropDispose() method.

        onPropDispose in class PropCnr
      • clone

        public ModuleRootPropCnr clone()
                                throws java.lang.CloneNotSupportedException
        Clone must be overridden.
        clone in class PropCnr
        java.lang.CloneNotSupportedException - If a subclass doesn't allow cloning, e.g. the client properties.
      • getModel

        public ModuleModel getModel()
        Gets the model.
      • onResetDependencyModulesAndProjects

        protected void onResetDependencyModulesAndProjects()
        Method called to clear and initialize the initially dependent projects and modules of the project.
        Specified by:
        onResetDependencyModulesAndProjects in class ProjectRootPropCnr
      • getRootFromName

        public PropCnr getRootFromName​(GProp<?> requestor,
                                       java.lang.String module)
        Gets the module root for a name. As this is the Designer, the module is the project.
        Specified by:
        getRootFromName in interface IModuleProjectPropProvider
        getRootFromName in class ProjectRootPropCnr
        requestor - The requestor property.
        module - The module name (without colon), i.e. the project name in the Designer.
        The root property container, or null if the module name is not found.
      • onEventSelf

        public void onEventSelf​(GEvent event)
        Listens to changes in the Module settings and clears the cache of aliases accordingly.
        Specified by:
        onEventSelf in interface IGProp<GProp<?>[]>
        onEventSelf in class ProjectRootPropCnr
        event - The property event.
      • getProjectName

        public java.lang.String getProjectName​(GProp<?> requestor,
                                               java.lang.String alias)
        Gets the project name from an alias, the alias does NOT begin with "*".
        Specified by:
        getProjectName in interface IModuleProjectPropProvider
        getProjectName in class ProjectRootPropCnr
        requestor - The requestor property.
        alias - The alias name.
        The project name for the alias, or null if not found.
      • getAliasName

        public java.lang.String getAliasName​(GProp<?> requestor,
                                             java.lang.String projectName)
        Gets an alias name for a project name, the alias does NOT begin with "*".
        getAliasName in class ProjectRootPropCnr
        requestor - The requestor property.
        projectName - The project name (without ending ':').
        The alias name without leading '*' for the project name, or null if not found.
      • resolveReferences

        public void resolveReferences​(boolean doReCheck)
        Resolves references for this container and its children by sending resolve references events.
        resolveReferences in class ProjectRootPropCnr
        doReCheck - Recheck flag, avoid true unless really required.
      • synchronizeProjectErrorMarkers

        public void synchronizeProjectErrorMarkers()
        Recursively synchronize all error markers in the project.