error = format + "\n" + error;
}
}
-
+
if ((al != null) && (al.getHeight() > 0))
{
if (viewport != null)
alignFrame = new AlignFrame(al, AlignFrame.DEFAULT_WIDTH,
AlignFrame.DEFAULT_HEIGHT);
- alignFrame.statusBar.setText(MessageManager.formatMessage("label.successfully_loaded_file", new String[]{title}));
+ alignFrame.statusBar.setText(MessageManager.formatMessage(
+ "label.successfully_loaded_file", new String[]
+ { title }));
if (!protocol.equals(AppletFormatAdapter.PASTE))
alignFrame.setFileName(file, format);
if (raiseGUI)
{
// add the window to the GUI
- // note - this actually should happen regardless of raiseGUI status in Jalview 3
- // TODO: define 'virtual desktop' for benefit of headless scripts that perform queries to find the 'current working alignment'
+ // note - this actually should happen regardless of raiseGUI
+ // status in Jalview 3
+ // TODO: define 'virtual desktop' for benefit of headless scripts
+ // that perform queries to find the 'current working alignment'
Desktop.addInternalFrame(alignFrame, title,
AlignFrame.DEFAULT_WIDTH, AlignFrame.DEFAULT_HEIGHT);
}
public void run()
{
JOptionPane.showInternalMessageDialog(Desktop.desktop,
- errorMessage, MessageManager.getString("label.error_loading_file"),
+ errorMessage, MessageManager
+ .getString("label.error_loading_file"),
JOptionPane.WARNING_MESSAGE);
}
});
public void run()
{
javax.swing.JOptionPane.showInternalMessageDialog(
- Desktop.desktop, MessageManager.formatMessage("label.problems_opening_file", new String[]{file}),
- MessageManager.getString("label.file_open_error"),
+ Desktop.desktop, MessageManager.formatMessage(
+ "label.problems_opening_file", new String[]
+ { file }), MessageManager
+ .getString("label.file_open_error"),
javax.swing.JOptionPane.WARNING_MESSAGE);
}
});