Examples of ISafeRunnable


Examples of org.eclipse.core.runtime.ISafeRunnable

    /*
     * Start internal Server (chance that System.exit() gets called!). It is cruicial
     * that no class from org.rssowl.core is loaded to avoid that a second instance
     * that is launching, starts up the core for a second time.
     */
    SafeRunner.run(new ISafeRunnable() {
      public void run() throws Exception {
        startServer();
      }

      public void handleException(Throwable e) {
View Full Code Here

Examples of org.eclipse.core.runtime.ISafeRunnable

  private void startup() {

    /* Load and Init XMLParser */
    fXMLParserImpl = loadXMLParserImpl();
    Assert.isNotNull(fXMLParserImpl);
    SafeRunner.run(new ISafeRunnable() {

      /* Use Default XML Parser Impl */
      public void handleException(Throwable exception) {
        fXMLParserImpl = new DefaultSaxParserImpl();
        try {
View Full Code Here

Examples of org.eclipse.core.runtime.ISafeRunnable

    final Composite container = new Composite(parent, SWT.BORDER);
    container.setLayout(new GridLayout(1, false));
    container.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_WHITE));

    /* Contents */
    SafeRunnable.run(new ISafeRunnable() {
      public void run() throws Exception {
        createContents(container);
      }

      public void handleException(Throwable th) {
View Full Code Here

Examples of org.eclipse.core.runtime.ISafeRunnable

    /*
     * Start internal Server (chance that System.exit() gets called!). It is cruicial
     * that no class from org.rssowl.core is loaded to avoid that a second instance
     * that is launching, starts up the core for a second time.
     */
    SafeRunner.run(new ISafeRunnable() {
      public void run() throws Exception {
        startServer();
      }

      public void handleException(Throwable e) {
View Full Code Here

Examples of org.eclipse.core.runtime.ISafeRunnable

    /*
     * Start internal Server (chance that System.exit() gets called!). It is cruicial
     * that no class from org.rssowl.core is loaded to avoid that a second instance
     * that is launching, starts up the core for a second time.
     */
    SafeRunner.run(new ISafeRunnable() {
      public void run() throws Exception {
        startServer();
      }

      public void handleException(Throwable e) {
View Full Code Here

Examples of org.eclipse.core.runtime.ISafeRunnable

  private void startup() {

    /* Load and Init XMLParser */
    fXMLParserImpl = loadXMLParserImpl();
    Assert.isNotNull(fXMLParserImpl);
    SafeRunner.run(new ISafeRunnable() {

      /* Use Default XML Parser Impl */
      public void handleException(Throwable exception) {
        fXMLParserImpl = new DefaultSaxParserImpl();
        try {
View Full Code Here

Examples of org.eclipse.core.runtime.ISafeRunnable

    for (final IFilterAction action : actions) {
      NewsActionDescriptor newsActionDescriptor = fNewsActionPresentationManager.getNewsActionDescriptor(action.getActionId());
      if (newsActionDescriptor != null && newsActionDescriptor.isForcable()) {
        final INewsAction newsAction = newsActionDescriptor.getNewsAction();
        if (newsAction != null) {
          SafeRunnable.run(new ISafeRunnable() {
            public void handleException(Throwable e) {
              Activator.getDefault().logError(e.getMessage(), e);
            }

            public void run() throws Exception {
View Full Code Here

Examples of org.eclipse.core.runtime.ISafeRunnable

  }
  // clone so that a listener cannot have a side-effect on this list when being notified
  listeners = (ArrayList)listeners.clone();
  for (int i= 0; i < listeners.size(); i++) {
    final ITypeHierarchyChangedListener listener= (ITypeHierarchyChangedListener)listeners.get(i);
    SafeRunner.run(new ISafeRunnable() {
      public void handleException(Throwable exception) {
        Util.log(exception, "Exception occurred in listener of Type hierarchy change notification"); //$NON-NLS-1$
      }
      public void run() throws Exception {
        listener.typeHierarchyChanged(TypeHierarchy.this);
View Full Code Here

Examples of org.eclipse.core.runtime.ISafeRunnable

protected void notifyChanged(final BufferChangedEvent event) {
  ArrayList listeners = this.changeListeners;
  if (listeners != null) {
    for (int i = 0, size = listeners.size(); i < size; ++i) {
      final IBufferChangedListener listener = (IBufferChangedListener) listeners.get(i);
      SafeRunner.run(new ISafeRunnable() {
        public void handleException(Throwable exception) {
          Util.log(exception, "Exception occurred in listener of buffer change notification"); //$NON-NLS-1$
        }
        public void run() throws Exception {
          listener.bufferChanged(event);
View Full Code Here

Examples of org.eclipse.core.runtime.ISafeRunnable

    if (participants == null) return;

    final ReconcileContext context = new ReconcileContext(this, workingCopy);
    for (int i = 0, length = participants.length; i < length; i++) {
      final CompilationParticipant participant = participants[i];
      SafeRunner.run(new ISafeRunnable() {
        public void handleException(Throwable exception) {
          if (exception instanceof Error) {
            throw (Error) exception; // errors are not supposed to be caught
          } else if (exception instanceof OperationCanceledException)
            throw (OperationCanceledException) exception;
View Full Code Here
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.