com.cmpware.ide
Class CmpwarePlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by com.cmpware.ide.CmpwarePlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class CmpwarePlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin

This class implements the Eclipse IDE plugin.

Copyright (c) 2004, 2005 Cmpware, Inc. All Rights Reserved.

Author:
SAG

Field Summary
static java.lang.String copyright
          Copyright string
static java.lang.String e1
          The E1 message
static java.lang.String e2
          The E2 message
static boolean flag
          A general purpose boolean flag
static java.lang.String Greeting
          The greeting string
static java.lang.String hostName
          The host name
static java.lang.String ID_ARRAY_VIEW
          The Array view
static java.lang.String ID_DASM_VIEW
          The Disassembly view (deprecated)
static java.lang.String ID_DISASSEMBLE_VIEW
          The Disassemble view
static java.lang.String ID_HEX_DUMP_VIEW
          The Memory (hex dump) view (depreated)
static java.lang.String ID_IMAGE_VIEW
          The image view
static java.lang.String ID_IMIX_VIEW
          The Instruction Mix View
static java.lang.String ID_LINK_VIEW
          The Link View
static java.lang.String ID_MEMORY_VIEW
          The Memory view
static java.lang.String ID_MP_MON_VIEW
          The MpMon code view
static java.lang.String ID_POWER_METER_VIEW
          The source code view
static java.lang.String ID_PROFILE_VIEW
          The Profile View
static java.lang.String ID_REGISTER_VIEW
          The Register View
static java.lang.String ID_SOURCE_CODE_VIEW
          The source code view
static java.lang.String ID_SPECIAL_REGISTER_VIEW
          The Special Register View
static java.lang.String ID_STATUS_VIEW
          The Status window view
static java.lang.String ID_VARIABLE_VIEW
          The Variable View
static java.lang.String P_GDB_SERVER
          The GDB SErverPath
static java.lang.String P_IMAGE_BASE_ADDRESS
          The image default base address
static java.lang.String P_IMAGE_BITS
          The image default bits
static java.lang.String P_IMAGE_HEIGHT
          The image default height
static java.lang.String P_IMAGE_WIDTH
          The image default width
static java.lang.String P_LICENSE
          The License code
static java.lang.String P_LINK
          The Link preference
static java.lang.String P_MODEL_PATH
          The Model Path
static java.lang.String P_NETWORK
          The Network preference
static java.lang.String P_PROCESSOR
          The Processor preference
static java.lang.String P_STEP_SIZE
          The step size for a step command
static java.lang.String P_SYSTEM_MEMORY
          The System Memory preference
static java.lang.String PERSPECTIVE_ID
          Perspective id
static java.lang.String PLUGIN_ID
          Plugin id
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
CmpwarePlugin()
          The constructor.
 
Method Summary
static CmpwarePlugin getDefault()
          Returns the shared instance.
static MpModel getMpModel()
          This method returns the plugin's multiprocessor model.
 java.util.ResourceBundle getResourceBundle()
          This method returns the plugin's resource bundle.
static java.lang.String getResourceString(java.lang.String key)
          Returns the string from the plugin's resource bundle, or 'key' if not found.
static boolean getStatus()
          This method returns the status of the IDE.
protected  void initializeDefaultPreferences(org.eclipse.jface.preference.IPreferenceStore store)
           
static void printStatus(java.lang.String s)
          This method prints a string to the status window.
static void setStatusView(StatusView sv)
          This method sets the plugin's Status View window.
 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, 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

copyright

public static final java.lang.String copyright
Copyright string

See Also:
Constant Field Values

PLUGIN_ID

public static final java.lang.String PLUGIN_ID
Plugin id

See Also:
Constant Field Values

PERSPECTIVE_ID

public static final java.lang.String PERSPECTIVE_ID
Perspective id

See Also:
Constant Field Values

ID_VARIABLE_VIEW

public static java.lang.String ID_VARIABLE_VIEW
The Variable View


ID_PROFILE_VIEW

public static java.lang.String ID_PROFILE_VIEW
The Profile View


ID_IMIX_VIEW

public static java.lang.String ID_IMIX_VIEW
The Instruction Mix View


ID_REGISTER_VIEW

public static java.lang.String ID_REGISTER_VIEW
The Register View


ID_SPECIAL_REGISTER_VIEW

public static java.lang.String ID_SPECIAL_REGISTER_VIEW
The Special Register View


