public class LoadTestEditorPlugin extends AbstractUIPlugin implements com.ibm.rational.test.lt.testeditor.preferences.ILtPreferenceConstants, IPropertyChangeListener, ILTPlugin, com.ibm.rational.test.lt.testeditor.main.LoadTestLoggingConstants, IEditorStateListener, com.ibm.rational.test.common.models.behavior.internal.listeners.CBListener
1. Creates following menu group for Add and Insert actions:
TestEditorPlugin
Modifier and Type | Field and Description |
---|---|
static String |
ID |
static String |
ms_COMMENT_ID |
static String |
ms_CUSTOM_CODE |
static String |
ms_DATAPOOL_ID |
static String |
ms_DELAY_ID |
static String |
ms_ELSE_ID |
static String |
ms_IF_ID |
static String |
ms_LOOP_ID |
static String |
ms_LTVAR |
static String |
ms_LTVAR_ASSIGN |
static String |
ms_LTVAR_CONT |
static String |
ms_RS_ID |
static String |
ms_TRANSACTION_ID |
static String |
ms_WB_ID |
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
FIND_MORE_DEF_ACTION, FIND_MORE_DEF_ACTION_AUTO, FIND_MORE_PREF_COUNTER, FIND_MORE_PREF_SHOW_PROMT, PCN_ASK_KEEP_CHILDREN, PCN_ASK_MOVE_INTO_NEW_IF, PCN_ASK_MOVE_INTO_NEW_LOOP, PCN_ASK_MOVE_INTO_NEW_TRANSACTION, PCN_ASK_TO_GENERATE_DEEFAULT_DP, PCN_AUTO_DP_DIGICERTS, PCN_AUTO_GENERATE_DEFAULT_DATAPOOL, PCN_COMPARE_ENCODED_TO_UNENCODED, PCN_CONFIRM_DEFAULT_DATAPOOL, PCN_FIT_SCREEN_ID, PCN_FIX_OPU_OPTION, PCN_IMPORT_DEFAULT_DATAPOOL, PCN_KEEP_CHILDREN, PCN_MOVE_INTO_NEW_IF, PCN_MOVE_INTO_NEW_LOOP, PCN_MOVE_INTO_NEW_TRANSACTION, PCN_SRH_INCLUDE_OVERLAPS, PCN_SRH_INCLUDE_SUBST, PCN_STORE_VP_STRINGS, PCN_WARN_TEST_TOO_LARGE, PCN_X_COLOR_BG, PCN_X_COLOR_FG, PCN_X_FONT, PCN_X_LABEL, PCN_Y_BUILTIN_SUBST, PCN_Y_CUSTOM_CODE, PCN_Y_DATAPOOL_CANDIDATE, PCN_Y_DATAPOOLED_TEXT, PCN_Y_FAILED_SUBST, PCN_Y_FIELD_REFERENCE, PCN_Y_REFERENCE, PCN_Y_TESTVAR_SUBST, PCN_Y_UNUSED_REFERENCE, PCN_Y_USED_REFERENCE, PCN_Z_CUSTOM_CODE, PCN_Z_DATAPOOL, PCN_Z_REFERENCE
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_KEEP_CHILDREN_OPTION, PCN_KEEP_CHILDREN_OPTION2, PCN_MOVE_INTO_IF_OPTION, PCN_MOVE_INTO_LOOP_OPTION, PCN_MOVE_INTO_OTHER_OPTION, PCN_MOVE_INTO_RS_OPTION, PCN_MOVE_INTO_TRANS_OPTION, PCN_RANGE_EVEN_BG, PCN_RANGE_ODD_BG, PCN_SEARCH_MATCH_BG, PCN_SEARCH_MATCH_FG, PREFIX_CAPTURE_SELECTION_UPON_INSERT
prefix_RPTN, RPTNE0001_INIT_ERROR, RPTNE0002_INTERNAL_ERROR, RPTNE0003_CREATE_DATAPOOL, RPTNE0004_EXTENSION_ERROR, RPTNE0005_MARKER_NOT_FOUND, RPTNE0017_CREATE_REFERENCE, RPTNE0020_CREATE_DATAPOOL_SUBST, RPTNE0040_OPEN_FILE, RPTNE0050_DISPLAY_RULES_FAILED, RPTNI0009_COLUMNS_REFRESHED, RPTNW0006_DC_ERROR, RPTNW0007_DATAPOOL_REMOVED, RPTNW0008_COLUMNS_REMOVED, RPTNW0016_CREATE_REFERENCE
AFTER_SAVE, BEFORE_SAVE, LOADED, UNLOADING
Constructor and Description |
---|
LoadTestEditorPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
afterSave(TestEditor editor) |
boolean |
beforeSave(TestEditor editor) |
static IStatus |
errorStatus(String msg,
Throwable t) |
void |
fire(org.eclipse.emf.common.notify.Notification notification) |
com.ibm.rational.test.lt.testeditor.extensions.ArmTagHandler |
getArmTagHandler(TestEditor editor) |
static boolean |
getBooleanProp(String propName)
Returns a value of the given
boolean property |
static Color |
getColor(String key)
Extract color from color registry
|
static ColorRegistry |
getColorRegistry() |
com.ibm.rational.test.lt.testeditor.main.DatapoolMonitor |
getDatapoolMonitor()
Returns the datapoolMonitor.
|
IDialogSettings |
getDialogSettingsSection(String name,
IDialogSettings parent)
DialogSections are used to store state information.
|
LoadTestIconManager |
getImageManager() |
static LoadTestEditorPlugin |
getInstance()
Returns the shared instance.
|
static PDLogger |
getLogger() |
ResourceBundle |
getNonTranslatableResourceBundle() |
static PluginHelper |
getPluginHelper() |
static String |
getResourceString(String key)
Returns resource string from LoadTest plugin.properties
|
static String[] |
getStringArrayProp(String propName,
String sep)
Returns an array of LoadTest string properties.
|
static String |
getStringProp(String propName)
Returns string value of LoadTest property.
|
static String |
getTransfromLabel(com.ibm.rational.test.lt.datatransform.adapters.IDataTransform a,
String id) |
ResourceBundle |
getTranslatableResourceBundle()
Returns TranslatableResource bundle.
|
static boolean |
isAutoLinkWithDsv() |
void |
loaded(TestEditor editor) |
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)
This method is called when some color is changed through the Load Test preferences.
|
void |
saveDialogSettings()
This method is called throughout TestEditor when it needs to save state information.
|
static void |
setAutoLinkWithDsv(boolean b) |
static void |
setBooleanProp(String propName,
boolean b)
Sets boolean value of the given property.
|
void |
setDefaults()
Initializes default preferences.
|
void |
start(org.osgi.framework.BundleContext context) |
void |
stop(org.osgi.framework.BundleContext context) |
void |
unloading(TestEditor editor) |
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, savePreferenceStore, shutdown, startup
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString
public static final String ID
public static final String ms_TRANSACTION_ID
public static final String ms_DATAPOOL_ID
public static final String ms_IF_ID
public static final String ms_ELSE_ID
public static final String ms_LOOP_ID
public static final String ms_RS_ID
public static final String ms_WB_ID
public static final String ms_COMMENT_ID
public static final String ms_DELAY_ID
public static final String ms_CUSTOM_CODE
public static final String ms_LTVAR
public static final String ms_LTVAR_CONT
public static final String ms_LTVAR_ASSIGN
public static LoadTestEditorPlugin getInstance()
public static PluginHelper getPluginHelper()
PluginHelper
public void start(org.osgi.framework.BundleContext context) throws Exception
start
in interface org.osgi.framework.BundleActivator
start
in class AbstractUIPlugin
Exception
public void stop(org.osgi.framework.BundleContext context) throws Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class AbstractUIPlugin
Exception
public void setDefaults()
PreferencesInitializer.initializeDefaultPreferences()
public static String getResourceString(String key)
key
- Stringpublic static boolean getBooleanProp(String propName)
boolean
propertypropName
- Stringpublic static void setBooleanProp(String propName, boolean b)
propName
- b
- public static String getStringProp(String propName)
propName
- Stringpublic static String[] getStringArrayProp(String propName, String sep)
propName
, separated by
separator sep
.propName
- String - name of the propertysep
- String separator.public com.ibm.rational.test.lt.testeditor.main.DatapoolMonitor getDatapoolMonitor()
DatapoolMonitor
public static ColorRegistry getColorRegistry()
public static Color getColor(String key)
key
- String color name.LoadTestEditorPlugin.getColorRegistry()
public void propertyChange(PropertyChangeEvent event)
propertyChange
in interface IPropertyChangeListener
IPropertyChangeListener.propertyChange(org.eclipse.jface.util.PropertyChangeEvent)
public ResourceBundle getTranslatableResourceBundle()
getTranslatableResourceBundle
in interface com.ibm.rational.test.lt.core.logging.ILTSubComponent
ILTSubComponent.getTranslatableResourceBundle()
public ResourceBundle getNonTranslatableResourceBundle()
getNonTranslatableResourceBundle
in interface com.ibm.rational.test.lt.core.logging.ILTSubComponent
ILTSubComponent.getNonTranslatableResourceBundle()
public void logError(String msg)
public void logError(Throwable t)
public void logDebug(String msg)
public void logWarning(String msg)
public com.ibm.rational.test.lt.testeditor.extensions.ArmTagHandler getArmTagHandler(TestEditor editor)
ArmTagHandler
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.TestEditorPlugin.getDialogSettingsSection(String, IDialogSettings)
public LoadTestIconManager getImageManager()
public void saveDialogSettings()
saveDialogSettings
in class AbstractUIPlugin
AbstractUIPlugin.saveDialogSettings()
public void afterSave(TestEditor editor)
afterSave
in interface IEditorStateListener
public boolean beforeSave(TestEditor editor)
beforeSave
in interface IEditorStateListener
public void loaded(TestEditor editor)
loaded
in interface IEditorStateListener
public void unloading(TestEditor editor)
unloading
in interface IEditorStateListener
public static boolean isAutoLinkWithDsv()
public static void setAutoLinkWithDsv(boolean b)
public static String getTransfromLabel(com.ibm.rational.test.lt.datatransform.adapters.IDataTransform a, String id)
public void fire(org.eclipse.emf.common.notify.Notification notification)
fire
in interface com.ibm.rational.test.common.models.behavior.internal.listeners.CBListener
CBListener.fire(org.eclipse.emf.common.notify.Notification)
© Copyright IBM Corp. 2013. All rights reserved.