Class DesignerProp
- All Implemented Interfaces:
- INavigatorPresentation,- EventListener,- IAdaptable
- Direct Known Subclasses:
- ActionActorDesignerProp,- AppDistributionDesignerProp,- CaptureDesignerProp,- ChartDesignerProp,- DatabaseDesignerProp,- EditorPushDesignerProp,- EditorPWADesignerProp,- EditorRuntimeBuilderDesignerProp,- FontDesignerProp,- ImageDesignerProp,- RecordingDesignerProp,- ResourceDesignerProp,- ScreenDesignerProp,- SelectorDesignerProp,- ServerConfigDesignerProp,- StylesDesignerProp,- TerminalDesignerProp,- TextTableDesignerProp,- UIDesignerProp,- VirtualizedMonitorDesignerProp,- VirtualSpaceDesignerProp,- WebServiceDesignerProp
- Author:
- Christopher Mindus
- Field SummaryFieldsModifier and TypeFieldDescription- static final QualifiedNameThe qualified name for session property to link an IResource to a property.- final booleanFlag for if this is a folder module property.- final booleanFlag for if this is the root property.- static final ContextMenuActionAdapterMove down property context menu action.- static final ContextMenuActionAdapterMove up property context menu action.- static final intCopy operation.- static final intDelete operation.- static final intMove operation.- protected final PropCnrThe owner.- Fields inherited from interface com.iizigo.navigator.INavigatorPresentation- CN_PREFERENCE_FLAGS_NAME, DEFAULT_COMPARATOR, EMPTY_ARRAY, FLAG_ADD_FILE_ITEM_PACKAGE_LOCATION, FLAG_ADD_FILE_ITEM_PROJECT, FLAG_ADD_FOLDER_PACKAGE_LOCATION, FLAG_ADD_FOLDER_PROJECT, FLAG_CUSTOM_1, FLAG_CUSTOM_2, FLAG_CUSTOM_3, FLAG_JAVA_SUPPORT, FLAG_PACKAGE_VIEW, FLAG_SHOW_DESIGNER_PROPERTIES, FLAG_SHOW_EMPTY_MODULE_FOLDERS, FLAG_SHOW_EMPTY_PACKAGES, FLAG_SHOW_FILE_ITEMS, FLAG_SHOW_SUBPROPERTIES, FLAGS_NORMAL, FLAGS_ONLY_FOLDERS
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- static void- addCommandContributionItem- (ContextMenuItem item, Class<?>... classes) Adds an Add command contribution item for the DesignerProp class.- voidFills the contribution menu with ContextMenuItems.- void- addContextMenuItems- (Viewer viewer, IzMenu menu, IPropUndoRedo undoRedo) Fills the pop-up menu with ContextMenuItems.- void- addContextMenuItems- (Control formControl, IzMenu menu, IPropUndoRedo undoRedo, DesignerProp target) Fills the pop-up menu with ContextMenuItems.- void- addMarker- (PropMarker marker) Adds a marker to the property.- appendCNStyledTextAdditions- (StyledString ss, int flags) Appends optional items to styled text.- void- appendTooltipPropErrors- (Composite composite) Appends property error information to a Composite that has a grid layout of 2 columns.- static boolean- appendTooltipPropErrors- (Composite composite, GProp<?> property) Appends property error information to a Composite that has a grid layout of 2 columns.- canPerform- (int operation) Checks if an operation on this property is permitted.- final voidThis method should be called from a builder that receives the "clean" event, it just clears the markers internally in DesignerProp.- static Composite- createCNToolTip- (GProp<?> property, Event event, ViewerCell cell, Composite parent) Requests creates of the Composite used to show the tooltip.- createCNToolTip- (Event event, ViewerCell cell, Composite parent) Requests creates of the Composite used to show the tooltip.- protected Composite- createCNToolTip0- (GProp<?> property, Event event, ViewerCell cell, Composite parent) Requests creates of the Composite used to show the tooltip.- static Composite- createCNToolTipItemList- (Composite parent, PropCnr pc, List<TooltipItem> list, boolean appendErrors) Creates a simple list of items for a property with appended property error information.- static Atom- createFileErrorAtom- (PropCnr parentContainer) Creates a unique property atom for file errors for a property.- createImageDefinitions- (List<String> names, IPropUndoRedo undoRedo) Asks the user if SVG or plain image definitions should be created for the dropped asset files.- protected void- dispose()Called when the DesignerProp is disposed of due to dispose of the associated property.- booleanSorting on index, but categories first.- voidFlags the property for update in the viewer(s).- <T> T- getAdapter- (Class<T> adapter) Adapts to the IResource or to an IIZI Property.- getCNBackground- (int columnIndex, int flags) Provides a background color for the given element at the specified index- static Color- getCNBackground- (GProp<?> property, int columnIndex, int flags) Provides a background color for the given element at the specified index.- protected Color- getCNBackground0- (GProp<?> property, int columnIndex, int flags) Provides a background color for the given element at the specified index.- intGets the category of this Common Navigator object, used for sorting.- Object[]- getCNChildren- (int flags) Gets the children of this container for Common Navigator.Get the- Comparatorobject to sort the children for the Common Navigator when presented visually in the tree.- getCNDescription- (int flags) Provide a description for the status bar view, if available.- static String- getCNDescription- (GProp<?> property, int flags) Provide a description for the status bar view, if available.- protected String- getCNDescription0- (GProp<?> property, int flags) Provide a description for the status bar view, if available.Provide a type description for the status bar view, if available.- getCNForeground- (int columnIndex, int flags) Provides a foreground color for the given element.- static Color- getCNForeground- (GProp<?> property, int columnIndex, int flags) Provides a foreground color for the given element.- protected Color- getCNForeground0- (GProp<?> property, int columnIndex, int flags) Provides a foreground color for the given element.- getCNImage- (int flags) Gets the image for the Common Navigator.- getCNImage- (int columnIndex, int flags) Gets the image for the Common Tree Viewer showing column contents.- static Image- getCNImage- (GProp<?> property, int flags) Gets the image for the Common Navigator.- static Image- getCNImage- (GProp<?> property, int columnIndex, int flags) Gets the image for the Common Navigator.- protected Image- getCNImage0- (GProp<?> property, int flags) Gets the image for the Common Navigator.- protected Image- getCNImage0- (GProp<?> property, int columnIndex, int flags) Gets the image for the Common Navigator.- getCNParent- (int flags) Gets the parent for Common Navigator.- static Object- getCNParent- (GProp<?> property, int flags) Gets the parent for Common Navigator.Gets the "real" property when the DesignerProp has been retrieved from e.g.- getCNStyledText- (int flags) Gets the label text for the Common Navigator.- static StyledString- getCNStyledText- (GProp<?> property, int flags) Gets the text for a sub-property for the Common Navigator.- protected StyledString- getCNStyledText0- (GProp<?> property, int flags) Gets the text for a sub-property for the Common Navigator.- getCNText- (int flags) Gets the label text for the Common Navigator.- getCNText- (int columnIndex, int flags) Gets the label text for the Common Navigator.- static StringGets the text for a sub-property for the Common Navigator.- static StringGets the text for a sub-property for the Common Navigator.- protected String- getCNText0- (GProp<?> property, int flags) Gets the text for a sub-property for the Common Navigator.- protected String- getCNText0- (GProp<?> property, int columnIndex, int flags) Gets the text for a sub-property for the Common Navigator.- static int- getCNToolTipDisplayDelayTime- (GProp<?> property, ViewerCell cell) The time in milliseconds until the tool tip is displayed.- intThe time in milliseconds until the tool tip is displayed.- protected int- getCNToolTipDisplayDelayTime0- (GProp<?> property, ViewerCell cell) The time in milliseconds until the tool tip is displayed.- static Point- getCNToolTipShift- (GProp<?> property, ViewerCell cell) Return the amount of pixels in x and y direction you want the tool tip to pop up from the mouse pointer.- getCNToolTipShift- (ViewerCell cell) Return the amount of pixels in x and y direction you want the tool tip to pop up from the mouse pointer.- protected Point- getCNToolTipShift0- (GProp<?> property, ViewerCell cell) Return the amount of pixels in x and y direction you want the tool tip to pop up from the mouse pointer.- static int- getCNToolTipTimeDisplayed- (GProp<?> property, ViewerCell cell) The time in milliseconds the tool tip is shown for.- intThe time in milliseconds the tool tip is shown for.- protected int- getCNToolTipTimeDisplayed0- (GProp<?> property, ViewerCell cell) The time in milliseconds the tool tip is shown for.Gets all command contribution items to use for a property container.Gets the data DesignerProp that is associates with the FilePropCnr.- intChecks if a property has an error or warning in itself or the children.Gets the exception that occurred during loading of the file.- final ModuleFolderGets the ModuleFolder for this property.- final ModuleFolderPropCnrGets the module folder property container.- ArrayList<?>Gets an ArrayList of IEditorFileAction.- static ResourceDesignerProp- getInstance- (IResource resource) Gets the instance of the property in a resource.- static ResourceDesignerProp- getInstance- (IResource resource, boolean logError) Gets the instance of the property in a resource.- final IResourceGets the IResource object for this property container.- final IJavaProjectGets the Java project.Gets the array of markers in this property.- final ModuleModel- getModel()Gets the Module Model.- final longGets the file modification stamp.- final DesignerPropGets the parent.- final FolderPropCnrGets the parent folder property container.- final IProjectGets the project.- final PropCnrGets the originating property container.- protected PropertyEditorSetupGets the Setup used for iiziGo, subclasses must override and provide their instance.- final ModuleRootPropCnr- getRoot()Gets the root property container for the module project.- getSubPropertyName- (IGProp<?> subProperty) Get the name of a sub-property.- static booleanGets the default paste operation allowed for transfer properties.Find an UndoContext for this property of from one of it's parents.- boolean- hasCNChildren- (int flags) Returns whether the given element has children for the Common Navigator.- static boolean- hasCNToolTip- (GProp<?> property, ViewerCell cell) Checks for Common Navigator tool-tip for this item.- boolean- hasCNToolTip- (ViewerCell cell) Checks for Common Navigator tool-tip for this item.- protected boolean- hasCNToolTip0- (GProp<?> property, ViewerCell cell) Checks for Common Navigator tool-tip for this item.- boolean- hasMarkerID- (String markerID) Checks for presence of a marker ID.- booleanCheck for naming error in the property due to wrong file name.- booleanGets the drop index in the parent container if possible.- boolean- isCNVisible- (int flags) Checks if a property should be included in the view or if it's hidden or filtered out.- boolean- isCNVisible0- (GProp<?> property, int flags) Checks if a property should be included in the view or if it's hidden or filtered out.- final booleanFlag for designer-loaded-from-file.- final booleanCheck for designer moved.- voidProperty event from property container.- final voidCalled from- ISynchronizeEclipseMarkerswhen a property error change occurs in order to set the errors correctly for the file resource.- paste- (boolean doPerformPaste, int position, GProp<?>[] props, int operation, String description, IPropUndoRedo undoRedo) Validates or performs a paste operation.- pasteProperties- (boolean doPerformPaste, GProp<?>[] props, int operation, String description, IPropUndoRedo undoRedo, GProp<?> reference, boolean isAfter) Validates or performs a paste operation.- protected voidProcessing of Query message.- final voidRebuilds the error markers without touching the resource marker, triggers a rebuild of this property if it contains any errors in the tree and its an instance of- ISynchronizeMarkers.- static void- removeFileErrors- (DesignerProp property) Removes all file errors for a property container.- void- removeMarkers- (String markerID) Removes the marker "markerID" or all markers (when markerID is null) for the property.- final voidSets designer loaded, once only, never cleared.- final voidStarts the designer move of a property.- void- setException- (Throwable exception) Sets the exception that occurred during loading of the file.- void- setIEditorFileActions- (ArrayList<?> list) Sets an ArrayList of IEditorFileAction.- final void- setIResource- (IResource resource) Sets the IResource object for this property container.- static void- setIResource- (IResource resource, DesignerProp prop, boolean checkPresence) Sets a session property for a resource.- final void- setModificationStamp- (long stamp) Sets the file modification stamp.- static void- setTransferDefaultPasteAllowed- (boolean on) Sets the default paste operation allowed for transfer properties.- toString()Provides a toString for the Go Into Project Explorer View.- void- updateFolderResources- (IFolder folder) This folder has been moved and needs updating the resource, along with all children properties.- protected boolean- validateClasses- (boolean doPerform, PropCnr target, GProp<?>[] props, boolean isMove) Validates the target property container classes for paste.- boolean- validateResouce- (IResource resource) Validates a resource against the designer property extension.
- Field Details- DESIGNER_PROPERTYThe qualified name for session property to link an IResource to a property.
- OP_COPYpublic static final int OP_COPYCopy operation.- See Also:
 