ID_LINK_VIEW

public static java.lang.String ID_LINK_VIEW
The Link View


ID_ARRAY_VIEW

public static java.lang.String ID_ARRAY_VIEW
The Array view


ID_STATUS_VIEW

public static java.lang.String ID_STATUS_VIEW
The Status window view


ID_HEX_DUMP_VIEW

public static java.lang.String ID_HEX_DUMP_VIEW
The Memory (hex dump) view (depreated)


ID_MEMORY_VIEW

public static java.lang.String ID_MEMORY_VIEW
The Memory view


ID_DASM_VIEW

public static java.lang.String ID_DASM_VIEW
The Disassembly view (deprecated)


ID_DISASSEMBLE_VIEW

public static java.lang.String ID_DISASSEMBLE_VIEW
The Disassemble view


ID_SOURCE_CODE_VIEW

public static java.lang.String ID_SOURCE_CODE_VIEW
The source code view


ID_IMAGE_VIEW

public static java.lang.String ID_IMAGE_VIEW
The image view


ID_POWER_METER_VIEW

public static java.lang.String ID_POWER_METER_VIEW
The source code view


ID_MP_MON_VIEW

public static java.lang.String ID_MP_MON_VIEW
The MpMon code view


P_PROCESSOR

public static final java.lang.String P_PROCESSOR
The Processor preference

See Also:
Constant Field Values

P_NETWORK

public static final java.lang.String P_NETWORK
The Network preference

See Also:
Constant Field Values

P_LINK

public static final java.lang.String P_LINK
The Link preference

See Also:
Constant Field Values

P_SYSTEM_MEMORY

public static final java.lang.String P_SYSTEM_MEMORY
The System Memory preference

See Also:
Constant Field Values

P_STEP_SIZE

public static final java.lang.String P_STEP_SIZE
The step size for a step command

See Also:
Constant Field Values

P_LICENSE

public static final java.lang.String P_LICENSE
The License code

See Also:
Constant Field Values

P_MODEL_PATH

public static final java.lang.String P_MODEL_PATH
The Model Path

See Also:
Constant Field Values

P_GDB_SERVER

public static final java.lang.String P_GDB_SERVER
The GDB SErverPath

See Also:
Constant Field Values

P_IMAGE_BASE_ADDRESS

public static final java.lang.String P_IMAGE_BASE_ADDRESS
The image default base address

See Also:
Constant Field Values

P_IMAGE_WIDTH

public static final java.lang.String P_IMAGE_WIDTH
The image default width

See Also:
Constant Field Values

P_IMAGE_HEIGHT

public static final java.lang.String P_IMAGE_HEIGHT
The image default height

See Also:
Constant Field Values

P_IMAGE_BITS

public static final java.lang.String P_IMAGE_BITS
The image default bits

See Also:
Constant Field Values

hostName

public static java.lang.String hostName
The host name


e1

public static java.lang.String e1
The E1 message


e2

public static java.lang.String e2
The E2 message


Greeting

public static java.lang.String Greeting
The greeting string


flag

public static boolean flag
A general purpose boolean flag

Constructor Detail

CmpwarePlugin

public CmpwarePlugin()
The constructor.

Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
This method is called upon plug-in activation

Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
java.lang.Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
This method is called when the plug-in is stopped

Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
java.lang.Exception

getDefault

public static CmpwarePlugin getDefault()
Returns the shared instance.


getResourceString

public static java.lang.String getResourceString(java.lang.String key)
Returns the string from the plugin's resource bundle, or 'key' if not found.


getResourceBundle

public java.util.ResourceBundle getResourceBundle()
This method returns the plugin's resource bundle.

Returns:
This method returns the plugin's resource bundle.

getMpModel

public static MpModel getMpModel()
This method returns the plugin's multiprocessor model.

Returns:
This method returns the plugin's multiprocessor model.

printStatus

public static void printStatus(java.lang.String s)
This method prints a string to the status window.

Parameters:
s - The string to be printed to the status window.

setStatusView

public static void setStatusView(StatusView sv)
This method sets the plugin's Status View window.


getStatus

public static boolean getStatus()
This method returns the status of the IDE.

Returns:
This method returns the status of the IDE.

initializeDefaultPreferences

protected void initializeDefaultPreferences(org.eclipse.jface.preference.IPreferenceStore store)
Overrides:
initializeDefaultPreferences in class org.eclipse.ui.plugin.AbstractUIPlugin