Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » add javanature into my own project
add javanature into my own project [message #217601] Sun, 23 October 2005 14:08 Go to next message
Yong cheng is currently offline Yong chengFriend
Messages: 46
Registered: July 2009
Member
Hi, everyone,

I'm writing my own eclipse plugin. I want to create a new project with my
own nature plus java nature. I used the following code to add java nature
into my project, but I don't know how to add all the configurations as
src, class, lib...

natures = description.getNatureIds();
newNatures = new String[natures.length + 1];
System.arraycopy(natures, 0, newNatures, 0, natures.length);
newNatures[natures.length] = "org.eclipse.jdt.core.javanature";
description.setNatureIds(newNatures);
project.setDescription(description, null);

Can anyone help me to solve this problem?

cheers,

Lucia
Re: add javanature into my own project [message #661530 is a reply to message #217601] Fri, 25 March 2011 07:34 Go to previous messageGo to next message
kpi41  is currently offline kpi41 Friend
Messages: 1
Registered: March 2011
Junior Member
i found the same problem.
please tell me when you found the answer
thank you
Re: add javanature into my own project [message #661861 is a reply to message #661530] Mon, 28 March 2011 10:22 Go to previous message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
After adding the java nature you need to add the class path. Look at http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .jdt.doc.isv/guide/jdt_api_classpath.htm to add the other parts.
Previous Topic:images when exporting to a .jar
Next Topic:Extending Rename Refactoring for Annotation Values support
Goto Forum:
  


Current Time: Sat Apr 27 00:05:48 GMT 2024

Powered by FUDForum. Page generated in 0.03146 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top