[overlord-commits] Overlord SVN: r936 - in bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console: client and 4 other directories.

overlord-commits at lists.jboss.org overlord-commits at lists.jboss.org
Tue Jan 26 09:31:14 EST 2010


Author: heiko.braun at jboss.com
Date: 2010-01-26 09:31:13 -0500 (Tue, 26 Jan 2010)
New Revision: 936

Removed:
   bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditor.java
   bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditorNavigation.java
   bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/engine/EngineEditor.java
   bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/engine/EngineEditorModule.java
   bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/engine/EngineEditorNavigation.java
   bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditor.java
   bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditorModule.java
   bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditorNavigation.java
   bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/report/ReportEditor.java
   bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/report/ReportEditorModule.java
   bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/report/ReportEditorNavigation.java
   bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditor.java
   bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditorModule.java
   bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditorNavigation.java
Modified:
   bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/Application.gwt.xml
   bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/ApplicationContext.java
   bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/BootstrapAction.java
   bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/ErraiApplication.java
   bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/PreferencesView.java
   bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/ServerStatusView.java
   bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/engine/ViewDeploymentAction.java
Log:
Remove legacy code

Modified: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/Application.gwt.xml
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/Application.gwt.xml	2010-01-26 13:42:23 UTC (rev 935)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/Application.gwt.xml	2010-01-26 14:31:13 UTC (rev 936)
@@ -52,8 +52,8 @@
 
     <set-property name="log_ConsoleLogger" value="ENABLED" />
     <set-property name="log_DivLogger" value="DISABLED" />
-    <set-property name="log_GWTLogger" value="DISABLED" />
-    <set-property name="log_SystemLogger" value="DISABLED" />
+    <set-property name="log_GWTLogger" value="ENABLED" />
+    <set-property name="log_SystemLogger" value="ENABLED" />
 
     <!-- Loggers Disabled by default -->
     <set-property name="log_FirebugLogger" value="DISABLED" />

Modified: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/ApplicationContext.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/ApplicationContext.java	2010-01-26 13:42:23 UTC (rev 935)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/ApplicationContext.java	2010-01-26 14:31:13 UTC (rev 936)
@@ -21,8 +21,6 @@
  */
 package org.jboss.bpm.console.client;
 
-import org.gwt.mosaic.ui.client.Viewport;
-
 /**
  * Provides context information to console components and plugins.
  * 
@@ -30,7 +28,6 @@
  */
 public interface ApplicationContext
 {
-  Workspace getWorkpace();
   
   void displayMessage(String message, boolean isError);
 

Modified: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/BootstrapAction.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/BootstrapAction.java	2010-01-26 13:42:23 UTC (rev 935)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/BootstrapAction.java	2010-01-26 14:31:13 UTC (rev 936)
@@ -29,6 +29,7 @@
 import org.jboss.bpm.console.client.common.AbstractRESTAction;
 import org.jboss.bpm.console.client.model.JSOParser;
 import org.jboss.bpm.console.client.model.ServerStatus;
+import org.jboss.bpm.console.client.util.ConsoleLog;
 import org.jboss.errai.workspaces.client.Registry;
 
 /**
@@ -81,9 +82,10 @@
                   Preferences.get(Preferences.BPM_DEFAULT_TOOL) :
                   appContext.getConfig().getDefaultEditor();
 
-              Workspace workspace = appContext.getWorkpace();
+              /*Workspace workspace = appContext.getWorkpace();
               if(workspace.hasEditor(defaultEditorID))
-                workspace.showEditor(defaultEditorID);
+                workspace.showEditor(defaultEditorID);*/
+              ConsoleLog.warn("Preferences ignored!");
             }
           }
       );

Modified: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/ErraiApplication.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/ErraiApplication.java	2010-01-26 13:42:23 UTC (rev 935)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/ErraiApplication.java	2010-01-26 14:31:13 UTC (rev 936)
@@ -28,7 +28,6 @@
 import com.google.gwt.user.client.DeferredCommand;
 import com.mvc4g.client.Controller;
 import com.mvc4g.client.Event;
-import org.gwt.mosaic.ui.client.MessageBox;
 import org.jboss.bpm.console.client.engine.UpdateDeploymentsAction;
 import org.jboss.bpm.console.client.engine.ViewDeploymentAction;
 import org.jboss.bpm.console.client.process.UpdateDefinitionsAction;
@@ -76,14 +75,8 @@
     // ------
 
     ApplicationContext appContext = new ApplicationContext()
