Added "Toggle PHP Breakpoint" to left Editor ruler
[phpeclipse.git] / net.sourceforge.phpeclipse.debug.ui / src / net / sourceforge / phpdt / internal / debug / ui / actions / ToggleBreakpointAdapter.java
index d50a217..6fa47db 100644 (file)
@@ -249,12 +249,13 @@ public class ToggleBreakpointAdapter implements IToggleBreakpointsTarget {
         * @see org.eclipse.debug.ui.actions.IToggleBreakpointsTarget#canToggleMethodBreakpoints(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)
         */
        public boolean canToggleMethodBreakpoints(IWorkbenchPart part, ISelection selection) {
-               if (selection instanceof IStructuredSelection) {
-                       IStructuredSelection ss = (IStructuredSelection) selection;
-                       return getMethods(ss).length > 0;
-               } else {
-                       return selection instanceof ITextSelection;
-               }
+//             if (selection instanceof IStructuredSelection) {
+//                     IStructuredSelection ss = (IStructuredSelection) selection;
+//                     return getMethods(ss).length > 0;
+//             } else {
+//                     return selection instanceof ITextSelection;
+//             }
+               return false;
        }
        
        protected IMethod[] getMethods(IStructuredSelection selection) {