org.eclipse.mylyn.bugzilla.ui_3.7.1.v20120425-0100

16:46:18.459 INFO  jd.cli.Main - Decompiling org.eclipse.mylyn.bugzilla.ui_3.7.1.v20120425-0100.jar
package org.eclipse.mylyn.internal.bugzilla.ui;

import java.text.MessageFormat;
import org.eclipse.core.runtime.Assert;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.hyperlink.IHyperlink;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.ui.TasksUiUtil;

public final class TaskAttachmentHyperlink
  implements IHyperlink
{
  private final IRegion region;
  private final TaskRepository repository;
  private final String attachmentId;
  
  public TaskAttachmentHyperlink(IRegion region, TaskRepository repository, String attachmentId)
  {
    Assert.isNotNull(repository);
    this.region = region;
    this.repository = repository;
    this.attachmentId = attachmentId;
  }
  
  public IRegion getHyperlinkRegion()
  {
    return region;
  }
  
  public String getHyperlinkText()
  {
    return MessageFormat.format(Messages.TaskAttachmentHyperlink_Open_Attachment_X_in_Y, new Object[] { attachmentId, 
      repository.getRepositoryLabel() });
  }
  
  public String getTypeLabel()
  {
    return null;
  }
  
  public void open()
  {
    String url = repository.getUrl() + "/attachment.cgi?id=" + attachmentId;
    TasksUiUtil.openUrl(url);
  }
  
  public int hashCode()
  {
    int result = 1;
    result = 31 * result + (attachmentId == null ? 0 : attachmentId.hashCode());
    result = 31 * result + (region == null ? 0 : region.hashCode());
    result = 31 * result + (repository == null ? 0 : repository.hashCode());
    return result;
  }
  
  public boolean equals(Object obj)
  {
    if (this == obj) {
      return true;
    }
    if (obj == null) {
      return false;
    }
    if (getClass() != obj.getClass()) {
      return false;
    }
    TaskAttachmentHyperlink other = (TaskAttachmentHyperlink)obj;
    if (attachmentId == null)
    {
      if (attachmentId != null) {
        return false;
      }
    }
    else if (!attachmentId.equals(attachmentId)) {
      return false;
    }
    if (region == null)
    {
      if (region != null) {
        return false;
      }
    }
    else if (!region.equals(region)) {
      return false;
    }
    if (repository == null)
    {
      if (repository != null) {
        return false;
      }
    }
    else if (!repository.equals(repository)) {
      return false;
    }
    return true;
  }
  
  public String toString()
  {
    return 
      "TaskAttachmentHyperlink [attachmentId=" + attachmentId + ", region=" + region + ", repository=" + repository + "]";
  }
}

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

import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExtension;
import org.eclipse.core.runtime.IExtensionPoint;
import org.eclipse.core.runtime.IExtensionRegistry;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
import org.eclipse.mylyn.commons.core.StatusHandler;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaLanguageSettings;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector;

public class BugzillaUiExtensionReader
{
  public static final String EXTENSION_LANGUAGES = "org.eclipse.mylyn.bugzilla.core.languages";
  public static final String EXTENSION_TMPL_LANGUAGE = "language";
  public static final String ATTR_LANG_VALUE = "value";
  public static final String ELMNT_LANG_NAME = "name";
  public static final String ELMNT_LANG_ERROR_LOGIN = "error_login";
  public static final String ELMNT_LANG_ERROR_COLLISION = "error_collision";
  public static final String ELMNT_LANG_ERROR_COMMENT_REQIRED = "error_comment_required";
  public static final String ELMNT_LANG_ERROR_LOGGED_OUT = "error_logged_out";
  public static final String ELMNT_LANG_BAD_LOGIN = "bad_login";
  public static final String ELMNT_LANG_PROCESSED = "processed";
  public static final String ELMNT_LANG_CHANGES_SUBMITTED = "changes_submitted";
  private static boolean coreExtensionsRead = false;
  
