Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Allow breakpoint enable and properties ruler actions for all breakpoints (issue 10918154)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
peter.ry...@gmail.com  
View profile  
 More options Sep 10 2012, 5:16 pm
From: peter.ry...@gmail.com
Date: Mon, 10 Sep 2012 21:16:51 +0000
Local: Mon, Sep 10 2012 5:16 pm
Subject: Allow breakpoint enable and properties ruler actions for all breakpoints (issue 10918154)
Reviewers: apavlov,

Description:
Allow breakpoint enable and properties ruler actions for all breakpoints

Please review this at http://codereview.chromium.org/10918154/

SVN Base: https://chromedevtools.googlecode.com/svn/trunk

Affected files:
   M  
plugins/org.chromium.debug.ui/src/org/chromium/debug/ui/actions/JsBreakpoin tPropertiesAction.java
   M  
plugins/org.chromium.debug.ui/src/org/chromium/debug/ui/actions/JsBreakpoin tPropertiesRulerAction.java

Index:  
plugins/org.chromium.debug.ui/src/org/chromium/debug/ui/actions/JsBreakpoin tPropertiesAction.java
diff --git  
a/plugins/org.chromium.debug.ui/src/org/chromium/debug/ui/actions/JsBreakpo intPropertiesAction.java  
b/plugins/org.chromium.debug.ui/src/org/chromium/debug/ui/actions/JsBreakpo intPropertiesAction.java
index  
9ea11cffeb354b85c97a883052a94c7286410570..842560970f84ebcad65de65528999c3f8 a8fd3f0  
100644
---  
a/plugins/org.chromium.debug.ui/src/org/chromium/debug/ui/actions/JsBreakpo intPropertiesAction.java
+++  
b/plugins/org.chromium.debug.ui/src/org/chromium/debug/ui/actions/JsBreakpo intPropertiesAction.java
@@ -8,16 +8,14 @@ import  
org.chromium.debug.core.model.ChromiumExceptionBreakpoint;
  import org.chromium.debug.core.model.ChromiumLineBreakpoint;
  import org.eclipse.debug.core.model.IBreakpoint;
  import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.preference.PreferenceDialog;
  import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.ISelectionProvider;
  import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.StructuredSelection;
  import org.eclipse.jface.window.IShellProvider;
  import org.eclipse.ui.IObjectActionDelegate;
  import org.eclipse.ui.IWorkbenchPart;
  import org.eclipse.ui.IWorkbenchPartSite;
-import org.eclipse.ui.dialogs.PropertyDialogAction;
+import org.eclipse.ui.dialogs.PreferencesUtil;

  /**
   * Action to bring up the breakpoint properties dialog.
@@ -78,23 +76,10 @@ public abstract class JsBreakpointPropertiesAction  
implements IObjectActionDeleg
      };
    }

-  protected static void runAction(final IBreakpoint breakpoint,  
IShellProvider shell) {
-    PropertyDialogAction action =
-      new PropertyDialogAction(shell,
-          new ISelectionProvider() {
-            public void  
addSelectionChangedListener(ISelectionChangedListener listener) {
-            }
+  protected static void runAction(IBreakpoint breakpoint, IShellProvider  
shell) {
+    PreferenceDialog propertyDialog =  
PreferencesUtil.createPropertyDialogOn(
+        shell.getShell(), breakpoint, (String) null, (String[]) null,  
null);

-            public ISelection getSelection() {
-              return new StructuredSelection(breakpoint);
-            }
-
-            public void  
removeSelectionChangedListener(ISelectionChangedListener listener) {
-            }
-
-            public void setSelection(ISelection selection) {
-            }
-          });
-    action.run();
+    propertyDialog.open();
    }
  }
Index:  
plugins/org.chromium.debug.ui/src/org/chromium/debug/ui/actions/JsBreakpoin tPropertiesRulerAction.java
diff --git  
a/plugins/org.chromium.debug.ui/src/org/chromium/debug/ui/actions/JsBreakpo intPropertiesRulerAction.java  
b/plugins/org.chromium.debug.ui/src/org/chromium/debug/ui/actions/JsBreakpo intPropertiesRulerAction.java
index  
87d019454703e023fad35e4ba18a5d1baf6c4392..1f11c8d0eb0e2e2bb921e1579be20b404 133adbf  
100755
---  
a/plugins/org.chromium.debug.ui/src/org/chromium/debug/ui/actions/JsBreakpo intPropertiesRulerAction.java
+++  
b/plugins/org.chromium.debug.ui/src/org/chromium/debug/ui/actions/JsBreakpo intPropertiesRulerAction.java
@@ -33,18 +33,11 @@ public class JsBreakpointPropertiesRulerAction extends  
RulerBreakpointAction imp
    }

    public void update() {
-    breakpoint = null;
-    IBreakpoint activeBreakpoint = getBreakpoint();
-    if (activeBreakpoint != null &&
-        activeBreakpoint instanceof ChromiumLineBreakpoint) {
-      breakpoint = activeBreakpoint;
-    }
+    breakpoint = getBreakpoint();
      setEnabled(breakpoint != null);
    }

-
    public static class Delegate extends AbstractRulerActionDelegate {
-
      @Override
      protected IAction createAction(ITextEditor editor, IVerticalRulerInfo  
rulerInfo) {
        return new JsBreakpointPropertiesRulerAction(editor, rulerInfo);


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.