-    {
+    {      
       @Override
-      public Workspace getWorkpace()
-      {
-        throw new RuntimeException("Not implemented!");
-      }
-
-      @Override
       public void displayMessage(String message, boolean isError)
       {
         throw new RuntimeException("Not implemented!");
@@ -115,7 +108,14 @@
     registerGlobalViewsAndActions(mainController);
 
     mainController.addAction("login", new LoginAction());
+    mainController.addAction(BootstrapAction.ID, new BootstrapAction());
     mainController.addView("loginView", new LoginView());
+
+    // bootstrap and login
+    mainController.handleEvent(
+        new com.mvc4g.client.Event(BootstrapAction.ID, Boolean.TRUE)
+    );
+        
     mainController.handleEvent(new Event("login", null));    
   }
 

Modified: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/PreferencesView.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/PreferencesView.java	2010-01-26 13:42:23 UTC (rev 935)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/PreferencesView.java	2010-01-26 14:31:13 UTC (rev 936)
@@ -25,6 +25,7 @@
 import com.google.gwt.event.dom.client.ClickHandler;
 import com.google.gwt.user.client.ui.HTML;
 import com.google.gwt.user.client.ui.ListBox;
+import com.google.gwt.user.client.ui.Widget;
 import com.mvc4g.client.Controller;
 import com.mvc4g.client.ViewInterface;
 import org.gwt.mosaic.ui.client.layout.BoxLayout;
@@ -32,71 +33,82 @@
 import org.gwt.mosaic.ui.client.layout.GridLayout;
 import org.gwt.mosaic.ui.client.layout.MosaicPanel;
 import org.jboss.bpm.console.client.common.HeaderLabel;
+import org.jboss.errai.common.client.framework.WSComponent;
 import org.jboss.errai.workspaces.client.Registry;
+import org.jboss.errai.workspaces.client.framework.ToolSet;
+import org.jboss.errai.workspaces.client.framework.annotations.LoadTool;
 
 import java.util.List;
 
 /**
  * @author Heiko.Braun <heiko.braun at jboss.com>
  */
-public class PreferencesView extends MosaicPanel implements ViewInterface
+ at LoadTool(name = "Preferences", group = "Settings")
+public class PreferencesView implements ViewInterface, WSComponent
 {
 
   public final static String ID = PreferencesView.class.getName();
 
   private Controller controller;
 
-  private ApplicationContext appContext;  
+  private ApplicationContext appContext;
 
+  MosaicPanel panel;
+
   public void setController(Controller controller)
   {
     this.controller = controller;
   }
 
-  public PreferencesView()
+  @Override
+  public Widget getWidget()
   {
-    super(new BoxLayout(BoxLayout.Orientation.VERTICAL));
+    panel = new MosaicPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
 
     this.appContext = Registry.get(ApplicationContext.class);
-    this.add(new HeaderLabel("User Preferences"), new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
+    panel.add(new HeaderLabel("User Preferences"), new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
 
     MosaicPanel layout = new MosaicPanel(new GridLayout(2,1));
     layout.add(
         new HTML("<b>Default Tool</b><br>" +
-        "Select the tool that should be loaded upon login.")
+            "Select the tool that should be loaded upon login.")
     );
 
-    final List<Workspace.EditorRef> editors = appContext.getWorkpace().getEditors();
+    final List<ToolSet> toolsets =
+        org.jboss.errai.workspaces.client.Workspace.getInstance().getToolsets();
     final ListBox multiBox = new ListBox();
     multiBox.setVisibleItemCount(5);
     layout.add(multiBox);
 
     // init
-    String prefEditor = Preferences.get(Preferences.BPM_DEFAULT_TOOL);    
-    for(Workspace.EditorRef ref : editors)
+    String prefEditor = Preferences.get(Preferences.BPM_DEFAULT_TOOL);
+    for(ToolSet ts : toolsets)
     {
-      multiBox.addItem(ref.title);
-      if(ref.id.equals(prefEditor))
+      multiBox.addItem(ts.getToolSetName());
+      if(ts.getToolSetName().equals(prefEditor))
         multiBox.setItemSelected(multiBox.getItemCount()-1, true);
     }
 
     multiBox.addClickHandler(
         new ClickHandler()
         {
-          public void onClick(ClickEvent clickEvent)          
+          public void onClick(ClickEvent clickEvent)
           {
             String title = multiBox.getItemText(multiBox.getSelectedIndex());
-            for(Workspace.EditorRef ref : editors)
+            for(ToolSet ts: toolsets)
             {
-              if(ref.title.equals(title))
-              {                
-                Preferences.set(Preferences.BPM_DEFAULT_TOOL, ref.id);
+              if(ts.getToolSetName().equals(title))
+              {
+                Preferences.set(Preferences.BPM_DEFAULT_TOOL, ts.getToolSetName());
               }
             }
           }
         }
     );
 
-    this.add(layout, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
+    panel.add(layout, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
+
+    return panel;
   }
+
 }

Modified: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/ServerStatusView.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/ServerStatusView.java	2010-01-26 13:42:23 UTC (rev 935)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/ServerStatusView.java	2010-01-26 14:31:13 UTC (rev 936)
@@ -21,19 +21,26 @@
  */
 package org.jboss.bpm.console.client;
 
-import com.google.gwt.user.client.ui.Grid;
-import com.google.gwt.user.client.ui.Image;
+import com.google.gwt.user.client.ui.*;
 import com.mvc4g.client.Controller;
 import com.mvc4g.client.ViewInterface;
+import org.gwt.mosaic.ui.client.layout.BoxLayout;
+import org.gwt.mosaic.ui.client.layout.BoxLayoutData;
+import org.gwt.mosaic.ui.client.layout.GridLayout;
 import org.gwt.mosaic.ui.client.layout.MosaicPanel;
+import org.jboss.bpm.console.client.common.HeaderLabel;
 import org.jboss.bpm.console.client.model.PluginInfo;
 import org.jboss.bpm.console.client.model.ServerStatus;
+import org.jboss.errai.common.client.framework.WSComponent;
+import org.jboss.errai.workspaces.client.Registry;
+import org.jboss.errai.workspaces.client.framework.annotations.LoadTool;
 
 /**
  * @author Heiko.Braun <heiko.braun at jboss.com>
  */
-public class ServerStatusView extends MosaicPanel
-    implements ViewInterface, LazyPanel
+ at LoadTool(name = "System", group = "Settings")
+public class ServerStatusView
+    implements ViewInterface, LazyPanel, WSComponent
 {
 
   public final static String ID = ServerStatusView.class.getName();
@@ -44,13 +51,53 @@
 
   private boolean initialized;
 
-  public ServerStatusView(ApplicationContext appContext)
+  MosaicPanel layoutPanel;
+  MosaicPanel pluginPanel;
+
+  public ServerStatusView()
   {
-    super();
-    setPadding(0);
-    this.appContext = appContext;
+    appContext = Registry.get(ApplicationContext.class);
+    controller = Registry.get(Controller.class);
   }
 
+  @Override
+  public Widget getWidget()
+  {
+    layoutPanel = new MosaicPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
+
+    // console info
+    HeaderLabel console = new HeaderLabel("Console Info");
+    layoutPanel.add(console, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
+
+    MosaicPanel layout1 = new MosaicPanel(new GridLayout(2,1));
+    layout1.add(new HTML("Version:"));
+    layout1.add(new HTML(Version.VERSION));
+
+    layoutPanel.add(layout1, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
+
+    // server info
+    HeaderLabel server = new HeaderLabel("Server Info");
+    layoutPanel.add(server, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
+
+    MosaicPanel layout2 = new MosaicPanel(new GridLayout(2,2));
+    layout2.add(new HTML("Host:"));
+    layout2.add(new HTML(Registry.get(ApplicationContext.class).getConfig().getConsoleServerUrl()));
+
+    pluginPanel = new MosaicPanel();
+    layout2.add(new Label("Plugins:"));
+    layout2.add(pluginPanel);
+
+    layoutPanel.add(layout2, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
+
+    // ---
+
+    controller.addView(ServerStatusView.ID, this);
+
+    update(ServerPlugins.getStatus());
+
+    return layoutPanel;
+  }
+
   public void setController(Controller controller)
   {
     this.controller = controller;
@@ -66,18 +113,18 @@
   {
     if(!initialized)
     {
-      update(ServerPlugins.getStatus());      
+      update(ServerPlugins.getStatus());
       initialized = true;
     }
   }
 
   private void update(ServerStatus status)
   {
-    this.clear();
+    pluginPanel.clear();
 
     Grid g = new Grid(status.getPlugins().size(), 2);
-    g.setWidth("100%");    
-    
+    g.setWidth("100%");
+
     for (int row = 0; row < status.getPlugins().size(); ++row)
     {
       PluginInfo p = status.getPlugins().get(row);
@@ -86,18 +133,18 @@
       );
 
       g.setText(row, 0, type);
-      
+
       final Image img = p.isAvailable() ?
           new Image("images/icons/confirm_small.png"):
           new Image("images/icons/deny_small.png");
-      
+
       g.setWidget(row, 1, img );
     }
 
-    this.add(g);
-    
-    invalidate();
-    
+    pluginPanel.add(g);
+
+    pluginPanel.layout();
+
   }
 
 }

Deleted: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditor.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditor.java	2010-01-26 13:42:23 UTC (rev 935)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditor.java	2010-01-26 14:31:13 UTC (rev 936)
@@ -1,153 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.console.client;
-
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.user.client.ui.AbstractImagePrototype;
-import com.google.gwt.user.client.ui.HTML;
-import com.google.gwt.user.client.ui.Label;
-import org.gwt.mosaic.ui.client.DeckLayoutPanel;
-import org.gwt.mosaic.ui.client.DecoratedTabLayoutPanel;
-import org.gwt.mosaic.ui.client.TabLayoutPanel;
-import org.gwt.mosaic.ui.client.layout.BoxLayout;
-import org.gwt.mosaic.ui.client.layout.BoxLayoutData;
-import org.gwt.mosaic.ui.client.layout.GridLayout;
-import org.gwt.mosaic.ui.client.layout.MosaicPanel;
-import org.jboss.bpm.console.client.common.HeaderLabel;
-import org.jboss.bpm.console.client.icons.ConsoleIconBundle;
-import org.jboss.errai.workspaces.client.Registry;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
-public class SettingsEditor extends Editor
-{
-
-  public final static String ID = SettingsEditor.class.getName();
-
-  private TabLayoutPanel tabPanel;
-
-  private DeckLayoutPanel deck;
-
-  public void initialize()
-  {
-    if(!isInitialized())
-    {
-
-      tabPanel = new DecoratedTabLayoutPanel();
-      tabPanel.setPadding(5);
-
-      deck = new DeckLayoutPanel();
-
-      deck.add( createSystemPanel());
-      deck.add( createPrefPanel());
-
-      tabPanel.add(deck, "Settings");
-
-      this.add(tabPanel);
-
-      Registry.get(ApplicationContext.class).refreshView();
-      
-      isInitialized = true;
-    }
-
-  }
-
-  public void showView(String viewId)
-  {
-    if(viewId==null || viewId.equals("system"))
-      deck.showWidget(0);
-    else if(viewId.equals("preferences"))
-      deck.showWidget(1);
-    else
-      throw new IllegalArgumentException("Unknown viewId: "+viewId);
-
-    layout();
-  }
-
-  private MosaicPanel createPrefPanel()
-  {
-    PreferencesView prefView = new PreferencesView();
-    controller.addView(PreferencesView.ID, prefView);
-    
-    return prefView;
-  }
-
-  private MosaicPanel createSystemPanel()
-  {
-
-    MosaicPanel layoutPanel = new MosaicPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
-
-    // console info
-    HeaderLabel console = new HeaderLabel("Console Info");
-    layoutPanel.add(console, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
-
-    MosaicPanel layout1 = new MosaicPanel(new GridLayout(2,1));
-    layout1.add(new HTML("Version:"));
-    layout1.add(new HTML(Version.VERSION));
-    
-    layoutPanel.add(layout1, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
-
-    // server info
-    HeaderLabel server = new HeaderLabel("Server Info");
-    layoutPanel.add(server, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
-
-    ServerStatusView serverStatus = new ServerStatusView(Registry.get(ApplicationContext.class));
-    serverStatus.initialize();
-
-    MosaicPanel layout2 = new MosaicPanel(new GridLayout(2,2));
-    layout2.add(new HTML("Host:"));
-    layout2.add(new HTML(Registry.get(ApplicationContext.class).getConfig().getConsoleServerUrl()));
-
-    layout2.add(new Label("Plugins:"));
-    layout2.add(serverStatus);
-
-    layoutPanel.add(layout2, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
-
-    // view and actions
-    super.controller.addView(ServerStatusView.ID, serverStatus);
-
-    return layoutPanel;
-  }
-
-  public String getEditorId()
-  {
-    return ID;
-  }
-
-  public String getTitle()
-  {
-    return "Settings";
-  }
-
-  public MenuSection provideMenuSection()
-  {
-    ConsoleIconBundle icons = GWT.create(ConsoleIconBundle.class);
-
-    return new MenuSection(
-        getTitle(),
-        AbstractImagePrototype.create(icons.settingsIcon()),
-        new SettingsEditorNavigation(Registry.get(ApplicationContext.class))
-    );
-
-  }
-}

Deleted: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditorNavigation.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditorNavigation.java	2010-01-26 13:42:23 UTC (rev 935)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditorNavigation.java	2010-01-26 14:31:13 UTC (rev 936)
@@ -1,66 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.console.client;
-
-import com.google.gwt.user.client.ui.Tree;
-import com.google.gwt.user.client.ui.TreeItem;
-import com.google.gwt.user.client.ui.TreeListener;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
-class SettingsEditorNavigation extends Tree
-{
-
-  public SettingsEditorNavigation(final ApplicationContext appContext)
-  {
-    super.setTitle("Settings");
-
-    TreeItem prefs = addItem("Preferences");   
-
-    TreeItem root = addItem("System");
-    
-    addTreeListener(
-        new TreeListener()
-        {
-          public void onTreeItemSelected(TreeItem treeItem)
-          {
-            if("System".equals(treeItem.getText()))
-            {
-              Workspace workspace = appContext.getWorkpace();
-              workspace.showEditor(SettingsEditor.ID, "system");
-            }
-            else if("Preferences".equals(treeItem.getText()))
-            {
-              Workspace workspace = appContext.getWorkpace();
-              workspace.showEditor(SettingsEditor.ID, "preferences");
-            }
-          }
-
-          public void onTreeItemStateChanged(TreeItem treeItem)
-          {
-
-          }
-        }
-    );
-  }
-}

Deleted: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/engine/EngineEditor.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/engine/EngineEditor.java	2010-01-26 13:42:23 UTC (rev 935)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/engine/EngineEditor.java	2010-01-26 14:31:13 UTC (rev 936)
@@ -1,96 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.console.client.engine;
-
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.user.client.ui.AbstractImagePrototype;
-import org.gwt.mosaic.ui.client.MessageBox;
-import org.gwt.mosaic.ui.client.TabLayoutPanel;
-import org.jboss.bpm.console.client.ApplicationContext;
-import org.jboss.bpm.console.client.Editor;
-import org.jboss.bpm.console.client.MenuSection;
-import org.jboss.bpm.console.client.icons.ConsoleIconBundle;
-import org.jboss.errai.workspaces.client.EditorWidget;
-import org.jboss.errai.workspaces.client.EditorWidgetClient;
-import org.jboss.errai.workspaces.client.Registry;
-
-/**
- * Manage runtime aspects of a process engine
- * (currently jbpm only).
- *
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
- at Deprecated
-public class EngineEditor extends Editor
-{
-  public final static String ID = EngineEditor.class.getName();
-
-  private TabLayoutPanel tabPanel;
-
-  //private Map<String,Integer> view2index = new HashMap<String,Integer>();
-
-  public void initialize()
-  {
-    if(!isInitialized)
-    {
-      EngineEditorModule.createAsync(
-          new EditorWidgetClient()
-          {
-            public void onSuccess(EditorWidget editorWidget)
-            {
-              tabPanel = (TabLayoutPanel)editorWidget.build();
-              EngineEditor.this.add(tabPanel);
-              editorWidget.loadData();
-              Registry.get(ApplicationContext.class).refreshView();
-              isInitialized = true;
-            }
-
-            public void onUnavailable()
-            {
-              MessageBox.error("Error", "Failed to load module "+ID);
-            }
-          }
-      );
-    }
-  }
-
-  public String getEditorId()
-  {
-    return ID;
-  }
-
-  public String getTitle()
-  {
-    return "Runtime";
-  }
-
-  public MenuSection provideMenuSection()
-  {
-    ConsoleIconBundle icons = GWT.create(ConsoleIconBundle.class);
-
-    return new MenuSection(
-        getTitle(),
-        AbstractImagePrototype.create(icons.runtimeIcon()),
-        new EngineEditorNavigation(Registry.get(ApplicationContext.class))
-    );
-  }
-}

Deleted: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/engine/EngineEditorModule.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/engine/EngineEditorModule.java	2010-01-26 13:42:23 UTC (rev 935)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/engine/EngineEditorModule.java	2010-01-26 14:31:13 UTC (rev 936)
@@ -1,161 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.console.client.engine;
-
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.core.client.RunAsyncCallback;
-import com.google.gwt.user.client.Timer;
-import com.google.gwt.user.client.ui.SourcesTabEvents;
-import com.google.gwt.user.client.ui.TabListener;
-import com.google.gwt.user.client.ui.Widget;
-import com.mvc4g.client.Controller;
-import com.mvc4g.client.Event;
-import org.gwt.mosaic.ui.client.DecoratedTabLayoutPanel;
-import org.gwt.mosaic.ui.client.TabLayoutPanel;
-import org.jboss.bpm.console.client.ApplicationContext;
-import org.jboss.bpm.console.client.LazyPanel;
-import org.jboss.bpm.console.client.common.AbstractView;
-import org.jboss.errai.workspaces.client.EditorWidget;
-import org.jboss.errai.workspaces.client.EditorWidgetClient;
-import org.jboss.errai.workspaces.client.Registry;
-
- at Deprecated
-public class EngineEditorModule
-{
-
-  private static TabLayoutPanel tabPanel;
-
-  //private Map<String,Integer> view2index = new HashMap<String,Integer>();
-
-  public static void createAsync(
-      final EditorWidgetClient client)
-  {
-    GWT.runAsync(new RunAsyncCallback() {
-      public void onFailure(Throwable err) {
-        client.onUnavailable();
-      }
-
-      public void onSuccess() {
-
-        final Controller controller = Registry.get(Controller.class);
-
-        if (tabPanel == null)
-          tabPanel = createTabPanel(controller);
-        
-        client.onSuccess(
-            new EditorWidget()
-            {
-              public Widget build()
-              {
-                return tabPanel;
-              }
-
-              public void loadData()
-              {
-                Timer t = new Timer()
-                {
-                  @Override
-                  public void run()
-                  {
-                    controller.handleEvent(
-                        new Event(UpdateDeploymentsAction.ID, null)
-                    );
-                  }
-                };
-
-                t.schedule(50);
-              }
-            }
-        );
-      }
-    });
-  }
-
-  private static TabLayoutPanel createTabPanel(final Controller controller)
-  {
-
-    final ApplicationContext appContext = Registry.get(ApplicationContext.class);
-
-    // create inner tab layout
-    final TabLayoutPanel tabPanel = new DecoratedTabLayoutPanel();
-    tabPanel.setPadding(5);
-
-    tabPanel.addTabListener(
-        new TabListener()
-        {
-          public boolean onBeforeTabSelected(SourcesTabEvents sourcesTabEvents, int i)
-          {
-            boolean showTab = true;
-            return showTab;
-          }
-
-          public void onTabSelected(SourcesTabEvents sourcesTabEvents, int i)
-          {
-            LazyPanel lazyPanel = (LazyPanel) tabPanel.getWidget(i);
-            if(!lazyPanel.isInitialized())
-            {
-              lazyPanel.initialize();
-              appContext.refreshView(); // TODO: hack around rendering problems
-            }
-
-            // load jobs
-            if(1==i)
-            {
-              controller.handleEvent(
-                  new Event(UpdateJobsAction.ID, null)
-              );
-            }
-          }
-        }
-    );
-
-    // create and register views
-    //registerView(controller, tabPanel, DeploymentListView.ID, new DeploymentListView());
-    //registerView(controller, tabPanel, JobListView.ID, new JobListView(appContext));
-
-    // create and register actions
-    controller.addAction(UpdateDeploymentsAction.ID, new UpdateDeploymentsAction());
-    controller.addAction(UpdateDeploymentDetailAction.ID, new UpdateDeploymentDetailAction());
-    controller.addAction(DeleteDeploymentAction.ID, new DeleteDeploymentAction());
-    controller.addAction(SuspendDeploymentAction.ID, new SuspendDeploymentAction());
-    controller.addAction(ResumeDeploymentAction.ID, new ResumeDeploymentAction());
-    controller.addAction(ExecuteJobAction.ID, new ExecuteJobAction());
-
-    // display tab, needs to visible for correct rendering
-    //tabPanel.selectTab( view2index.get(DeploymentListView.ID ));
-
-    tabPanel.selectTab(0);
-
-    return tabPanel;
-  }
-
-  private static void registerView(Controller controller, TabLayoutPanel tabPanel, String id, AbstractView view)
-  {
-    //view2index.put(id, tabPanel.getWidgetCount());
-
-    // register view with controller
-    controller.addView(id, view);
-
-    // add to tab layout
-    tabPanel.add(view, view.getIconTitle(), true);
-  }
-}

Deleted: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/engine/EngineEditorNavigation.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/engine/EngineEditorNavigation.java	2010-01-26 13:42:23 UTC (rev 935)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/engine/EngineEditorNavigation.java	2010-01-26 14:31:13 UTC (rev 936)
@@ -1,68 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.console.client.engine;
-
-import com.google.gwt.user.client.ui.Tree;
-import com.google.gwt.user.client.ui.TreeItem;
-import com.google.gwt.user.client.ui.TreeListener;
-import org.jboss.bpm.console.client.ApplicationContext;
-import org.jboss.bpm.console.client.Workspace;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
- at Deprecated
-public class EngineEditorNavigation extends Tree
-{
-
-  public EngineEditorNavigation(final ApplicationContext appContext)
-  {
-    super.setTitle("Deployments");
-
-    TreeItem jbpmDeployments = addItem("Deployments");
-    TreeItem jobs = addItem("Jobs");
-
-    addTreeListener(
-        new TreeListener()
-        {
-          public void onTreeItemSelected(TreeItem treeItem)
-          {
-            Workspace workspace = appContext.getWorkpace();
-
-            if("Deployments".equals(treeItem.getText()))
-            {
-              workspace.showEditor(EngineEditor.ID, null);
-            }
-            else if("Jobs".equals(treeItem.getText()))
-            {
-              workspace.showEditor(EngineEditor.ID, null);
-            }
-          }
-
-          public void onTreeItemStateChanged(TreeItem treeItem)
-          {
-
-          }
-        }
-    );
-  }
-}

Modified: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/engine/ViewDeploymentAction.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/engine/ViewDeploymentAction.java	2010-01-26 13:42:23 UTC (rev 935)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/engine/ViewDeploymentAction.java	2010-01-26 14:31:13 UTC (rev 936)
@@ -23,9 +23,7 @@
 
 import com.mvc4g.client.ActionInterface;
 import com.mvc4g.client.Controller;
-import com.mvc4g.client.Event;
 import org.jboss.bpm.console.client.ApplicationContext;
-import org.jboss.bpm.console.client.Workspace;
 import org.jboss.errai.workspaces.client.Registry;
 
 /**
@@ -49,12 +47,13 @@
   {
     String dplId = (String)object;
 
-    Workspace workspace = appContext.getWorkpace();
+    throw new RuntimeException("Not implemented");
+    /*Workspace workspace = appContext.getWorkpace();
     if(workspace.hasEditor(EngineEditor.ID))
       workspace.showEditor(EngineEditor.ID);
 
     controller.handleEvent(
         new Event(UpdateDeploymentsAction.ID, dplId)
-    );
+    );*/
   }
 }

Deleted: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditor.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditor.java	2010-01-26 13:42:23 UTC (rev 935)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditor.java	2010-01-26 14:31:13 UTC (rev 936)
@@ -1,65 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.console.client.process;
-
-import com.google.gwt.user.client.ui.Widget;
-import org.gwt.mosaic.ui.client.MessageBox;
-import org.gwt.mosaic.ui.client.TabLayoutPanel;
-import org.jboss.bpm.console.client.ApplicationContext;
-import org.jboss.errai.common.client.framework.WSComponent;
-import org.jboss.errai.workspaces.client.EditorWidget;
-import org.jboss.errai.workspaces.client.EditorWidgetClient;
-import org.jboss.errai.workspaces.client.Registry;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
- at Deprecated
-public class ProcessEditor implements WSComponent
-{
-  public final static String ID = ProcessEditor.class.getName();
-
-  private static TabLayoutPanel tabPanel;
-
-  public Widget getWidget()
-  {    
-    ProcessEditorModule.createAsync(
-          new EditorWidgetClient()
-          {
-            public void onSuccess(EditorWidget editorWidget)
-            {
-              tabPanel = (TabLayoutPanel)editorWidget.build();
-              editorWidget.loadData();
-              Registry.get(ApplicationContext.class).refreshView();
-            }
-
-            public void onUnavailable()
-            {
-              MessageBox.error("Error", "Failed to load module "+ID);
-            }
-          }
-      );
-
-    return tabPanel;
-  }
-}
-

Deleted: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditorModule.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditorModule.java	2010-01-26 13:42:23 UTC (rev 935)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditorModule.java	2010-01-26 14:31:13 UTC (rev 936)
@@ -1,174 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.console.client.process;
-
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.core.client.RunAsyncCallback;
-import com.google.gwt.user.client.Timer;
-import com.google.gwt.user.client.ui.SourcesTabEvents;
-import com.google.gwt.user.client.ui.TabListener;
-import com.google.gwt.user.client.ui.Widget;
-import com.mvc4g.client.ActionInterface;
-import com.mvc4g.client.Controller;
-import com.mvc4g.client.Event;
-import org.gwt.mosaic.ui.client.DecoratedTabLayoutPanel;
-import org.gwt.mosaic.ui.client.MessageBox;
-import org.gwt.mosaic.ui.client.TabLayoutPanel;
-import org.jboss.bpm.console.client.LazyPanel;
-import org.jboss.bpm.console.client.common.AbstractView;
-import org.jboss.errai.workspaces.client.EditorWidget;
-import org.jboss.errai.workspaces.client.EditorWidgetClient;
-import org.jboss.errai.workspaces.client.Registry;
-
- at Deprecated
-public class ProcessEditorModule
-{
-  // the module instance; instantiate it behind a runAsync
-  private static TabLayoutPanel tabPanel;
-  
-  /**
-   *  Access the module's instance.  The callback
-   *  runs asynchronously, once the necessary
-   *  code has downloaded.
-   */
-  public static void createAsync(
-      final EditorWidgetClient client)
-  {
-    GWT.runAsync(new RunAsyncCallback() {
-      public void onFailure(Throwable err) {
-        client.onUnavailable();
-      }
-
-      public void onSuccess() {
-
-        final Controller controller = Registry.get(Controller.class);
-        
-        if (tabPanel == null) {
-          tabPanel = createTabPanel(controller);
-        }
-        client.onSuccess(
-            new EditorWidget()
-            {
-              public Widget build()
-              {
-                return tabPanel;
-              }
-
-              public void loadData()
-              {
-                Timer t = new Timer()
-                {
-                  @Override
-                  public void run()
-                  {
-                    controller.handleEvent(
-                        new Event(UpdateDefinitionsAction.ID, null)
-                    );
-                  }
-                };
-
-                t.schedule(50);
-              }
-            }
-        );
-      }
-    });
-  }
-
-   public static Widget createSync()
-   {
-     final Controller controller = Registry.get(Controller.class);
-     return createTabPanel(controller);
-   }
-
-  private static TabLayoutPanel createTabPanel(final Controller controller)
-  {
-    // create inner tab layout
-    final TabLayoutPanel tabPanel = new DecoratedTabLayoutPanel();
-    tabPanel.setPadding(5);
-    tabPanel.addTabListener(
-        new TabListener()
-        {
-          public boolean onBeforeTabSelected(SourcesTabEvents sourcesTabEvents, int i)
-          {
-            boolean showTab = true;
-
-            if(i!=0)
-            {
-              DefinitionListView view = ((DefinitionListView) controller.getView(DefinitionListView.ID));
-              boolean hasSelection = view.getSelection() != null;
-              if(!hasSelection)
-              {
-                MessageBox.alert("Missing selection", "Please select a process");
-                showTab=false;
-              }
-            }
-
-            if(showTab)
-            {
-              LazyPanel lazyPanel = (LazyPanel) tabPanel.getWidget(i);
-              lazyPanel.initialize();
-            }
-
-            return showTab;
-          }
-
-          public void onTabSelected(SourcesTabEvents sourcesTabEvents, int i)
-          {
-
-          }
-        }
-    );
-
-    // create and register views
-    //registerView(controller, tabPanel, DefinitionListView.ID, new DefinitionListView());
-    //registerView(controller, tabPanel, InstanceListView.ID, new InstanceListView());
-
-    // create and register actions
-
-    registerAction(controller, UpdateInstancesAction.ID, new UpdateInstancesAction());
-    registerAction(controller, StartNewInstanceAction.ID, new StartNewInstanceAction());
-    registerAction(controller, StateChangeAction.ID, new StateChangeAction());
-    registerAction(controller, DeleteDefinitionAction.ID, new DeleteDefinitionAction());
-    registerAction(controller, DeleteInstanceAction.ID, new DeleteInstanceAction());
-
-    // display tab, needs to visible for correct rendering
-    tabPanel.selectTab(0);
-
-    return tabPanel;
-
-  }
-
-  private static void registerView(Controller controller, TabLayoutPanel tabPanel, String id, AbstractView view)
-  {
-    // register view with controller
-    controller.addView(id, view);
-
-    // add to tab layout
-    tabPanel.add(view, view.getIconTitle(), true);
-  }
-
-  private static void registerAction(Controller controller, String name, ActionInterface action)
-  {
-    controller.addAction(name, action);
-  }
-}

Deleted: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditorNavigation.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditorNavigation.java	2010-01-26 13:42:23 UTC (rev 935)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditorNavigation.java	2010-01-26 14:31:13 UTC (rev 936)
@@ -1,63 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.console.client.process;
-
-import com.google.gwt.user.client.ui.Tree;
-import com.google.gwt.user.client.ui.TreeItem;
-import com.google.gwt.user.client.ui.TreeListener;
-import org.jboss.bpm.console.client.ApplicationContext;
-import org.jboss.bpm.console.client.Workspace;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
- at Deprecated
-class ProcessEditorNavigation extends Tree
-{
-
-  public ProcessEditorNavigation(final ApplicationContext appContext)
-  {    
-    super.setTitle("Processes");
-
-    TreeItem root = addItem("Process Definitions");
-
-
-    addTreeListener(
-        new TreeListener()
-        {
-          public void onTreeItemSelected(TreeItem treeItem)
-          {
-            if("Process Definitions".equals(treeItem.getText()))
-            {
-              Workspace workspace = appContext.getWorkpace();
-              workspace.showEditor(ProcessEditor.ID);
-            }
-          }
-
-          public void onTreeItemStateChanged(TreeItem treeItem)
-          {
-
-          }
-        }
-    );
-  }
-}

Deleted: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/report/ReportEditor.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/report/ReportEditor.java	2010-01-26 13:42:23 UTC (rev 935)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/report/ReportEditor.java	2010-01-26 14:31:13 UTC (rev 936)
@@ -1,138 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.console.client.report;
-
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.user.client.DOM;
-import com.google.gwt.user.client.ui.*;
-import org.gwt.mosaic.ui.client.Caption;
-import org.gwt.mosaic.ui.client.ImageButton;
-import org.gwt.mosaic.ui.client.MessageBox;
-import org.gwt.mosaic.ui.client.TabLayoutPanel;
-import org.jboss.bpm.console.client.ApplicationContext;
-import org.jboss.bpm.console.client.Editor;
-import org.jboss.bpm.console.client.MenuSection;
-import org.jboss.bpm.console.client.icons.ConsoleIconBundle;
-import org.jboss.errai.workspaces.client.EditorWidget;
-import org.jboss.errai.workspaces.client.EditorWidgetClient;
-import org.jboss.errai.workspaces.client.Registry;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
- at Deprecated
-public class ReportEditor extends Editor 
-{
-  public final static String ID = ReportEditor.class.getName();
-
-  private TabLayoutPanel tabPanel;
-
-  public void initialize()
-  {
-    if(!isInitialized())
-    {
-       ReportEditorModule.createAsync(
-          new EditorWidgetClient()
-          {
-            public void onSuccess(EditorWidget editorWidget)
-            {
-              tabPanel = (TabLayoutPanel)editorWidget.build();
-              ReportEditor.this.add(tabPanel);
-              editorWidget.loadData();
-              Registry.get(ApplicationContext.class).refreshView();
-              isInitialized = true;
-            }
-
-            public void onUnavailable()
-            {
-              MessageBox.error("Error", "Failed to load module "+ID);
-            }
-          }
-      );
-    }
-  }
-
-  public String getEditorId()
-  {
-    return ID;
-  }
-
-  public String getTitle()
-  {
-    return "Reporting";
-  }
-
-  public MenuSection provideMenuSection()
-  {
-    ConsoleIconBundle icons = GWT.create(ConsoleIconBundle.class);
-
-    return new MenuSection(
-        getTitle(),
-        AbstractImagePrototype.create(icons.reportIcon()),
-        new ReportEditorNavigation(Registry.get(ApplicationContext.class))
-    );
-  }
-
-  public void displayReport(String title, String dispatchUrl)
-  {
-    boolean match = false;
-    for(int i=1; i<tabPanel.getWidgetCount(); i++)
-    {
-      ReportFrame openTab = (ReportFrame)tabPanel.getWidget(i);
-      if(openTab.getUrl().equals(dispatchUrl))
-      {
-        tabPanel.selectTab(i);
-        match=true;
-        break;
-      }
-    }
-
-    if(!match)
-    {
-      ReportFrame reportFrame = new ReportFrame(dispatchUrl);
-      tabPanel.add(reportFrame, newLabel(reportFrame, title, tabPanel.getWidgetCount()));
-      tabPanel.selectTab(tabPanel.getWidgetCount()-1);
-
-    }
-  }
-
-  private Widget newLabel(final Widget widget, final String string,
-                          final int index) {
-    final HorizontalPanel hPanel = new HorizontalPanel();
-    final HTML label = new HTML(string);
-    DOM.setStyleAttribute(label.getElement(), "whiteSpace", "nowrap");
-    ImageButton closeBtn = new ImageButton(Caption.IMAGES.windowClose());
-    closeBtn.addClickListener(new ClickListener() {
-      public void onClick(Widget sender) {
-        int widgetIndex = tabPanel.getWidgetIndex(widget);
-        if (widgetIndex == tabPanel.getSelectedTab()) {
-          tabPanel.selectTab(widgetIndex - 1);
-        }
-        tabPanel.remove(widgetIndex);
-      }
-    });
-    hPanel.add(label);
-    hPanel.add(new HTML("&nbsp&nbsp&nbsp"));
-    hPanel.add(closeBtn);
-    return hPanel;
-  }
-}

Deleted: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/report/ReportEditorModule.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/report/ReportEditorModule.java	2010-01-26 13:42:23 UTC (rev 935)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/report/ReportEditorModule.java	2010-01-26 14:31:13 UTC (rev 936)
@@ -1,153 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.console.client.report;
-
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.core.client.RunAsyncCallback;
-import com.google.gwt.user.client.Timer;
-import com.google.gwt.user.client.ui.SourcesTabEvents;
-import com.google.gwt.user.client.ui.TabListener;
-import com.google.gwt.user.client.ui.Widget;
-import com.mvc4g.client.Controller;
-import com.mvc4g.client.Event;
-import org.gwt.mosaic.ui.client.DecoratedTabLayoutPanel;
-import org.gwt.mosaic.ui.client.TabLayoutPanel;
-import org.jboss.bpm.console.client.LazyPanel;
-import org.jboss.bpm.console.client.common.AbstractView;
-import org.jboss.errai.workspaces.client.EditorWidget;
-import org.jboss.errai.workspaces.client.EditorWidgetClient;
-import org.jboss.errai.workspaces.client.Registry;
-
- at Deprecated
-public class ReportEditorModule
-{
-  public final static String ID = ReportEditor.class.getName();
-
-  private static TabLayoutPanel tabPanel;
-
-  public static void createAsync(
-      final EditorWidgetClient client)
-  {
-    GWT.runAsync(new RunAsyncCallback() {
-      public void onFailure(Throwable err) {
-        client.onUnavailable();
-      }
-
-      public void onSuccess() {
-
-        final Controller controller = Registry.get(Controller.class);
-
-        if (tabPanel == null)
-          tabPanel = createTabPanel(controller);
-
-        client.onSuccess(
-            new EditorWidget()
-            {
-              public Widget build()
-              {
-                return tabPanel;
-              }
-
-              public void loadData()
-              {
-                Timer t = new Timer()
-                {
-                  @Override
-                  public void run()
-                  {
-                    controller.handleEvent(new Event(UpdateReportConfigAction.ID, null));
-                  }
-                };
-
-                t.schedule(50);
-              }
-            }
-        );
-      }
-    });
-  }
-
-  private static TabLayoutPanel createTabPanel(final Controller controller)
-  {
-    final TabLayoutPanel tabPanel = new DecoratedTabLayoutPanel();
-    tabPanel.setPadding(5);
-    tabPanel.addTabListener(
-        new TabListener()
-        {
-          public boolean onBeforeTabSelected(SourcesTabEvents sourcesTabEvents, int i)
-          {
-            boolean showTab = true;
-
-            if(i!=0)
-            {
-              /*DefinitionListView view = ((DefinitionListView) controller.getView(DefinitionListView.ID));
-             boolean hasSelection = view.getSelection() != null;
-             if(!hasSelection)
-             {
-               MessageBox.alert("Missing selection", "Please select a process");
-               showTab=false;
-             } */
-            }
-
-            return showTab;
-          }
-
-          public void onTabSelected(SourcesTabEvents sourcesTabEvents, int i)
-          {
-            LazyPanel lazyPanel = (LazyPanel) tabPanel.getWidget(i);
-            if(!lazyPanel.isInitialized())
-            {
-              lazyPanel.initialize();
-            }
-          }
-        }
-    );
-
-    // create and register views
-    ReportView view = new ReportView();
-    //registerView(controller, tabPanel, ReportView.ID, view);
-    view.initialize();
-
-    //controller.addView(ID, this);
-
-    // create and register actions
-    controller.addAction(UpdateReportConfigAction.ID, new UpdateReportConfigAction());
-
-    // display tab, needs to visible for correct rendering
-    tabPanel.selectTab(0);
-
-    // load report config
-    controller.handleEvent(new Event(UpdateReportConfigAction.ID, null));
-
-
-    return tabPanel;
-  }
-
-  private static void registerView(Controller controller, TabLayoutPanel tabPanel, String id, AbstractView view)
-  {
-    // register view with controller
-    controller.addView(id, view);
-
-    // add to tab layout
-    tabPanel.add(view, view.getIconTitle(), true);
-  }
-}

Deleted: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/report/ReportEditorNavigation.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/report/ReportEditorNavigation.java	2010-01-26 13:42:23 UTC (rev 935)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/report/ReportEditorNavigation.java	2010-01-26 14:31:13 UTC (rev 936)
@@ -1,61 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.console.client.report;
-
-import com.google.gwt.user.client.ui.Tree;
-import com.google.gwt.user.client.ui.TreeItem;
-import com.google.gwt.user.client.ui.TreeListener;
-import org.jboss.bpm.console.client.ApplicationContext;
-import org.jboss.bpm.console.client.Workspace;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
- at Deprecated
-class ReportEditorNavigation extends Tree
-{
-  public ReportEditorNavigation(final ApplicationContext appContext)
-  {
-    super.setTitle("Reporting");
-
-    TreeItem definitions = addItem("Process History");
-
-    addTreeListener(
-        new TreeListener()
-        {
-          public void onTreeItemSelected(TreeItem treeItem)
-          {
-            if("Process History".equals(treeItem.getText()))
-            {
-              Workspace workspace = appContext.getWorkpace();
-              workspace.showEditor(ReportEditor.ID);
-            }
-          }
-
-          public void onTreeItemStateChanged(TreeItem treeItem)
-          {
-
-          }
-        }
-    );
-  }
-}

Deleted: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditor.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditor.java	2010-01-26 13:42:23 UTC (rev 935)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditor.java	2010-01-26 14:31:13 UTC (rev 936)
@@ -1,103 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.console.client.task;
-
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.user.client.ui.AbstractImagePrototype;
-import org.gwt.mosaic.ui.client.MessageBox;
-import org.gwt.mosaic.ui.client.TabLayoutPanel;
-import org.jboss.bpm.console.client.ApplicationContext;
-import org.jboss.bpm.console.client.Editor;
-import org.jboss.bpm.console.client.MenuSection;
-import org.jboss.bpm.console.client.icons.ConsoleIconBundle;
-import org.jboss.errai.workspaces.client.EditorWidget;
-import org.jboss.errai.workspaces.client.EditorWidgetClient;
-import org.jboss.errai.workspaces.client.Registry;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
- at Deprecated
-public class TaskEditor extends Editor
-{
-  public final static String ID = TaskEditor.class.getName();
-
-  private TabLayoutPanel tabPanel;
-
-  public void initialize()
-  {
-    if(!isInitialized)
-    {
-      TaskEditorModule.createAsync(
-          new EditorWidgetClient()
-          {
-            public void onSuccess(EditorWidget editorWidget)
-            {
-              tabPanel = (TabLayoutPanel)editorWidget.build();
-              TaskEditor.this.add(tabPanel);
-              editorWidget.loadData();
-              Registry.get(ApplicationContext.class).refreshView();
-              isInitialized = true;
-            }
-
-            public void onUnavailable()
-            {
-              MessageBox.error("Error", "Failed to load module "+ID);
-            }
-          }
-      );
-    }
-  }
-
-  public String getEditorId()
-  {
-    return ID;
-  }
-
-  public String getTitle()
-  {
-    return "Tasks";
-  }
-
-  public MenuSection provideMenuSection()
-  {
-    ConsoleIconBundle icons = GWT.create(ConsoleIconBundle.class);
-
-    return new MenuSection(
-        getTitle(),
-        AbstractImagePrototype.create(icons.taskIcon()),
-        new TaskEditorNavigation(Registry.get(ApplicationContext.class))
-    );
-  }
-
-  /*public void showView(String viewId)
-  {
-    if(viewId==null || viewId.equals("group"))
-      tabPanel.selectTab(0);
-    else if(viewId.equals("personal"))
-      tabPanel.selectTab(1);
-    else
-      throw new IllegalArgumentException("Unknown viewId: "+viewId);
-
-    layout();
-  } */
-}

Deleted: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditorModule.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditorModule.java	2010-01-26 13:42:23 UTC (rev 935)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditorModule.java	2010-01-26 14:31:13 UTC (rev 936)
@@ -1,154 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.console.client.task;
-
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.core.client.RunAsyncCallback;
-import com.google.gwt.user.client.Timer;
-import com.google.gwt.user.client.ui.SourcesTabEvents;
-import com.google.gwt.user.client.ui.TabListener;
-import com.google.gwt.user.client.ui.Widget;
-import com.mvc4g.client.Controller;
-import com.mvc4g.client.Event;
-import org.gwt.mosaic.ui.client.DecoratedTabLayoutPanel;
-import org.gwt.mosaic.ui.client.TabLayoutPanel;
-import org.jboss.bpm.console.client.ApplicationContext;
-import org.jboss.bpm.console.client.LazyPanel;
-import org.jboss.bpm.console.client.common.AbstractView;
-import org.jboss.errai.workspaces.client.EditorWidget;
-import org.jboss.errai.workspaces.client.EditorWidgetClient;
-import org.jboss.errai.workspaces.client.Registry;
-
- at Deprecated
-public class TaskEditorModule
-{
-
-  private static TabLayoutPanel tabPanel;
-
-  public static void createAsync(
-      final EditorWidgetClient client)
-  {
-    GWT.runAsync(new RunAsyncCallback() {
-      public void onFailure(Throwable err) {
-        client.onUnavailable();
-      }
-
-      public void onSuccess() {
-
-        final Controller controller = Registry.get(Controller.class);
-
-        if (tabPanel == null)
-          tabPanel = createTabPanel(controller);
-
-        client.onSuccess(
-            new EditorWidget()
-            {
-              public Widget build()
-              {
-                return tabPanel;
-              }
-
-              public void loadData()
-              {
-                Timer t = new Timer()
-                {
-                  @Override
-                  public void run()
-                  {
-                    controller.handleEvent(
-                        new Event(ReloadAllTaskListsAction.ID, null)
-                    );
-                  }
-                };
-
-                t.schedule(50);
-              }
-            }
-        );
-      }
-    });
-  }
-
-  private static TabLayoutPanel createTabPanel(Controller controller)
-  {
-    // create inner tab layout
-    final ApplicationContext appContext= Registry.get(ApplicationContext.class);
-
-    final TabLayoutPanel tabPanel = new DecoratedTabLayoutPanel();
-    tabPanel.setPadding(5);
-    tabPanel.addTabListener(
-        new TabListener()
-        {
-          public boolean onBeforeTabSelected(SourcesTabEvents sourcesTabEvents, int i)
-          {
-            return true;
-          }
-
-          public void onTabSelected(SourcesTabEvents sourcesTabEvents, int i)
-          {
-            LazyPanel lazyPanel = (LazyPanel) tabPanel.getWidget(i);
-            if(!lazyPanel.isInitialized())
-            {
-              lazyPanel.initialize();
-              appContext.refreshView(); // TODO: hack around rendering problems
-            }
-          }
-        }
-    );
-
-    TaskDetailView openDetailView = new TaskDetailView(true);
-    TaskDetailView assignedDetailView = new TaskDetailView(false);
-
-    // create and register views
-    controller.addView("OpenDetailView", openDetailView);
-    controller.addView("AssignedDetailView", assignedDetailView);
-
-    openDetailView.initialize();
-    assignedDetailView.initialize();
-
-    //registerView(controller, tabPanel, OpenTasksView.ID, new OpenTasksView(appContext, openDetailView));
-    //registerView(controller, tabPanel, AssignedTasksView.ID, new AssignedTasksView(appContext, assignedDetailView));
-
-    // create and register actions
-    controller.addAction(LoadTasksAction.ID, new LoadTasksAction());
-    controller.addAction(LoadTasksParticipationAction.ID, new LoadTasksParticipationAction());
-    controller.addAction(ClaimTaskAction.ID, new ClaimTaskAction());
-    controller.addAction(ReleaseTaskAction.ID, new ReleaseTaskAction());
-    controller.addAction(UpdateDetailsAction.ID, new UpdateDetailsAction());
-    controller.addAction(AssignTaskAction.ID, new AssignTaskAction());
-    controller.addAction(ReloadAllTaskListsAction.ID, new ReloadAllTaskListsAction());
-
-    // display tab, needs to visible for correct rendering
-    tabPanel.selectTab(0);
-
-    return tabPanel;
-  }
-
-  private static void registerView(Controller controller, TabLayoutPanel tabPanel, String id, AbstractView view)
-  {
-    // register view with controller
-    controller.addView(id, view);
-
-    // add to tab layout
-    tabPanel.add(view, view.getIconTitle(), true);
-  }
-}

Deleted: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditorNavigation.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditorNavigation.java	2010-01-26 13:42:23 UTC (rev 935)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditorNavigation.java	2010-01-26 14:31:13 UTC (rev 936)
@@ -1,76 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.console.client.task;
-
-import com.google.gwt.user.client.ui.Tree;
-import com.google.gwt.user.client.ui.TreeItem;
-import com.google.gwt.user.client.ui.TreeListener;
-import org.jboss.bpm.console.client.ApplicationContext;
-import org.jboss.bpm.console.client.Workspace;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
- at Deprecated
-class TaskEditorNavigation extends Tree
-{
-  public TaskEditorNavigation(final ApplicationContext appContext)
-  {
-    super.setTitle("Tasks");
-
-    addItem("Group Tasks");
-    addItem("Personal Tasks");
-
-    addTreeListener(
-        new TreeListener()
-        {
-          public void onTreeItemSelected(TreeItem treeItem)
-          {
-            Workspace workspace = appContext.getWorkpace();
-
-            if("Group Tasks".equals(treeItem.getText()))
-            {
-              workspace.showEditor(TaskEditor.ID, null);
-            }
-            else if("Personal Tasks".equals(treeItem.getText()))
-            {            
-              workspace.showEditor(TaskEditor.ID, null);
-            }
-          }
-
-          public void onTreeItemStateChanged(TreeItem treeItem)
-          {
-
-          }
-        }
-    );
-  }
-
-  /*public void add(String string)
-  {
-    ConsoleIconBundle icons = GWT.create(ConsoleIconBundle.class);
-    MosaicPanel p = new MosaicPanel(new BoxLayout(BoxLayout.Orientation.HORIZONTAL));
-    p.add(icons.arrowIcon().createImage());
-    p.add(new Label(string));
-    super.add(p);
-  } */
-}



More information about the overlord-commits mailing list