openide

Should an OpenIDE FileObject be closed after creation?

When creating modules on the NetBeans platform, the FileObject object represents a file in the virtual file system of the IDE. Creating new FileObjects is simple, but does NetBeans completely control the reference to the actual File, or should I close FileObject myself? My code is like this: FileObject appRoot = FileUtil.getConfigRoot()...

tooltip causing deadlock in swing/netbeans-rcp

Hi I have a netbeans platform based app. It has an outlineview, with several columns. when i have my app maximised. and hover over the right most column to display the tooltip (that has to be adjusted due to end of screen). the application hangs (or rather, eventqueue is blocked). Sometimes it starts running again after a few seconds, ...

netbeans platform tutorial problem

I am reading the Netbeans Platform Quick Start tutorial (http://platform.netbeans.org/tutorials/nbm-quick-start.html), and I do not clearly understand the 6th part in the section "A Modular Application Using Lookup", the TIP: At compile time, the @ServiceProvider annotation will create a META-INF/services folder with a file that regi...

Netbeans annotation error

NetBeans do not accept my code. Why? See the pic. ...

How do you set the DisplayName of a Library programmatically?

I have a Library that I create programmatically with LibraryManager.createLibrary(String,String,Map) and there does not appear to be a straight-forward way to change the DisplayName property. What is the way to do this? ...

What does this code mean?

Hello, I do not know, what is function of code lookups.singleton in code below public class ProjectNode extends AbstractNode { public ProjectNode(MainProject obj, ProjectsChildren children) { super (children, Lookups.singleton(obj)); setDisplayName ( obj.getName()); } } ...

How does lookup work?

Hello. I have BeanTreeView, and some nodes in it. Every node has constructor public class ProjectNode extends AbstractNode { public ProjectNode(MainProject obj, DiagramsChildren childrens) { super (new ProjectsChildren(), Lookups.singleton(obj)); setDisplayName ( obj.getName()); } I set Rootnode as a root for tree in Explor...

how to implement listener?

Hello, I have some dynamic tree. And now I need to implement some functionality, that happend every time, when simply click on node. (I mean only one click on node, which "makes it blue") *EDIT2: * I use beanTreeView and package openide How to implement listener of this action? EDIT - added pseudocode public class MyNode extends Abst...