summaryrefslogtreecommitdiffstats
path: root/sandbox/rfeng/eclipse-workspace/src/main/java/org/apache
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/rfeng/eclipse-workspace/src/main/java/org/apache')
-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;
+ }
+ });
}