Refactory: removed unnecessary local variables and imports.
[phpeclipse.git] / net.sourceforge.phpeclipse.ui / src / net / sourceforge / phpdt / ui / actions / GenerateActionGroup.java
index d1a2f88..67aec73 100644 (file)
@@ -90,8 +90,8 @@ public class GenerateActionGroup extends ActionGroup {
                fEditor = editor;
                fGroupName = groupName;
 
-               ISelectionProvider provider = fSite.getSelectionProvider();
-               ISelection selection = provider.getSelection();
+               //ISelectionProvider provider = fSite.getSelectionProvider();
+               //ISelection selection = provider.getSelection();
 
                // fAddImport= new AddImportOnSelectionAction(editor);
                // fAddImport.setActionDefinitionId(IJavaEditorActionDefinitionIds.ADD_IMPORT);
@@ -360,21 +360,21 @@ public class GenerateActionGroup extends ActionGroup {
                }
        }
 
-       private int appendToGroup(IMenuManager menu, IAction action) {
-               if (action != null && action.isEnabled()) {
-                       menu.appendToGroup(fGroupName, action);
-                       return 1;
-               }
-               return 0;
-       }
-
-       private int addAction(IMenuManager menu, IAction action) {
-               if (action != null && action.isEnabled()) {
-                       menu.add(action);
-                       return 1;
-               }
-               return 0;
-       }
+//     private int appendToGroup(IMenuManager menu, IAction action) {
+//             if (action != null && action.isEnabled()) {
+//                     menu.appendToGroup(fGroupName, action);
+//                     return 1;
+//             }
+//             return 0;
+//     }
+
+//     private int addAction(IMenuManager menu, IAction action) {
+//             if (action != null && action.isEnabled()) {
+//                     menu.add(action);
+//                     return 1;
+//             }
+//             return 0;
+//     }
 
        private int addEditorAction(IMenuManager menu, String actionID) {
                if (fEditor == null)