refs #7275
Change-Id: Iff469ad0586c8ad16f411ab232ffc5a47825ef72
public static MPart getMPartById(String partId) {
IEclipseContext context = PlatformUI.getWorkbench().getService(IEclipseContext.class);
EPartService partService = context.get(EPartService.class);
public static MPart getMPartById(String partId) {
IEclipseContext context = PlatformUI.getWorkbench().getService(IEclipseContext.class);
EPartService partService = context.get(EPartService.class);
- return partService.findPart(partId);
+ MPart part = partService.findPart(partId);
+ if (part == null)
+ part = partService.createPart(partId);
+ return part;