Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Eclipse: SWT SashForm

  • 16-07-2004 09:38AM
    #1
    Closed Accounts Posts: 1,325 ✭✭✭


    Hey,

    I have the following code (below). What I am trying to achieve is have
    a SashForm with a composite in the top position and two editors
    sitting below it. I am having a bit of trouble embedding different
    editors in the Sash Form. I can use super.createPartControl() (the
    class extends the CompilationUnitEditor) but I can't do the
    following TextEditor textE = new TextEditor();
    textE.createPartControl(editorParent) and I am at a
    loss as to why not. The error I get when I run the plugin is
    "Cannot create part:". Does anyone have any suggestions on what
    I could do or where I'm going wrong, please?

    Thanks,
    A.


    <code>
    SashForm jveParent = new SashForm(parent, SWT.VERTICAL);

    Composite topComposite = new Composite(jveParent, SWT.NONE);
    topComposite.setLayout(new FormLayout());

    SashForm editorParent = new SashForm(jveParent, SWT.HORIZONTAL);

    super.createPartControl(editorParent);
    super.createPartContriol(editorParent);

    </code>


Advertisement