+ Clean some code
authorBruno Sinou <bsinou@argeo.org>
Fri, 5 Nov 2010 17:27:52 +0000 (17:27 +0000)
committerBruno Sinou <bsinou@argeo.org>
Fri, 5 Nov 2010 17:27:52 +0000 (17:27 +0000)
+ reorganize perspective
+ add icons...

git-svn-id: https://svn.argeo.org/slc/trunk@3850 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

26 files changed:
eclipse/plugins/org.argeo.slc.client.rcp/icons/slc_execution_perspective.gif [new file with mode: 0644]
eclipse/plugins/org.argeo.slc.client.rcp/plugin.xml
eclipse/plugins/org.argeo.slc.client.ui/META-INF/spring/commands.xml
eclipse/plugins/org.argeo.slc.client.ui/icons/OK.png [deleted file]
eclipse/plugins/org.argeo.slc.client.ui/icons/batch.gif [new file with mode: 0644]
eclipse/plugins/org.argeo.slc.client.ui/icons/clear_batch.gif [new file with mode: 0644]
eclipse/plugins/org.argeo.slc.client.ui/icons/edit_parameters.gif [new file with mode: 0644]
eclipse/plugins/org.argeo.slc.client.ui/icons/error.gif [new file with mode: 0644]
eclipse/plugins/org.argeo.slc.client.ui/icons/execution_module.gif [new file with mode: 0644]
eclipse/plugins/org.argeo.slc.client.ui/icons/launch.gif [new file with mode: 0644]
eclipse/plugins/org.argeo.slc.client.ui/icons/passed.gif [new file with mode: 0644]
eclipse/plugins/org.argeo.slc.client.ui/icons/passed.png [new file with mode: 0644]
eclipse/plugins/org.argeo.slc.client.ui/icons/process_details.gif [new file with mode: 0644]
eclipse/plugins/org.argeo.slc.client.ui/icons/processes.gif [new file with mode: 0644]
eclipse/plugins/org.argeo.slc.client.ui/icons/processes.png [new file with mode: 0644]
eclipse/plugins/org.argeo.slc.client.ui/icons/remove_one.gif [new file with mode: 0644]
eclipse/plugins/org.argeo.slc.client.ui/icons/result_details.gif [new file with mode: 0644]
eclipse/plugins/org.argeo.slc.client.ui/icons/results.gif [new file with mode: 0644]
eclipse/plugins/org.argeo.slc.client.ui/icons/sample.gif [deleted file]
eclipse/plugins/org.argeo.slc.client.ui/icons/slc-launch.gif [deleted file]
eclipse/plugins/org.argeo.slc.client.ui/plugin.xml
eclipse/plugins/org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/ClientUiPlugin.java
eclipse/plugins/org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/commands/EditRealizedFlowDetailsHandler.java [deleted file]
eclipse/plugins/org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/perspectives/SlcExecution.java
eclipse/plugins/org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/providers/ProcessParametersEditingSupport.java
eclipse/plugins/org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/views/ProcessBuilderView.java

diff --git a/eclipse/plugins/org.argeo.slc.client.rcp/icons/slc_execution_perspective.gif b/eclipse/plugins/org.argeo.slc.client.rcp/icons/slc_execution_perspective.gif
new file mode 100644 (file)
index 0000000..b8ca14a
Binary files /dev/null and b/eclipse/plugins/org.argeo.slc.client.rcp/icons/slc_execution_perspective.gif differ
index 8b78bb3683817b0e4a37c1322f11b871aa10b9de..36f23ee95faeef2f28b294edeaf968185b07db60 100644 (file)
    <extension
          point="org.eclipse.ui.perspectives">
       <perspective
-            name="Perspective"
+            name="Slc Execution"
             class="org.argeo.slc.client.ui.perspectives.SlcExecution"
