Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to get active part from IWorkbenchPage in e4?(How to get active part from IWorkbenchPage in e4?)
How to get active part from IWorkbenchPage in e4? [message #1772544] Tue, 12 September 2017 08:56
Krishna  Sethi is currently offline Krishna SethiFriend
Messages: 1
Registered: September 2017
Junior Member

The code below is working fine in e3 but not working in e4. I am able to getting active page, but not able to get active part from active page:-

IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();

mpart = (IViewPart) page.getActivePart(); // this line gives null value in e4, but working fine in e3

Is their is another way to get active part?????
Previous Topic:Templates not inserting correctly
Next Topic:Xbootclasspath is no longer a supported option on JRE 9
Goto Forum:
  


Current Time: Mon Sep 24 08:17:45 GMT 2018

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

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

Back to the top