本文整理汇总了Java中org.eclipse.equinox.app.IApplication.EXIT_RESTART属性的典型用法代码示例。如果您正苦于以下问题:Java IApplication.EXIT_RESTART属性的具体用法?Java IApplication.EXIT_RESTART怎么用?Java IApplication.EXIT_RESTART使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.eclipse.equinox.app.IApplication
的用法示例。
在下文中一共展示了IApplication.EXIT_RESTART属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: startEclipseUI
/**
* Starts the eclipse UI.
* @param postWindowOpenRunnable the post window open runnable
* @return the integer
*/
public Integer startEclipseUI(Runnable postWindowOpenRunnable) {
Integer eclipseReturnValue = IApplication.EXIT_OK;
Display display = PlatformUI.createDisplay();
try {
// --- Returns if visualization was closed ----
int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor(postWindowOpenRunnable));
if (returnCode == PlatformUI.RETURN_RESTART) {
eclipseReturnValue = IApplication.EXIT_RESTART;
} else {
eclipseReturnValue = IApplication.EXIT_OK;
}
} finally {
display.dispose();
// --- Just in case of the Eclipse UI ---------
// --- usage or after an update + restart -----
if (this.getVisualisationPlatform()==ApplicationVisualizationBy.EclipseFramework || eclipseReturnValue==IApplication.EXIT_RESTART) {
appReturnValue = eclipseReturnValue;
Application.setQuitJVM(true);
}
}
return eclipseReturnValue;
}
示例2: start
@Override
public Object start ( final IApplicationContext context ) throws Exception
{
Display display = PlatformUI.createDisplay ();
try
{
int returnCode = PlatformUI.createAndRunWorkbench ( display, new ApplicationWorkbenchAdvisor () );
if ( returnCode == PlatformUI.RETURN_RESTART )
{
return IApplication.EXIT_RESTART;
}
else
{
return IApplication.EXIT_OK;
}
}
finally
{
display.dispose ();
}
}
示例3: start
/**
* @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.IApplicationContext) <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@Override
public Object start(IApplicationContext context) throws Exception {
WorkbenchAdvisor workbenchAdvisor = new TriquetrumEditorAdvisor();
Display display = PlatformUI.createDisplay();
try {
int returnCode = PlatformUI.createAndRunWorkbench(display, workbenchAdvisor);
if (returnCode == PlatformUI.RETURN_RESTART) {
return IApplication.EXIT_RESTART;
} else {
return IApplication.EXIT_OK;
}
} finally {
display.dispose();
}
}
示例4: start
/**
* @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.IApplicationContext)
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Object start(IApplicationContext context) throws Exception {
WorkbenchAdvisor workbenchAdvisor = new WTSpec4MEditorAdvisor();
Display display = PlatformUI.createDisplay();
try {
int returnCode = PlatformUI.createAndRunWorkbench(display, workbenchAdvisor);
if (returnCode == PlatformUI.RETURN_RESTART) {
return IApplication.EXIT_RESTART;
}
else {
return IApplication.EXIT_OK;
}
}
finally {
display.dispose();
}
}
示例5: start
public Object start(IApplicationContext context) throws Exception
{
Display display = PlatformUI.createDisplay();
try
{
Logger.info("Application starting", Level.MAIN, this);
int returnCode = PlatformUI.createAndRunWorkbench(display,
new ApplicationWorkbenchAdvisor());
Logger.info("Workbench exited with code " + returnCode, Level.MAIN,
this);
if (returnCode == PlatformUI.RETURN_RESTART) return IApplication.EXIT_RESTART;
else return IApplication.EXIT_OK;
}
finally
{
display.dispose();
}
}
示例6: start
public Object start(IApplicationContext context) throws Exception {
Display display = PlatformUI.createDisplay();
// OntologyEditorView.setMyOntologyTree(new MyOntologyTrees());
Activator.getDefault().createResource();
Regex.loadRegex();
// Activator.getDefault().getResource().setDisplay(this._display);
// _global = new Global(_i2b2ImportTool, _display);
try {
int returnCode = PlatformUI.createAndRunWorkbench(display,
new ApplicationWorkbenchAdvisor());
if (returnCode == PlatformUI.RETURN_RESTART)
return IApplication.EXIT_RESTART;
else
return IApplication.EXIT_OK;
} finally {
display.dispose();
}
}
示例7: start
@Override
public Object start(final IApplicationContext context) throws Exception {
Display.setAppName("Gama Platform");
Display.setAppVersion("1.7.0");
createProcessor();
if ( checkWorkspace() == EXIT_OK )
return EXIT_OK;
Display display = null;
try {
display = Display.getDefault();
final int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor());
if ( returnCode == PlatformUI.RETURN_RESTART ) { return IApplication.EXIT_RESTART; }
return IApplication.EXIT_OK;
} finally {
if ( display != null )
display.dispose();
final Location instanceLoc = Platform.getInstanceLocation();
if ( instanceLoc != null ) {
instanceLoc.release();
}
}
}
示例8: start
/**
* @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.IApplicationContext)
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Object start(IApplicationContext context) throws Exception {
WorkbenchAdvisor workbenchAdvisor = new DictionaryEditorAdvisor();
Display display = PlatformUI.createDisplay();
try {
int returnCode = PlatformUI.createAndRunWorkbench(display, workbenchAdvisor);
if (returnCode == PlatformUI.RETURN_RESTART) {
return IApplication.EXIT_RESTART;
}
else {
return IApplication.EXIT_OK;
}
}
finally {
display.dispose();
}
}
示例9: start
public Object start(IApplicationContext context) {
Display display = PlatformUI.createDisplay();
try {
PreferenceUtil.initProductEdition();
deleteErrorMemoryInfo();
initSystemLan();
PreferenceUtil.checkCleanValue();
int returnCode = PlatformUI.createAndRunWorkbench(display,
new ApplicationWorkbenchAdvisor());
if (returnCode == PlatformUI.RETURN_RESTART) {
return IApplication.EXIT_RESTART;
}
return IApplication.EXIT_OK;
} finally {
display.dispose();
}
}
示例10: start
/**
* @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.IApplicationContext)
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Object start(IApplicationContext context) throws Exception {
WorkbenchAdvisor workbenchAdvisor = new DbchangelogEditorAdvisor();
Display display = PlatformUI.createDisplay();
try {
int returnCode = PlatformUI.createAndRunWorkbench(display, workbenchAdvisor);
if (returnCode == PlatformUI.RETURN_RESTART) {
return IApplication.EXIT_RESTART;
}
else {
return IApplication.EXIT_OK;
}
}
finally {
display.dispose();
}
}
示例11: start
/**
* @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.IApplicationContext)
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Object start(IApplicationContext context) throws Exception {
WorkbenchAdvisor workbenchAdvisor = new OverviewEditorAdvisor();
Display display = PlatformUI.createDisplay();
try {
int returnCode = PlatformUI.createAndRunWorkbench(display, workbenchAdvisor);
if (returnCode == PlatformUI.RETURN_RESTART) {
return IApplication.EXIT_RESTART;
}
else {
return IApplication.EXIT_OK;
}
}
finally {
display.dispose();
}
}
示例12: start
public Object start(IApplicationContext context) {
Display display = PlatformUI.createDisplay();
try {
PreferenceUtil.initProductEdition();
if (!PreferenceUtil.checkEdition()) {
MessageDialog.openInformation(display.getActiveShell(), Messages.getString("dialog.AboutDialog.msgTitle"),
Messages.getString("dialog.AboutDialog.msg"));
return IApplication.EXIT_OK;
}
initSystemLan();
SystemResourceUtil.beforeload();
PreferenceUtil.checkCleanValue();
deleteErrorMemoryFile();
int returnCode = PlatformUI.createAndRunWorkbench(display,
new ApplicationWorkbenchAdvisor());
if (returnCode == PlatformUI.RETURN_RESTART) {
return IApplication.EXIT_RESTART;
}
return IApplication.EXIT_OK;
} finally {
display.dispose();
}
}
示例13: start
public Object start(IApplicationContext context) {
Display display = PlatformUI.createDisplay();
try {
int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor());
if (returnCode == PlatformUI.RETURN_RESTART) {
return IApplication.EXIT_RESTART;
}
return IApplication.EXIT_OK;
}
finally {
display.dispose();
}
/*
new ApplicationWorkbench().createUI();
return new Integer(0);
*/
}
示例14: start
@Override
public Object start(IApplicationContext context) {
Display display = PlatformUI.createDisplay();
try {
int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor());
if (returnCode == PlatformUI.RETURN_RESTART) {
return IApplication.EXIT_RESTART;
}
return IApplication.EXIT_OK;
}
catch (Exception e) {
e.printStackTrace();
}
finally {
display.dispose();
}
return display;
}
示例15: startWithoutWorkspaceSelection
private Object startWithoutWorkspaceSelection()
{
Display display = PlatformUI.createDisplay();
try
{
int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor());
if (returnCode == PlatformUI.RETURN_RESTART) {
return IApplication.EXIT_RESTART;
} else {
return IApplication.EXIT_OK;
}
}
finally
{
display.dispose();
}
}