IDEA-107072 Breakpoint dialog: usability problems and other bug

This commit is contained in:
andrey.zaytsev
2013-05-13 17:36:00 +04:00
parent 125060e5e2
commit a64d3020e9
5 changed files with 5 additions and 9 deletions
@@ -173,7 +173,7 @@
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="&amp;Temporary"/>
<text value="&amp;Remove once hit"/>
</properties>
</component>
</children>
@@ -533,7 +533,7 @@ public abstract class BreakpointPropertiesPanel {
myLogMessageCheckBox.setSelected(breakpoint.LOG_ENABLED);
myTemporaryCheckBox.setSelected(breakpoint.REMOVE_AFTER_HIT);
myEnabledCheckbox.setSelected(breakpoint.ENABLED);
myEnabledCheckbox.setText(breakpoint.getShortName());
myEnabledCheckbox.setText(breakpoint.getShortName() + " enabled");
myEnabledCheckbox.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent event) {
@@ -106,6 +106,7 @@ public class BreakpointsDialog extends DialogWrapper {
setTitle("Breakpoints");
setModal(false);
init();
setOKButtonText("Done");
}
private String getSplitterProportionKey() {
@@ -171,11 +172,6 @@ public class BreakpointsDialog extends DialogWrapper {
return new Action[]{getOKAction()};
}
private static Font smaller(Font f) {
return f.deriveFont(f.getStyle(), f.getSize() - 2);
}
private class ToggleBreakpointGroupingRuleEnabledAction extends ToggleActionButton {
private XBreakpointGroupingRule myRule;
@@ -59,7 +59,7 @@
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="&amp;Temporary"/>
<text value="&amp;Remove once hit"/>
</properties>
</component>
</children>
@@ -196,7 +196,7 @@ public class XLightBreakpointPropertiesPanel<B extends XBreakpoint<?>> implement
customPanel.loadFrom(myBreakpoint);
}
myEnabledCheckbox.setSelected(myBreakpoint.isEnabled());
myEnabledCheckbox.setText(XBreakpointUtil.getShortText(myBreakpoint));
myEnabledCheckbox.setText(XBreakpointUtil.getShortText(myBreakpoint) + " enabled");
}
public JPanel getMainPanel() {