[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: How can I split my EditorPart border in half?

It doesn't.  It looks like a mixture of two different look&feels.  Open the Java Perspective, and look at the division between the Hierarchy View and the Editor pane (supplied by the perspective).  Then, look at the division between the hierarchy Tree and the Members list, which lie entirely within a single View and therefore a single continuous border.  The drop-shadow does not break at the split, it continues.
 
Would you like a screenshot of the desired appearance?
"Veronika Irvine" <veronika_irvine@xxxxxxx> wrote in message news:9nq8q7$usb$1@xxxxxxxxxxxxx...
/**
* The SashForm lays out its children in a Row or Column arrangement (as specified
* by the orientation) and places a Sash between the children.
* One child may be maximized to occupy the entire size of the SashForm.
* The relative sizes of the children may be specfied using weights.
*/
 
If you create a SashForm without any border, it should blend nicely into the edges of the ViewForm.
 
public static void main (String [] args) {
    Display display = new Display ();
    Shell shell = new Shell (display);
    shell.setLayout(new FillLayout());
    ViewForm vform = new ViewForm(shell, SWT.BORDER);
    CLabel label = new CLabel(vform, SWT.NONE);
    label.setText("My View");
    vform.setTopLeft(label);
    SashForm sform = new SashForm(vform, SWT.VERTICAL);
    vform.setContent(sform);
    Text t = new Text(sform, SWT.NONE);
    t.setText("Top");
    t = new Text(sform, SWT.NONE);
    t.setText("Bottom");
    shell.open ();
    while (!shell.isDisposed ()) {
        if (!display.readAndDispatch ()) display.sleep ();
    }
    display.dispose ();
}
"Randy Hudson" <none@xxxxxxx> wrote in message news:9noec5$b29$1@xxxxxxxxxxxxx...
I am trying to split my EditPart into two parts using a SplitPane or similar control.  However, I cannot find a way for my "split" to mesh together nicely with the drop-shadow border that surrounds the EditPart.  I would like my split to appear the same as all of the other splits that divide the various Views.  However, I can't figure out how to make a gap in the border around the EditorPart since I don't own it.
 
For another example of this, look at how the JDT Heirarchy view is split.  That split is also different from all of the others (Perspective splits).