0

I am developing 'Pure' Eclipse 4 RCP application. I want to open a 'part' using method like page.openEditor(IEditorInput input, String editorId, boolean activate); in e3.x

How can i do this?

1 Answers1

0

You use EPartService to manage parts:

@Inject
private EPartService partService;


MPart mpart = partService.showPart("part id", PartState.ACTIVATE);

if necessary you can then access your part class:

MyPart myPart = (MyPart)mpart.getObject();
greg-449
  • 109,219
  • 232
  • 102
  • 145