|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEObjectImpl
com.ibm.etools.systems.subsystems.impl.SubSystemFactoryImpl
Field Summary | |
---|---|
protected SystemCompileManager |
compileManager
|
static String |
copyright
|
protected static SystemConnection |
currentlyProcessingConnection
|
protected static SubSystemFactoryImpl |
currentlyProcessingSubSystemFactory
|
protected Object[] |
currentlySelected
|
protected SystemConnection |
currentlySelectedConnection
|
protected SubSystemFilterNamingPolicy |
filterNamingPolicy
|
protected EList |
filterPoolManagerList
|
protected SystemFilterPoolManager[] |
filterPoolManagers
|
protected Hashtable |
filterPoolManagersPerProfile
|
protected Hashtable |
imageTable
|
protected static boolean |
mofInitSS
|
protected boolean |
mofInitSubclassSS
|
protected static SubsystemsFactory |
ssfactory
|
protected static SubsystemsPackage |
sspkg
|
protected EList |
subSystemList
|
protected SystemUDActionSubsystem |
udas
|
Fields inherited from interface com.ibm.etools.systems.subsystems.SubSystemFactory |
---|
FORCE_INTO_MEMORY, LAZILY |
Fields inherited from interface com.ibm.etools.systems.subsystems.ISubSystemConstants |
---|
Copyright, DEFAULT_PORT, SAVEFILE_FILTERS, SAVEFILE_SUBSYSTEMS |
Constructor Summary | |
---|---|
SubSystemFactoryImpl()
Constructor |
Method Summary | |
---|---|
void |
addCommonRemoteActions(SystemMenuManager menu,
IStructuredSelection selection,
Shell shell,
String menuGroup,
SubSystem subsystem)
Returns any framework-supplied actions remote objects that should be contributed to the popup menu for the given selection list. |
protected void |
addFilterPoolManager(SystemProfile profile,
SystemFilterPoolManager mgr)
Add the given filter pool manager object to internal lists |
protected void |
addSubSystem(SubSystem subsys)
Helper method to allow child classes to add a subsystem object to the in-memory list maintained and returned by this base class. |
static void |
addUserDefinedActions(Shell shell,
IStructuredSelection selection,
SystemMenuManager menu,
String menuGroup,
SystemUDActionSubsystem userActionSubSystem)
Populate main context menu with a "User Actions->" submenu cascade, which will only be populated when the submenu is selected. |
void |
changingSystemProfileActiveStatus(SystemProfile profile,
boolean newStatus)
Called by SystemRegistry when we have toggled the active-status of a profile |
SubSystem |
cloneSubSystem(SubSystem oldSubsystem,
SystemConnection newConnection,
boolean copyProfileOperation)
Clone a given subsystem into the given connection. |
void |
configureNewFilterAction(SystemNewFilterAction newFilterAction,
Object callerData)
There is a reasonable amount of processing needed to configure filter wizards. |
SystemFilterPoolManager |
copyFilterPoolManager(SystemProfile oldProfile,
SystemProfile newProfile)
Copy the filter pool manager and return a new one. |
protected void |
copySubSystemData(SubSystem oldSubSystem,
SubSystem newSubSystem)
OVERRIDABLE METHOD FOR CHILD CLASSES TO COPY THEIR UNIQUE SUBSYSTEM DATA AFTER COPY OPERATION noteThis method should be abstract but MOF doesn't allow abstract impl classes at this point |
protected SystemUDActionSubsystem |
createActionSubSystem()
Overridable method to instantiate the SystemUDActionSubsystem. |
protected SystemCompileManager |
createCompileManager()
Overridable method to instantiate the SystemCompileManager for this factory. |
protected SystemFilterPool |
createDefaultFilterPool(SystemFilterPoolManager mgr)
OVERRIDABLE METHOD FOR CHILD CLASSES TO ENABLE THEM TO CREATE A DEFAULT POOL WHENEVER A NEW FILTER POOL MANAGER IS CREATED (EG, WHEN PROFILE CREATED). |
protected SystemResourceChangeEvent |
createEvent(Object[] src,
int eventId,
Object parent)
Helper method to create a multi-source event |
protected SystemResourceChangeEvent |
createEvent(Object[] src,
int eventId,
Object parent,
int delta)
Helper method to create a multi-source event |
protected SystemResourceChangeEvent |
createEvent(Object src,
int eventId,
Object parent)
Helper method to create a single-source event |
SystemFilter |
createFilterByPrompting(SystemFilterReference referenceToPromptableFilter,
Shell shell)
Prompt the user to create a new filter as a result of the user expanding a promptable filter. |
ServerLauncher |
createServerLauncher(SubSystem ss)
Overridable entry for child classes to contribute a server launcher instance for a given subsystem. |
SubSystem |
createSubSystem(SystemConnection conn,
boolean creatingConnection,
ISystemNewConnectionWizardPage[] yourNewConnectionWizardPages)
Creates a new subsystem instance that is associated with the given connection object. |
protected SubSystem |
createSubSystemInternal(SystemConnection conn)
Method called by default implementation of createSubSystem method in AbstractSubSystemFactory. |
void |
customizeChangeFilterPropertyPage(SystemChangeFilterPropertyPage page,
SystemFilter selectedFilter,
Shell shell)
In addition to a change filter action, we now also support the same functionality via a Properties page for filters. |
void |
customizeFilterStringPropertyPage(SystemFilterStringPropertyPage page,
SystemFilterString selectedFilterString,
Shell shell)
In addition to a change filter action, we now also support the same functionality via a Properties page for filter strings, in the Team View. |
protected void |
deleteFilterPoolManager(SystemProfile profile)
Delete the filter pool manager associated with the given profile |
boolean |
deleteSubSystem(SubSystem subsystem)
Deletes a given subsystem instance from the list maintained by this factory. |
void |
deleteSubSystemsByConnection(SystemConnection conn)
Called by SystemRegistry's deleteConnection method to ensure we delete all our subsystems for a given connection. |
void |
deletingSystemProfile(SystemProfile profile)
Called by SystemRegistry when we are about to delete a profile. |
void |
disconnectAllSubSystems()
Disconnect all subsystems currently connected. |
protected boolean |
doPostRestoreProcessing(SystemFilterPoolManager restoredFilterPoolMgr)
Do post-restore-processing of an existing filter pool manager. |
Object |
eGet(EStructuralFeature eFeature,
boolean resolve)
|
NotificationChain |
eInverseRemove(InternalEObject otherEnd,
int featureID,
Class baseClass,
NotificationChain msgs)
|
boolean |
eIsSet(EStructuralFeature eFeature)
|
void |
eSet(EStructuralFeature eFeature,
Object newValue)
|
protected EClass |
eStaticClass()
|
void |
eUnset(EStructuralFeature eFeature)
|
void |
filterEventFilterCreated(SystemFilter newFilter)
A new filter has been created |
void |
filterEventFilterDeleted(SystemFilter oldFilter)
A filter has been deleted |
void |
filterEventFilterPoolCreated(SystemFilterPool newPool)
A new filter pool has been created |
void |
filterEventFilterPoolDeleted(SystemFilterPool oldPool)
A filter pool has been deleted |
void |
filterEventFilterPoolRenamed(SystemFilterPool pool,
String oldName)
A filter pool has been renamed |
void |
filterEventFilterPoolsRePositioned(SystemFilterPool[] pools,
int delta)
One or more filter pools have been re-ordered within their manager |
void |
filterEventFilterRenamed(SystemFilter filter,
String oldName)
A filter has been renamed |
void |
filterEventFiltersRePositioned(SystemFilter[] filters,
int delta)
One or more filters have been re-ordered within their pool or filter (if nested) |
void |
filterEventFilterStringCreated(SystemFilterString newFilterString)
A new filter string has been created |
void |
filterEventFilterStringDeleted(SystemFilterString oldFilterString)
A filter string has been deleted |
void |
filterEventFilterStringsRePositioned(SystemFilterString[] filterStrings,
int delta)
One or more filters have been re-ordered within their filter |
void |
filterEventFilterStringUpdated(SystemFilterString filterString)
A filter string has been updated |
void |
filterEventFilterUpdated(SystemFilter filter)
A filter's strings have been updated |
protected void |
fireEvent(Object[] multiSrc,
int eventId,
Object parent,
int delta)
Helper method to create and then fire an event with a position or delta... |
protected void |
fireEvent(Object src,
int eventId,
Object parent)
Helper method to create and then fire an event... |
protected void |
fireEvent(SystemResourceChangeEvent event)
Helper method to fire an event... |
protected void |
fireSubSystemEvent(SystemResourceChangeEvent event)
Fire given event to all currently known subsystems |
protected void |
fireSubSystemEvent(SystemResourceChangeEvent event,
SubSystem subsystem)
Fire given event to the given subsystem |
protected void |
fireSubSystemEvent(SystemResourceChangeEvent event,
SystemProfile profile)
Fire given event to all subsystems in the given profile |
protected void |
fireSubSystemFilterEvent(int eventId,
SystemFilter filter)
Fire an event of a given id to subsystems that hold a reference to the given filter |
protected void |
fireSubSystemFilterEvent(int eventId,
SystemFilter[] filters)
Fire an event of a given id to subsystems that hold a reference to the given filter |
protected void |
fireSubSystemFilterEvent(int eventId,
SystemFilterString filterString)
|
protected void |
fireSubSystemFilterEvent(int eventId,
SystemFilterString[] filterStrings,
int delta)
|
protected void |
fireSubSystemFilterEvent(SystemResourceChangeEvent event,
SystemFilter filter)
Fire an event of a given id to subsystems that hold a reference to the given filter |
protected void |
fireSubSystemFilterEvent(SystemResourceChangeEvent event,
SystemFilterString filterString)
|
SystemUDActionSubsystem |
getActionSubSystem(SubSystem subsystem)
Get the action subsystem object for this subsystemfactory, and set its current subsystem to the given subsystem instance. |
SystemFilterPoolManager[] |
getActiveFilterPoolManagers()
Get the filter pool managers for the active profiles. |
protected Vector |
getAdditionalFilterActions(SystemFilter selectedFilter,
Shell shell)
Overridable entry for child classes to contribute filter actions beyond the default supplied actions. |
protected Vector |
getAdditionalFilterPoolActions(SystemFilterPool selectedPool,
Shell shell)
Overridable entry for child classes to contribute filter pool actions beyond the default supplied actions. |
protected Vector |
getAdditionalFilterPoolReferenceActions(SystemFilterPool selectedPool,
Shell shell)
Overridable entry for child classes to contribute filter pool reference actions beyond the default supplied actions. |
protected Vector |
getAdditionalFilterReferenceActions(SystemFilterReference selectedFilterRef,
Shell shell)
Overridable entry for child classes to contribute filter reference actions beyond the default supplied actions. |
protected Vector |
getAdditionalSubSystemActions(SubSystem selectedSubSystem,
Shell shell)
Overridable entry for child classes to contribute subsystem actions beyond the default supplied actions. |
String |
getCategory()
Return the category this subsystem factory subscribes to. |
protected IAction |
getChangeFilterAction(SystemFilter selectedFilter,
Shell shell)
Overridable method to return the action for changing an existing filter. |
SystemCompileManager |
getCompileManager()
Get the singleton compile manager responsible for enabling the compile support for remote source objects. |
static String |
getConnectingMessage(String hostName,
int port)
Helper method to return the message "Connecting to &1..." |
static String |
getDefaultFilterPoolName(String profileName)
Return the translated name of a default filter pool for a given profile |
SystemFilterPool |
getDefaultSystemFilterPool(SubSystem subsys)
Given a subsystem, return the first (hopefully only) default pool for this subsystem's profile. |
SystemFilterPool |
getDefaultSystemFilterPool(SystemProfile profile)
Given a profile, return the first (hopefully only) default pool for this profile. |
static String |
getDisconnectingMessage(String hostName,
int port)
Helper method to return the message "Disconnecting from &1..." |
IAction[] |
getFilterActions(SystemFilter selectedFilter,
Shell shell)
Returns a list of actions for the popup menu when user right clicks on a filter object. |
SystemFilterPool |
getFilterPool(SystemProfile profile,
String name)
Returns a filter pool, given its profile and pool name |
IAction[] |
getFilterPoolActions(SystemFilterPool selectedPool,
Shell shell)
Returns a list of actions for the popup menu when user right clicks on a filter pool object within a subsystem of this factory. |
protected SystemFilterPoolManager |
getFilterPoolManager(SystemConnection conn)
Get the filter pool manager for the given connection |
protected SystemFilterPoolManager |
getFilterPoolManager(SystemFilterContainer poolOrFilter)
Get the filter pool manager for the given filter pool or filter |
protected SystemFilterPoolManager |
getFilterPoolManager(SystemFilterContainerReference poolOrFilterReference)
Get the filter pool manager for the given reference to a filter pool or filter |
protected SystemFilterPoolManager |
getFilterPoolManager(SystemFilterPool pool)
Get the filter pool manager for the given filter pool |
SystemFilterPoolManager |
getFilterPoolManager(SystemProfile profile)
Get the filter pool manager for the given profile |
EList |
getFilterPoolManagerList()
Private. |
protected String |
getFilterPoolManagerName(SystemProfile profile)
Return the name of the filter pool manager, given the profile. |
SystemFilterPoolManager[] |
getFilterPoolManagers()
Return an array of all filter pool managers owned by this subsystem factory. |
IAction[] |
getFilterPoolReferenceActions(SystemFilterPoolReference selectedPoolRef,
Shell shell)
Returns a list of actions for the popup menu when user right clicks on a filter pool reference object within a subsystem of this factory. |
SystemFilterPool[] |
getFilterPools(SystemProfile profile)
Returns an array of filter pool objects within a profile. |
IAction[] |
getFilterReferenceActions(SystemFilterReference selectedFilterRef,
Shell shell)
Returns a list of actions for the popup menu when user right clicks on a filter reference object within a subsystem of this factory. |
Image |
getGraphicsImage()
Return actual graphics Image of this factory. |
Image |
getGraphicsLiveImage()
Return actual graphics LiveImage of this factory. |
String |
getId()
Return unique id of this factory. |
ImageDescriptor |
getImage()
Return image descriptor of this factory. |
ImageDescriptor |
getLiveImage()
Return image to use when this susystem is connection. |
protected SystemMOFHelpers |
getMOFHelpers()
Return EMF helpers instance. |
String |
getName()
Return name of this factory. |
ISystemNewConnectionWizardPage[] |
getNewConnectionWizardPages(IWizard wizard)
Optionally return one or more wizard pages to append to the New Wizard connection if the user selects a system type that this subsystem factory supports. |
protected IAction |
getNewFilterPoolFilterAction(SystemFilterPool selectedPool,
Shell shell)
Overridable method to return the single action for creating a new filter in a filter pool. |
protected IAction[] |
getNewFilterPoolFilterActions(SystemFilterPool selectedPool,
Shell shell)
Overridable method to return the actions for creating a new filter in a filter pool. |
protected SystemFilterPoolWrapperInformation |
getNewFilterWizardPoolWrapperInformation()
Overridable entry for child classes to supply their own flavour of ISystemFilterPoolWrapperInformation for the new filter wizards. |
protected IAction |
getNewNestedFilterAction(SystemFilter selectedFilter,
Shell shell)
Overridable method to return the action for creating a new nested filter inside another filter. |
ISystemValidator |
getPasswordValidator()
Return the validator for the password which is prompted for at runtime. |
ISystemValidator |
getPortValidator()
Return the validator for the port. |
SystemFilterPoolManager[] |
getReferencableSystemFilterPoolManagers(SystemFilterPoolReferenceManager refMgr)
Return all the manager objects this provider owns, to which it wants to support referencing from the given filter reference manager. |
protected IAction |
getRemoveFilterPoolReferenceAction(SystemFilterPool selectedPool,
Shell shell)
Overridable method to return the action for removing a filter pool reference. |
IServerLauncherForm |
getServerLauncherForm(Shell shell,
ISystemMessageLine msgLine)
Return the form used in the property page, etc for this server launcher. |
static SubsystemsFactory |
getSSMOFfactory()
Return the EMF factory |
IAction[] |
getSubSystemActions(SubSystem selectedSubSystem,
Shell shell)
Returns a list of actions for the popup menu when user right clicks on a subsystem object from this factory. |
ISubSystemFactoryProxy |
getSubSystemFactoryProxy()
The following is here for completeness but should never be needed. |
EList |
getSubSystemList()
Private. |
protected IAction[] |
getSubSystemNewFilterPoolActions(SubSystem selectedSubSystem,
Shell shell)
Overridable entry for child classes to supply their own "new" action(s) for creating a filter pool. |
ISystemSubSystemPropertyPageCoreForm |
getSubSystemPropertyPageCoreFrom(ISystemMessageLine msgLine,
Object caller)
|
protected List |
getSubSystemPropertyPages()
Gets the list of property pages applicable for a subsystem associated with this factory |
SubSystem[] |
getSubSystems(boolean force)
Return list of all subsystems. |
SubSystem[] |
getSubSystems(SystemConnection conn,
boolean force)
Returns a list of subsystem objects existing for the given connection. |
SubSystem[] |
getSubSystems(SystemFilterPool pool)
Returns a list of subsystem objects existing in memory, which contain a reference to the given filter pool. |
SubSystem[] |
getSubSystems(SystemProfile profile)
Returns a list of subsystem objects existing for all the connections in the given profile. |
protected IFolder |
getSubSystemsFolder(SystemConnection connection)
Return the subsystems folder for a given connection |
ImageDescriptor |
getSystemFilterImage(SystemFilter filter)
Supply the image to be used for filters, within actions. |
SystemFilterPool |
getSystemFilterPoolForBrokenReference(SystemFilterPoolReferenceManager callingRefMgr,
String missingPoolMgrName,
String missingPoolName)
Last chance call, by a filter pool reference manager, when a reference to a filter pool is found but the referenced master filter pool is not found in those the reference manager by getSystemFilterPoolManagers(). |
ImageDescriptor |
getSystemFilterPoolImage(SystemFilterPool filterPool)
Supply the image to be used for filter pools, within actions. |
SystemFilterPoolManager |
getSystemFilterPoolManager(String mgrName)
Get the filter pool manager for the given profile. |
ImageDescriptor |
getSystemFilterPoolManagerImage()
Supply the image to be used for filter pool managers, within actions. |
SystemFilterPoolManager[] |
getSystemFilterPoolManagers()
Get the filter pool manager for the given profile. |
ImageDescriptor |
getSystemFilterStringImage(String filterStringString)
|
ImageDescriptor |
getSystemFilterStringImage(SystemFilterString filterString)
|
protected SystemProfile |
getSystemProfile(String name)
Get a profile object given its name |
protected SystemProfile |
getSystemProfile(SystemFilter filter)
Get a profile object given a filter object |
SystemProfile |
getSystemProfile(SystemFilterPool pool)
Get owning profile object given a filter pool object |
protected SystemProfile |
getSystemProfile(SystemFilterPoolManager poolMgr)
Get a profile object given a filter pool manager object |
protected String |
getSystemProfileName(SystemFilterPoolManager manager)
Return the name of the profile, given the filter pool manager |
String[] |
getSystemTypes()
Return the system types this subsystem factory supports. |
String |
getTranslatedFilterTypeProperty(SystemFilter selectedFilter)
Return the translated string to show in the property sheet for the type property. |
protected IFolder |
getTypeFiltersFolder()
Return the folder where type filters go for this subsystem factory... |
ISystemValidator |
getUserIdValidator()
Return the validator for the userId. |
String |
getVendor()
Return vendor of this factory. |
protected void |
handleException(String msg,
Exception exc)
|
protected void |
initializeSubSystem(SubSystem ss,
ISystemNewConnectionWizardPage[] yourNewConnectionWizardPages)
Overridable method to initialize subsystems after creation. |
protected SubsystemsFactory |
initMOF()
Initialize the EMF package. |
protected void |
initSubSystemMOF()
If you use EMF you must override this method and instantiate your EMF xxxFactoryImpl() and xxxxPackageImpl(xxxfactory) objects. |
protected String |
internalGetSubSystemName(SubSystem subsys)
Overridable. |
protected SubSystem[] |
internalGetSubSystems(SystemConnection conn)
Private method to subset master list of all subsystems by a given connection |
void |
invalidateFilterCache()
Invalidate any internal caches related to filters |
protected void |
invalidateSubSystemCache(SystemConnection conn)
Invalidate internal cached array of subsystems. |
boolean |
isCaseSensitive()
Tell us if filter strings are case sensitive. |
protected boolean |
isFactoryFor(Class subSystemType)
Determines whether this factory is responsible for the creation of subsytems of the specified type Subsystem factories should override this to indicate which subsystems they support. |
boolean |
isPortEditable()
Return true (default) or false to indicate if subsystems of this factory support user-editable port numbers. |
boolean |
isSubSystemsDeletable()
Returns true if this factory allows users to delete instances of subsystem objects. |
protected boolean |
isUserPrivateProfile(SystemFilterPoolManager mgr)
Return true if the given filter pool manager maps to the private profile for this user. |
protected boolean |
needsUpdate(SubSystem subsystem,
boolean updateUserId,
String userId,
boolean updatePort,
Integer port)
Used by child classes that override updateSubSystem to establish if anything really needs to be changed. |
void |
preTestRenameSubSystemProfile(String oldProfileName)
Called by SystemRegistry's renameSystemProfile method to pre-test if we are going to run into errors on a profile rename, due to file or folder in use. |
boolean |
providesCustomDropInFilters()
Return true if filters of this subsystem factory provide a custom implementation of drop support. |
protected void |
removeSubSystem(SubSystem subsys)
Helper method to allow child classes to remove a subsystem object from the in-memory list maintained and returned by this base class. |
protected void |
renameFilterPoolManager(SystemProfile profile)
Rename the filter pool manager associated with the given profile |
void |
renameSubSystem(SubSystem subsystem,
String newName)
Renames a subsystem. |
void |
renameSubSystemProfile(String oldProfileName,
String newProfileName)
Called by SystemRegistry's renameSystemProfile method to ensure we update our filter pool manager names (and their folders) Must be called AFTER changing the profile's name!! |
void |
renameSubSystemProfile(SubSystem ss,
String oldProfileName,
String newProfileName)
Called by SystemRegistry's renameSystemProfile method to ensure we update our subsystem names within each subsystem. |
void |
renameSubSystemsByConnection(SystemConnection conn,
String newConnectionName)
Called by SystemRegistry's renameConnection method to ensure we update our connection names within each subsystem. |
void |
reset()
Reset for a full refresh from disk, such as after a team synch. |
boolean |
restore(SystemConnection connection)
Restores all information from disk for a given connection. |
SystemFilterPoolManager[] |
restoreAllFilterPoolManagersForAllProfiles()
Get all the filter pool managers for all the profiles, active or not. |
protected SubSystem |
restoreSubSystem(SystemConnection connection,
String fileName)
Restore a saved subsystem instance from disk, for a given connection. |
protected SubSystem[] |
restoreSubSystems(SystemConnection connection)
Restore all subsystems from disk, for a given connection. |
boolean |
save()
Saves absolutely everything to disk. |
boolean |
saveFilterPools()
Saves all filter information to disk for all profiles. |
void |
saveFilterPools(SystemFilterPoolManager mgr)
Saves all filter information to disk for the given profile. |
void |
saveSubSystem(SubSystem subsys)
Attempt to save single subsystem to disk. |
void |
saveSubSystems()
Save all subsystems for all connections to disk. |
void |
saveSubSystems(SystemConnection conn)
Save all subsystems for a given connection to disk. |
void |
setConnection(SystemConnection connection)
Called by adapters prior to asking for actions, in case the connection of the currently selected object is required by the action. |
void |
setCurrentSelection(Object[] selection)
Called by adapters prior to asking for actions. |
void |
setShowFilterPools(boolean show)
If we support filters, should we show filter pools in the remote system explorer? |
void |
setSubSystemFactoryProxy(ISubSystemFactoryProxy proxy)
The following is called for you by the SubSystemFactoryProxy, after starting this object via the extension point mechanism |
void |
setSubSystemPort(Shell shell,
SubSystem subsystem,
int port)
Update the port for the given subsystem instance. |
void |
setSubSystemUserId(Shell shell,
SubSystem subsystem,
String userId)
Update the user ID for the given subsystem instance. |
boolean |
showChangeFilterStringsPropertyPage(SystemFilter filter)
Given a filter, decide whether to show the Filter Strings property page for this filter. |
boolean |
showFilterPools()
If we support filters, should we show filter pools in the remote system explorer? |
boolean |
showGenericShowInTableOnFilter()
Return true if we should show the show in table action in the popup for the given element. |
boolean |
showRefreshOnFilter()
Return true if we should show the refresh action in the popup for the given element. |
protected boolean |
subSystemsHaveBeenRestored(SystemConnection connection)
Return true if the subsystems for a given connection have been restored yet or not |
boolean |
supportsCommands()
Return true if subsystem instances from this factory support remote command execution RETURNS FALSE BY DEFAULT. |
boolean |
supportsCompileActions()
Return true if you support compile actions for the remote system objects returned from expansion of subsystems created by this subsystem factory. |
boolean |
supportsDropInFilters()
Return true if filters of this subsystem factory support dropping into. |
boolean |
supportsDuplicateFilterStrings()
Tell us if duplicate filter strings are supported. |
boolean |
supportsFileTypes()
Return true if you support user-defined/managed named file types RETURNS false BY DEFAULT |
boolean |
supportsFilterCaching()
Required method for subsystem factory child classes. |
boolean |
supportsFilters()
Required method for subsystem factory child classes. |
boolean |
supportsFilterStringExport()
Return true if the subsystem supports the exporting of filter strings from it's filters RETURNS true BY DEFAULT |
boolean |
supportsMultipleFilterStrings()
Required method for subsystem factory child classes. |
boolean |
supportsMultiStringFilters()
Return true if the subsystem supports more than one filter string RETURNS true BY DEFAULT |
boolean |
supportsNestedFilters()
Required method for subsystem factory child classes if returning true from supportsFilters. |
boolean |
supportsProperties()
Return true if subsystem instances from this factory support getting and setting properties RETURNS FALSE BY DEFAULT. |
boolean |
supportsQuickFilters()
Return true if you support quick filters. |
boolean |
supportsServerLaunchProperties()
Tell us if this subsystem factory supports server launch properties, which allow the user to configure how the server-side code for these subsystems are started. |
boolean |
supportsServerLaunchType(ServerLaunchType serverLaunchType)
If supportsServerLaunchProperties() returns true, this method may be called by
the server launcher to decide if a given remote server launch type is supported or not.
|
boolean |
supportsSubSystemConnect()
Return true if instance of this factory's subsystems support connect and disconnect actions. |
boolean |
supportsTargets()
Tell us if this subsystem factory supports targets, which are destinations for pushes and builds. |
boolean |
supportsUserDefinedActions()
Return true if you support user-defined actions for the remote system objects returned from expansion of subsystems created by this subsystem factory RETURNS false BY DEFAULT |
boolean |
supportsUserDefinedActions(ISelection selection)
Return true if you support user-defined actions for the remote system objects explicitly given. |
boolean |
supportsUserId()
Return true (default) or false to indicate if subsystems of this factory require a userId to do connection or not. |
SubSystem[] |
testForActiveReferences(SystemProfile profile)
Test if any filter pools in the given profile are referenced by other profiles, which are active. |
String |
toString()
Return object as printable string. |
void |
updateSubSystem(Shell shell,
SubSystem subsystem,
boolean updateUserId,
String userId,
boolean updatePort,
Integer port)
Updates user-editable attributes of an existing subsystem instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String copyright
protected static boolean mofInitSS
protected boolean mofInitSubclassSS
protected static SubsystemsFactory ssfactory
protected static SubsystemsPackage sspkg
protected SubSystemFilterNamingPolicy filterNamingPolicy
protected SystemFilterPoolManager[] filterPoolManagers
protected Hashtable filterPoolManagersPerProfile
protected Hashtable imageTable
protected SystemConnection currentlySelectedConnection
protected Object[] currentlySelected
protected SystemUDActionSubsystem udas
protected static SystemConnection currentlyProcessingConnection
protected static SubSystemFactoryImpl currentlyProcessingSubSystemFactory
protected SystemCompileManager compileManager
protected EList subSystemList
protected EList filterPoolManagerList
Constructor Detail |
public SubSystemFactoryImpl()
Method Detail |
protected EClass eStaticClass()
public void reset()
reset
in interface SubSystemFactory
public boolean supportsUserId()
Returns TRUE by default.
supportsUserId
in interface SubSystemFactory
public boolean supportsSubSystemConnect()
supportsSubSystemConnect
in interface SubSystemFactory
public boolean isPortEditable()
isPortEditable
in interface SubSystemFactory
public boolean supportsCommands()
RETURNS FALSE BY DEFAULT.
supportsCommands
in interface SubSystemFactory
public boolean supportsProperties()
RETURNS FALSE BY DEFAULT.
supportsProperties
in interface SubSystemFactory
public boolean supportsFilters()
supportsFilters
in interface SubSystemFactory
public boolean supportsFilterCaching()
Returns true in default implementation.
supportsFilterCaching
in interface SubSystemFactory
public boolean supportsMultipleFilterStrings()
Returns TRUE by default.
supportsMultipleFilterStrings
in interface SubSystemFactory
public boolean supportsNestedFilters()
RETURNS supportsFilters() BY DEFAULT.
supportsNestedFilters
in interface SubSystemFactory
public boolean supportsQuickFilters()
RETURNS supportsFilters() BY DEFAULT.
THIS IS NOT SUPPORTED BY THE FRAMEWORK YET
supportsQuickFilters
in interface SubSystemFactory
public boolean supportsDropInFilters()
supportsDropInFilters
in interface SubSystemFactory
public boolean providesCustomDropInFilters()
providesCustomDropInFilters
in interface SubSystemFactory
public boolean supportsUserDefinedActions()
RETURNS false BY DEFAULT
supportsUserDefinedActions
in interface SubSystemFactory
supportsUserDefinedActions(ISelection)
,
getActionSubSystem(SubSystem)
,
createActionSubSystem()
public boolean supportsUserDefinedActions(ISelection selection)
supportsUserDefinedActions
in interface SubSystemFactory
getActionSubSystem(SubSystem)
,
createActionSubSystem()
,
addCommonRemoteActions(SystemMenuManager, IStructuredSelection, Shell, String, SubSystem)
public boolean supportsCompileActions()
By returning true, user sees a "Work with->Compile Commands..." action item in the popup menu for this subsystem. The action is supplied by the framework, but is populated using overridable methods in this subsystem.
RETURNS false BY DEFAULT
supportsCompileActions
in interface SubSystemFactory
getCompileManager()
,
createCompileManager()
public boolean supportsFileTypes()
RETURNS false BY DEFAULT
supportsFileTypes
in interface SubSystemFactory
public boolean supportsMultiStringFilters()
RETURNS true BY DEFAULT
supportsMultiStringFilters
in interface SubSystemFactory
public boolean supportsFilterStringExport()
RETURNS true BY DEFAULT
supportsFilterStringExport
in interface SubSystemFactory
public boolean isCaseSensitive()
isCaseSensitive
in interface SubSystemFactory
public boolean supportsDuplicateFilterStrings()
public boolean supportsTargets()
supportsTargets
in interface SubSystemFactory
public boolean supportsServerLaunchProperties()
If you return true here, you may also want to override supportsServerLaunchType(ServerLaunchType)
.
By default we return false here. This is overridden in UniversalFileSubSystemFactory though.
supportsServerLaunchProperties
in interface SubSystemFactory
public boolean supportsServerLaunchType(ServerLaunchType serverLaunchType)
supportsServerLaunchProperties()
returns true, this method may be called by
the server launcher to decide if a given remote server launch type is supported or not.
supportsServerLaunchType
in interface SubSystemFactory
ServerLaunchType
,
getServerLauncherForm(Shell, ISystemMessageLine)
public void addCommonRemoteActions(SystemMenuManager menu, IStructuredSelection selection, Shell shell, String menuGroup, SubSystem subsystem)
No need to override.
addCommonRemoteActions
in interface SubSystemFactory
menu
- The menu to contribute actions toselection
- The window's current selection.shell
- of viewer calling this. Most dialogs require a shell.menuGroup
- recommended menu group to add actions to. If added to another group, you must be sure to create that group first.subsystem
- the subsystem of the selectionpublic ISystemNewConnectionWizardPage[] getNewConnectionWizardPages(IWizard wizard)
Some details:
createSubSystem(SystemConnection,boolean, ISystemNewConnectionWizardPage[])
method to create the
your subsystem for the connection. The same pages you return here are passed back to you so you can
interrogate them for the user-entered data and use it when creating the default subsystem instance.
AbstractSystemNewConnectionWizardPage
for your wizard page class.
getNewConnectionWizardPages
in interface SubSystemFactory
protected boolean isFactoryFor(Class subSystemType)
subSystemType
- type of subsystem
public ISystemSubSystemPropertyPageCoreForm getSubSystemPropertyPageCoreFrom(ISystemMessageLine msgLine, Object caller)
getSubSystemPropertyPageCoreFrom
in interface SubSystemFactory
protected List getSubSystemPropertyPages()
public SystemUDActionSubsystem getActionSubSystem(SubSystem subsystem)
Called in the Work With User Actions and the User Actions cascading action.
Do not override this, as the implementation is complete. However, you must override createActionSubSystem.
getActionSubSystem
in interface SubSystemFactory
supportsUserDefinedActions()
,
createActionSubSystem()
protected SystemUDActionSubsystem createActionSubSystem()
supportsUserDefinedActions()
,
getActionSubSystem(SubSystem)
public static void addUserDefinedActions(Shell shell, IStructuredSelection selection, SystemMenuManager menu, String menuGroup, SystemUDActionSubsystem userActionSubSystem)
This is called by the addCommonRemoteObjectsActions method, if this subsystem supports user defined actions.
public SystemCompileManager getCompileManager()
Do not override this, as the implementation is complete. However, you must override createCompileManager()
getCompileManager
in interface SubSystemFactory
supportsCompileActions()
,
createCompileManager()
protected SystemCompileManager createCompileManager()
supportsCompileActions()
,
getCompileManager()
public boolean showFilterPools()
showFilterPools
in interface SubSystemFactory
public void setShowFilterPools(boolean show)
setShowFilterPools
in interface SubSystemFactory
public void setSubSystemFactoryProxy(ISubSystemFactoryProxy proxy)
setSubSystemFactoryProxy
in interface SubSystemFactory
public ISubSystemFactoryProxy getSubSystemFactoryProxy()
getSubSystemFactoryProxy
in interface SubSystemFactory
public String getVendor()
getVendor
in interface SubSystemFactory
public String getName()
getName
in interface SubSystemFactory
public String getId()
getId
in interface SubSystemFactory
public ImageDescriptor getImage()
getImage
in interface SubSystemFactory
public Image getGraphicsImage()
getGraphicsImage
in interface SubSystemFactory
public ImageDescriptor getLiveImage()
getLiveImage
in interface SubSystemFactory
public Image getGraphicsLiveImage()
getGraphicsLiveImage
in interface SubSystemFactory
public String getCategory()
getCategory
in interface SubSystemFactory
ISubSystemFactoryCategories
public String[] getSystemTypes()
getSystemTypes
in interface SubSystemFactory
protected SystemProfile getSystemProfile(String name)
protected SystemProfile getSystemProfile(SystemFilterPoolManager poolMgr)
public SystemProfile getSystemProfile(SystemFilterPool pool)
getSystemProfile
in interface SubSystemFactory
protected SystemProfile getSystemProfile(SystemFilter filter)
public void deletingSystemProfile(SystemProfile profile)
Our only mission is to delete the filter pool associated with it, because the registry has already called deleteSubSystemsByConnection for every subsystem of every connection owned by this profile.
deletingSystemProfile
in interface SubSystemFactory
public void changingSystemProfileActiveStatus(SystemProfile profile, boolean newStatus)
changingSystemProfileActiveStatus
in interface SubSystemFactory
public ISystemValidator getUserIdValidator()
This must be castable to ICellEditorValidator for the property sheet support.
getUserIdValidator
in interface SubSystemFactory
public ISystemValidator getPasswordValidator()
getPasswordValidator
in interface SubSystemFactory
public ISystemValidator getPortValidator()
getPortValidator
in interface SubSystemFactory
public void renameSubSystemProfile(SubSystem ss, String oldProfileName, String newProfileName)
This is called AFTER changing the profile's name!!
renameSubSystemProfile
in interface SubSystemFactory
public void preTestRenameSubSystemProfile(String oldProfileName) throws Exception
preTestRenameSubSystemProfile
in interface SubSystemFactory
Exception
public void renameSubSystemProfile(String oldProfileName, String newProfileName)
Must be called AFTER changing the profile's name!!
renameSubSystemProfile
in interface SubSystemFactory
public void renameSubSystemsByConnection(SystemConnection conn, String newConnectionName)
Must be called prior to changing the connection's name!!
renameSubSystemsByConnection
in interface SubSystemFactory
public void deleteSubSystemsByConnection(SystemConnection conn)
deleteSubSystemsByConnection
in interface SubSystemFactory
protected void invalidateSubSystemCache(SystemConnection conn)
public SubSystem[] getSubSystems(boolean force)
getSubSystems
in interface SubSystemFactory
public SubSystem[] getSubSystems(SystemConnection conn, boolean force)
getSubSystems
in interface SubSystemFactory
conn
- System connection to retrieve subsystems forforce
- true if we should force all the subsystems to be restored from disk if not alreadyprotected SubSystem[] internalGetSubSystems(SystemConnection conn)
public SubSystem[] getSubSystems(SystemProfile profile)
public SubSystem[] getSubSystems(SystemFilterPool pool)
protected void addSubSystem(SubSystem subsys)
protected void removeSubSystem(SubSystem subsys)
public SubSystem createSubSystem(SystemConnection conn, boolean creatingConnection, ISystemNewConnectionWizardPage[] yourNewConnectionWizardPages)
This method doe sthe following:
createSubSystemInternal(SystemConnection)
to create the subsystem
supportsFilters()
, creates a SystemFilterPoolReferenceManager
for the
subsystem to manage references to filter pools
createServerLauncher(SubSystem)
, to create
the server launcher instance to associate with this subsystem. This can be subsequently
retrieved via calling subsystem's SubSystem.getRemoteServerLauncher()
.
initializeSubSystem(SubSystem, ISystemNewConnectionWizardPage[])
so subclasses can
do their thing to initialize the subsystem.
createSubSystem
in interface SubSystemFactory
conn
- The connection to create a subsystem forcreatingConnection
- true if we are creating a connection, false if just creating
another subsystem for an existing connection.yourNewConnectionWizardPages
- The wizard pages you supplied to the New Connection wizard, via the
getNewConnectionWizardPages(IWizard)
method or null if you didn't override this method.
Note there may be more pages than you originally supplied as it is all pages contributed by
this factory object, including subclasses.public SubSystem cloneSubSystem(SubSystem oldSubsystem, SystemConnection newConnection, boolean copyProfileOperation) throws Exception
cloneSubSystem
in interface SubSystemFactory
oldSubsystem
- The subsystem to be clonednewConnection
- The connection into which to create and clone the old subsystemcopyProfileOperation
- Pass true if this is an profile-copy operation versus a connection-copy operation
Exception
protected String internalGetSubSystemName(SubSystem subsys)
Return the name to give a new subsystem. By default, it is given the name of this factory object. This is fine, unless you support multiple subsystem instances per connection, in which case it is your responsibility to supply a unique name for each.
By default returns getName()
protected SubSystem createSubSystemInternal(SystemConnection conn)
conn
- The connection object this is being created for. Only passed for your interest.protected void initializeSubSystem(SubSystem ss, ISystemNewConnectionWizardPage[] yourNewConnectionWizardPages)
The reason for the connect wizard pages parm is in case your factory contributes a page to that wizard, whose values are needed to set the subsystem's initial state. For example, you might decide to add a page to the connection wizard to prompt for a JDBC Driver name. If so, when this method is called at the time a new connection is created apres the wizard, your page will have the user's value. You can thus use it here to initialize that subsystem property. Be use to use instanceof to find your particular page.
ss
- - The subsystem that was created via createSubSystemInternalyourNewConnectionWizardPages
- - The wizard pages you supplied to the New Connection wizard, via the
getNewConnectionWizardPages(IWizard)
method or null if you didn't override this method.
Note there may be more pages than you originally supplied, as you are passed all pages contributed
by this factory object, including subclasses. This is null when this method is called other than
for a New Connection operation.protected void copySubSystemData(SubSystem oldSubSystem, SubSystem newSubSystem)
public void updateSubSystem(Shell shell, SubSystem subsystem, boolean updateUserId, String userId, boolean updatePort, Integer port)
If you have your own attributes and own GUI to prompt for these, then call your own method to set your attributes, and call this method via super().xxx(...).
The subsystem will be saved to disk. Further, it will be asked to disconnect as this data affects the connection.
updateSubSystem
in interface SubSystemFactory
shell
- parent shell needed in case an error message is displayedsubsystem
- target of the update actionupdateUserId
- true if we are updating the userId, else false to ignore userIduserId
- new local user Id. Ignored if updateUserId is falseupdatePort
- true if we are updating the port, else false to ignore portport
- new local port value. Ignored if updatePort is falsepublic void setSubSystemPort(Shell shell, SubSystem subsystem, int port)
updateSubSystem(Shell,SubSystem,boolean,String,boolean,Integer)
setSubSystemPort
in interface SubSystemFactory
public void setSubSystemUserId(Shell shell, SubSystem subsystem, String userId)
updateSubSystem(Shell,SubSystem,boolean,String,boolean,Integer)
setSubSystemUserId
in interface SubSystemFactory
protected boolean needsUpdate(SubSystem subsystem, boolean updateUserId, String userId, boolean updatePort, Integer port)
public boolean isSubSystemsDeletable()
isSubSystemsDeletable
in interface SubSystemFactory
public boolean deleteSubSystem(SubSystem subsystem)
In former case, this is only called if the factory supports user-deletable subsystems.
Handled for you!
deleteSubSystem
in interface SubSystemFactory
public void renameSubSystem(SubSystem subsystem, String newName)
renameSubSystem
in interface SubSystemFactory
public IAction[] getSubSystemActions(SubSystem selectedSubSystem, Shell shell)
If you wish to support more actions, override getAdditionalSubSystemActions to return a Vector of IAction objects.
getSubSystemActions
in interface SubSystemFactory
selectedSubSystem
- the currently selected subsystemshell
- The Shell of the view where this action was launched from
getSubSystemNewFilterPoolActions(SubSystem, Shell)
,
getAdditionalSubSystemActions(SubSystem, Shell)
public void configureNewFilterAction(SystemNewFilterAction newFilterAction, Object callerData)
The processing we do here is to specify the filter pools to prompt the user for, in the second page of the New Filter wizards.
This method is from the ISystemNewFilterActionConfigurator interface
configureNewFilterAction
in interface ISystemNewFilterActionConfigurator
newFilterAction
- - the action to be configuredcallerData
- - context data that you supplied when registering this callbackprotected SystemFilterPoolWrapperInformation getNewFilterWizardPoolWrapperInformation()
protected IAction[] getSubSystemNewFilterPoolActions(SubSystem selectedSubSystem, Shell shell)
selectedSubSystem
- the currently selected subsystemshell
- The Shell of the view where this action was launched from
protected Vector getAdditionalSubSystemActions(SubSystem selectedSubSystem, Shell shell)
By default, returns null.
getSubSystemActions(SubSystem,Shell)
public void disconnectAllSubSystems() throws Exception
disconnectAllSubSystems
in interface SubSystemFactory
Exception
protected IFolder getTypeFiltersFolder()
protected SystemFilterPool createDefaultFilterPool(SystemFilterPoolManager mgr)
You should only pre-populate your default filter pool if this new manager
(eg, its really a profile) is the user's private own. Call isUserPrivateProfile(SystemFilterPoolManager)
to find out if it is.
protected boolean isUserPrivateProfile(SystemFilterPoolManager mgr)
public SystemFilterPool getDefaultSystemFilterPool(SubSystem subsys)
getDefaultSystemFilterPool
in interface SubSystemFactory
public SystemFilterPool getDefaultSystemFilterPool(SystemProfile profile)
public void invalidateFilterCache()
public SystemFilterPoolManager[] getFilterPoolManagers()
public SystemFilterPoolManager[] getActiveFilterPoolManagers()
public SystemFilterPoolManager getFilterPoolManager(SystemProfile profile)
getFilterPoolManager
in interface SubSystemFactory
protected boolean doPostRestoreProcessing(SystemFilterPoolManager restoredFilterPoolMgr)
You can query the release of the filter pool managers, filter pools and filters, by querying the release attribute via getRelease().getValue(). You can compare to the current release number using the CURRENT_RELEASE constant in ISystemConstants.
public SystemFilterPoolManager copyFilterPoolManager(SystemProfile oldProfile, SystemProfile newProfile) throws Exception
copyFilterPoolManager
in interface SubSystemFactory
Exception
public SystemFilterPoolManager getSystemFilterPoolManager(String mgrName)
getSystemFilterPoolManager
in interface SystemFilterPoolManagerProvider
public SystemFilterPoolManager[] getSystemFilterPoolManagers()
getSystemFilterPoolManagers
in interface SystemFilterPoolManagerProvider
public SystemFilterPoolManager[] getReferencableSystemFilterPoolManagers(SystemFilterPoolReferenceManager refMgr)
Called by SystemFilterPoolReferenceManager.
REQUIRED BY SYSTEMFILTERPOOLMANAGERPROVIDER INTERFACE
getReferencableSystemFilterPoolManagers
in interface SystemFilterPoolManagerProvider
public SystemFilterPool getSystemFilterPoolForBrokenReference(SystemFilterPoolReferenceManager callingRefMgr, String missingPoolMgrName, String missingPoolName)
If this returns null, then this broken reference will be deleted
REQUIRED BY SYSTEMFILTERPOOLMANAGERPROVIDER INTERFACE
getSystemFilterPoolForBrokenReference
in interface SystemFilterPoolManagerProvider
public ImageDescriptor getSystemFilterPoolManagerImage()
getSystemFilterPoolManagerImage
in interface SystemFilterPoolManagerProvider
public ImageDescriptor getSystemFilterPoolImage(SystemFilterPool filterPool)
getSystemFilterPoolImage
in interface SystemFilterPoolManagerProvider
public ImageDescriptor getSystemFilterImage(SystemFilter filter)
getSystemFilterImage
in interface SystemFilterPoolManagerProvider
public ImageDescriptor getSystemFilterStringImage(SystemFilterString filterString)
getSystemFilterStringImage
in interface SystemFilterPoolManagerProvider
public ImageDescriptor getSystemFilterStringImage(String filterStringString)
getSystemFilterStringImage
in interface SystemFilterPoolManagerProvider
protected void addFilterPoolManager(SystemProfile profile, SystemFilterPoolManager mgr)
protected SystemFilterPoolManager getFilterPoolManager(SystemFilterPool pool)
protected SystemFilterPoolManager getFilterPoolManager(SystemFilterContainer poolOrFilter)
protected SystemFilterPoolManager getFilterPoolManager(SystemFilterContainerReference poolOrFilterReference)
protected SystemFilterPoolManager getFilterPoolManager(SystemConnection conn)
protected String getFilterPoolManagerName(SystemProfile profile)
protected String getSystemProfileName(SystemFilterPoolManager manager)
protected void deleteFilterPoolManager(SystemProfile profile)
protected void renameFilterPoolManager(SystemProfile profile)
protected void fireEvent(SystemResourceChangeEvent event)
protected void fireEvent(Object src, int eventId, Object parent)
protected void fireEvent(Object[] multiSrc, int eventId, Object parent, int delta)
protected SystemResourceChangeEvent createEvent(Object src, int eventId, Object parent)
protected SystemResourceChangeEvent createEvent(Object[] src, int eventId, Object parent)
protected SystemResourceChangeEvent createEvent(Object[] src, int eventId, Object parent, int delta)
protected void fireSubSystemEvent(SystemResourceChangeEvent event, SubSystem subsystem)
protected void fireSubSystemEvent(SystemResourceChangeEvent event)
protected void fireSubSystemEvent(SystemResourceChangeEvent event, SystemProfile profile)
protected void fireSubSystemFilterEvent(int eventId, SystemFilter filter)
protected void fireSubSystemFilterEvent(int eventId, SystemFilter[] filters)
protected void fireSubSystemFilterEvent(SystemResourceChangeEvent event, SystemFilter filter)
protected void fireSubSystemFilterEvent(int eventId, SystemFilterString filterString)
protected void fireSubSystemFilterEvent(int eventId, SystemFilterString[] filterStrings, int delta)
protected void fireSubSystemFilterEvent(SystemResourceChangeEvent event, SystemFilterString filterString)
public void filterEventFilterPoolCreated(SystemFilterPool newPool)
filterEventFilterPoolCreated
in interface SystemFilterPoolManagerProvider
public void filterEventFilterPoolDeleted(SystemFilterPool oldPool)
filterEventFilterPoolDeleted
in interface SystemFilterPoolManagerProvider
public void filterEventFilterPoolRenamed(SystemFilterPool pool, String oldName)
filterEventFilterPoolRenamed
in interface SystemFilterPoolManagerProvider
public void filterEventFilterPoolsRePositioned(SystemFilterPool[] pools, int delta)
filterEventFilterPoolsRePositioned
in interface SystemFilterPoolManagerProvider
public void filterEventFilterCreated(SystemFilter newFilter)
filterEventFilterCreated
in interface SystemFilterPoolManagerProvider
public void filterEventFilterDeleted(SystemFilter oldFilter)
filterEventFilterDeleted
in interface SystemFilterPoolManagerProvider
public void filterEventFilterRenamed(SystemFilter filter, String oldName)
filterEventFilterRenamed
in interface SystemFilterPoolManagerProvider
public void filterEventFilterUpdated(SystemFilter filter)
filterEventFilterUpdated
in interface SystemFilterPoolManagerProvider
public void filterEventFiltersRePositioned(SystemFilter[] filters, int delta)
filterEventFiltersRePositioned
in interface SystemFilterPoolManagerProvider
public void filterEventFilterStringCreated(SystemFilterString newFilterString)
filterEventFilterStringCreated
in interface SystemFilterPoolManagerProvider
public void filterEventFilterStringDeleted(SystemFilterString oldFilterString)
filterEventFilterStringDeleted
in interface SystemFilterPoolManagerProvider
public void filterEventFilterStringUpdated(SystemFilterString filterString)
filterEventFilterStringUpdated
in interface SystemFilterPoolManagerProvider
public void filterEventFilterStringsRePositioned(SystemFilterString[] filterStrings, int delta)
filterEventFilterStringsRePositioned
in interface SystemFilterPoolManagerProvider
public SystemFilterPool getFilterPool(SystemProfile profile, String name)
public SystemFilterPool[] getFilterPools(SystemProfile profile)
public IAction[] getFilterPoolActions(SystemFilterPool selectedPool, Shell shell)
YOU DO NOT NEED TO OVERRIDE THIS METHOD.
Most actions are handled in this base, except if you have your own action for
creating a new filter. In this case, override getNewFilterAction()
To add additional actions, override getAdditionalFilterPoolActions(SystemFilterPool selectedPool, Shell shell)
.
getFilterPoolActions
in interface SubSystemFactory
shell
- parent shell of viewer where the popup menu is being constructedprotected Vector getAdditionalFilterPoolActions(SystemFilterPool selectedPool, Shell shell)
By default, this returns null.
shell
- parent shell of viewer where the popup menu is being constructed
getFilterPoolActions(SystemFilterPool,Shell)
protected IAction[] getNewFilterPoolFilterActions(SystemFilterPool selectedPool, Shell shell)
getNewFilterPoolFilterAction(SystemFilterPool, Shell)
.
If you have multiple actions for creating new filters, override this.
If you have only a single action for creating new filters, override getNewFilterPoolFilterAction (without the 's').
shell
- parent shell of viewer where the popup menu is being constructedprotected IAction getNewFilterPoolFilterAction(SystemFilterPool selectedPool, Shell shell)
If you have multiple actions for creating new filters, override getNewFilterPoolFilterActions (note the 's').
If you have only a single action for creating new filters, override this.
shell
- parent shell of viewer where the popup menu is being constructedprotected IAction getNewNestedFilterAction(SystemFilter selectedFilter, Shell shell)
shell
- parent shell of viewer where the popup menu is being constructedprotected IAction getChangeFilterAction(SystemFilter selectedFilter, Shell shell)
selectedFilter
- the currently selected filtershell
- parent shell of viewer where the popup menu is being constructedpublic void customizeChangeFilterPropertyPage(SystemChangeFilterPropertyPage page, SystemFilter selectedFilter, Shell shell)
By default, this method will call getChangeFilterAction(SystemFilter, Shell)
to get
your change filter action, and will configure the given page from the dialog created by your
change filter action.
If your filter uses its own Change Filter dialog, versus subclassing or configuring
SystemChangeFilterDialog
you will have to override this method
and specify the following information for the supplied page (via its setters):
SystemChangeFilterPropertyPage.setDuplicateFilterStringErrorMessage(SystemMessage)
SystemChangeFilterPropertyPage.setFilterStringEditPane(SystemFilterStringEditPane)
SystemChangeFilterPropertyPage.setFilterStringValidator(ISystemValidator)
SystemChangeFilterPropertyPage.setListLabel(String, String)
SystemChangeFilterPropertyPage.setParentPoolPromptLabel(String, String)
SystemChangeFilterPropertyPage.setNamePromptLabel(String, String)
SystemChangeFilterPropertyPage.setNewListItemText(String)
SystemChangeFilterPropertyPage.setDuplicateFilterStringErrorMessage(SystemMessage)
SystemChangeFilterPropertyPage.setEditable(boolean)
SystemChangeFilterPropertyPage.setSupportsMultipleStrings(boolean)
com.ibm.etools.systems.core.ui.propertypages.SystemChangeFilterPropertyPage#setDescription(String)
customizeChangeFilterPropertyPage
in interface SubSystemFactory
public boolean showChangeFilterStringsPropertyPage(SystemFilter filter)
showChangeFilterStringsPropertyPage
in interface SubSystemFactory
public void customizeFilterStringPropertyPage(SystemFilterStringPropertyPage page, SystemFilterString selectedFilterString, Shell shell)
By default, this method will call getChangeFilterAction(SystemFilter, Shell)
to get
your change filter action, and will configure the given page from the dialog created by your
change filter action.
If your filter uses its own Change Filter dialog, versus subclassing or configuring
SystemChangeFilterDialog
you will have to
override this method and specify the following information for the supplied page (via its setters):
SystemFilterStringPropertyPage.setDuplicateFilterStringErrorMessage(SystemMessage)
SystemFilterStringPropertyPage.setFilterStringEditPane(SystemFilterStringEditPane)
SystemFilterStringPropertyPage.setFilterStringValidator(ISystemValidator)
SystemFilterStringPropertyPage.setDuplicateFilterStringErrorMessage(SystemMessage)
SystemFilterStringPropertyPage.setEditable(boolean)
com.ibm.etools.systems.core.ui.propertypages.SystemFilterStringPropertyPage#setDescription(String)
customizeFilterStringPropertyPage
in interface SubSystemFactory
public SubSystem[] testForActiveReferences(SystemProfile profile)
Called when user tries to make a profile inactive. We prevent this if there exists active references.
testForActiveReferences
in interface SubSystemFactory
profile
- The profile being tested
public IAction[] getFilterPoolReferenceActions(SystemFilterPoolReference selectedPoolRef, Shell shell)
getFilterPoolReferenceActions
in interface SubSystemFactory
selectedPoolRef
- the currently selected pool referenceshell
- parent shell of viewer where the popup menu is being constructedprotected Vector getAdditionalFilterPoolReferenceActions(SystemFilterPool selectedPool, Shell shell)
By default, this returns null.
shell
- parent shell of viewer where the popup menu is being constructed
getFilterPoolReferenceActions(SystemFilterPoolReference,Shell)
protected IAction getRemoveFilterPoolReferenceAction(SystemFilterPool selectedPool, Shell shell)
shell
- parent shell of viewer where the popup menu is being constructedpublic String getTranslatedFilterTypeProperty(SystemFilter selectedFilter)
getTranslatedFilterTypeProperty
in interface SubSystemFactory
public SystemFilter createFilterByPrompting(SystemFilterReference referenceToPromptableFilter, Shell shell) throws Exception
This base implementation prompts using the generic filter prompt. You should override this but copy this code to use as a base/example how to do this.
createFilterByPrompting
in interface SubSystemFactory
Exception
public IAction[] getFilterActions(SystemFilter selectedFilter, Shell shell)
Only supported and used by subsystems that support filters.
YOU DO NOT NEED TO OVERRIDE THIS METHOD.
Most actions are handled in this base, except if you have your own action for creating a new nested filter. In this case, override getNewFilterAction()
getFilterActions
in interface SubSystemFactory
public boolean showRefreshOnFilter()
showRefreshOnFilter
in interface SubSystemFactory
public boolean showGenericShowInTableOnFilter()
showGenericShowInTableOnFilter
in interface SubSystemFactory
protected Vector getAdditionalFilterActions(SystemFilter selectedFilter, Shell shell)
By default, this returns null.
getFilterActions(SystemFilter,Shell)
public IAction[] getFilterReferenceActions(SystemFilterReference selectedFilterRef, Shell shell)
YOU DO NOT NEED TO OVERRIDE THIS METHOD.
Most actions are handled in this base, except if you have your own action for
creating a new filter. In this case, override getNewFilterAction()
To add additional actions, override getAdditionalFilterReferenceActions(SystemFilterReference, Shell)
.
getFilterReferenceActions
in interface SubSystemFactory
selectedFilterRef
- the currently selected filter referenceshell
- parent shell of viewer where the popup menu is being constructedprotected Vector getAdditionalFilterReferenceActions(SystemFilterReference selectedFilterRef, Shell shell)
By default, this returns null.
selectedFilterRef
- the currently selected filter referenceshell
- parent shell of viewer where the popup menu is being constructed
public ServerLauncher createServerLauncher(SubSystem ss)
Create an instance of ServerLauncher, and add it to the given subsystem.
When a subsystem is created, and supportsServerLaunchProperties()
returns true, this method is called to create the server launcher instance
associated with the subsystem. The default implementation is to create an
instance of IBMServerLauncher
, but override to create your own
ServerLauncher instance if you have your own class.
public IServerLauncherForm getServerLauncherForm(Shell shell, ISystemMessageLine msgLine)
supportsServerLaunchProperties()
returns true.
We return com.ibm.etools.systems.core.ui.widgets.ServerLauncherForm
.
Override if appropriate.
getServerLauncherForm
in interface SubSystemFactory
public boolean save()
Totally handled for you!
Calls saveSubSystems() and saveFilterPools()
Exceptions are swallowed since we can deal with them on shutdown anyway!
save
in interface SubSystemFactory
public void saveSubSystems() throws Exception
If you handle your own save action versus using MOF, then override saveSubSystem(SubSystem) versus this method.
Attempts to save all of them, swallowing exceptions, then at the end throws the last exception caught.
Exception
public void saveSubSystems(SystemConnection conn) throws Exception
If you handle your own save action versus using MOF, then override saveSubSystem(SubSystem) versus this method.
Attempts to save all of them, swallowing exceptions, then at the end throws the last exception caught.
Exception
public void saveSubSystem(SubSystem subsys) throws Exception
Calls get saveFileName on the subsystem object to determine what file name to save to.
You need only override if you do not use MOF!
saveSubSystem
in interface SubSystemFactory
Exception
public boolean saveFilterPools() throws Exception
This method is handled for you. If you do override, please call super.saveFilterPools.
Exception
public void saveFilterPools(SystemFilterPoolManager mgr) throws Exception
This method is handled for you. If you do override, please call super.saveFilterPools.
Exception
public boolean restore(SystemConnection connection)
Handled for you!
protected SubSystem[] restoreSubSystems(SystemConnection connection) throws Exception
Exception
protected boolean subSystemsHaveBeenRestored(SystemConnection connection)
protected SubSystem restoreSubSystem(SystemConnection connection, String fileName) throws Exception
After restoring the saved names of the referenced pools, we then resolve those names into memory references.
Exception
public SystemFilterPoolManager[] restoreAllFilterPoolManagersForAllProfiles()
protected IFolder getSubSystemsFolder(SystemConnection connection)
public void setConnection(SystemConnection connection)
setConnection
in interface SubSystemFactory
public void setCurrentSelection(Object[] selection)
setCurrentSelection
in interface SubSystemFactory
protected void handleException(String msg, Exception exc)
protected SubsystemsFactory initMOF()
protected void initSubSystemMOF()
If you do no use MEF, then simpy override to do nothing. noteThis method should be abstract but MOF doesn't allow abstract impl classes at this point
protected SystemMOFHelpers getMOFHelpers()
public static SubsystemsFactory getSSMOFfactory()
public static String getConnectingMessage(String hostName, int port)
public static String getDisconnectingMessage(String hostName, int port)
public static String getDefaultFilterPoolName(String profileName)
public String toString()
public EList getSubSystemList()
SubSystemFactory
getSubSystemList
in interface SubSystemFactory
public EList getFilterPoolManagerList()
SubSystemFactory
getFilterPoolManagerList
in interface SubSystemFactory
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
public Object eGet(EStructuralFeature eFeature, boolean resolve)
public void eSet(EStructuralFeature eFeature, Object newValue)
public void eUnset(EStructuralFeature eFeature)
public boolean eIsSet(EStructuralFeature eFeature)
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |