diff options
author | tle | 2010-04-27 03:40:33 +0000 |
---|---|---|
committer | tle | 2010-04-27 03:40:33 +0000 |
commit | e20a4f97c3a289984139d73a7fda64602f513014 (patch) | |
tree | 76e9a7aad0a0d9ef29c07bebbbc8c366dab616fc /jpa | |
parent | f485daf1fb48a0cc5af463b0fa2fc996e8db96c2 (diff) | |
download | webtools.dali-e20a4f97c3a289984139d73a7fda64602f513014.tar.gz webtools.dali-e20a4f97c3a289984139d73a7fda64602f513014.tar.xz webtools.dali-e20a4f97c3a289984139d73a7fda64602f513014.zip |
Added project refresh after generation
Diffstat (limited to 'jpa')
2 files changed, 6 insertions, 0 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jaxb.ui/src/org/eclipse/jpt/jaxb/core/internal/ClassesGenerator.java b/jpa/plugins/org.eclipse.jpt.jaxb.ui/src/org/eclipse/jpt/jaxb/core/internal/ClassesGenerator.java index 327569171d..74e50d0409 100644 --- a/jpa/plugins/org.eclipse.jpt.jaxb.ui/src/org/eclipse/jpt/jaxb/core/internal/ClassesGenerator.java +++ b/jpa/plugins/org.eclipse.jpt.jaxb.ui/src/org/eclipse/jpt/jaxb/core/internal/ClassesGenerator.java @@ -13,6 +13,7 @@ import java.io.File; import java.util.ArrayList; import java.util.List; +import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IProgressMonitor; @@ -149,6 +150,7 @@ public class ClassesGenerator if ( ! this.isDebug) { this.removeLaunchConfiguration(LAUNCH_CONFIG_NAME); } + this.javaProject.getProject().refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor()); } catch (CoreException e) { throw new RuntimeException(e); diff --git a/jpa/plugins/org.eclipse.jpt.jaxb.ui/src/org/eclipse/jpt/jaxb/core/internal/SchemaGenerator.java b/jpa/plugins/org.eclipse.jpt.jaxb.ui/src/org/eclipse/jpt/jaxb/core/internal/SchemaGenerator.java index 2405666a8d..92b25a46c2 100644 --- a/jpa/plugins/org.eclipse.jpt.jaxb.ui/src/org/eclipse/jpt/jaxb/core/internal/SchemaGenerator.java +++ b/jpa/plugins/org.eclipse.jpt.jaxb.ui/src/org/eclipse/jpt/jaxb/core/internal/SchemaGenerator.java @@ -15,6 +15,7 @@ import java.util.ArrayList; import java.util.List; import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.FileLocator; import org.eclipse.core.runtime.IPath; @@ -52,7 +53,9 @@ public class SchemaGenerator static public String JAXB_SCHEMA_GEN_JAR = JAXB_SCHEMA_GEN_PACKAGE_NAME + "_"; //$NON-NLS-1$ static public String ECLIPSELINK_JAXB_SCHEMA_GEN_JAR = ECLIPSELINK_JAXB_SCHEMA_GEN_PACKAGE_NAME + "_"; //$NON-NLS-1$ + static public String JAXB_GENERIC_SCHEMA_GEN_CLASS = "javax.xml.bind.JAXBContext"; //$NON-NLS-1$ + static public String JAXB_ECLIPSELINK_SCHEMA_GEN_CLASS = "org.eclipse.persistence.jaxb.JAXBContext"; //$NON-NLS-1$ static public String PLUGINS_DIR = "plugins/"; //$NON-NLS-1$ private IVMInstall jre; @@ -151,6 +154,7 @@ public class SchemaGenerator if ( ! this.isDebug) { this.removeLaunchConfiguration(LAUNCH_CONFIG_NAME); } + this.project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor()); } catch (CoreException e) { throw new RuntimeException(e); |