Skip to content

Commit 2ec0321

Browse files
committed
Convert usage of org.eclipse.ui.commands.ICommand to
org.eclipse.core.commands.Command
1 parent f3b42b5 commit 2ec0321

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

core/bundles/org.eclipse.wst.sse.ui/META-INF/MANIFEST.MF

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: %pluginName
44
Bundle-SymbolicName: org.eclipse.wst.sse.ui; singleton:=true
5-
Bundle-Version: 1.7.800.qualifier
5+
Bundle-Version: 1.7.900.qualifier
66
Bundle-Activator: org.eclipse.wst.sse.ui.internal.SSEUIPlugin
77
Bundle-Vendor: %providerName
88
Bundle-Localization: plugin
@@ -50,21 +50,21 @@ Export-Package: org.eclipse.wst.sse.ui,
5050
org.eclipse.wst.sse.ui.typing,
5151
org.eclipse.wst.sse.ui.views.contentoutline,
5252
org.eclipse.wst.sse.ui.views.properties
53-
Require-Bundle: org.eclipse.ui.ide;bundle-version="[3.21.0,4.0.0)",
53+
Require-Bundle: org.eclipse.ui.ide;bundle-version="[3.22.0,4.0.0)",
5454
org.eclipse.jface.text;bundle-version="[3.13.0,4.0.0)",
5555
org.eclipse.debug.ui;bundle-version="[3.13.0,4.0.0)",
5656
org.eclipse.debug.core;bundle-version="[3.11.0,4.0.0)",
5757
org.eclipse.ui.editors;bundle-version="[3.16.0,4.0.0)";visibility:=reexport,
5858
org.eclipse.search;bundle-version="[3.11.0,4.0.0)",
5959
org.eclipse.ui;bundle-version="[3.109.0,4.0.0)",
6060
org.eclipse.ui.workbench.texteditor;bundle-version="[3.10.0,4.0.0)",
61-
org.eclipse.ui.workbench;bundle-version="[3.117.0,4.0.0)",
61+
org.eclipse.ui.workbench;bundle-version="[3.131.0,4.0.0)",
6262
org.eclipse.ui.forms;bundle-version="[3.7.0,4.0.0)",
6363
org.eclipse.ui.views;bundle-version="[3.9.0,4.0.0)",
6464
org.eclipse.wst.sse.core;bundle-version="[1.2.0,2.0.0)",
6565
org.eclipse.core.runtime;bundle-version="[3.27.0,4.0.0)",
6666
org.eclipse.core.resources;bundle-version="[3.13.0,4.0.0)",
67-
org.eclipse.core.commands;bundle-version="[3.9.0,4.0.0)",
67+
org.eclipse.core.commands;bundle-version="[3.11.0,4.0.0)",
6868
org.eclipse.wst.validation;bundle-version="[1.3.0,2.0.0)",
6969
org.eclipse.emf.common;bundle-version="[2.14.0,3.0.0)",
7070
org.eclipse.core.expressions;bundle-version="[3.8.0,4.0.0)",

core/bundles/org.eclipse.wst.sse.ui/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<groupId>org.eclipse.webtools.sourceediting</groupId>
2323
<artifactId>org.eclipse.wst.sse.ui</artifactId>
24-
<version>1.7.800-SNAPSHOT</version>
24+
<version>1.7.900-SNAPSHOT</version>
2525
<packaging>eclipse-plugin</packaging>
2626

2727
<build>

core/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/quickoutline/QuickOutlinePopupDialog.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2010, 2019 IBM Corporation and others.
2+
* Copyright (c) 2010, 2024 IBM Corporation and others.
33
* All rights reserved. This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License 2.0
55
* which accompanies this distribution, and is available at
@@ -12,6 +12,7 @@
1212
*******************************************************************************/
1313
package org.eclipse.wst.sse.ui.internal.quickoutline;
1414

15+
import org.eclipse.core.commands.Command;
1516
import org.eclipse.jface.action.IMenuManager;
1617
import org.eclipse.jface.bindings.TriggerSequence;
1718
import org.eclipse.jface.bindings.keys.KeySequence;
@@ -62,7 +63,7 @@
6263
import org.eclipse.ui.IWorkbenchPage;
6364
import org.eclipse.ui.IWorkbenchWindow;
6465
import org.eclipse.ui.PlatformUI;
65-
import org.eclipse.ui.commands.ICommand;
66+
import org.eclipse.ui.commands.ICommandService;
6667
import org.eclipse.ui.keys.IBindingService;
6768
import org.eclipse.ui.texteditor.ITextEditor;
6869
import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
@@ -109,7 +110,7 @@ public class QuickOutlinePopupDialog extends PopupDialog implements IInformation
109110
* {@link org.eclipse.jdt.internal.ui.text.JavaOutlineInformationControl}
110111
*/
111112
private KeyAdapter fKeyAdapter;
112-
private ICommand fInvokingCommand;
113+
private Command fInvokingCommand;
113114
private TriggerSequence[] fInvokingCommandKeySequences;
114115
private AbstractQuickOutlineConfiguration fFirstConfiguration;
115116
private AbstractQuickOutlineConfiguration fConfiguration;
@@ -123,7 +124,7 @@ public QuickOutlinePopupDialog(Shell parent, int shellStyle, IStructuredModel mo
123124
fFilter = configuration.getFilter();
124125
fModel = model;
125126

126-
fInvokingCommand = PlatformUI.getWorkbench().getCommandSupport().getCommandManager().getCommand(DIALOG_SECTION);
127+
fInvokingCommand = PlatformUI.getWorkbench().getService(ICommandService.class).getCommand(DIALOG_SECTION);
127128

128129
updateStatusText();
129130

@@ -298,14 +299,14 @@ private ITextEditor getActiveTextEditor() {
298299
return editor;
299300
}
300301

301-
final protected ICommand getInvokingCommand() {
302+
final protected Command getInvokingCommand() {
302303
return fInvokingCommand;
303304
}
304305

305306
final protected TriggerSequence[] getInvokingCommandKeySequences() {
306307
if (fInvokingCommandKeySequences == null) {
307308
if (getInvokingCommand() != null) {
308-
IBindingService bindingService = PlatformUI.getWorkbench().getAdapter(IBindingService.class);
309+
IBindingService bindingService = PlatformUI.getWorkbench().getService(IBindingService.class);
309310
fInvokingCommandKeySequences = bindingService.getActiveBindingsFor(getInvokingCommand().getId());
310311
return fInvokingCommandKeySequences;
311312
}

0 commit comments

Comments
 (0)