Package com.iizigo.navigator
Interface INavigatorPresentation
- All Known Implementing Classes:
- ActionActorDesignerProp,- AppDistributionDesignerProp,- CaptureDesignerProp,- ChartDesignerProp,- DatabaseActionActorDesignerProp,- DatabaseDesignerProp,- DesignerProp,- EditorPushDesignerProp,- EditorPWADesignerProp,- EditorRuntimeBuilderDesignerProp,- FontDesignerProp,- ImageDesignerProp,- ItemNavigatorPresentation,- MemberTreeItemNavigatorPresentation,- MLDesignerProp,- PropNavigatorPresentation,- RecordingDesignerProp,- ResourceDesignerProp,- ScreenDesignerProp,- SelectorDesignerProp,- ServerConfigDesignerProp,- StylesDesignerProp,- TerminalActionActorDesignerProp,- TerminalDesignerProp,- TextTableDesignerProp,- TreeItemNavigatorPresentation,- UIChartDesignerProp,- UICompDesignerProp,- UICompsDesignerProp,- UIContainerDesignerProp,- UIDesignerProp,- UILayoutDesignerProp,- UIMenuCompDesignerProp,- UIMenuContainerDesignerProp,- VirtualizedMonitorDesignerProp,- VirtualSpaceDesignerProp,- WebServiceActionActorDesignerProp,- WebServiceDesignerProp
public interface INavigatorPresentation
Interface used for the Common Navigator framework.
- Author:
- Christopher Mindus
- Field SummaryFieldsModifier and TypeFieldDescription- static final StringThe Preferences string used to store flags for the Common Viewer content provider and label provider.- static final ViewerComparatorThe default comparator.- static final Object[]An empty array.- static final intFlag to add a location to the package or folder of a file item.- static final intFlag to add the project name to a file item.- static final intFlag to add a location to the package or folder.- static final intFlag to add the project name to a package or folder.- static final intCustom flag 1.- static final intCustom flag 2.- static final intCustom flag 3.- static final intFlag to add support for Java elements.- static final intFlag to show package view, when not set, it is hierarchical.- static final intFlag to show the DesignerProp's in a file's data container.- static final intFlag to show empty main folder in Package View.- static final intFlag to show empty folders in Package View.- static final intFlag to show the folder/package contents file items.- static final intFlag to show the GProp sub-properties for the end-node of a DesignerProp.- static final intThe default flags in the Navigator.- static final intTo display only folders.
- Method SummaryModifier and TypeMethodDescription- 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.- 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.- getCNParent- (int flags) Gets the parent for Common Navigator.- getCNStyledText- (int flags) Gets the label text 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.- boolean- hasCNChildren- (int flags) Returns whether the given element has children for the Common Navigator.
- Field Details- EMPTY_ARRAYAn empty array.
- FLAG_PACKAGE_VIEWstatic final int FLAG_PACKAGE_VIEWFlag to show package view, when not set, it is hierarchical.- See Also:
 
- FLAG_SHOW_EMPTY_MODULE_FOLDERSstatic final int FLAG_SHOW_EMPTY_MODULE_FOLDERSFlag to show empty main folder in Package View.- See Also:
 
- FLAG_SHOW_EMPTY_PACKAGESstatic final int FLAG_SHOW_EMPTY_PACKAGESFlag to show empty folders in Package View.- See Also:
 
- FLAG_SHOW_FILE_ITEMSstatic final int FLAG_SHOW_FILE_ITEMSFlag to show the folder/package contents file items.- See Also:
 
- FLAG_SHOW_DESIGNER_PROPERTIESstatic final int FLAG_SHOW_DESIGNER_PROPERTIESFlag to show the DesignerProp's in a file's data container.- See Also:
 
- FLAG_SHOW_SUBPROPERTIESstatic final int FLAG_SHOW_SUBPROPERTIESFlag to show the GProp sub-properties for the end-node of a DesignerProp.- See Also:
 
- FLAG_ADD_FOLDER_PACKAGE_LOCATIONstatic final int FLAG_ADD_FOLDER_PACKAGE_LOCATIONFlag to add a location to the package or folder.- See Also:
 
- FLAG_ADD_FILE_ITEM_PACKAGE_LOCATIONstatic final int FLAG_ADD_FILE_ITEM_PACKAGE_LOCATIONFlag to add a location to the package or folder of a file item.- See Also:
 
- FLAG_ADD_FOLDER_PROJECTstatic final int FLAG_ADD_FOLDER_PROJECTFlag to add the project name to a package or folder.- See Also:
 
- FLAG_ADD_FILE_ITEM_PROJECTstatic final int FLAG_ADD_FILE_ITEM_PROJECTFlag to add the project name to a file item.- See Also:
 
- FLAG_JAVA_SUPPORTstatic final int FLAG_JAVA_SUPPORTFlag to add support for Java elements.- See Also:
 
- FLAGS_NORMALstatic final int FLAGS_NORMALThe default flags in the Navigator.- See Also:
 
- FLAG_CUSTOM_1static final int FLAG_CUSTOM_1Custom flag 1.- See Also:
 
- FLAG_CUSTOM_2static final int FLAG_CUSTOM_2Custom flag 2.- See Also:
 
- FLAG_CUSTOM_3static final int FLAG_CUSTOM_3Custom flag 3.- See Also:
 
- FLAGS_ONLY_FOLDERSstatic final int FLAGS_ONLY_FOLDERSTo display only folders.- See Also:
 
- CN_PREFERENCE_FLAGS_NAMEThe Preferences string used to store flags for the Common Viewer content provider and label provider.- See Also:
 
- DEFAULT_COMPARATORThe default comparator.
 
- Method Details- getCNParentGets the parent for Common Navigator.- 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).
 
- getCNCategoryint 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.- Returns:
- This method returns zero, i.e. no category.
 
- getCNComparatorIViewerComparator getCNComparator()Get 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. - Returns:
- The default comparator. Subclasses can inhibit sorting by returning null.
 
- hasCNChildrenboolean hasCNChildren- (int flags) Returns whether the given element has children for the Common Navigator.- 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.- 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.- Parameters:
- 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.- 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.
 
- getCNTextGets the label text for the Common Navigator.- Returns:
- String or or nullif there is no text.
 
- getCNTextGets the label text for the Common Navigator.- 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.
 
- getCNStyledTextGets the label text for the Common Navigator.- 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.
 
- 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. - Returns:
- A description for the status bar view, or null if not available.