org.eclipse.e4.ui.di_0.10.1.v20120523-1955

16:43:00.168 INFO  jd.cli.Main - Decompiling org.eclipse.e4.ui.di_0.10.1.v20120523-1955.jar
package org.eclipse.e4.ui.di;

import java.lang.annotation.Annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Documented
@Target({java.lang.annotation.ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Focus {}

/* Location:
 * Qualified Name:     org.eclipse.e4.ui.di.Focus
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.e4.ui.di;

import java.lang.annotation.Annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Documented
@Target({java.lang.annotation.ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Persist {}

/* Location:
 * Qualified Name:     org.eclipse.e4.ui.di.Persist
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.e4.ui.di;

import java.lang.annotation.Annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Documented
@Target({java.lang.annotation.ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface PersistState {}

/* Location:
 * Qualified Name:     org.eclipse.e4.ui.di.PersistState
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.e4.ui.di;

import java.lang.annotation.Annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.inject.Qualifier;

@Qualifier
@Documented
@Target({java.lang.annotation.ElementType.FIELD, java.lang.annotation.ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface UIEventTopic
{
  String value() default "";
}

/* Location:
 * Qualified Name:     org.eclipse.e4.ui.di.UIEventTopic
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.e4.ui.di;

public abstract class UISynchronize
{
  public abstract void syncExec(Runnable paramRunnable);
  
  public abstract void asyncExec(Runnable paramRunnable);
}

/* Location:
 * Qualified Name:     org.eclipse.e4.ui.di.UISynchronize
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.e4.ui.internal.di;

import org.eclipse.e4.core.di.suppliers.IRequestor;

class UIEventObjectSupplier$UIEventHandler$1
  implements Runnable
{
  UIEventObjectSupplier$UIEventHandler$1(UIEventObjectSupplier.UIEventHandler paramUIEventHandler) {}
  
  public void run()
  {
    this$1.requestor.execute();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.e4.ui.internal.di.UIEventObjectSupplier.UIEventHandler.1
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.e4.ui.internal.di;

import java.util.logging.Level;
import java.util.logging.Logger;
import org.eclipse.e4.core.di.suppliers.IRequestor;
import org.eclipse.e4.ui.di.UISynchronize;
import org.osgi.service.event.Event;
import org.osgi.service.event.EventHandler;

class UIEventObjectSupplier$UIEventHandler
  implements EventHandler
{
  protected final IRequestor requestor;
  private final String topic;
  
  public UIEventObjectSupplier$UIEventHandler(UIEventObjectSupplier paramUIEventObjectSupplier, String topic, IRequestor requestor)
  {
    this.topic = topic;
    this.requestor = requestor;
  }
  
  public void handleEvent(Event event)
  {
    UIEventObjectSupplier.access$0(this$0, topic, event);
    requestor.resolveArguments(false);
    UIEventObjectSupplier.access$1(this$0, topic);
    if (this$0.uiSync == null)
    {
      if (this$0.logger != null) {
        this$0.logger.log(Level.WARNING, "No realm found to process UI event " + event);
      }
      return;
    }
    this$0.uiSync.syncExec(new Runnable()
    {
      public void run()
      {
        requestor.execute();
      }
    });
  }
}

/* Location:
 * Qualified Name:     org.eclipse.e4.ui.internal.di.UIEventObjectSupplier.UIEventHandler
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.e4.ui.internal.di;

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.inject.Inject;
import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.core.di.internal.extensions.EventObjectSupplier;
import org.eclipse.e4.core.di.suppliers.IObjectDescriptor;
import org.eclipse.e4.core.di.suppliers.IRequestor;
import org.eclipse.e4.ui.di.UIEventTopic;
import org.eclipse.e4.ui.di.UISynchronize;
import org.osgi.service.event.Event;
import org.osgi.service.event.EventHandler;

public class UIEventObjectSupplier
  extends EventObjectSupplier
{
  @Inject
  protected UISynchronize uiSync;
  @Inject
  @Optional
  protected Logger logger;
  
  class UIEventHandler
    implements EventHandler
  {
    protected final IRequestor requestor;
    private final String topic;
    
    public UIEventHandler(String topic, IRequestor requestor)
    {
      this.topic = topic;
      this.requestor = requestor;
    }
    
    public void handleEvent(Event event)
    {
      addCurrentEvent(topic, event);
      requestor.resolveArguments(false);
      removeCurrentEvent(topic);
      if (uiSync == null)
      {
        if (logger != null) {
          logger.log(Level.WARNING, "No realm found to process UI event " + event);
        }
        return;
      }
      uiSync.syncExec(new Runnable()
      {
        public void run()
        {
          requestor.execute();
        }
      });
    }
  }
  
  protected EventHandler makeHandler(String topic, IRequestor requestor)
  {
    return new UIEventHandler(topic, requestor);
  }
  
  protected String getTopic(IObjectDescriptor descriptor)
  {
    if (descriptor == null) {
      return null;
    }
    UIEventTopic qualifier = (UIEventTopic)descriptor.getQualifier(UIEventTopic.class);
    return qualifier.value();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.e4.ui.internal.di.UIEventObjectSupplier
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
1

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd