|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigurationManager
Extract editor configuration for a model element type.
Nested Class Summary | |
---|---|
static interface |
ConfigurationManager.ConfigurationManagerListener
Listener for configuration chain notification. |
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_MAD_CONFIG
Default Mad config |
static java.lang.String |
I18N_PREFIX
Main Layer ID |
static java.lang.String |
MAIN_LAYER
Main Layer ID |
Method Summary | |
---|---|
void |
addListener(ConfigurationManager.ConfigurationManagerListener listener)
Adds the given ConfigurationManager.ConfigurationManagerListener to this
ConfigurationManager . |
TypeConfiguration |
getConfiguration(org.eclipse.emf.ecore.EClass type)
Extracts the configuration of the given type from the mad configuration repository. |
java.util.Collection<java.lang.String> |
getImportedResourcesNsURIs()
Returns all the NS URI used in the declared MAD configurations. |
java.util.Collection<java.lang.String> |
getImportedResourcesNsURIs(com.sysord.mad.configuration.madConfigDsl.MADConfiguration madConfig)
Returns the NS URI used by the given MAD configuration. |
java.util.Collection<org.eclipse.emf.common.util.URI> |
getImportedURIs()
Returns all the URI s used in the declared MAD configurations. |
java.util.Collection<org.eclipse.emf.common.util.URI> |
getImportedURIs(com.sysord.mad.configuration.madConfigDsl.MADConfiguration madConfig)
Returns the URI s used by the given MAD configuration. |
java.lang.String |
getLabelProviderExpressionForType(org.eclipse.emf.ecore.EClass type)
Returns the label provider expression for the given type. |
Layer |
getLayerById(java.lang.String layerId)
Returns the layer with the given ID , or null if no layer exists
with this id. |
Layer |
getMainLayer()
Returns the root layer. |
void |
initialize()
Initializes this ConfigurationManager . |
void |
removeListener(ConfigurationManager.ConfigurationManagerListener listener)
Removes the given ConfigurationManager.ConfigurationManagerListener from this
ConfigurationManager . |
Field Detail |
---|
static final java.lang.String MAIN_LAYER
static final java.lang.String DEFAULT_MAD_CONFIG
static final java.lang.String I18N_PREFIX
Method Detail |
---|
void initialize()
ConfigurationManager
.
TypeConfiguration getConfiguration(org.eclipse.emf.ecore.EClass type)
type
- Type of the element for which we want the MAD configuration.
null
if no configuration
exists for the element type.java.lang.String getLabelProviderExpressionForType(org.eclipse.emf.ecore.EClass type)
This is a format expression usable for all MAD configuration labels (see
FormatExpressionEvaluationService
for more details).
type
- Type of the element for which we want the label provider expression.
Layer getMainLayer()
There is always a main layer, this is the default layer implicitly created by the configuration.
Layer getLayerById(java.lang.String layerId)
ID
, or null
if no layer exists
with this id.
layerId
- The ID of the layer to retrieve.
ID
, or null
.java.util.Collection<org.eclipse.emf.common.util.URI> getImportedURIs()
URI
s used in the declared MAD configurations.
URI
s.java.util.Collection<org.eclipse.emf.common.util.URI> getImportedURIs(com.sysord.mad.configuration.madConfigDsl.MADConfiguration madConfig)
URI
s used by the given MAD configuration.
madConfig
- The configuration from which we want the used URI
s.
URI
s used by the given MAD configuration.java.util.Collection<java.lang.String> getImportedResourcesNsURIs()
NS URI
used in the declared MAD configurations.
NS URI
.java.util.Collection<java.lang.String> getImportedResourcesNsURIs(com.sysord.mad.configuration.madConfigDsl.MADConfiguration madConfig)
NS URI
used by the given MAD configuration.
NS URI
used by the given MAD configuration.void addListener(ConfigurationManager.ConfigurationManagerListener listener)
ConfigurationManager.ConfigurationManagerListener
to this
ConfigurationManager
.
listener
- The listener to add.void removeListener(ConfigurationManager.ConfigurationManagerListener listener)
ConfigurationManager.ConfigurationManagerListener
from this
ConfigurationManager
.
listener
- The listener to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |