|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.systems.application.visual.editor.SystemGraphicalEditorSessionManager
public class SystemGraphicalEditorSessionManager
SystemGraphicalEditorSessionManager manages the session states of a SystemGraphicalEditor instance. A session is started from the opening of editor and ended when the editor instance is closed. During one session, the input of editor may change. For example, user saves the diagram and continues to work on open editor.
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
SystemGraphicalEditorSessionManager(SystemGraphicalEditor editor)
Constructor. |
Method Summary | |
---|---|
void |
cleanSemanticElementToViewRegistry()
|
void |
dispose()
Dispose the session manager. |
protected CommandResult |
executeAsCompositeCommand(String actionName,
List commands)
A utility method allows execute a list of commands by wrapping them in a composite command. |
void |
fireApplicationModelFilterChangeEvent(ApplicationModelFilterChangeEvent event)
Fire filter change event. |
ArrayList |
getApplicationModelFilterChangeListeners()
Get all registered ApplicationModelFilterChangeListener |
boolean |
getAutoLayoutOption()
Getter of autolayout. |
Font |
getCurrentFont()
Getter of current Font. |
String |
getCurrentLineStyle()
Getter of current line style. |
String |
getCurrentModelFilterID()
Return current view filter ID. |
String |
getCurrentOrientation()
Getter of current orientation. |
Font |
getDefaultFont()
Getter of default font. |
String |
getDefaultLineStyle()
Getter of default line style. |
String |
getDefaultModelFilterID()
Getter of default model filter ID. |
String |
getDefaultOrientation()
Getter of default orientation. |
protected Iterator |
getInputIterator()
|
ISemanticElementToViewRegistry |
getSemanticElementToViewRegistry()
Get SemanticElementToViewRegistry. |
protected void |
handlePreferenceStorePropertyChanged(PropertyChangeEvent event)
Handle property change event. |
void |
initialize()
Initialize the session manager. |
protected boolean |
isStrikeout(FontData fontData)
Return true if the font is strikeout. |
protected boolean |
isUnderline(FontData fontData)
Return true if the font is underline. |
void |
propertyChange(PropertyChangeEvent event)
|
protected void |
refreshDefaultFontEffect()
Refresh the underline and strikeout effect of default font. |
protected void |
refreshFont(Object newFont)
Refresh default font. |
protected void |
refreshIncomingLineColor(RGB newIncomingLineColor)
Refresh default incoming line color. |
protected void |
refreshOutgoingLineColor(RGB newOutgoingLineColor)
Refresh default outgoing line color. |
void |
registerApplicationModelFilterListener(IApplicationModelFilterChangeListener listener)
Add semantic model filter change listener |
protected void |
registerPreferenceStoreListener()
Register the preference store listener. |
void |
setAutoLayoutOption(boolean autoLayout)
Setter of autolayout. |
void |
setCurrentFont(Font newFont)
Setter of current Font. |
void |
setCurrentLineStyle(String lineStyle)
Setter of line style |
void |
setCurrentModelFilterID(String filterID)
Set current view filter ID. |
void |
setCurrentOrientation(String orientation)
Setter of orientation. |
void |
setDefaultFont(Font newFont)
Refresh default font. |
void |
setDefaultLineStyle(String lineStyle)
Setter of default line style. |
void |
setDefaultModelFilterID(String filterID)
Setter of default model filter ID. |
void |
setDefaultOrientation(String orientation)
Setter of default orientation. |
void |
setSemanticElementToViewRegistry(ISemanticElementToViewRegistry semanticElementToViewRegistry)
Set SemanticElementToViewRegistry. |
void |
unregisterApplicationModelFilterListener(IApplicationModelFilterChangeListener listener)
Add semantic model filter change listener |
protected void |
unregisterPreferenceStoreListener()
Unregister the preference store listener. |
protected void |
updateGMFLineStylePreference(IPreferenceStore preferenceStore)
Update GMF line style preference. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String copyright
Constructor Detail |
---|
public SystemGraphicalEditorSessionManager(SystemGraphicalEditor editor)
Method Detail |
---|
public void setAutoLayoutOption(boolean autoLayout)
public boolean getAutoLayoutOption()
public void setCurrentLineStyle(String lineStyle)
public String getCurrentLineStyle()
public void setCurrentOrientation(String orientation)
public String getCurrentOrientation()
public void setCurrentModelFilterID(String filterID)
public String getCurrentModelFilterID()
public void setDefaultLineStyle(String lineStyle)
public String getDefaultLineStyle()
public void setDefaultOrientation(String orientation)
public String getDefaultOrientation()
public void setDefaultModelFilterID(String filterID)
public String getDefaultModelFilterID()
public Font getDefaultFont()
public void setDefaultFont(Font newFont)
public Font getCurrentFont()
public void setCurrentFont(Font newFont)
public void initialize()
protected void updateGMFLineStylePreference(IPreferenceStore preferenceStore)
public void dispose()
protected void registerPreferenceStoreListener()
protected void unregisterPreferenceStoreListener()
public void fireApplicationModelFilterChangeEvent(ApplicationModelFilterChangeEvent event)
public void registerApplicationModelFilterListener(IApplicationModelFilterChangeListener listener)
public void unregisterApplicationModelFilterListener(IApplicationModelFilterChangeListener listener)
public ArrayList getApplicationModelFilterChangeListeners()
public void propertyChange(PropertyChangeEvent event)
protected void handlePreferenceStorePropertyChanged(PropertyChangeEvent event)
protected void refreshDefaultFontEffect()
protected void refreshFont(Object newFont)
protected boolean isUnderline(FontData fontData)
protected boolean isStrikeout(FontData fontData)
protected Iterator getInputIterator()
protected CommandResult executeAsCompositeCommand(String actionName, List commands)
commands
- -
List of commands to executeprotected void refreshIncomingLineColor(RGB newIncomingLineColor)
protected void refreshOutgoingLineColor(RGB newOutgoingLineColor)
public ISemanticElementToViewRegistry getSemanticElementToViewRegistry()
public void setSemanticElementToViewRegistry(ISemanticElementToViewRegistry semanticElementToViewRegistry)
public void cleanSemanticElementToViewRegistry()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |