[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] How do i Import a javaproject into Workspace
|
- From: hoalq@xxxxxxxxxxxx (Le Quang Hoa)
- Date: Fri, 25 Jul 2003 03:35:43 +0000 (UTC)
- Newsgroups: eclipse.platform.swt
- Organization: http://news.eclipse.org
- User-agent: NewsPortal/0.25 (http://florian-amrhein.de/newsportal/)
Hi all
I am an user of eclipse. I 've just learning about eclipse2.1.1 in a week.
I want to programmatically import a java project into workspace. Who have
resources or path resource can send to me.
* How I can import a project into workspace through programmatically?
* Why my code following don't give myWork. this return myWork=null?
My code is :
//my code
import org.eclipse.core.resources.*;
import org.eclipse.core.runtime.*;
import org.eclipse.jdt.core.*;
public class ImportSample {
private IWorkspace myWork=null;
private IProject myProject=null;
public static void main(String[] agr){
myWork=ResourcePlugin.getWorksapce();
myProject=myWork.getProject();
........................
}
}
thanks very much
pls answer as soon as you can
Le Quang Hoa