Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 2373
Collapse All | Expand All

(-)WorkbenchWindow.java (-10 / +2 lines)
Lines 230-248 Link Here
230
	builder.buildActions(this);
230
	builder.buildActions(this);
231
	
231
	
232
	// include the workspace location in the title 
232
	// include the workspace location in the title 
233
	// if it is NOT the default location and the command line
233
	// if the command line option -showlocation is specified
234
	// option -showlocation is specified
235
	String[] args = Platform.getCommandLineArgs();
234
	String[] args = Platform.getCommandLineArgs();
236
	boolean show = false;
237
	String location = null;
238
	for (int i = 0; i < args.length; i++) {
235
	for (int i = 0; i < args.length; i++) {
239
		if ("-showlocation".equals(args[i])) { //$NON-NLS-1$
236
		if ("-showlocation".equals(args[i])) { //$NON-NLS-1$
240
			show = true;
237
			workspaceLocation = Platform.getLocation().toOSString();
241
		} else if ("-data".equals(args[i])) { //$NON-NLS-1$
242
			location = Platform.getLocation().toOSString();
243
		}
244
		if (show && location != null) {
245
			workspaceLocation = location;
246
			break;
238
			break;
247
		}
239
		}
248
	}
240
	}

Return to bug 2373