Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Custom Navigator View or something like this
Custom Navigator View or something like this [message #544289] Fri, 02 July 2010 04:50 Go to next message
Eclipse UserFriend
Hello everyone!

I need help and hope that somebody has a solution or can give me hints
how to solve this.

The situation:

2 ecore models
1 editor for first model (emf/gmf)
1 editor for second model

The second model holds values which affect the first. So the first model
references instances of the second by string.

What i want is a view like the project explorer in eclipse, where i can
create new instances/files of the two models.

I want all xml files of the models to be saved in the workspace

Platform.getInstanceLocation().

At startup of the application all xml files shall be loaded, so that all
objects can referenced.

As a start i implemented a view which gets

new File(Platform.getInstanceLocation().getURL().getPath()) as

its Input and uses the TreeViewer. I even managed to create a
contextMenu(only on selection).

I didn't manage to refresh the view on creation of new XML
files/instances and it feels like i spent forever and a day on this now.

I hope one of you can give me a hint where to find the right
informations for all the stuff i want to manage in the next 20 days.


Best regards Matthias
Re: Custom Navigator View or something like this [message #544917 is a reply to message #544289] Tue, 06 July 2010 00:42 Go to previous messageGo to next message
Eclipse UserFriend
Hi Matthias,

Are you trying to create a custom property editor for model instances?
Or are you trying to completely replace the Project Explorer dialog (for
example) in Eclipse?

Jevon

Matthias Kloppenborg wrote:
> Hello everyone!
>
> I need help and hope that somebody has a solution or can give me hints
> how to solve this.
>
> The situation:
>
> 2 ecore models
> 1 editor for first model (emf/gmf)
> 1 editor for second model
>
> The second model holds values which affect the first. So the first model
> references instances of the second by string.
>
> What i want is a view like the project explorer in eclipse, where i can
> create new instances/files of the two models.
>
> I want all xml files of the models to be saved in the workspace
>
> Platform.getInstanceLocation().
>
> At startup of the application all xml files shall be loaded, so that all
> objects can referenced.
>
> As a start i implemented a view which gets
>
> new File(Platform.getInstanceLocation().getURL().getPath()) as
>
> its Input and uses the TreeViewer. I even managed to create a
> contextMenu(only on selection).
>
> I didn't manage to refresh the view on creation of new XML
> files/instances and it feels like i spent forever and a day on this now.
>
> I hope one of you can give me a hint where to find the right
> informations for all the stuff i want to manage in the next 20 days.
>
>
> Best regards Matthias
>
>
>
Re: Custom Navigator View or something like this [message #545788 is a reply to message #544917] Fri, 09 July 2010 03:10 Go to previous message
Eclipse UserFriend
Hello Jevon,

thank you for your answer.
We generated the different emf/gmf editors and combined them.
The app can now create/load/edit files of the generated xml format.
Am i right that there is no Project Explorer view, because we generated
a standalone RCP application?

All xml files that are saved in the workspace shall be loaded on startup
and the contained instances shall be displayed in a new view as a tree.
If a new xml file is created in the workspace the view shall be refreshed.

Later it shall be possible to create new xml files through the
contextmenu/popupmenu of the view.

I hope i could make myself understood.

Matthias


On 06.07.2010 06:42, Jevon Wright wrote:
> Hi Matthias,
>
> Are you trying to create a custom property editor for model instances?
> Or are you trying to completely replace the Project Explorer dialog (for
> example) in Eclipse?
>
> Jevon
>
> Matthias Kloppenborg wrote:
>> Hello everyone!
>>
>> I need help and hope that somebody has a solution or can give me hints
>> how to solve this.
>>
>> The situation:
>>
>> 2 ecore models
>> 1 editor for first model (emf/gmf)
>> 1 editor for second model
>>
>> The second model holds values which affect the first. So the first model
>> references instances of the second by string.
>>
>> What i want is a view like the project explorer in eclipse, where i can
>> create new instances/files of the two models.
>>
>> I want all xml files of the models to be saved in the workspace
>>
>> Platform.getInstanceLocation().
>>
>> At startup of the application all xml files shall be loaded, so that all
>> objects can referenced.
>>
>> As a start i implemented a view which gets
>>
>> new File(Platform.getInstanceLocation().getURL().getPath()) as
>>
>> its Input and uses the TreeViewer. I even managed to create a
>> contextMenu(only on selection).
>>
>> I didn't manage to refresh the view on creation of new XML
>> files/instances and it feels like i spent forever and a day on this now.
>>
>> I hope one of you can give me a hint where to find the right
>> informations for all the stuff i want to manage in the next 20 days.
>>
>>
>> Best regards Matthias
>>
>>
>>
Previous Topic:Editpolicy help
Next Topic:Replace a figure with a GUI
Goto Forum:
  


Current Time: Fri May 16 18:13:47 EDT 2025

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

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

Back to the top