- OP_MOVEpublic static final int OP_MOVEMove operation.- See Also:
 
- OP_DELETEpublic static final int OP_DELETEDelete operation.- See Also:
 
- moveUpPropertyMove up property context menu action.
- moveDownPropertyMove down property context menu action.
- propertyContainerThe owner.
- isRootpublic final boolean isRootFlag for if this is the root property.
- isFolderpublic final boolean isFolderFlag for if this is a folder module property.
 
- Constructor Details- DesignerPropConstructor.
 
- Method Details- getTransferDefaultPasteAllowedpublic static boolean getTransferDefaultPasteAllowed()Gets the default paste operation allowed for transfer properties.
- setTransferDefaultPasteAllowedpublic static void setTransferDefaultPasteAllowed- (boolean on) Sets the default paste operation allowed for transfer properties.
- addCommandContributionItemAdds an Add command contribution item for the DesignerProp class.- Parameters:
- item- The item to add.
- classes- The classes, should extend PropCnr.
 
- removeFileErrorsRemoves all file errors for a property container.
- createFileErrorAtomCreates a unique property atom for file errors for a property.
- getInstanceGets the instance of the property in a resource.- Returns:
- The property, or null if the resource doesn't exist or the project is closed.
 
- getInstanceGets the instance of the property in a resource.- Returns:
- The property, or null if the resource doesn't exist or the project is closed.
 
- getPropCnrGets the originating property container.
- getParentFolderPropGets the parent folder property container.- Returns:
- The parent folder property container, or null if not found.
 
- getFolderPropGets the module folder property container.- Returns:
- The folder property container, or null if not found.
 
- getFolderGets the ModuleFolder for this property.- Returns:
- The module folder, or null if not found.
 
- getRootGets the root property container for the module project.- Returns:
- The root property container, or null if not found.
 
- getModelGets the Module Model.- Returns:
- The Module Model or null if not found.
 
- getProjectGets the project.- Returns:
- The project, or null if not found.
 
- getJavaProjectGets the Java project.- Returns:
- The Java project, or null if not found.
 
- disposeprotected void dispose()Called when the DesignerProp is disposed of due to dispose of the associated property.- Subclasses should ALWAYS call the - super.dispose()method.
- getAdapterAdapts to the IResource or to an IIZI Property. If this is a File DesignerProp, check for adaptation to it's data property.- Specified by:
- getAdapterin interface- IAdaptable
 
- setIResourceSets the IResource object for this property container.- Parameters:
- resource- The IResource object or null to clear it.
 
- setIResourceSets a session property for a resource.- Parameters:
- resource- The IResource object or null to clear it.
- prop- The Designer property.
- checkPresence- Flag indicating the folder is checked for presence.
 
