Application.java
Go to the documentation of this file.
1 package com.generalrobotix.ui.grxui;
2 
3 import org.eclipse.core.runtime.IPlatformRunnable;
4 import org.eclipse.swt.widgets.Display;
5 import org.eclipse.ui.PlatformUI;
6 
7 public class Application implements IPlatformRunnable {
8 
9  public Object run(Object args) throws Exception {
10  Display display = PlatformUI.createDisplay();
11  try {
12  int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor());
13  if (returnCode == PlatformUI.RETURN_RESTART) {
14  return IPlatformRunnable.EXIT_RESTART;
15  }
16  return IPlatformRunnable.EXIT_OK;
17  } finally {
18  display.dispose();
19  }
20  }
21 
22 }
org


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Sep 8 2022 02:24:02