bOpenProject = new Button(openComposite, SWT.NONE);
bOpenProject.setImage(imgOpen);
bOpenProject.addSelectionListener(this);
JNCProject project = AppController.getAppController().getCurrentProject();
if(project != null)
{
rbKeepCurrent = new Button(JNC.getContentComposite(), SWT.RADIO);
rbKeepCurrent.setLayoutData(LayoutUtilities.createGridData(-1, -1, -1, -1, 15));
rbKeepCurrent.setText("Keep current project:");
rbKeepCurrent.setSelection(true);
rbKeepCurrent.addSelectionListener(this);
buttonList.add(rbKeepCurrent);
Label fileLabel = new Label(JNC.getContentComposite(), SWT.NONE);
fileLabel.setLayoutData(LayoutUtilities.createGridData(-1, -1, -1, -1, 40));
File saveFile = project.getSaveFile();
fileLabel.setText("- " + ((saveFile != null) ? saveFile.toString() : "not yet saved"));
}
// page settings
JNC.getNextButton().setEnabled(project != null);