|
||||||||||
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
org.softevo.ample.AmplePlugin
public class AmplePlugin
Main plugin class.
Field Summary | |
---|---|
static boolean |
DEBUG
|
private AmpleTestRunListener |
listener
Ample's JUnit test run listener. |
private static AmplePlugin |
plugin
The shared instance. |
private static RankingView |
rankingView
The ranking view that displays the results. |
private java.util.ResourceBundle |
resourceBundle
Resource bundle of the plugin. |
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 org.softevo.ample.ui.IAmplePreferenceConstants |
---|
CALLS_INCOMING, CALLS_OUTGOING, KEY_LEVEL, KEY_PERSPECTIVE, KEY_TESTDURATION, KEY_WINDOWSIZE, LEVEL_CLASS, LEVEL_OBJECT, PREF_DURATION, PREF_LEVELS, PREF_PERSPECTIVES, PREF_WINDOWSIZES |
Constructor Summary | |
---|---|
AmplePlugin()
Initializes a new instance of AmplePlugin . |
Method Summary | |
---|---|
static AmplePlugin |
getDefault()
Gets the shared instance. |
InstrumentationConfiguration |
getInstrumentationConfiguration()
Gets an instrumentation configuration with the values currently set in the preference store. |
AmpleTestRunListener |
getListener()
Gets the shared JUnit test run listener. |
int |
getMaxTestDurationSeconds()
Gets the maximum number of seconds to wait for a test to finish. |
static RankingView |
getRankingView()
Gets the ranking view. |
java.util.ResourceBundle |
getResourceBundle()
Gets the plugin's resource bundle. |
static java.lang.String |
getResourceString(java.lang.String key)
Gets the string from the plugin's resource bundle, or 'key' if not found. |
static AmpleTestRunListener |
getSharedListener()
Gets the shared JUnit test run listener. |
void |
setListener(AmpleTestRunListener aListener)
Sets the shared JUnit test run listener. |
static void |
setRankingView(RankingView rankingView)
Sets the ranking view. |
void |
start(org.osgi.framework.BundleContext context)
This method is called upon plug-in activation. |
void |
stop(org.osgi.framework.BundleContext context)
This method is called when the plug-in is stopped. |
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin |
---|
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final boolean DEBUG
private static RankingView rankingView
private static AmplePlugin plugin
private java.util.ResourceBundle resourceBundle
private AmpleTestRunListener listener
Constructor Detail |
---|
public AmplePlugin()
AmplePlugin
.
Method Detail |
---|
public static RankingView getRankingView()
public static void setRankingView(RankingView rankingView)
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
start
in class org.eclipse.ui.plugin.AbstractUIPlugin
java.lang.Exception
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class org.eclipse.ui.plugin.AbstractUIPlugin
java.lang.Exception
public static AmplePlugin getDefault()
AmplePlugin
.public static java.lang.String getResourceString(java.lang.String key)
key
- Key of string to retrieve from the resource bundle.
public static AmpleTestRunListener getSharedListener()
AmpleTestRunListener
; null
if
still none is activated.getListener()
public java.util.ResourceBundle getResourceBundle()
public AmpleTestRunListener getListener()
AmpleTestRunListener
; null
if
still none is activated.getSharedListener()
public void setListener(AmpleTestRunListener aListener)
aListener
- Instance of currently activate AmpleTestRunListener
.public InstrumentationConfiguration getInstrumentationConfiguration()
public int getMaxTestDurationSeconds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |