Skip to content

Commit acf2997

Browse files
committed
Revamp Find action visibility
- Add Find context in Breakpoints view - Add Missing icons for Launch View & Variables View
1 parent f48bab4 commit acf2997

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsView.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*****************************************************************
2-
* Copyright (c) 2009, 2021 Texas Instruments and others
2+
* Copyright (c) 2009, 2025 Texas Instruments and others
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -26,6 +26,7 @@
2626
import org.eclipse.debug.core.DebugPlugin;
2727
import org.eclipse.debug.core.IBreakpointManagerListener;
2828
import org.eclipse.debug.core.model.IBreakpoint;
29+
import org.eclipse.debug.internal.ui.DebugPluginImages;
2930
import org.eclipse.debug.internal.ui.DebugUIPlugin;
3031
import org.eclipse.debug.internal.ui.IDebugHelpContextIds;
3132
import org.eclipse.debug.internal.ui.VariablesViewModelPresentation;
@@ -200,6 +201,9 @@ protected void fillContextMenu(IMenuManager menu) {
200201
if (action != null) {
201202
menu.add(action);
202203
}
204+
action = getAction(FIND_ACTION);
205+
action.setImageDescriptor(DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_FIND_ACTION));
206+
menu.add(action);
203207
action = getAction(ACTION_REMOVE_FROM_GROUP);
204208
if (action != null && action.isEnabled()) {
205209
menu.add(action);

debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2000, 2021 IBM Corporation and others.
2+
* Copyright (c) 2000, 2025 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -42,6 +42,7 @@
4242
import org.eclipse.debug.core.model.IDebugTarget;
4343
import org.eclipse.debug.core.model.IProcess;
4444
import org.eclipse.debug.core.model.IStackFrame;
45+
import org.eclipse.debug.internal.ui.DebugPluginImages;
4546
import org.eclipse.debug.internal.ui.DebugUIPlugin;
4647
import org.eclipse.debug.internal.ui.DelegatingModelPresentation;
4748
import org.eclipse.debug.internal.ui.IDebugHelpContextIds;
@@ -1172,7 +1173,9 @@ protected void fillContextMenu(IMenuManager menu) {
11721173

11731174
menu.add(new Separator(IDebugUIConstants.EMPTY_EDIT_GROUP));
11741175
menu.add(new Separator(IDebugUIConstants.EDIT_GROUP));
1175-
menu.add(getAction(FIND_ACTION));
1176+
IAction findAction = getAction(FIND_ACTION);
1177+
findAction.setImageDescriptor(DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_FIND_ACTION));
1178+
menu.add(findAction);
11761179
menu.add(new Separator(IDebugUIConstants.EMPTY_STEP_GROUP));
11771180
menu.add(new Separator(IDebugUIConstants.STEP_GROUP));
11781181
menu.add(new GroupMarker(IDebugUIConstants.STEP_INTO_GROUP));

debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2000, 2019 IBM Corporation and others.
2+
* Copyright (c) 2000, 2025 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -36,6 +36,7 @@
3636
import org.eclipse.core.runtime.jobs.Job;
3737
import org.eclipse.debug.core.DebugException;
3838
import org.eclipse.debug.core.DebugPlugin;
39+
import org.eclipse.debug.internal.ui.DebugPluginImages;
3940
import org.eclipse.debug.internal.ui.DebugUIPlugin;
4041
import org.eclipse.debug.internal.ui.DelegatingModelPresentation;
4142
import org.eclipse.debug.internal.ui.IDebugHelpContextIds;
@@ -967,6 +968,7 @@ protected void createActions() {
967968
setAction("ChangeVariableValue", action); //$NON-NLS-1$
968969

969970
action= new VirtualFindAction(getVariablesViewer());
971+
action.setImageDescriptor(DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_FIND_ACTION));
970972
setGlobalAction(FIND_ACTION, action);
971973
}
972974

0 commit comments

Comments
 (0)