You need to make sure that you set partName in the correct init method and that you make a super call before specifying a part name like this. I know this example works with my application.
@Override public void init(IViewSite site) throws PartInitException { super.init(site); String scannerName = site.getSecondaryId(); setPartName("MyName"); }
source share