- getIResourceGets the IResource object for this property container.- Returns:
- The IResource object or null if none is set.
 
- setModificationStamppublic final void setModificationStamp- (long stamp) Sets the file modification stamp.- Parameters:
- stamp- The file modification stamp.
 
- getModificationStamppublic final long getModificationStamp()Gets the file modification stamp.- Returns:
- The file modification stamp.
 
- isDesignerLoadedpublic final boolean isDesignerLoaded()Flag for designer-loaded-from-file.
- setDesignerLoadedpublic final void setDesignerLoaded()Sets designer loaded, once only, never cleared.
- setDesignerMovedpublic final void setDesignerMoved()Starts the designer move of a property.
- isDesignerMovedpublic final boolean isDesignerMoved()Check for designer moved. This call resets the "flag", so it can only be done once.
- validateResouceValidates a resource against the designer property extension.
- updateFolderResourcesThis folder has been moved and needs updating the resource, along with all children properties.
- setExceptionSets the exception that occurred during loading of the file.- Parameters:
- exception- The exception or null for no error.
 
- getExceptionGets the exception that occurred during loading of the file.- Returns:
- The exception or null for no error.
 
- setIEditorFileActionsSets an ArrayList of IEditorFileAction.
- getIEditorFileActionsGets an ArrayList of IEditorFileAction.
- firePropertyUpdateViewerEventpublic void firePropertyUpdateViewerEvent()Flags the property for update in the viewer(s).
- addMarkerAdds a marker to the property.- Parameters:
- marker- The marker.
 
- hasMarkerIDChecks for presence of a marker ID.
- removeMarkersRemoves the marker "markerID" or all markers (when markerID is null) for the property.- Parameters:
- markerID- The marker ID or null for all markers.
 
- getMarkersGets the array of markers in this property.- Returns:
- The array of markers, or null for none.
 
- getErrorSeveritypublic int getErrorSeverity()Checks if a property has an error or warning in itself or the children.- Returns the maximum value of the IMarker.SEVERITY attribute across markers of the specified type on this resource, and on its children. - Returns:
- IMarker.SEVERITY_INFO, IMarker.SEVERITY_WARNING, IMarker.SEVERITY_ERROR, or -1.
 
- hasNamingErrorpublic boolean hasNamingError()Check for naming error in the property due to wrong file name.
- getParentGets the parent.- Returns:
- The property container designer, or null if this is the root or the property doesn't have a parent yet.
 
- getCNParentGets the parent for Common Navigator.- Specified by:
- getCNParentin interface- INavigatorPresentation
- Parameters:
- flags- The flag that apply is FLAG_PACKAGE_VIEW.
- Returns:
- The parent object: IProject or DesignerProp, or null if no parent exists (property is not added to a container).
 
- getCNParentGets the parent for Common Navigator.- Parameters:
- property- The property.
- flags- The flag that apply is FLAG_PACKAGE_VIEW.
- Returns:
- The parent object: IProject or DesignerProp, or null if no parent exists (property is not added to a container).
 
