Skip to main content



      Home
Home » Archived » Visual Editor (VE) » inaccessible components after cleaning project
inaccessible components after cleaning project [message #613761] Sat, 12 August 2006 19:38
Eclipse UserFriend
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);
}

}
Previous Topic:Visual Editor Tutorials
Next Topic:VE : Create custom widgets
Goto Forum:
  


Current Time: Wed Jun 25 03:39:47 EDT 2025

Powered by FUDForum. Page generated in 9.25803 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top