Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.ILog.log()


    ILog log= Platform.getLog(bundle);

    if (message != null)
      log.log(new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, IStatus.OK, message, exception));
    else
      log.log(exception.getStatus());
  }

  /**
   * Updates the internal cache for the given input.
   *
 
View Full Code Here


   */
  protected void handleCoreException(CoreException exception, String message) {
    Bundle bundle = Platform.getBundle(PlatformUI.PLUGIN_ID);
    ILog log= Platform.getLog(bundle);
    IStatus status= message != null ? new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, IStatus.OK, message, exception) : exception.getStatus();
    log.log(status);
  }

  /**
   * Returns the file store denoted by the given info.
   *
 
View Full Code Here

    } catch (CoreException x) {
      IStatus status= x.getStatus();
      if (status == null || status.getSeverity() != IStatus.CANCEL) {
        Bundle bundle= Platform.getBundle(PlatformUI.PLUGIN_ID);
        ILog log= Platform.getLog(bundle);
        log.log(x.getStatus());

        Shell shell= getSite().getShell();
        String title= EditorMessages.Editor_error_validateEdit_title;
        String msg= EditorMessages.Editor_error_validateEdit_message;
        ErrorDialog.openError(shell, title, msg, x.getStatus());
View Full Code Here

          updateStateDependentActions();

      } catch (CoreException x) {
        Bundle bundle= Platform.getBundle(PlatformUI.PLUGIN_ID);
        ILog log= Platform.getLog(bundle);
        log.log(x.getStatus());
      }
    }
  }

  /**
 
View Full Code Here

  protected void handleCoreException(CoreException exception, String message) {
    Bundle bundle = Platform.getBundle(PlatformUI.PLUGIN_ID);
    ILog log= Platform.getLog(bundle);

    if (message != null)
      log.log(new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, IStatus.OK, message, exception));
    else
      log.log(exception.getStatus());


    Shell shell= fTextEditor.getSite().getShell();
View Full Code Here

    ILog log= Platform.getLog(bundle);

    if (message != null)
      log.log(new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, IStatus.OK, message, exception));
    else
      log.log(exception.getStatus());


    Shell shell= fTextEditor.getSite().getShell();
    String title= getString(fBundle, fPrefix + "error.dialog.title", fPrefix + "error.dialog.title"); //$NON-NLS-2$ //$NON-NLS-1$
    String msg= getString(fBundle, fPrefix + "error.dialog.message", fPrefix + "error.dialog.message"); //$NON-NLS-2$ //$NON-NLS-1$
View Full Code Here

      operationHistory.execute(operation, null, context);
    } catch (ExecutionException x) {
      Bundle bundle= Platform.getBundle(PlatformUI.PLUGIN_ID);
      ILog log= Platform.getLog(bundle);
      String msg= getString(fBundle, fPrefix + "error.dialog.message", fPrefix + "error.dialog.message"); //$NON-NLS-2$ //$NON-NLS-1$
      log.log(new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, IStatus.OK, msg, x));
    }
  }

  /*
   * @see TextEditorAction#update()
View Full Code Here

  protected void handleCoreException(CoreException exception, String message) {

    Bundle bundle = Platform.getBundle(PlatformUI.PLUGIN_ID);
    ILog log= Platform.getLog(bundle);
    if (message != null)
      log.log(new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, IStatus.OK, message, exception));
    else
      log.log(exception.getStatus());
  }

  /**
 
View Full Code Here

    Bundle bundle = Platform.getBundle(PlatformUI.PLUGIN_ID);
    ILog log= Platform.getLog(bundle);
    if (message != null)
      log.log(new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, IStatus.OK, message, exception));
    else
      log.log(exception.getStatus());
  }

  /**
   * Creates and returns the character position of the given marker based
   * on its attributes.
View Full Code Here

   * @param message message
   */
  public static void logDebug(String message){
    ILog log = getDefault().getLog();
    IStatus status = new Status(IStatus.INFO,getDefault().getPluginId(),0,message,null);
    log.log(status);
  }
 
  /**
   * Logging error information.
   *
 
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.