Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.ISafeRunnable


                  pairing.inserter = (AbstractCharacterPairInserter) element.createExecutableExtension("class");
                  if (pairing.inserter != null && partitions.length > 0) {
                    fPairInserter.addInserter(pairing);
                    /* use a SafeRunner since this method is also invoked during Part creation */
                    SafeRunner.run(new ISafeRunnable() {
                      public void run() throws Exception {
                        pairing.inserter.initialize();
                      }

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


          facade.removeCompletionListener(fCompletionListener);
      }

      for (int i = 0; i < fInserters.length; i++) {
        final AbstractCharacterPairInserter inserter = fInserters[i].inserter;
        SafeRunner.run(new ISafeRunnable() {
          public void handleException(Throwable exception) {
            // rely on default logging
          }

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

        return;
      final boolean[] paired = { false };
      for (int i = 0; i < fInserters.length; i++) {
        final CharacterPairing pairing = fInserters[i];
        // use a SafeRunner -- this is a critical function (typing)
        SafeRunner.run(new ISafeRunnable() {
          public void run() throws Exception {
            final AbstractCharacterPairInserter inserter = pairing.inserter;
            if (inserter.hasPair(event.character)) {
              if (pair(event, inserter, pairing.partitions))
                paired[0] = true;
View Full Code Here

   * @return List of all {@link FacesConfigType} instances.
   */
  protected List<FacesConfigType> getFacesConfigModels() {
    final List<FacesConfigType> facesConfigModels = new ArrayList<FacesConfigType>();   
    for(final IJSFAppConfigProvider configProvider : getJSFAppConfigProviders()) {   
        SafeRunner.run(new ISafeRunnable() {

                public void handleException(Throwable exception) {
                    //SafeRunner will log the exception
                }

View Full Code Here

        final String[] result = new String[1];

        for (final IAttributeValueResolver resolver : AttributeValueResolverRegistryReader
                .getInstance().getExtensions())
        {
            SafeRunner.run(new ISafeRunnable()
            {
                public void handleException(Throwable exception)
                {
                    PDPlugin
                            .log(
View Full Code Here

  @Override
  public void run()
  {
    try
    {
      ISafeRunnable runnable = new ISafeRunnable()
      {

        public void handleException(Throwable e)
        {
          DestecsCorePlugin.log("SafeBuilder", e);
View Full Code Here

    } else
    {
      final IDestecsProject currentProject = this;

      final IProgressMonitor mon = monitor;
      ISafeRunnable runnable = new ISafeRunnable()
      {

        public void handleException(Throwable e)
        {
          DestecsCorePlugin.log("DestecsProject typeCheck ISafeRunnable", e);
View Full Code Here

            final IStructuredDocumentContext context,
            final Region2AttrAdapter attrAdapter)
    {
        // so of the code in run calls out into extension code or code
        // dependent on external data (meta-data)
        SafeRunner.run(new ISafeRunnable()
        {
            public void handleException(final Throwable exception)
            {
                JSFCorePlugin.log(String.format(
                        "Error validating attribute: %s on element %s", //$NON-NLS-1$
View Full Code Here

        .getConfigurationElementsFor(TRACKER_EXTENSION_ID);

    final ImmutableSet.Builder<ITracker<?>> builder = ImmutableSet.builder();
    for (final IConfigurationElement e : elements) {

      SafeRunner.run(new ISafeRunnable() {
        @Override
        public void handleException(Throwable e) {
          getLog().log(new Status(IStatus.ERROR, PLUGIN_ID, e.getMessage(), e));
          e.printStackTrace();
        }
View Full Code Here

  public Collection<PageDescriptor> loadRootPages() {
    final Set<PageDescriptor> pages = Sets.newLinkedHashSet();
    for (final IConfigurationElement e : Platform.getExtensionRegistry()
        .getConfigurationElementsFor(UI_PAGE_EXTENSION_ID)) {

      SafeRunner.run(new ISafeRunnable() {

        @Override
        public void handleException(Throwable e) {
          e.printStackTrace();
        }
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.ISafeRunnable

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.