Skip to content

Commit b45e85c

Browse files
committed
Fix warnings
* Static access * Unused suppress warning
1 parent f1d7fe6 commit b45e85c

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

org.eclipse.wildwebdeveloper/src/org/eclipse/wildwebdeveloper/debug/chrome/ChromeExecutableTab.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2020 Red Hat Inc. and others.
2+
* Copyright (c) 2020, 2026 Red Hat Inc. and others.
33
*
44
* This program and the accompanying materials are made
55
* available under the terms of the Eclipse Public License 2.0
@@ -112,7 +112,7 @@ public static boolean isChrome(IBrowserDescriptor desc) {
112112
@Override
113113
public void initializeFrom(ILaunchConfiguration configuration) {
114114
try {
115-
String browserLocation = configuration.getAttribute(ChromeRunDAPDebugDelegate.RUNTIME_EXECUTABLE, "");
115+
String browserLocation = configuration.getAttribute(VSCodeJSDebugDelegate.RUNTIME_EXECUTABLE, "");
116116
if (browserLocation.isEmpty()) {
117117
browserToUse.setSelection(new StructuredSelection(browserLocation));
118118
} else {
@@ -140,9 +140,9 @@ public void initializeFrom(ILaunchConfiguration configuration) {
140140
public void performApply(ILaunchConfigurationWorkingCopy configuration) {
141141
Object selectedBrowser = ((IStructuredSelection)browserToUse.getSelection()).getFirstElement();
142142
if (selectedBrowser instanceof IBrowserDescriptor desc) {
143-
configuration.setAttribute(ChromeRunDAPDebugDelegate.RUNTIME_EXECUTABLE, desc.getLocation());
143+
configuration.setAttribute(VSCodeJSDebugDelegate.RUNTIME_EXECUTABLE, desc.getLocation());
144144
} else if (selectedBrowser instanceof String) {
145-
configuration.setAttribute(ChromeRunDAPDebugDelegate.RUNTIME_EXECUTABLE, selectedBrowser);
145+
configuration.setAttribute(VSCodeJSDebugDelegate.RUNTIME_EXECUTABLE, selectedBrowser);
146146
}
147147
}
148148

org.eclipse.wildwebdeveloper/src/org/eclipse/wildwebdeveloper/debug/node/RunProgramTab.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2018 Red Hat Inc. and others.
2+
* Copyright (c) 2018, 2026 Red Hat Inc. and others.
33
*
44
* This program and the accompanying materials are made
55
* available under the terms of the Eclipse Public License 2.0
@@ -12,7 +12,9 @@
1212
*******************************************************************************/
1313
package org.eclipse.wildwebdeveloper.debug.node;
1414

15-
import static org.eclipse.wildwebdeveloper.debug.SelectionUtils.*;
15+
import static org.eclipse.wildwebdeveloper.debug.SelectionUtils.getSelectedFile;
16+
import static org.eclipse.wildwebdeveloper.debug.SelectionUtils.getSelectedProject;
17+
import static org.eclipse.wildwebdeveloper.debug.SelectionUtils.pathOrEmpty;
1618

1719
import java.io.File;
1820

@@ -283,7 +285,7 @@ public void initializeFrom(ILaunchConfiguration configuration) {
283285
try {
284286
String defaultSelectedFile = pathOrEmpty(getSelectedFile(shortcut::canLaunch));
285287
this.programPathText.setText(configuration.getAttribute(LaunchConstants.PROGRAM, defaultSelectedFile)); //$NON-NLS-1$
286-
this.argumentsText.setText(configuration.getAttribute(NodeRunDAPDebugDelegate.ARGUMENTS, "")); //$NON-NLS-1$
288+
this.argumentsText.setText(configuration.getAttribute(VSCodeJSDebugDelegate.ARGUMENTS, "")); //$NON-NLS-1$
287289
this.workingDirectoryText
288290
.setText(configuration.getAttribute(DebugPlugin.ATTR_WORKING_DIRECTORY, pathOrEmpty(getSelectedProject()))); //$NON-NLS-1$
289291
} catch (CoreException e) {
@@ -295,7 +297,7 @@ public void initializeFrom(ILaunchConfiguration configuration) {
295297
public void performApply(ILaunchConfigurationWorkingCopy configuration) {
296298
String programPath = this.programPathText.getText();
297299
configuration.setAttribute(LaunchConstants.PROGRAM, programPath);
298-
configuration.setAttribute(NodeRunDAPDebugDelegate.ARGUMENTS, this.argumentsText.getText());
300+
configuration.setAttribute(VSCodeJSDebugDelegate.ARGUMENTS, this.argumentsText.getText());
299301
configuration.setAttribute(DebugPlugin.ATTR_WORKING_DIRECTORY, this.workingDirectoryText.getText());
300302
configuration.setMappedResources(ResourcesPlugin.getWorkspace().getRoot().findFilesForLocationURI(FileUtils.toUri(programPath)));
301303
}

org.eclipse.wildwebdeveloper/src/org/eclipse/wildwebdeveloper/ui/preferences/ProcessStreamConnectionProviderWithPreference.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2022, 2023 Red Hat Inc. and others.
2+
* Copyright (c) 2022, 2026 Red Hat Inc. and others.
33
*
44
* This program and the accompanying materials are made
55
* available under the terms of the Eclipse Public License 2.0
@@ -171,7 +171,6 @@ private void removePropertyChangeListenerIfNeed() {
171171
public void propertyChange(PropertyChangeEvent event) {
172172
if (isAffected(event)) {
173173
LanguageServerDefinition languageServerDefinition = getLanguageServerDefinition();
174-
@SuppressWarnings("rawtypes")
175174
DidChangeConfigurationParams params = new DidChangeConfigurationParams(createSettings());
176175

177176
/*

0 commit comments

Comments
 (0)