From 785ecdf6b0e876c1f36ad616f103fe13f1f9fff0 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Wed, 20 Feb 2008 21:41:16 +0000 Subject: [PATCH] [216252] [api][nls] Resource Strings specific to subsystems should be moved from rse.ui into files.ui / shells.ui / processes.ui where possible -this is phase 1...still need to get rid of duplicate messages --- .../org/eclipse/rse/core/subsystems/SubSystem.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/SubSystem.java b/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/SubSystem.java index bd093e9ee24..056958638f7 100644 --- a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/SubSystem.java +++ b/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/SubSystem.java @@ -1597,7 +1597,10 @@ public abstract class SubSystem extends RSEModelObject msg = getSettingMessage(); - if (!implicitConnect(false, mon, msg, totalWorkUnits)) throw new Exception(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_CONNECT_FAILED).makeSubstitution(getHostName()).getLevelOneText()); + if (!implicitConnect(false, mon, msg, totalWorkUnits)){ + String msgTxt = NLS.bind(SubSystemResources.MSG_CONNECT_FAILED, getHostName()); + throw new Exception(msgTxt); + } runOutputs = new Object[] {internalSetProperties(_subject, _keys, _values, mon)}; } }