}
else
{
+ // TODO 2.9.x feature
System.out.println("MERGE WITH OLD FRAME");
// TODO: modify alignment in original frame, replacing old for new
// alignment using the commands.EditCommand model to ensure the update can
addSortByMenuItems(af, alorders);
}
+ // TODO: refactor retrieve and show as new splitFrame as Desktop method
+
/*
* If alignment was requested from one half of a SplitFrame, show in a
* SplitFrame with the other pane similarly aligned.
*/
AlignFrame requestedBy = getRequestingAlignFrame();
- if (requestedBy != null && requestedBy.getSplitViewContainer() != null)
+ if (requestedBy != null && requestedBy.getSplitViewContainer() != null
+ && requestedBy.getSplitViewContainer().getComplement(requestedBy)!=null)
{
AlignmentI complement = requestedBy.getSplitViewContainer()
.getComplement(requestedBy);
String complementTitle = requestedBy.getSplitViewContainer()
.getComplementTitle(requestedBy);
+ // becomes null if the alignment window was closed before the alignment
+ // job finished.
AlignmentI copyComplement = new Alignment(complement);
copyComplement.alignAs(al);
if (copyComplement.getHeight() > 0)