1) Fixed issue #764: Ignore strings when looking for single line comments.
[phpeclipse.git] / net.sourceforge.phpeclipse.ui / src / net / sourceforge / phpdt / ui / actions / GenerateActionGroup.java
index bb14a3c..b228189 100644 (file)
@@ -30,7 +30,7 @@ import org.eclipse.jface.viewers.ISelectionChangedListener;
 import org.eclipse.jface.viewers.ISelectionProvider;
 import org.eclipse.jface.viewers.IStructuredSelection;
 import org.eclipse.ui.IActionBars;
-import org.eclipse.ui.IViewPart;
+//import org.eclipse.ui.IViewPart;
 import org.eclipse.ui.IWorkbenchSite;
 import org.eclipse.ui.actions.ActionGroup;
 import org.eclipse.ui.actions.AddBookmarkAction;
@@ -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);
@@ -158,9 +158,9 @@ public class GenerateActionGroup extends ActionGroup {
         * @param part
         *            the view part that owns this action group
         */
-       public GenerateActionGroup(IViewPart part) {
-               this(part.getSite());
-       }
+//     public GenerateActionGroup(IViewPart part) {
+//             this(part.getSite());
+//     }
 
        private GenerateActionGroup(IWorkbenchSite site) {
                fSite = site;