Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » RulerEditPart replacement
RulerEditPart replacement [message #141482] Mon, 05 July 2004 11:52 Go to next message
Eclipse UserFriend
Originally posted by: raritzu.yahoo.co.uk

Hi guys

I have a little problem with the ruler. I want my root editpart to be
ScalableRootEditPart (descendant class), but the RulerEditPart looks like
its nailed down to use ScalableFreeFormRootEditPart, in the getGuideLayer()
method:

<<RulerEditPart>>
public IFigure getGuideLayer() {

return ((FreeformGraphicalRootEditPart)diagramViewer.getRootEditPar t())

..getLayer(LayerConstants.GUIDE_LAYER);

}

So I was thinking to change that so I can use ScalableRootEditPart. The
steps I wanted to follow: replace(subclass) the RulerComposite, and make it
to provide amy own RulerEditPart, that allows Scalable Root Editpart. But it
does not look like I can replace the RulerComposite: the
createRulerContainer method in the RulerComposite is private, and thats what
I would need to override to provive my own RulerEditPartFactory.

Any ideas how to get arround this?

Thanks in advance,

Art.
Re: RulerEditPart replacement [message #141517 is a reply to message #141482] Mon, 05 July 2004 14:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Open a bugzilla. The ruler should be using the EditPartRegistry to get the
LayerManager.
"Arthur B." <raritzu@yahoo.co.uk> wrote in message
news:ccbfc6$fql$1@eclipse.org...
> Hi guys
>
> I have a little problem with the ruler. I want my root editpart to be
> ScalableRootEditPart (descendant class), but the RulerEditPart looks like
> its nailed down to use ScalableFreeFormRootEditPart, in the
getGuideLayer()
> method:
>
Re: RulerEditPart replacement [message #141741 is a reply to message #141482] Tue, 06 July 2004 17:38 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
It seems you have a really old version of GEF. This was fixed back in
April.

"Arthur B." <raritzu@yahoo.co.uk> wrote in message
news:ccbfc6$fql$1@eclipse.org...
> Hi guys
>
> I have a little problem with the ruler. I want my root editpart to be
> ScalableRootEditPart (descendant class), but the RulerEditPart looks like
> its nailed down to use ScalableFreeFormRootEditPart, in the
getGuideLayer()
> method:
>
> <<RulerEditPart>>
> public IFigure getGuideLayer() {
>
> return ((FreeformGraphicalRootEditPart)diagramViewer.getRootEditPar t())
>
> .getLayer(LayerConstants.GUIDE_LAYER);
>
> }
>
> So I was thinking to change that so I can use ScalableRootEditPart. The
> steps I wanted to follow: replace(subclass) the RulerComposite, and make
it
> to provide amy own RulerEditPart, that allows Scalable Root Editpart. But
it
> does not look like I can replace the RulerComposite: the
> createRulerContainer method in the RulerComposite is private, and thats
what
> I would need to override to provive my own RulerEditPartFactory.
>
> Any ideas how to get arround this?
>
> Thanks in advance,
>
> Art.
>
>
Previous Topic:RulerEditPart replacement
Next Topic:Job Opportunity posts...
Goto Forum:
  


Current Time: Thu Apr 25 00:11:03 GMT 2024

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

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

Back to the top