Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF 2.0, IBorderItemLocator wrongly referred?
GMF 2.0, IBorderItemLocator wrongly referred? [message #183306] Thu, 17 April 2008 05:04 Go to next message
Sandip is currently offline SandipFriend
Messages: 39
Registered: July 2009
Member
Guys, please correct me if my understanding is wrong.

1. I have my own ComponentEditPart extends AbstractBorderedShapeEditPart

2. I have my own InPortEditPart extends BorderedBorderItemEditPart

3. In the addFixedChild() of ComponentEditPart I am adding InPortEditPart
using

if (childEditPart instanceof
com.bosch.rtc.flowVinci.diagram.edit.parts.InportEditPart) {
BorderItemLocator locator = new BorderItemLocator(getMainFigure(),
PositionConstants.WEST);
getBorderedFigure().getBorderItemContainer().add( ((com.bosch.rtc.flowVinci.diagram.edit.parts.InportEditPart)
childEditPart) .getFigure(), locator);
return true;
}

Here org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator
implements org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocato r
which is deprecated. Also the code is removed from this class. It is
suppose to refer
org.eclipse.gmf.runtime.draw2d.ui.figures.IBorderItemLocator .

Is it because of this that my BorderItemRectilinearRouter does not behave
as intended? Also my InPorts start from middle of components, and wrap
towards the bottom of the component if PositionConstant.West is given. For
outports it starts from the middle and wrap towards top, if
Positioncontant.East is used in the Parent Affixed Side property in
gmfgraph model.

I am using the last GMF 2.0 release in June 2007. Is this a bug? Is it
solved now in the latest stable build?
Re: GMF 2.0, IBorderItemLocator wrongly referred? [message #183756 is a reply to message #183306] Mon, 21 April 2008 15:43 Go to previous message
Cherie Revells is currently offline Cherie RevellsFriend
Messages: 299
Registered: July 2009
Senior Member
Sandip,

The deprecated IBorderItemLocator has recently been 'undeprecated'. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=226966. Your border
item locator should implement this one (that is, the one in
org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocato r).

- Cherie

Sandip wrote:
>
> Guys, please correct me if my understanding is wrong.
> 1. I have my own ComponentEditPart extends AbstractBorderedShapeEditPart
>
> 2. I have my own InPortEditPart extends BorderedBorderItemEditPart
>
> 3. In the addFixedChild() of ComponentEditPart I am adding
> InPortEditPart using
>
> if (childEditPart instanceof
> com.bosch.rtc.flowVinci.diagram.edit.parts.InportEditPart) {
> BorderItemLocator locator = new BorderItemLocator(getMainFigure(),
> PositionConstants.WEST);
> getBorderedFigure().getBorderItemContainer().add(
> ((com.bosch.rtc.flowVinci.diagram.edit.parts.InportEditPart)
> childEditPart) .getFigure(), locator);
> return true;
> }
>
> Here org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator
> implements
> org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocato r which is
> deprecated. Also the code is removed from this class. It is suppose to
> refer org.eclipse.gmf.runtime.draw2d.ui.figures.IBorderItemLocator .
> Is it because of this that my BorderItemRectilinearRouter does not
> behave as intended? Also my InPorts start from middle of components, and
> wrap towards the bottom of the component if PositionConstant.West is
> given. For outports it starts from the middle and wrap towards top, if
> Positioncontant.East is used in the Parent Affixed Side property in
> gmfgraph model.
> I am using the last GMF 2.0 release in June 2007. Is this a bug? Is it
> solved now in the latest stable build?
>
Previous Topic:Refresh when constraint value has changed
Next Topic:Click and drag to select multiple elements shows the popup bar for adding new elements...Why?
Goto Forum:
  


Current Time: Thu Apr 25 04:46:22 GMT 2024

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

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

Back to the top