Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » e4: Find a placeholder
e4: Find a placeholder [message #580396] Tue, 10 August 2010 08:12 Go to next message
Missing name Missing name is currently offline Missing name Missing name
Messages: 57
Registered: September 2009
Member
Hello,

I realise an e4 application divided in 2 parts:
- the main UI, configured whith an e4xmi file containing a placeholder in a Part Stack.
- a bundle with a view which must display a form in the placeholder.

(The main UI invoque the bundle using services.)

How can I find the declared placeholder in the bundle in order to place my view in the main UI? have you got a code exemple ?

Thanks.
Re: e4: Find a placeholder [message #580416 is a reply to message #580396] Tue, 10 August 2010 08:23 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5279
Registered: July 2009
Senior Member
Am 10.08.10 14:12, schrieb Valoueee:
> Hello,
>
> I realise an e4 application divided in 2 parts:
> - the main UI, configured whith an e4xmi file containing a placeholder
> in a Part Stack.

I'm not sure I understand about which placeholder you are talking
because the Placeholder-Element is a very special type so that we can
share UI-Subtrees. I don't think that's what you are after, right?

If you are NOT sharing Subtrees between different areas you DON'T need
placeholders but contribute an MPart to the parent-container.

The ID you need to contribute is found in the elementId of the parent.

In my RCP-Tutorial [1] I show how to contribute elements from other
bundles through the so called fragment.e4xmi.

Tom

[1] http://tomsondev.bestsolution.at/2010/07/28/eclipse-4-0-and- tutorial-on-writing-e4-rcp-application-released/
Previous Topic:Compatibility layer E4 RCP and old plugins ?
Next Topic:Databinding: tableviewer does not refresh automatically
Goto Forum:
  


Current Time: Thu Aug 21 02:29:50 EDT 2014

Powered by FUDForum. Page generated in 0.08487 seconds