Author: linus
Date: 2007-05-12 01:18:48-0700
New Revision: 12607
Modified:
trunk/src_new/org/argouml/notation/providers/uml/ExtensionPointNotationUml.java
trunk/src_new/org/argouml/notation/providers/uml/NotationUtilityUml.java
Log:
Style issues.
Modified: trunk/src_new/org/argouml/notation/providers/uml/ExtensionPointNotationUml.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/notation/providers/uml/ExtensionPointNotationUml.java?view=diff&rev=12607&p1=trunk/src_new/org/argouml/notation/providers/uml/ExtensionPointNotationUml.java&p2=trunk/src_new/org/argouml/notation/providers/uml/ExtensionPointNotationUml.java&r1=12606&r2=12607
==============================================================================
--- trunk/src_new/org/argouml/notation/providers/uml/ExtensionPointNotationUml.java (original)
+++ trunk/src_new/org/argouml/notation/providers/uml/ExtensionPointNotationUml.java 2007-05-12 01:18:48-0700
@@ -222,7 +222,7 @@
// return "";
// }
- if(modelElement == null) {
+ if (modelElement == null) {
return "";
}
Modified: trunk/src_new/org/argouml/notation/providers/uml/NotationUtilityUml.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/notation/providers/uml/NotationUtilityUml.java?view=diff&rev=12607&p1=trunk/src_new/org/argouml/notation/providers/uml/NotationUtilityUml.java&p2=trunk/src_new/org/argouml/notation/providers/uml/NotationUtilityUml.java&r1=12606&r2=12607
==============================================================================
--- trunk/src_new/org/argouml/notation/providers/uml/NotationUtilityUml.java (original)
+++ trunk/src_new/org/argouml/notation/providers/uml/NotationUtilityUml.java 2007-05-12 01:18:48-0700
@@ -145,108 +145,110 @@
operationSpecialStrings[ossPos++] =
new PropertySpecialString("sequential",
new PropertyOperation() {
- public void found(Object element, String value) {
- if (Model.getFacade().isAOperation(element)) {
- Model.getCoreHelper().setConcurrency(element,
+ public void found(Object element, String value) {
+ if (Model.getFacade().isAOperation(element)) {
+ Model.getCoreHelper().setConcurrency(element,
Model.getConcurrencyKind().getSequential());
+ }
}
- }
- });
+ });
operationSpecialStrings[ossPos++] =
new PropertySpecialString("guarded",
new PropertyOperation() {
- public void found(Object element, String value) {
- Object kind = Model.getConcurrencyKind().getGuarded();
- if (value != null && value.equalsIgnoreCase("false")) {
- kind = Model.getConcurrencyKind().getSequential();
- }
- if (Model.getFacade().isAOperation(element)) {
- Model.getCoreHelper().setConcurrency(element, kind);
+ public void found(Object element, String value) {
+ Object kind = Model.getConcurrencyKind().getGuarded();
+ if (value != null && value.equalsIgnoreCase("false")) {
+ kind = Model.getConcurrencyKind().getSequential();
+ }
+ if (Model.getFacade().isAOperation(element)) {
+ Model.getCoreHelper().setConcurrency(element, kind);
+ }
}
- }
- });
+ });
operationSpecialStrings[ossPos++] =
new PropertySpecialString("concurrent",
new PropertyOperation() {
- public void found(Object element, String value) {
- Object kind =
- Model.getConcurrencyKind().getConcurrent();
- if (value != null && value.equalsIgnoreCase("false")) {
- kind = Model.getConcurrencyKind().getSequential();
- }
- if (Model.getFacade().isAOperation(element)) {
- Model.getCoreHelper().setConcurrency(element, kind);
+ public void found(Object element, String value) {
+ Object kind =
+ Model.getConcurrencyKind().getConcurrent();
+ if (value != null && value.equalsIgnoreCase("false")) {
+ kind = Model.getConcurrencyKind().getSequential();
+ }
+ if (Model.getFacade().isAOperation(element)) {
+ Model.getCoreHelper().setConcurrency(element, kind);
+ }
}
- }
- });
+ });
operationSpecialStrings[ossPos++] =
new PropertySpecialString("concurrency",
new PropertyOperation() {
- public void found(Object element, String value) {
- Object kind =
- Model.getConcurrencyKind().getSequential();
- if ("guarded".equalsIgnoreCase(value)) {
- kind = Model.getConcurrencyKind().getGuarded();
- } else if ("concurrent".equalsIgnoreCase(value)) {
- kind = Model.getConcurrencyKind().getConcurrent();
- }
- if (Model.getFacade().isAOperation(element)) {
- Model.getCoreHelper().setConcurrency(element, kind);
+ public void found(Object element, String value) {
+ Object kind =
+ Model.getConcurrencyKind().getSequential();
+ if ("guarded".equalsIgnoreCase(value)) {
+ kind = Model.getConcurrencyKind().getGuarded();
+ } else if ("concurrent".equalsIgnoreCase(value)) {
+ kind = Model.getConcurrencyKind().getConcurrent();
+ }
+ if (Model.getFacade().isAOperation(element)) {
+ Model.getCoreHelper().setConcurrency(element, kind);
+ }
}
- }
- });
+ });
operationSpecialStrings[ossPos++] =
new PropertySpecialString("abstract",
new PropertyOperation() {
- public void found(Object element, String value) {
- boolean isAbstract = true;
- if (value != null && value.equalsIgnoreCase("false")) {
- isAbstract = false;
- }
- if (Model.getFacade().isAOperation(element)) {
- Model.getCoreHelper().setAbstract(element, isAbstract);
+ public void found(Object element, String value) {
+ boolean isAbstract = true;
+ if (value != null && value.equalsIgnoreCase("false")) {
+ isAbstract = false;
+ }
+ if (Model.getFacade().isAOperation(element)) {
+ Model.getCoreHelper().setAbstract(
+ element,
+ isAbstract);
+ }
}
- }
- });
+ });
operationSpecialStrings[ossPos++] =
new PropertySpecialString("leaf",
new PropertyOperation() {
- public void found(Object element, String value) {
- boolean isLeaf = true;
- if (value != null && value.equalsIgnoreCase("false")) {
- isLeaf = false;
- }
- if (Model.getFacade().isAOperation(element)) {
- Model.getCoreHelper().setLeaf(element, isLeaf);
+ public void found(Object element, String value) {
+ boolean isLeaf = true;
+ if (value != null && value.equalsIgnoreCase("false")) {
+ isLeaf = false;
+ }
+ if (Model.getFacade().isAOperation(element)) {
+ Model.getCoreHelper().setLeaf(element, isLeaf);
+ }
}
- }
- });
+ });
operationSpecialStrings[ossPos++] =
new PropertySpecialString("query",
new PropertyOperation() {
- public void found(Object element, String value) {
- boolean isQuery = true;
- if (value != null && value.equalsIgnoreCase("false")) {
- isQuery = false;
- }
- if (Model.getFacade().isABehavioralFeature(element)) {
- Model.getCoreHelper().setQuery(element, isQuery);
+ public void found(Object element, String value) {
+ boolean isQuery = true;
+ if (value != null && value.equalsIgnoreCase("false")) {
+ isQuery = false;
+ }
+ if (Model.getFacade().isABehavioralFeature(element)) {
+ Model.getCoreHelper().setQuery(element, isQuery);
+ }
}
- }
- });
+ });
operationSpecialStrings[ossPos++] =
new PropertySpecialString("root",
new PropertyOperation() {
- public void found(Object element, String value) {
- boolean isRoot = true;
- if (value != null && value.equalsIgnoreCase("false")) {
- isRoot = false;
- }
- if (Model.getFacade().isAOperation(element)) {
- Model.getCoreHelper().setRoot(element, isRoot);
+ public void found(Object element, String value) {
+ boolean isRoot = true;
+ if (value != null && value.equalsIgnoreCase("false")) {
+ isRoot = false;
+ }
+ if (Model.getFacade().isAOperation(element)) {
+ Model.getCoreHelper().setRoot(element, isRoot);
+ }
}
- }
- });
+ });
assert ossPos == operationSpecialStrings.length;
}
@@ -936,7 +938,8 @@
* <em>Example:</em>
*
* <pre>
- * attributeSpecialStrings[0] = new PropertySpecialString("frozen",
+ * attributeSpecialStrings[0] =
+ * new PropertySpecialString("frozen",
* new PropertyOperation() {
* public void found(Object element, String value) {
* if (Model.getFacade().isAStructuralFeature(element))
@@ -1010,9 +1013,9 @@
* return an index to the next attribute or operation substring, -1
* otherwise (a ';' inside a String or char delimiters is ignored).
*
- * @param s
- * @param start
- * @return
+ * @param s The string to search.
+ * @param start The position to start at.
+ * @return the index to the next attribute
*/
static int indexOfNextCheckedSemicolon(String s, int start) {
if (s == null || start < 0 || start >= s.length()) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.