Eclipse Platform
2.0

org.eclipse.core.runtime.model
Class PluginDescriptorModel

java.lang.Object
  |
  +--org.eclipse.core.runtime.model.PluginModelObject
        |
        +--org.eclipse.core.runtime.model.PluginModel
              |
              +--org.eclipse.core.runtime.model.PluginDescriptorModel

public class PluginDescriptorModel
extends PluginModel

An object which represents the user-defined contents of a plug-in in a plug-in manifest.

This class may be instantiated, or further subclassed.


Constructor Summary
PluginDescriptorModel()
          Creates a new plug-in descriptor model in which all fields are null.
 
Method Summary
 boolean getEnabled()
           
 PluginFragmentModel[] getFragments()
          Returns the fragments installed for this plug-in.
 String getPluginClass()
          Returns the fully qualified name of the Java class which implements the runtime support for this plug-in.
 String getPluginId()
          Returns the unique identifier of the plug-in related to this model or null.
 void setEnabled(boolean value)
           
 void setFragments(PluginFragmentModel[] value)
          Sets the list of fragments for this plug-in.
 void setPluginClass(String value)
          Sets the fully qualified name of the Java class which implements the runtime support for this plug-in.
 
Methods inherited from class org.eclipse.core.runtime.model.PluginModel
getDeclaredExtensionPoints, getDeclaredExtensions, getId, getLocation, getProviderName, getRegistry, getRequires, getRuntime, getVersion, markReadOnly, setDeclaredExtensionPoints, setDeclaredExtensions, setId, setLocation, setProviderName, setRegistry, setRequires, setRuntime, setVersion
 
Methods inherited from class org.eclipse.core.runtime.model.PluginModelObject
assertIsWriteable, getName, isReadOnly, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginDescriptorModel

public PluginDescriptorModel()
Creates a new plug-in descriptor model in which all fields are null.

Method Detail

getEnabled

public boolean getEnabled()

getFragments

public PluginFragmentModel[] getFragments()
Returns the fragments installed for this plug-in.

Returns:
this plug-in's fragments or null

getPluginClass

public String getPluginClass()
Returns the fully qualified name of the Java class which implements the runtime support for this plug-in.

Returns:
the name of this plug-in's runtime class or null.

getPluginId

public String getPluginId()
Returns the unique identifier of the plug-in related to this model or null. This identifier is a non-empty string and is unique within the plug-in registry.

Specified by:
getPluginId in class PluginModel
Returns:
the unique identifier of the plug-in related to this model (e.g. "com.example") or null.

setEnabled

public void setEnabled(boolean value)

setFragments

public void setFragments(PluginFragmentModel[] value)
Sets the list of fragments for this plug-in. This object must not be read-only.

Parameters:
value - the fragments for this plug-in. May be null.

setPluginClass

public void setPluginClass(String value)
Sets the fully qualified name of the Java class which implements the runtime support for this plug-in. This object must not be read-only.

Parameters:
value - the name of this plug-in's runtime class. May be null.

Eclipse Platform
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.