Skip to content

Commit

Permalink
TEIIDDES-1529: Added logic to rebuild project after web service model…
Browse files Browse the repository at this point in the history
… imports are rebuilt.
  • Loading branch information
tejones committed Nov 6, 2012
1 parent 18adbb1 commit 7aa75e1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.core.resources.IncrementalProjectBuilder;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
Expand Down Expand Up @@ -666,6 +667,8 @@ else if (interfaceObj instanceof String) {

try {
if(model!=null) ModelBuildUtil.rebuildImports(model.getEmfResource(), false);
//Rebuild project
model.getResource().getProject().build(IncrementalProjectBuilder.CLEAN_BUILD, null);
} catch (final ModelWorkspaceException e) {
Util.log(e);
}
Expand Down

0 comments on commit 7aa75e1

Please sign in to comment.