| inaccessible components after cleaning project [message #613761] | 
Sat, 12 August 2006 19:38  | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Hello group, 
 
i created a simple composite with the VE (including forms toolkit). It 
contains a Section in a ScrolledForm. After cleaning and rebuilding the 
project the Section is visible in the editor, but it's no longer 
recognized by VE. Neither it's selectable in editor nor shown in Java 
Bean View. 
 
Is there a way to make the VE usable again? 
 
Enrico 
 
PS: 
 
my environment 
 
Java 1.5.0_06-b05 
eclipse-SDK-3.2-win32 
emf-sdo-runtime-2.2.0 
GEF-runtime-3.2 
VE-runtime-1.2 
Windows 2000 
 
the generated class (comments stripped) 
 
import org.eclipse.swt.layout.GridLayout; 
import org.eclipse.swt.graphics.Point; 
import org.eclipse.swt.widgets.Composite; 
import org.eclipse.ui.forms.widgets.FormToolkit; 
import org.eclipse.swt.widgets.Display; 
import org.eclipse.ui.forms.widgets.ScrolledForm; 
import org.eclipse.swt.layout.FillLayout; 
import org.eclipse.ui.forms.widgets.Section; 
import org.eclipse.ui.forms.widgets.ExpandableComposite; 
 
public class Test extends Composite { 
 
	private FormToolkit formToolkit = null;   // 
@jve:decl-index=0:visual-constraint="" 
	private ScrolledForm scrolledForm = null; 
	private Section section = null; 
 
	public Test(Composite parent, int style) { 
		super(parent, style); 
		initialize(); 
	} 
 
	private void initialize() { 
		createScrolledForm(); 
		setSize(new Point(300, 200)); 
		setLayout(new FillLayout()); 
	} 
 
	private FormToolkit getFormToolkit() { 
		if (formToolkit == null) { 
			formToolkit = new FormToolkit(Display.getCurrent()); 
		} 
		return formToolkit; 
	} 
 
	private void createScrolledForm() { 
		scrolledForm = getFormToolkit().createScrolledForm(this); 
		scrolledForm.getBody().setLayout(new GridLayout()); 
		createSection(); 
	} 
 
	private void createSection() { 
		section = getFormToolkit().createSection( 
				scrolledForm.getBody(), 
				ExpandableComposite.TWISTIE | Section.DESCRIPTION 
						| ExpandableComposite.TITLE_BAR); 
		section.setExpanded(true); 
	} 
 
}
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.79400 seconds