Skip to content

Commit

Permalink
Refresh CallHierarchy on FiltersDialog validation
Browse files Browse the repository at this point in the history
  • Loading branch information
RoiSoleil authored and jukzi committed Jan 19, 2024
1 parent 31405ef commit da30623
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.Separator;
import org.eclipse.jface.viewers.StructuredViewer;
import org.eclipse.jface.window.Window;

import org.eclipse.ui.IActionBars;
import org.eclipse.ui.IViewPart;
import org.eclipse.ui.actions.ActionGroup;

import org.eclipse.jdt.internal.ui.JavaPluginImages;
Expand Down Expand Up @@ -62,15 +61,15 @@ public void run() {
}
}

private IViewPart fPart;
private CallHierarchyViewPart fPart;

/**
* Creates a new <code>CustomFiltersActionGroup</code>.
*
* @param part the view part that owns this action group
* @param viewer the viewer to be filtered
* @param part the call hierarchy view part
* @param viewer the call hierarchy viewer
*/
public CallHierarchyFiltersActionGroup(IViewPart part, StructuredViewer viewer) {
public CallHierarchyFiltersActionGroup(CallHierarchyViewPart part, CallHierarchyViewer viewer) {
Assert.isNotNull(part);
Assert.isNotNull(viewer);
fPart= part;
Expand Down Expand Up @@ -98,7 +97,9 @@ private void openFiltersDialog() {
FiltersDialog dialog= new FiltersDialog(
fPart.getViewSite().getShell());

dialog.open();
if(Window.OK == dialog.open()) {
fPart.refresh();
}
}

private void openExpandWithConstructorsDialog() {
Expand Down

0 comments on commit da30623

Please sign in to comment.