[MOBY-guts] biomoby commit
Eddie Kawas
kawas at dev.open-bio.org
Fri May 30 15:49:31 UTC 2008
kawas
Fri May 30 11:49:30 EDT 2008
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard
In directory dev.open-bio.org:/tmp/cvs-serv18196/src/main/org/biomoby/service/dashboard
Modified Files:
PerlMoSeSPanel.java
Log Message:
added a default font when a user doesnt have one
added default text in the Perl path field
moby-live/Java/src/main/org/biomoby/service/dashboard PerlMoSeSPanel.java,1.6,1.7
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/PerlMoSeSPanel.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/PerlMoSeSPanel.java 2008/05/27 23:10:54 1.6
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/dashboard/PerlMoSeSPanel.java 2008/05/30 15:49:30 1.7
@@ -379,6 +379,7 @@
JTextFieldWithHistory lib1 = createText (null, PM_PERL_LIB_1, PM_PERL_LIB_1);
JTextFieldWithHistory lib2 = createText (null, PM_PERL_LIB_2, PM_PERL_LIB_2);
JTextFieldWithHistory install_path = createText (null, PM_SCRIPTS_INSTALL_DIR, PM_SCRIPTS_INSTALL_DIR);
+ install_path.setText(is_windows_pc ? "perl.exe" : "/usr/bin/perl");
JTextFieldWithHistory perl_install_path = createText(null, PM_PERL_INSTALL_DIR, PM_PERL_INSTALL_DIR);
SwingUtils.addComponent(sPanel, new JLabel("Perl Path: "), 0, 0, 1, 1, NONE, NWEST, 0.0, 0.0);
@@ -683,6 +684,10 @@
String[] fontFamilies = env.getAvailableFontFamilyNames();
int index = 0;
String saved_font = getPrefValue(PM_EDITOR_FONT, "");
+ if (saved_font.equals("")) {
+ saved_font = new Font(null).getName();
+ setPrefValue(PM_EDITOR_FONT, saved_font);
+ }
if (saved_font != null && !saved_font.trim().equals("")) {
index = 0;
for (String f:fontFamilies) {
@@ -698,7 +703,7 @@
// set up the combobox
fonts = new JComboBox(fontFamilies);
- fonts.setSelectedIndex(index >= fontFamilies.length -1 ? 0 : index);
+ fonts.setSelectedIndex(index >= fontFamilies.length ? 0 : index);
// add a listener
fonts.addItemListener(new ItemListener(){
public void itemStateChanged(ItemEvent e) {
More information about the MOBY-guts
mailing list