-            id="org.argeo.slc.client.ui.perspectives.slcExecution">
+            id="org.argeo.slc.client.ui.perspectives.slcExecution"
+            icon="icons/slc_execution_perspective.gif">
       </perspective>
    </extension>
    <extension
index a867733bb9c45c4ea65a3d613bffcd2ffa7a9b27..5312a33a4eeb5c36503d82844d99665839ac0570 100644 (file)
@@ -30,9 +30,4 @@
        <bean id="org.argeo.slc.client.ui.clearBatch" class="org.argeo.slc.client.ui.commands.ClearBatchHandler"
                scope="prototype">
        </bean>
-       <bean id="org.argeo.slc.client.ui.editRealizedFlowDetails"
-               class="org.argeo.slc.client.ui.commands.EditRealizedFlowDetailsHandler"
-               scope="prototype">
-               <property name="oxmBean" ref="oxmBean" />
-       </bean>
 </beans>
diff --git a/eclipse/plugins/org.argeo.slc.client.ui/icons/OK.png b/eclipse/plugins/org.argeo.slc.client.ui/icons/OK.png
deleted file mode 100644 (file)
index 04ab8b0..0000000
Binary files a/eclipse/plugins/org.argeo.slc.client.ui/icons/OK.png and /dev/null differ
diff --git a/eclipse/plugins/org.argeo.slc.client.ui/icons/batch.gif b/eclipse/plugins/org.argeo.slc.client.ui/icons/batch.gif
new file mode 100644 (file)
index 0000000..b8ca14a
Binary files /dev/null and b/eclipse/plugins/org.argeo.slc.client.ui/icons/batch.gif differ
diff --git a/eclipse/plugins/org.argeo.slc.client.ui/icons/clear_batch.gif b/eclipse/plugins/org.argeo.slc.client.ui/icons/clear_batch.gif
new file mode 100644 (file)
index 0000000..28a3785
Binary files /dev/null and b/eclipse/plugins/org.argeo.slc.client.ui/icons/clear_batch.gif differ
diff --git a/eclipse/plugins/org.argeo.slc.client.ui/icons/edit_parameters.gif b/eclipse/plugins/org.argeo.slc.client.ui/icons/edit_parameters.gif
new file mode 100644 (file)
index 0000000..94eedf6
Binary files /dev/null and b/eclipse/plugins/org.argeo.slc.client.ui/icons/edit_parameters.gif differ
diff --git a/eclipse/plugins/org.argeo.slc.client.ui/icons/error.gif b/eclipse/plugins/org.argeo.slc.client.ui/icons/error.gif
new file mode 100644 (file)
index 0000000..64b4384
Binary files /dev/null and b/eclipse/plugins/org.argeo.slc.client.ui/icons/error.gif differ
diff --git a/eclipse/plugins/org.argeo.slc.client.ui/icons/execution_module.gif b/eclipse/plugins/org.argeo.slc.client.ui/icons/execution_module.gif
new file mode 100644 (file)
index 0000000..983932f
Binary files /dev/null and b/eclipse/plugins/org.argeo.slc.client.ui/icons/execution_module.gif differ
diff --git a/eclipse/plugins/org.argeo.slc.client.ui/icons/launch.gif b/eclipse/plugins/org.argeo.slc.client.ui/icons/launch.gif
new file mode 100644 (file)
index 0000000..ec477ea
Binary files /dev/null and b/eclipse/plugins/org.argeo.slc.client.ui/icons/launch.gif differ
diff --git a/eclipse/plugins/org.argeo.slc.client.ui/icons/passed.gif b/eclipse/plugins/org.argeo.slc.client.ui/icons/passed.gif
new file mode 100644 (file)
index 0000000..23c97f0
Binary files /dev/null and b/eclipse/plugins/org.argeo.slc.client.ui/icons/passed.gif differ
diff --git a/eclipse/plugins/org.argeo.slc.client.ui/icons/passed.png b/eclipse/plugins/org.argeo.slc.client.ui/icons/passed.png
new file mode 100644 (file)
index 0000000..04ab8b0
Binary files /dev/null and b/eclipse/plugins/org.argeo.slc.client.ui/icons/passed.png differ
diff --git a/eclipse/plugins/org.argeo.slc.client.ui/icons/process_details.gif b/eclipse/plugins/org.argeo.slc.client.ui/icons/process_details.gif
new file mode 100644 (file)
index 0000000..c81630a
Binary files /dev/null and b/eclipse/plugins/org.argeo.slc.client.ui/icons/process_details.gif differ
diff --git a/eclipse/plugins/org.argeo.slc.client.ui/icons/processes.gif b/eclipse/plugins/org.argeo.slc.client.ui/icons/processes.gif
new file mode 100644 (file)
index 0000000..364c0e7
Binary files /dev/null and b/eclipse/plugins/org.argeo.slc.client.ui/icons/processes.gif differ
diff --git a/eclipse/plugins/org.argeo.slc.client.ui/icons/processes.png b/eclipse/plugins/org.argeo.slc.client.ui/icons/processes.png
new file mode 100644 (file)
index 0000000..364c0e7
Binary files /dev/null and b/eclipse/plugins/org.argeo.slc.client.ui/icons/processes.png differ
diff --git a/eclipse/plugins/org.argeo.slc.client.ui/icons/remove_one.gif b/eclipse/plugins/org.argeo.slc.client.ui/icons/remove_one.gif
new file mode 100644 (file)
index 0000000..2cd9c54
Binary files /dev/null and b/eclipse/plugins/org.argeo.slc.client.ui/icons/remove_one.gif differ
diff --git a/eclipse/plugins/org.argeo.slc.client.ui/icons/result_details.gif b/eclipse/plugins/org.argeo.slc.client.ui/icons/result_details.gif
new file mode 100644 (file)
index 0000000..4017f6d
Binary files /dev/null and b/eclipse/plugins/org.argeo.slc.client.ui/icons/result_details.gif differ
diff --git a/eclipse/plugins/org.argeo.slc.client.ui/icons/results.gif b/eclipse/plugins/org.argeo.slc.client.ui/icons/results.gif
new file mode 100644 (file)
index 0000000..0dc862c
Binary files /dev/null and b/eclipse/plugins/org.argeo.slc.client.ui/icons/results.gif differ
diff --git a/eclipse/plugins/org.argeo.slc.client.ui/icons/sample.gif b/eclipse/plugins/org.argeo.slc.client.ui/icons/sample.gif
deleted file mode 100644 (file)
index 34fb3c9..0000000
Binary files a/eclipse/plugins/org.argeo.slc.client.ui/icons/sample.gif and /dev/null differ
diff --git a/eclipse/plugins/org.argeo.slc.client.ui/icons/slc-launch.gif b/eclipse/plugins/org.argeo.slc.client.ui/icons/slc-launch.gif
deleted file mode 100644 (file)
index b8ca14a..0000000
Binary files a/eclipse/plugins/org.argeo.slc.client.ui/icons/slc-launch.gif and /dev/null differ
index ed9362c4613a73ab996b4524546ee5a57bbd8bf0..b6f4dd1e0670d4b50c6fa982b0f314c2ba8308ff 100644 (file)
@@ -6,47 +6,54 @@
    <extension
          point="org.eclipse.ui.views">
    <view
-         id="org.argeo.slc.client.ui.executionModulesView"
          class="org.argeo.eclipse.spring.SpringExtensionFactory"
+         icon="icons/execution_module.gif"
+         id="org.argeo.slc.client.ui.executionModulesView"
          name="Execution Modules"
          restorable="true">
    </view>
    <view
-         id="org.argeo.slc.client.ui.resultListView"
          class="org.argeo.eclipse.spring.SpringExtensionFactory"
+         icon="icons/results.gif"
+         id="org.argeo.slc.client.ui.resultListView"
          name="Results"
          restorable="true">
    </view>
    <view
-         id="org.argeo.slc.client.ui.resultDetailView"
-         class="org.argeo.eclipse.spring.SpringExtensionFactory"
-         name="Result Detail"
          allowMultiple="true"
+         class="org.argeo.eclipse.spring.SpringExtensionFactory"
+         icon="icons/result_details.gif"
+         id="org.argeo.slc.client.ui.resultDetailView"
+         name="Result details"
          restorable="true">
    </view>
    <view
          id="org.argeo.slc.client.ui.processListView"
          class="org.argeo.eclipse.spring.SpringExtensionFactory"
-         name="Process List"
+         name="Processes"
+         icon="icons/processes.gif"
          restorable="true">
    </view>
    <view
