From 777ecc0a233137e542d4ace2496efd997e79826b Mon Sep 17 00:00:00 2001 From: rfeng Date: Tue, 23 Mar 2010 19:21:33 +0000 Subject: 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 --- .../eclipse/workspace/WorkspaceConfigurator.java | 18 ++++++++++++++++-- 1 file 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; + } + }); } -- cgit v1.2.3