  public static void initStartupExtensions()
  {
    if (!coreExtensionsRead)
    {
      IExtensionRegistry registry = Platform.getExtensionRegistry();
      
      IExtensionPoint templatesExtensionPoint = registry.getExtensionPoint("org.eclipse.mylyn.bugzilla.core.languages");
      IExtension[] templateExtensions = templatesExtensionPoint.getExtensions();
      IExtension[] arrayOfIExtension1;
      int j = (arrayOfIExtension1 = templateExtensions).length;
      for (int i = 0; i < j; i++)
      {
        IExtension templateExtension = arrayOfIExtension1[i];
        IConfigurationElement[] elements = templateExtension.getConfigurationElements();
        IConfigurationElement[] arrayOfIConfigurationElement1;
        int m = (arrayOfIConfigurationElement1 = elements).length;
        for (int k = 0; k < m; k++)
        {
          IConfigurationElement element = arrayOfIConfigurationElement1[k];
          if (element.getName().equals("language")) {
            readLanguageTemplate(element);
          }
        }
      }
      coreExtensionsRead = true;
    }
  }
  
  private static void readLanguageTemplate(IConfigurationElement element)
  {
    String languageName = element.getAttribute("name");
    if (languageName != null)
    {
      BugzillaLanguageSettings bugzillaLanguageSettings = new BugzillaLanguageSettings(languageName);
      IConfigurationElement[] arrayOfIConfigurationElement;
      int j = (arrayOfIConfigurationElement = element.getChildren()).length;
      for (int i = 0; i < j; i++)
      {
        IConfigurationElement configElement = arrayOfIConfigurationElement[i];
        String name = configElement.getName();
        if ((name != null) && (name.equals("languageAttribute")))
        {
          String command = configElement.getAttribute("command");
          String response = configElement.getAttribute("response");
          bugzillaLanguageSettings.addLanguageAttribute(command, response);
        }
      }
      BugzillaRepositoryConnector.addLanguageSetting(bugzillaLanguageSettings);
    }
    else
    {
      StatusHandler.log(new Status(2, "org.eclipse.mylyn.bugzilla.ui", 
        "Could not load language template extension " + element.getName()));
    }
  }
}

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

import java.text.MessageFormat;
import org.eclipse.core.runtime.Assert;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.hyperlink.IHyperlink;
import org.eclipse.mylyn.commons.workbench.WorkbenchUtil;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.ui.TasksUiUtil;
import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPage;
import org.eclipse.mylyn.tasks.ui.editors.TaskEditor;
import org.eclipse.osgi.util.NLS;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.forms.editor.IFormPage;

public final class TaskAttachmentTableEditorHyperlink
  implements IHyperlink
{
  private final IRegion region;
  private final TaskRepository repository;
  private final String attachmentId;
  
  public TaskAttachmentTableEditorHyperlink(IRegion region, TaskRepository repository, String attachmentId)
  {
    Assert.isNotNull(repository);
    this.region = region;
    this.repository = repository;
    this.attachmentId = attachmentId;
  }
  
  public IRegion getHyperlinkRegion()
  {
    return region;
  }
  
  public String getHyperlinkText()
  {
    return MessageFormat.format(Messages.TaskAttachmentTableEditorHyperlink_Show_Attachment_X_in_Y, new Object[] { attachmentId });
  }
  
  public String getTypeLabel()
  {
    return null;
  }
  
  public void open()
  {
    AbstractTaskEditorPage page = getTaskEditorPage();
    if ((page != null) && 
      (!page.selectReveal("task.common.attachment-" + attachmentId)))
    {
      String msg = NLS.bind(Messages.TaskAttachmentTableEditorHyperlink_QuestionMsg, attachmentId);
      if (MessageDialog.openQuestion(WorkbenchUtil.getShell(), 
        Messages.TaskAttachmentTableEditorHyperlink_AttachmentNotFound, msg))
      {
        String url = repository.getUrl() + "/attachment.cgi?id=" + attachmentId;
        TasksUiUtil.openUrl(url);
      }
    }
  }
  
  public int hashCode()
  {
    int result = 1;
    result = 31 * result + (attachmentId == null ? 0 : attachmentId.hashCode());
    result = 31 * result + (region == null ? 0 : region.hashCode());
    result = 31 * result + (repository == null ? 0 : repository.hashCode());
    return result;
  }
  
  public boolean equals(Object obj)
  {
    if (this == obj) {
      return true;
    }
    if (obj == null) {
      return false;
    }
    if (getClass() != obj.getClass()) {
      return false;
    }
    TaskAttachmentTableEditorHyperlink other = (TaskAttachmentTableEditorHyperlink)obj;
    if (attachmentId == null)
    {
      if (attachmentId != null) {
        return false;
      }
    }
    else if (!attachmentId.equals(attachmentId)) {
      return false;
    }
    if (region == null)
    {
      if (region != null) {
        return false;
      }
    }
    else if (!region.equals(region)) {
      return false;
    }
    if (repository == null)
    {
      if (repository != null) {
        return false;
      }
    }
    else if (!repository.equals(repository)) {
      return false;
    }
    return true;
  }
  
  public String toString()
  {
    return 
      "TaskAttachmentHyperlink [attachmentId=" + attachmentId + ", region=" + region + ", repository=" + repository + "]";
  }
  
  protected AbstractTaskEditorPage getTaskEditorPage()
  {
    IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
    if (activePage == null) {
      return null;
    }
    IEditorPart editorPart = activePage.getActiveEditor();
    AbstractTaskEditorPage taskEditorPage = null;
    if ((editorPart instanceof TaskEditor))
    {
      TaskEditor taskEditor = (TaskEditor)editorPart;
      IFormPage formPage = taskEditor.getActivePageInstance();
      if ((formPage instanceof AbstractTaskEditorPage)) {
        taskEditorPage = (AbstractTaskEditorPage)formPage;
      }
    }
    return taskEditorPage;
  }
}

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

import org.eclipse.core.runtime.jobs.IJobChangeEvent;
import org.eclipse.core.runtime.jobs.JobChangeAdapter;
import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
import org.eclipse.mylyn.tasks.core.sync.TaskJob;

class BugzillaUiPlugin$1
  extends JobChangeAdapter
{
  BugzillaUiPlugin$1(BugzillaUiPlugin paramBugzillaUiPlugin) {}
  
  public void done(IJobChangeEvent event)
  {
    TaskJob taskJob = (TaskJob)event.getJob();
    if (taskJob.getStatus() != null) {
      TasksUiInternal.asyncLogAndDisplayStatus(Messages.BugzillaUiPlugin_Configuration_Refresh_Failed, taskJob.getStatus());
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.bugzilla.ui.BugzillaUiPlugin.1
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.internal.bugzilla.ui;

import java.net.MalformedURLException;
import java.net.URL;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.swt.graphics.Image;
import org.osgi.framework.Bundle;

public class BugzillaImages
{
  private static ImageRegistry imageRegistry;
  private static final URL baseURL = BugzillaUiPlugin.getDefault().getBundle().getEntry("/icons/");
  public static final String T_ELCL = "elcl16";
  public static final String T_TOOL = "etool16";
  public static final String T_VIEW = "eview16";
  public static final ImageDescriptor OVERLAY_BUGZILLA = create("eview16", "overlay-bugzilla.gif");
  public static final ImageDescriptor BUG = create("elcl16", "bug.gif");
  public static final ImageDescriptor BUG_COMMENT = create("elcl16", "bug-comment.gif");
  public static final ImageDescriptor REMOVE_ALL = create("", "remove-all.gif");
  public static final ImageDescriptor REMOVE = create("", "remove.gif");
  public static final ImageDescriptor SELECT_ALL = create("", "selectAll.gif");
  public static final ImageDescriptor OPEN = create("", "openresult.gif");
  public static final ImageDescriptor OVERLAY_CRITICAL = create("eview16", "overlay-critical.gif");
  public static final ImageDescriptor OVERLAY_MAJOR = create("eview16", "overlay-major.gif");
  public static final ImageDescriptor OVERLAY_ENHANCEMENT = create("eview16", "overlay-enhancement.gif");
  public static final ImageDescriptor OVERLAY_TRIVIAL = create("eview16", "overlay-trivial.gif");
  
  private static ImageDescriptor create(String prefix, String name)
  {
    try
    {
      return ImageDescriptor.createFromURL(makeIconFileURL(prefix, name));
    }
    catch (MalformedURLException localMalformedURLException) {}
    return ImageDescriptor.getMissingImageDescriptor();
  }
  
  private static URL makeIconFileURL(String prefix, String name)
    throws MalformedURLException
  {
    if (baseURL == null) {
      throw new MalformedURLException();
    }
    StringBuffer buffer = new StringBuffer(prefix);
    buffer.append('/');
    buffer.append(name);
    return new URL(baseURL, buffer.toString());
  }
  
  private static ImageRegistry getImageRegistry()
  {
    if (imageRegistry == null) {
      imageRegistry = new ImageRegistry();
    }
    return imageRegistry;
  }
  
  public static Image getImage(ImageDescriptor imageDescriptor)
  {
    ImageRegistry imageRegistry = getImageRegistry();
    Image image = imageRegistry.get(imageDescriptor.hashCode());
    if (image == null)
    {
      image = imageDescriptor.createImage();
      imageRegistry.put(imageDescriptor.hashCode(), image);
    }
    return image;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.bugzilla.ui.BugzillaImages
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.internal.bugzilla.ui.action;

public class BugzillaNotObsoleteAttachmentAction
  extends BugzillaUpdateAttachmentAction
{
  public BugzillaNotObsoleteAttachmentAction()
  {
    super(false);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.bugzilla.ui.action.BugzillaNotObsoleteAttachmentAction
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.internal.bugzilla.ui.action;

import org.eclipse.mylyn.tasks.ui.editors.TaskEditor;

class ChangeAttachmentJob$2
  implements Runnable
{
  ChangeAttachmentJob$2(ChangeAttachmentJob paramChangeAttachmentJob) {}
  
  public void run()
  {
    if (ChangeAttachmentJob.access$0(this$0) != null) {
      ChangeAttachmentJob.access$0(this$0).showBusy(true);
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.bugzilla.ui.action.ChangeAttachmentJob.2
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.internal.bugzilla.ui.action;

import java.util.List;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.jobs.IJobChangeEvent;
import org.eclipse.core.runtime.jobs.JobChangeAdapter;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.mylyn.internal.bugzilla.ui.editor.BugzillaTaskEditorPage;
import org.eclipse.mylyn.tasks.core.ITaskAttachment;
import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
import org.eclipse.mylyn.tasks.ui.editors.TaskEditor;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IViewActionDelegate;
import org.eclipse.ui.IViewPart;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.actions.BaseSelectionListenerAction;
import org.eclipse.ui.forms.editor.IFormPage;

public class BugzillaUpdateAttachmentAction
  extends BaseSelectionListenerAction
  implements IViewActionDelegate
{
  private ISelection currentSelection;
  private final boolean obsolete;
  
  public BugzillaUpdateAttachmentAction(boolean obsolete)
  {
    super("UpdateAttachmentAction");
    this.obsolete = obsolete;
  }
  
  public void init(IViewPart view) {}
  
  public void run(IAction action)
  {
    IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    IWorkbenchPage page = window.getActivePage();
    IEditorPart activeEditor = page.getActiveEditor();
    if ((activeEditor instanceof TaskEditor))
    {
      final TaskEditor taskEditor = (TaskEditor)activeEditor;
      IStructuredSelection selection = null;
      if ((currentSelection instanceof IStructuredSelection)) {
        selection = (IStructuredSelection)currentSelection;
      }
      if ((selection == null) || (selection.isEmpty())) {
        return;
      }
      List<ITaskAttachment> attachment = selection.toList();
      if (attachment != null)
      {
        final UpdateAttachmentJob job = new UpdateAttachmentJob(attachment, taskEditor, obsolete);
        job.setUser(true);
        job.addJobChangeListener(new JobChangeAdapter()
        {
          public void done(IJobChangeEvent event)
          {
            if (job.getError() != null)
            {
              IFormPage formPage = taskEditor.getActivePageInstance();
              if ((formPage instanceof BugzillaTaskEditorPage))
              {
                final BugzillaTaskEditorPage bugzillaPage = (BugzillaTaskEditorPage)formPage;
                PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable()
                {
                  public void run()
                  {
                    bugzillaPage.getTaskEditor().setMessage(val$job.getError().getMessage(), 
                      3);
                  }
                });
              }
            }
          }
        });
        job.schedule();
      }
    }
  }
  
  public void selectionChanged(IAction action, ISelection selection)
  {
    currentSelection = selection;
    IStructuredSelection sructuredSelection = null;
    if ((selection instanceof IStructuredSelection)) {
      sructuredSelection = (IStructuredSelection)currentSelection;
    }
    if ((sructuredSelection == null) || (sructuredSelection.isEmpty())) {
      return;
    }
    List<ITaskAttachment> attachmentList = sructuredSelection.toList();
    action.setEnabled(false);
    for (ITaskAttachment taskAttachment : attachmentList)
    {
      TaskAttribute taskAttribute = taskAttachment.getTaskAttribute();
      TaskAttribute deprecated = taskAttribute.getMappedAttribute("task.common.attachment.deprecated");
      if ((deprecated != null) && (deprecated.getValue().equals("1") != obsolete))
      {
        action.setEnabled(true);
        break;
      }
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.bugzilla.ui.action.BugzillaUpdateAttachmentAction
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.internal.bugzilla.ui.action;

import org.eclipse.mylyn.tasks.ui.editors.TaskEditor;

class UpdateAttachmentJob$2
  implements Runnable
{
  UpdateAttachmentJob$2(UpdateAttachmentJob paramUpdateAttachmentJob) {}
  
  public void run()
  {
    if (UpdateAttachmentJob.access$0(this$0) != null) {
      UpdateAttachmentJob.access$0(this$0).showBusy(true);
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.bugzilla.ui.action.UpdateAttachmentJob.2
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.internal.bugzilla.ui.action;

class ChangeAttachmentJob$1$1
  implements Runnable
{
  ChangeAttachmentJob$1$1(ChangeAttachmentJob.1 param1) {}
  
  /* Error */
  public void run()
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 79	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1$1:this$1	Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1;
    //   4: invokestatic 83	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1:access$0	(Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1;)Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob;
    //   7: invokestatic 82	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob:access$0	(Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob;)Lorg/eclipse/mylyn/tasks/ui/editors/TaskEditor;
    //   10: ifnull +139 -> 149
    //   13: aload_0
    //   14: getfield 79	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1$1:this$1	Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1;
    //   17: invokestatic 83	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1:access$0	(Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1;)Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob;
    //   20: invokestatic 82	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob:access$0	(Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob;)Lorg/eclipse/mylyn/tasks/ui/editors/TaskEditor;
    //   23: invokevirtual 86	org/eclipse/mylyn/tasks/ui/editors/TaskEditor:refreshPages	()V
    //   26: aload_0
    //   27: getfield 79	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1$1:this$1	Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1;
    //   30: invokestatic 83	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1:access$0	(Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1;)Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob;
    //   33: invokestatic 82	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob:access$0	(Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob;)Lorg/eclipse/mylyn/tasks/ui/editors/TaskEditor;
    //   36: invokevirtual 88	org/eclipse/mylyn/tasks/ui/editors/TaskEditor:getEditorSite	()Lorg/eclipse/ui/IEditorSite;
    //   39: invokeinterface 90 1 0
    //   44: aload_0
    //   45: getfield 79	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1$1:this$1	Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1;
    //   48: invokestatic 83	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1:access$0	(Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1;)Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob;
    //   51: invokestatic 82	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob:access$0	(Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob;)Lorg/eclipse/mylyn/tasks/ui/editors/TaskEditor;
    //   54: invokeinterface 91 2 0
    //   59: aload_0
    //   60: getfield 79	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1$1:this$1	Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1;
    //   63: invokestatic 83	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1:access$0	(Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1;)Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob;
    //   66: invokestatic 82	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob:access$0	(Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob;)Lorg/eclipse/mylyn/tasks/ui/editors/TaskEditor;
    //   69: invokevirtual 89	org/eclipse/mylyn/tasks/ui/editors/TaskEditor:getActivePageInstance	()Lorg/eclipse/ui/forms/editor/IFormPage;
    //   72: astore_1
    //   73: aload_1
    //   74: instanceof 42
    //   77: ifeq +72 -> 149
    //   80: aload_1
    //   81: checkcast 42	org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage
    //   84: astore_2
    //   85: aload_2
    //   86: ldc 1
    //   88: invokevirtual 84	org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage:getPart	(Ljava/lang/String;)Lorg/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPart;
    //   91: invokevirtual 85	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPart:getControl	()Lorg/eclipse/swt/widgets/Control;
    //   94: astore_3
    //   95: aload_3
    //   96: instanceof 47
    //   99: ifeq +50 -> 149
    //   102: aload_3
    //   103: checkcast 47	org/eclipse/ui/forms/widgets/Section
    //   106: astore 4
    //   108: aload 4
    //   110: iconst_1
    //   111: invokestatic 81	org/eclipse/mylyn/commons/workbench/forms/CommonFormUtil:setExpanded	(Lorg/eclipse/ui/forms/widgets/ExpandableComposite;Z)V
    //   114: goto +35 -> 149
    //   117: astore 5
    //   119: aload_0
    //   120: getfield 79	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1$1:this$1	Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1;
    //   123: invokestatic 83	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1:access$0	(Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1;)Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob;
    //   126: invokestatic 82	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob:access$0	(Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob;)Lorg/eclipse/mylyn/tasks/ui/editors/TaskEditor;
    //   129: ifnull +17 -> 146
    //   132: aload_0
    //   133: getfield 79	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1$1:this$1	Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1;
    //   136: invokestatic 83	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1:access$0	(Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1;)Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob;
    //   139: invokestatic 82	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob:access$0	(Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob;)Lorg/eclipse/mylyn/tasks/ui/editors/TaskEditor;
    //   142: iconst_0
    //   143: invokevirtual 87	org/eclipse/mylyn/tasks/ui/editors/TaskEditor:showBusy	(Z)V
    //   146: aload 5
    //   148: athrow
    //   149: aload_0
    //   150: getfield 79	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1$1:this$1	Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1;
    //   153: invokestatic 83	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1:access$0	(Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1;)Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob;
    //   156: invokestatic 82	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob:access$0	(Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob;)Lorg/eclipse/mylyn/tasks/ui/editors/TaskEditor;
    //   159: ifnull +17 -> 176
    //   162: aload_0
    //   163: getfield 79	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1$1:this$1	Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1;
    //   166: invokestatic 83	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1:access$0	(Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1;)Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob;
    //   169: invokestatic 82	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob:access$0	(Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob;)Lorg/eclipse/mylyn/tasks/ui/editors/TaskEditor;
    //   172: iconst_0
    //   173: invokevirtual 87	org/eclipse/mylyn/tasks/ui/editors/TaskEditor:showBusy	(Z)V
    //   176: return
    // Line number table:
    //   Java source line #86	-> byte code offset #0
    //   Java source line #87	-> byte code offset #13
    //   Java source line #88	-> byte code offset #26
    //   Java source line #89	-> byte code offset #59
    //   Java source line #90	-> byte code offset #73
    //   Java source line #91	-> byte code offset #80
    //   Java source line #92	-> byte code offset #85
    //   Java source line #93	-> byte code offset #86
    //   Java source line #92	-> byte code offset #88
    //   Java source line #93	-> byte code offset #91
    //   Java source line #92	-> byte code offset #94
    //   Java source line #94	-> byte code offset #95
    //   Java source line #95	-> byte code offset #102
    //   Java source line #96	-> byte code offset #108
    //   Java source line #101	-> byte code offset #117
    //   Java source line #102	-> byte code offset #119
    //   Java source line #103	-> byte code offset #132
    //   Java source line #105	-> byte code offset #146
    //   Java source line #102	-> byte code offset #149
    //   Java source line #103	-> byte code offset #162
    //   Java source line #106	-> byte code offset #176
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	177	0	this	1
    //   72	9	1	formPage	org.eclipse.ui.forms.editor.IFormPage
    //   84	2	2	bugzillaPage	org.eclipse.mylyn.internal.bugzilla.ui.editor.BugzillaTaskEditorPage
    //   94	9	3	control	org.eclipse.swt.widgets.Control
    //   106	3	4	section	org.eclipse.ui.forms.widgets.Section
    //   117	30	5	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   0	117	117	finally
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.bugzilla.ui.action.ChangeAttachmentJob.1.1
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.internal.bugzilla.ui.action;

public class BugzillaObsoleteAttachmentAction
  extends BugzillaUpdateAttachmentAction
{
  public BugzillaObsoleteAttachmentAction()
  {
    super(true);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.bugzilla.ui.action.BugzillaObsoleteAttachmentAction
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.internal.bugzilla.ui.action;

import org.eclipse.core.runtime.IStatus;
import org.eclipse.mylyn.internal.bugzilla.ui.editor.BugzillaTaskEditorPage;
import org.eclipse.mylyn.tasks.ui.editors.TaskEditor;

class BugzillaUpdateAttachmentAction$1$1
  implements Runnable
{
  BugzillaUpdateAttachmentAction$1$1(BugzillaUpdateAttachmentAction.1 param1, BugzillaTaskEditorPage paramBugzillaTaskEditorPage, UpdateAttachmentJob paramUpdateAttachmentJob) {}
  
  public void run()
  {
    val$bugzillaPage.getTaskEditor().setMessage(val$job.getError().getMessage(), 
      3);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.bugzilla.ui.action.BugzillaUpdateAttachmentAction.1.1
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.internal.bugzilla.ui.action;

import org.eclipse.mylyn.internal.bugzilla.ui.editor.FlagAttributeEditor;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
import org.eclipse.mylyn.tasks.core.data.TaskDataModel;
import org.eclipse.mylyn.tasks.ui.editors.AbstractAttributeEditor;
import org.eclipse.mylyn.tasks.ui.editors.AttributeEditorFactory;
import org.eclipse.ui.services.IServiceLocator;

class BugzillaAttachmentUpdateAction$1
  extends AttributeEditorFactory
{
  BugzillaAttachmentUpdateAction$1(BugzillaAttachmentUpdateAction paramBugzillaAttachmentUpdateAction, TaskDataModel $anonymous0, TaskRepository $anonymous1, IServiceLocator $anonymous2, TaskDataModel paramTaskDataModel1)
  {
    super($anonymous0, $anonymous1, $anonymous2);
  }
  
  public AbstractAttributeEditor createEditor(String type, TaskAttribute taskAttribute)
  {
    AbstractAttributeEditor editor;
    AbstractAttributeEditor editor;
    if ("bugzilla.editor.flag".equals(type))
    {
      editor = new FlagAttributeEditor(val$model, taskAttribute);
    }
    else
    {
      editor = super.createEditor(type, taskAttribute);
      if ("boolean".equals(type)) {
        editor.setDecorationEnabled(false);
      }
    }
    return editor;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.bugzilla.ui.action.BugzillaAttachmentUpdateAction.1
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.internal.bugzilla.ui.action;

import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.jobs.IJobChangeEvent;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.core.runtime.jobs.JobChangeAdapter;
import org.eclipse.mylyn.tasks.core.ITaskAttachment;
import org.eclipse.mylyn.tasks.ui.editors.TaskEditor;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.PlatformUI;

public class ChangeAttachmentJob
  extends Job
{
  private final ITaskAttachment attachment;
  private final TaskEditor editor;
  private IStatus error;
  
  public ChangeAttachmentJob(ITaskAttachment attachment, TaskEditor editor)
  {
    super(Messages.UpdateAttachmentJob_update_attachment);
    this.attachment = attachment;
    this.editor = editor;
  }
  
  public IStatus getError()
  {
    return error;
  }
  
  /* Error */
  public IStatus run(org.eclipse.core.runtime.IProgressMonitor monitor)
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 155	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob:editor	Lorg/eclipse/mylyn/tasks/ui/editors/TaskEditor;
    //   4: invokevirtual 168	org/eclipse/mylyn/tasks/ui/editors/TaskEditor:getTaskEditorInput	()Lorg/eclipse/mylyn/tasks/ui/editors/TaskEditorInput;
    //   7: invokevirtual 169	org/eclipse/mylyn/tasks/ui/editors/TaskEditorInput:getTask	()Lorg/eclipse/mylyn/tasks/core/ITask;
    //   10: astore_2
    //   11: aload_2
    //   12: invokeinterface 176 1 0
    //   17: ldc 2
    //   19: invokevirtual 158	java/lang/String:equals	(Ljava/lang/Object;)Z
    //   22: ifne +7 -> 29
    //   25: getstatic 152	org/eclipse/core/runtime/Status:OK_STATUS	Lorg/eclipse/core/runtime/IStatus;
    //   28: areturn
    //   29: invokestatic 167	org/eclipse/mylyn/tasks/ui/TasksUi:getRepositoryManager	()Lorg/eclipse/mylyn/tasks/core/IRepositoryManager;
    //   32: aload_2
    //   33: invokeinterface 176 1 0
    //   38: invokeinterface 175 2 0
    //   43: astore_3
    //   44: aload_1
    //   45: getstatic 157	org/eclipse/mylyn/internal/bugzilla/ui/action/Messages:UpdateAttachmentJob_update_attachments	Ljava/lang/String;
    //   48: bipush 20
    //   50: invokeinterface 174 3 0
    //   55: aload_3
    //   56: invokevirtual 166	org/eclipse/mylyn/tasks/core/AbstractRepositoryConnector:getTaskDataHandler	()Lorg/eclipse/mylyn/tasks/core/data/AbstractTaskDataHandler;
    //   59: checkcast 75	org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler
    //   62: aload_0
    //   63: getfield 154	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob:attachment	Lorg/eclipse/mylyn/tasks/core/ITaskAttachment;
    //   66: invokeinterface 177 1 0
    //   71: aload_0
    //   72: getfield 154	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob:attachment	Lorg/eclipse/mylyn/tasks/core/ITaskAttachment;
    //   75: invokeinterface 178 1 0
    //   80: ldc 4
    //   82: aload_1
    //   83: invokevirtual 162	org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler:postUpdateAttachment	(Lorg/eclipse/mylyn/tasks/core/TaskRepository;Lorg/eclipse/mylyn/tasks/core/data/TaskAttribute;Ljava/lang/String;Lorg/eclipse/core/runtime/IProgressMonitor;)V
    //   86: aload_1
    //   87: bipush 10
    //   89: invokeinterface 173 2 0
    //   94: aload_0
    //   95: getfield 154	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob:attachment	Lorg/eclipse/mylyn/tasks/core/ITaskAttachment;
    //   98: ifnull +106 -> 204
    //   101: aload_3
    //   102: ifnull +18 -> 120
    //   105: aload_3
    //   106: aload_2
    //   107: iconst_1
    //   108: new 77	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1
    //   111: dup
    //   112: aload_0
    //   113: invokespecial 163	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$1:<init>	(Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob;)V
    //   116: invokestatic 165	org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal:synchronizeTask	(Lorg/eclipse/mylyn/tasks/core/AbstractRepositoryConnector;Lorg/eclipse/mylyn/tasks/core/ITask;ZLorg/eclipse/core/runtime/jobs/IJobChangeListener;)Lorg/eclipse/core/runtime/jobs/Job;
    //   119: pop
    //   120: aload_1
    //   121: bipush 10
    //   123: invokeinterface 173 2 0
    //   128: invokestatic 171	org/eclipse/ui/PlatformUI:getWorkbench	()Lorg/eclipse/ui/IWorkbench;
    //   131: invokeinterface 179 1 0
    //   136: new 78	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$2
    //   139: dup
    //   140: aload_0
    //   141: invokespecial 164	org/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob$2:<init>	(Lorg/eclipse/mylyn/internal/bugzilla/ui/action/ChangeAttachmentJob;)V
    //   144: invokevirtual 170	org/eclipse/swt/widgets/Display:asyncExec	(Ljava/lang/Runnable;)V
    //   147: goto +57 -> 204
    //   150: pop
    //   151: getstatic 151	org/eclipse/core/runtime/Status:CANCEL_STATUS	Lorg/eclipse/core/runtime/IStatus;
    //   154: astore 6
    //   156: aload_1
    //   157: invokeinterface 172 1 0
    //   162: aload 6
    //   164: areturn
    //   165: astore 4
    //   167: new 72	org/eclipse/core/runtime/Status
    //   170: dup
    //   171: iconst_4
    //   172: ldc 3
    //   174: ldc 1
    //   176: aload 4
    //   178: invokespecial 159	org/eclipse/core/runtime/Status:<init>	(ILjava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
    //   181: invokestatic 161	org/eclipse/mylyn/commons/core/StatusHandler:log	(Lorg/eclipse/core/runtime/IStatus;)V
    //   184: aload_1
    //   185: invokeinterface 172 1 0
    //   190: goto +20 -> 210
    //   193: astore 5
    //   195: aload_1
    //   196: invokeinterface 172 1 0
    //   201: aload 5
    //   203: athrow
    //   204: aload_1
    //   205: invokeinterface 172 1 0
    //   210: getstatic 152	org/eclipse/core/runtime/Status:OK_STATUS	Lorg/eclipse/core/runtime/IStatus;
    //   213: areturn
    // Line number table:
    //   Java source line #65	-> byte code offset #0
    //   Java source line #67	-> byte code offset #11
    //   Java source line #68	-> byte code offset #25
    //   Java source line #70	-> byte code offset #29
    //   Java source line #71	-> byte code offset #32
    //   Java source line #70	-> byte code offset #38
    //   Java source line #72	-> byte code offset #44
    //   Java source line #74	-> byte code offset #55
    //   Java source line #75	-> byte code offset #62
    //   Java source line #74	-> byte code offset #83
    //   Java source line #76	-> byte code offset #86
    //   Java source line #78	-> byte code offset #94
    //   Java source line #79	-> byte code offset #101
    //   Java source line #80	-> byte code offset #105
    //   Java source line #111	-> byte code offset #120
    //   Java source line #112	-> byte code offset #128
    //   Java source line #120	-> byte code offset #150
    //   Java source line #121	-> byte code offset #151
    //   Java source line #126	-> byte code offset #156
    //   Java source line #121	-> byte code offset #162
    //   Java source line #122	-> byte code offset #165
    //   Java source line #123	-> byte code offset #167
    // 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

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