X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FRnamlFile.java;fp=src%2Fjalview%2Fio%2FRnamlFile.java;h=4d3ddc17241ba7cdd0b60123fd438e363efcc4a2;hb=be762d8d9c71a7aa3121e845c45911c7192b7827;hp=eb623d3f107e6902861dd87dcf2a6f609d971526;hpb=d1bb7a31fc091606aedbc255a5766ac79e36fa91;p=jalview.git diff --git a/src/jalview/io/RnamlFile.java b/src/jalview/io/RnamlFile.java index eb623d3..4d3ddc1 100644 --- a/src/jalview/io/RnamlFile.java +++ b/src/jalview/io/RnamlFile.java @@ -103,35 +103,35 @@ public class RnamlFile extends AlignFile } catch (ExceptionPermissionDenied pdx) { errormessage = MessageManager.formatMessage( - "exception.rnaml_couldnt_access_datasource", - new String[] { pdx.getMessage() }); + "exception.rnaml_couldnt_access_datasource", new String[] + { pdx.getMessage() }); throw new IOException(pdx); } catch (ExceptionLoadingFailed lf) { errormessage = MessageManager.formatMessage( - "exception.ranml_couldnt_process_data", - new String[] { lf.getMessage() }); + "exception.ranml_couldnt_process_data", new String[] + { lf.getMessage() }); throw new IOException(lf); } catch (ExceptionFileFormatOrSyntax iff) { - errormessage = MessageManager.formatMessage( - "exception.ranml_invalid_file", - new String[] { iff.getMessage() }); + errormessage = MessageManager + .formatMessage("exception.ranml_invalid_file", new String[] + { iff.getMessage() }); throw new IOException(iff); } catch (Exception x) { error = true; errormessage = MessageManager.formatMessage( - "exception.ranml_problem_parsing_data", - new String[] { x.getMessage() }); + "exception.ranml_problem_parsing_data", new String[] + { x.getMessage() }); throw new IOException(errormessage, x); } } @SuppressWarnings("unchecked") - public void _parse() throws FileNotFoundException, - ExceptionPermissionDenied, ExceptionLoadingFailed, - ExceptionFileFormatOrSyntax + public void _parse() + throws FileNotFoundException, ExceptionPermissionDenied, + ExceptionLoadingFailed, ExceptionFileFormatOrSyntax { result = RNAFactory.loadSecStrRNAML(getReader()); @@ -172,15 +172,16 @@ public class RnamlFile extends AlignFile } for (int k = 0; k < rna.length(); k++) { - ann[k] = new Annotation(annot[k], "", Rna.getRNASecStrucState( - annot[k]).charAt(0), 0f); + ann[k] = new Annotation(annot[k], "", + Rna.getRNASecStrucState(annot[k]).charAt(0), 0f); } AlignmentAnnotation align = new AlignmentAnnotation( "Secondary Structure", - current.getID().trim().length() > 0 ? "Secondary Structure for " - + current.getID() - : "", ann); + current.getID().trim().length() > 0 + ? "Secondary Structure for " + current.getID() + : "", + ann); sqs[i].addAlignmentAnnotation(align); sqs[i].setRNA(result.get(i));