}
if (tcf == null)
{
- if (new AnnotationFile().readAnnotationFile(
- alignFrame.viewport.getAlignment(), textarea.getText(),
+ if (new AnnotationFile().annotateAlignmentView(alignFrame.viewport,
+ textarea.getText(),
jalview.io.AppletFormatAdapter.PASTE))
{
alignFrame.alignPanel.fontChanged();
*/
public void loadAnnotationFrom(AlignFrame alf, String annotation)
{
- if (new AnnotationFile().readAnnotationFile(alf.getAlignViewport()
- .getAlignment(), annotation, AppletFormatAdapter.PASTE))
+ if (new AnnotationFile().annotateAlignmentView(alf.getAlignViewport(),
+ annotation, AppletFormatAdapter.PASTE))
{
alf.alignPanel.fontChanged();
alf.alignPanel.setScrollValues(0, 0);
{
param = setProtocolState(param);
- if (new AnnotationFile().readAnnotationFile(
- newAlignFrame.viewport.getAlignment(), param, protocol))
+ if (new AnnotationFile().annotateAlignmentView(
+ newAlignFrame.viewport, param, protocol))
{
newAlignFrame.alignPanel.fontChanged();
newAlignFrame.alignPanel.setScrollValues(0, 0);
// try to parse as annotation.
boolean isAnnotation = (format == null || format
.equalsIgnoreCase("PFAM")) ? new AnnotationFile()
- .readAnnotationFile(viewport.getAlignment(), file, protocol)
+ .annotateAlignmentView(viewport, file, protocol)
: false;
if (!isAnnotation)
{
br = new BufferedReader(src.getReader());
}
+ // TODO: add columnSelection to context
if (new jalview.io.AnnotationFile().parseAnnotationFrom(
- context.getLastAlignment(), br))
+ context.getLastAlignment(), null, br))
{
context.updateSetModified(true);
}