Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Hide XML file in project tree
Hide XML file in project tree [message #478830] Fri, 07 August 2009 03:19 Go to next message
Gilod is currently offline Gilod
Messages: 25
Registered: July 2009
Junior Member
I created a new gmf model and it works well.
I notice that once the user create a new instance of the diagram, 2
different files are being opened (diagram file and xml file).
How can I hide the second file? I don't want the user to view this file or
give him the ability to edit it.
The user should only see the diagram file.
Pls advice
Thanks alot!!!!
Gilod
Re: Hide XML file in project tree [message #478831 is a reply to message #478830] Fri, 07 August 2009 03:41 Go to previous messageGo to next message
Martin Fluegge is currently offline Martin Fluegge
Messages: 141
Registered: July 2009
Senior Member
Hi Gilod,

GMF allows you to combine both Resources into one file. This can be done
by setting "Same File for Diagram and Model" in the GenEditor's
properties of your yxz.gengmf to "true". Then (after regenerating) you
only have one file with the "xyz_diagram" extension.

But sometimes it is not clever to but them into one file because this
can lead you into trouble if you want to access the model with another
editor, e.g. the created EMF-Model editor. It depends on your use-cases.

Another idea could be to simply filter out the model-files using the
filter function of the Package Explorer.

I hope this helps.

Cheers,

Martin


Gilod schrieb:
> I created a new gmf model and it works well.
> I notice that once the user create a new instance of the diagram, 2
> different files are being opened (diagram file and xml file).
> How can I hide the second file? I don't want the user to view this file
> or give him the ability to edit it.
> The user should only see the diagram file.
> Pls advice
> Thanks alot!!!!
> Gilod
>
Re: Hide XML file in project tree [message #478838 is a reply to message #478831] Fri, 07 August 2009 04:15 Go to previous messageGo to next message
Gilod is currently offline Gilod
Messages: 25
Registered: July 2009
Junior Member
Thanks Martin,
I use the model diagram in the Backend so I can't just combined them both,
I think the second option is better for me,
Can you explain me how it could be done threw the package explorer?
Re: Hide XML file in project tree [message #478842 is a reply to message #478838] Fri, 07 August 2009 04:25 Go to previous message
Eclipse User
Originally posted by: aurelien.pupier.esial.net

Gilod a écrit :
> Thanks Martin,
> I use the model diagram in the Backend so I can't just combined them both,
> I think the second option is better for me,
> Can you explain me how it could be done threw the package explorer?
>

Hi Gilod,

via UI :
click the arrow on the top left.
select filters...
and set the correct pattern (smthg like *.XXX_diagram)

Aurelien Pupier
Previous Topic:Same object maximized on double-click
Next Topic:Inserting a line break when editing a WrappingLabel
Goto Forum:
  


Current Time: Wed Aug 20 12:35:25 EDT 2014

Powered by FUDForum. Page generated in 0.02031 seconds