Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » PlaceHolder
PlaceHolder [message #1743631] Sat, 17 September 2016 11:37
Jean-Pascal Laux is currently offline Jean-Pascal LauxFriend
Messages: 38
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
Previous Topic:Update application with P2
Next Topic:P2 periodic check
Goto Forum:
  


Current Time: Sat Nov 18 23:38:55 GMT 2017

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

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