Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Guides working but not visible
Guides working but not visible [message #220375] Mon, 31 July 2006 08:53 Go to next message
Eclipse UserFriend
Originally posted by: ingo.koch[nospam].sap.com

Hi!

I would like to use the guides in my graphical editor.
Well, the editparts snap to each others now, but no lines appear.

Do I need a special layer or even the ruler layer for doing so?

What I did:

1.getGraphicalViewer().setProperty(SnapToGeometry.PROPERTY_S NAP_ENABLED, new
Boolean(true));
2. provide a CompoundSnapToHelper with SnapToGeometry in
EditPart#getAdapter()

Thanks and Regards,
Ingo
Re: Guides working but not visible [message #220396 is a reply to message #220375] Mon, 31 July 2006 11:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: osipov.appliedtech.ru

Well, I would strongly recommend just copy and paste everything concerning
rulers from logic editor example from here
http://wiki.eclipse.org/index.php/GEF_Developer_FAQ
That should do.
Re: Guides working but not visible [message #220450 is a reply to message #220375] Mon, 31 July 2006 17:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

Are you using SnapFeedbackPolicy?

"Ingo Koch" <ingo.koch[nospam]@sap.com> wrote in message
news:eakgeo$o2q$1@utils.eclipse.org...
> Hi!
>
> I would like to use the guides in my graphical editor.
> Well, the editparts snap to each others now, but no lines appear.
>
> Do I need a special layer or even the ruler layer for doing so?
>
> What I did:
>
> 1.getGraphicalViewer().setProperty(SnapToGeometry.PROPERTY_S NAP_ENABLED,
> new
> Boolean(true));
> 2. provide a CompoundSnapToHelper with SnapToGeometry in
> EditPart#getAdapter()
>
> Thanks and Regards,
> Ingo
>
>
Re: Guides working but not visible [message #220555 is a reply to message #220450] Wed, 02 August 2006 07:55 Go to previous message
Eclipse UserFriend
Originally posted by: ingo.koch[nospam].sap.com

Thanks Pratik,

that was the missing puzzle part!

Regards, Ingo



"Pratik Shah" <none@unknown.com> wrote in message
news:ealf61$p1e$1@utils.eclipse.org...
> Are you using SnapFeedbackPolicy?
>
> "Ingo Koch" <ingo.koch[nospam]@sap.com> wrote in message
> news:eakgeo$o2q$1@utils.eclipse.org...
> > Hi!
> >
> > I would like to use the guides in my graphical editor.
> > Well, the editparts snap to each others now, but no lines appear.
> >
> > Do I need a special layer or even the ruler layer for doing so?
> >
> > What I did:
> >
> > 1.getGraphicalViewer().setProperty(SnapToGeometry.PROPERTY_S NAP_ENABLED,
> > new
> > Boolean(true));
> > 2. provide a CompoundSnapToHelper with SnapToGeometry in
> > EditPart#getAdapter()
> >
> > Thanks and Regards,
> > Ingo
> >
> >
>
>
Previous Topic:setting a viewport
Next Topic:DND between two GEF viewers
Goto Forum:
  


Current Time: Sat Apr 20 05:43:11 GMT 2024

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

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

Back to the top