[savara-commits] savara SVN: r208 - in tools/eclipse/trunk/plugins: org.jboss.savara.tools.jbossesb/META-INF and 1 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Sun Mar 21 17:11:23 EDT 2010


Author: objectiser
Date: 2010-03-21 17:11:23 -0400 (Sun, 21 Mar 2010)
New Revision: 208

Modified:
   tools/eclipse/trunk/plugins/org.jboss.savara.tools.bpel/src/java/org/jboss/savara/tools/bpel/editor/BPELEditorManager.java
   tools/eclipse/trunk/plugins/org.jboss.savara.tools.jbossesb/META-INF/MANIFEST.MF
   tools/eclipse/trunk/plugins/org.jboss.savara.tools.jbossesb/src/java/org/jboss/savara/tools/jbossesb/editor/JBossESBConfigEditorManager.java
Log:
Looking initially at SAVARA-53 - but need to find out how the marker uri is recorded to enable focus on the relevant node in the ESB editor.

Modified: tools/eclipse/trunk/plugins/org.jboss.savara.tools.bpel/src/java/org/jboss/savara/tools/bpel/editor/BPELEditorManager.java
===================================================================
--- tools/eclipse/trunk/plugins/org.jboss.savara.tools.bpel/src/java/org/jboss/savara/tools/bpel/editor/BPELEditorManager.java	2010-03-21 19:57:23 UTC (rev 207)
+++ tools/eclipse/trunk/plugins/org.jboss.savara.tools.bpel/src/java/org/jboss/savara/tools/bpel/editor/BPELEditorManager.java	2010-03-21 21:11:23 UTC (rev 208)
@@ -99,21 +99,5 @@
 		String uri=issue.getModelObject().getSource().getComponentURI();
 		
 		issue.getProperties().put("address.model", uri);
-
-		/*
-		if (issue.getModelObject() instanceof BPELElement) {
-			String uri=((BPELElement)issue.getModelObject()).getURI();
-			
-			if (uri != null) {
-				issue.getProperties().put("address.model", uri);
-			}
-		}
-		*/
-		
-		// Set the EMF URI attribute
-		//issue.getProperties().put(EValidator.URI_ATTRIBUTE, "//@activity/@activities.0");
-		//issue.getProperties().put("address.model", "//@activity/@activities.0");
-		//		issue.getModelObject().getSource().getComponentURI());
-		
 	}
 }

Modified: tools/eclipse/trunk/plugins/org.jboss.savara.tools.jbossesb/META-INF/MANIFEST.MF
===================================================================
--- tools/eclipse/trunk/plugins/org.jboss.savara.tools.jbossesb/META-INF/MANIFEST.MF	2010-03-21 19:57:23 UTC (rev 207)
+++ tools/eclipse/trunk/plugins/org.jboss.savara.tools.jbossesb/META-INF/MANIFEST.MF	2010-03-21 21:11:23 UTC (rev 208)
@@ -20,7 +20,8 @@
  org.eclipse.ui.ide,
  org.eclipse.ui.editors,
  org.scribble.conversation.parser,
- org.junit
+ org.junit,
+ org.eclipse.emf.ecore
 Scribble-Extensions: org.jboss.savara.tools.jbossesb.parser.JBossESBTokenizer,
   org.jboss.savara.tools.jbossesb.parser.JBossESBModelParserRule,
   org.jboss.savara.tools.jbossesb.model.JBossESBNotation,

Modified: tools/eclipse/trunk/plugins/org.jboss.savara.tools.jbossesb/src/java/org/jboss/savara/tools/jbossesb/editor/JBossESBConfigEditorManager.java
===================================================================
--- tools/eclipse/trunk/plugins/org.jboss.savara.tools.jbossesb/src/java/org/jboss/savara/tools/jbossesb/editor/JBossESBConfigEditorManager.java	2010-03-21 19:57:23 UTC (rev 207)
+++ tools/eclipse/trunk/plugins/org.jboss.savara.tools.jbossesb/src/java/org/jboss/savara/tools/jbossesb/editor/JBossESBConfigEditorManager.java	2010-03-21 21:11:23 UTC (rev 208)
@@ -22,9 +22,11 @@
 import org.scribble.extensions.RegistryInfo;
 import org.scribble.model.ModelReference;
 import org.scribble.model.SourceRef;
+import org.scribble.model.admin.ModelIssue;
 import org.scribble.editor.AbstractEditorManager;
 import org.scribble.editor.EditorManager;
 import org.jboss.savara.tools.jbossesb.model.*;
+import org.eclipse.emf.ecore.EValidator;
 
 /**
  * This is the JBossESB config implementation of the EditorManager
@@ -92,4 +94,16 @@
 		}
 	}
 
+	/**
+	 * This method enriches the set of properties required
+	 * by the editor, using the properties associated with
+	 * the model issue.
+	 * 
+	 * @param issue The model issue
+	 */
+	public void enrich(ModelIssue issue) {
+		String uri="//@services/@service.1/@actions/@action.0"; //issue.getModelObject().getSource().getComponentURI();
+		
+		issue.getProperties().put(EValidator.URI_ATTRIBUTE, uri);
+	}
 }



More information about the savara-commits mailing list