|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
how do I import netbeans packages into my code?Here are the imports I would like to make:
import org.netbeans.api.java.source.CompilationController; import org.netbeans.api.java.source.CompilationInfo; import org.netbeans.api.java.source.WorkingCopy; import org.netbeans.api.java.source.ElementUtilities; import org.netbeans.api.java.source.CommentUtilities; import org.netbeans.api.java.source.TreeUtilities; import org.netbeans.api.java.source.Comment; import org.netbeans.api.java.source.TreeMaker; my question is- where are these classes/jars. I have the NB source on my machine, and I compiled it. I could look through the resultant .class files for each of these and try to include that very .class file, but that doesn't seem right to me. There *ought* to be somewhere on my machine where these classes live already, if I had never compiled the source, right? In fact, since they're api, there *ought* to be a well known place where all api utilizers know to go... somehow I missed the memo... TIA |
|
|
Re: how do I import netbeans packages into my code?Doing "ProjectProperties>Libraries>Add" and in the "Filter:" entering
"treemaker" and "Module:" says "JavaSource". Adding this to my project should allow the imports. -ernie On 10/27/2009 10:37 AM, software visualization wrote: > Here are the imports I would like to make: > > import org.netbeans.api.java.source.CompilationController; > import org.netbeans.api.java.source.CompilationInfo; > import org.netbeans.api.java.source.WorkingCopy; > import org.netbeans.api.java.source.ElementUtilities; > import org.netbeans.api.java.source.CommentUtilities; > import org.netbeans.api.java.source.TreeUtilities; > import org.netbeans.api.java.source.Comment; > import org.netbeans.api.java.source.TreeMaker; > > my question is- where are these classes/jars. > > I have the NB source on my machine, and I compiled it. I could look > through the resultant .class files for each of these and try to > include that very .class file, but that doesn't seem right to me. > There *ought* to be somewhere on my machine where these classes live > already, if I had never compiled the source, right? In fact, since > they're api, there *ought* to be a well known place where all api > utilizers know to go... somehow I missed the memo... > > TIA |
|
|
Re: how do I import netbeans packages into my code?ernie,
When I do project properties>libraries>add I don't see any filter.. it seems to land me in a world of global libraries whose names don't mean anything to me at all really. here's a screen shot of what I see. I'm on 6.8 BETA. thanks! On Tue, Oct 27, 2009 at 2:12 PM, Ernie Rael <err@...> wrote: Doing "ProjectProperties>Libraries>Add" and in the "Filter:" entering "treemaker" and "Module:" says "JavaSource". Adding this to my project should allow the imports. |
|
|
Re: how do I import netbeans packages into my code?
It doesn't look like you are working on a NB module. Looks like a plain
java project.
On 10/27/2009 11:19 AM, software visualization wrote: ernie, |
|
|
Re: how do I import netbeans packages into my code?well..... that's a lot easier now, isn't it?
TNX! On Tue, Oct 27, 2009 at 2:46 PM, Ernie Rael <err@...> wrote:
|
| Free embeddable forum powered by Nabble | Forum Help |