01: package org.openwfe.gpe.parts;
02:
03: import org.eclipse.draw2d.IFigure;
04:
05: import org.openwfe.gpe.figures.SubgraphFigure;
06:
07: /**
08: * @author christelle
09: */
10: public class ConcurrencePart extends CompositeOrOneChildPart {
11:
12: IFigure figure;
13:
14: public ConcurrencePart(IFigure figure) {
15: super ();
16: this .figure = figure;
17: }
18:
19: /**
20: * @see org.eclipse.gef.EditPart#setSelected(int)
21: */
22: public void setSelected(int value) {
23: super .setSelected(value);
24: SubgraphFigure sf = (SubgraphFigure) getFigure();
25: sf.setSelected(value != SELECTED_NONE);
26: }
27:
28: protected IFigure createFigure() {
29: return figure;
30: }
31: }
|