CODE:
@ConvertAsProperties(dtd = "-//org.gephi.desktop.perspective//MyPanel//EN",autostore = false)@ServiceProvider(service=PerspectiveMember.class)public final class MyPanelTopComponent extends TopComponent implements PerspectiveMember {......... public boolean open(Perspective perspective) { return perspective instanceof LaboratoryPerspective; } public boolean close(Perspective perspective) { return true; }}
This seems to imply that close() does not have to be used at all, and this would result in the panel being associated with only one panel, is that correct?Specifically use close() method if you want your panel to be visible on several perspectives.
Statistics:Posted by aurora — 03 May 2011 03:56