com.ibm.etools.systems.core.ui.view.team
Class SystemTeamViewCompileCommandAdapter
java.lang.Object
com.ibm.etools.systems.core.ui.view.AbstractSystemViewAdapter
com.ibm.etools.systems.core.ui.view.team.SystemTeamViewCompileCommandAdapter
- All Implemented Interfaces:
- IRemoteObjectIdentifier, ISystemDragDropAdapter, ISystemPropertyConstants, ISystemUserIdConstants, ISystemViewActionFilter, ISystemViewConstants, ISystemViewElementAdapter
- public class SystemTeamViewCompileCommandAdapter
- extends AbstractSystemViewAdapter
- implements ISystemViewElementAdapter, ISystemViewConstants, ISystemUserIdConstants
Adapter for displaying and processing SystemTeamViewCompileCommandNode objects in tree views, such as
the Team view.
Fields inherited from class com.ibm.etools.systems.core.ui.view.AbstractSystemViewAdapter |
_lastResults, _lastSelected, canceledObject, EMPTY_STRING_LIST, emptyList, errorObject, filterString, MEMENTO_DELIM, MSG_SUB_PREFIX, MSG_SUB1, MSG_SUB2, msgList, nullObject, propertySourceInput, shell, viewer |
Fields inherited from interface com.ibm.etools.systems.core.ui.view.ISystemViewConstants |
RESID_PREFIX, RESID_PROPERTY_ALIASNAME_ROOT, RESID_PROPERTY_ARCHIVE_COMMENT_DESCRIPTION, RESID_PROPERTY_ARCHIVE_COMMENT_LABEL, RESID_PROPERTY_ARCHIVE_COMMENT_ROOT, RESID_PROPERTY_ARCHIVE_EXPANDEDSIZE_DESCRIPTION, RESID_PROPERTY_ARCHIVE_EXPANDEDSIZE_LABEL, RESID_PROPERTY_ARCHIVE_EXPANDEDSIZE_ROOT, RESID_PROPERTY_ARCHIVE_EXPANDEDSIZE_VALUE, RESID_PROPERTY_COMMAND_ROOT, RESID_PROPERTY_COMMENT_ROOT, RESID_PROPERTY_COMPILETYPE_TYPES_DESCRIPTION, RESID_PROPERTY_COMPILETYPE_TYPES_LABEL, RESID_PROPERTY_CONNDESCRIPTION_ROOT, RESID_PROPERTY_CONNECTED_ROOT, RESID_PROPERTY_CONNECTION_TYPE_VALUE, RESID_PROPERTY_CONNECTIONSTATUS_CONNECTED_VALUE, RESID_PROPERTY_CONNECTIONSTATUS_DISCONNECTED_VALUE, RESID_PROPERTY_CONNECTIONSTATUS_ROOT, RESID_PROPERTY_DEFAULTUSERID_ROOT, RESID_PROPERTY_ERROR_FILENAME_ROOT, RESID_PROPERTY_ERROR_LINENO_ROOT, RESID_PROPERTY_FILE_CANONICAL_PATH_ROOT, RESID_PROPERTY_FILE_CLASSIFICATION_ROOT, RESID_PROPERTY_FILE_HIDDEN_DESCRIPTION, RESID_PROPERTY_FILE_HIDDEN_LABEL, RESID_PROPERTY_FILE_HIDDEN_ROOT, RESID_PROPERTY_FILE_LASTMODIFIED_DESCRIPTION, RESID_PROPERTY_FILE_LASTMODIFIED_LABEL, RESID_PROPERTY_FILE_LASTMODIFIED_ROOT, RESID_PROPERTY_FILE_PATH_DESCRIPTION, RESID_PROPERTY_FILE_PATH_LABEL, RESID_PROPERTY_FILE_PATH_ROOT, RESID_PROPERTY_FILE_READABLE_DESCRIPTION, RESID_PROPERTY_FILE_READABLE_LABEL, RESID_PROPERTY_FILE_READABLE_ROOT, RESID_PROPERTY_FILE_READONLY_DESCRIPTION, RESID_PROPERTY_FILE_READONLY_LABEL, RESID_PROPERTY_FILE_READONLY_ROOT, RESID_PROPERTY_FILE_SIZE_DESCRIPTION, RESID_PROPERTY_FILE_SIZE_LABEL, RESID_PROPERTY_FILE_SIZE_ROOT, RESID_PROPERTY_FILE_SIZE_VALUE, RESID_PROPERTY_FILE_TYPE_FILE_VALUE, RESID_PROPERTY_FILE_TYPE_FOLDER_VALUE, RESID_PROPERTY_FILE_TYPE_ROOT_VALUE, RESID_PROPERTY_FILE_WRITABLE_DESCRIPTION, RESID_PROPERTY_FILE_WRITABLE_LABEL, RESID_PROPERTY_FILE_WRITABLE_ROOT, RESID_PROPERTY_FILTERPARENTFILTER_ROOT, RESID_PROPERTY_FILTERPARENTPOOL_ROOT, RESID_PROPERTY_FILTERPOOL_TYPE_VALUE, RESID_PROPERTY_FILTERPOOLREFERENCE_IS_CONNECTIONPRIVATE_ROOT, RESID_PROPERTY_FILTERPOOLREFERENCE_PARENTPOOL_ROOT, RESID_PROPERTY_FILTERPOOLREFERENCE_PARENTPROFILE_ROOT, RESID_PROPERTY_FILTERPOOLREFERENCE_RELATEDCONNECTION_ROOT, RESID_PROPERTY_FILTERPOOLREFERENCE_TYPE_VALUE, RESID_PROPERTY_FILTERS_DESCRIPTION, RESID_PROPERTY_FILTERS_LABEL, RESID_PROPERTY_FILTERSTRING_ROOT, RESID_PROPERTY_FILTERSTRINGS_COUNT_ROOT, RESID_PROPERTY_FILTERSTRINGS_ROOT, RESID_PROPERTY_FILTERTYPE_ROOT, RESID_PROPERTY_HOSTNAME_ROOT, RESID_PROPERTY_MESSAGE_TYPE_VALUE, RESID_PROPERTY_NBRCHILDREN_ROOT, RESID_PROPERTY_NBRCHILDRENRETRIEVED_ROOT, RESID_PROPERTY_ORIGIN_IBM_VALUE, RESID_PROPERTY_ORIGIN_IBMUSER_VALUE, RESID_PROPERTY_ORIGIN_ISV_VALUE, RESID_PROPERTY_ORIGIN_ISVUSER_VALUE, RESID_PROPERTY_ORIGIN_ROOT, RESID_PROPERTY_ORIGIN_USER_VALUE, RESID_PROPERTY_PORT_ROOT, RESID_PROPERTY_PROFILE_ROOT, RESID_PROPERTY_PROFILE_TYPE_VALUE, RESID_PROPERTY_PROFILESTATUS_ACTIVE_LABEL, RESID_PROPERTY_PROFILESTATUS_NOTACTIVE_LABEL, RESID_PROPERTY_PROFILESTATUS_ROOT, RESID_PROPERTY_SEARCH_LINE_ROOT, RESID_PROPERTY_SHELL_CONTEXT_ROOT, RESID_PROPERTY_SHELL_STATUS_ACTIVE_VALUE, RESID_PROPERTY_SHELL_STATUS_INACTIVE_VALUE, RESID_PROPERTY_SHELL_STATUS_ROOT, RESID_PROPERTY_STATUS_CANCELLED_VALUE, RESID_PROPERTY_STATUS_DESCRIPTION, RESID_PROPERTY_STATUS_EXPANDED_VALUE, RESID_PROPERTY_STATUS_LABEL, RESID_PROPERTY_STATUS_NOTRETRIEVED_VALUE, RESID_PROPERTY_STATUS_RETRIEVED_VALUE, RESID_PROPERTY_SUBSYSTEM_TYPE_VALUE, RESID_PROPERTY_SYSTEMTYPE_ROOT, RESID_PROPERTY_TEAM_CATEGORY_TYPE_VALUE, RESID_PROPERTY_TEAM_COMPILECMD_TYPE_VALUE, RESID_PROPERTY_TEAM_COMPILETYPE_TYPE_VALUE, RESID_PROPERTY_TEAM_SSFACTORY_TYPE_VALUE, RESID_PROPERTY_TEAM_USERACTION_TYPE_VALUE, RESID_PROPERTY_USERACTION_DOMAIN_ALL_VALUE, RESID_PROPERTY_USERACTION_DOMAIN_ROOT, RESID_PROPERTY_USERACTION_VENDOR_ROOT, RESID_PROPERTY_USERID_ROOT, RESID_PROPERTY_VIRTUALFILE_COMMENT_DESCRIPTION, RESID_PROPERTY_VIRTUALFILE_COMMENT_LABEL, RESID_PROPERTY_VIRTUALFILE_COMMENT_ROOT, RESID_PROPERTY_VIRTUALFILE_COMPRESSEDSIZE_DESCRIPTION, RESID_PROPERTY_VIRTUALFILE_COMPRESSEDSIZE_LABEL, RESID_PROPERTY_VIRTUALFILE_COMPRESSEDSIZE_ROOT, RESID_PROPERTY_VIRTUALFILE_COMPRESSEDSIZE_VALUE, RESID_PROPERTY_VIRTUALFILE_COMPRESSIONMETHOD_DESCRIPTION, RESID_PROPERTY_VIRTUALFILE_COMPRESSIONMETHOD_LABEL, RESID_PROPERTY_VIRTUALFILE_COMPRESSIONMETHOD_ROOT, RESID_PROPERTY_VIRTUALFILE_COMPRESSIONRATIO_DESCRIPTION, RESID_PROPERTY_VIRTUALFILE_COMPRESSIONRATIO_LABEL, RESID_PROPERTY_VIRTUALFILE_COMPRESSIONRATIO_ROOT, RESID_PROPERTY_VRM_ROOT |
Fields inherited from interface com.ibm.etools.systems.core.ui.view.ISystemPropertyConstants |
P_ARCHIVE_COMMENT, P_ARCHIVE_EXPANDEDSIZE, P_CCSID, P_COMMAND, P_COMMENT, P_COMPILETYPE_TYPES, P_DEFAULTUSERID, P_DESCRIPTION, P_ENVLIST, P_ERROR, P_ERROR_FILENAME, P_ERROR_LINENO, P_FILE_CANONICAL_PATH, P_FILE_CLASSIFICATION, P_FILE_HIDDEN, P_FILE_LASTMODIFIED, P_FILE_PATH, P_FILE_READABLE, P_FILE_READONLY, P_FILE_SIZE, P_FILE_WRITABLE, P_FILTER, P_FILTERS, P_FILTERSTRING, P_FILTERSTRINGS, P_FILTERSTRINGS_COUNT, P_HAS_CHILDREN, P_HOSTNAME, P_IS_ACTIVE, P_IS_CONNECTED, P_IS_CONNECTION_PRIVATE, P_NBRCHILDREN, P_NEWNAME, P_OK, P_ORIGIN, P_PARENT_FILTER, P_PARENT_FILTERPOOL, P_PASSWORD, P_PORT, P_PREFIX, P_PROFILE, P_RELATED_CONNECTION, P_SEARCH_LINE, P_SHELL_CONTEXT, P_SHELL_STATUS, P_SYSTEMTYPE, P_TYPE, P_USERACTION_DOMAIN, P_USERID, P_VENDOR, P_VIRTUAL_COMMENT, P_VIRTUAL_COMPRESSEDSIZE, P_VIRTUAL_COMPRESSIONMETHOD, P_VIRTUAL_COMPRESSIONRATIO, P_VRM |
Methods inherited from class com.ibm.etools.systems.core.ui.view.AbstractSystemViewAdapter |
addCommonRemoteActions, addDynamicPopupMenuActions, canDelete, canDrag, canDrop, canEdit, canRename, checkForNull, createSimplePropertyDescriptor, createSimplePropertyDescriptor, doDelete, doDrag, doDrop, doDrop, doRename, fetchDeferredChildren, getAdapter, getCancelledMessageObject, getCanonicalNewName, getChildren, getChildrenUsingExpandToFilter, getCurrentTreeView, getDefaultDescriptors, getEditableRemoteObject, getEditableValue, getEmptyMessageObject, getFailedMessageObject, getFilterString, getFilterStringFor, getFirstSelection, getInput, getInputMementoHandle, getLabel, getMementoHandle, getMementoHandleKey, getNameValidator, getPropertyDescriptors, getPropertyValue, getPropertyValue, getRemoteAdapter, getRemoteSourceType, getRemoteSubSubType, getRule, getShell, getSubSystem, getSystemFetchOperation, getSystemTree, getTranslatedFalse, getTranslatedNo, getTranslatedNotApplicable, getTranslatedNotAvailable, getTranslatedTrue, getTranslatedYes, getUniquePropertyDescriptors, getViewer, handleDoubleClick, initMsgObjects, isContainer, isPromptable, isPropertySet, namesAreEqual, resetPropertyValue, saveExpansionState, selectionChanged, setFilterString, setInput, setPropertySourceInput, setPropertyValue, setShell, setViewer, showDelete, showGenericShowInTableAction, showOpenViewActions, showRefresh, showRename, sub, supportsDeferredQueries, testAttribute, validateDrop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.etools.systems.core.ui.view.ISystemViewElementAdapter |
canDelete, canRename, doDelete, doRename, getCanonicalNewName, getChildren, getChildrenUsingExpandToFilter, getFilterString, getInput, getInputMementoHandle, getMementoHandle, getMementoHandleKey, getNameValidator, getPropertyValue, getShell, getSubSystem, getUniquePropertyDescriptors, getViewer, handleDoubleClick, isPromptable, namesAreEqual, saveExpansionState, selectionChanged, setFilterString, setInput, setPropertySourceInput, setShell, setViewer, showDelete, showGenericShowInTableAction, showOpenViewActions, showRefresh, showRename, supportsDeferredQueries |
copyright
public static final String copyright
- See Also:
- Constant Field Values
SystemTeamViewCompileCommandAdapter
public SystemTeamViewCompileCommandAdapter()
addActions
public void addActions(SystemMenuManager menu,
IStructuredSelection selection,
Shell shell,
String menuGroup)
- Returns any actions that should be contributed to the popup menu
for the given element.
- Specified by:
addActions
in interface ISystemViewElementAdapter
- Specified by:
addActions
in class AbstractSystemViewAdapter
- Parameters:
menu
- The menu to contribute actions toselection
- The window's current selection.shell
- Shell of viewermenuGroup
- recommended menu group to add actions to. If added to another group, you must be sure to create that group first.- See Also:
ISystemViewElementAdapter.addActions(SystemMenuManager, IStructuredSelection, Shell, String)
getImageDescriptor
public ImageDescriptor getImageDescriptor(Object element)
- Returns an image descriptor for the image. More efficient than getting the image.
- Specified by:
getImageDescriptor
in interface ISystemViewElementAdapter
- Specified by:
getImageDescriptor
in class AbstractSystemViewAdapter
- Parameters:
element
- The element for which an image is desired
getText
public String getText(Object element)
- Return the label for this object
- Specified by:
getText
in interface ISystemViewElementAdapter
- Specified by:
getText
in class AbstractSystemViewAdapter
- See Also:
AbstractSystemViewAdapter.getName(Object)
,
AbstractSystemViewAdapter.getAbsoluteName(Object)
getName
public String getName(Object element)
- Return the name of this object, which may be different than the display text ({#link #getText(Object)}.
Called by common rename and delete actions.
- Specified by:
getName
in interface ISystemViewElementAdapter
- Overrides:
getName
in class AbstractSystemViewAdapter
- See Also:
AbstractSystemViewAdapter.getText(Object)
,
AbstractSystemViewAdapter.getAbsoluteName(Object)
getAbsoluteName
public String getAbsoluteName(Object element)
- Return the absolute name, versus just display name, of this object
- Specified by:
getAbsoluteName
in interface IRemoteObjectIdentifier
- Specified by:
getAbsoluteName
in class AbstractSystemViewAdapter
- See Also:
AbstractSystemViewAdapter.getText(Object)
,
AbstractSystemViewAdapter.getName(Object)
getType
public String getType(Object element)
- Return the type label for this object
- Specified by:
getType
in interface ISystemViewElementAdapter
- Specified by:
getType
in class AbstractSystemViewAdapter
getStatusLineText
public String getStatusLineText(Object element)
- Return the string to display in the status line when the given object is selected.
- Specified by:
getStatusLineText
in interface ISystemViewElementAdapter
- Overrides:
getStatusLineText
in class AbstractSystemViewAdapter
getParent
public Object getParent(Object element)
- Return the parent of this object. We return the RemoteSystemsConnections project
- Specified by:
getParent
in interface ISystemViewElementAdapter
- Specified by:
getParent
in class AbstractSystemViewAdapter
getChildren
public Object[] getChildren(Object element)
- Return the children of this profile.
- Specified by:
getChildren
in interface ISystemViewElementAdapter
- Specified by:
getChildren
in class AbstractSystemViewAdapter
hasChildren
public boolean hasChildren(Object element)
- Return true if this profile has children. We return true.
- Specified by:
hasChildren
in interface ISystemViewElementAdapter
- Specified by:
hasChildren
in class AbstractSystemViewAdapter
internalGetPropertyDescriptors
protected org.eclipse.ui.views.properties.IPropertyDescriptor[] internalGetPropertyDescriptors()
- Return our unique property descriptors, which getPropertyDescriptors adds to the common properties.
- Specified by:
internalGetPropertyDescriptors
in class AbstractSystemViewAdapter
- Returns:
- an array containing all descriptors to be added to the default set of descriptors, or null
if no additional properties desired.
- See Also:
AbstractSystemViewAdapter.createSimplePropertyDescriptor(String,ResourceBundle,String)
internalGetPropertyValue
public Object internalGetPropertyValue(Object key)
- Returns the current value for the named property.
The parent handles P_TEXT and P_TYPE only, and we augment that here.
- Specified by:
internalGetPropertyValue
in class AbstractSystemViewAdapter
- Parameters:
key
- - the name of the property as named by its property descriptor
- Returns:
- the current value of the property
Copyright © 2005 IBM Corp. All Rights Reserved.
Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.