37 |
|
|
38 |
package nongnu.cashews.eclipse.composer.parts; |
package nongnu.cashews.eclipse.composer.parts; |
39 |
|
|
40 |
import nongnu.cashews.eclipse.composer.model.Connection; |
import nongnu.cashews.eclipse.composer.model.ConnectionElement; |
41 |
import nongnu.cashews.eclipse.composer.model.Diagram; |
import nongnu.cashews.eclipse.composer.model.Diagram; |
42 |
import nongnu.cashews.eclipse.composer.model.EllipseNode; |
import nongnu.cashews.eclipse.composer.model.PerformanceElement; |
43 |
|
import nongnu.cashews.eclipse.composer.model.EndPointNode; |
44 |
import nongnu.cashews.eclipse.composer.model.RectangleNode; |
import nongnu.cashews.eclipse.composer.model.RectangleNode; |
45 |
|
import nongnu.cashews.eclipse.composer.model.StartPointNode; |
46 |
|
|
47 |
import org.eclipse.gef.EditPart; |
import org.eclipse.gef.EditPart; |
48 |
import org.eclipse.gef.EditPartFactory; |
import org.eclipse.gef.EditPartFactory; |
68 |
{ |
{ |
69 |
part = new RectangleNodePart(); |
part = new RectangleNodePart(); |
70 |
} |
} |
71 |
else if (model instanceof EllipseNode) |
else if (model instanceof PerformanceElement) |
72 |
{ |
{ |
73 |
part = new EllipseNodePart(); |
part = new PerformanceNodePart(); |
74 |
} |
} |
75 |
else if (model instanceof Connection) |
else if (model instanceof ConnectionElement) |
76 |
{ |
{ |
77 |
part = new ConnectionPart(); |
part = new ConnectionPart(); |
78 |
} |
} |
79 |
|
else if (model instanceof StartPointNode) |
80 |
|
{ |
81 |
|
part = new StartPointNodePart(); |
82 |
|
} |
83 |
|
else if (model instanceof EndPointNode) |
84 |
|
{ |
85 |
|
part = new EndPointNodePart(); |
86 |
|
} |
87 |
else |
else |
88 |
{ |
{ |
89 |
return null; |
return null; |