|
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.requests.CreateViewRequest.ViewDescriptor
A view descriptor that contains attributes needed to create the view The
class is also a mutable adapter that initially adapts to nothing, but
can adapt to IView after the view has been created (by
executing the creation command returned from edit policies in response
to this request) This is how GEF works!!
| Constructor Summary | |
CreateViewRequest.ViewDescriptor(IAdaptable elementAdapter,
java.lang.Class viewkind,
boolean persisted,
PreferencesHint preferencesHint)
Creates a new view descriptor using element adapter and a view kind |
|
CreateViewRequest.ViewDescriptor(IAdaptable elementAdapter,
java.lang.Class viewkind,
PreferencesHint preferencesHint)
Creates a new view descriptor using element adapter and a view kind |
|
CreateViewRequest.ViewDescriptor(IAdaptable elementAdapter,
java.lang.Class viewkind,
java.lang.String semanticHint,
boolean persisted,
PreferencesHint preferencesHint)
Creates a new view descriptor using element adapter, a view kind and a factory hint |
|
CreateViewRequest.ViewDescriptor(IAdaptable elementAdapter,
java.lang.Class viewKind,
java.lang.String semanticHint,
int index,
boolean persisted,
PreferencesHint preferencesHint)
Creates a new view descriptor using the supplied element adapter, view kind, factory hint, index and persistence flag. |
|
CreateViewRequest.ViewDescriptor(IAdaptable elementAdapter,
java.lang.Class viewKind,
java.lang.String factoryHint,
int index,
PreferencesHint preferencesHint)
Creates a new view descriptor using the supplied element adapter, view kind, factory hint and index. |
|
CreateViewRequest.ViewDescriptor(IAdaptable elementAdapter,
java.lang.Class viewkind,
java.lang.String semanticHint,
PreferencesHint preferencesHint)
Creates a new view descriptor using element adapter, a view kind and a factory hint |
|
CreateViewRequest.ViewDescriptor(IAdaptable elementAdapter,
PreferencesHint preferencesHint)
Creates a new view descriptor using element adapter |
|
| Method Summary | |
java.lang.Object |
getAdapter(java.lang.Class adapter)
Adapts to IView |
IAdaptable |
getElementAdapter()
Method getelementAdapter. |
int |
getIndex()
Method getIndex. |
PreferencesHint |
getPreferencesHint()
Gets the preferences hint that is to be used to find the appropriate preference store from which to retrieve diagram preference values. |
java.lang.String |
getSemanticHint()
Method getSemanticHint. |
java.lang.Class |
getViewKind()
Method getViewKind. |
boolean |
isPersisted()
Return true if the view will be persisted; otherwise false |
void |
setPersisted(boolean persisted)
Method setPersisted. |
void |
setView(View view)
Method setView. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CreateViewRequest.ViewDescriptor(IAdaptable elementAdapter,
PreferencesHint preferencesHint)
elementAdapter - the element adapter referened by the viewpreferencesHint - The preference hint that is to be used to find the appropriate
preference store from which to retrieve diagram preference
values. The preference hint is mapped to a preference store in
the preference registry <@link DiagramPreferencesRegistry>.
public CreateViewRequest.ViewDescriptor(IAdaptable elementAdapter,
java.lang.Class viewkind,
PreferencesHint preferencesHint)
elementAdapter - the element adapter referened by the viewviewkind - the kind of the view to be created (a concrete class
derived from IView)preferencesHint - The preference hint that is to be used to find the appropriate
preference store from which to retrieve diagram preference
values. The preference hint is mapped to a preference store in
the preference registry <@link DiagramPreferencesRegistry>.
public CreateViewRequest.ViewDescriptor(IAdaptable elementAdapter,
java.lang.Class viewkind,
boolean persisted,
PreferencesHint preferencesHint)
elementAdapter - the element adapter referened by the viewviewkind - the kind of the view to be created (a concrete class
derived from IView)persisted - indicates if the view will be created as a persisted
view or transientpreferencesHint - The preference hint that is to be used to find the appropriate
preference store from which to retrieve diagram preference
values. The preference hint is mapped to a preference store in
the preference registry <@link DiagramPreferencesRegistry>.
public CreateViewRequest.ViewDescriptor(IAdaptable elementAdapter,
java.lang.Class viewkind,
java.lang.String semanticHint,
PreferencesHint preferencesHint)
elementAdapter - the element adapter referened by the viewviewkind - the kind of the view to be createdsemanticHint - the semantic hint of the viewpreferencesHint - The preference hint that is to be used to find the appropriate
preference store from which to retrieve diagram preference
values. The preference hint is mapped to a preference store in
the preference registry <@link DiagramPreferencesRegistry>.
public CreateViewRequest.ViewDescriptor(IAdaptable elementAdapter,
java.lang.Class viewkind,
java.lang.String semanticHint,
boolean persisted,
PreferencesHint preferencesHint)
elementAdapter - the element adapter referened by the viewviewkind - the kind of the view to be createdsemanticHint - the semantic hint of the viewpersisted - indicates if the view will be created as a persisted
view or transientpreferencesHint - The preference hint that is to be used to find the appropriate
preference store from which to retrieve diagram preference
values. The preference hint is mapped to a preference store in
the preference registry <@link DiagramPreferencesRegistry>.
public CreateViewRequest.ViewDescriptor(IAdaptable elementAdapter,
java.lang.Class viewKind,
java.lang.String factoryHint,
int index,
PreferencesHint preferencesHint)
Same as calling new ViewDescriptor(elementAdapter, viewKind, factoryHint, index, true);
elementAdapter - the element adapter referened by the viewviewKind - the kind of the view to be created (a concrete class derived from View)factoryHint - the semantic hint of the viewindex - the index of the view in its parent's children collection
public CreateViewRequest.ViewDescriptor(IAdaptable elementAdapter,
java.lang.Class viewKind,
java.lang.String semanticHint,
int index,
boolean persisted,
PreferencesHint preferencesHint)
elementAdapter - the element adapter referened by the viewviewKind - the kind of the view to be created (a concrete class derived from View)semanticHint - the semantic hint of the viewindex - the index of the view in its parent's children collectionpersisted - set | Method Detail |
public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter in interface IAdaptableIAdaptable.getAdapter(Class)public void setView(View view)
view - public void setPersisted(boolean persisted)
persisted - public IAdaptable getElementAdapter()
public java.lang.Class getViewKind()
public java.lang.String getSemanticHint()
public int getIndex()
public final boolean isPersisted()
true or falsepublic PreferencesHint getPreferencesHint()
|
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.