- getCNRealPropGets the "real" property when the DesignerProp has been retrieved from e.g. the ContentProvider at add/remove events. The property parent might not be the same as the DesignerProp.- Returns:
- By default, it is the "this" instance, but e.g. EditorVSRow for tables overrides it and returns the parent DesignerProp instead.
 
- getCNCategorypublic int getCNCategory()Gets the category of this Common Navigator object, used for sorting. Subclasses can override this method, in order to get the sorting in the viewer to be done within a category.- Specified by:
- getCNCategoryin interface- INavigatorPresentation
- Returns:
- This method returns zero, i.e. no category.
 
- getCNComparatorGet the- Comparatorobject to sort the children for the Common Navigator when presented visually in the tree.- Subclasses are invited to override this method for other sorting schemes. - Specified by:
- getCNComparatorin interface- INavigatorPresentation
- Returns:
- The default comparator. Subclasses can inhibit sorting by returning null.
 
- isCNVisiblepublic boolean isCNVisible- (int flags) Checks if a property should be included in the view or if it's hidden or filtered out.- Parameters:
- flags- The flags: FLAG_PACKAGE_VIEW, FLAG_SHOW_EMPTY_MAIN_FOLDER, FLAG_SHOW_EMPTY_PACKAGES, FLAG_SHOW_FILE_ITEMS, FLAG_SHOW_DESIGNER_PROPERTIES and FLAG_SHOW_SUBPROPERTIES are relevant.
- Returns:
- true Default is always true.
 
- isCNVisible0Checks if a property should be included in the view or if it's hidden or filtered out.- Parameters:
- property- The property in question.
- flags- The flags: FLAG_PACKAGE_VIEW, FLAG_SHOW_EMPTY_MAIN_FOLDER, FLAG_SHOW_EMPTY_PACKAGES, FLAG_SHOW_FILE_ITEMS, FLAG_SHOW_DESIGNER_PROPERTIES and FLAG_SHOW_SUBPROPERTIES are relevant.
- Returns:
- true Default is always true.
 
- hasCNChildrenpublic boolean hasCNChildren- (int flags) Returns whether the given element has children for the Common Navigator.- Specified by:
- hasCNChildrenin interface- INavigatorPresentation
- Parameters:
- flags- The flags: FLAG_PACKAGE_VIEW, FLAG_SHOW_EMPTY_MAIN_FOLDER, FLAG_SHOW_EMPTY_PACKAGES, FLAG_SHOW_FILE_ITEMS, FLAG_SHOW_DESIGNER_PROPERTIES and FLAG_SHOW_SUBPROPERTIES are relevant.
- Returns:
- trueif the node has children, and- falseif it has no children.
 
- getCNChildrenGets the children of this container for Common Navigator.- Specified by:
- getCNChildrenin interface- INavigatorPresentation
- Parameters:
- flags- The flags: FLAG_PACKAGE_VIEW, FLAG_SHOW_EMPTY_MAIN_FOLDER, FLAG_SHOW_EMPTY_PACKAGES, FLAG_SHOW_FILE_ITEMS, FLAG_SHOW_DESIGNER_PROPERTIES and FLAG_SHOW_SUBPROPERTIES are relevant.
- Returns:
- An array of children objects or EMPTY_ARRAY for none.
 
- getCNImageGets the image for the Common Navigator.- Specified by:
- getCNImagein interface- INavigatorPresentation
- Parameters:
- flags- The flags for the image, see FLAG_IMAGE_*.
- Returns:
- Image or nullif there is no image.
 
- getCNImageGets the image for the Common Navigator.- Parameters:
- property- The property.
- flags- The flags for the image, see FLAG_IMAGE_*.
- Returns:
- Image or nullif there is no image.
 
- getCNImage0Gets the image for the Common Navigator.- Parameters:
- property- The property.
- flags- The flags for the image, see FLAG_IMAGE_*.
- Returns:
- Image or nullif there is no image.
 
- getCNImageGets the image for the Common Tree Viewer showing column contents.- Specified by:
- getCNImagein interface- INavigatorPresentation
- Parameters:
- columnIndex- The zero-based index for the column (zero is never used, the method getCNImage() is called instead.
- flags- The flags for the image, see FLAG_IMAGE_*.
- Returns:
- Image or nullif there is no image for the given object at columnIndex.
 
- getCNImageGets the image for the Common Navigator.- Parameters:
- property- The property.
- columnIndex- The zero-based index for the column (zero is never used, the method getCNImage() is called instead.
- flags- The flags for the image, see FLAG_IMAGE_*.
- Returns:
- Image or nullif there is no image.
 
- getCNImage0Gets the image for the Common Navigator.- Parameters:
- property- The property.
- columnIndex- The zero-based index for the column (zero is never used, the method getCNImage() is called instead.
- flags- The flags for the image, see FLAG_IMAGE_*.
- Returns:
- Image or nullif there is no image.
 
- getCNTextGets the label text for the Common Navigator.- Specified by:
- getCNTextin interface- INavigatorPresentation
- Returns:
- String or or nullif there is no text.
 
- getCNTextGets the text for a sub-property for the Common Navigator.
- getCNText0Gets the text for a sub-property for the Common Navigator.
- getCNTextGets the label text for the Common Navigator.- Specified by:
- getCNTextin interface- INavigatorPresentation
- Parameters:
- columnIndex- The zero-based index for the column (zero is never used, the method getCNText() is called instead.
- Returns:
- String or or nullif there is no text for the given object at columnIndex.
 
- getCNTextGets the text for a sub-property for the Common Navigator.
- getCNText0Gets the text for a sub-property for the Common Navigator.
- getCNForegroundProvides a foreground color for the given element.- Parameters:
- columnIndex- The zero-based index of the column in which the color appears.
- flags- Viewer flags.
- Returns:
- The foreground color for the element, or nullto use the default foreground color.
 
- getCNForegroundProvides a foreground color for the given element.
- getCNForeground0Provides a foreground color for the given element.
- getCNBackgroundProvides a background color for the given element at the specified index- Parameters:
- columnIndex- The zero-based index of the column in which the color appears
- Returns:
- The background color for the element, or nullto use the default background color.
 
- getCNBackgroundProvides a background color for the given element at the specified index.
- getCNBackground0Provides a background color for the given element at the specified index.
- getCNStyledTextGets the label text for the Common Navigator.- Specified by:
- getCNStyledTextin interface- INavigatorPresentation
- Parameters:
- flags- The flags that apply are FLAG_ADD_FOLDER_PACKAGE_LOCATION, FLAG_ADD_FILE_ITEM_PACKAGE_LOCATION, FLAG_ADD_FOLDER_PROJECT and FLAG_ADD_FILE_ITEM_PROJECT.
 
- appendCNStyledTextAdditionsAppends optional items to styled text.- Parameters:
- ss- The StyledString.
- flags- The flags that apply are FLAG_ADD_FOLDER_PACKAGE_LOCATION, FLAG_ADD_FILE_ITEM_PACKAGE_LOCATION, FLAG_ADD_FOLDER_PROJECT and FLAG_ADD_FILE_ITEM_PROJECT.
 
- getCNStyledTextGets the text for a sub-property for the Common Navigator.- Parameters:
- property- The property.
- flags- The flags that apply are FLAG_ADD_FOLDER_PACKAGE_LOCATION, FLAG_ADD_FILE_ITEM_PACKAGE_LOCATION, FLAG_ADD_FOLDER_PROJECT and FLAG_ADD_FILE_ITEM_PROJECT.
 
- getCNStyledText0Gets the text for a sub-property for the Common Navigator.- Parameters:
- property- The property.
- flags- The flags that apply are FLAG_ADD_FOLDER_PACKAGE_LOCATION, FLAG_ADD_FILE_ITEM_PACKAGE_LOCATION, FLAG_ADD_FOLDER_PROJECT and FLAG_ADD_FILE_ITEM_PROJECT.
 
- getCNDescriptionProvide a description for the status bar view, if available. A default string of the form "(x) items selected" will be used if this method choose to return null.- The empty string ("") will be respected as a valid value if returned. Return null if the extension defers to the default method of supplying status bar descriptions. - Specified by:
- getCNDescriptionin interface- INavigatorPresentation
- Returns:
- A description for the status bar view, or null if not available.
 
- getCNDescriptionProvide a description for the status bar view, if available. A default string of the form "(x) items selected" will be used if this method choose to return null.- The empty string ("") will be respected as a valid value if returned. Return null if the extension defers to the default method of supplying status bar descriptions. - Parameters:
- property- The property.
- Returns:
- A description for the status bar view, or null if not available.
 
- getCNDescription0Provide a description for the status bar view, if available. A default string of the form "(x) items selected" will be used if this method choose to return null.- The empty string ("") will be respected as a valid value if returned. Return null if the extension defers to the default method of supplying status bar descriptions. - Parameters:
- property- The property.
- Returns:
- A description for the status bar view, or null if not available.
 
- getCNDescriptionTypeProvide a type description for the status bar view, if available.- Returns:
- A type description for the status bar view, or null if not available.
 
- getDataDesignerPropGets the data DesignerProp that is associates with the FilePropCnr.- Returns:
- The DesignerProp for data, null if not a file property or data is not found.
 
- hasCNToolTipChecks for Common Navigator tool-tip for this item.- Parameters:
- cell- The cell (might be in a table), or null for none.
 
- hasCNToolTipChecks for Common Navigator tool-tip for this item.
- hasCNToolTip0Checks for Common Navigator tool-tip for this item.
- getCNToolTipShiftReturn the amount of pixels in x and y direction you want the tool tip to pop up from the mouse pointer. The default shift is 10px right and 0px below your mouse cursor. Be aware of the fact that you should at least position the tool tip 1px right to your mouse cursor else click events may not get propagated properly.- Parameters:
- cell- The cell (might be in a table), or null for none.
- Returns:
- Pointto shift of the tool tip or- nullif the default shift should be used.
 
- getCNToolTipShiftReturn the amount of pixels in x and y direction you want the tool tip to pop up from the mouse pointer. The default shift is 10px right and 0px below your mouse cursor. Be aware of the fact that you should at least position the tool tip 1px right to your mouse cursor else click events may not get propagated properly.- Parameters:
- cell- The cell (might be in a table), or null for none.
- Returns:
- Pointto shift of the tool tip or- nullif the default shift should be used.
 
- getCNToolTipShift0Return the amount of pixels in x and y direction you want the tool tip to pop up from the mouse pointer. The default shift is 10px right and 0px below your mouse cursor. Be aware of the fact that you should at least position the tool tip 1px right to your mouse cursor else click events may not get propagated properly.- Parameters:
- cell- The cell (might be in a table), or null for none.
- Returns:
- Pointto shift of the tool tip or- nullif the default shift should be used.
 
- getCNToolTipTimeDisplayedThe time in milliseconds the tool tip is shown for.- Parameters:
- cell- The cell (might be in a table), or null for none.
- Returns:
- Time in milliseconds the tool tip is shown for, -1 for default.
 
- getCNToolTipTimeDisplayedThe time in milliseconds the tool tip is shown for.- Parameters:
- cell- The cell (might be in a table), or null for none.
- Returns:
- Time in milliseconds the tool tip is shown for, -1 for default.
 
- getCNToolTipTimeDisplayed0The time in milliseconds the tool tip is shown for.- Parameters:
- cell- The cell (might be in a table), or null for none.
- Returns:
- Time in milliseconds the tool tip is shown for, -1 for default.
 
- getCNToolTipDisplayDelayTimeThe time in milliseconds until the tool tip is displayed.- Parameters:
- cell- The cell (might be in a table), or null for none.
- Returns:
- Time in milliseconds until the tool tip is displayed, -1 for default.
 
- getCNToolTipDisplayDelayTimeThe time in milliseconds until the tool tip is displayed.- Parameters:
- cell- The cell (might be in a table), or null for none.
- Returns:
- Time in milliseconds until the tool tip is displayed, -1 for default.
 
- getCNToolTipDisplayDelayTime0The time in milliseconds until the tool tip is displayed.- Parameters:
- cell- The cell (might be in a table), or null for none.
- Returns:
- Time in milliseconds until the tool tip is displayed, -1 for default.
 
- createCNToolTipRequests creates of the Composite used to show the tooltip.- Parameters:
- event- Event triggering the tooltip (mouse hover).
- cell- The cell (might be in a table).
- parent- The parent composite.
- Returns:
- The created composite in the parent.
 
- appendTooltipPropErrorsAppends property error information to a Composite that has a grid layout of 2 columns.- Parameters:
- composite- The composite.
 
- appendTooltipPropErrorsAppends property error information to a Composite that has a grid layout of 2 columns.- Parameters:
- composite- The composite.
- property- The property container with the errors.
- Returns:
- true if errors were added, false for nothing.
 
- createCNToolTippublic static Composite createCNToolTip- (GProp<?> property, Event event, ViewerCell cell, Composite parent) Requests creates of the Composite used to show the tooltip.- Parameters:
- event- Event triggering the tooltip (mouse hover).
- cell- The cell (might be in a table).
- parent- The parent composite.
- Returns:
- The created composite in the parent.
 
- createCNToolTip0protected Composite createCNToolTip0- (GProp<?> property, Event event, ViewerCell cell, Composite parent) Requests creates of the Composite used to show the tooltip.- Parameters:
- event- Event triggering the tooltip (mouse hover).
- cell- The cell (might be in a table).
- parent- The parent composite.
- Returns:
- The created composite in the parent.
 
- createCNToolTipItemListpublic static Composite createCNToolTipItemList- (Composite parent, PropCnr pc, List<TooltipItem> list, boolean appendErrors) Creates a simple list of items for a property with appended property error information.- Parameters:
- parent- The parent composite.
- pc- The property to display children items as properties.
- list- The list of items to display if they exist.
- appendErrors- Appends errors.
- Returns:
- A composite for the tooltip.
 
- getSubPropertyNameGet the name of a sub-property. A checks is done against the entries in the Property Editor.- Returns:
- The name of the property, or null for none.
 
- getPropertyEditorSetupGets the Setup used for iiziGo, subclasses must override and provide their instance.
- toStringProvides a toString for the Go Into Project Explorer View.
- pastepublic PasteFeedback paste- (boolean doPerformPaste, int position, GProp<?>[] props, int operation, String description, IPropUndoRedo undoRedo) Validates or performs a paste operation. The paste can be a move operation.- Parameters:
- doPerformPaste- Flag indication operation is to be performed (true) or just tested for validity (false).
- position- Position for paste: -1=before target, 0=in target, 1=after target.
- props- The properties.
- operation- The operation: OP_COPY, OP_MOVE.
- description- The description of the operation "source" for undo history.
- undoRedo- The undo/redo interface.
- Returns:
- The feed-back instance.
 
- isBeforeAfterDropTargetpublic boolean isBeforeAfterDropTarget()Gets the drop index in the parent container if possible. This checks if this DesignerProp has a valid drop-parent with indexes relevant, i.e. to provide feed-back for insertion lines in e.g. trees.- Returns:
- -1 If not valid index, i.e. no insertion lines should be visible.
 
- createImageDefinitionsAsks the user if SVG or plain image definitions should be created for the dropped asset files.- Parameters:
- names- The file names names of the "images", not all (or none could be images).
- undoRedo- The undo/redo interface.
- Returns:
- null for no error, otherwise an error string.
- Throws:
- IllegalStateException- If this is not a folder in the assets folder!
 
- validateClassesprotected boolean validateClasses- (boolean doPerform, PropCnr target, GProp<?>[] props, boolean isMove) Validates the target property container classes for paste.- Parameters:
- doPerform- The perform flag, false means just testing.
- target- Target property.
- props- Properties to move or paste.
- isMove- Flag for move if true, false means paste.
 
- pastePropertiespublic String pasteProperties- (boolean doPerformPaste, GProp<?>[] props, int operation, String description, IPropUndoRedo undoRedo, GProp<?> reference, boolean isAfter) Validates or performs a paste operation. The paste can be a move operation.- Parameters:
- doPerformPaste- Flag indication operation is to be performed (true) or just tested for validity (false).
- props- The properties.
- operation- The operation: OP_COPY or OP_MOVE.
- description- The description of the operation "source" for undo history.
- undoRedo- The undo/redo interface.
- reference- Reference property where to place the new properties (important only when container has index-based ordering).
- isAfter- Flag for after, otherwise before.
- Returns:
- The error message if not valid, nullif OK.
 
- getContextMenuItemsGets all command contribution items to use for a property container. The list first checks the registered class for identical match, then if the list contains interfaces, they are checked if the property implements them.- Returns:
- The list of command contribution items.
 
- addContextMenuItemsFills the contribution menu with ContextMenuItems. A separator is added prior to the items if the menu is not empty.
- addContextMenuItemsFills the pop-up menu with ContextMenuItems. A separator is added prior to the items if the menu is not empty.
- addContextMenuItemspublic void addContextMenuItems- (Control formControl, IzMenu menu, IPropUndoRedo undoRedo, DesignerProp target) Fills the pop-up menu with ContextMenuItems. A separator is added prior to the items if the menu is not empty.
- canPerformChecks if an operation on this property is permitted. Subclasses can override this method and return an error message, the default is to return null.- Parameters:
- operation- The operation: OP_MOVE or OP_DELETE.
- Returns:
- null for OK, otherwise an error message.
 
- onEventProperty event from property container.- Specified by:
- onEventin interface- EventListener
- Parameters:
- event- The property event.
 
- processQueryProcessing of Query message. Fill in what is possible. Subclasses can extend this method to provide further processing.
- clearPropErrorMarkerspublic final void clearPropErrorMarkers()This method should be called from a builder that receives the "clean" event, it just clears the markers internally in DesignerProp.
- rebuildPropErrorMarkerspublic final void rebuildPropErrorMarkers()Rebuilds the error markers without touching the resource marker, triggers a rebuild of this property if it contains any errors in the tree and its an instance of- ISynchronizeMarkers. This method should be called from a builder that receives the "clean" event.
- onPropErrorChangedpublic final void onPropErrorChanged()Called from- ISynchronizeEclipseMarkerswhen a property error change occurs in order to set the errors correctly for the file resource.
- getUndoContextFromTreeFind an UndoContext for this property of from one of it's parents.- Returns:
- null if not found, otherwise the undo context.
 
- doSortIndexOnCategoriespublic boolean doSortIndexOnCategories()Sorting on index, but categories first.- Returns:
- false for default, override to set true to use the categories.