Ejemplo n.º 1
0
 /*
  * (non-Javadoc)
  *
  * @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.
  * IApplicationContext)
  */
 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();
   }
 }
Ejemplo n.º 2
0
 /**
  * *************************************************************************
  *
  * <p>************************************************************************
  */
 @Override
 public void removeSharedScope(String scope) {
   if (scope.equals(GLOBAL_SCOPE)) return;
   if (m_tables.containsKey(scope)) {
     SPELLmessage msg = new SPELLmessageRemoveSharedVariableScope(s_proxy.getClientKey(), scope);
     SPELLmessage response;
     try {
       response = s_proxy.sendRequest(msg);
       if (response != null) {
         if (SPELLmessageRemoveSharedVariableScope.isSuccess(response)) {
           Logger.info("Remove shared scope " + scope, Level.PROC, this);
           m_tables.remove(scope);
         }
       }
     } catch (Exception ex) {
       ex.printStackTrace();
     }
   }
 }