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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Eclipse: SWT SashForm

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