Guides working but not visible [message #220375] |
Mon, 31 July 2006 08:53 |
Eclipse User |
|
|
|
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 #220450 is a reply to message #220375] |
Mon, 31 July 2006 17:38 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04144 seconds