Questions tagged [openide]
19 questions
3
votes
2 answers
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…

joseph
- 687
- 3
- 12
- 21
1
vote
1 answer
OpenIDE's Lookup fails with Gephi controller objects
I was able to run the demos just fine and build up a graph builder in my unit tests, but now when I deploy this and run on my local server I get NullPointerExceptions on some but not all of the lookups I call.
ProjectController pc =…

jmcniff
- 11
- 3
1
vote
2 answers
org.openide.util.Lookup Cannot Find Any Classes Implementing
SQLUtils.java:
import org.openide.util.Lookup;
import java.util.ServiceLoader; // This doesn't work either
public class SQLUtils {
public static DBDriver getDriver(String prefix) {
for(DBDriver e :…

3legit4quit
- 593
- 1
- 6
- 10
1
vote
2 answers
What does this code mean?
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));
…

joseph
- 687
- 3
- 12
- 21
1
vote
4 answers
1
vote
1 answer
Not able to cover a function with org.openide.nodes.Node method call using EasyMock
I recently came across a weird problem with EasyMock.
Here's the class which I am testing
package com.test.junits;
import org.openide.nodes.Node;
public class IsRoot {
public boolean isRoot(Node node) {
Node parentNode =…

rottweiler
- 1,201
- 1
- 12
- 23
1
vote
2 answers
How do I fix missing tokens error
I got this message while trying to build a maven-based open-ide application:
Some tokens required by included modules are not provided by included modules. The application will fail starting up. The missing tokens are:
…

BrainStorm.exe
- 1,565
- 3
- 23
- 40
0
votes
1 answer
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…

Allan Lykke Christensen
- 1,337
- 2
- 14
- 21
0
votes
0 answers
Set extended AbstractNode.java with auto expanded child nodes as default
I extended and use org.openide.nodes.AbstracNode.java class as CategoryNode.java in my codes.
I want to set CategoryNode.java and it's child as default expanded tree nodes(Auto expanded)when i render the nodes in UI component.
Any one can help me to…
0
votes
1 answer
Create new NetBeans "save as" module
My goal is simple - save the current HTML file in the NetBeans editor with one additional line at the top and bottom of the file, and with the extension of ".h".
This is my first attempt at a NetBeans module, but following some tutorials and…

Kevin S. Miller
- 913
- 1
- 9
- 21
0
votes
1 answer
How to override behaviour of ResetWindowsAction in netbeans open IDE?
I was trying to customize the reset window click action under menu items in netbeans platform using netbeans open IDE. Current implementation of netbeans clears up all the top components of property mode and output mode except for editor mode and…
0
votes
1 answer
while loop until empty string in online interpreter
Why does my program work in PyCharm but in online interpreter gives this error:
Traceback (most recent call last): File "Solution.py", line 4, in
s = input() EOFError: EOF when reading a line
Here's the part of code that matters:
i =…

Sang
- 11
0
votes
1 answer
JavaFX Toggle MenuButton
Is there a JavaFX MenuButton (specifically a SplitMenuButton) that also allows for toggling its selected state? The Swing equivalent would be the OpenIDE JToggleButton that you can create as:
JToggleButton button =…

wcmatthysen
- 445
- 4
- 19
0
votes
2 answers
how to implement listener?
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…

venom
- 23
- 4
0
votes
1 answer
How does lookup work?
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));
…

badgirl
- 65
- 4