X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fbinding%2FJalviewUserColours.java;h=f3682457833ee2634fd6f3a633d829e1d64afc90;hb=fd9ed8df6a98c86228100aa4e9d6698c87a61c08;hp=7473bc7e8336cbf40df3df330445a75d9c46a44c;hpb=47168f025aefdaa044802bd5f8f510ffe43a4808;p=jalview.git diff --git a/src/jalview/binding/JalviewUserColours.java b/src/jalview/binding/JalviewUserColours.java index 7473bc7..f368245 100644 --- a/src/jalview/binding/JalviewUserColours.java +++ b/src/jalview/binding/JalviewUserColours.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2) - * Copyright (C) 2014 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -24,6 +24,8 @@ package jalview.binding; //- Imported classes and packages -/ //---------------------------------/ +import jalview.util.MessageManager; + import org.exolab.castor.xml.Marshaller; import org.exolab.castor.xml.Unmarshaller; @@ -120,9 +122,11 @@ public class JalviewUserColours implements java.io.Serializable // check bounds for index if (index < 0 || index >= this._colourList.size()) { - throw new IndexOutOfBoundsException("getColour: Index value '" - + index + "' not in range [0.." - + (this._colourList.size() - 1) + "]"); + throw new IndexOutOfBoundsException(MessageManager.formatMessage("exception.index_value_not_in_range", new String[]{ + "getColour", + Integer.valueOf(index).toString(), + Integer.valueOf((this._colourList.size() - 1)).toString() + })); } return (Colour) _colourList.get(index); @@ -274,9 +278,11 @@ public class JalviewUserColours implements java.io.Serializable // check bounds for index if (index < 0 || index >= this._colourList.size()) { - throw new IndexOutOfBoundsException("setColour: Index value '" - + index + "' not in range [0.." - + (this._colourList.size() - 1) + "]"); + throw new IndexOutOfBoundsException(MessageManager.formatMessage("exception.index_value_not_in_range", new String[]{ + "setColour", + Integer.valueOf(index).toString(), + Integer.valueOf((this._colourList.size() - 1)).toString() + })); } this._colourList.set(index, vColour);