Commit 1d40634d authored by Philipp Spohr's avatar Philipp Spohr
Browse files

Changed title of CyBrowser, still no success

parent aa18c9b4
......@@ -26,7 +26,7 @@ package de.hhu.ba.yoshikoWrapper.cytoUtil;
import java.awt.Component;
import org.cytoscape.application.swing.CytoPanel;
import org.cytoscape.application.swing.CytoPanelComponent;
import org.cytoscape.application.swing.CytoPanelComponent2;
import org.cytoscape.application.swing.CytoPanelName;
import de.hhu.ba.yoshikoWrapper.core.CyCore;
......@@ -45,9 +45,9 @@ public class CyUtilities {
CytoPanel resultPanel = CyCore.swing.getCytoPanel(CytoPanelName.EAST);
for (int i= 0; i< resultPanel.getCytoPanelComponentCount(); i++) {
Component component = resultPanel.getComponentAt(i);
if (component instanceof CytoPanelComponent) {
CytoPanelComponent cmp = (CytoPanelComponent) component;
if (cmp.getTitle().equals("CyBrowser")) {
if (component instanceof CytoPanelComponent2) {
CytoPanelComponent2 cmp = (CytoPanelComponent2) component;
if (cmp.getTitle().contains("YoshikoInfo")) {
resultPanel.setSelectedIndex(i);
return;
}
......
......@@ -29,6 +29,7 @@ public final class HelpLinks {
public static final Map<String, Object> mainInfo = new HashMap<String,Object>();
static {
mainInfo.put("url", "file:///home/philipp/workspace/cs/cytoscape-tutorials/presentations/yoshiko.html");
mainInfo.put("title", "YoshikoInfo");
//mainInfo.put("url", "https://spqrph.github.io/cytoscape-tutorials/presentations/yoshiko.html#/title");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment