Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 365458

Summary: SWT: Form should have a header
Product: z_Archived Reporter: Claudio Guglielmo <claudio.guglielmo>
Component: ScoutAssignee: Project Inbox <scout.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: ivan.motsch
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
header example none

Description Claudio Guglielmo CLA 2011-12-02 11:36:12 EST
There should be a possibility to set a header

The eclipse form provides a possiblity to set a text which is shown on its header. Additionally it is possible to decorate the header which looks very well. Adding such a header should be possible when using scout. 

Suggestion: Use the existing subtitle property of the IForm and show the header if that property is set. Also show the image set with IForm.getIcon() in the header section.

Some example code:

form.setText(header);

Image image=getIcon(iconId);
if(image != null){
  form.setImage(image);
}

getFormToolkit().decorateFormHeading(form);
Comment 1 Claudio Guglielmo CLA 2011-12-02 11:43:26 EST
Created attachment 207851 [details]
header example
Comment 2 Ivan Motsch CLA 2011-12-04 16:19:52 EST
Added the call to decorate header to the default form toolkit method createForm in the swt/swing environments.
Comment 3 Matthias Zimmermann CLA 2012-07-09 06:50:25 EDT
ticket closed.
deliverd as part of eclipse scout 3.8.0 (juno release train)