org.dftproject.pgvagent.core
Class PGVAgent

java.lang.Object
  extended by org.dftproject.pgvagent.core.PGVAgent
All Implemented Interfaces:
IAgent

public class PGVAgent
extends java.lang.Object
implements IAgent

The PGVAgent.


Field Summary
static java.lang.String PLUGIN_ID
          The agent ID.
 
Constructor Summary
PGVAgent()
          Creates the PGVAgent singleton.
 
Method Summary
static PGVAgent getDefault()
          Returns the singleton PGVAgent instance.
 org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
          Returns the plug-in preference store.
protected  java.lang.String queryToString(IResourceNode query)
          Converts a query example to a PGV search terms string.
protected  void savePreferences()
          Saves changes made to the plug-in preference store.
 void start()
          Starts up this agent.
 void stop()
          Stops this agent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUGIN_ID

public static final java.lang.String PLUGIN_ID
The agent ID.

See Also:
Constant Field Values
Constructor Detail

PGVAgent

public PGVAgent()
Creates the PGVAgent singleton.

Method Detail

getDefault

public static PGVAgent getDefault()
Returns the singleton PGVAgent instance.

Returns:
the singleton instance, or null if the agent is not active

start

public void start()
Description copied from interface: IAgent
Starts up this agent.

Specified by:
start in interface IAgent

stop

public void stop()
Description copied from interface: IAgent
Stops this agent.

Specified by:
stop in interface IAgent

getPreferenceStore

public org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
Returns the plug-in preference store.

Returns:
the plug-in preference store

savePreferences

protected void savePreferences()
Saves changes made to the plug-in preference store.


queryToString

protected java.lang.String queryToString(IResourceNode query)
Converts a query example to a PGV search terms string.

Parameters:
query - a query example
Returns:
a PGV search terms string