01: /*
02: * To change this template, choose Tools | Templates
03: * and open the template in the editor.
04: */
05:
06: package org.netbeans.modules.bpel.design.model.patterns;
07:
08: import org.netbeans.modules.bpel.design.model.DiagramModel;
09: import org.netbeans.modules.bpel.design.model.elements.ContentElement;
10: import org.netbeans.modules.bpel.design.model.elements.VisualElement;
11: import org.netbeans.modules.bpel.editors.api.nodes.NodeType;
12:
13: /**
14: *
15: * @author Alexey
16: */
17: public class ReThrowPattern extends BasicActivityPattern {
18: /** Creates a new instance of BasicActivityPattern */
19: public ReThrowPattern(DiagramModel model) {
20: super (model);
21: }
22:
23: protected void createElementsImpl() {
24: VisualElement element = ContentElement.createReThrow();
25: appendElement(element);
26: registerTextElement(element);
27: }
28:
29: public String getDefaultName() {
30: return "Rethrow"; // NOI18N
31: }
32:
33: public NodeType getNodeType() {
34: return NodeType.RETHROW;
35: }
36: }
|