|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is an interface that only remote system objects supply adapters for.
This interface is designed to allow remote property pages to be registered against specific remote system objects of specific name, type or subtype.
Field Summary | |
---|---|
static String |
copyright
|
Fields inherited from interface com.ibm.etools.systems.subsystems.IRemoteObjectIdentifier |
---|
Copyright |
Method Summary | |
---|---|
boolean |
canEdit(Object object)
Indicates whether the specified object can be edited or not. |
String |
getAbsoluteName(Object element)
Return the fully qualified name of this remote object. |
String |
getAbsoluteParentName(Object element)
Return fully qualified name that uniquely identifies this remote object's remote parent within its subsystem. |
ISystemEditableRemoteObject |
getEditableRemoteObject(Object object)
Return the remote edit wrapper for this object. |
String |
getFilterStringFor(Object object)
Return a filter string that corresponds to this object. |
String |
getName(Object element)
Return the name of this object, which may be different than the display text ({#link #getText(Object)}. |
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 a value for the sub-subtype property for this object. |
String |
getRemoteSubType(Object element)
Return a value for the subtype property for this object. |
String |
getRemoteType(Object element)
Return a value for the type property for this object The value must not be translated, so that property pages registered via xml can subset by it. |
String |
getRemoteTypeCategory(Object element)
Return a value for the type category property for this object The value must not be translated, so that property pages registered via xml can subset by it. |
SubSystem |
getSubSystem(Object element)
Return the subsystem that is responsible for getting this remote object. |
String |
getSubSystemFactoryId(Object element)
Return the subsystem factory id that owns this remote object The value must not be translated, so that property pages registered via xml can subset by it. |
boolean |
refreshRemoteObject(Object oldElement,
Object newElement)
Short answer: treat this like clone(), and just copy any important instance variables Imagine the same remote resource is shown multiple times in the same tree view.... say because multiple filters resolve to it, or there are two connections to the same host. |
boolean |
supportsUserDefinedActions(Object object)
Returns whether user defined actions should be shown for the object. |
Field Detail |
public static final String copyright
Method Detail |
public String getName(Object element)
public String getAbsoluteName(Object element)
getAbsoluteName
in interface IRemoteObjectIdentifier
public String getAbsoluteParentName(Object element)
public SubSystem getSubSystem(Object element)
public String getSubSystemFactoryId(Object element)
public String getRemoteTypeCategory(Object element)
public String getRemoteType(Object element)
public String getRemoteSubType(Object element)
public String getRemoteSubSubType(Object element)
public String getRemoteSourceType(Object element)
public boolean refreshRemoteObject(Object oldElement, Object newElement)
Short answer: treat this like clone(), and just copy any important instance variables
Imagine the same remote resource is shown multiple times in the same tree view.... say
because multiple filters resolve to it, or there are two connections to the same host.
Typically it is a different object in memory within the tree, but it refers to the same
remote resource.
Now imagine one of the references is selected by the user and renamed via the rename action. This
might only update the selected reference. What about the other objects which refer to the same
remote resource... they need to update their in-memory "name" variable too.
That is what this method. Every reference to the same remote resource is found (they have the
same absolute name and come from a system with the same hostname) and this method is called
on those other references. This is your opportunity to copy the attributes from the new element
to the old element.
Some view has updated the name or properties of this remote object. As a result, the remote object's contents need to be refreshed. You are given the old remote object that has old data, and you are given the new remote object that has the new data. For example, on a rename the old object still has the old name attribute while the new object has the new new attribute. You can copy the new name into the old object. Similar for any properties you allow the user to edit via the property sheet.
This is called by viewers like SystemView in response to rename and property change events.
oldElement
- the element that was found in the treenewElement
- the updated element that was passed in the REFRESH_REMOTE event
public ISystemEditableRemoteObject getEditableRemoteObject(Object object)
object
- the object to edit
public boolean canEdit(Object object)
object
- the object to edit
public String getFilterStringFor(Object object)
object
- the object to obtain a filter string for
public Object getRemoteParent(Shell shell, Object element) throws Exception
Exception
public String[] getRemoteParentNamesInUse(Shell shell, Object element) throws Exception
Exception
public boolean supportsUserDefinedActions(Object object)
object
- the object.
true
if the object supports user defined actions, false
otherwise.
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |