|
|
|
|
org.eclipse.rse.ui
Class RSEUIPlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
org.eclipse.rse.ui.SystemBasePlugin
org.eclipse.rse.ui.RSEUIPlugin
-
All Implemented Interfaces:
-
BundleActivator
-
public class RSEUIPlugin
- extends
SystemBasePlugin
Plugin for the core remote systems support.
Constructor Summary
|
RSEUIPlugin
()
Constructor for SystemsPlugin |
Methods inherited from class org.eclipse.rse.ui.
SystemBasePlugin
|
getActiveWorkbenchShell,
getActiveWorkbenchWindow,
getBaseDefault,
getIconPath,
getImage,
getImageDescriptor,
getImageDescriptorFromIDE,
getLogger,
getMessage,
getPluginImage,
getPluginImage,
getSymbolicName,
getWorkbench,
getWorkspace,
getWorkspaceRoot,
isHeadless,
loadDefaultMessageFile,
loadMessageFile,
logDebugMessage,
logError,
logError,
logInfo,
logMessage,
logMessage,
logWarning,
printMessages,
putImageInRegistry,
resolveBundleNameNL,
scanForDuplicateMessages
|
Methods inherited from class org.eclipse.ui.plugin.
AbstractUIPlugin
|
createImageRegistry,
getDialogSettings,
getImageRegistry,
getPreferenceStore,
imageDescriptorFromPlugin,
initializeDefaultPluginPreferences,
initializeDefaultPreferences,
initializeImageRegistry,
loadDialogSettings,
loadPreferenceStore,
refreshPluginActions,
saveDialogSettings,
savePreferenceStore,
shutdown,
startup
|
Methods inherited from class org.eclipse.core.runtime.
Plugin
|
find,
find,
getBundle,
getDescriptor,
getLog,
getPluginPreferences,
getStateLocation,
internalInitializeDefaultPluginPreferences,
isDebugging,
openStream,
openStream,
savePluginPreferences,
setDebugging,
toString
|
PLUGIN_ID
public static final
String PLUGIN_ID
-
See Also:
-
Constant Field Values
HELPPREFIX
public static final
String HELPPREFIX
-
See Also:
-
Constant Field Values
INCLUDE_LOCAL_YES
public static final boolean INCLUDE_LOCAL_YES
-
See Also:
-
Constant Field Values
INCLUDE_LOCAL_NO
public static final boolean INCLUDE_LOCAL_NO
-
See Also:
-
Constant Field Values
RSEUIPlugin
public RSEUIPlugin()
- Constructor for SystemsPlugin
getDefault
public static
RSEUIPlugin getDefault()
- Return singleton. Same as inherited getBaseDefault but returned object
is typed as RSEUIPlugin versus SystemBasePlugin.
-
initializeDefaultPreferences
public void initializeDefaultPreferences()
- Initializes preferences.
-
setLoggingSystemMessageLine
public void setLoggingSystemMessageLine(boolean flag)
- Set whether or not to log the messages shown on the system message line for dialogs
and wizards. These message are typically validation messages for fields.
These are logged using the RSE logging settings. The default is to not log
these messages.
-
-
Parameters:
-
flag - true if logging of these messages is desired, false otherwise.
getLoggingSystemMessageLine
public boolean getLoggingSystemMessageLine()
-
-
Returns:
- true if we are logging messages displayed on the system message line.
initializeImageRegistry
protected void initializeImageRegistry()
-
Description copied from class:
SystemBasePlugin
- Initialize the image registry by declaring all of the required graphics.
Typically this is a series of calls to putImageInRegistry. Use
getIconPath() to qualify the file name of the icons with their relative
path.
-
-
Specified by:
-
initializeImageRegistry
in class
SystemBasePlugin
-
start
public void start(
BundleContext context)
throws
Exception
-
-
Specified by:
-
start
in interface
BundleActivator
-
Overrides:
-
start
in class
SystemBasePlugin
-
-
Throws:
-
Exception
-
See Also:
-
BundleActivator.start(org.osgi.framework.BundleContext)
getSystemViewAdapterFactory
public
IAdapterFactory getSystemViewAdapterFactory()
- For fastpath access to our adapters for non-local objects in our model.
Exploits the knowledge we use singleton adapters.
-
-
Since:
- 3.0 returning IAdapterFactory rather than SystemViewAdapterFactory
restart
public void restart()
- Restart the whole thing after a team synchronization
-
closeViews
public void closeViews()
- Close or reset views prior to full refresh after team synch
-
openViews
public void openViews()
- Restore views prior to full refresh after team synch
-
stop
public void stop(
BundleContext context)
throws
Exception
-
-
Specified by:
-
stop
in interface
BundleActivator
-
Overrides:
-
stop
in class
SystemBasePlugin
-
-
Throws:
-
Exception
-
See Also:
-
BundleActivator.stop(org.osgi.framework.BundleContext)
disconnectAll
protected void disconnectAll(boolean doSave)
- Disconnect all subsystems
-
isSystemRegistryActive
public boolean isSystemRegistryActive()
-
Deprecated. use
RSECorePlugin.isTheSystemRegistryActive()
- Test if the SystemRegistry has been instantiated already.
Use this when you don't want to start the system registry as a side effect of retrieving it.
-
-
Returns:
-
true if the System Registry has been instantiated already.
getPersistenceManager
public
IRSEPersistenceManager getPersistenceManager()
-
Deprecated. use
RSECorePlugin.getThePersistenceManager()
- Return the persistence manager used for persisting RSE profiles.
-
-
Returns:
- the persistence manager used for persisting RSE profiles
getTheSystemRegistryUI
public static
ISystemRegistryUI getTheSystemRegistryUI()
- Return the SystemRegistryUI singleton.
-
-
Returns:
- the SystemRegistryUI singleton.
getTheSystemProfileManager
public static
ISystemProfileManager getTheSystemProfileManager()
-
Deprecated. use
RSECorePlugin.getTheSystemProfileManager()
- Return the master profile manager singleton.
-
-
Returns:
- the RSE Profile Manager Singleton.
isTheSystemRegistryActive
public static boolean isTheSystemRegistryActive()
-
Deprecated. use
RSECorePlugin.isTheSystemRegistryActive()
- Check if the SystemRegistry has been instantiated already.
Use this when you don't want to start the system registry as a side effect
of retrieving it.
-
-
Returns:
-
true if the System Registry has been instantiated already.
getMessageFileDTD
public
URL getMessageFileDTD()
-
-
Returns:
- The URL to the message file DTD. Null if it is not found.
getMessageFile
public
SystemMessageFile getMessageFile(
String messageFileName)
- Load a message file for this plugin.
-
-
Parameters:
-
messageFileName - - the name of the message xml file. Will look for it in this plugin's install folder.
-
Returns:
- a message file object containing the parsed contents of the message file, or null if not found.
getDefaultMessageFile
public
SystemMessageFile getDefaultMessageFile(
String messageFileName)
- Load a default message file for this plugin for cases where messages haven't been translated.
-
-
Parameters:
-
messageFileName - - the name of the message xml file. Will look for it in this plugin's install folder.
-
Returns:
- a message file object containing the parsed contents of the message file, or null if not found.
getPluginMessageFile
public static
SystemMessageFile getPluginMessageFile()
- Return this plugin's message file. Assumes it has already been loaded via a call to getMessageFile.
-
getMessage
public
SystemMessage getMessage(
String msgId)
-
getPluginMessage
public static
SystemMessage getPluginMessage(
String msgId)
- Retrieve a message from this plugin's message file
-
-
Parameters:
-
msgId - - the ID of the message to retrieve. This is the concatenation of the
message's component abbreviation, subcomponent abbreviation, and message ID as declared
in the message xml file.
getPluginMessage
public static
SystemMessage getPluginMessage(
String msgId,
Object[] subsVars)
- Retrieve a message from this plugin's message file and do multiple substitution on it.
-
-
Parameters:
-
msgId - - the ID of the message to retrieve. This is the concatenation of the
message's component abbreviation, subcomponent abbreviation, and message ID as declared
in the message xml file. -
subsVars - - an array of objects to substitute in for %1, %2, etc
getPluginMessage
public static
SystemMessage getPluginMessage(
String msgId,
Object subsVar)
- Retrieve a message from this plugin's message file and do single substitution on it.
-
-
Parameters:
-
msgId - - the ID of the message to retrieve. This is the concatenation of the
message's component abbreviation, subcomponent abbreviation, and message ID as declared
in the message xml file. -
subsVar - - an array of objects to substitute in for %1, %2, etc.
-
Returns:
- the message.
registerViewSupplier
public void registerViewSupplier(
ISystemViewSupplier vs)
- Register a view supplier so we can ask them to participate in team synchs
-
unRegisterViewSupplier
public void unRegisterViewSupplier(
ISystemViewSupplier vs)
- UnRegister a previously registered view supplier
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.
|
|
|