Skip to content

I20250121-1800

@laeubi laeubi tagged this 21 Jan 17:48
Currently JavaPlugin.getActivePage() fails if no workbench is running,
while the method itself can return null if there is no active window
anyways. Beside that is unnecessary access the default java plugin even
though all code called there is static anyways.

This now changes the following parts:

1) guard getActiveWorkbenchWindow against not running workbench
2) used getActiveWorkbenchWindow instead of similar code in
getActivePage like in getActiveWorkbenchShell
3) delete no longer needed private method
4) Use JavaPlugin.getActiveWorkbenchWindow() instead of PlatformUI
5) Use JavaPlugin.getActiveWorkbenchShell() instead of PlatformUI
Assets 2
Loading