Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Eclipse: SWT SashForm

Options
  • 16-07-2004 9: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