# HG changeset patch # User Peter Hofer # Date 1321270218 -3600 # Node ID c7ddb0dea5821d72255c4a6b0a62588177968e6a # Parent 61f10abeb25af85ab5f593a729f868ca254441c2 IdealGraphVisualizer: * add tooltip for filter entries * rearrange actions in filters toolbar diff -r 61f10abeb25a -r c7ddb0dea582 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/FilterNode.java --- a/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/FilterNode.java Wed Nov 09 22:53:16 2011 +0100 +++ b/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/FilterNode.java Mon Nov 14 12:30:18 2011 +0100 @@ -75,6 +75,8 @@ FilterTopComponent.findInstance().getFilterSettingsChangedEvent().addListener(this); resultChanged(null); + + setShortDescription("Double-click to open filter"); } private void update() { diff -r 61f10abeb25a -r c7ddb0dea582 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/FilterTopComponent.java --- a/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/FilterTopComponent.java Wed Nov 09 22:53:16 2011 +0100 +++ b/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/FilterTopComponent.java Mon Nov 14 12:30:18 2011 +0100 @@ -348,10 +348,10 @@ toolBar.add(SaveFilterSettingsAction.get(SaveFilterSettingsAction.class)); toolBar.add(RemoveFilterSettingsAction.get(RemoveFilterSettingsAction.class)); toolBar.addSeparator(); + toolBar.add(NewFilterAction.get(NewFilterAction.class)); + toolBar.add(RemoveFilterAction.get(RemoveFilterAction.class).createContextAwareInstance(this.getLookup())); toolBar.add(MoveFilterUpAction.get(MoveFilterUpAction.class).createContextAwareInstance(this.getLookup())); toolBar.add(MoveFilterDownAction.get(MoveFilterDownAction.class).createContextAwareInstance(this.getLookup())); - toolBar.add(RemoveFilterAction.get(RemoveFilterAction.class).createContextAwareInstance(this.getLookup())); - toolBar.add(NewFilterAction.get(NewFilterAction.class)); this.add(view, BorderLayout.CENTER); filterSettings = new ArrayList(); diff -r 61f10abeb25a -r c7ddb0dea582 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/actions/RemoveFilterAction.java --- a/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/actions/RemoveFilterAction.java Wed Nov 09 22:53:16 2011 +0100 +++ b/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/actions/RemoveFilterAction.java Mon Nov 14 12:30:18 2011 +0100 @@ -45,7 +45,7 @@ "Cancel" }; int n = JOptionPane.showOptionDialog(WindowManager.getDefault().getMainWindow(), - "Do you really want to delete " + activatedNodes.length + " filter/s?", "Delete?", + "Do you really want to delete " + activatedNodes.length + " filter(s)?", "Delete Filters", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,