X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FVamsasApplication.java;h=19ede62d049398558a7cb3ee4e76186e003754dc;hb=fc46c75d41d5bc962216a96062699ecb2e6e1220;hp=973cfe85cccae502f1749a70d6825d6ca6bd7743;hpb=39267ff67b3f5cabdf20ea468b9e86739223adf5;p=jalview.git diff --git a/src/jalview/gui/VamsasApplication.java b/src/jalview/gui/VamsasApplication.java index 973cfe8..19ede62 100644 --- a/src/jalview/gui/VamsasApplication.java +++ b/src/jalview/gui/VamsasApplication.java @@ -264,8 +264,8 @@ public class VamsasApplication implements SelectionSource, VamsasSource { if (!inSession()) { - throw new Error(MessageManager.getString( - "error.implementation_error_vamsas_operation_not_init")); + throw new Error( + "Implementation error! Vamsas Operations when client not initialised and connected"); } addDocumentUpdateHandler(); addStoreDocumentHandler(); @@ -351,8 +351,7 @@ public class VamsasApplication implements SelectionSource, VamsasSource { if (!inSession()) { - throw new Error(MessageManager - .getString("error.jalview_no_connected_vamsas_session")); + throw new Error("Jalview not connected to Vamsas session"); } Cache.log.info("Jalview disconnecting from the Vamsas Session."); try @@ -484,8 +483,8 @@ public class VamsasApplication implements SelectionSource, VamsasSource errorsDuringUpdate = true; Cache.log.error("Exception synchronizing " + af.getTitle() + " " - + (af.getViewport().viewName == null ? "" - : " view " + af.getViewport().viewName) + + (af.getViewport().getViewName() == null ? "" + : " view " + af.getViewport().getViewName()) + " to document.", e); stored = false; } @@ -688,7 +687,8 @@ public class VamsasApplication implements SelectionSource, VamsasSource public void disableGui(boolean b) { - Desktop.instance.setVamsasUpdate(b); + // JAL-3311 TODO: remove this class! + // Desktop.instance.setVamsasUpdate(b); } Hashtable _backup_vobj2jv; @@ -721,8 +721,8 @@ public class VamsasApplication implements SelectionSource, VamsasSource return; } - throw new Error(MessageManager.getString( - "error.implementation_error_cannot_recover_vamsas_object_mappings")); + throw new Error( + "IMPLEMENTATION ERROR: Cannot recover vamsas object mappings - no backup was made"); } jv2vobj.clear(); Iterator el = _backup_jv2vobj.entrySet().iterator();