Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » inaccessible components after cleaning project
inaccessible components after cleaning project [message #129825] Sat, 12 August 2006 23:38 Go to next message
Eclipse UserFriend
Originally posted by: copie.gmx.net

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);
}

}
Re: inaccessible components after cleaning project [message #130004 is a reply to message #129825] Wed, 16 August 2006 16:48 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

It's a bug. I don't have a workaround. Please open a defect against VE.

--
Thanks,
Rich Kulp
Re: inaccessible components after cleaning project [message #614546 is a reply to message #129825] Wed, 16 August 2006 16:48 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

It's a bug. I don't have a workaround. Please open a defect against VE.

--
Thanks,
Rich Kulp
Previous Topic:Message in the log-file
Next Topic:Need getter for JLabel
Goto Forum:
  


Current Time: Sat Jul 27 12:46:25 GMT 2024

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

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

Back to the top