Source:
<code><START> private void createWorkspaceLocationGroup(Composite composite) { <END> Composite groupComposite = new Composite(composite, SWT.LEFT); GridDataFactory.fillDefaults().grab(true, false).applyTo(groupComposite); GridLayoutFactory.fillDefaults().numColumns(2).applyTo(groupComposite); Label locationLabel = new Label(groupComposite, SWT.NONE); locationLabel.setText(IDEWorkbenchMessages.IDEWorkspacePreference_workspaceLocation); GridDataFactory.fillDefaults().applyTo(locationLabel); Text workspacePath = new Text(groupComposite, SWT.READ_ONLY); workspacePath.setBackground(workspacePath.getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND)); workspacePath.setText(getTrueWorkspaceLocation()); GridDataFactory.fillDefaults().grab(true, false).applyTo(workspacePath); String workspaceLocationFromCommandLine = getWorkspaceLocationFromCommandLine(e4Context); if (workspaceLocationFromCommandLine != null) { Button showWorkspace = new Button(groupComposite, SWT.CHECK); if (getTrueWorkspaceLocation().equals(workspaceLocationFromCommandLine)) { showWorkspace.setText(IDEWorkbenchMessages.IDEWorkspacePreference_showLocationInWindowTitle); } else { showWorkspace.setText(NLS.bind( IDEWorkbenchMessages.IDEWorkspacePreference_showLocationInWindowTitle_withValue, workspaceLocationFromCommandLine)); } showWorkspace.setSelection(true); showWorkspace.setEnabled(false); showWorkspace.setToolTipText(workspaceLocationFromCommandLine); GridDataFactory.fillDefaults().grab(true, false).span(2, 1).applyTo(showWorkspace); } else { Composite showComposite = new Composite(composite, SWT.LEFT); GridDataFactory.fillDefaults().grab(true, false).applyTo(showComposite); GridLayoutFactory.fillDefaults().applyTo(showComposite); showLocationInWindowTitle = new BooleanFieldEditor(IDEInternalPreferences.SHOW_LOCATION, IDEWorkbenchMessages.IDEWorkspacePreference_showLocationInWindowTitle, showComposite); showLocationInWindowTitle.setPage(this); showLocationInWindowTitle.setPreferenceStore(getIDEPreferenceStore()); showLocationInWindowTitle.load(); } }</code><technical_language>this preference option independent of command line parameter? If command line is it, preference? I this logic simpler access e4 context required</technical_language>

Target:
private void createWorkspaceLocationGroup(Composite composite) { Composite groupComposite = new Composite(composite, SWT.LEFT); GridDataFactory.fillDefaults().grab(true, false).applyTo(groupComposite); GridLayoutFactory.fillDefaults().numColumns(2).applyTo(groupComposite); Label locationLabel = new Label(groupComposite, SWT.NONE); locationLabel.setText(IDEWorkbenchMessages.IDEWorkspacePreference_workspaceLocation); GridDataFactory.fillDefaults().applyTo(locationLabel); Text workspacePath = new Text(groupComposite, SWT.READ_ONLY); workspacePath.setBackground(workspacePath.getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND)); workspacePath.setText(Platform.getLocation().toOSString()); GridDataFactory.fillDefaults().grab(true, false).applyTo(workspacePath); Composite showLocationComposite = new Composite(composite, SWT.LEFT); GridDataFactory.fillDefaults().grab(true, false).applyTo(showLocationComposite); GridLayoutFactory.fillDefaults().applyTo(showLocationComposite); showLocationInWindowTitle = new BooleanFieldEditor(IDEInternalPreferences.SHOW_LOCATION, IDEWorkbenchMessages.IDEWorkspacePreference_showLocationInWindowTitle, showLocationComposite); showLocationInWindowTitle.setPage(this); showLocationInWindowTitle.setPreferenceStore(getIDEPreferenceStore()); showLocationInWindowTitle.load(); }