Author: pwang
Date: 2012-01-05 23:10:15 -0800 (Thu, 05 Jan 2012)
New Revision: 27937
Modified:
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/actions/welcomescreen/HelpPanel.java
Log:
modified bugReport URL
Modified:
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/actions/welcomescreen/HelpPanel.java
===================================================================
---
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/actions/welcomescreen/HelpPanel.java
2012-01-06 01:02:19 UTC (rev 27936)
+++
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/actions/welcomescreen/HelpPanel.java
2012-01-06 07:10:15 UTC (rev 27937)
@@ -10,11 +10,13 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import java.util.Properties;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
+import org.cytoscape.property.CyProperty;
import org.cytoscape.util.swing.OpenBrowser;
public class HelpPanel extends JPanel {
@@ -35,11 +37,13 @@
private final Map<JLabel, String> urlMap;
private final OpenBrowser openBrowserServiceRef;
+ private final CyProperty<Properties> cyProps;
- HelpPanel(final OpenBrowser openBrowserServiceRef) {
+ HelpPanel(final OpenBrowser openBrowserServiceRef,
CyProperty<Properties> cyProps) {
labelSet = new ArrayList<JLabel>();
urlMap = new HashMap<JLabel, String>();
this.openBrowserServiceRef = openBrowserServiceRef;
+ this.cyProps = cyProps;
initComponents();
}
@@ -50,6 +54,13 @@
tutorial = new JLabel(" Tutorials >>");
bugReport = new JLabel(" Report a bug >>");
+ // get Cytoscape version
+ String cyversion =
this.cyProps.getProperties().getProperty("cytoscape.version.number");
+
+ // get OS string
+ String os_str = System.getProperty("os.name")+ "_"+
System.getProperty("os.version");
+ os_str = os_str.replace(" ", "_");
+
labelSet.add(about);
labelSet.add(manual);
labelSet.add(tutorial);
@@ -57,7 +68,7 @@
urlMap.put(about,
"http://www.cytoscape.org/what_is_cytoscape.html");
urlMap.put(manual,
"http://www.cytoscape.org/documentation_users.html");
urlMap.put(tutorial,
"http://opentutorials.cgl.ucsf.edu/index.php/Portal:Cytoscape");
- urlMap.put(bugReport, "http://www.cytoscape.org/");
+ urlMap.put(bugReport,
"http://chianti.ucsd.edu/cyto_web/bugreport?cyversion="+cyversion+"&os="+os_str);
for(final JLabel label: labelSet) {
label.setFont(LABEL_FONT);
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.