-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move filters Button in Call Hierarchy view to the top level Bar (#26):
Before the changes the filters could only be accessed through the "View Menu" (three dots), which is inconvenient considering that the filters button is rather important and frequently used. After the changes the filters can be accessed by clicking on the icon in the top level bar as well as the old way through the view menu.
- Loading branch information
1 parent
30472e0
commit 1557309
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/FiltersAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package org.eclipse.jdt.internal.ui.callhierarchy; | ||
|
||
import org.eclipse.jface.action.Action; | ||
import org.eclipse.jface.window.Window; | ||
|
||
import org.eclipse.ui.PlatformUI; | ||
|
||
import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; | ||
import org.eclipse.jdt.internal.ui.JavaPluginImages; | ||
|
||
public class FiltersAction extends Action { | ||
private CallHierarchyViewPart fPart; | ||
|
||
|
||
public FiltersAction (CallHierarchyViewPart view) { | ||
|
||
|
||
super(); | ||
fPart = view; | ||
setToolTipText(CallHierarchyMessages.ShowFilterDialogAction_text); | ||
|
||
setText(CallHierarchyMessages.ShowFilterDialogAction_text); | ||
setImageDescriptor(JavaPluginImages.DESC_ELCL_FILTER); | ||
setDisabledImageDescriptor(JavaPluginImages.DESC_DLCL_FILTER); | ||
|
||
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.CALL_HIERARCHY_REFRESH_VIEW_ACTION); | ||
|
||
} | ||
|
||
@Override | ||
public void run() { | ||
|
||
openFiltersDialog(); | ||
|
||
} | ||
|
||
private void openFiltersDialog() { | ||
FiltersDialog dialog= new FiltersDialog( | ||
fPart.getViewSite().getShell()); | ||
|
||
if(Window.OK == dialog.open()) { | ||
fPart.refresh(); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters