PlaceHolder [message #1743631] |
Sat, 17 September 2016 11:37 |
Jean-Pascal Laux Messages: 81 Registered: December 2011 |
Member |
|
|
Hello,
I have implemented PlaceHolder and Shared elements like explained in the Lars Vogel's book.
It works fine but I have a little issue.
By default the PlaceHolder is not visible. When the user clicks on a element of my tree viewer, I put the PlaceHolder visible. It works but at the first activation, the part is not activated, I have to click to the tab to see it.
I have tried several things with no success. I know the renderer is "lazy" and I think it could the cause of my problem.
Here my cdoe :
public static MPart show(EPartService partService,String id, String code) {
MPart part=null;
if (code==null)
part=partService.findPart(id);
else {
part=partService.findPart(id+"."+code);
if (part==null) {
part = partService.createPart(id);
if (part!=null) part.setElementId(id+"."+code);
}
}
if (part!=null) {
part.setVisible(true);
partService.showPart(part,PartState.VISIBLE);
partService.activate(part);
if (part.getCurSharedRef()!=null) {
part.getCurSharedRef().setVisible(true);
}
}
return part;
}
Any idea about ?
Thanks
Jean-Pascal
|
|
|
Powered by
FUDForum. Page generated in 0.03226 seconds