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.
+label.chimera_failed = Error opening Chimera - is it installed?\nCheck path in Preferences, Structure
label.min_colour = Minimum Colour
label.max_colour = Maximum Colour
label.use_original_colours = Use Original Colours
for (String chimeraPath : chimeraPaths)
{
File path = new File(chimeraPath);
+ // enable the next line to simulate Chimera not installed
+ // File path = new File(chimeraPath + "x");
if (!path.canExecute())
{
error += "File '" + path + "' does not exist.\n";
jalview.gui.Desktop.addInternalFrame(this, jmb.getViewerTitle("Chimera", true),
getBounds().width, getBounds().height);
- jmb.launchChimera();
+ if (!jmb.launchChimera())
+ {
+ JOptionPane
+ .showMessageDialog(
+ Desktop.desktop,
+ MessageManager.getString("label.chimera_failed"),
+ MessageManager.getString("label.error_loading_file"),
+ JOptionPane.ERROR_MESSAGE);
+ this.dispose();
+ return;
+ }
if (this.chimeraSessionFile != null)
{