Author: scabanovich
Date: 2010-10-18 06:22:09 -0400 (Mon, 18 Oct 2010)
New Revision: 25894
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCoreBuilder.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCorePlugin.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
Log:
JBIDE-7348
https://jira.jboss.org/browse/JBIDE-7348
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCoreBuilder.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCoreBuilder.java 2010-10-18
10:21:57 UTC (rev 25893)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCoreBuilder.java 2010-10-18
10:22:09 UTC (rev 25894)
@@ -52,7 +52,7 @@
IResourceDelta delta = getDelta(getProject());
- if (seamProject.hasNoStorage() || delta == null ) {
+ if ((seamProject.hasNoStorage() && !seamProject.isBuilt()) || delta == null )
{
//Resource visitor filters project members to be processed
getProject().accept(resourceVisitor);
} else {
@@ -68,6 +68,7 @@
// } catch (IOException e) {
// SeamCorePlugin.getDefault().logError(e);
// }
+ seamProject.setBuilt(true);
seamProject.postBuild();
} finally {
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCorePlugin.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCorePlugin.java 2010-10-18
10:21:57 UTC (rev 25893)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCorePlugin.java 2010-10-18
10:22:09 UTC (rev 25894)
@@ -94,7 +94,7 @@
SeamProject sp = (SeamProject)SeamCorePlugin.getSeamProject(context.getProject(),
false);
try {
if(sp != null && sp.getModificationsSinceLastStore() > 0) {
- sp.printModifications();
+// sp.printModifications();
//Not any project is a seam project
sp.store();
}
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java 2010-10-18
10:21:57 UTC (rev 25893)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java 2010-10-18
10:22:09 UTC (rev 25894)
@@ -111,6 +111,7 @@
ProjectValidationContext validationContext;
protected int modifications = 0;
+ protected boolean isBuilt = false;
/**
*
@@ -431,6 +432,7 @@
if(file != null && file.isFile()) {
file.delete();
}
+ isBuilt = false;
classPath.clean();
postponeFiring();
IPath[] ps = sourcePaths2.keySet().toArray(new IPath[0]);
@@ -497,6 +499,14 @@
((validationContext != null) ? validationContext.getModificationsSinceLastStore() :
0);
}
+ public void setBuilt(boolean b) {
+ isBuilt = b;
+ }
+
+ public boolean isBuilt() {
+ return isBuilt;
+ }
+
public void printModifications() {
System.out.println(project.getName());
System.out.println("" + modifications);