Skip to content
Snippets Groups Projects
Commit 1d40634d authored by Philipp Spohr's avatar Philipp Spohr
Browse files

Changed title of CyBrowser, still no success

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