public interface IPluginObject extends IWritable, IAdaptable
Modifier and Type | Field and Description |
---|---|
static String |
P_NAME
A property name that will be used to notify
that the "name" field has changed.
|
Modifier and Type | Method and Description |
---|---|
ISharedPluginModel |
getModel()
Returns the model that owns this object.
|
String |
getName()
Returns the name of this model object
|
IPluginObject |
getParent()
Returns the parent of this model object.
|
IPluginBase |
getPluginBase()
Returns the top-level model object.
|
IPluginModelBase |
getPluginModel()
Returns the model that owns this object.
|
String |
getResourceString(String key)
Returns a string by locating the provided
key in the resource bundle associated with
the model.
|
String |
getTranslatedName()
Returns the translated name of this model object using
the result of 'getName()' call as a resource key.
|
boolean |
isInTheModel()
Returns true if this object is currently part of a model.
|
boolean |
isValid()
Returns true if this object has all
the required attributes set, false otherwise.
|
void |
setInTheModel(boolean inModel)
Set the value indicating whether the object is currently part of a model.
|
void |
setName(String name)
Chances the name of this model object.
|
getAdapter
static final String P_NAME
ISharedPluginModel getModel()
IPluginModelBase getPluginModel()
String getName()
boolean isInTheModel()
void setInTheModel(boolean inModel)
inModel
- whether the object is currently part of a modelString getTranslatedName()
IPluginObject getParent()
IPluginBase getPluginBase()
String getResourceString(String key)
key
- the name to use for resource bundle lookupvoid setName(String name) throws CoreException
name
- the new object nameCoreException
- if the model is not editableboolean isValid()
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.