Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2016-09-15 16:03:08 +0000
committerLars Vogel2016-09-16 14:38:43 +0000
commitdabc1f22f09e35d265686c2c43798e82353a3657 (patch)
tree4004b02ddc899c5d4adef479d365bc01909cf5de /bundles/org.eclipse.e4.tools.css.spy
parentab23d227f57dbf933b6888a15e028ccedfc925bf (diff)
downloadorg.eclipse.e4.tools-dabc1f22f09e35d265686c2c43798e82353a3657.tar.gz
org.eclipse.e4.tools-dabc1f22f09e35d265686c2c43798e82353a3657.tar.xz
org.eclipse.e4.tools-dabc1f22f09e35d265686c2c43798e82353a3657.zip
Removes dead code in CSSSpyPart
Change-Id: If7326c79a4f45c80c807ec49da718115e33afc54 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'bundles/org.eclipse.e4.tools.css.spy')
-rw-r--r--bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/Activator.java16
-rw-r--r--bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyPart.java14
2 files changed, 0 insertions, 30 deletions
diff --git a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/Activator.java b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/Activator.java
index f7ca3980..650eb72e 100644
--- a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/Activator.java
+++ b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/Activator.java
@@ -17,27 +17,11 @@ public class Activator implements BundleActivator {
private static BundleContext context;
- static BundleContext getContext() {
- return context;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.
- * BundleContext)
- */
@Override
public void start(BundleContext bundleContext) throws Exception {
Activator.context = bundleContext;
}
- /*
- * (non-Javadoc)
- *
- * @see
- * org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
- */
@Override
public void stop(BundleContext bundleContext) throws Exception {
Activator.context = null;
diff --git a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyPart.java b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyPart.java
index df636816..56dcba6f 100644
--- a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyPart.java
+++ b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyPart.java
@@ -720,20 +720,6 @@ public class CssSpyPart {
}
});
- /*
- * if ((specimen != null) && !specimen.isDisposed()) { // Reopen this
- * part from a toolbar and widget always displayed. update(); } else {
- * if ((specimen != null) && !specimen.isDisposed()) { // Reopen this
- * part from a toolbar and widget always displayed. update(); } else {
- * // Must set a specimen from application. Control control =
- * display.getCursorControl(); // it may be that only the shell was
- * selected if (control == null) { control = display.getActiveShell();
- * if (control.getParent() != null) { // Take the main shell of this
- * window (spy window) control = control.getParent(); } }
- * setSpecimen(control); } }
- */
-
- // update(); (called twice)
sashForm.setWeights(new int[] { 50, 50 });
widgetTreeViewer.getControl().setFocus();

Back to the top