Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Tab folder with form section - expand section with title problem
Tab folder with form section - expand section with title problem [message #632191] Tue, 12 October 2010 04:53 Go to next message
Andrew  is currently offline Andrew Friend
Messages: 43
Registered: December 2009
Member
Hi,
I've got a problem with a tab folder and form with section on it.
Expand event doesn't work by pressing title of section.
To reproduce:
1. Create sample project with a view.
2. Change method createPartControl

public void createPartControl(Composite parent) {

    final FormToolkit toolkit = new FormToolkit(parent.getDisplay());

    parent.setLayout(new FillLayout());

    TabFolder folder = new TabFolder(parent, SWT.BOTTOM);

    TabItem tabItem = new TabItem(folder, SWT.NONE);
    tabItem.setText("OBJECT");

    Composite composite = new Composite(folder, SWT.NONE);
    tabItem.setControl(composite);
    composite.setLayout(new GridLayout());
    composite.setLayoutData(new GridData(GridData.FILL_BOTH));

    ScrolledForm form = toolkit.createScrolledForm(composite);
    toolkit.decorateFormHeading(form.getForm());
    toolkit.getHyperlinkGroup().setHyperlinkUnderlineMode(HyperlinkSettings.UNDERLINE_HOVER);

    GridData layoutData = new GridData(GridData.FILL_BOTH);
    form.setLayoutData(layoutData);
    form.getBody().setLayout(new GridLayout());

    Section section = toolkit.createSection(form.getBody(), ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE
        | ExpandableComposite.EXPANDED);
    section.setText("Section name");
    section.setDescription(section.getText());
    section.setLayoutData(layoutData);

    Composite bComposite = toolkit.createComposite(section);
    bComposite.setLayout(new GridLayout(2, true));

    GridData gd = new GridData(GridData.FILL_BOTH);
    bComposite.setLayoutData(gd);

    section.setClient(bComposite);

  }

Re: Tab folder with form section - expand section with title problem [message #632202 is a reply to message #632191] Tue, 12 October 2010 06:01 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Andrew,
this looks like a bug. I've tested your snippet with and without the TabFolder and the problem persist only in the combination with TabFolder. Please file a bugzilla to keep track on this issue.
Thanks,
Ivan
Re: Tab folder with form section - expand section with title problem [message #632213 is a reply to message #632202] Tue, 12 October 2010 06:54 Go to previous message
Andrew  is currently offline Andrew Friend
Messages: 43
Registered: December 2009
Member
Ok, I've post a bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=327513
Previous Topic:Runtime view restore exception
Next Topic:Create EXE for RAP and RCP
Goto Forum:
  


Current Time: Thu Apr 25 16:12:46 GMT 2024

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

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

Back to the top