Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Plugin: Add CVS via Script
Plugin: Add CVS via Script [message #916655] Wed, 19 September 2012 05:30
Joe Volmer is currently offline Joe Volmer
Messages: 1
Registered: September 2012
Junior Member
Hi there,

I'm writing an eclipse plugin to auto-import projects and preferences into a new workspace.
So you have a folder that contains some projects and a preference.epf data somewhere and as you open this folder as a new workspace with my plugin, the fresh workspace should automatically have the preferences of the .epf applied and the projects imported.

The whole thing does what it should beside the fact that projects added in CVS are not correctly imported, so you have the project but not the CVS-informations.

When importing it manually with eclipse Import...-Tab it works, so I think there must be a way to get it done.

I managed the import with IProjectDescription and IProject classes out of org.eclipse.core.resourcesPlugin

The concerning code is (String projectPath is given as parameter)

IProjectDescription description = ResourcesPlugin.getWorkspace().loadProjectDescription(new Path(projectPath).append(".project"));

dirName=getDirName(projectPath); //Just gets the name of the project's folder

IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(dirName);

project.create(description, null);
project.open(null);


Is there any method or class for handling with the CVS information?

Thanks

[Updated on: Wed, 19 September 2012 05:34]

Report message to a moderator

Previous Topic:How to determine JDT indentation tab size
Next Topic:How to move focus to the syntax error icons using keyboard?
Goto Forum:
  


Current Time: Wed Aug 20 18:36:24 EDT 2014

Powered by FUDForum. Page generated in 0.01561 seconds