[yocto] [RFC refactor 19/21] Retrieve console from RemoteHelper instead of recreating it
Ioana Grigoropol
ioanax.grigoropol at intel.com
Wed Jun 5 10:00:20 PDT 2013
Signed-off-by: Ioana Grigoropol <ioanax.grigoropol at intel.com>
---
.../yocto/bc/ui/wizards/install/InstallWizard.java | 25 +-------------------
1 file changed, 1 insertion(+), 24 deletions(-)
diff --git a/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/install/InstallWizard.java b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/install/InstallWizard.java
index a253f05..8294219 100644
--- a/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/install/InstallWizard.java
+++ b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/install/InstallWizard.java
@@ -85,32 +85,9 @@ public class InstallWizard extends FiniteStateWizard implements
setWindowTitle("Yocto Project BitBake Commander");
setNeedsProgressMonitor(true);
-
- myConsole = findConsole("Yocto Project Console");
- IWorkbench wb = PlatformUI.getWorkbench();
- IWorkbenchWindow win = wb.getActiveWorkbenchWindow();
- IWorkbenchPage page = win.getActivePage();
- String id = IConsoleConstants.ID_CONSOLE_VIEW;
- try {
- IConsoleView view = (IConsoleView) page.showView(id);
- view.display(myConsole);
- } catch (Exception e) {
- e.printStackTrace();
- }
}
- private MessageConsole findConsole(String name) {
- ConsolePlugin plugin = ConsolePlugin.getDefault();
- IConsoleManager conMan = plugin.getConsoleManager();
- IConsole[] existing = conMan.getConsoles();
- for (int i = 0; i < existing.length; i++)
- if (name.equals(existing[i].getName()))
- return (MessageConsole) existing[i];
- // no console found, so create a new one
- MessageConsole myConsole = new MessageConsole(name, null);
- conMan.addConsoles(new IConsole[] { myConsole });
- return myConsole;
- }
+
public InstallWizard(IStructuredSelection selection) {
model = new Hashtable();
--
1.7.9.5
More information about the yocto
mailing list