exerciseViewer = treeViewer;
exerciseViewer.setExerciseResource(null);
exerciseViewer.addExerciseListener(this);
JexManager manager = getJexManager();
manager.setViewer(this);
GridLayout gridLayout = new GridLayout();
gridLayout.marginWidth = 0;
gridLayout.marginHeight = 0;
gridLayout.horizontalSpacing = 0;
gridLayout.verticalSpacing = 0;
gridLayout.numColumns = 2;
leftPane.setLayout(gridLayout);
GridData gridData = null;
gridData = new GridData();
gridData.grabExcessHorizontalSpace = true;
gridData.horizontalAlignment = SWT.FILL;
gridData.verticalAlignment = SWT.FILL;
gridData.horizontalSpan = 2;
exerciseSelector.getControl().setLayoutData(gridData);
gridData = new GridData();
gridData.verticalIndent = 1;
gridData.grabExcessHorizontalSpace = true;
gridData.horizontalAlignment = SWT.FILL;
gridData.grabExcessVerticalSpace = true;
gridData.verticalAlignment = SWT.FILL;
gridData.horizontalSpan = 2;
treeViewer.getControl().setLayoutData(gridData);
gridData = new GridData();
pointsControl = createPointsControl();
setPointsText("?", "?", pointsTextFormat, pointsControl);
gridData.grabExcessHorizontalSpace = true;
gridData.horizontalAlignment = SWT.FILL;
gridData.verticalAlignment = SWT.FILL;
gridData.horizontalSpan = 2;
pointsControl.setLayoutData(gridData);
// submitZipButton = null; // new Button(leftPane, SWT.NONE);
// if (submitZipButton != null) {
// submitZipButton.setText(" Submit >> ");
// buttonData = new GridData();
// buttonData.grabExcessHorizontalSpace = false;
// buttonData.horizontalAlignment = SWT.FILL;
// buttonData.verticalAlignment = SWT.FILL;
// submitZipButton.setLayoutData(buttonData);
// submitZipButton.addSelectionListener(new SelectionAdapter() {
// public void widgetSelected(SelectionEvent e) {
// submitZip(false);
// }
// });
// }
rightLayout = new StackLayout();
rightLayout.topControl = startupMessage;
rightPane.setLayout(rightLayout);
startupMessage = new Text(rightPane, SWT.WRAP);
startupMessage.setText(JExerciseViewHelpString);
try {
exerciseDetailsView = new Browser(rightPane, styles);
} catch (Throwable t) {
manager.log("Could not instantiate Browser control", IStatus.ERROR, t);
}
IWorkbenchHelpSystem help = PlatformUI.getWorkbench().getHelpSystem();
String helpContext = JexUiPlugin.getPlugin().getBundle().getSymbolicName() + ".ExerciseView";
help.setHelp(sash, helpContext);
help.setHelp(exerciseViewer.getControl(), helpContext);