Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Graphics initialization
Graphics initialization [message #496487] Tue, 10 November 2009 09:58 Go to next message
Ali Koudri is currently offline Ali KoudriFriend
Messages: 118
Registered: July 2009
Senior Member
Hi,

I would like to have an empty graphic when I create a new view. What
should I change in the generated code ?

thx for your help.
Re: Graphics initialization [message #496833 is a reply to message #496487] Wed, 11 November 2009 14:04 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hi, see below

exquisitus wrote:
> Hi,
>
> I would like to have an empty graphic when I create a new view. What
> should I change in the generated code ?

The canvas (Drawing space) is empty by default. Can you elaborate a bit?
BTW, the diagram is drawn by an EditPart not a ViewPart. (Which has some
fundamental differences in Eclipse).

>
> thx for your help.
Re: Graphics initialization [message #496926 is a reply to message #496833] Wed, 11 November 2009 18:39 Go to previous message
Ali Koudri is currently offline Ali KoudriFriend
Messages: 118
Registered: July 2009
Senior Member
Christophe Bouhier a écrit :
> Hi, see below
>
> exquisitus wrote:
>> Hi,
>>
>> I would like to have an empty graphic when I create a new view. What
>> should I change in the generated code ?
>
> The canvas (Drawing space) is empty by default. Can you elaborate a bit?
> BTW, the diagram is drawn by an EditPart not a ViewPart. (Which has some
> fundamental differences in Eclipse).

I mean the default behavior when I open a GMF editor on an element is to
populate the graphical viewer with parts owned by the selected
element. Actually I am using GMF to make a multi-views editor which is
not its primary use case. I have used CNF to make my model browser and I
have added commands to edit graphically selected element (EObject
instead of files). It works but I would like to have empty views and
drag and drop only elements of interest.

Cheers.
>
>>
>> thx for your help.
Previous Topic:Shared EditingDomain and OpenDiagram bahaviour
Next Topic:how to make a second palette
Goto Forum:
  


Current Time: Fri Mar 29 00:50:59 GMT 2024

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

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

Back to the top