@Deprecated public abstract class CppAbstractPanel extends org.eclipse.swt.widgets.Composite
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.swt.widgets.Button |
buttonCancel
Deprecated.
|
protected org.eclipse.swt.widgets.Button |
buttonSave
Deprecated.
|
protected static String |
C_CPP_ID
Deprecated.
|
protected static String |
C_ID
Deprecated.
|
protected static String |
CPP_ID
Deprecated.
|
static int |
H_SPACE
Deprecated.
|
protected UMLElementPanelListener |
umlListener
Deprecated.
Listener for modifications on the UML element
|
Constructor and Description |
---|
CppAbstractPanel(org.eclipse.swt.widgets.Composite parent,
int style)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addStereotypeSelectionListener(org.eclipse.swt.widgets.Button button,
String stereotypeName)
Deprecated.
Selection listener that match button status and a particular stereotype
|
abstract boolean |
checkModifications()
Deprecated.
Check if the content of the panel has modification against the corresponding UML element.
|
protected org.eclipse.swt.widgets.Button |
createButton(String name,
org.eclipse.swt.widgets.Composite parent,
org.eclipse.swt.widgets.Button previous)
Deprecated.
Create new button
|
abstract org.eclipse.swt.widgets.Control |
createContent()
Deprecated.
|
protected org.eclipse.jface.text.IDocument |
createDocument()
Deprecated.
Create a simple document
|
protected org.eclipse.jface.text.IDocument |
createDocumentC()
Deprecated.
Create a C/C++ (see cdt) document
|
protected org.eclipse.swt.widgets.Group |
createGroup(org.eclipse.swt.widgets.Composite textArea,
String name,
org.eclipse.swt.widgets.Control t_previous,
org.eclipse.swt.widgets.Control l_previous,
boolean toRight,
int height,
int width,
boolean toBottom)
Deprecated.
Create a group for a text area
|
protected void |
createSaveResetButtons()
Deprecated.
Create save and reset button in the top - right of the structure
|
protected org.eclipse.jface.text.source.SourceViewer |
createViewer(org.eclipse.jface.text.IDocument doc,
org.eclipse.swt.widgets.Group group)
Deprecated.
Create a simple viewer without coloration
|
protected org.eclipse.jface.text.source.SourceViewer |
createViewerC(org.eclipse.jface.text.IDocument doc,
org.eclipse.swt.widgets.Group group)
Deprecated.
|
void |
dispose()
Deprecated.
|
void |
entryAction()
Deprecated.
Action executed just after the panel is created for the specific element.
|
void |
exitAction()
Deprecated.
Action executed just before moving to the new element.
|
abstract org.eclipse.uml2.uml.Element |
getSelectedElement()
Deprecated.
Returns the selected element
Warning: it can be
null |
protected boolean |
isModelValid()
Deprecated.
Check if model is coherent with the AccordCpp Methodology
|
protected static void |
openInformation(String title,
String message)
Deprecated.
|
protected abstract void |
refreshPanel()
Deprecated.
Refresh panel
|
void |
reset()
Deprecated.
Action executed when reset button is pressed
|
abstract void |
save()
Deprecated.
Action executed when save button is pressed
|
void |
setSelectedElement(org.eclipse.uml2.uml.Element newElement)
Deprecated.
Sets the new selected element
|
protected void |
updateModel()
Deprecated.
Makes the model coherent with the AccordCpp Methodology
|
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
public static final int H_SPACE
protected static final String C_CPP_ID
protected static final String CPP_ID
protected static final String C_ID
protected org.eclipse.swt.widgets.Button buttonSave
protected org.eclipse.swt.widgets.Button buttonCancel
protected UMLElementPanelListener umlListener
public CppAbstractPanel(org.eclipse.swt.widgets.Composite parent, int style)
public abstract org.eclipse.swt.widgets.Control createContent()
protected org.eclipse.swt.widgets.Group createGroup(org.eclipse.swt.widgets.Composite textArea, String name, org.eclipse.swt.widgets.Control t_previous, org.eclipse.swt.widgets.Control l_previous, boolean toRight, int height, int width, boolean toBottom)
textArea
- parent compositename
- of the groupt_previous
- attached to top borderl_previous
- attached to left bordertoRight
- should group reach right border of parentheight
- of text in percent of group sizewidth
- of text in percent of group sizetoBottom
- should group reach bottom of parentprotected org.eclipse.jface.text.source.SourceViewer createViewer(org.eclipse.jface.text.IDocument doc, org.eclipse.swt.widgets.Group group)
doc
- group
- protected org.eclipse.jface.text.source.SourceViewer createViewerC(org.eclipse.jface.text.IDocument doc, org.eclipse.swt.widgets.Group group)
doc
- group
- protected org.eclipse.jface.text.IDocument createDocument()
protected org.eclipse.jface.text.IDocument createDocumentC()
protected void createSaveResetButtons()
protected org.eclipse.swt.widgets.Button createButton(String name, org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Button previous)
name
- of the buttonparent
- composite that owns the buttonprevious
- structure on which button is left attachedprotected void addStereotypeSelectionListener(org.eclipse.swt.widgets.Button button, String stereotypeName)
button
- stereotypeName
- public void entryAction()
public void exitAction()
public abstract boolean checkModifications()
true
if the panel has modification against the modelpublic abstract void save()
public void reset()
protected abstract void refreshPanel()
protected void updateModel()
protected boolean isModelValid()
true
if the model is coherent with the AccordCpp Methodologypublic void dispose()
dispose
in class org.eclipse.swt.widgets.Widget
public abstract org.eclipse.uml2.uml.Element getSelectedElement()
Warning: it can be null
public void setSelectedElement(org.eclipse.uml2.uml.Element newElement)
newElement
- the new selected elementCopyright © 2016 Eclipse foundation. All rights reserved.