changeset 28:f520e217d065

Remove Toolbar action button
author Omair Majid <omajid@redhat.com>
date Wed, 04 Dec 2013 15:49:52 -0500
parents 6367d8007713
children 292901f62193
files plugin.xml src/com/redhat/thermostat/plugin/eclipse/actions/ThermostatAction.java
diffstat 2 files changed, 0 insertions(+), 91 deletions(-) [+]
line wrap: on
line diff
--- a/plugin.xml	Wed Dec 04 15:35:26 2013 -0500
+++ b/plugin.xml	Wed Dec 04 15:49:52 2013 -0500
@@ -15,31 +15,6 @@
    </extension>
    
    <extension
-         point="org.eclipse.ui.actionSets">
-      <actionSet
-            label="Thermostat Action Set"
-            visible="true"
-            id="Thermostat-Plugin.actionSet">
-         <menu
-               label="Thermostat"
-               id="thermostatMenu">
-            <separator
-                  name="thermostatGroup">
-            </separator>
-         </menu>
-         <action
-               label="Create a Thermostat Plugin File"
-               icon="icons/thermostat.gif"
-               class="com.redhat.thermostat.plugin.eclipse.actions.ThermostatAction"
-               tooltip="Create a Thermostat Plugin File"
-               menubarPath="thermostatMenu/thermostatGroup"
-               toolbarPath="thermostatGroup"
-               id="thermostatplugin.actions.ThermostatAction">
-         </action>
-      </actionSet>
-   </extension>
-   
-   <extension
          point="org.eclipse.ui.newWizards">
       <category
             name="Thermostat"
--- a/src/com/redhat/thermostat/plugin/eclipse/actions/ThermostatAction.java	Wed Dec 04 15:35:26 2013 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,66 +0,0 @@
-package com.redhat.thermostat.plugin.eclipse.actions;
-
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.wizard.WizardDialog;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.IWorkbenchWindowActionDelegate;
-
-import com.redhat.thermostat.plugin.eclipse.wizards.PluginXmlCreationWizard;
-
-/**
- * Our sample action implements workbench action delegate.
- * The action proxy will be created by the workbench and
- * shown in the UI. When the user tries to use the action,
- * this delegate will be created and execution will be 
- * delegated to it.
- * @see IWorkbenchWindowActionDelegate
- */
-public class ThermostatAction implements IWorkbenchWindowActionDelegate {
-    private IWorkbenchWindow window;
-    /**
-     * The constructor.
-     */
-    public ThermostatAction() {
-    }
-
-    /**
-     * The action has been activated. The argument of the
-     * method represents the 'real' action sitting
-     * in the workbench UI.
-     * @see IWorkbenchWindowActionDelegate#run
-     */
-    public void run(IAction action) {
-//        ThermostatProjectCreationWizard wizard = new ThermostatProjectCreationWizard();
-        PluginXmlCreationWizard wizard = new PluginXmlCreationWizard();
-        WizardDialog wizardDialog = new WizardDialog(window.getShell(), wizard);
-        wizardDialog.open();
-    }
-
-    /**
-     * Selection in the workbench has been changed. We 
-     * can change the state of the 'real' action here
-     * if we want, but this can only happen after 
-     * the delegate has been created.
-     * @see IWorkbenchWindowActionDelegate#selectionChanged
-     */
-    public void selectionChanged(IAction action, ISelection selection) {
-    }
-
-    /**
-     * We can use this method to dispose of any system
-     * resources we previously allocated.
-     * @see IWorkbenchWindowActionDelegate#dispose
-     */
-    public void dispose() {
-    }
-
-    /**
-     * We will cache window object in order to
-     * be able to provide parent shell for the message dialog.
-     * @see IWorkbenchWindowActionDelegate#init
-     */
-    public void init(IWorkbenchWindow window) {
-        this.window = window;
-    }
-}
\ No newline at end of file