From: gmungoc Date: Tue, 18 Nov 2014 11:51:46 +0000 (+0000) Subject: JAL-1580 Chimera path tooltip, removed focusListener X-Git-Tag: Release_2_8_2b1^2~25 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=28bcbcd564174ec3cc873d6cee5b9879d2f963c2;p=jalview.git JAL-1580 Chimera path tooltip, removed focusListener --- diff --git a/resources/lang/Messages.properties b/resources/lang/Messages.properties index 952f902..5d3667b 100644 --- a/resources/lang/Messages.properties +++ b/resources/lang/Messages.properties @@ -249,7 +249,7 @@ label.autoadd_secstr = Add secondary structure annotation to alignment label.autoadd_temp = Add Temperature Factor annotation to alignment label.structure_viewer = Default structure viewer label.chimera_path = Path to Chimera program -label.chimera_path_tip = Jalview will try standard locations, plus any path entered here. +label.chimera_path_tip = Jalview will first try any path entered here, else standard installation locations.
Double-click to browse for file. label.invalid_chimera_path = Chimera path not found or not executable label.min_colour = Minimum Colour label.max_colour = Maximum Colour diff --git a/src/jalview/jbgui/GPreferences.java b/src/jalview/jbgui/GPreferences.java index 9d691ca..5569c24 100755 --- a/src/jalview/jbgui/GPreferences.java +++ b/src/jalview/jbgui/GPreferences.java @@ -37,7 +37,6 @@ import java.awt.Insets; import java.awt.Rectangle; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; -import java.awt.event.FocusAdapter; import java.awt.event.FocusEvent; import java.awt.event.KeyEvent; import java.awt.event.MouseAdapter; @@ -790,8 +789,9 @@ public class GPreferences extends JPanel pathLabel.setFont(new java.awt.Font("SansSerif", 0, 11)); pathLabel.setHorizontalAlignment(SwingConstants.LEFT); pathLabel.setText(MessageManager.getString("label.chimera_path")); - pathLabel.setToolTipText(MessageManager - .getString("label.chimera_path_tip")); + final String tooltip = JvSwingUtils.wrapTooltip(true, + MessageManager.getString("label.chimera_path_tip")); + pathLabel.setToolTipText(tooltip); pathLabel.setBounds(new Rectangle(10, ypos, 140, height)); structureTab.add(pathLabel); @@ -815,15 +815,6 @@ public class GPreferences extends JPanel }); structureTab.add(chimeraPath); - structureTab.addFocusListener(new FocusAdapter() - { - @Override - public void focusLost(FocusEvent e) - { - validateStructure(e); - } - - }); return structureTab; }