This interface represents a project type within the IDE. It is built primarly from a 'project-type' element in 'urn:com-bea-ide:project' extension xml. It also provides access to project templates defined in template xml.
The extension xml for project types is as follows:
<project-type class="{class}"
id="{id}" label="{label}" icon="{image-resource}"
openfoldericon="{image-resource}" closedfoldericon="{image-resource}">
<attribute name="{attr-name}" value="{attr-value}"/>*
<driver type="{driver-type}" class="{driver-class}"/>*
</project-type>
Items in [] are optional.
Items followed by * indicate 0 or more may be present
Items in {} are values as defined below:
For more information on project templates see IProjectTemplate
Field Summary |
public static final |
|
Method Summary |
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public boolean |
|
public boolean |
|
public |
|
Field Detail |
public static final String
SUPPORTS_CONTROL
Method Detail |
DEPRECATED use hasAttribute
publicGet the project attribute for this project. This is essentially a set of name value pairs that may be used to identify the features this project has. In particular this is used by the document service to determine whether a document type may be used within a specific project.Object
getAttribute(String
name)
public Icon
getClosedFolderIcon()
Closed folder icon to use in the application tree for the project directory.
public Icon
getIcon()
An icon representing this project type.
public String
getLabel()
Display label for this project type.
public Icon
getOpenFolderIcon()
Open folder icon to use in the application tree for the project directory.
publicReturns the template corresponding to the given template id.IProjectTemplate
getTemplate(String
sTemplateId)
Related Topics
public IProjectTemplate
[] getTemplates()
The set of all project templates available for this project type.
Individual templates may intended for display in the New Project dialog, Import Project dialog,
or project Install context menu.
Related Topics
public String
getTypeId()
String identifying the project type this project info represents. The id uniquely identifies
the project info and handler, and can be safely used to determine if two projects are of
the same type. Use this id to get this info object or its handler from WorkspaceSvc.
public boolean hasAttribute(String
name)
Check whether this project type has the given attribute.
public boolean hasAttribute(Check whether this project type has the given attribute name value pair.String
name,String
value)
publicChecks whether the given name is valid for this project type.String
invalidNameCheck(String
sName)