avoid NPE
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / resourcesview / MainActionGroup.java
index 4c4d355..cfcfe82 100644 (file)
@@ -18,14 +18,12 @@ import org.eclipse.ui.actions.ActionContext;
 import org.eclipse.ui.actions.ActionGroup;
 import org.eclipse.ui.actions.RefreshAction;
 import org.eclipse.ui.dialogs.PropertyDialogAction;
-//Impossible to compile with this, I don't know why
-//import org.eclipse.ui.internal.dialogs.ResourceSorter;
-import org.eclipse.ui.views.navigator.ResourceSorter;
 import org.eclipse.ui.views.framelist.FrameList;
 import org.eclipse.ui.views.navigator.IResourceNavigator;
 import org.eclipse.ui.views.navigator.OpenActionGroup;
 import org.eclipse.ui.views.navigator.RefactorActionGroup;
 import org.eclipse.ui.views.navigator.ResourcePatternFilter;
+import org.eclipse.ui.views.navigator.ResourceSorter;
 
 public class MainActionGroup extends ActionGroup {
 
@@ -147,6 +145,14 @@ public class MainActionGroup extends ActionGroup {
                        return phpResourcesView.getAdapter(arg0);
                }
 
+    //It was missing ?
+    public boolean isLinkingEnabled() {
+      return false;
+    }
+
+    //It was missing ?
+    public void setLinkingEnabled(boolean b) {
+    }
        }
 
 }
\ No newline at end of file