Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.application.visual.editor.commands
Interface ISemanticElementToViewRegistry

All Known Implementing Classes:
SemanticElementToViewRegistry

public interface ISemanticElementToViewRegistry

This interface maintains a global mapping from semantic elements to notation views which helps to create deferred aggregated connections between different containers. The current GMF infrastructure does not maintain such a mapping globally.


Field Summary
static String copyright
           
 
Method Summary
 void dispose()
          Dispose the storage.
 EObject findViewForSemanticElement(EObject semanticElement)
          Find the view for given semanticElement.
 Iterator iterator()
          Return iterator for mapping storage.
 void registerSemanticElementToViewMapping(EObject semanticElement, EObject view)
          Register a semantic element to view mapping.
 void removeAllRegisterSemanticElementToViewMapping()
          Reomve all semantic element to view mapping entries.
 void unRegisterSemanticElementToViewMapping(EObject semanticElement)
          Remove view mapping for specified semantic element.
 

Field Detail

copyright

static final String copyright
See Also:
Constant Field Values
Method Detail

registerSemanticElementToViewMapping

void registerSemanticElementToViewMapping(EObject semanticElement,
                                          EObject view)
Register a semantic element to view mapping.

Parameters:
semanticElement - semantic element.
view - view object corresponding to the semantic element.

unRegisterSemanticElementToViewMapping

void unRegisterSemanticElementToViewMapping(EObject semanticElement)
Remove view mapping for specified semantic element.


findViewForSemanticElement

EObject findViewForSemanticElement(EObject semanticElement)
Find the view for given semanticElement.

Parameters:
semanticElement - the semantic element whose view to be found
Returns:
view for given semantic element if found, null otherwise.

removeAllRegisterSemanticElementToViewMapping

void removeAllRegisterSemanticElementToViewMapping()
Reomve all semantic element to view mapping entries.


iterator

Iterator iterator()
Return iterator for mapping storage.


dispose

void dispose()
Dispose the storage.


Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.