Package com.iizigo.project
Class ModuleFolder
java.lang.Object
com.iizigo.project.ModuleFolder
The module folder is a separate directory in the module project that stores property containers in files with a predefined file extension, and that only has directories with names that end with the same file extension (in order not to have name collision with properties, i.e. you cannot have the file a.iiziPanel and a directory with the same name in a single directory).
- Author:
- Christopher Mindus
- Field SummaryFieldsModifier and TypeFieldDescription- final intThe Common Navigator category of the module folder.- final StringThe description of the folder, displayed in the status bar in Eclipse when the folder is selected.- final StringThe file extension used, including the '.'.- final org.eclipse.jface.resource.ImageDescriptorThe image for the folder.- final booleanFlag indicating it's the Assets folder.- final org.eclipse.jface.resource.ImageDescriptorThe image for the items.- final StringThe item title (e.g.- final StringThe name of the folder, used for directory and property name.- final StringThe title for the folder, displayed in the IIZI Explorer.
- Method SummaryModifier and TypeMethodDescription- void- addAcceptedBaseProperty- (Class<? extends PropCnr> propertyClass) Adds an accepted class for base properties as files in this folder.- org.eclipse.jface.viewers.ViewerFilterCreates a viewer filter only displaying items of this folder.- Object[]Gets the children for the content provider tree viewer for this folder.Gets the property container.- org.eclipse.core.resources.IFolderGets the IFolder for the folder root directory.Gets the directory path relative the project, ending with '/'.- org.eclipse.swt.graphics.ImageGets the folder image.Gets the folder settings setup.- org.eclipse.swt.graphics.ImageGets the item image.- static ModuleFolder- getModuleFolder- (ArrayList<DesignerProp> list) Gets the Module Folder used for the selected properties.Gets the Module Model.- org.eclipse.core.resources.IProjectGets the project.- getPropertyFromResource- (org.eclipse.core.resources.IResource resource) Gets a property from a resource located or was located under this folder.- boolean- isFolderPath- (String path) Checks if a project-relative path is in this folder.- boolean- isPropertyClassAccepted- (IGProp<?> property) Checks if a property class instance is accepted.
- Field Details- nameThe name of the folder, used for directory and property name.
- titleThe title for the folder, displayed in the IIZI Explorer.
- descriptionThe description of the folder, displayed in the status bar in Eclipse when the folder is selected.
- folderImageDescriptorpublic final org.eclipse.jface.resource.ImageDescriptor folderImageDescriptorThe image for the folder.
- itemTitleThe item title (e.g. "Panel").
- itemImageDescriptorpublic final org.eclipse.jface.resource.ImageDescriptor itemImageDescriptorThe image for the items.
- extensionThe file extension used, including the '.'.
- isAssetspublic final boolean isAssetsFlag indicating it's the Assets folder.
- categorypublic final int categoryThe Common Navigator category of the module folder.
 
- Method Details- getModuleFolderGets the Module Folder used for the selected properties. This method returns null when properties of different modules are selected, or if the root or module folder are selected.- Parameters:
- list- The selected properties.
- Returns:
- The ModuleFolder for the properties, or null if no such can be set.
 
- getFolderSettingsSetupGets the folder settings setup.- Returns:
- The setup for folder settings, null for none.
 
- addAcceptedBasePropertyAdds an accepted class for base properties as files in this folder.- Parameters:
- propertyClass- The property class.
 
- isPropertyClassAcceptedChecks if a property class instance is accepted.
- getModuleModelGets the Module Model.- Returns:
- The module model.
 
- getProjectpublic org.eclipse.core.resources.IProject getProject()Gets the project.- Returns:
- The project.
 
- getDirectorypublic org.eclipse.core.resources.IFolder getDirectory()Gets the IFolder for the folder root directory.
- getDirectoryPathGets the directory path relative the project, ending with '/'.
- getContainerGets the property container.
- getFolderImagepublic org.eclipse.swt.graphics.Image getFolderImage()Gets the folder image.
- getItemImagepublic org.eclipse.swt.graphics.Image getItemImage()Gets the item image.
- isFolderPathChecks if a project-relative path is in this folder.
- getPropertyFromResourceGets a property from a resource located or was located under this folder.- Parameters:
- resource- The resource.
- Returns:
- null if not found.
 
- getCNChildrenGets the children for the content provider tree viewer for this folder. It's just one: the container.
- createFilterpublic org.eclipse.jface.viewers.ViewerFilter createFilter()Creates a viewer filter only displaying items of this folder.