[jbosstools-commits] JBoss Tools SVN: r9416 - trunk/flow/plugins/org.jboss.tools.flow.common.graph/src/org/jboss/tools/flow/editor.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Wed Jul 30 05:21:20 EDT 2008


Author: koen.aers at jboss.com
Date: 2008-07-30 05:21:20 -0400 (Wed, 30 Jul 2008)
New Revision: 9416

Modified:
   trunk/flow/plugins/org.jboss.tools.flow.common.graph/src/org/jboss/tools/flow/editor/PaletteFactory.java
Log:
refactor PaletteFactory

Modified: trunk/flow/plugins/org.jboss.tools.flow.common.graph/src/org/jboss/tools/flow/editor/PaletteFactory.java
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common.graph/src/org/jboss/tools/flow/editor/PaletteFactory.java	2008-07-30 08:41:53 UTC (rev 9415)
+++ trunk/flow/plugins/org.jboss.tools.flow.common.graph/src/org/jboss/tools/flow/editor/PaletteFactory.java	2008-07-30 09:21:20 UTC (rev 9416)
@@ -41,7 +41,7 @@
  */
 public abstract class PaletteFactory {
     
-    private ConnectionFactory connectionFactory;
+    protected ConnectionFactory connectionFactory;
     
     public PaletteFactory(ConnectionFactory connectionFactory) {
         this.connectionFactory = connectionFactory;
@@ -72,21 +72,21 @@
         tool = new MarqueeToolEntry();
         entries.add(tool);
         
-        tool = new ConnectionCreationToolEntry(
-            "Connection Creation",
-            "Creating connections",
-            new CreationFactory() {
-                public Object getNewObject() {
-                	return connectionFactory.createElementConnection();
-                }
-                public Object getObjectType() {
-                	return AbstractConnectionWrapper.class;
-                }
-            },
-            ImageDescriptor.createFromURL(JBossToolsProcessPlugin.getDefault().getBundle().getEntry("icons/connection.gif")), 
-            ImageDescriptor.createFromURL(JBossToolsProcessPlugin.getDefault().getBundle().getEntry("icons/connection.gif"))
-        );
-        entries.add(tool);
+//        tool = new ConnectionCreationToolEntry(
+//            "Connection Creation",
+//            "Creating connections",
+//            new CreationFactory() {
+//                public Object getNewObject() {
+//                	return connectionFactory.createElementConnection();
+//                }
+//                public Object getObjectType() {
+//                	return AbstractConnectionWrapper.class;
+//                }
+//            },
+//            ImageDescriptor.createFromURL(JBossToolsProcessPlugin.getDefault().getBundle().getEntry("icons/connection.gif")), 
+//            ImageDescriptor.createFromURL(JBossToolsProcessPlugin.getDefault().getBundle().getEntry("icons/connection.gif"))
+//        );
+//        entries.add(tool);
         
         controlGroup.addAll(entries);
         return controlGroup;




More information about the jbosstools-commits mailing list