-         id="org.argeo.slc.client.ui.processDetailView"
-         class="org.argeo.eclipse.spring.SpringExtensionFactory"
-         name="Process Details"
          allowMultiple="true"
+         class="org.argeo.eclipse.spring.SpringExtensionFactory"
+         icon="icons/process_details.gif"
+         id="org.argeo.slc.client.ui.processDetailView"
+         name="Process details"
          restorable="true">
    </view>
    <view
-         id="org.argeo.slc.client.ui.processParametersView"
          class="org.argeo.eclipse.spring.SpringExtensionFactory"
+         icon="icons/edit_parameters.gif"
+         id="org.argeo.slc.client.ui.processParametersView"
          name="Process Parameters"
          restorable="true">
    </view>
    <view
-         id="org.argeo.slc.client.ui.processBuilderView"
          class="org.argeo.eclipse.spring.SpringExtensionFactory"
-         name="Process Builder"
+         icon="icons/batch.gif"
+         id="org.argeo.slc.client.ui.processBuilderView"
+         name="Batch"
          restorable="true">
    </view>
     </extension>
                        name="Result UUID">
                        </commandParameter>
        </command>
-   <command 
-               defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
-               id="org.argeo.slc.client.ui.editRealizedFlowDetails"
-               name="EditRealizedFlowDetails">
-                       <commandParameter
-                       id="org.argeo.slc.client.commands.realizedFlowAsXml"
-                       name="RealizedFlowAsXml">
-                       </commandParameter>
-                       <commandParameter
-                       id="org.argeo.slc.client.commands.realizedFlowIndex"
-                       name="realizedFlowIndex">
-                       </commandParameter>
-       </command>
    </extension>
    <extension
         point="org.eclipse.ui.bindings">
             locationURI="toolbar:org.argeo.slc.client.ui.processBuilderView">
          <command
                commandId="org.argeo.slc.client.ui.launchBatch"
+               icon="icons/launch.gif"
                label="Launch Batch"
                tooltip="Launch the batch built in the process builder view.">
          </command>
          <command
                commandId="org.argeo.slc.client.ui.clearBatch"
                label="Clear Batch"
+               icon="icons/clear_batch.gif"
                tooltip="Clear the batch built in the process builder view.">
          </command>
          <command
                commandId="org.argeo.slc.client.ui.removeSelectedFromBatch"
+               icon="icons/remove_one.gif"
                label="Remove Selected From Batch"
                tooltip="Remove selected process from process builder view.">
          </command>
