I try to add a new perspective to support my GeoView plugin.
So I create GeoPerspective class in my plugin module, I add the @ServiceProvider and fill methods getDisplayName(), getName(), getIcon() and the bundle :
Code: Select all
@ServiceProvider(service = Perspective.class, position=400)
public class GeoPerspective implements Perspective {
@Override
public String getDisplayName() {
return NbBundle.getMessage(GeoPerspective.class, "GeoPerspective.name");
}
@Override
public String getName() {
return "GeoGroup";
}
@Override
public Icon getIcon() {
return ImageUtilities.loadImageIcon("org/gephi/desktop/perspective/plugin/resources/overview.png",false);
}
}
"Java.lang.NullPointerException
at org.gephi.desktop.perspective.PerspectiveController.select(PerspectiveController.java:126)
(...)"
I guess the system can't find my new perspective but don't know why, do you have any Idea ?
I'm new in developing world so please be indulgent if my question isn't relevant.
Thank you