|
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
ISeriesDataElementAdapter is the superclass for all iSeries adapters.
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 | |
---|---|
ISeriesDataElementAdapter()
|
Method Summary | |
---|---|
boolean |
canDrag(Object element)
Indicates whether the specified object can be copied or not. |
boolean |
canDrop(Object element)
Indicates whether the specified object can have another object copied to it |
boolean |
canEdit(Object element)
Initial implementation for ISystemRemoteElementAdapter. |
protected String |
checkForCollision(Shell shell,
ISeriesFile targetFile,
String oldName)
|
protected String |
checkForCollision(Shell shell,
ISeriesFile targetFile,
String oldName,
boolean validateName)
|
protected String |
checkForCollision(Shell shell,
ISeriesLibrary targetLibrary,
String oldName,
String oldType)
|
Object |
doDrag(Object object,
boolean sameSubSystemType,
IProgressMonitor monitor)
Performs a drag copy operation. |
Object |
doDrop(Object src,
Object to,
boolean sameSystemType,
boolean sameSystem,
int srcType,
IProgressMonitor monitor)
Perform a copy via drag and drop. |
String |
getAbsoluteName(Object object)
Return the unique ID for the given object within the subsystem. |
protected com.ibm.etools.systems.subsystems.SubSystem |
getCmdSubSystem(Object element)
|
static com.ibm.etools.systems.dstore.core.model.DataElement |
getDataElement(Object element)
Get the DataElement given the input. |
com.ibm.etools.systems.core.resources.ISystemEditableRemoteObject |
getEditableRemoteObject(Object element)
Initial implementation for ISystemRemoteElementAdapter. |
protected com.ibm.etools.systems.subsystems.SubSystem |
getFileSubSystem(Object element)
getFileSubSystem - Give a DataElement this method will return a SubSystem object that is associated with the DataElement. |
String |
getFilterStringFor(Object object)
Return a filter string that corresponds to this object. |
protected com.ibm.etools.systems.subsystems.SubSystem |
getIFSFileSubSystem(Object element)
|
ISeriesConnection |
getISeriesConnection(Object element)
Returns the ISeriesConnection from which this object originated. |
protected com.ibm.etools.systems.subsystems.SubSystem |
getJobSubSystem(Object element)
|
com.ibm.etools.systems.subsystems.SubSystem |
getSubSystem(Object element)
|
com.ibm.etools.systems.subsystems.ISystem |
getSystem(Object element)
Retreive the ISystem object used for the current connection |
String |
getText(Object element)
|
protected boolean |
isLibrary(com.ibm.etools.systems.dstore.core.model.DataElement element)
|
protected boolean |
isMember(com.ibm.etools.systems.dstore.core.model.DataElement element)
|
protected boolean |
isObject(com.ibm.etools.systems.dstore.core.model.DataElement element)
|
protected boolean |
isPFObject(com.ibm.etools.systems.dstore.core.model.DataElement element)
|
protected boolean |
isSrcFile(com.ibm.etools.systems.dstore.core.model.DataElement element)
|
protected boolean |
isSrcMember(com.ibm.etools.systems.dstore.core.model.DataElement element)
|
boolean |
refreshRemoteObject(Object oldElement,
Object newElement)
Some view has updated the name or properties of this remote object. |
boolean |
validateDrop(Object src,
Object target,
boolean sameSystem)
Return true if it is valid for the src object to be dropped in the target |
Methods inherited from class com.ibm.etools.iseries.core.ui.view.ISeriesBaseAdapter |
---|
getDescription, getRemoteSubSubType, getRemoteSubType, getRemoteType, getStatusLineText, getSubSystemFactoryId, supportsUserDefinedActions |
Methods inherited from class com.ibm.etools.systems.core.ui.view.AbstractSystemViewAdapter |
---|
addActions, addCommonRemoteActions, addDynamicPopupMenuActions, canDelete, canRename, checkForNull, createSimplePropertyDescriptor, createSimplePropertyDescriptor, doDelete, doDrop, doRename, fetchDeferredChildren, getAdapter, getCancelledMessageObject, getCanonicalNewName, getChildren, getChildren, getChildrenUsingExpandToFilter, getCurrentTreeView, getDefaultDescriptors, getEditableValue, getEmptyMessageObject, getFailedMessageObject, getFilterString, getFirstSelection, getImageDescriptor, getInput, getInputMementoHandle, getLabel, getMementoHandle, getMementoHandleKey, getName, getNameValidator, getParent, getPropertyDescriptors, getPropertyValue, getPropertyValue, getRemoteAdapter, getRemoteSourceType, getRule, getShell, getSystemFetchOperation, getSystemTree, getTranslatedFalse, getTranslatedNo, getTranslatedNotApplicable, getTranslatedNotAvailable, getTranslatedTrue, getTranslatedYes, getType, getUniquePropertyDescriptors, getViewer, handleDoubleClick, hasChildren, initMsgObjects, internalGetPropertyDescriptors, internalGetPropertyValue, isContainer, isPromptable, isPropertySet, namesAreEqual, resetPropertyValue, saveExpansionState, selectionChanged, setFilterString, setInput, setPropertySourceInput, setPropertyValue, setShell, setViewer, showDelete, showGenericShowInTableAction, showOpenViewActions, showRefresh, showRename, 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 |
---|
getAbsoluteParentName, getName, getRemoteParent, getRemoteParentNamesInUse, getRemoteSourceType, getRemoteTypeCategory |
Field Detail |
public static final String copyright
Constructor Detail |
public ISeriesDataElementAdapter()
Method Detail |
public String getText(Object element)
getText
in interface com.ibm.etools.systems.core.ui.view.ISystemViewElementAdapter
AbstractSystemViewAdapter#getText(Object)
protected com.ibm.etools.systems.subsystems.SubSystem getFileSubSystem(Object element)
protected com.ibm.etools.systems.subsystems.SubSystem getJobSubSystem(Object element)
protected com.ibm.etools.systems.subsystems.SubSystem getCmdSubSystem(Object element)
protected com.ibm.etools.systems.subsystems.SubSystem getIFSFileSubSystem(Object element)
public com.ibm.etools.systems.subsystems.ISystem getSystem(Object element)
public static com.ibm.etools.systems.dstore.core.model.DataElement getDataElement(Object element)
public ISeriesConnection getISeriesConnection(Object element)
public boolean refreshRemoteObject(Object oldElement, Object newElement)
This is called by viewers like SystemView in response to rename and property change events.
refreshRemoteObject
in interface com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter
oldElement
- the element that was found in the treenewElement
- the updated element that was passed in the REFRESH_REMOTE event
public com.ibm.etools.systems.subsystems.SubSystem getSubSystem(Object element)
getSubSystem
in interface com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter
public String getAbsoluteName(Object object)
getAbsoluteName
in interface com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter
protected boolean isSrcMember(com.ibm.etools.systems.dstore.core.model.DataElement element)
protected boolean isMember(com.ibm.etools.systems.dstore.core.model.DataElement element)
protected boolean isObject(com.ibm.etools.systems.dstore.core.model.DataElement element)
protected boolean isPFObject(com.ibm.etools.systems.dstore.core.model.DataElement element)
protected boolean isSrcFile(com.ibm.etools.systems.dstore.core.model.DataElement element)
protected boolean isLibrary(com.ibm.etools.systems.dstore.core.model.DataElement element)
public boolean canDrop(Object element)
canDrop
in interface com.ibm.etools.systems.core.ui.view.ISystemDragDropAdapter
element
- the object we want to try to copy to
public boolean validateDrop(Object src, Object target, boolean sameSystem)
validateDrop
in interface com.ibm.etools.systems.core.ui.view.ISystemDragDropAdapter
src
- the object to droptarget
- the object which src is dropped insameSystem
- whether this is the same system
public boolean canDrag(Object element)
canDrag
in interface com.ibm.etools.systems.core.ui.view.ISystemDragDropAdapter
element
- the object we want to try to copy
public Object doDrag(Object object, boolean sameSubSystemType, IProgressMonitor monitor)
doDrag
in interface com.ibm.etools.systems.core.ui.view.ISystemDragDropAdapter
monitor
- a progress monitor
public Object doDrop(Object src, Object to, boolean sameSystemType, boolean sameSystem, int srcType, IProgressMonitor monitor)
doDrop
in interface com.ibm.etools.systems.core.ui.view.ISystemDragDropAdapter
src
- the object to be copied. If the target and source are not on the same system, then this is a
temporary object produced by the doDrag.sameSystem
- an indication whether the target and source reside on the same type of systemmonitor
- the progress monitor
protected String checkForCollision(Shell shell, ISeriesFile targetFile, String oldName)
protected String checkForCollision(Shell shell, ISeriesFile targetFile, String oldName, boolean validateName)
protected String checkForCollision(Shell shell, ISeriesLibrary targetLibrary, String oldName, String oldType)
public boolean canEdit(Object element)
canEdit
in interface com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter
canEdit
in class ISeriesBaseAdapter
public com.ibm.etools.systems.core.resources.ISystemEditableRemoteObject getEditableRemoteObject(Object element)
getEditableRemoteObject
in interface com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter
getEditableRemoteObject
in class ISeriesBaseAdapter
public String getFilterStringFor(Object object)
getFilterStringFor
in interface com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter
getFilterStringFor
in class ISeriesBaseAdapter
object
- the object to obtain a filter string for
|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |