Package org.eclipse.core.runtime

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


  }

  public static void log(String msg, int msgType) {
    ILog log = getDefault().getLog();
    Status status = new Status(msgType, getDefault().getBundle().getSymbolicName(), msgType, msg + "\n", null); //$NON-NLS-1$
    log.log(status);
  }

    static void async(Runnable run) {
        if (Display.getCurrent() == null) {
            Display.getDefault().asyncExec(run);
View Full Code Here


              Status status = new Status(
                  IStatus.WARNING,
                  element.getContributor().getName(),
                  "Cannot determine resolve class for "+element.getDeclaringExtension().getUniqueIdentifier(), //$NON-NLS-1$
                  notFound );
        log.log( status );
            }
        }
        return false;
    }
   
View Full Code Here

        try {
            BookmarksPlugin.getDefault().storeToPreferences();
        } catch (BackingStoreException e) {
            ILog log = BookmarksPlugin.getDefault().getLog();
            IStatus status = new Status( IStatus.WARNING,BookmarksPlugin.ID,"Unable to save to BookmarksPlugin");
            log.log(status);
        }
        Set<IBookmark> bookmarks = new CopyOnWriteArraySet<IBookmark>();
        notifyListeners(new BookmarkListener.Event(bookmarks));
    }
   
View Full Code Here

        {
            buf.append(env[i]);
            buf.append('\n');
        }
        ILog log = PerlDebugPlugin.getDefault().getLog();
        log.log(new Status(
            IStatus.INFO,
            PerlDebugPlugin.getUniqueIdentifier(),
            IStatus.OK,
            buf.toString(),
            null));
View Full Code Here

    if (extensionPoint == null) {
      String msg= NLSUtility.format(TextEditorMessages.DocumentProviderRegistry_error_extension_point_not_found, PlatformUI.PLUGIN_ID);
      Bundle bundle = Platform.getBundle(PlatformUI.PLUGIN_ID);
      ILog log= Platform.getLog(bundle);
      log.log(new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, IStatus.OK, msg, null));
      return;
    }

    IConfigurationElement[] elements= extensionPoint.getConfigurationElements();
    for (int i= 0; i < elements.length; i++) {
View Full Code Here

   * @param e the core exception
   */
  private static void handleCoreException(CoreException e) {
    Bundle bundle = Platform.getBundle(PlatformUI.PLUGIN_ID);
    ILog log= Platform.getLog(bundle);
    log.log(e.getStatus());
  }

  /**
   * Returns whether the given marker is of the given type (either directly or indirectly).
   *
 
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= getTextEditor().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= getTextEditor().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 e) {
      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, e));
    }
  }
}
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());
  }

  /**
 
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.