import jalview.structure.StructureSelectionManager;
import jalview.structure.VamsasSource;
import jalview.util.MessageManager;
-import jalview.util.StringUtils;
import jalview.viewmodel.AlignmentViewport;
import jalview.ws.params.AutoCalcSetting;
if (openSplitPane)
{
+ // TODO: move this kind of constructor stuff to a factory/controller
+ // method ?
/*
* Open in split pane. DNA sequence above, protein below.
*/
cdnaFrame.setVisible(true);
proteinFrame.setVisible(true);
String sep = String.valueOf(File.separatorChar);
- String proteinShortName = StringUtils.getLastToken(
- proteinFrame.getTitle(), sep);
- String dnaShortName = StringUtils.getLastToken(cdnaFrame.getTitle(),
- sep);
+ String proteinShortName = proteinFrame.getTitle().substring(
+ proteinFrame.getTitle().lastIndexOf(sep) + 1);
+ String dnaShortName = cdnaFrame.getTitle().substring(
+ cdnaFrame.getTitle().lastIndexOf(sep) + 1);
String linkedTitle = MessageManager.formatMessage(
"label.linked_view_title", dnaShortName, proteinShortName);
JInternalFrame splitFrame = new SplitFrame(cdnaFrame, proteinFrame);