diff options
author | ddunne | 2008-01-18 20:17:59 +0000 |
---|---|---|
committer | ddunne | 2008-01-18 20:17:59 +0000 |
commit | 141d00299ce5df621a737a2c76b62f79fc230e46 (patch) | |
tree | 4d87a1d860821a0cad102284cebbc5f59091ba02 | |
parent | d1752e7d0ebb9f57236b8be059c816dbeccf26c8 (diff) | |
download | org.eclipse.osee-141d00299ce5df621a737a2c76b62f79fc230e46.tar.gz org.eclipse.osee-141d00299ce5df621a737a2c76b62f79fc230e46.tar.xz org.eclipse.osee-141d00299ce5df621a737a2c76b62f79fc230e46.zip |
3 files changed, 98 insertions, 1 deletions
diff --git a/org.eclipse.osee.framework.ui.skynet/META-INF/MANIFEST.MF b/org.eclipse.osee.framework.ui.skynet/META-INF/MANIFEST.MF index d2c16b77515..608be62eabb 100644 --- a/org.eclipse.osee.framework.ui.skynet/META-INF/MANIFEST.MF +++ b/org.eclipse.osee.framework.ui.skynet/META-INF/MANIFEST.MF @@ -27,7 +27,12 @@ Require-Bundle: org.eclipse.ui, org.eclipse.osee.framework.ui.plugin, org.eclipse.osee.framework.ui.swt, org.eclipse.nebula.widgets, - org.eclipse.osee.framework.svn + org.eclipse.osee.framework.svn, + org.eclipse.jdt.launching, + org.eclipse.jdt.debug, + org.eclipse.jdt.debug.ui, + org.eclipse.debug.core, + org.eclipse.debug.ui Eclipse-LazyStart: true Export-Package: org.eclipse.osee.framework.ui.skynet, org.eclipse.osee.framework.ui.skynet.Import, diff --git a/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/autoRun/AutoRunStartup.java b/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/autoRun/AutoRunStartup.java new file mode 100644 index 00000000000..19e03488506 --- /dev/null +++ b/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/autoRun/AutoRunStartup.java @@ -0,0 +1,31 @@ +/******************************************************************************* + * Copyright (c) 2004, 2007 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.framework.ui.skynet.autoRun; + +import java.util.logging.Level; +import java.util.logging.Logger; +import org.eclipse.osee.framework.plugin.core.config.ConfigUtil; +import org.eclipse.ui.IStartup; + +/** + * @author Ryan D. Brooks + */ +public class AutoRunStartup implements IStartup { + + private static final Logger logger = ConfigUtil.getConfigFactory().getLogger(AutoRunStartup.class); + + /* (non-Javadoc) + * @see org.eclipse.ui.IStartup#earlyStartup() + */ + public void earlyStartup() { + logger.log(Level.INFO, "Running AutoRunStartup"); + } +}
\ No newline at end of file diff --git a/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/autoRun/KickoffOSEEAction.java b/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/autoRun/KickoffOSEEAction.java new file mode 100644 index 00000000000..35d489c4b1e --- /dev/null +++ b/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/autoRun/KickoffOSEEAction.java @@ -0,0 +1,61 @@ +/******************************************************************************* + * Copyright (c) 2004, 2007 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ + +package org.eclipse.osee.framework.ui.skynet.autoRun; + +import java.io.File; +import org.eclipse.core.resources.IFile; +import org.eclipse.debug.core.DebugPlugin; +import org.eclipse.debug.core.ILaunchConfiguration; +import org.eclipse.debug.core.ILaunchManager; +import org.eclipse.jface.action.Action; +import org.eclipse.osee.framework.ui.plugin.util.AWorkbench; +import org.eclipse.osee.framework.ui.plugin.util.AWorkspace; +import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin; +import org.eclipse.osee.framework.ui.skynet.util.OSEELog; + +/** + * @author Donald G. Dunne + */ +public class KickoffOSEEAction extends Action { + + @Override + public void run() { + try { + ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager(); + String launchFile = "osee.runConfigs.db.postgres\\OSEE product [postgresql localhost].launch"; + File file = AWorkspace.getWorkspaceFile(launchFile); + if (!file.exists()) { + AWorkbench.popup("ERROR", "Can't locate file \"" + launchFile + "\""); + return; + } + IFile iFile = AWorkspace.fileToIFile(file); + if (iFile == null || !iFile.exists()) { + AWorkbench.popup("ERROR", "Can't locate file \"" + launchFile + "\""); + return; + } + ILaunchConfiguration config = manager.getLaunchConfiguration(iFile); + config.launch(ILaunchManager.RUN_MODE, null); + } catch (Exception ex) { + OSEELog.logException(SkynetGuiPlugin.class, ex, true); + } + } + + public void kickoffOsee() { + // String command = + // "\"C:\\Program Files\\OSEE\\eclipse.exe\" -product org.eclipse.osee.framework.ui.product.osee" + " -showsplash org.eclipse.osee.framework.ui.product -data C:\\UserData\\workspace_autorun -vmargs -XX:MaxPermSize=256m -Xmx768M -DAtsAdmin -DEmailMe"; + //try { + // Process child = Runtime.getRuntime().exec(command); + //} catch (Exception ex) { + // OSEELog.logException(AtsPlugin.class, ex, true); + //} + } +} |