|
Lines 1-5
Link Here
|
| 1 |
/********************************************************************** |
1 |
/********************************************************************** |
| 2 |
* Copyright (c) 2006 IBM Corporation and others. |
2 |
* Copyright (c) 2006, 2008 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 15-21
Link Here
|
| 15 |
import java.io.File; |
15 |
import java.io.File; |
| 16 |
import java.util.Properties; |
16 |
import java.util.Properties; |
| 17 |
|
17 |
|
| 18 |
import com.ibm.icu.text.MessageFormat; |
18 |
import org.eclipse.hyades.automation.client.internal.resources.AutomationClientResourceBundle; |
| 19 |
|
19 |
|
| 20 |
/** |
20 |
/** |
| 21 |
* Shell automation client adapter -- provides a command line interface to the |
21 |
* Shell automation client adapter -- provides a command line interface to the |
|
Lines 134-140
Link Here
|
| 134 |
bError = true; |
134 |
bError = true; |
| 135 |
} |
135 |
} |
| 136 |
if (bError == true) |
136 |
if (bError == true) |
| 137 |
message.append(Messages.getString("AutomationClientAdapter.5") + //$NON-NLS-1$ |
137 |
message.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.5") + //$NON-NLS-1$ |
| 138 |
lineSeparator); |
138 |
lineSeparator); |
| 139 |
|
139 |
|
| 140 |
} else { |
140 |
} else { |
|
Lines 142-149
Link Here
|
| 142 |
if (!file.isDirectory()) { |
142 |
if (!file.isDirectory()) { |
| 143 |
Object[] obj = new Object[1]; |
143 |
Object[] obj = new Object[1]; |
| 144 |
obj[0] = eclipseHome; |
144 |
obj[0] = eclipseHome; |
| 145 |
message.append(MessageFormat.format((Messages |
145 |
message.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.6", obj));//$NON-NLS-1$ |
| 146 |
.getString("AutomationClientAdapter.6")), obj));//$NON-NLS-1$ |
|
|
| 147 |
} |
146 |
} |
| 148 |
} |
147 |
} |
| 149 |
|
148 |
|
|
Lines 156-163
Link Here
|
| 156 |
Object[] obj = new Object[1]; |
155 |
Object[] obj = new Object[1]; |
| 157 |
obj[0] = workspace; |
156 |
obj[0] = workspace; |
| 158 |
message |
157 |
message |
| 159 |
.append(MessageFormat.format((Messages |
158 |
.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.9", obj) + lineSeparator);//$NON-NLS-1$ |
| 160 |
.getString("AutomationClientAdapter.9")), obj) + lineSeparator);//$NON-NLS-1$ |
|
|
| 161 |
} |
159 |
} |
| 162 |
} |
160 |
} |
| 163 |
|
161 |
|
|
Lines 190-197
Link Here
|
| 190 |
Object[] obj = new Object[1]; |
188 |
Object[] obj = new Object[1]; |
| 191 |
obj[0] = args[1]; |
189 |
obj[0] = args[1]; |
| 192 |
System.out |
190 |
System.out |
| 193 |
.println(MessageFormat.format((Messages |
191 |
.println(AutomationClientResourceBundle.getString("AutomationClientAdapter.1", obj) + lineSeparator); //$NON-NLS-1$ |
| 194 |
.getString("AutomationClientAdapter.1")), obj) + lineSeparator); //$NON-NLS-1$ |
|
|
| 195 |
} |
192 |
} |
| 196 |
|
193 |
|
| 197 |
properties = new Properties(); |
194 |
properties = new Properties(); |
|
Lines 209-215
Link Here
|
| 209 |
fatalError = true; |
206 |
fatalError = true; |
| 210 |
message.insert(0, lineSeparator); |
207 |
message.insert(0, lineSeparator); |
| 211 |
message.append(lineSeparator |
208 |
message.append(lineSeparator |
| 212 |
+ Messages.getString("AutomationClientAdapter.0") + //$NON-NLS-1$ |
209 |
+ AutomationClientResourceBundle.getString("AutomationClientAdapter.0") + //$NON-NLS-1$ |
| 213 |
lineSeparator); |
210 |
lineSeparator); |
| 214 |
System.out.println(message); |
211 |
System.out.println(message); |
| 215 |
} |
212 |
} |
|
Lines 241-306
Link Here
|
| 241 |
*/ |
238 |
*/ |
| 242 |
private static void printHelp() { |
239 |
private static void printHelp() { |
| 243 |
StringBuffer bufHelp = new StringBuffer(); |
240 |
StringBuffer bufHelp = new StringBuffer(); |
| 244 |
bufHelp.append(Messages.getString("AutomationClientAdapter.21")); //$NON-NLS-1$ |
241 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.21")); //$NON-NLS-1$ |
| 245 |
bufHelp.append(Messages.getString("AutomationClientAdapter.22")); //$NON-NLS-1$ |
242 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.22")); //$NON-NLS-1$ |
| 246 |
bufHelp.append(Messages.getString("AutomationClientAdapter.221")); //$NON-NLS-1$ |
243 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.221")); //$NON-NLS-1$ |
| 247 |
bufHelp.append(Messages.getString("AutomationClientAdapter.222")); //$NON-NLS-1$ |
244 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.222")); //$NON-NLS-1$ |
| 248 |
bufHelp.append(Messages.getString("AutomationClientAdapter.25")); //$NON-NLS-1$ |
245 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.25")); //$NON-NLS-1$ |
| 249 |
bufHelp.append(Messages.getString("AutomationClientAdapter.23")); //$NON-NLS-1$ |
246 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.23")); //$NON-NLS-1$ |
| 250 |
bufHelp.append(Messages.getString("AutomationClientAdapter.26")); //$NON-NLS-1$ |
247 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.26")); //$NON-NLS-1$ |
| 251 |
bufHelp.append(Messages.getString("AutomationClientAdapter.27")); //$NON-NLS-1$ |
248 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.27")); //$NON-NLS-1$ |
| 252 |
bufHelp.append(Messages.getString("AutomationClientAdapter.28")); //$NON-NLS-1$ |
249 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.28")); //$NON-NLS-1$ |
| 253 |
bufHelp.append(Messages.getString("AutomationClientAdapter.29")); //$NON-NLS-1$ |
250 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.29")); //$NON-NLS-1$ |
| 254 |
bufHelp.append(Messages.getString("AutomationClientAdapter.30")); //$NON-NLS-1$ |
251 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.30")); //$NON-NLS-1$ |
| 255 |
bufHelp.append(Messages.getString("AutomationClientAdapter.31")); //$NON-NLS-1$ |
252 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.31")); //$NON-NLS-1$ |
| 256 |
bufHelp.append(Messages.getString("AutomationClientAdapter.59")); //$NON-NLS-1$ |
253 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.59")); //$NON-NLS-1$ |
| 257 |
bufHelp.append(Messages.getString("AutomationClientAdapter.60")); //$NON-NLS-1$ |
254 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.60")); //$NON-NLS-1$ |
| 258 |
bufHelp.append(Messages.getString("AutomationClientAdapter.61")); //$NON-NLS-1$ |
255 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.61")); //$NON-NLS-1$ |
| 259 |
bufHelp.append(Messages.getString("AutomationClientAdapter.53")); //$NON-NLS-1$ |
256 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.53")); //$NON-NLS-1$ |
| 260 |
bufHelp.append(Messages.getString("AutomationClientAdapter.54")); //$NON-NLS-1$ |
257 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.54")); //$NON-NLS-1$ |
| 261 |
bufHelp.append(Messages.getString("AutomationClientAdapter.55")); //$NON-NLS-1$ |
258 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.55")); //$NON-NLS-1$ |
| 262 |
bufHelp.append(Messages.getString("AutomationClientAdapter.32")); //$NON-NLS-1$ |
259 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.32")); //$NON-NLS-1$ |
| 263 |
bufHelp.append(Messages.getString("AutomationClientAdapter.33")); //$NON-NLS-1$ |
260 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.33")); //$NON-NLS-1$ |
| 264 |
bufHelp.append(Messages.getString("AutomationClientAdapter.34")); //$NON-NLS-1$ |
261 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.34")); //$NON-NLS-1$ |
| 265 |
bufHelp.append(Messages.getString("AutomationClientAdapter.35")); //$NON-NLS-1$ |
262 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.35")); //$NON-NLS-1$ |
| 266 |
bufHelp.append(Messages.getString("AutomationClientAdapter.36")); //$NON-NLS-1$ |
263 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.36")); //$NON-NLS-1$ |
| 267 |
bufHelp.append(Messages.getString("AutomationClientAdapter.37")); //$NON-NLS-1$ |
264 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.37")); //$NON-NLS-1$ |
| 268 |
bufHelp.append(Messages.getString("AutomationClientAdapter.41")); //$NON-NLS-1$ |
265 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.41")); //$NON-NLS-1$ |
| 269 |
bufHelp.append(Messages.getString("AutomationClientAdapter.42")); //$NON-NLS-1$ |
266 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.42")); //$NON-NLS-1$ |
| 270 |
bufHelp.append(Messages.getString("AutomationClientAdapter.43")); //$NON-NLS-1$ |
267 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.43")); //$NON-NLS-1$ |
| 271 |
bufHelp.append(Messages.getString("AutomationClientAdapter.50")); //$NON-NLS-1$ |
268 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.50")); //$NON-NLS-1$ |
| 272 |
bufHelp.append(Messages.getString("AutomationClientAdapter.51")); //$NON-NLS-1$ |
269 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.51")); //$NON-NLS-1$ |
| 273 |
bufHelp.append(Messages.getString("AutomationClientAdapter.52")); //$NON-NLS-1$ |
270 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.52")); //$NON-NLS-1$ |
| 274 |
bufHelp.append(Messages.getString("AutomationClientAdapter.44")); //$NON-NLS-1$ |
271 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.44")); //$NON-NLS-1$ |
| 275 |
bufHelp.append(Messages.getString("AutomationClientAdapter.45")); //$NON-NLS-1$ |
272 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.45")); //$NON-NLS-1$ |
| 276 |
bufHelp.append(Messages.getString("AutomationClientAdapter.46")); //$NON-NLS-1$ |
273 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.46")); //$NON-NLS-1$ |
| 277 |
bufHelp.append(Messages.getString("AutomationClientAdapter.47")); //$NON-NLS-1$ |
274 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.47")); //$NON-NLS-1$ |
| 278 |
bufHelp.append(Messages.getString("AutomationClientAdapter.48")); //$NON-NLS-1$ |
275 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.48")); //$NON-NLS-1$ |
| 279 |
bufHelp.append(Messages.getString("AutomationClientAdapter.49")); //$NON-NLS-1$ |
276 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.49")); //$NON-NLS-1$ |
| 280 |
bufHelp.append(Messages.getString("AutomationClientAdapter.88")); //$NON-NLS-1$ |
277 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.88")); //$NON-NLS-1$ |
| 281 |
bufHelp.append(Messages.getString("AutomationClientAdapter.89")); //$NON-NLS-1$ |
278 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.89")); //$NON-NLS-1$ |
| 282 |
bufHelp.append(Messages.getString("AutomationClientAdapter.90")); //$NON-NLS-1$ |
279 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.90")); //$NON-NLS-1$ |
| 283 |
bufHelp.append(Messages.getString("AutomationClientAdapter.91")); //$NON-NLS-1$ |
280 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.91")); //$NON-NLS-1$ |
| 284 |
bufHelp.append(Messages.getString("AutomationClientAdapter.92")); //$NON-NLS-1$ |
281 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.92")); //$NON-NLS-1$ |
| 285 |
bufHelp.append(Messages.getString("AutomationClientAdapter.93")); //$NON-NLS-1$ |
282 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.93")); //$NON-NLS-1$ |
| 286 |
bufHelp.append(Messages.getString("AutomationClientAdapter.94")); //$NON-NLS-1$ |
283 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.94")); //$NON-NLS-1$ |
| 287 |
bufHelp.append(Messages.getString("AutomationClientAdapter.85")); //$NON-NLS-1$ |
284 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.85")); //$NON-NLS-1$ |
| 288 |
bufHelp.append(Messages.getString("AutomationClientAdapter.86")); //$NON-NLS-1$ |
285 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.86")); //$NON-NLS-1$ |
| 289 |
bufHelp.append(Messages.getString("AutomationClientAdapter.87")); //$NON-NLS-1$ |
286 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.87")); //$NON-NLS-1$ |
| 290 |
bufHelp.append(Messages.getString("AutomationClientAdapter.62")); //$NON-NLS-1$ |
287 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.62")); //$NON-NLS-1$ |
| 291 |
bufHelp.append(Messages.getString("AutomationClientAdapter.63")); //$NON-NLS-1$ |
288 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.63")); //$NON-NLS-1$ |
| 292 |
bufHelp.append(Messages.getString("AutomationClientAdapter.66")); //$NON-NLS-1$ |
289 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.66")); //$NON-NLS-1$ |
| 293 |
bufHelp.append(Messages.getString("AutomationClientAdapter.67")); //$NON-NLS-1$ |
290 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.67")); //$NON-NLS-1$ |
| 294 |
bufHelp.append(Messages.getString("AutomationClientAdapter.68")); //$NON-NLS-1$ |
291 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.68")); //$NON-NLS-1$ |
| 295 |
bufHelp.append(Messages.getString("AutomationClientAdapter.69")); //$NON-NLS-1$ |
292 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.69")); //$NON-NLS-1$ |
| 296 |
bufHelp.append(Messages.getString("AutomationClientAdapter.70")); //$NON-NLS-1$ |
293 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.70")); //$NON-NLS-1$ |
| 297 |
bufHelp.append(Messages.getString("AutomationClientAdapter.71")); //$NON-NLS-1$ |
294 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.71")); //$NON-NLS-1$ |
| 298 |
bufHelp.append(Messages.getString("AutomationClientAdapter.72")); //$NON-NLS-1$ |
295 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.72")); //$NON-NLS-1$ |
| 299 |
bufHelp.append(Messages.getString("AutomationClientAdapter.73")); //$NON-NLS-1$ |
296 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.73")); //$NON-NLS-1$ |
| 300 |
bufHelp.append(Messages.getString("AutomationClientAdapter.74")); //$NON-NLS-1$ |
297 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.74")); //$NON-NLS-1$ |
| 301 |
bufHelp.append(Messages.getString("AutomationClientAdapter.79")); //$NON-NLS-1$ |
298 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.79")); //$NON-NLS-1$ |
| 302 |
bufHelp.append(Messages.getString("AutomationClientAdapter.81")); //$NON-NLS-1$ |
299 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.81")); //$NON-NLS-1$ |
| 303 |
bufHelp.append(Messages.getString("AutomationClientAdapter.84")); //$NON-NLS-1$ |
300 |
bufHelp.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.84")); //$NON-NLS-1$ |
| 304 |
System.out.println(bufHelp); |
301 |
System.out.println(bufHelp); |
| 305 |
} |
302 |
} |
| 306 |
|
303 |
|
|
Lines 310-316
Link Here
|
| 310 |
*/ |
307 |
*/ |
| 311 |
private static void writeMessagesToUser() { |
308 |
private static void writeMessagesToUser() { |
| 312 |
if (message.length() > 0) { |
309 |
if (message.length() > 0) { |
| 313 |
message.append(Messages.getString("AutomationClientAdapter.18") + //$NON-NLS-1$ |
310 |
message.append(AutomationClientResourceBundle.getString("AutomationClientAdapter.18") + //$NON-NLS-1$ |
| 314 |
lineSeparator); |
311 |
lineSeparator); |
| 315 |
System.out.println(message); |
312 |
System.out.println(message); |
| 316 |
} |
313 |
} |