Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Change Edit Policies of Ruler's Guides
Change Edit Policies of Ruler's Guides [message #163657] Wed, 12 January 2005 09:19 Go to next message
Eclipse UserFriend
Originally posted by: alain.origlia.impika.com

Hi all,

I want to display the position of a ruler's guide when it is selected or
dragged. Is it possible to change the guide selection and drag edit policies
to provide such a feature?

Thank you,

Alain
Re: Change Edit Policies of Ruler's Guides [message #163736 is a reply to message #163657] Wed, 12 January 2005 20:26 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Where do you want to display it? Status bar? Or in a pop-up near the guide
being dragged? Or some other way?

"Alain Origlia" <alain.origlia@impika.com> wrote in message
news:cs2psj$n8k$1@www.eclipse.org...
> Hi all,
>
> I want to display the position of a ruler's guide when it is selected or
> dragged. Is it possible to change the guide selection and drag edit
policies
> to provide such a feature?
>
> Thank you,
>
> Alain
>
>
Re: Change Edit Policies of Ruler's Guides [message #163767 is a reply to message #163736] Wed, 12 January 2005 21:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alain.origlia.impika.com

Yes in the status bar. I need this feature because it's quite difficult to
set a guide to a wanted position without knowing exactly what its current
position is.

I have already added a RulerChangeListener which displays in the status bar
the position where a guide has been created and where a guide has been moved
but I have not found any listener to a dragging event.

I think I have to deal with the selection edit policy of the GuideEditParts
but I don't know how to do.

Thanks

"Pratik Shah" <ppshah@us.ibm.com> a
Re: Change Edit Policies of Ruler's Guides [message #163789 is a reply to message #163736] Thu, 13 January 2005 07:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wjancz.\/\/asko.pl(change \/\/ with w)

> Where do you want to display it? Status bar? Or in a pop-up near the
guide
> being dragged? Or some other way?

What to do if i would like to display a tooltip with position near the guide
being dragged ???

...::WojT::..
Re: Change Edit Policies of Ruler's Guides [message #163838 is a reply to message #163767] Thu, 13 January 2005 21:00 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
There's a workaround to make this work with the current implementation.
When the guide is being dragged, it will keep invoking getMoveGuideCommand()
in the RulerProvider. You can update the status bar with the given position
there.

"Alain Origlia" <alain.origlia@impika.com> wrote in message
news:cs444n$ups$1@www.eclipse.org...
> Yes in the status bar. I need this feature because it's quite difficult to
> set a guide to a wanted position without knowing exactly what its current
> position is.
>
> I have already added a RulerChangeListener which displays in the status
bar
> the position where a guide has been created and where a guide has been
moved
> but I have not found any listener to a dragging event.
>
> I think I have to deal with the selection edit policy of the
GuideEditParts
> but I don't know how to do.
>
> Thanks
>
> "Pratik Shah" <ppshah@us.ibm.com> a
Re: Change Edit Policies of Ruler's Guides [message #163845 is a reply to message #163789] Thu, 13 January 2005 21:03 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Please open a feature request. It will be a low priority though, and we
can't guarantee getting to it before the 3.l release. However, if you make
the necessary changes yourself and submit a patch, we'll certainly consider
it for 3.1.

"WojT" <wjancz@\/\/asko.pl(change \/\/ with w)> wrote in message
news:cs57ti$k4b$1@www.eclipse.org...
> > Where do you want to display it? Status bar? Or in a pop-up near the
> guide
> > being dragged? Or some other way?
>
> What to do if i would like to display a tooltip with position near the
guide
> being dragged ???
>
> ..::WojT::..
>
>
Re: Change Edit Policies of Ruler's Guides [message #163955 is a reply to message #163838] Fri, 14 January 2005 09:35 Go to previous message
Eclipse UserFriend
Originally posted by: alain.origlia.impika.com

Thank you very much. It works fine.
Now I can update the status bar when a guide is created, deleted or moved.

A last question: do you know how can I get the position of a guide when it
just has been selected in the ruler before any move?

Thanks



"Pratik Shah" <ppshah@us.ibm.com> a
Previous Topic:Update Manager
Next Topic:simple graphical editor
Goto Forum:
  


Current Time: Thu Apr 18 20:09:22 GMT 2024

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

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

Back to the top