|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.uniba.euromath.editor.actions.MultiViewActionFactory
public class MultiViewActionFactory
| Field Summary | |
|---|---|
protected Map<String,Class<? extends XMLAccessModifyAction>> |
actionClasses
Map holding registered action classes. |
| Constructor Summary | |
|---|---|
MultiViewActionFactory()
Contructor. |
|
| Method Summary | |
|---|---|
XMLAccessModifyAction |
createAction(Class<? extends XMLAccessModifyAction> clz,
IWorkbenchPart part)
Creates instance of action. |
XMLAccessModifyAction |
createAction(String key,
IWorkbenchPart part)
Creates instance of action. |
protected List<XMLAccessModifyAction> |
createActions(String[] ids,
IWorkbenchPart part)
Creates list of instances of actions. |
protected Class<? extends XMLAccessModifyAction> |
getActionClass(String key)
Returns CLass registered in this factory. |
void |
registerAction(String id,
Class<? extends XMLAccessModifyAction> cls)
Registers action id to class for creation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Map<String,Class<? extends XMLAccessModifyAction>> actionClasses
| Constructor Detail |
|---|
public MultiViewActionFactory()
| Method Detail |
|---|
protected Class<? extends XMLAccessModifyAction> getActionClass(String key)
key - registration key
public XMLAccessModifyAction createAction(Class<? extends XMLAccessModifyAction> clz,
IWorkbenchPart part)
clz - of action
public XMLAccessModifyAction createAction(String key,
IWorkbenchPart part)
key - of action to create, by which is registered in
factory.part - workbench part to be set to created action
protected List<XMLAccessModifyAction> createActions(String[] ids,
IWorkbenchPart part)
ids - of actions to create, by which are registered in
factory.part - workbench part to be set to created action
public void registerAction(String id,
Class<? extends XMLAccessModifyAction> cls)
id - id of actioncls - class of action, must extends IMultiViewAction class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||