[jboss-cvs] JBossAS SVN: r112720 - in projects/jboss-jca/trunk/eclipse: icons and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Mar 2 03:20:03 EST 2012


Author: gaol
Date: 2012-03-02 03:20:02 -0500 (Fri, 02 Mar 2012)
New Revision: 112720

Added:
   projects/jboss-jca/trunk/eclipse/icons/deploy_icon_16px.png
   projects/jboss-jca/trunk/eclipse/icons/validation_icon_16px.png
   projects/jboss-jca/trunk/eclipse/src/main/java/org/jboss/jca/eclipse/command/DeployHandler.java
   projects/jboss-jca/trunk/eclipse/src/main/java/org/jboss/jca/eclipse/command/ValidateHandler.java
Removed:
   projects/jboss-jca/trunk/eclipse/src/main/java/org/jboss/jca/eclipse/command/BuildHandler.java
Modified:
   projects/jboss-jca/trunk/eclipse/plugin.xml
Log:
[JBJCA-731] Rename build command to validate; Add deploy command;

Added: projects/jboss-jca/trunk/eclipse/icons/deploy_icon_16px.png
===================================================================
(Binary files differ)


Property changes on: projects/jboss-jca/trunk/eclipse/icons/deploy_icon_16px.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: projects/jboss-jca/trunk/eclipse/icons/validation_icon_16px.png
===================================================================
(Binary files differ)


Property changes on: projects/jboss-jca/trunk/eclipse/icons/validation_icon_16px.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Modified: projects/jboss-jca/trunk/eclipse/plugin.xml
===================================================================
--- projects/jboss-jca/trunk/eclipse/plugin.xml	2012-03-01 12:38:01 UTC (rev 112719)
+++ projects/jboss-jca/trunk/eclipse/plugin.xml	2012-03-02 08:20:02 UTC (rev 112720)
@@ -9,26 +9,41 @@
             id="ironjacamar-eclipse.commands.category">
       </category>
       <command
-            name="Build Command"
+            name="Validate Command"
             categoryId="ironjacamar-eclipse.commands.category"
-            id="ironjacamar-eclipse.commands.buildCommand">
+            id="ironjacamar-eclipse.commands.validateCommand">
       </command>
+      <command
+            name="Deploy Command"
+            categoryId="ironjacamar-eclipse.commands.category"
+            id="ironjacamar-eclipse.commands.deployCommand">
+      </command>
    </extension>
    <extension
          point="org.eclipse.ui.handlers">
       <handler
-            commandId="ironjacamar-eclipse.commands.buildCommand"
-            class="org.jboss.jca.eclipse.command.BuildHandler">
+            commandId="ironjacamar-eclipse.commands.validateCommand"
+            class="org.jboss.jca.eclipse.command.ValidateHandler">
       </handler>
+      <handler
+            commandId="ironjacamar-eclipse.commands.deployCommand"
+            class="org.jboss.jca.eclipse.command.DeployHandler">
+      </handler>
    </extension>
    <extension
          point="org.eclipse.ui.bindings">
       <key
-            commandId="ironjacamar-eclipse.commands.buildCommand"
+            commandId="ironjacamar-eclipse.commands.validateCommand"
             contextId="org.eclipse.ui.contexts.window"
             sequence="M1+6"
             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
       </key>
+      <key
+            commandId="ironjacamar-eclipse.commands.deployCommand"
+            contextId="org.eclipse.ui.contexts.window"
+            sequence="M1+7"
+            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
+      </key>
    </extension>
    <extension
          point="org.eclipse.ui.menus">
@@ -39,10 +54,15 @@
                mnemonic="M"
                id="ironjacamar-eclipse.menus.buildMenu">
             <command
-                  commandId="ironjacamar-eclipse.commands.buildCommand"
-                  mnemonic="S"
-                  id="ironjacamar-eclipse.menus.buildCommand">
+                  commandId="ironjacamar-eclipse.commands.validateCommand"
+                  mnemonic="V"
+                  id="ironjacamar-eclipse.menus.validateCommand">
             </command>
+            <command
+                  commandId="ironjacamar-eclipse.commands.deployCommand"
+                  mnemonic="D"
+                  id="ironjacamar-eclipse.menus.deployCommand">
+            </command>
          </menu>
       </menuContribution>
       <menuContribution
@@ -50,11 +70,17 @@
          <toolbar
                id="ironjacamar-eclipse.toolbars.buildToolbar">
             <command
-                  commandId="ironjacamar-eclipse.commands.buildCommand"
-                  icon="icons/build.png"
-                  tooltip="Say hello world"
-                  id="ironjacamar-eclipse.toolbars.buildCommand">
+                  commandId="ironjacamar-eclipse.commands.validateCommand"
+                  icon="icons/validation_icon_16px.png"
+                  tooltip="Validate Ironjacamar project"
+                  id="ironjacamar-eclipse.toolbars.validateCommand">
             </command>
