Skip to main content


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 07:19 Go to next message
Gilod is currently offline GilodFriend
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 07:41 Go to previous messageGo to next message
Martin Fluegge is currently offline Martin FlueggeFriend
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 08:15 Go to previous messageGo to next message
Gilod is currently offline GilodFriend
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 08:25 Go to previous message
Eclipse UserFriend
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: Fri Apr 26 09:53:53 GMT 2024

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

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

Back to the top