SwingUtilities invokeLater equivalent in SWT / Eclipse 3.x API?

What is the SwingUtilities.invokeLater()equivalent in Eclipse API 3.x?

those. how to start something on the "main topic"?

Can i use

@Inject 
UISynchronize sync;

for this in Eclipse Plug-In 3.x?

It is written that it is UISynchronizevalid "starting from 1.0". What does it mean? Why does this happen in a package e4?

+4
source share
1 answer

@Inject Eclipse 4.x(API Eclipse 4.x e4). , , Eclipse 3.x API.

Eclipse , e4view org.eclipse.ui.views. @Inject.

Display.getDefault().asyncExec() SWT SWT.

Display.getDefault().asyncExec(new Runnable()
{
  @Override
  public void run()
  {
     .. code to update the UI
  }
});
+10

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


All Articles