Package it.unibz.instasearch.actions

Examples of it.unibz.instasearch.actions.ShowExceptionAction


        });
     
      //setProperty(IProgressConstants.ACTION_PROPERTY, action);
     
    } catch (Exception e) {
      IAction action = new ShowExceptionAction(e, "Error Checking Updates");
      setProperty(IProgressConstants.ACTION_PROPERTY, action);
     
      if (!isSystem())
        setProperty(IProgressConstants.KEEP_PROPERTY, Boolean.TRUE);
     
      if( ! isSystem() ) {
        InstaSearchPlugin.log(e);
        return new Status(IStatus.ERROR, InstaSearchPlugin.getPluginId(), 0, action.getText(), e);
      }
    }
   
    int returnCode = isUpdateAvailable() ? UPDATE_AVAILABLE_CODE : NO_UPDATE_AVAILABLE_CODE;
    return new Status(IStatus.OK, InstaSearchPlugin.getPluginId(), returnCode, "Done", null);
View Full Code Here


      monitor.done();
     
    } catch (Exception e) {
      monitor.beginTask("Exception", 1);
      setProperty(IProgressConstants.KEEP_PROPERTY, Boolean.TRUE);
      setProperty(IProgressConstants.ACTION_PROPERTY, new ShowExceptionAction(e, "Error Updating Index"));
      InstaSearchPlugin.log(e);
     
      returnStatus = Status.CANCEL_STATUS;
    }
   
View Full Code Here

        if( handlerService != null ) {
          try {
            handlerService.executeCommand(UPDATE_MANAGER_COMMAND, new Event()); // show software updates dialog
          } catch(Exception e) {
            InstaSearchPlugin.log(e);
            setProperty(IProgressConstants.ACTION_PROPERTY, new ShowExceptionAction(e, "Error Launching Update Manager"));
          }
        }
      }
    });
  }
View Full Code Here

    {
      indexer.deleteIndex();
    } catch (Exception e)
    {
      monitor.beginTask("Exception", 1);
      ShowExceptionAction action = new ShowExceptionAction(e, "Unable to delete index");
      setProperty(IProgressConstants.ACTION_PROPERTY, action);
     
      return Status.CANCEL_STATUS;
    }
   
View Full Code Here

    IContributionItem item = menuManager.find(ShowExceptionAction.ID);
   
    if( item != null )
      menuManager.remove(item);
   
    ShowExceptionAction action = new ShowExceptionAction(status);
    action.setText("Report Bug");
   
    menuManager.add(action);
  }
View Full Code Here

     
    } catch (Exception e) {
     
      monitor.beginTask("Exception", 1);
      setProperty(IProgressConstants.KEEP_PROPERTY, Boolean.TRUE);
      setProperty(IProgressConstants.ACTION_PROPERTY, new ShowExceptionAction(e, "Error Creating Index"));
      InstaSearchPlugin.log(e);
     
      return Status.CANCEL_STATUS;
    }
   
View Full Code Here

TOP

Related Classes of it.unibz.instasearch.actions.ShowExceptionAction

Copyright © 2018 www.massapicom. 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.