|
|
|
|
Re: Overview on all XText models of a project [message #665983 is a reply to message #665609] |
Mon, 18 April 2011 12:24 |
Sebastian Paul Messages: 106 Registered: July 2009 |
Senior Member |
|
|
Hi,
I tried to use the index as described in the docs (using the Fowlerdsl
example), but without success for now.
I extended the runtime and UI module as described for "Eclipse
Project-Based Containers".
My sample view gets the index as follows:
@Inject
private IResourceDescriptions resourceDescriptions;
I verified that the injected implementation is
DirtyStateAwareResourceDescriptions.
In createPartControl, the view checks if resourceDescriptions implements
IResourceDescription.Event.Source and adds a listener.
Unfortuanately the listener is never triggered. Even with manual update,
the index never returns any ResourceDescriptions.
So what is the missing piece to get the index running with the FowlerDsl
example? Maybe I need some setup for the builder?
Am 2011-04-15 11:13, schrieb Jan Koehnlein:
> Sounds like a good application for the index. It's likely, the view
> shows indexed elements only, or at least loads models for details on
> demand only.
>
> Have a look at IResourceDescriptions and learn how to customize its
> contents (section on scoping in the docs).
>
> Am 15.04.11 10:19, schrieb Sebastian Paul:
>> we are planning a view which shows an overview on the data model of the
>> currently selected project (sort of super-outline).
--
Best regards,
Sebastian Paul
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03356 seconds