|
Re: GuideLineFigure not visible [message #192698 is a reply to message #192665] |
Mon, 22 August 2005 15:39 |
Eclipse User |
|
|
|
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 #192764 is a reply to message #192706] |
Mon, 22 August 2005 19:09 |
Eclipse User |
|
|
|
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 |
Roger Villars 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
>> >>
>> >>
>> >
>> >
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02905 seconds