+            <command
+                  commandId="ironjacamar-eclipse.commands.deployCommand"
+                  icon="icons/deploy_icon_16px.png"
+                  tooltip="Deploy Ironjacamar project"
+                  id="ironjacamar-eclipse.toolbars.deployCommand">
+            </command>
          </toolbar>
       </menuContribution>
    </extension>

Deleted: projects/jboss-jca/trunk/eclipse/src/main/java/org/jboss/jca/eclipse/command/BuildHandler.java
===================================================================
--- projects/jboss-jca/trunk/eclipse/src/main/java/org/jboss/jca/eclipse/command/BuildHandler.java	2012-03-01 12:38:01 UTC (rev 112719)
+++ projects/jboss-jca/trunk/eclipse/src/main/java/org/jboss/jca/eclipse/command/BuildHandler.java	2012-03-02 08:20:02 UTC (rev 112720)
@@ -1,60 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2012, 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.jca.eclipse.command;
-
-import org.eclipse.core.commands.AbstractHandler;
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.handlers.HandlerUtil;
-
-/**
- * Our sample handler extends AbstractHandler, an IHandler base class.
- * 
- * @see org.eclipse.core.commands.IHandler
- * @see org.eclipse.core.commands.AbstractHandler
- */
-public class BuildHandler extends AbstractHandler
-{
-   /**
-    * The constructor.
-    */
-   public BuildHandler()
-   {
-   }
-
-   /**
-    * the command has been executed, so extract extract the needed information
-    * from the application context.
-    * 
-    * @param event ExecutionEvent
-    * @return Object null
-    * @throws ExecutionException ExecutionException
-    */
-   public Object execute(ExecutionEvent event) throws ExecutionException
-   {
-      IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);
-      MessageDialog.openInformation(window.getShell(), "Ironjacamar-eclipse", "Hello, Eclipse world");
-      return null;
-   }
-}

Added: projects/jboss-jca/trunk/eclipse/src/main/java/org/jboss/jca/eclipse/command/DeployHandler.java
===================================================================
--- projects/jboss-jca/trunk/eclipse/src/main/java/org/jboss/jca/eclipse/command/DeployHandler.java	                        (rev 0)
+++ projects/jboss-jca/trunk/eclipse/src/main/java/org/jboss/jca/eclipse/command/DeployHandler.java	2012-03-02 08:20:02 UTC (rev 112720)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.jca.eclipse.command;
+
+import org.eclipse.core.commands.AbstractHandler;
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.handlers.HandlerUtil;
+
+/**
+ * Our sample handler extends AbstractHandler, an IHandler base class.
+ * 
+ * @see org.eclipse.core.commands.IHandler
+ * @see org.eclipse.core.commands.AbstractHandler
+ * 
+ * @author <a href="mailto:lgao at redhat.com">Lin Gao</a>
+ */
+public class DeployHandler extends AbstractHandler
+{
+   /**
+    * The Constructor
+    */
+   public DeployHandler()
+   {  
+   }
+
+   /**
+    * the command has been executed, so extract the needed information
+    * from the application context.
+    * 
+    * @param event ExecutionEvent
+    * @return Object null
+    * @throws ExecutionException ExecutionException
+    */
+   public Object execute(ExecutionEvent event) throws ExecutionException
+   {
+      IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);
+      MessageDialog.openInformation(window.getShell(), "Ironjacamar-eclipse", "Ironjacamar Deployment");
+      return null;
+   }
+   
+   
+
+}

Copied: projects/jboss-jca/trunk/eclipse/src/main/java/org/jboss/jca/eclipse/command/ValidateHandler.java (from rev 112717, projects/jboss-jca/trunk/eclipse/src/main/java/org/jboss/jca/eclipse/command/BuildHandler.java)
===================================================================
--- projects/jboss-jca/trunk/eclipse/src/main/java/org/jboss/jca/eclipse/command/ValidateHandler.java	                        (rev 0)
+++ projects/jboss-jca/trunk/eclipse/src/main/java/org/jboss/jca/eclipse/command/ValidateHandler.java	2012-03-02 08:20:02 UTC (rev 112720)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.jca.eclipse.command;
+
+import org.eclipse.core.commands.AbstractHandler;
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.handlers.HandlerUtil;
+
+/**
+ * Our sample handler extends AbstractHandler, an IHandler base class.
+ * 
+ * @see org.eclipse.core.commands.IHandler
+ * @see org.eclipse.core.commands.AbstractHandler
+ */
+public class ValidateHandler extends AbstractHandler
+{
+   /**
+    * The constructor.
+    */
+   public ValidateHandler()
+   {
+   }
+
+   /**
+    * the command has been executed, so extract the needed information
+    * from the application context.
+    * 
+    * @param event ExecutionEvent
+    * @return Object null
+    * @throws ExecutionException ExecutionException
+    */
+   public Object execute(ExecutionEvent event) throws ExecutionException
+   {
+      IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);
+      MessageDialog.openInformation(window.getShell(), "Ironjacamar-eclipse", "Ironjacamar Validation");
+      return null;
+   }
+}



More information about the jboss-cvs-commits mailing list