|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.rse.ui.view.SystemAbstractAPIProvider
org.eclipse.rse.ui.view.SystemSelectRemoteObjectAPIProviderImpl
This class is a provider of root nodes to the remote systems tree viewer part.
It is used when the contents are used to allow the user to select a remote system object. The tree will begin with the filter pool references or filter references (depending on the user's preferences setting) of the given subsystem.
Alternatively, a filter string can be given and the contents will be the result of resolving that filter string.
| Field Summary | |
|---|---|
protected ISystemSelectRemoteObjectAPIProviderCaller |
caller
|
protected org.eclipse.rse.internal.model.SystemNewConnectionPromptObject |
connPrompt
|
protected Object[] |
connPromptAsArray
|
protected String |
filterString
|
protected String |
filterSuffix
|
protected IHost[] |
inputConnections
|
protected boolean |
listConnectionsMode
|
protected boolean |
multiConnections
|
protected String |
preSelectFilterChild
|
protected Object |
preSelectFilterChildObject
|
protected ISystemFilter[] |
quickFilters
|
protected boolean |
showNewConnectionPrompt
|
protected boolean |
singleConnectionMode
|
protected ISubSystem |
subsystem
|
protected ISystemViewElementAdapter |
subsystemAdapter
|
protected String |
subsystemFactoryCategory
|
protected String |
subsystemFactoryId
|
protected String[] |
systemTypes
|
| Fields inherited from class org.eclipse.rse.ui.view.SystemAbstractAPIProvider |
|---|
canceledObject, emptyList, errorObject, msgList, nullObject, shell, sr, viewer |
| Constructor Summary | |
|---|---|
SystemSelectRemoteObjectAPIProviderImpl()
Constructor when there is no subsystem yet |
|
SystemSelectRemoteObjectAPIProviderImpl(ISubSystem subsystem)
Constructor when there is a subsystem |
|
SystemSelectRemoteObjectAPIProviderImpl(String factoryId,
String factoryCategory,
boolean showNewConnectionPrompt,
String[] systemTypes)
Constructor that takes the input needed to drive the list. |
|
| Method Summary | |
|---|---|
ISystemFilter |
createFilterByPrompting(ISystemFilter filterPrompt,
Shell shell)
Prompt the user to create a new filter as a result of the user expanding a promptable transient filter Simply passes the request on to the caller. |
String |
decorateFilterString(Object selectedObject,
String inputFilterString)
Adorn filter string with any relative attributes requested. |
boolean |
filtersNeedDecoration(Object selectedObject)
For performance reasons, pre-check to see if filter decoration is even necessary... |
protected ISystemViewElementAdapter |
getAdapter(Object o)
Returns the implementation of ISystemViewElement for the given object. |
Object[] |
getConnectionChildren(IHost selectedConnection)
This method is called by the connection adapter when the user expands a connection. |
protected Object[] |
getConnections()
Return the connections appropriate for our subsystem factory ID or category requirements. |
String |
getPreSelectFilterChild()
Get the name of the item to select when the first filter is expanded. |
Object |
getPreSelectFilterChildObject()
Get the actual object of the item to select when the first filter is expanded. |
protected ISystemRemoteElementAdapter |
getRemoteAdapter(Object o)
Returns the implementation of ISystemRemoteElement for the given object. |
protected ISubSystem[] |
getSubSystems(IHost selectedConnection)
Given a connection, return the subsystem(s) appropriate for the given ssfactoryid or category |
Object[] |
getSystemViewRoots()
Return the children objects to consistute the root elements in the system view tree. |
boolean |
hasConnectionChildren(IHost selectedConnection)
This method is called by the connection adapter when deciding to show a plus-sign or not beside a connection. |
boolean |
hasSystemViewRoots()
Return true if getSystemViewRoots() will return a non-empty list |
protected Object[] |
resolveFilterString(ISubSystem subsystem,
String filterString)
Return the result of asking a given subsystem to resolve a filter string |
void |
setCaller(ISystemSelectRemoteObjectAPIProviderCaller caller)
Set the caller to callback to for some events, such as the expansion of a prompting transient filter. |
void |
setFilterString(String string)
Set the filter string to use to resolve the inputs. |
void |
setPreSelectFilterChild(String name)
Set child of the first filter to preselect |
void |
setPreSelectFilterChildObject(Object obj)
Set actual child object of the first filter to preselect. |
void |
setQuickFilters(ISystemFilter[] filters)
Set the quick filters to be exposed to the user. |
void |
setShowNewConnectionPrompt(boolean show)
Specify whether the user should see the "New Connection..." special connection prompt |
void |
setSubSystem(ISubSystem subsystem)
Change the input subsystem |
void |
setSystemConnection(IHost connection,
boolean onlyMode)
Default or Restrict to a specific connection. |
void |
setSystemTypes(String[] systemTypes)
Specify system types to restrict what types of connections the user can create, and see. |
boolean |
showActionBar()
Return true to show the action bar (ie, toolbar) above the viewer. |
boolean |
showActions()
Return true to show right-click popup actions on objects in the tree. |
boolean |
showButtonBar()
Return true to show the button bar above the viewer. |
boolean |
showingConnections()
Return true if we are listing connections or not, so we know whether we are interested in connection-add events |
| Methods inherited from class org.eclipse.rse.ui.view.SystemAbstractAPIProvider |
|---|
checkForNull, getAdapter, getCancelledMessageObject, getFailedMessageObject, getShell, getViewer, setShell, setViewer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.rse.ui.view.ISystemViewInputProvider |
|---|
getAdapter, getShell, getViewer, setShell, setViewer |
| Field Detail |
protected ISubSystem subsystem
protected String filterString
protected ISystemViewElementAdapter subsystemAdapter
protected boolean listConnectionsMode
protected boolean showNewConnectionPrompt
protected boolean singleConnectionMode
protected String subsystemFactoryId
protected String subsystemFactoryCategory
protected String filterSuffix
protected String[] systemTypes
protected String preSelectFilterChild
protected Object preSelectFilterChildObject
protected ISystemFilter[] quickFilters
protected IHost[] inputConnections
protected org.eclipse.rse.internal.model.SystemNewConnectionPromptObject connPrompt
protected Object[] connPromptAsArray
protected ISystemSelectRemoteObjectAPIProviderCaller caller
protected boolean multiConnections
| Constructor Detail |
public SystemSelectRemoteObjectAPIProviderImpl(String factoryId,
String factoryCategory,
boolean showNewConnectionPrompt,
String[] systemTypes)
This can be done by giving one of two possible pieces of information:
You must supply one of these. There is no need to supply both.
Also, it is often desired to restrict what system types the user can create new connections for. While this could be deduced from the first two pieces of information, it is safer to ask the caller to explicitly identify these. If null is passed, then there is no restrictions.
factoryId - The subsystemFactoryId to restrict connections and subsystems to
An alternative to factoryCategory. Specify only one, pass null for the other.factoryCategory - The subsystemFactory category to restrict connections and subsystems to.
An alternative to factoryId. Specify only one, pass null for the other.showNewConnectionPrompt - true if to show "New Connection" prompt, false if not tosystemTypes - Optional list of system types to restrict the "New Connection" wizard to. Pass null for no restrictionspublic SystemSelectRemoteObjectAPIProviderImpl(ISubSystem subsystem)
subsystem - The subsystem that will resolve the filter stringpublic SystemSelectRemoteObjectAPIProviderImpl()
setSubSystem(ISubSystem)| Method Detail |
public void setCaller(ISystemSelectRemoteObjectAPIProviderCaller caller)
public void setShowNewConnectionPrompt(boolean show)
public void setSystemTypes(String[] systemTypes)
IRSESystemType
public void setSystemConnection(IHost connection,
boolean onlyMode)
connection - The connection to default or restrict toonlyMode - true if this is to be the only connection shown in the listpublic void setSubSystem(ISubSystem subsystem)
public void setFilterString(String string)
public void setQuickFilters(ISystemFilter[] filters)
SystemFilterSimplepublic void setPreSelectFilterChild(String name)
public String getPreSelectFilterChild()
public void setPreSelectFilterChildObject(Object obj)
public Object getPreSelectFilterChildObject()
public String decorateFilterString(Object selectedObject,
String inputFilterString)
public boolean filtersNeedDecoration(Object selectedObject)
public Object[] getSystemViewRoots()
getSystemViewRoots in interface ISystemViewInputProviderpublic boolean hasSystemViewRoots()
getSystemViewRoots() will return a non-empty list
hasSystemViewRoots in interface ISystemViewInputProviderISystemViewInputProvider.getSystemViewRoots() will return a non-empty listpublic Object[] getConnectionChildren(IHost selectedConnection)
getConnectionChildren in interface ISystemViewInputProviderselectedConnection - the connection undergoing expansion
public boolean hasConnectionChildren(IHost selectedConnection)
hasConnectionChildren in interface ISystemViewInputProviderselectedConnection - the connection being shown in the viewer
public boolean showActionBar()
showActionBar in interface ISystemViewInputProvidershowActionBar in class SystemAbstractAPIProviderpublic boolean showButtonBar()
showButtonBar in interface ISystemViewInputProvidershowButtonBar in class SystemAbstractAPIProviderpublic boolean showActions()
showActions in interface ISystemViewInputProvidershowActions in class SystemAbstractAPIProviderpublic boolean showingConnections()
showingConnections in interface ISystemViewInputProvidershowingConnections in class SystemAbstractAPIProviderprotected Object[] getConnections()
protected ISubSystem[] getSubSystems(IHost selectedConnection)
protected Object[] resolveFilterString(ISubSystem subsystem,
String filterString)
protected ISystemViewElementAdapter getAdapter(Object o)
getAdapter in class SystemAbstractAPIProviderprotected ISystemRemoteElementAdapter getRemoteAdapter(Object o)
getRemoteAdapter in class SystemAbstractAPIProvider
public ISystemFilter createFilterByPrompting(ISystemFilter filterPrompt,
Shell shell)
throws Exception
Simply passes the request on to the caller.
NOT SUPPORTED YET!
Exception
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||