index 805fdc2b02889619de33826ec192aae496052632..7148f0f54680342cbf37012fb3db1af4f34daaef 100644 (file)
@@ -75,10 +75,10 @@ public class ClientUiPlugin extends AbstractUIPlugin {
                reg.put("agent", getImageDescriptor("icons/computer.png"));
                reg.put("executionModule", getImageDescriptor("icons/archive.png"));
                reg.put("folder", getImageDescriptor("icons/folder.png"));
-               // reg.put("flow", getImageDescriptor("icons/slc-launch.gif"));
                reg.put("flow", getImageDescriptor("icons/system.png"));
-               reg.put("passedTest", getImageDescriptor("icons/OK.png"));
-               reg.put("failedTest", getImageDescriptor("icons/error.png"));
+               reg.put("processes", getImageDescriptor("icons/processes.gif"));
+               reg.put("passedTest", getImageDescriptor("icons/passed.gif"));
+               reg.put("failedTest", getImageDescriptor("icons/error.gif"));
        }
 
        public BundleContext getBundleContext() {
diff --git a/eclipse/plugins/org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/commands/EditRealizedFlowDetailsHandler.java b/eclipse/plugins/org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/commands/EditRealizedFlowDetailsHandler.java
deleted file mode 100644 (file)
index f26e29f..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-package org.argeo.slc.client.ui.commands;
-
-import org.argeo.slc.client.oxm.OxmInterface;
-import org.argeo.slc.client.ui.views.ProcessParametersView;
-import org.argeo.slc.process.RealizedFlow;
-import org.eclipse.core.commands.AbstractHandler;
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.ui.handlers.HandlerUtil;
-
-/**
- * 
- * @author bsinou
- * 
- *         Command handler to display and edit the attributes of a given
- *         Realizedflow. The corresponding RealizedFlow is passed via command
- *         parameters and unmarshalled with the oxmBean which is injected by
- *         Spring.
- * 
- *         Note thet passing an index of -1 will cause the reset of the View
- *         (used among others when removing processes from the batch).
- */
-
-public class EditRealizedFlowDetailsHandler extends AbstractHandler {
-
-       // IoC
-       private OxmInterface oxmBean;
-
-       public Object execute(ExecutionEvent event) throws ExecutionException {
-               // We pass Realized flow through command parameters as XML
-               String rfAsXml = event
-                               .getParameter("org.argeo.slc.client.commands.realizedFlowAsXml");
-               int index = new Integer(
-                               event.getParameter("org.argeo.slc.client.commands.realizedFlowIndex"))
-                               .intValue();
-               try {
-                       ProcessParametersView ppView = (ProcessParametersView) HandlerUtil
-                                       .getActiveWorkbenchWindow(event).getActivePage()
-                                       .showView(ProcessParametersView.ID);
-
-                       if (index == -1)
-                               ppView.setRealizedFlow(-1, null);
-                       else {
-                               RealizedFlow rf = (RealizedFlow) oxmBean.unmarshal(rfAsXml);
-                               ppView.setRealizedFlow(index, rf);
-
-                       }
-               } catch (Exception e) {
-                       e.printStackTrace();
-               }
-               return null;
-       }
-
-       // IoC
-       public void setOxmBean(OxmInterface oxmBean) {
-               this.oxmBean = oxmBean;
-       }
-
-}
index bb533cb766fba566e4cd4308232361c50bab05bb..f50ea1814802d6fb449b57b386042bb555029209 100644 (file)
@@ -11,28 +11,34 @@ public class SlcExecution implements IPerspectiveFactory {
                layout.setEditorAreaVisible(false);
                layout.setFixed(false);
 
-               IFolderLayout topLeft = layout.createFolder("topLeft",
-                               IPageLayout.LEFT, 0.7f, editorArea);
-               topLeft.addView("org.argeo.slc.client.ui.executionModulesView");
+               // Create the main ui layout
+
+               // For a vertical split, the part on top gets the specified ratio of the
+               // current space and the part on bottom gets the rest. Likewise, for a
+               // horizontal split, the part at left gets the specified ratio of the
+               // current space.
+               IFolderLayout main = layout.createFolder("main", IPageLayout.RIGHT,
+                               0.3f, editorArea);
+               IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT,
+                               0.3f, editorArea);
+
+               IFolderLayout bottom = layout.createFolder("bottom",
+                               IPageLayout.BOTTOM, 0.65f, "main");
 
                IFolderLayout topRight = layout.createFolder("topRight",
-                               IPageLayout.RIGHT, 0.3f, editorArea);
-               topRight.addView("org.argeo.slc.client.ui.resultListView");
-               topRight.addPlaceholder("org.argeo.slc.client.ui.resultDetailView:UUID-*");
-
-               IFolderLayout bottomRight = layout.createFolder("bottomRight",
-                               IPageLayout.BOTTOM, 0.6f, "topRight");
-               bottomRight.addView("org.argeo.slc.client.ui.processListView");
-               bottomRight
-                               .addPlaceholder("org.argeo.slc.client.ui.processDetailView:UUID-*");
-
-               IFolderLayout bottomLeft = layout.createFolder("bottomLeft",
-                               IPageLayout.BOTTOM, 0.6f, "topLeft");
-               bottomLeft.addView("org.argeo.slc.client.ui.processBuilderView");
-               IFolderLayout paramsEditor = layout.createFolder("paramsEditor",
-                               IPageLayout.RIGHT, 0.6f, "bottomLeft");
-               paramsEditor.addView("org.argeo.slc.client.ui.processParametersView");
+                               IPageLayout.RIGHT, 0.6f, "main");
+
+               // add the views to the corresponding place holder
+               left.addView("org.argeo.slc.client.ui.executionModulesView");
+               left.addView("org.argeo.slc.client.ui.resultListView");
+
+               main.addView("org.argeo.slc.client.ui.processBuilderView");
+               main.addPlaceholder("org.argeo.slc.client.ui.resultDetailView:UUID-*");
+               main.addPlaceholder("org.argeo.slc.client.ui.processDetailView:UUID-*");
+
+               bottom.addView("org.argeo.slc.client.ui.processListView");
 
