Package OntoUML.diagram.application

Source Code of OntoUML.diagram.application.OntoUMLApplication

package OntoUML.diagram.application;

import org.eclipse.core.runtime.IPlatformRunnable;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.PlatformUI;

/**
* @generated
*/
public class OntoUMLApplication implements IPlatformRunnable {

  /**
   * @generated
   */
  public Object run(Object args) throws Exception {
    Display display = PlatformUI.createDisplay();
    try {
      int returnCode = PlatformUI
          .createAndRunWorkbench(
              display,
              new OntoUML.diagram.application.DiagramEditorWorkbenchAdvisor());
      if (returnCode == PlatformUI.RETURN_RESTART) {
        return IPlatformRunnable.EXIT_RESTART;
      }
      return IPlatformRunnable.EXIT_OK;
    } finally {
      display.dispose();
    }
  }
}
TOP

Related Classes of OntoUML.diagram.application.OntoUMLApplication

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.