[overlord-commits] Overlord SVN: r496 - in cdl/trunk/tools/plugins: org.jboss.tools.overlord.cdl.runtime.jbossesb/src/java/org/jboss/tools/overlord/cdl/runtime/jbossesb/parser and 1 other directory.
overlord-commits at lists.jboss.org
overlord-commits at lists.jboss.org
Sun Feb 15 09:11:10 EST 2009
Author: objectiser
Date: 2009-02-15 09:11:09 -0500 (Sun, 15 Feb 2009)
New Revision: 496
Modified:
cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.bpel/src/java/org/jboss/tools/overlord/cdl/bpel/parser/BPELNotation.java
cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.runtime.jbossesb/src/java/org/jboss/tools/overlord/cdl/runtime/jbossesb/parser/JBossESBNotation.java
Log:
Updated notation to extend abstract notation implementation.
Modified: cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.bpel/src/java/org/jboss/tools/overlord/cdl/bpel/parser/BPELNotation.java
===================================================================
--- cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.bpel/src/java/org/jboss/tools/overlord/cdl/bpel/parser/BPELNotation.java 2009-02-13 17:04:30 UTC (rev 495)
+++ cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.bpel/src/java/org/jboss/tools/overlord/cdl/bpel/parser/BPELNotation.java 2009-02-15 14:11:09 UTC (rev 496)
@@ -22,30 +22,17 @@
import org.jboss.tools.overlord.cdl.bpel.model.*;
/**
- *
- *
- * @author gary
+ * The notation class for the BPEL language.
*/
@RegistryInfo(extension=org.scribble.parser.Notation.class)
-public class BPELNotation implements org.scribble.parser.Notation {
+public class BPELNotation extends org.scribble.parser.AbstractNotation {
/**
- * This method returns the code for the notation.
- *
- * @return The notation code
+ * This is the default constructor for the BPEL notation.
*/
- public String getCode() {
- return(BPELLanguageModel.BPEL_NOTATION);
+ public BPELNotation() {
+ super(BPELLanguageModel.BPEL_NOTATION, "BPEL", false);
}
-
- /**
- * This method returns the name of the notation.
- *
- * @return The name
- */
- public String getName() {
- return("BPEL");
- }
/**
* This method returns the initial description associated
@@ -54,19 +41,10 @@
* @param ref The reference
* @return The initial description, or null if no description
*/
+ @Override
public String getInitialDescription(ModelReference ref) {
StringBuffer buf=new StringBuffer();
return(buf.toString());
}
-
- /**
- * This method determines whether the Scribble editor should
- * be used for editing the notation.
- *
- * @return Whether the Scribble editor should be used
- */
- public boolean useScribbleEditor() {
- return(false);
- }
}
Modified: cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.runtime.jbossesb/src/java/org/jboss/tools/overlord/cdl/runtime/jbossesb/parser/JBossESBNotation.java
===================================================================
--- cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.runtime.jbossesb/src/java/org/jboss/tools/overlord/cdl/runtime/jbossesb/parser/JBossESBNotation.java 2009-02-13 17:04:30 UTC (rev 495)
+++ cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.runtime.jbossesb/src/java/org/jboss/tools/overlord/cdl/runtime/jbossesb/parser/JBossESBNotation.java 2009-02-15 14:11:09 UTC (rev 496)
@@ -22,30 +22,17 @@
import org.jboss.tools.overlord.cdl.runtime.jbossesb.model.*;
/**
- *
- *
- * @author gary
+ * This class represents the JBossESB notation.
*/
@RegistryInfo(extension=org.scribble.parser.Notation.class)
-public class JBossESBNotation implements org.scribble.parser.Notation {
+public class JBossESBNotation extends org.scribble.parser.AbstractNotation {
/**
- * This method returns the code for the notation.
- *
- * @return The notation code
+ * This is the default constructor for the JBossESB notation.
*/
- public String getCode() {
- return(ESBLanguageModel.JBOSSESB_NOTATION);
+ public JBossESBNotation() {
+ super(ESBLanguageModel.JBOSSESB_NOTATION, "JBossESB", false);
}
-
- /**
- * This method returns the name of the notation.
- *
- * @return The name
- */
- public String getName() {
- return("JBossESB");
- }
/**
* This method returns the initial description associated
@@ -59,14 +46,4 @@
return(buf.toString());
}
-
- /**
- * This method determines whether the Scribble editor should
- * be used for editing the notation.
- *
- * @return Whether the Scribble editor should be used
- */
- public boolean useScribbleEditor() {
- return(false);
- }
}
More information about the overlord-commits
mailing list