|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractViewFactory
The abstract implementation of the ViewFactory interface. This class could be the base class for any generic View
| Constructor Summary | |
AbstractViewFactory()
|
|
| Method Summary | |
protected java.util.List |
createStyles(View view)
creates styles for the passed view and return them as List; the returned list could be empty if the view does not need any style |
abstract View |
createView(IAdaptable semanticAdapter,
View containerView,
java.lang.String semanticHint,
int index,
boolean persisted,
PreferencesHint thePreferencesHint)
factory method, that will be called by the view service to creat the view |
protected org.eclipse.emf.transaction.TransactionalEditingDomain |
getEditingDomain(EObject semanticElement,
View containerView)
Determines the editing domain for the view creation. |
protected PreferencesHint |
getPreferencesHint()
Gets the preferences hint that is to be used to find the appropriate preference store from which to retrieve diagram preference values. |
protected static ViewService |
getViewService()
Method getViewService. |
protected void |
initializeFromPreferences(View view)
Initialize the passed view from the preference store |
protected boolean |
requiresElement(EObject semanticElement,
View view)
Indicates if the passed view requires an element inside it or it can use its container's element |
protected boolean |
requiresElement(IAdaptable semanticAdapter,
View view)
Indicates if the passed view requires an element inside it or it can use its container's element |
protected void |
setPreferencesHint(PreferencesHint preferencesHint)
Sets the preferences hint that is to be used to find the appropriate preference store from which to retrieve diagram preference values. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractViewFactory()
| Method Detail |
public abstract View createView(IAdaptable semanticAdapter,
View containerView,
java.lang.String semanticHint,
int index,
boolean persisted,
PreferencesHint thePreferencesHint)
ViewFactory
createView in interface ViewFactorysemanticAdapter - semanitc element of the view, it can be nullcontainerView - the view to contain the connectionsemanticHint - a semantic hint to reflect the view type, it can be emptyindex - position with parent's child collectionpersisted - persisted flag, this will indicate if the created view will be
a presisted or transient view, transient views never get
serialized
protected java.util.List createStyles(View view)
protected boolean requiresElement(IAdaptable semanticAdapter,
View view)
semanticAdapter -
protected boolean requiresElement(EObject semanticElement,
View view)
protected void initializeFromPreferences(View view)
view - the view to initializeprotected static ViewService getViewService()
protected PreferencesHint getPreferencesHint()
protected void setPreferencesHint(PreferencesHint preferencesHint)
preferencesHint - the preferences hint
protected org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain(EObject semanticElement,
View containerView)
semanticElement - the semantic elemement; may be nullcontainerView - the container view
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.