Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GuideLineFigure not visible
GuideLineFigure not visible [message #192665] Mon, 22 August 2005 12:30 Go to next message
Roger Villars is currently offline Roger VillarsFriend
Messages: 57
Registered: July 2009
Member
Hi!



I successfully implemented a ruler with guides (like in the Logic example).
Unfortunately the dotted line of the guide is

only visible while I'm creating it. As soon as I release the mouse button,
it becomes invisible.



This only happens if I use a ScalableRootEditPart. If I use a
ScalableFreeformRootEditPart all works well.



Is there a way to make the lines visible without changing to
ScalableFreeformRootEditPart?



Thanks.

Roger
Re: GuideLineFigure not visible [message #192698 is a reply to message #192665] Mon, 22 August 2005 15:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

https://bugs.eclipse.org/bugs/show_bug.cgi?id=100316

"Roger Villars" <roger.villars@mimacom.ch> wrote in message
news:decghg$lu5$1@news.eclipse.org...
> Hi!
>
>
>
> I successfully implemented a ruler with guides (like in the Logic
example).
> Unfortunately the dotted line of the guide is
>
> only visible while I'm creating it. As soon as I release the mouse button,
> it becomes invisible.
>
>
>
> This only happens if I use a ScalableRootEditPart. If I use a
> ScalableFreeformRootEditPart all works well.
>
>
>
> Is there a way to make the lines visible without changing to
> ScalableFreeformRootEditPart?
>
>
>
> Thanks.
>
> Roger
>
>
Re: GuideLineFigure not visible [message #192706 is a reply to message #192698] Mon, 22 August 2005 15:44 Go to previous messageGo to next message
Roger Villars is currently offline Roger VillarsFriend
Messages: 57
Registered: July 2009
Member
Ts, ts, ts.... always check Bugzilla first!
My fault. Thank you anyway.

"Pratik Shah" <none@unknown.com> schrieb im Newsbeitrag
news:decrju$7k2$1@news.eclipse.org...
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=100316
>
> "Roger Villars" <roger.villars@mimacom.ch> wrote in message
> news:decghg$lu5$1@news.eclipse.org...
>> Hi!
>>
>>
>>
>> I successfully implemented a ruler with guides (like in the Logic
> example).
>> Unfortunately the dotted line of the guide is
>>
>> only visible while I'm creating it. As soon as I release the mouse
>> button,
>> it becomes invisible.
>>
>>
>>
>> This only happens if I use a ScalableRootEditPart. If I use a
>> ScalableFreeformRootEditPart all works well.
>>
>>
>>
>> Is there a way to make the lines visible without changing to
>> ScalableFreeformRootEditPart?
>>
>>
>>
>> Thanks.
>>
>> Roger
>>
>>
>
>
Re: GuideLineFigure not visible [message #192764 is a reply to message #192706] Mon, 22 August 2005 19:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

Roger, do you care to investigate and submit a patch for this bug?

"Roger Villars" <roger.villars@mimacom.ch> wrote in message
news:decruo$865$1@news.eclipse.org...
> Ts, ts, ts.... always check Bugzilla first!
> My fault. Thank you anyway.
>
> "Pratik Shah" <none@unknown.com> schrieb im Newsbeitrag
> news:decrju$7k2$1@news.eclipse.org...
> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=100316
> >
> > "Roger Villars" <roger.villars@mimacom.ch> wrote in message
> > news:decghg$lu5$1@news.eclipse.org...
> >> Hi!
> >>
> >>
> >>
> >> I successfully implemented a ruler with guides (like in the Logic
> > example).
> >> Unfortunately the dotted line of the guide is
> >>
> >> only visible while I'm creating it. As soon as I release the mouse
> >> button,
> >> it becomes invisible.
> >>
> >>
> >>
> >> This only happens if I use a ScalableRootEditPart. If I use a
> >> ScalableFreeformRootEditPart all works well.
> >>
> >>
> >>
> >> Is there a way to make the lines visible without changing to
> >> ScalableFreeformRootEditPart?
> >>
> >>
> >>
> >> Thanks.
> >>
> >> Roger
> >>
> >>
> >
> >
>
>
Re: GuideLineFigure not visible [message #192875 is a reply to message #192764] Tue, 23 August 2005 11:48 Go to previous message
Roger Villars is currently offline Roger VillarsFriend
Messages: 57
Registered: July 2009
Member
As you wish...

I tried to rewrite the GuideLayer so it isn't a FreeformLayer anymore. I
attached the file to the
Bug report (https://bugs.eclipse.org/bugs/show_bug.cgi?id=100316).

A workaround for now is to override ScalableFreeformRootEditPart and it's
createLayers(LayeredPane layeredPane)
method. There, the new GuideLayer can be given.

protected void createLayers(LayeredPane layeredPane) {
layeredPane.add(getScaledLayers(), SCALABLE_LAYERS);
layeredPane.add(new Layer() {
public Dimension getPreferredSize(int wHint, int hHint) {
return new Dimension();
}
}, HANDLE_LAYER);
layeredPane.add(new FeedbackLayer(), FEEDBACK_LAYER);
layeredPane.add(new MyGuideLayer(), GUIDE_LAYER);
}

Regards,
Roger

"Pratik Shah" <none@unknown.com> schrieb im Newsbeitrag
news:ded7st$p21$1@news.eclipse.org...
> Roger, do you care to investigate and submit a patch for this bug?
>
> "Roger Villars" <roger.villars@mimacom.ch> wrote in message
> news:decruo$865$1@news.eclipse.org...
>> Ts, ts, ts.... always check Bugzilla first!
>> My fault. Thank you anyway.
>>
>> "Pratik Shah" <none@unknown.com> schrieb im Newsbeitrag
>> news:decrju$7k2$1@news.eclipse.org...
>> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=100316
>> >
>> > "Roger Villars" <roger.villars@mimacom.ch> wrote in message
>> > news:decghg$lu5$1@news.eclipse.org...
>> >> Hi!
>> >>
>> >>
>> >>
>> >> I successfully implemented a ruler with guides (like in the Logic
>> > example).
>> >> Unfortunately the dotted line of the guide is
>> >>
>> >> only visible while I'm creating it. As soon as I release the mouse
>> >> button,
>> >> it becomes invisible.
>> >>
>> >>
>> >>
>> >> This only happens if I use a ScalableRootEditPart. If I use a
>> >> ScalableFreeformRootEditPart all works well.
>> >>
>> >>
>> >>
>> >> Is there a way to make the lines visible without changing to
>> >> ScalableFreeformRootEditPart?
>> >>
>> >>
>> >>
>> >> Thanks.
>> >>
>> >> Roger
>> >>
>> >>
>> >
>> >
>>
>>
>
>
Previous Topic:layout disconnected graph
Next Topic:one kind of children in one editpart - limitation of gef???
Goto Forum:
  


Current Time: Fri Apr 26 04:11:03 GMT 2024

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

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

Back to the top