Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Master/Detail Form block in View?
Master/Detail Form block in View? [message #433248] Tue, 06 April 2004 03:45 Go to next message
John Schult is currently offline John SchultFriend
Messages: 1
Registered: July 2009
Junior Member
I would like to use the Master/Detail pattern for Eclipse Forms in a
ViewPart but cannot seem to get past not having a ManagedForm. I saw
the example for doing this in an Editor Page, but can't figure out how
to make it work in a View.

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/pde- ui-home/working/EclipseForms/EclipseForms.html

Is this possible?
Re: Master/Detail Form block in View? [message #675235 is a reply to message #433248] Mon, 30 May 2011 20:48 Go to previous message
Denis T. is currently offline Denis T.Friend
Messages: 1
Registered: May 2011
Junior Member
Hello from the future, John. We still don't have flying cars, but I found answer on your question. At least maybe it would be helpful for those who googles for the same problem.
So, to add M/D block to a view, you just _create_ new managed form.
private ScrolledPropertiesBlock block;	
public void createPartControl(Composite parent) {
	ManagedForm mf = new ManagedForm(parent);
	toolkit = mf.getToolkit();
	mf.getForm().setText("M/D View");
	block.createContent(mf);
}

'block' is the same as in Forms Article.
Previous Topic:SWT Tree Item with two Images , is it possible
Next Topic:Shell - Cant keep it on top (Linux gtk)
Goto Forum:
  


Current Time: Fri Apr 26 03:18:36 GMT 2024

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

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

Back to the top