|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gef.Request
org.eclipse.gef.requests.CreateRequest
org.eclipse.gmf.runtime.diagram.ui.requests.CreateUnspecifiedTypeRequest
This request encapsulates a list of CreateViewRequest or
CreateViewAndElementRequest for each type that this tool
supports. Each method in CreateRequest that is called to
configure the request in CreationTool is propagated to each
individual request.
| Field Summary | |
protected java.util.List |
elementTypes
List of element types of which one will be created (of type IElementType). |
protected java.util.Map |
requests
A map containing the CreateRequest for each element type. |
| Constructor Summary | |
CreateUnspecifiedTypeRequest(java.util.List elementTypes,
PreferencesHint preferencesHint)
Creates a new CreateUnspecifiedTypeRequest. |
|
| Method Summary | |
protected void |
createRequests()
Creates a CreateViewRequest or
CreateViewAndElementRequest for each creation hint and
adds it to the map of requests. |
java.util.List |
getElementTypes()
Returns the list of element types. |
java.lang.Object |
getNewObject()
|
java.lang.Object |
getNewObjectType()
|
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. |
CreateRequest |
getRequestForType(IElementType creationHint)
Returns the CreateRequest for the element type passed in. |
void |
setExtendedData(java.util.Map map)
|
void |
setFactory(CreationFactory factory)
|
void |
setLocation(Point location)
|
void |
setNewObject(java.util.Collection theNewObjects)
Sets the new object to be returned. |
void |
setSize(Dimension size)
|
void |
setType(java.lang.Object type)
|
| Methods inherited from class org.eclipse.gef.requests.CreateRequest |
getFactory, getLocation, getSize |
| Methods inherited from class org.eclipse.gef.Request |
getExtendedData, getType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.List elementTypes
IElementType).
protected java.util.Map requests
CreateRequest for each element type.
| Constructor Detail |
public CreateUnspecifiedTypeRequest(java.util.List elementTypes,
PreferencesHint preferencesHint)
CreateUnspecifiedTypeRequest.
elementTypes - List of element types of which one will be created (of type
IElementType).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>.| Method Detail |
protected void createRequests()
CreateViewRequest or
CreateViewAndElementRequest for each creation hint and
adds it to the map of requests.
public CreateRequest getRequestForType(IElementType creationHint)
CreateRequest for the element type passed in.
creationHint -
CreateRequestpublic java.util.List getElementTypes()
protected PreferencesHint getPreferencesHint()
public void setLocation(Point location)
public void setType(java.lang.Object type)
public void setSize(Dimension size)
public void setFactory(CreationFactory factory)
public void setExtendedData(java.util.Map map)
public void setNewObject(java.util.Collection theNewObjects)
theNewObjects - public java.lang.Object getNewObject()
public java.lang.Object getNewObjectType()
|
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.