|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.editor.actions.MultiViewActionFactory
public class MultiViewActionFactory
Field Summary | |
---|---|
protected Map<String,Class<? extends IMultiViewAction>> |
actionClasses
Map holding registered action classes. |
Constructor Summary | |
---|---|
MultiViewActionFactory()
Contructor. |
Method Summary | |
---|---|
IMultiViewAction |
createAction(Class<? extends IMultiViewAction> clz)
Creates instance of action. |
IMultiViewAction |
createAction(String key,
IWorkbenchPart part)
Creates instance of action. |
protected List<IMultiViewAction> |
createActions(String[] ids,
IWorkbenchPart part)
Creates list of instances of actions. |
protected Class<? extends IMultiViewAction> |
getActionClass(String key)
Returns CLass registered in this factory. |
Map<String,Class<? extends IMultiViewAction>> |
getActionClasses()
|
void |
registerAction(String id,
Class<? extends IMultiViewAction> 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 IMultiViewAction>> actionClasses
Constructor Detail |
---|
public MultiViewActionFactory()
Method Detail |
---|
protected Class<? extends IMultiViewAction> getActionClass(String key)
key
- registration key
public IMultiViewAction createAction(Class<? extends IMultiViewAction> clz)
clz
- of action
public IMultiViewAction 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<IMultiViewAction> 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 IMultiViewAction> cls)
id
- id of actioncls
- class of action, must extends IMultiViewAction classpublic Map<String,Class<? extends IMultiViewAction>> getActionClasses()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |