|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
com.ibm.rational.common.test.editor.framework.TestEditorPlugin
public class TestEditorPlugin
The main UI plug-in class.
Field Summary | |
---|---|
static String |
ms_ACTIVE_EDITOR_TYPE
|
static String |
ms_RPT_COMMAND_CONTEXT_ID
|
static String |
PLUGIN_ID
|
static String |
PREF_FORCEWRAP_THRESHOLD
|
static String |
PREF_PREVIEW_LINKED
|
static String |
PREF_SEARCH_DECORATOR_COLOR
|
static String |
PREF_SEARCH_DECORATOR_TEXT
|
static String |
PREF_SEARCH_SAVE_TEXT
|
static String |
PREF_SEARCH_SAVE_TYPES
|
static String |
PREF_USE_ERROR_COLOR
|
static String |
PREF_USE_SEARCH_DECORATOR
|
static int |
RQM_EDITOR_MODE
|
static int |
USER_EDITOR_MODE
|
Fields inherited from class org.eclipse.core.runtime.Plugin |
---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Fields inherited from interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.ILoggingConstants |
---|
RPCA0100W, RPCA0101W, RPCA0102W, RPCA0103W, RPCA0104W, RPCA0105E, RPCA0106E, RPCA0107E, RPCA0108E, RPCA0109E, RPCA0110E, RPCA1001E, RPCA1001W, RPCA1002E |
Fields inherited from interface com.ibm.rational.common.test.editor.framework.preferences.CBPreferenceConstants |
---|
FG_DOCUMENTATION, FG_REGEX_GROUP, FG_REGEX_MATCH, PCN_DISABLED_COLOR_BG, PCN_DISABLED_COLOR_FG, PCN_DISABLED_PREFIX, PCN_DISPLAY_NESTED_COMMENTS, PCN_INFO_COLOR, PCN_INFO_COLOR_USED, PCN_RANGE_EVEN_BG, PCN_RANGE_ODD_BG, PCN_SEARCH_MATCH_BG, PCN_SEARCH_MATCH_FG |
Constructor Summary | |
---|---|
TestEditorPlugin()
|
Method Summary | |
---|---|
void |
addDependencyBuilder(com.ibm.rational.test.lt.core.utils.DelayedDependencyBuilder builder)
|
void |
addDependencyBuilder(com.ibm.rational.test.lt.core.utils.DelayedDependencyBuilder builder,
Thread th)
|
void |
addEditorListener(IEditorStateListener listener)
Adds specified IEditorStateListener to list of listeners. |
static void |
cacheSyncPointName(String name)
|
void |
end()
|
static IStatus |
errorStatus(String msg,
Throwable t)
|
boolean |
fireEditorEvent(int event_type,
TestEditor editor)
Notifies listeners of changes in the state of TestEditor . |
CommonEditorExtension |
getActiveEditor()
TestEditorPlugin keeps track of which TestEditor is active (editor window has keyboard focus). |
static Color |
getColor(String key)
Extract color from color registry |
static ColorRegistry |
getColorRegistry()
|
static TestEditorPlugin |
getDefault()
Returns the shared instance. |
IDialogSettings |
getDialogSettingsSection(String name,
IDialogSettings parent)
DialogSections are used to store state information. |
static TestEditor |
getEditorFor(CBActionElement element)
Returns an editor that has the model to which the argument element belongs. |
static int |
getEditorMode()
Returns the mode of the editor (user or RQM). |
static IDialogSettings |
getEditorState(TestEditor testEditor)
|
static Job |
getFindDuplicateIDsJob()
|
static String |
getID()
Returns this plugin's id. |
TestEditorImages |
getImageManager()
|
static TestEditorPlugin |
getInstance()
Returns the shared instance. |
PDLogger |
getLogger()
|
ResourceBundle |
getNonTranslatableResourceBundle()
|
static TestEditor[] |
getOpenEditors()
|
static PluginHelper |
getPluginHelper()
|
static org.eclipse.hyades.test.core.util.ResourceBundleManager |
getResourceBundleManager()
|
static String |
getString(String key)
Returns a string from Test Editor plugin.properties file |
static String |
getString(String key,
String arg)
Returns a string from Test Editor plugin.properties file |
static String |
getString(String key,
String[] args)
Returns a string from Test Editor plugin.properties file |
static String[] |
getSyncPointsNames()
|
com.ibm.rational.common.test.editor.framework.extensions.TestInformationProvider |
getTestInfoProvider(String providerId)
|
ResourceBundle |
getTranslatableResourceBundle()
|
static IWorkspace |
getWorkspace()
Returns the workspace instance. |
void |
logDebug(String msg)
|
void |
logError(String msg)
|
void |
logError(String msg,
Throwable t)
|
void |
logError(Throwable t)
|
void |
logWarning(String msg)
|
void |
propertyChange(PropertyChangeEvent event)
|
static long |
recallLastModifiedDate(String path)
Deprecated. |
void |
removeEditorListener(IEditorStateListener listener)
Removes specified IEditorStateListener from list of listeners. |
static void |
removeSyncPointName(String name)
|
void |
runErrorCheckingJob(TestEditor editor)
Schedules an Error Checking Job for the editor . |
void |
saveDialogSettings()
|
static void |
saveEditorState(TestEditor testEditor)
|
void |
setActiveEditor(CommonEditorExtension activeEditor)
TestEditorPlugin keeps track of which TestEditor is active (editor window has keyboard focus). |
static int |
setEditorMode(int mode)
|
static void |
setLastModifiedDate(String path,
long date)
Deprecated. |
void |
start()
|
void |
start(org.osgi.framework.BundleContext context)
|
void |
stop(org.osgi.framework.BundleContext context)
|
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin |
---|
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.rational.test.lt.core.logging.ILTPlugin |
---|
getBundle |
Field Detail |
---|
public static final String PLUGIN_ID
public static String ms_ACTIVE_EDITOR_TYPE
public static String ms_RPT_COMMAND_CONTEXT_ID
public static final int USER_EDITOR_MODE
public static final int RQM_EDITOR_MODE
public static final String PREF_PREVIEW_LINKED
public static final String PREF_USE_ERROR_COLOR
public static final String PREF_SEARCH_DECORATOR_COLOR
public static final String PREF_SEARCH_DECORATOR_TEXT
public static final String PREF_USE_SEARCH_DECORATOR
public static final String PREF_SEARCH_SAVE_TYPES
public static final String PREF_SEARCH_SAVE_TEXT
public static final String PREF_FORCEWRAP_THRESHOLD
Constructor Detail |
---|
public TestEditorPlugin()
Method Detail |
---|
public static TestEditorPlugin getDefault()
public static TestEditorPlugin getInstance()
public static IWorkspace getWorkspace()
public static org.eclipse.hyades.test.core.util.ResourceBundleManager getResourceBundleManager()
public static String getString(String key) throws NullPointerException, MissingResourceException
NullPointerException
MissingResourceException
public static String getString(String key, String arg) throws NullPointerException, MissingResourceException
NullPointerException
MissingResourceException
public static String getString(String key, String[] args) throws NullPointerException, MissingResourceException
NullPointerException
MissingResourceException
public void start(org.osgi.framework.BundleContext context) throws Exception
start
in interface org.osgi.framework.BundleActivator
start
in class AbstractUIPlugin
Exception
public static String getID()
public void stop(org.osgi.framework.BundleContext context) throws Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class AbstractUIPlugin
Exception
Plugin.shutdown()
public static void saveEditorState(TestEditor testEditor)
public void saveDialogSettings()
saveDialogSettings
in class AbstractUIPlugin
public static IDialogSettings getEditorState(TestEditor testEditor)
public static PluginHelper getPluginHelper()
public PDLogger getLogger()
public ResourceBundle getTranslatableResourceBundle()
getTranslatableResourceBundle
in interface com.ibm.rational.test.lt.core.logging.ILTSubComponent
public ResourceBundle getNonTranslatableResourceBundle()
getNonTranslatableResourceBundle
in interface com.ibm.rational.test.lt.core.logging.ILTSubComponent
public static long recallLastModifiedDate(String path)
path
- public static void setLastModifiedDate(String path, long date)
path
- public CommonEditorExtension getActiveEditor()
TestEditor
is active (editor window has keyboard focus).
null
.CommonEditorExtension
public void setActiveEditor(CommonEditorExtension activeEditor)
TestEditor
is active (editor window has keyboard focus).
activeEditor
- CommonEditorExtensionTestEditorPlugin.getActiveEditor()
,
CommonEditorExtension
public void addEditorListener(IEditorStateListener listener)
IEditorStateListener
to list of listeners.
listener
- public void removeEditorListener(IEditorStateListener listener)
IEditorStateListener
from list of listeners.
listener
- public boolean fireEditorEvent(int event_type, TestEditor editor)
TestEditor
.
event_type
- Stringeditor
- TestEditor
that has caused a change.
true
.IEditorStateListener
,
TestEditorPlugin.addEditorListener(IEditorStateListener)
,
TestEditorPlugin.removeEditorListener(IEditorStateListener)
public static TestEditor[] getOpenEditors()
instanceof
should be used to look for objects of interest.public static TestEditor getEditorFor(CBActionElement element)
element
belongs.
element
- CBActionElement
TestEditor
or null
.public IDialogSettings getDialogSettingsSection(String name, IDialogSettings parent)
name
- String
name of the DialogSection
to return. If name
subsection is not found
in parent, it is created.parent
- IDialogSettings
parent dialog section, or null
. If parent is null
,
the @link AbstractUIPlugin#getDialogSettings() is called. Its return value is used as a parent.
public TestEditorImages getImageManager()
public void runErrorCheckingJob(TestEditor editor)
editor
.
editor
- public static void cacheSyncPointName(String name)
public static void removeSyncPointName(String name)
public static String[] getSyncPointsNames()
public void propertyChange(PropertyChangeEvent event)
propertyChange
in interface IPropertyChangeListener
public com.ibm.rational.common.test.editor.framework.extensions.TestInformationProvider getTestInfoProvider(String providerId)
public void addDependencyBuilder(com.ibm.rational.test.lt.core.utils.DelayedDependencyBuilder builder)
public void addDependencyBuilder(com.ibm.rational.test.lt.core.utils.DelayedDependencyBuilder builder, Thread th)
builder
- th
- public static Job getFindDuplicateIDsJob()
public static int setEditorMode(int mode)
public static int getEditorMode()
public static ColorRegistry getColorRegistry()
public static Color getColor(String key)
key
- String color name.
LoadTestEditorPlugin#getColorRegistry()
public void end()
end
in interface org.eclipse.hyades.test.ui.navigator.IProxyRefreshListener
public void start()
start
in interface org.eclipse.hyades.test.ui.navigator.IProxyRefreshListener
public static IStatus errorStatus(String msg, Throwable t)
public void logError(String msg)
public void logError(String msg, Throwable t)
public void logError(Throwable t)
public void logDebug(String msg)
public void logWarning(String msg)
|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |