Fixed code review findings + upgrade to lttng-tools 2.0-pre20
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / control / ControlView.java
index 85570b2f80c5551aab59360f3c572f68b6062170..5d04446209899e682240697f92537eec1159c876 100644 (file)
@@ -108,13 +108,6 @@ public class ControlView extends ViewPart implements ITraceControlComponentChang
     @Override
     public void setFocus() {
         fTreeViewer.getControl().setFocus();
-        final ISelection sel = fTreeViewer.getSelection();
-        if (sel == null) {
-            fTreeViewer.setSelection(new StructuredSelection(fRoot));
-            fTreeViewer.setSelection(null);
-            return;
-        }
-        fTreeViewer.setSelection(sel);
     }
     
     /*
@@ -164,7 +157,6 @@ public class ControlView extends ViewPart implements ITraceControlComponentChang
     // Helper methods
     // ------------------------------------------------------------------------
     private void createContextMenu() {
-     // This is new code
         // First we create a menu Manager
         final MenuManager menuManager = new MenuManager();
         final Menu menu = menuManager.createContextMenu(fTreeViewer.getTree());
This page took 0.024796 seconds and 5 git commands to generate.