|
Eclipse Platform 2.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.eclipse.core.runtime.Plugin
|
+--org.eclipse.ant.core.AntCorePlugin
The plug-in runtime class for the Ant Core plug-in.
| Field Summary | |
static String |
CLASS
Simple identifier constant (value "class")
of a tag that appears in Ant extensions. |
static String |
ECLIPSE_PROGRESS_MONITOR
Key to access the IProgressMonitor reference. |
static int |
ERROR_LIBRARY_NOT_SPECIFIED
Status code indicating an error occurred as a library was not specified |
static int |
ERROR_MALFORMED_URL
Status code indicating an error occurred due to a malformed URL. |
static int |
ERROR_RUNNING_BUILD
Status code indicating an error occurred running a build. |
static String |
HEADLESS
Simple identifier constant (value "headless") of a tag
that appears in Ant extensions. |
static int |
INTERNAL_ERROR
Status code indicating an unexpected internal error. |
static String |
LIBRARY
Simple identifier constant (value "library")
of a tag that appears in Ant extensions. |
static String |
NAME
Simple identifier constant (value "name")
of a tag that appears in Ant extensions. |
static String |
PI_ANTCORE
Unique identifier constant (value "org.eclipse.ant.core")
for the Ant Core plug-in. |
static String |
PT_EXTRA_CLASSPATH
Simple identifier constant (value "extraClasspathEntries")
for the extra classpath entries extension point. |
static String |
PT_TASKS
Simple identifier constant (value "antTasks")
for the Ant tasks extension point. |
static String |
PT_TYPES
Simple identifier constant (value "antTypes")
for the Ant types extension point. |
| Fields inherited from class org.eclipse.core.runtime.Plugin |
PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
| Constructor Summary | |
AntCorePlugin(IPluginDescriptor descriptor)
Constructs an instance of this plug-in runtime class. |
|
| Method Summary | |
protected ClassLoader |
getNewClassLoader()
Returns a new class loader to use when executing Ant builds. |
static AntCorePlugin |
getPlugin()
Returns this plug-in instance. |
AntCorePreferences |
getPreferences()
Returns an object representing this plug-in's preferences. |
static void |
log(Throwable t)
Logs the specified throwable with this plug-in's log. |
protected void |
setRunningHeadless()
Set this plug-in's preferences for running headless. |
void |
shutdown()
Shuts down this plug-in and discards all plug-in state. |
| Methods inherited from class org.eclipse.core.runtime.Plugin |
find, find, getDescriptor, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, startup, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int INTERNAL_ERROR
public static final String PI_ANTCORE
"org.eclipse.ant.core")
for the Ant Core plug-in.
public static final String PT_TASKS
"antTasks")
for the Ant tasks extension point.
public static final String PT_EXTRA_CLASSPATH
"extraClasspathEntries")
for the extra classpath entries extension point.
public static final String PT_TYPES
"antTypes")
for the Ant types extension point.
public static final String CLASS
"class")
of a tag that appears in Ant extensions.
public static final String NAME
"name")
of a tag that appears in Ant extensions.
public static final String LIBRARY
"library")
of a tag that appears in Ant extensions.
public static final String HEADLESS
"headless") of a tag
that appears in Ant extensions.
public static final String ECLIPSE_PROGRESS_MONITOR
IProgressMonitor reference. When a
progress monitor is passed to the AntRunner.run(IProgressMonitor)
method, the object is available as a reference for the current
Ant project.
public static final int ERROR_RUNNING_BUILD
public static final int ERROR_MALFORMED_URL
public static final int ERROR_LIBRARY_NOT_SPECIFIED
| Constructor Detail |
public AntCorePlugin(IPluginDescriptor descriptor)
An instance of this plug-in runtime class is automatically created when the facilities provided by the Ant Core plug-in are required. Clients must never explicitly instantiate a plug-in runtime class.
| Method Detail |
public void shutdown()
throws CoreException
PluginThis method should be re-implemented in subclasses that need to do something when the plug-in is shut down. Implementors should call the inherited method to ensure that any system requirements can be met.
Plug-in shutdown code should be robust. In particular, this method should always make an effort to shut down the plug-in. Furthermore, the code should not assume that the plug-in was started successfully, as this method will be invoked in the event of a failure during startup.
Note 1: If a plug-in has been started, this method will be automatically invoked by the platform when the platform is shut down.
Note 2: This method is intended to perform simple termination of the plug-in environment. The platform may terminate invocations that do not complete in a timely fashion.
Clients must never explicitly call this method.
shutdown in class PluginCoreException - if this method fails to shut down
this plug-inPlugin.shutdown()public AntCorePreferences getPreferences()
protected void setRunningHeadless()
public static AntCorePlugin getPlugin()
protected ClassLoader getNewClassLoader()
public static void log(Throwable t)
t - throwable to log
|
Eclipse Platform 2.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||