Author: dgeraskov
Date: 2011-02-02 08:45:34 -0500 (Wed, 02 Feb 2011)
New Revision: 28918
Modified:
branches/jbosstools-3.2.x/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/CodeGenerationLaunchDelegate.java
Log:
https://issues.jboss.org/browse/JBIDE-8235
The launch didn't appear in the menu like previously executed.
Modified:
branches/jbosstools-3.2.x/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/CodeGenerationLaunchDelegate.java
===================================================================
---
branches/jbosstools-3.2.x/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/CodeGenerationLaunchDelegate.java 2011-02-02
13:03:34 UTC (rev 28917)
+++
branches/jbosstools-3.2.x/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/CodeGenerationLaunchDelegate.java 2011-02-02
13:45:34 UTC (rev 28918)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * Copyright 2005-2011, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
@@ -198,15 +198,13 @@
lcwc.setAttribute(DebugPlugin.ATTR_PROCESS_FACTORY_ID,
"org.eclipse.ant.ui.remoteAntProcessFactory"); //$NON-NLS-1$
// refresh whole workspace
//lcwc.setAttribute(RefreshUtil.ATTR_REFRESH_SCOPE, RefreshUtil.MEMENTO_WORKSPACE);
- return lcwc;
+
+ //
https://issues.jboss.org/browse/JBIDE-8235
+ throw new IllegalStateException("'Run in External Process' is not fully
implemented. Please do not use it"); //$NON-NLS-1$
+ //1. return lcwc(); - this doesn't print output to console
+ //2. return lcwc.doSave();- This works, but we don't want these temp attributes to
be saved
}
- public ILaunch getLaunch(ILaunchConfiguration configuration, String mode)
- throws CoreException {
- configuration = updateLaunchConfig(configuration);
- return super.getLaunch(configuration, mode);
- }
-
public void launch(ILaunchConfiguration configuration, String mode,
ILaunch launch, IProgressMonitor monitor) throws CoreException {
Assert.isNotNull(configuration);