|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.core.ui.view.AbstractSystemViewAdapter
com.ibm.etools.iseries.core.ui.view.ISeriesBaseAdapter
com.ibm.etools.iseries.core.ui.view.ISeriesDataElementAdapter
com.ibm.etools.iseries.core.ui.view.ISeriesJobAdapter
This class adapts DataElements that represents iSeries jobs
Field Summary | |
---|---|
static String |
copyright
|
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.subsystems.IRemoteObjectIdentifier |
---|
Copyright |
Fields inherited from interface com.ibm.etools.systems.core.ui.view.ISystemViewElementAdapter |
---|
noActions |
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 |
Fields inherited from interface org.eclipse.jface.viewers.IBasicPropertyConstants |
---|
P_CHILDREN, P_IMAGE, P_PARENT, P_TEXT |
Constructor Summary | |
---|---|
ISeriesJobAdapter()
|
Method Summary | |
---|---|
void |
addActions(com.ibm.etools.systems.core.ui.SystemMenuManager menu,
IStructuredSelection selection,
Shell shell,
String menuGroup)
Called by SystemView viewer when user right clicks. |
void |
addActions(com.ibm.etools.systems.core.ui.SystemMenuManager menu,
IStructuredSelection selection,
Shell shell,
String menuGroup,
boolean jobMonitor)
Called by SystemView viewer when user right clicks. |
String |
getAbsoluteName(Object element)
Return fully qualified name that uniquely identifies this object within its subsystem |
String |
getAbsoluteParentName(Object element)
Return fully qualified name that uniquely identifies this remote object's remote parent within its subsystem |
Object[] |
getChildren(Object element)
|
String |
getDescription(Object element)
Get the description for the selected iSeries object. |
ImageDescriptor |
getImageDescriptor(Object element)
Returns an image descriptor for the image. |
String |
getJobStatus(Object element)
Return job status |
Object |
getParent(Object element)
|
IPropertyDescriptor[] |
getPropertyDescriptors()
Returns the current collection of property descriptors for job objects. |
static Object |
getPropertyFromAttribute(String attribute,
String name)
|
Object |
getPropertyValue(Object key)
Returns the current value for the named property. |
Object |
getRemoteParent(Shell shell,
Object element)
Given a remote object, returns it remote parent object. |
String[] |
getRemoteParentNamesInUse(Shell shell,
Object element)
Given a remote object, return the unqualified names of the objects contained in that parent. |
String |
getRemoteSourceType(Object element)
Return the source type of the selected object. |
String |
getRemoteSubSubType(Object element)
Return the untranslated sub-subtype for this object. |
String |
getRemoteSubType(Object element)
Return the untranslated subtype of this element. |
String |
getRemoteType(Object element)
Return the untranslated type property for this object. |
String |
getRemoteTypeCategory(Object element)
Return the untranslated type category property for this object. |
com.ibm.etools.systems.subsystems.SubSystem |
getSubSystem(Object element)
|
String |
getSubSystemFactoryId(Object element)
Return the subsystem factory id that owns this remote object |
String |
getType(Object element)
|
IPropertyDescriptor[] |
getUniquePropertyDescriptors()
|
boolean |
hasChildren(Object element)
|
protected IPropertyDescriptor[] |
internalGetPropertyDescriptors()
Return our unique property descriptors. |
protected Object |
internalGetPropertyValue(Object key)
Return our unique property values. |
boolean |
saveExpansionState(Object element)
Somtimes we don't want to remember an element's expansion state, such as for temporarily inserted messages. |
boolean |
showDelete(Object element)
Return true if we should show the delete action in the popup for the given element. |
boolean |
showRename(Object element)
Return true if we should show the rename action in the popup for the given element. |
Methods inherited from class com.ibm.etools.iseries.core.ui.view.ISeriesDataElementAdapter |
---|
canDrag, canDrop, canEdit, checkForCollision, checkForCollision, checkForCollision, doDrag, doDrop, getCmdSubSystem, getDataElement, getEditableRemoteObject, getFileSubSystem, getFilterStringFor, getIFSFileSubSystem, getISeriesConnection, getJobSubSystem, getSystem, getText, isLibrary, isMember, isObject, isPFObject, isSrcFile, isSrcMember, refreshRemoteObject, validateDrop |
Methods inherited from class com.ibm.etools.iseries.core.ui.view.ISeriesBaseAdapter |
---|
getStatusLineText, supportsUserDefinedActions |
Methods inherited from class com.ibm.etools.systems.core.ui.view.AbstractSystemViewAdapter |
---|
addCommonRemoteActions, addDynamicPopupMenuActions, canDelete, canRename, checkForNull, createSimplePropertyDescriptor, createSimplePropertyDescriptor, doDelete, doDrop, doRename, fetchDeferredChildren, getAdapter, getCancelledMessageObject, getCanonicalNewName, getChildren, getChildrenUsingExpandToFilter, getCurrentTreeView, getDefaultDescriptors, getEditableValue, getEmptyMessageObject, getFailedMessageObject, getFilterString, getFirstSelection, getInput, getInputMementoHandle, getLabel, getMementoHandle, getMementoHandleKey, getName, getNameValidator, getPropertyValue, getRemoteAdapter, getRule, getShell, getSystemFetchOperation, getSystemTree, getTranslatedFalse, getTranslatedNo, getTranslatedNotApplicable, getTranslatedNotAvailable, getTranslatedTrue, getTranslatedYes, getViewer, handleDoubleClick, initMsgObjects, isContainer, isPromptable, isPropertySet, namesAreEqual, resetPropertyValue, selectionChanged, setFilterString, setInput, setPropertySourceInput, setPropertyValue, setShell, setViewer, showGenericShowInTableAction, showOpenViewActions, showRefresh, sub, supportsDeferredQueries, testAttribute |
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.ISystemRemoteElementAdapter |
---|
getName |
Field Detail |
public static final String copyright
Constructor Detail |
public ISeriesJobAdapter()
Method Detail |
public boolean showDelete(Object element)
public boolean showRename(Object element)
public void addActions(com.ibm.etools.systems.core.ui.SystemMenuManager menu, IStructuredSelection selection, Shell shell, String menuGroup)
menu
- The context menu to which we can add actions using either add or appendToGroupshell
- The parent shell of the SystemView viewer, for anchoring dialogsmenuGroup
- The default menu group (GROUP_ADAPTERS) we should use for appendToGroup, unless
we wish to add our actions to one of the other groups in ISystemContextMenuConstants.public void addActions(com.ibm.etools.systems.core.ui.SystemMenuManager menu, IStructuredSelection selection, Shell shell, String menuGroup, boolean jobMonitor)
menu
- The context menu to which we can add actions using either add or appendToGroupshell
- The parent shell of the SystemView viewer, for anchoring dialogsmenuGroup
- The default menu group (GROUP_ADAPTERS) we should use for appendToGroup, unless
we wish to add our actions to one of the other groups in ISystemContextMenuConstants.jobMonitor
- Set this parameter to to true if being called from the job monitor (so the
"Add To Job Monitor" action is not included.public ImageDescriptor getImageDescriptor(Object element)
element
- The element for which an image is desiredpublic Object getParent(Object element)
AbstractSystemViewAdapter#getParent(Object)
public String getType(Object element)
AbstractSystemViewAdapter#getType(Object)
public boolean hasChildren(Object element)
AbstractSystemViewAdapter#hasChildren(Object)
public Object[] getChildren(Object element)
AbstractSystemViewAdapter#getChildren(Object)
public IPropertyDescriptor[] getUniquePropertyDescriptors()
public IPropertyDescriptor[] getPropertyDescriptors()
protected IPropertyDescriptor[] internalGetPropertyDescriptors()
public Object getPropertyValue(Object key)
key
- the key of the property as named by its property descriptor
protected Object internalGetPropertyValue(Object key)
public static Object getPropertyFromAttribute(String attribute, String name)
public String getJobStatus(Object element)
public String getAbsoluteName(Object element)
getAbsoluteName
in interface com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter
getAbsoluteName
in class ISeriesDataElementAdapter
public String getAbsoluteParentName(Object element)
public String getRemoteTypeCategory(Object element)
com.ibm.etool.iseries.core.IISeriesRemoteTypes
public String getRemoteType(Object element)
getRemoteType
in interface com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter
getRemoteType
in class ISeriesBaseAdapter
IISeriesRemoteJobTypes
public String getRemoteSubType(Object element)
getRemoteSubType
in interface com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter
getRemoteSubType
in class ISeriesBaseAdapter
IISeriesRemoteJobTypes
public String getRemoteSubSubType(Object element)
getRemoteSubSubType
in interface com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter
getRemoteSubSubType
in class ISeriesBaseAdapter
public String getRemoteSourceType(Object element)
public String getSubSystemFactoryId(Object element)
getSubSystemFactoryId
in interface com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter
getSubSystemFactoryId
in class ISeriesBaseAdapter
public com.ibm.etools.systems.subsystems.SubSystem getSubSystem(Object element)
getSubSystem
in interface com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter
getSubSystem
in class ISeriesDataElementAdapter
ISystemRemoteElementAdapter#getSubSystem(Object)
public Object getRemoteParent(Shell shell, Object element) throws Exception
The shell is required in order to set the cursor to a busy state if a remote trip is required.
Exception
public String[] getRemoteParentNamesInUse(Shell shell, Object element) throws Exception
Exception
public String getDescription(Object element)
getDescription
in class ISeriesBaseAdapter
public boolean saveExpansionState(Object element)
Assumption: since jobs are transient in nature we do not remember their expansion state, so return false here!
|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |