Class FolderPropCnr

    • Constructor Detail

      • FolderPropCnr

        public FolderPropCnr()
        Creates a FolderPropCnr for the designer with the specified name with a null value.
      • FolderPropCnr

        public FolderPropCnr​(Atom propertyAtom,
                             org.eclipse.core.resources.IFolder folder)
        Creates a FolderPropCnr for the designer with the specified name with a null value.
        Parameters:
        propertyAtom - the property atom.
        folder - the folder.
      • FolderPropCnr

        public FolderPropCnr​(Atom propertyAtom,
                             org.eclipse.core.resources.IFolder folder,
                             boolean checkPresence)
        Creates a FolderPropCnr for the designer with the specified name with a null value.
        Parameters:
        propertyAtom - the property atom.
        folder - the folder.
        checkPresence - flag indicating the folder is checked for presence.
    • Method Detail

      • getIFolder

        public org.eclipse.core.resources.IFolder getIFolder()
        Gets the folder.
        Returns:
        The folder resource or null if not found.
      • isAssetsFolder

        public boolean isAssetsFolder()
        Checks if this folder is located in the Assets directory. This is only handled in the Editor.
      • getURI

        public java.net.URI getURI()
        Gets the file name URI for this property.
        Overrides:
        getURI in class FolderURIPropCnr
      • clone

        public FolderPropCnr clone()
                            throws java.lang.CloneNotSupportedException
        Clone must be overridden.
        Overrides:
        clone in class FolderURIPropCnr
        Throws:
        java.lang.CloneNotSupportedException - If a subclass doesn't allow cloning, e.g. the client properties.
      • isPropFolder

        public final boolean isPropFolder()
        Checks if this is a Folder property container. It is overridden by FolderPropCnr.
        Specified by:
        isPropFolder in interface IGProp<GProp<?>[]>
        Overrides:
        isPropFolder in class FolderURIPropCnr
        Returns:
        true for FolderPropCnr, false otherwise.
      • isPropFile

        public final boolean isPropFile()
        Checks if this is a File property container. It is overridden by FilePropCnr.
        Specified by:
        isPropFile in interface IGProp<GProp<?>[]>
        Overrides:
        isPropFile in class FolderURIPropCnr
        Returns:
        true for FilePropCnr, false otherwise.
      • isFolderEmpty

        public boolean isFolderEmpty()
        Checks if this folder is empty, i.e. has no files or folders inside.
        Returns:
        true if folder is empty, false otherwise.
      • queuePanelsVerification

        public void queuePanelsVerification()
        Queues verification of all panels in this folder and its subfolders.
      • onEventSelf

        public void onEventSelf​(GEvent event)
        Called when a property event is send to this property.

        A subclass can override this method to perform appropriate processing and is not required to call super.onEventSelf(e).

        Specified by:
        onEventSelf in interface IGProp<GProp<?>[]>
        Overrides:
        onEventSelf in class GProp<GProp<?>[]>
        Parameters:
        event - The property event.