|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.egf.pattern.ui.internal.editor.page.DefaultContentHandler
org.eclipse.egf.pattern.ui.internal.editor.page.implementation.MethodPatternCodeViewer.MethodPatternCodeContentHandler
protected class MethodPatternCodeViewer.MethodPatternCodeContentHandler
Method pattern code content handler.
Constructor Summary | |
---|---|
protected |
MethodPatternCodeViewer.MethodPatternCodeContentHandler()
Constructor. |
Method Summary | |
---|---|
Object |
createNewElement()
Create a new element. |
protected List<MethodActionHandler> |
getActions()
Get handled method pattern code actions. |
protected List<MethodActionHandler> |
getHandlersFor(EOperation method_p)
Get handlers using with given method. |
protected boolean |
isHandlerFor(EOperation method_p)
Is given method handled by this handler ? |
protected void |
notifyModification()
A modification that requires a save occurred. |
protected List<MethodActionHandler> |
removeActionsUsing(EOperation method_p)
Given method has been removed, remove actions that are referencing it. |
void |
removeElement(Object element_p)
Remove given element from handled ones. |
protected void |
resolvePointedElement(MethodActionHandler methodHandler_p)
Resolve current method handler pointed model element, if any. |
protected void |
savePatternCodeAnnotation()
Save pattern code annotation, according to current actions list state. |
protected void |
setMethod(EOperation method_p)
Set method. |
protected void |
swapElements(int firstIndex_p,
int secondIndex_p)
Swap elements in the actions list. |
Methods inherited from class org.eclipse.egf.pattern.ui.internal.editor.page.DefaultContentHandler |
---|
addPropertyChangeListener, getPage, getPattern, getPatternData, removePropertyChangeListener, setPatternData, setPatternPage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MethodPatternCodeViewer.MethodPatternCodeContentHandler()
Method Detail |
---|
protected boolean isHandlerFor(EOperation method_p)
method_p
-
protected List<MethodActionHandler> getHandlersFor(EOperation method_p)
method_p
-
protected void setMethod(EOperation method_p)
method_p
- protected List<MethodActionHandler> getActions()
MethodActionHandler
.protected void resolvePointedElement(MethodActionHandler methodHandler_p)
methodHandler_p
- A not null method handler, that is to contain the action couple at least (should be so, by construction).protected void savePatternCodeAnnotation()
protected void notifyModification()
DefaultContentHandler
notifyModification
in class DefaultContentHandler
DefaultContentHandler.notifyModification()
protected List<MethodActionHandler> removeActionsUsing(EOperation method_p)
parameterName_p
- public Object createNewElement()
IContentHandler
createNewElement
in interface IContentHandler
createNewElement
in class DefaultContentHandler
IContentHandler.createNewElement()
public void removeElement(Object element_p)
IContentHandler
removeElement
in interface IContentHandler
removeElement
in class DefaultContentHandler
IContentHandler.removeElement(java.lang.Object)
protected void swapElements(int firstIndex_p, int secondIndex_p)
firstIndex_p
- secondIndex_p
-
|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) Thales Corporate Services S.A.S, 2009.
This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.