return sv;
}
+
@Override
public String toString()
{
}
return "New View";
}
- public ViewerType getViewerType()
+ /**
+ *
+ * @return ViewerType for currently configured structure viewer
+ */
+ public static ViewerType getViewerType()
{
String viewType = Cache.getDefault(Preferences.STRUCTURE_DISPLAY,
ViewerType.JMOL.name());
return viewer;
}
+
public boolean isBusy()
{
if (sview != null)
}
});
- btn_newView = new JButton(MessageManager.getString("action.new_view"));
+ btn_newView = new JButton(
+ MessageManager.formatMessage("action.new_structure_view_with",
+ StructureViewer.getViewerType().toString()));
btn_newView.setFont(VERDANA_12);
btn_newView.addActionListener(new java.awt.event.ActionListener()
{
}
}
});
+
+ // TODO: JAL-3898 - get list of available external programs to view structures with
btn_add = new JButton(MessageManager.getString("action.add"));
btn_add.setFont(VERDANA_12);