label.autoadd_temp = Add Temperature Factor annotation to alignment
label.structure_viewer = Default structure viewer
label.double_click_to_browse = Double-click to browse for file
-label.chimera_path = Path to Chimera(X) program
+label.chimera_path = Path to {0} program
label.chimera_path_tip = Jalview will first try any path entered here, else standard installation locations.<br>Double-click to browse for file.
label.invalid_chimera_path = Chimera path not found or not executable
label.chimera_missing = Chimera structure viewer not found.<br/>Please enter the path to Chimera (if installed),<br/>or download and install UCSF Chimera.
if (selectedItem.equals(ViewerType.JMOL.name()))
{
chimeraPath.setEnabled(false);
+ chimeraPathLabel.setEnabled(false);
return;
}
boolean found = false;
chimeraPath.setEnabled(true);
+ chimeraPathLabel.setEnabled(true);
+ chimeraPathLabel.setText(MessageManager
+ .formatMessage("label.chimera_path", selectedItem));
/*
- * Try user-specified and standard paths for Chimera executable.
+ * Try user-specified and standard paths for Chimera executable
*/
boolean isChimeraX = selectedItem.equals(ViewerType.CHIMERAX.name());
chimeraPath.setText(Cache
protected JComboBox<String> structViewer = new JComboBox<>();
+ protected JLabel chimeraPathLabel;
+
protected JTextField chimeraPath = new JTextField();
protected ButtonGroup mappingMethod = new ButtonGroup();
structureTab.add(viewerLabel);
structViewer.setFont(LABEL_FONT);
- structViewer.setBounds(new Rectangle(180, ypos, 120, height));
+ structViewer.setBounds(new Rectangle(190, ypos, 120, height));
structViewer.addItem(ViewerType.JMOL.name());
structViewer.addItem(ViewerType.CHIMERA.name());
structViewer.addItem(ViewerType.CHIMERAX.name());
structureTab.add(structViewer);
ypos += lineSpacing;
- JLabel pathLabel = new JLabel();
- pathLabel.setFont(new java.awt.Font("SansSerif", 0, 11));
- pathLabel.setHorizontalAlignment(SwingConstants.LEFT);
- pathLabel.setText(MessageManager.getString("label.chimera_path"));
- pathLabel.setBounds(new Rectangle(10, ypos, 160, height));
- structureTab.add(pathLabel);
+ chimeraPathLabel = new JLabel();
+ chimeraPathLabel.setFont(LABEL_FONT);// new Font("SansSerif", 0, 11));
+ chimeraPathLabel.setHorizontalAlignment(SwingConstants.LEFT);
+ chimeraPathLabel.setText(MessageManager
+ .formatMessage("label.chimera_path", "Chimera(X)"));
+ chimeraPathLabel.setBounds(new Rectangle(10, ypos, 170, height));
+ chimeraPathLabel.setEnabled(false);
+ structureTab.add(chimeraPathLabel);
chimeraPath.setFont(LABEL_FONT);
chimeraPath.setText("");
+ chimeraPath.setEnabled(false);
final String tooltip = JvSwingUtils.wrapTooltip(true,
MessageManager.getString("label.chimera_path_tip"));
chimeraPath.setToolTipText(tooltip);
- chimeraPath.setBounds(new Rectangle(180, ypos, 300, height));
+ chimeraPath.setBounds(new Rectangle(190, ypos, 290, height));
chimeraPath.addMouseListener(new MouseAdapter()
{
@Override
public void mouseClicked(MouseEvent e)
{
- if (e.getClickCount() == 2)
+ if (chimeraPath.isEnabled() && e.getClickCount() == 2)
{
String chosen = openFileChooser();
if (chosen != null)