map.setImageName(imageName);
map.setCuratorName(SegmentationView.curatorCombo.getText());
map.setSpeciesName(SegmentationView.speciesCombo.getText());
- map.setCollectionId(Integer.parseInt(SegmentationView.collectionId.getText()));
+ if(!(SegmentationView.collectionId.getText().equals("")))
+ {
+ map.setCollectionId(Integer.parseInt(SegmentationView.collectionId.getText()));
+ }
map.setComments(SegmentationView.comment.getText());
List<String> preloads = new ArrayList<String>();
viewSelectionToolbar = new ToolBar(this, SWT.RIGHT | SWT.FLAT);
termLookupBar = new ToolBar(this, SWT.RIGHT | SWT.FLAT);
view = new AnnotatedImageControl(this, SWT.BORDER);
- termDetailComposite = new Composite(this, SWT.BORDER);
+ termDetailComposite = new Composite(this, SWT.RIGHT | SWT.FLAT | SWT.BORDER);
brushControl = new BrushControl(getShell(), SWT.BORDER);
eventHandler = new EventHandler();
// Layout term lookup toolbar
gd = new GridData();
- gd.horizontalAlignment = SWT.FILL;
+ gd.horizontalAlignment = SWT.LEFT;
+ gd.grabExcessHorizontalSpace = true;
gd.verticalAlignment = GridData.BEGINNING;
gd.verticalIndent = 1;
gd.verticalSpan = 1;
// Inner composite properties
gd = new GridData();
gd.verticalAlignment = GridData.BEGINNING;
+ gd.horizontalAlignment = SWT.LEFT;
gd.grabExcessHorizontalSpace = true;
gd.grabExcessVerticalSpace = true;
termDetailComposite.setLayoutData(gd);