+               topRight.addView("org.argeo.slc.client.ui.processParametersView");
        }
 
 }
index 847463e83a9dbf4951725430dca6a7ea42ec7d93..7ca534e0f54ab8c4a85bc373b397bc8c14c1e2ba 100644 (file)
@@ -11,17 +11,19 @@ import org.eclipse.jface.viewers.TextCellEditor;
 
 /**
  * 
- * @author bsinou
  * 
- *         This class implements the ability to edit and save various type of
+ *         Implements the ability to edit and save various type of
  *         parameter of a given process. Parameter values are directly saved as
  *         soon as the focus on a given field is lost.
  * 
  * 
- *         Note that this EditingSupport is tightly coupled with both
+ *         Note that EditingSupport is tightly coupled with both
  *         ProcessParametersView and ProcessBuilderView; it cannot serve as a
  *         generic EditingSupport as is. Note also that it assumes that the
  *         processes in ProcessBuilderView as stored as an ordered list.
+ @author bsinou
+ * 
  */
 
 public class ProcessParametersEditingSupport extends EditingSupport {
index e0e5aec1696732eab0691038ee062fa9199aa2ce..5d62983f96ac2167859920dafcc94b3b463a2b27 100644 (file)
@@ -17,10 +17,6 @@ import org.argeo.slc.client.ui.controllers.ProcessController;
 import org.argeo.slc.process.RealizedFlow;
 import org.argeo.slc.process.SlcExecution;
 import org.argeo.slc.runtime.SlcAgent;
-import org.eclipse.core.commands.Command;
-import org.eclipse.core.commands.IParameter;
-import org.eclipse.core.commands.Parameterization;
-import org.eclipse.core.commands.ParameterizedCommand;
 import org.eclipse.jface.viewers.ISelectionChangedListener;
 import org.eclipse.jface.viewers.IStructuredContentProvider;
 import org.eclipse.jface.viewers.IStructuredSelection;
@@ -40,10 +36,7 @@ import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Table;
 import org.eclipse.swt.widgets.TableColumn;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.commands.ICommandService;
-import org.eclipse.ui.handlers.IHandlerService;
+import org.eclipse.ui.PartInitException;
 import org.eclipse.ui.part.ViewPart;
 
 /**
@@ -145,7 +138,7 @@ public class ProcessBuilderView extends ViewPart {
                // we clear the list
                realizedFlows = new ArrayList<RealizedFlow>();
                curSelectedRow = -1;
-               refreshParameterview(null);
+               refreshParameterview();
                viewer.refresh();
        }
 
@@ -156,56 +149,30 @@ public class ProcessBuilderView extends ViewPart {
                else
                        realizedFlows.remove(curSelectedRow);
                curSelectedRow = -1;
-               refreshParameterview(null);
+               refreshParameterview();
                viewer.refresh();
        }
 
        // calling this method with index =-1 will cause the reset of the view.
-       private void refreshParameterview(RealizedFlow rf) {
-               IWorkbench iw = ClientUiPlugin.getDefault().getWorkbench();
-               IHandlerService handlerService = (IHandlerService) iw
-                               .getService(IHandlerService.class);
+       private void refreshParameterview() {
+               // We choose to directly access the view rather than going through
+               // commands.
+               ProcessParametersView ppView;
                try {
-                       // get the command from plugin.xml
-                       IWorkbenchWindow window = iw.getActiveWorkbenchWindow();
-                       ICommandService cmdService = (ICommandService) window
-                                       .getService(ICommandService.class);
-                       Command cmd = cmdService.getCommand(EDIT_CMD);
-
-                       ArrayList<Parameterization> parameters = new ArrayList<Parameterization>();
-
-                       IParameter iparam;
-                       Parameterization params;
-
-                       // The current index to be able to records changes on
-                       // parameters
-                       iparam = cmd.getParameter(INDEX_PARAM);
-                       params = new Parameterization(iparam,
-                                       (new Integer(curSelectedRow)).toString());
-                       parameters.add(params);
-
-                       if (curSelectedRow != -1) {
-                               // The current Realized flow marshalled as XML
-                               String result = oxmBean.marshal(rf);
-                               iparam = cmd.getParameter(FLOWASXML_PARAM);
-                               params = new Parameterization(iparam, result);
-                               parameters.add(params);
-                       }
-                       // build the parameterized command
-                       ParameterizedCommand pc = new ParameterizedCommand(cmd,
-                                       parameters.toArray(new Parameterization[parameters.size()]));
-
-                       // execute the command
-                       handlerService = (IHandlerService) window
-                                       .getService(IHandlerService.class);
-                       handlerService.executeCommand(pc, null);
-
-               } catch (Exception e) {
-                       e.printStackTrace();
-                       throw new SlcException("Problem while rendering result. "
-                                       + e.getMessage());
+                       ppView = (ProcessParametersView) ClientUiPlugin.getDefault()
+                                       .getWorkbench().getActiveWorkbenchWindow().getActivePage()
+                                       .showView(ProcessParametersView.ID);
+
+                       if (curSelectedRow == -1)
+                               ppView.setRealizedFlow(-1, null);
+                       else
+                               ppView.setRealizedFlow(curSelectedRow,
+                                               realizedFlows.get(curSelectedRow));
+               } catch (PartInitException e) {
+                       throw new SlcException(
+                                       "Cannot Retrieve ProcessParameterView to edit parameters of selected process",
+                                       e);
                }
-
        }
 
        // Return the list of the processes to execute.
@@ -274,7 +241,7 @@ public class ProcessBuilderView extends ViewPart {
                        if (obj instanceof RealizedFlow) {
                                RealizedFlow rf = (RealizedFlow) obj;
                                curSelectedRow = realizedFlows.indexOf(rf);
-                               refreshParameterview(rf);
+                               refreshParameterview();
                        }
                }
        }
@@ -320,7 +287,8 @@ public class ProcessBuilderView extends ViewPart {
                                return false;
                        RealizedFlow rf = (RealizedFlow) oxmBean.unmarshal(fdXml);
                        realizedFlows.add(rf);
-
+                       curSelectedRow = realizedFlows.indexOf(rf);
+                       refreshParameterview();
                        getViewer().refresh();
                        return true;
                }