Skip to content

Commit 39a5894

Browse files
author
jantje
committed
fix some deprication warnings
1 parent 80fb68a commit 39a5894

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

io.sloeber.ui/src/io/sloeber/ui/Activator.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import org.eclipse.core.runtime.Status;
66
import org.eclipse.core.runtime.jobs.Job;
77
import org.eclipse.jface.resource.ImageDescriptor;
8+
import org.eclipse.jface.resource.ResourceLocator;
89
import org.eclipse.ui.plugin.AbstractUIPlugin;
910
import org.eclipse.ui.progress.UIJob;
1011
import org.eclipse.ui.statushandlers.StatusManager;
@@ -92,7 +93,7 @@ private static void initializeImportantVariables() {
9293
* @return the image descriptor
9394
*/
9495
public static ImageDescriptor getImageDescriptor(String path) {
95-
return imageDescriptorFromPlugin(PLUGIN_ID, path);
96+
return ResourceLocator.imageDescriptorFromBundle(PLUGIN_ID, path).orElse(null);
9697
}
9798

9899
public static final short PLOTTER_START_DATA = (short) 0xCDAB;// This is the

io.sloeber.ui/src/io/sloeber/ui/preferences/LibrarySelectionPage.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ protected boolean isLeafMatch(final Viewer viewer1, final Object element) {
110110
}
111111
};
112112

113-
this.tree = new FilteredTree(parent, SWT.CHECK | SWT.V_SCROLL | SWT.BORDER | SWT.FULL_SELECTION, filter, true) {
113+
this.tree = new FilteredTree(parent, SWT.CHECK | SWT.V_SCROLL | SWT.BORDER | SWT.FULL_SELECTION, filter, true,true) {
114114
@SuppressWarnings("synthetic-access")
115115
@Override
116116
protected TreeViewer doCreateTreeViewer(Composite composite, int style) {

io.sloeber.ui/src/io/sloeber/ui/preferences/PlatformSelectionPage.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ private boolean myWordMatches(IndexFile indexFile) {
137137
};
138138

139139
this.myGuiplatformTree = new FilteredTree(control, SWT.CHECK | SWT.V_SCROLL | SWT.BORDER | SWT.FULL_SELECTION,
140-
filter, true) {
140+
filter, true,true) {
141141

142142
@Override
143143
protected TreeViewer doCreateTreeViewer(Composite composite, int style) {

0 commit comments

Comments
 (0)