Eclipse Plugin Development: Get Active WorkBench Boundaries

I am trying to create an eclipse plugin in which I need to get the boundaries of the active workstation with which I get:

PlatformUI.getWorkbench().getActiveWorkbenchWindow()

I can get shell borders with

PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell().getBounds()

but I need to get the borders of the text editor relative to the display That is the initial pixel location of the wrt OS Display text editor, as I got into

PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell().getBounds()
+4
source share

Source: https://habr.com/ru/post/1609559/


All Articles