public SparqlScapePlugin() throws Exception {
   CytoscapeDesktop desktop = Cytoscape.getDesktop();
   CytoPanel cytoPanel = desktop.getCytoPanel(SwingConstants.WEST);
   configureMenu = new ConfigureMenuAction(this);
   Cytoscape.getDesktop().getCyMenus().addCytoscapeAction((CytoscapeAction) configureMenu);
   tpContainer = new SparqlScapeContainer(this);
   cytoPanel.add("SPARQLScape", null, tpContainer, "SPARQLScape");
   cytoPanel.setState(CytoPanelState.DOCK);
 }
 public void close() {
   CytoPanel cytoPanel = ((CytoPanel) getParent().getParent());
   cytoPanel.remove(this);
   removeListeners();
   MetScapePlugin.getPluginData().setPathwayFilterPanelOpen(false);
 }