Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Trying to place a SashForm in a ContentOutlinePage
Trying to place a SashForm in a ContentOutlinePage [message #530789] Fri, 30 April 2010 21:59 Go to next message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
I want my ContentsOutlinePage of the graphicalViewer to look like this.
_______________________
TreeViewer
-
-
-
_______________________The sash bar
LighweightSystem


-------------------------------

But when I create the outlinePage with a sashform. There is always a large
margin the left hand side of the Outline with the Text "An outline is not
available"

_______________________
An outline is not available TreeViewer
-
-
-
_______________________
LighweightSystem


-------------------------------

public void createControl(Composite parent)

{

parent.setLayout(new FillLayout());

final SashForm sash = new SashForm(parent, SWT.VERTICAL);


super.createControl(sash);

.......

)
Re: Trying to place a SashForm in a ContentOutlinePage [message #531039 is a reply to message #530789] Mon, 03 May 2010 13:28 Go to previous message
Vijay RajFriend
Messages: 608
Registered: July 2009
Senior Member
try this

public void createControl(Composite parent)

{

final SashForm sash = new SashForm(parent, SWT.VERTICAL);
Composite treeComposite = new Composite(sash,SWT.NONE);
createTreeViewer(treeComposite );
Composite lwsComposite = new Composite(sash,SWT.NONE);

super.createControl(lwsComposite);

.......

) 


---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Previous Topic:Modelelement with no corresponding EditPart
Next Topic:Drag and Drop of more than one element
Goto Forum:
  


Current Time: Tue Mar 19 11:08:51 GMT 2024

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

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

Back to the top