diff options
author | Lars Vogel | 2019-09-25 07:20:09 +0000 |
---|---|---|
committer | Lars Vogel | 2019-09-25 07:54:31 +0000 |
commit | 2822ec713a601487babebbb3950746a13446ca61 (patch) | |
tree | 584d883d0a0af35acc496ba56ed13a8ffd05fe7d | |
parent | cae260ad9d06753869e184fa763e6ec12933ee9b (diff) | |
download | eclipse.platform.swt-2822ec713a601487babebbb3950746a13446ca61.tar.gz eclipse.platform.swt-2822ec713a601487babebbb3950746a13446ca61.tar.xz eclipse.platform.swt-2822ec713a601487babebbb3950746a13446ca61.zip |
Bug 437558 - Cleanup of Sleak view
Includes 4.14 version updates for the plug-in Bumping the minor version
as the next commit moves a 3x view to an 4.x view
Change-Id: I07b99c989d536785d255b1a3507860914131bf2e
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
3 files changed, 8 insertions, 36 deletions
diff --git a/bundles/org.eclipse.swt.tools.spies/META-INF/MANIFEST.MF b/bundles/org.eclipse.swt.tools.spies/META-INF/MANIFEST.MF index 3a609311d6..36f63a8226 100644 --- a/bundles/org.eclipse.swt.tools.spies/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.swt.tools.spies/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-Name: %pluginName Bundle-Vendor: %providerName Bundle-SymbolicName: org.eclipse.swt.tools.spies;singleton:=true -Bundle-Version: 3.106.200.qualifier +Bundle-Version: 3.107.0.qualifier Bundle-ManifestVersion: 2 Export-Package: org.eclipse.swt.tools.internal, org.eclipse.swt.tools.views diff --git a/bundles/org.eclipse.swt.tools.spies/pom.xml b/bundles/org.eclipse.swt.tools.spies/pom.xml index cb5125d7da..ac52c75728 100644 --- a/bundles/org.eclipse.swt.tools.spies/pom.xml +++ b/bundles/org.eclipse.swt.tools.spies/pom.xml @@ -19,6 +19,6 @@ </parent> <groupId>org.eclipse.swt</groupId> <artifactId>org.eclipse.swt.tools.spies</artifactId> - <version>3.106.200-SNAPSHOT</version> + <version>3.107.0-SNAPSHOT</version> <packaging>eclipse-plugin</packaging> </project> diff --git a/bundles/org.eclipse.swt.tools.spies/src/org/eclipse/swt/tools/views/SleakView.java b/bundles/org.eclipse.swt.tools.spies/src/org/eclipse/swt/tools/views/SleakView.java index 59e9876e1b..65204b6d8d 100644 --- a/bundles/org.eclipse.swt.tools.spies/src/org/eclipse/swt/tools/views/SleakView.java +++ b/bundles/org.eclipse.swt.tools.spies/src/org/eclipse/swt/tools/views/SleakView.java @@ -19,51 +19,23 @@ import org.eclipse.swt.widgets.*; import org.eclipse.ui.part.*; /** - * This sample class demonstrates how to plug-in a new - * workbench view. The view shows data obtained from the - * model. The sample creates a dummy model on the fly, - * but a real implementation would connect to the model - * available either in this or another plug-in (e.g. the workspace). - * The view is connected to the model using a content provider. - * <p> - * The view uses a label provider to define how model - * objects should be presented in the view. Each - * view can present the same model objects using - * different labels and icons, if needed. Alternatively, - * a single label provider can be shared between views - * in order to ensure that objects of the same type are - * presented in the same way everywhere. - * <p> + * Sleak view to trace native handler allocation */ public class SleakView extends ViewPart { - Composite parent = null; - Sleak sleak = null; + private Composite composite; - /** - * The constructor. - */ - public SleakView() { - } - - /** - * This is a callback that will allow us - * to create the viewer and initialize it. - */ @Override public void createPartControl(Composite parent) { - this.parent = new Composite(parent, SWT.NONE); - sleak = new Sleak (); - sleak.create(this.parent); + composite = new Composite(parent, SWT.NONE); + Sleak sleak = new Sleak (); + sleak.create(composite); } - /** - * Passing the focus request to the viewer's control. - */ @Override public void setFocus() { - parent.setFocus(); + composite.setFocus(); } }
\ No newline at end of file |