Package org.eclipse.osgi.framework.log

Examples of org.eclipse.osgi.framework.log.FrameworkLog.log()


        FrameworkLogEntry[] logChildren = new FrameworkLogEntry[constraints.size()];
        for (int i = 0; i < logChildren.length; i++)
          logChildren[i] = new FrameworkLogEntry(symbolicName, FrameworkLogEntry.WARNING, 0, MessageHelper.getResolutionFailureMessage((VersionConstraint) constraints.get(i)), 0, null, null);
        rootChildren[rootIndex] = new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, FrameworkLogEntry.WARNING, 0, generalMessage, 0, null, logChildren);
      }
      logService.log(new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, FrameworkLogEntry.WARNING, 0, EclipseAdaptorMsg.ECLIPSE_STARTUP_ROOTS_NOT_RESOLVED, 0, null, rootChildren));
    }

    // There may be some bundles unresolved for other reasons, causing the system to be unresolved
    // log all unresolved constraints now
    ArrayList allChildren = new ArrayList();
View Full Code Here


        }

        allChildren.add(new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, FrameworkLogEntry.WARNING, 0, generalMessage, 0, null, logChildren));
      }
    if (allChildren.size() > 0)
      logService.log(new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, FrameworkLogEntry.WARNING, 0, EclipseAdaptorMsg.ECLIPSE_STARTUP_ALL_NOT_RESOLVED, 0, null, (FrameworkLogEntry[]) allChildren.toArray(new FrameworkLogEntry[allChildren.size()])));
  }

  private static void publishSplashScreen(final Runnable endSplashHandler) {
    if (endSplashHandler == null)
      return;
View Full Code Here

  public void publishFrameworkEventPrivileged(FrameworkEvent event) {
    /* if the event is an error then it should be logged */
    if (event.getType() == FrameworkEvent.ERROR) {
      FrameworkLog frameworkLog = adaptor.getFrameworkLog();
      if (frameworkLog != null)
        frameworkLog.log(event);
    }
    /* queue to hold set of listeners */
    ListenerQueue listeners = new ListenerQueue(eventManager);
    /* queue to hold set of BundleContexts w/ listeners */
    ListenerQueue contexts = new ListenerQueue(eventManager);
View Full Code Here

            }
            message += " : " + dataMessage;
            message = getMessage(logType, message);
            entry = myActivator.createFrameworkLogEntry(FrameworkEvent.INFO, message, null);
            if (entry != null) {
                log.log(entry);
            }
        }
    }

    public void log(SVNLogType logType, Throwable th, Level logLevel) {
View Full Code Here

        FrameworkLogEntry[] logChildren = new FrameworkLogEntry[constraints.size()];
        for (int i = 0; i < logChildren.length; i++)
          logChildren[i] = new FrameworkLogEntry(symbolicName, FrameworkLogEntry.WARNING, 0, MessageHelper.getResolutionFailureMessage(constraints.get(i)), 0, null, null);
        rootChildren[rootIndex] = new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, FrameworkLogEntry.WARNING, 0, generalMessage, 0, null, logChildren);
      }
      logService.log(new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, FrameworkLogEntry.WARNING, 0, EclipseAdaptorMsg.ECLIPSE_STARTUP_ROOTS_NOT_RESOLVED, 0, null, rootChildren));
    }

    // There may be some bundles unresolved for other reasons, causing the system to be unresolved
    // log all unresolved constraints now
    List<FrameworkLogEntry> allChildren = new ArrayList<FrameworkLogEntry>();
View Full Code Here

        }

        allChildren.add(new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, FrameworkLogEntry.WARNING, 0, generalMessage, 0, null, logChildren));
      }
    if (allChildren.size() > 0)
      logService.log(new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, FrameworkLogEntry.WARNING, 0, EclipseAdaptorMsg.ECLIPSE_STARTUP_ALL_NOT_RESOLVED, 0, null, allChildren.toArray(new FrameworkLogEntry[allChildren.size()])));
  }

  private static void publishSplashScreen(final Runnable endSplashHandler) {
    if (endSplashHandler == null)
      return;
View Full Code Here

        FrameworkLogEntry[] logChildren = new FrameworkLogEntry[constraints.size()];
        for (int i = 0; i < logChildren.length; i++)
          logChildren[i] = new FrameworkLogEntry(symbolicName, FrameworkLogEntry.WARNING, 0, MessageHelper.getResolutionFailureMessage((VersionConstraint) constraints.get(i)), 0, null, null);
        rootChildren[rootIndex] = new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, FrameworkLogEntry.WARNING, 0, generalMessage, 0, null, logChildren);
      }
      logService.log(new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, FrameworkLogEntry.WARNING, 0, EclipseAdaptorMsg.ECLIPSE_STARTUP_ROOTS_NOT_RESOLVED, 0, null, rootChildren));
    }

    // There may be some bundles unresolved for other reasons, causing the system to be unresolved
    // log all unresolved constraints now
    ArrayList allChildren = new ArrayList();
View Full Code Here

        }

        allChildren.add(new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, FrameworkLogEntry.WARNING, 0, generalMessage, 0, null, logChildren));
      }
    if (allChildren.size() > 0)
      logService.log(new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, FrameworkLogEntry.WARNING, 0, EclipseAdaptorMsg.ECLIPSE_STARTUP_ALL_NOT_RESOLVED, 0, null, (FrameworkLogEntry[]) allChildren.toArray(new FrameworkLogEntry[allChildren.size()])));
  }

  private static void publishSplashScreen(final Runnable endSplashHandler) {
    if (endSplashHandler == null)
      return;
View Full Code Here

  public void publishFrameworkEventPrivileged(FrameworkEvent event) {
    /* if the event is an error then it should be logged */
    if (event.getType() == FrameworkEvent.ERROR) {
      FrameworkLog frameworkLog = adaptor.getFrameworkLog();
      if (frameworkLog != null)
        frameworkLog.log(event);
    }
    /* queue to hold set of listeners */
    ListenerQueue listeners = new ListenerQueue(eventManager);
    /* queue to hold set of BundleContexts w/ listeners */
    ListenerQueue contexts = new ListenerQueue(eventManager);
View Full Code Here

      ref = bc.getServiceReference(FrameworkLog.class.getName());
      if (ref == null)
        return;
      FrameworkLog log = (FrameworkLog) context.getService(ref);
      if (log != null)
        log.log(entry);
    } finally {
      if (ref != null)
        bc.ungetService(ref);
    }
  }
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.