import existing project into eclipse using plugin or javacode

If we want to import an existing project, we do the following

 File->import->general->Existing project into workspace->Select project….->Finish.. 

Can we do the same by using javacode or eclipse-plugin… Is there any such code available….

please help me...

Answers


IProjectDescription description = ResourcesPlugin.getWorkspace().loadProjectDescription(  new Path("PROJECT_PATH/.project"));
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(description.getName());
project.create(description, null);
project.open(null);

Need Your Help

Use a WPF Style to simplify repetitive MultiBindings

wpf xaml multibinding

I am displaying the results of several tests. There are 2 variables on each test, and the text and color of the displayed results vary with both. I have this working, but there's a lot of repetitive

jQuery autocomplete - associating another value with selection

php jquery codeigniter autocomplete

I'm building a jquery function that pulls from a database in order to allow users to select a location. These locations have two relevant columns: Name, city and ID.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.