RulerEditPart replacement [message #141482] |
Mon, 05 July 2004 11:52 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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:
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03059 seconds