diff --git a/bundles/org.eclipse.swt/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.swt/.settings/org.eclipse.jdt.core.prefs index 9e1b6b5c947..ee1fd8be6de 100644 --- a/bundles/org.eclipse.swt/.settings/org.eclipse.jdt.core.prefs +++ b/bundles/org.eclipse.swt/.settings/org.eclipse.jdt.core.prefs @@ -1,4 +1,5 @@ eclipse.preferences.version=1 +org.eclipse.jdt.core.builder.annotationPath.allLocations=disabled org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull @@ -17,6 +18,8 @@ org.eclipse.jdt.core.compiler.debug.lineNumber=generate org.eclipse.jdt.core.compiler.debug.localVariable=generate org.eclipse.jdt.core.compiler.debug.sourceFile=generate org.eclipse.jdt.core.compiler.doc.comment.support=enabled +org.eclipse.jdt.core.compiler.problem.APILeak=warning +org.eclipse.jdt.core.compiler.problem.annotatedTypeArgumentToUnannotated=info org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning org.eclipse.jdt.core.compiler.problem.assertIdentifier=error org.eclipse.jdt.core.compiler.problem.autoboxing=ignore @@ -91,8 +94,10 @@ org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled +org.eclipse.jdt.core.compiler.problem.suppressWarningsNotFullyAnalysed=info org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore +org.eclipse.jdt.core.compiler.problem.terminalDeprecation=warning org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning @@ -105,6 +110,7 @@ org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=info org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore +org.eclipse.jdt.core.compiler.problem.unstableAutoModuleName=warning org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/ImageLoader.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/ImageLoader.java index 2fe55b38810..a8e4c2f684c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/ImageLoader.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/ImageLoader.java @@ -249,18 +249,13 @@ public void save(OutputStream stream, int format) { * */ public void save(String filename, int format) { - if (filename == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); - OutputStream stream = null; - try { - stream = new FileOutputStream(filename); + if (filename == null) + SWT.error(SWT.ERROR_NULL_ARGUMENT); + try (OutputStream stream = new FileOutputStream(filename)) { + save(stream, format); } catch (IOException e) { SWT.error(SWT.ERROR_IO, e); } - save(stream, format); - try { - stream.close(); - } catch (IOException e) { - } } /** diff --git a/examples/org.eclipse.swt.examples.browser.demos/.settings/org.eclipse.jdt.core.prefs b/examples/org.eclipse.swt.examples.browser.demos/.settings/org.eclipse.jdt.core.prefs index f183ce4e1cb..e06ac7e32b5 100644 --- a/examples/org.eclipse.swt.examples.browser.demos/.settings/org.eclipse.jdt.core.prefs +++ b/examples/org.eclipse.swt.examples.browser.demos/.settings/org.eclipse.jdt.core.prefs @@ -24,7 +24,7 @@ org.eclipse.jdt.core.compiler.problem.discouragedReference=warning org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore +org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=warning org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore diff --git a/examples/org.eclipse.swt.examples.ole.win32/.settings/org.eclipse.jdt.core.prefs b/examples/org.eclipse.swt.examples.ole.win32/.settings/org.eclipse.jdt.core.prefs index 22ed7e1b4a0..318f96d41ef 100644 --- a/examples/org.eclipse.swt.examples.ole.win32/.settings/org.eclipse.jdt.core.prefs +++ b/examples/org.eclipse.swt.examples.ole.win32/.settings/org.eclipse.jdt.core.prefs @@ -29,7 +29,7 @@ org.eclipse.jdt.core.compiler.problem.discouragedReference=warning org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore +org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=warning org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore diff --git a/examples/org.eclipse.swt.examples.ole.win32/src/org/eclipse/swt/examples/ole/win32/OlePlugin.java b/examples/org.eclipse.swt.examples.ole.win32/src/org/eclipse/swt/examples/ole/win32/OlePlugin.java index 91bcaafdc03..43051d05c3d 100644 --- a/examples/org.eclipse.swt.examples.ole.win32/src/org/eclipse/swt/examples/ole/win32/OlePlugin.java +++ b/examples/org.eclipse.swt.examples.ole.win32/src/org/eclipse/swt/examples/ole/win32/OlePlugin.java @@ -172,22 +172,14 @@ public static void freeResources() { * @return the image, or null if not found */ private static Image getImageFromPlugin(Bundle bundle, String iconPath) { - InputStream is = null; - try { - URL installUrl = bundle.getEntry("/"); - URL url = new URL(installUrl, iconPath); - is = url.openConnection().getInputStream(); + URL installUrl = bundle.getEntry("/"); + try (InputStream is = new URL(installUrl, iconPath).openConnection().getInputStream()) { ImageData source = new ImageData(is); ImageData mask = source.getTransparencyMask(); Image image = new Image(null, source, mask); return image; } catch (Throwable ex) { return null; - } finally { - try { - if (is != null) is.close(); - } catch (IOException e) { - } } } } diff --git a/examples/org.eclipse.swt.examples.views/.settings/org.eclipse.jdt.core.prefs b/examples/org.eclipse.swt.examples.views/.settings/org.eclipse.jdt.core.prefs index f183ce4e1cb..e06ac7e32b5 100644 --- a/examples/org.eclipse.swt.examples.views/.settings/org.eclipse.jdt.core.prefs +++ b/examples/org.eclipse.swt.examples.views/.settings/org.eclipse.jdt.core.prefs @@ -24,7 +24,7 @@ org.eclipse.jdt.core.compiler.problem.discouragedReference=warning org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore +org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=warning org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore diff --git a/examples/org.eclipse.swt.examples/.settings/org.eclipse.jdt.core.prefs b/examples/org.eclipse.swt.examples/.settings/org.eclipse.jdt.core.prefs index 279e6f16ce3..24a1d5a61d3 100644 --- a/examples/org.eclipse.swt.examples/.settings/org.eclipse.jdt.core.prefs +++ b/examples/org.eclipse.swt.examples/.settings/org.eclipse.jdt.core.prefs @@ -29,7 +29,7 @@ org.eclipse.jdt.core.compiler.problem.discouragedReference=warning org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore +org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=warning org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/BrowserExample.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/BrowserExample.java index 9d4f1176377..f9d4abde220 100644 --- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/BrowserExample.java +++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/BrowserExample.java @@ -339,18 +339,15 @@ void initResources() { throw new RuntimeException(error); } - public static void main(String [] args) { + public static void main(String [] args) throws IOException { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); shell.setText(getResourceString("window.title")); - InputStream stream = BrowserExample.class.getResourceAsStream(iconLocation); - Image icon = new Image(display, stream); - shell.setImage(icon); - try { - stream.close(); - } catch (IOException e) { - e.printStackTrace(); + Image icon; + try (InputStream stream = BrowserExample.class.getResourceAsStream(iconLocation)) { + icon = new Image(display, stream); + shell.setImage(icon); } BrowserExample app = new BrowserExample(shell, true); app.setShellDecoration(icon, true); diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/StyledTextTab.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/StyledTextTab.java index c185a362478..44e1297b929 100644 --- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/StyledTextTab.java +++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/StyledTextTab.java @@ -72,19 +72,16 @@ class StyledTextTab extends ScrollableTab { /** * Creates a bitmap image. */ - Image createBitmapImage (Display display, String name) { - InputStream sourceStream = ControlExample.class.getResourceAsStream (name + ".bmp"); - InputStream maskStream = ControlExample.class.getResourceAsStream (name + "_mask.bmp"); - ImageData source = new ImageData (sourceStream); - ImageData mask = new ImageData (maskStream); - Image result = new Image (display, source, mask); - try { - sourceStream.close (); - maskStream.close (); + Image createBitmapImage(Display display, String name) { + try (InputStream sourceStream = ControlExample.class.getResourceAsStream(name + ".bmp"); + InputStream maskStream = ControlExample.class.getResourceAsStream(name + "_mask.bmp")) { + ImageData source = new ImageData(sourceStream); + ImageData mask = new ImageData(maskStream); + Image result = new Image(display, source, mask); + return result; } catch (IOException e) { - e.printStackTrace (); + throw new RuntimeException(e); } - return result; } /** diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/IconCache.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/IconCache.java index e957c3ffe0f..26cf621db99 100644 --- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/IconCache.java +++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/IconCache.java @@ -129,16 +129,14 @@ public void freeResources() { * @param path the relative path to the icon */ private Image createStockImage(Display display, String path) { - InputStream stream = IconCache.class.getResourceAsStream (path); - ImageData imageData = new ImageData (stream); - ImageData mask = imageData.getTransparencyMask (); - Image result = new Image (display, imageData, mask); - try { - stream.close (); + try (InputStream stream = IconCache.class.getResourceAsStream (path)) { + ImageData imageData = new ImageData (stream); + ImageData mask = imageData.getTransparencyMask (); + Image result = new Image (display, imageData, mask); + return result; } catch (IOException e) { - e.printStackTrace (); + throw new RuntimeException(e); } - return result; } /** * Gets an image for a file associated with a given program diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/AdvancedGraphics.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/AdvancedGraphics.java index bb5bb8bd71f..96e8842ee61 100644 --- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/AdvancedGraphics.java +++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/AdvancedGraphics.java @@ -41,19 +41,16 @@ public class AdvancedGraphics { private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle("examples_graphics"); - static Image loadImage (Device device, Class clazz, String string) { - InputStream stream = clazz.getResourceAsStream (string); - if (stream == null) return null; - Image image = null; - try { - image = new Image (device, stream); + static Image loadImage(Device device, Class clazz, String string) { + try (InputStream stream = clazz.getResourceAsStream(string)) { + if (stream == null) + return null; + Image image = new Image(device, stream); + return image; } catch (SWTException ex) { - } finally { - try { - stream.close (); - } catch (IOException ex) {} + } catch (IOException ex) { } - return image; + return null; } public Shell open(final Display display) { diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GraphicsExample.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GraphicsExample.java index aa2d0ccbd98..1ecb330a18e 100644 --- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GraphicsExample.java +++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GraphicsExample.java @@ -521,19 +521,15 @@ static String getResourceString(String key) { } } -static Image loadImage (Device device, Class clazz, String string) { - InputStream stream = clazz.getResourceAsStream (string); - if (stream == null) return null; - Image image = null; - try { - image = new Image (device, stream); +static Image loadImage(Device device, Class clazz, String string) { + try (InputStream stream = clazz.getResourceAsStream(string)) { + if (stream == null) + return null; + return new Image(device, stream); } catch (SWTException ex) { - } finally { - try { - stream.close (); - } catch (IOException ex) {} + } catch (IOException ex) { } - return image; + return null; } Image loadImage(Device device, String name) { diff --git a/examples/org.eclipse.swt.snippets/.settings/org.eclipse.jdt.core.prefs b/examples/org.eclipse.swt.snippets/.settings/org.eclipse.jdt.core.prefs index a6f584a6c13..d153e3d8709 100644 --- a/examples/org.eclipse.swt.snippets/.settings/org.eclipse.jdt.core.prefs +++ b/examples/org.eclipse.swt.snippets/.settings/org.eclipse.jdt.core.prefs @@ -1,4 +1,5 @@ eclipse.preferences.version=1 +org.eclipse.jdt.core.builder.annotationPath.allLocations=disabled org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull @@ -26,7 +27,7 @@ org.eclipse.jdt.core.compiler.problem.deadCode=warning org.eclipse.jdt.core.compiler.problem.deprecation=warning org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled -org.eclipse.jdt.core.compiler.problem.discouragedReference=warning +org.eclipse.jdt.core.compiler.problem.discouragedReference=ignore org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled org.eclipse.jdt.core.compiler.problem.enumIdentifier=error diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet373.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet373.java index 62c42c332dd..a222359ad72 100644 --- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet373.java +++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet373.java @@ -61,7 +61,6 @@ public class Snippet373 { return path; }; - @SuppressWarnings("restriction") public static void main(String[] args) { System.setProperty("swt.autoScale", "quarter"); Display display = new Display(); diff --git a/tests/org.eclipse.swt.tests.win32/ManualTests/org/eclipse/swt/tests/win32/snippets/Bug565426_SmoothScrolling.java b/tests/org.eclipse.swt.tests.win32/ManualTests/org/eclipse/swt/tests/win32/snippets/Bug565426_SmoothScrolling.java index 38d0a646c87..8ce13615c08 100644 --- a/tests/org.eclipse.swt.tests.win32/ManualTests/org/eclipse/swt/tests/win32/snippets/Bug565426_SmoothScrolling.java +++ b/tests/org.eclipse.swt.tests.win32/ManualTests/org/eclipse/swt/tests/win32/snippets/Bug565426_SmoothScrolling.java @@ -13,13 +13,19 @@ *******************************************************************************/ package org.eclipse.swt.tests.win32.snippets; -import org.eclipse.swt.*; -import org.eclipse.swt.graphics.*; +import org.eclipse.swt.SWT; +import org.eclipse.swt.graphics.Point; import org.eclipse.swt.internal.win32.OS; -import org.eclipse.swt.layout.*; -import org.eclipse.swt.widgets.*; - -import java.lang.reflect.*; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.layout.RowLayout; +import org.eclipse.swt.widgets.Button; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Display; +import org.eclipse.swt.widgets.Label; +import org.eclipse.swt.widgets.ScrollBar; +import org.eclipse.swt.widgets.Scrollable; +import org.eclipse.swt.widgets.Shell; public class Bug565426_SmoothScrolling { static void simulateScroll(Scrollable control, boolean vertical, int wheelDelta) { diff --git a/tests/org.eclipse.swt.tests.win32/ManualTests/org/eclipse/swt/tests/win32/snippets/Bug565613_ScrollbarThumbJumps.java b/tests/org.eclipse.swt.tests.win32/ManualTests/org/eclipse/swt/tests/win32/snippets/Bug565613_ScrollbarThumbJumps.java index a86e227b338..71f9877a7ec 100644 --- a/tests/org.eclipse.swt.tests.win32/ManualTests/org/eclipse/swt/tests/win32/snippets/Bug565613_ScrollbarThumbJumps.java +++ b/tests/org.eclipse.swt.tests.win32/ManualTests/org/eclipse/swt/tests/win32/snippets/Bug565613_ScrollbarThumbJumps.java @@ -13,11 +13,15 @@ *******************************************************************************/ package org.eclipse.swt.tests.win32.snippets; -import org.eclipse.swt.*; -import org.eclipse.swt.custom.StyledText; -import org.eclipse.swt.graphics.*; -import org.eclipse.swt.layout.*; -import org.eclipse.swt.widgets.*; +import org.eclipse.swt.SWT; +import org.eclipse.swt.graphics.Point; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Display; +import org.eclipse.swt.widgets.Label; +import org.eclipse.swt.widgets.ScrollBar; +import org.eclipse.swt.widgets.Shell; public class Bug565613_ScrollbarThumbJumps { public static void main(String[] args) { diff --git a/tests/org.eclipse.swt.tests.win32/ManualTests/org/eclipse/swt/tests/win32/snippets/Bug565679_WS_BORDER.java b/tests/org.eclipse.swt.tests.win32/ManualTests/org/eclipse/swt/tests/win32/snippets/Bug565679_WS_BORDER.java index cbe08040d1b..3e5c7c3f396 100644 --- a/tests/org.eclipse.swt.tests.win32/ManualTests/org/eclipse/swt/tests/win32/snippets/Bug565679_WS_BORDER.java +++ b/tests/org.eclipse.swt.tests.win32/ManualTests/org/eclipse/swt/tests/win32/snippets/Bug565679_WS_BORDER.java @@ -13,11 +13,30 @@ *******************************************************************************/ package org.eclipse.swt.tests.win32.snippets; -import org.eclipse.swt.*; +import org.eclipse.swt.SWT; import org.eclipse.swt.custom.StyledText; -import org.eclipse.swt.graphics.*; -import org.eclipse.swt.layout.*; -import org.eclipse.swt.widgets.*; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Canvas; +import org.eclipse.swt.widgets.Combo; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.CoolBar; +import org.eclipse.swt.widgets.DateTime; +import org.eclipse.swt.widgets.Decorations; +import org.eclipse.swt.widgets.Display; +import org.eclipse.swt.widgets.ExpandBar; +import org.eclipse.swt.widgets.Group; +import org.eclipse.swt.widgets.Label; +import org.eclipse.swt.widgets.Shell; +import org.eclipse.swt.widgets.Spinner; +import org.eclipse.swt.widgets.TabFolder; +import org.eclipse.swt.widgets.TabItem; +import org.eclipse.swt.widgets.Table; +import org.eclipse.swt.widgets.Text; +import org.eclipse.swt.widgets.ToolBar; +import org.eclipse.swt.widgets.Tree; +import org.eclipse.swt.widgets.TreeColumn; +import org.eclipse.swt.widgets.TreeItem; public class Bug565679_WS_BORDER { public static void main(String[] args) {