summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2010-03-23 19:21:33 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2010-03-23 19:21:33 +0000
commit777ecc0a233137e542d4ace2496efd997e79826b (patch)
tree6d8fc02aea7a7993c55a654b0689ea02db561354
parent5e791284a317c6e690e325a4aefeadd152c5ae9f (diff)
Configure JDT early
Set .svn as private members git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@926740 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--sandbox/rfeng/eclipse-workspace/src/main/java/org/apache/tuscany/eclipse/workspace/WorkspaceConfigurator.java18
1 files changed, 16 insertions, 2 deletions
diff --git a/sandbox/rfeng/eclipse-workspace/src/main/java/org/apache/tuscany/eclipse/workspace/WorkspaceConfigurator.java b/sandbox/rfeng/eclipse-workspace/src/main/java/org/apache/tuscany/eclipse/workspace/WorkspaceConfigurator.java
index 8f216bd5c9..0c548de8e8 100644
--- a/sandbox/rfeng/eclipse-workspace/src/main/java/org/apache/tuscany/eclipse/workspace/WorkspaceConfigurator.java
+++ b/sandbox/rfeng/eclipse-workspace/src/main/java/org/apache/tuscany/eclipse/workspace/WorkspaceConfigurator.java
@@ -35,6 +35,7 @@ import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IProjectDescription;
import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IResourceVisitor;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.core.resources.IncrementalProjectBuilder;
@@ -69,6 +70,8 @@ public class WorkspaceConfigurator implements IApplication {
public Object start(final IApplicationContext appcontext) throws Exception {
IProgressMonitor monitor = createMonitor();
final String[] args = (String[])appcontext.getArguments().get(IApplicationContext.APPLICATION_ARGS);
+
+ configureJDT();
setM2REPOClassPathVariable(args, monitor);
setTargetPlatform(args, monitor);
configureWorkspace(args, monitor);
@@ -140,8 +143,6 @@ public class WorkspaceConfigurator implements IApplication {
sourceRoot = new File(sourceRootArg);
}
- configureJDT();
-
if (sourceRoot != null) {
importProjects(sourceRoot, monitor);
}
@@ -186,6 +187,19 @@ public class WorkspaceConfigurator implements IApplication {
p.delete(false, true, monitor);
}
}
+
+ workspaceRoot.accept(new IResourceVisitor() {
+
+ public boolean visit(IResource res) throws CoreException {
+ if (res.getName().equals(".svn")) {
+ if (!res.isTeamPrivateMember()) {
+ res.setTeamPrivateMember(true);
+ }
+ return false;
+ }
+ return true;
+ }
+ });
}