|
|
|
|
|
Re: Hiding and unhiding of nodes [message #178704 is a reply to message #178623] |
Sun, 23 March 2008 08:39 |
Eclipse User |
|
|
|
Originally posted by: jan.herriger.gmx.de
I had a similar problem. To solve the problem, inside the
BorderedShapeEditPart (the parent), I overwrote
#handleNotificationEvent(Notification event). Now, it only refreshes the
child EditPart, which visibility has changed:
if (NotationPackage.eINSTANCE.getView_Visible().equals(
event.getFeature())) {
Node node = (Node) event.getNotifier();
refreshChild((GraphicalEditPart)getChildBySemanticHint(
node.getType()));
}
else {
super.handleNotificationEvent(event);
}
BG schrieb:
> I was able to create a command to hide the view based using attribute
> CompositeCommand cc = new CompositeCommand("Diagram_settings");
>
> BorderedBorderItemEditPart compShapeEditPart =
> (BorderedBorderItemEditPart)object;
> View hostView =(View)compShapeEditPart.getModel();
> cc.add(new ShowHidePortsCommand(editingDomain,hostView,true));
>
>
> when i do hide all or unhide all it working fine but when try to hide
> some port node in this case let us take to hide all inport port and all
> unhide outport then it is not refreshing correctly elements i.e hide is
> working fine but unhide ports are not appearing back on editor if debug
> i can see the view.setVisible(true) but still it not visible ?
>
> PS :here my port object node is represented by image.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02382 seconds