svn commit: r18787 - trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ActivityGraphsFactoryEUMLlImpl.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: linus
Date: 2010-10-10 13:22:28-0700
New Revision: 18787

Modified:
   trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ActivityGraphsFactoryEUMLlImpl.java

Log:
Small fixes.

Modified: trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ActivityGraphsFactoryEUMLlImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ActivityGraphsFactoryEUMLlImpl.java?view=diff&pathrev=18787&r1=18786&r2=18787
==============================================================================
--- trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ActivityGraphsFactoryEUMLlImpl.java	(original)
+++ trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ActivityGraphsFactoryEUMLlImpl.java	2010-10-10 13:22:28-0700
@@ -1,5 +1,5 @@
 // $Id$
-/*******************************************************************************
+/*****************************************************************************
  * Copyright (c) 2007,2010 Tom Morris and other contributors
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
@@ -8,7 +8,7 @@
  *
  * Contributors:
  *    Tom Morris - initial framework
- *******************************************************************************/
+ *****************************************************************************/
 
 package org.argouml.model.euml;
 
@@ -17,10 +17,7 @@
 import org.argouml.model.AbstractModelFactory;
 import org.argouml.model.ActivityGraphsFactory;
 import org.eclipse.uml2.uml.Activity;
-import org.eclipse.uml2.uml.Include;
-import org.eclipse.uml2.uml.Namespace;
 import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UseCase;
 
 /**
  * The implementation of the ActivityGraphsFactory for EUML2.
@@ -53,12 +50,14 @@
      */
     public Object buildActivityGraph(final Object theContext) {
         if (!(theContext instanceof org.eclipse.uml2.uml.Package)) {
-            throw new IllegalArgumentException("Didn't expect a " + theContext);
+            throw new IllegalArgumentException(
+                    "Didn't expect a " //$NON-NLS-1$
+                    + theContext); 
         }
         RunnableClass run = new RunnableClass() {
             public void run() {
-                Activity activity = (Activity)createActivityGraph();
-                activity.setPackage((org.eclipse.uml2.uml.Package)theContext);
+                Activity activity = (Activity) createActivityGraph();
+                activity.setPackage((org.eclipse.uml2.uml.Package) theContext);
                 getParams().add(activity);
             }
         };
@@ -72,17 +71,14 @@
     }
 
     public Object buildClassifierInState(Object classifier, Collection state) {
-        // TODO: Auto-generated method stub
         throw new NotYetImplementedException();
     }
 
     public Object buildObjectFlowState(Object compositeState) {
-        // TODO: Auto-generated method stub
         throw new NotYetImplementedException();
     }
 
     public Object createActionState() {
-        // TODO: Auto-generated method stub
         throw new NotYetImplementedException();
     }
 
@@ -91,27 +87,22 @@
     }
 
     public Object createCallState() {
-        // TODO: Auto-generated method stub
         throw new NotYetImplementedException();
     }
 
     public Object createClassifierInState() {
-        // TODO: Auto-generated method stub
         throw new NotYetImplementedException();
     }
 
     public Object createObjectFlowState() {
-        // TODO: Auto-generated method stub
         throw new NotYetImplementedException();
     }
 
     public Object createPartition() {
-        // TODO: Auto-generated method stub
         throw new NotYetImplementedException();
     }
 
     public Object createSubactivityState() {
-        // TODO: Auto-generated method stub
         throw new NotYetImplementedException();
     }

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2669806

To unsubscribe from this discussion, e-mail: [[email protected]].
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.