-
Notifications
You must be signed in to change notification settings - Fork 93
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 (#1671)
* Move filters Button in Call Hierarchy view to the top level Bar - Added class ShowCallHierarchyFilterDialogAction - Added fFiltersAction to CallHierarchyViewPart to create an icon in the top level bar
- Loading branch information
1 parent
b46e6a2
commit 68f1142
Showing
5 changed files
with
55 additions
and
28 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
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
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
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
48 changes: 48 additions & 0 deletions
48
....ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/ShowCallHierarchyFilterDialogAction.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,48 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 Vector Informatik GmbH and others. | ||
* | ||
* This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License 2.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Vector Informatik GmbH - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.jdt.internal.ui.callhierarchy; | ||
|
||
import org.eclipse.jface.action.Action; | ||
import org.eclipse.jface.window.Window; | ||
|
||
import org.eclipse.jdt.internal.ui.JavaPluginImages; | ||
|
||
class ShowCallHierarchyFilterDialogAction extends Action { | ||
private CallHierarchyViewPart fPart; | ||
|
||
public ShowCallHierarchyFilterDialogAction(CallHierarchyViewPart view, String tooltipText) { | ||
super(); | ||
fPart= view; | ||
|
||
setToolTipText(tooltipText); | ||
|
||
setText(CallHierarchyMessages.ShowFilterDialogAction_text); | ||
setImageDescriptor(JavaPluginImages.DESC_ELCL_FILTER); | ||
setDisabledImageDescriptor(JavaPluginImages.DESC_DLCL_FILTER); | ||
} | ||
|
||
@Override | ||
public void run() { | ||
openFiltersDialog(); | ||
} | ||
|
||
private void openFiltersDialog() { | ||
FiltersDialog dialog= new FiltersDialog( | ||
fPart.getViewSite().getShell()); | ||
|
||
if (Window.OK == dialog.open()) { | ||
fPart.refresh(); | ||
} | ||
} | ||
} |