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

le;)V
    //   153: invokespecial 192	org/eclipse/core/runtime/CoreException:<init>	(Lorg/eclipse/core/runtime/IStatus;)V
    //   156: athrow
    //   157: return
    // Line number table:
    //   Java source line #84	-> byte code offset #0
    //   Java source line #85	-> byte code offset #7
    //   Java source line #86	-> byte code offset #17
    //   Java source line #88	-> byte code offset #29
    //   Java source line #89	-> byte code offset #35
    //   Java source line #90	-> byte code offset #44
    //   Java source line #91	-> byte code offset #65
    //   Java source line #92	-> byte code offset #76
    //   Java source line #93	-> byte code offset #81
    //   Java source line #94	-> byte code offset #92
    //   Java source line #95	-> byte code offset #97
    //   Java source line #90	-> byte code offset #106
    //   Java source line #99	-> byte code offset #119
    //   Java source line #100	-> byte code offset #121
    //   Java source line #101	-> byte code offset #125
    //   Java source line #100	-> byte code offset #128
    //   Java source line #103	-> byte code offset #135
    //   Java source line #104	-> byte code offset #136
    //   Java source line #105	-> byte code offset #147
    //   Java source line #104	-> byte code offset #153
    //   Java source line #107	-> byte code offset #157
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	158	0	this	TaskActivationExternalizationParticipant
    //   0	158	1	sourceFile	File
    //   0	158	2	monitor	org.eclipse.core.runtime.IProgressMonitor
    //   28	101	3	reader	java.io.FileReader
    //   135	15	3	e	java.io.IOException
    //   33	3	4	memento	org.eclipse.ui.XMLMemento
    //   42	3	5	items	org.eclipse.ui.IMemento[]
    //   63	3	6	child	org.eclipse.ui.IMemento
    //   53	61	7	i	int
    //   50	64	8	j	int
    //   47	12	9	arrayOfIMemento1	org.eclipse.ui.IMemento[]
    //   74	12	10	handle	String
    //   90	12	11	task	AbstractTask
    //   119	7	12	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   29	119	119	finally
    //   0	132	135	java/io/IOException
  }
  
  /* Error */
  public void save(File targetFile, org.eclipse.core.runtime.IProgressMonitor monitor)
    throws CoreException
  {
    // Byte code:
    //   0: aload_0
    //   1: dup
    //   2: astore_3
    //   3: monitorenter
    //   4: aload_0
    //   5: iconst_0
    //   6: putfield 179	org/eclipse/mylyn/internal/tasks/ui/TaskActivationExternalizationParticipant:dirty	Z
    //   9: aload_3
    //   10: monitorexit
    //   11: goto +6 -> 17
    //   14: aload_3
    //   15: monitorexit
    //   16: athrow
    //   17: ldc 6
    //   19: invokestatic 207	org/eclipse/ui/XMLMemento:createWriteRoot	(Ljava/lang/String;)Lorg/eclipse/ui/XMLMemento;
    //   22: astore_3
    //   23: aload_0
    //   24: getfield 181	org/eclipse/mylyn/internal/tasks/ui/TaskActivationExternalizationParticipant:activationHistory	Lorg/eclipse/mylyn/internal/tasks/core/TaskActivationHistory;
    //   27: invokevirtual 196	org/eclipse/mylyn/internal/tasks/core/TaskActivationHistory:getPreviousTasks	()Ljava/util/List;
    //   30: invokeinterface 210 1 0
    //   35: astore 5
    //   37: goto +37 -> 74
    //   40: aload 5
    //   42: invokeinterface 209 1 0
    //   47: checkcast 95	org/eclipse/mylyn/internal/tasks/core/AbstractTask
    //   50: astore 4
    //   52: aload_3
    //   53: ldc 5
    //   55: invokevirtual 204	org/eclipse/ui/XMLMemento:createChild	(Ljava/lang/String;)Lorg/eclipse/ui/IMemento;
    //   58: astore 6
    //   60: aload 6
    //   62: ldc 3
    //   64: aload 4
    //   66: invokevirtual 194	org/eclipse/mylyn/internal/tasks/core/AbstractTask:getHandleIdentifier	()Ljava/lang/String;
    //   69: invokeinterface 212 3 0
    //   74: aload 5
    //   76: invokeinterface 208 1 0
    //   81: ifne -41 -> 40
    //   84: aload_0
    //   85: getfield 180	org/eclipse/mylyn/internal/tasks/ui/TaskActivationExternalizationParticipant:file	Ljava/io/File;
    //   88: invokevirtual 186	java/io/File:getParentFile	()Ljava/io/File;
    //   91: invokevirtual 185	java/io/File:mkdirs	()Z
    //   94: pop
    //   95: new 89	java/io/FileWriter
    //   98: dup
    //   99: aload_0
    //   100: getfield 180	org/eclipse/mylyn/internal/tasks/ui/TaskActivationExternalizationParticipant:file	Ljava/io/File;
    //   103: invokespecial 191	java/io/FileWriter:<init>	(Ljava/io/File;)V
    //   106: astore 4
    //   108: aload_3
    //   109: aload 4
    //   111: invokevirtual 203	org/eclipse/ui/XMLMemento:save	(Ljava/io/Writer;)V
    //   114: goto +13 -> 127
    //   117: astore 5
    //   119: aload 4
    //   121: invokevirtual 190	java/io/FileWriter:close	()V
    //   124: aload 5
    //   126: athrow
    //   127: aload 4
    //   129: invokevirtual 190	java/io/FileWriter:close	()V
    //   132: goto +27 -> 159
    //   135: astore 4
    //   137: new 93	org/eclipse/core/runtime/CoreException
    //   140: dup
    //   141: new 94	org/eclipse/core/runtime/Status
    //   144: dup
    //   145: iconst_4
    //   146: ldc 4
    //   148: ldc 2
    //   150: aload 4
    //   152: invokespecial 193	org/eclipse/core/runtime/Status:<init>	(ILjava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
    //   155: invokespecial 192	org/eclipse/core/runtime/CoreException:<init>	(Lorg/eclipse/core/runtime/IStatus;)V
    //   158: athrow
    //   159: return
    // Line number table:
    //   Java source line #111	-> byte code offset #0
    //   Java source line #112	-> byte code offset #4
    //   Java source line #111	-> byte code offset #9
    //   Java source line #115	-> byte code offset #17
    //   Java source line #116	-> byte code offset #23
    //   Java source line #117	-> byte code offset #52
    //   Java source line #118	-> byte code offset #60
    //   Java source line #116	-> byte code offset #74
    //   Java source line #122	-> byte code offset #84
    //   Java source line #123	-> byte code offset #95
    //   Java source line #125	-> byte code offset #108
    //   Java source line #126	-> byte code offset #117
    //   Java source line #127	-> byte code offset #119
    //   Java source line #128	-> byte code offset #124
    //   Java source line #127	-> byte code offset #127
    //   Java source line #129	-> byte code offset #135
    //   Java source line #130	-> byte code offset #137
    //   Java source line #131	-> byte code offset #148
    //   Java source line #130	-> byte code offset #155
    //   Java source line #133	-> byte code offset #159
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	160	0	this	TaskActivationExternalizationParticipant
    //   0	160	1	targetFile	File
    //   0	160	2	monitor	org.eclipse.core.runtime.IProgressMonitor
    //   2	13	3	Ljava/lang/Object;	Object
    //   22	87	3	memento	org.eclipse.ui.XMLMemento
    //   50	15	4	task	AbstractTask
    //   106	22	4	writer	java.io.FileWriter
    //   135	16	4	e	java.io.IOException
    //   35	40	5	localIterator	java.util.Iterator
    //   117	8	5	localObject1	Object
    //   58	3	6	child	org.eclipse.ui.IMemento
    // Exception table:
    //   from	to	target	type
    //   4	11	14	finally
    //   14	16	14	finally
    //   108	117	117	finally
    //   84	132	135	java/io/IOException
  }
  
  public String getFileName()
  {
    return file.getName();
  }
  
  public File getFile(String rootPath)
    throws CoreException
  {
    return file;
  }
  
  public void preTaskActivated(ITask task) {}
  
  public void preTaskDeactivated(ITask task) {}
  
  public void taskActivated(ITask task)
  {
    activationHistory.addTask((AbstractTask)task);
    requestSave();
  }
  
  public void taskDeactivated(ITask task) {}
}

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

import java.util.Collection;
import java.util.Iterator;
import java.util.Set;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.mylyn.internal.tasks.core.RepositoryTemplateManager;
import org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector;
import org.eclipse.mylyn.tasks.core.IRepositoryManager;
import org.eclipse.mylyn.tasks.core.RepositoryTemplate;
import org.eclipse.mylyn.tasks.ui.TasksUi;

public class TaskRepositoryUtil
{
  public static boolean isAddAutomaticallyDisabled(String repositoryUrl)
  {
    String deletedTemplates = TasksUiPlugin.getDefault()
      .getPreferenceStore()
      .getString("org.eclipse.mylyn.tasks.ui.templates.deleted");
    String[] templateUrls = deletedTemplates.split("\\|");
    String[] arrayOfString1;
    int j = (arrayOfString1 = templateUrls).length;
    for (int i = 0; i < j; i++)
    {
      String deletedUrl = arrayOfString1[i];
      if (deletedUrl.equalsIgnoreCase(repositoryUrl)) {
        return true;
      }
    }
    return false;
  }
  
  public static void disableAddAutomatically(String repositoryUrl)
  {
    if ((!isAddAutomaticallyDisabled(repositoryUrl)) && (isAddAutomatically(repositoryUrl)))
    {
      String deletedTemplates = TasksUiPlugin.getDefault()
        .getPreferenceStore()
        .getString("org.eclipse.mylyn.tasks.ui.templates.deleted");
      deletedTemplates = deletedTemplates + "|" + repositoryUrl;
      TasksUiPlugin.getDefault()
        .getPreferenceStore()
        .setValue("org.eclipse.mylyn.tasks.ui.templates.deleted", deletedTemplates);
      TasksUiPlugin.getDefault().savePluginPreferences();
    }
  }
  
  public static boolean isAddAutomatically(String repositoryUrl)
  {
    Iterator localIterator2;
    for (Iterator localIterator1 = TasksUi.getRepositoryManager().getRepositoryConnectors().iterator(); localIterator1.hasNext(); localIterator2.hasNext())
    {
      AbstractRepositoryConnector connector = (AbstractRepositoryConnector)localIterator1.next();
      localIterator2 = TasksUiPlugin.getRepositoryTemplateManager().getTemplates(
        connector.getConnectorKind()).iterator(); continue;RepositoryTemplate template = (RepositoryTemplate)localIterator2.next();
      if ((repositoryUrl != null) && (repositoryUrl.equalsIgnoreCase(repositoryUrl)) && 
        (addAutomatically)) {
        return true;
      }
    }
    return false;
  }
}

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

import java.util.Map;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
import org.eclipse.mylyn.internal.tasks.core.TaskActivationHistory;
import org.eclipse.mylyn.internal.tasks.core.TaskActivityManager;
import org.eclipse.mylyn.internal.tasks.ui.actions.ActivateTaskDialogAction;
import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
import org.eclipse.mylyn.tasks.core.ITaskActivityManager;
import org.eclipse.mylyn.tasks.ui.TasksUi;
import org.eclipse.mylyn.tasks.ui.TasksUiImages;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.commands.IElementUpdater;
import org.eclipse.ui.handlers.HandlerUtil;
import org.eclipse.ui.menus.UIElement;

public class TaskHistoryHandler
  extends AbstractHandler
  implements IElementUpdater
{
  public Object execute(ExecutionEvent event)
    throws ExecutionException
  {
    if (TasksUi.getTaskActivityManager().getActiveTask() != null)
    {
      TasksUi.getTaskActivityManager().deactivateActiveTask();
    }
    else
    {
      TaskActivationHistory taskHistory = TasksUiPlugin.getTaskActivityManager().getTaskActivationHistory();
      if (taskHistory.hasPrevious())
      {
        AbstractTask previousTask = taskHistory.getPreviousTask();
        if ((previousTask != null) && (!previousTask.isActive())) {
          TasksUiInternal.activateTaskThroughCommand(previousTask);
        }
      }
      else
      {
        IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
        if (window != null)
        {
          ActivateTaskDialogAction action = new ActivateTaskDialogAction();
          action.init(window);
          action.run(null);
        }
      }
    }
    return null;
  }
  
  public void updateElement(UIElement element, Map parameters)
  {
    if (TasksUi.getTaskActivityManager().getActiveTask() == null) {
      element.setIcon(TasksUiImages.CONTEXT_HISTORY_PREVIOUS);
    } else {
      element.setIcon(TasksUiImages.CONTEXT_HISTORY_PREVIOUS_ACTIVE);
    }
  }
}

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

import java.util.Date;
import java.util.List;
import org.eclipse.mylyn.internal.tasks.ui.util.TaskOpenEvent;
import org.eclipse.mylyn.internal.tasks.ui.util.TaskOpenListener;
import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
import org.eclipse.mylyn.tasks.core.data.TaskAttributeMapper;
import org.eclipse.mylyn.tasks.core.data.TaskData;
import org.eclipse.mylyn.tasks.ui.editors.TaskEditor;

class OpenRepositoryTaskJob$2
  implements Runnable
{
  OpenRepositoryTaskJob$2(OpenRepositoryTaskJob paramOpenRepositoryTaskJob, TaskData paramTaskData) {}
  
  public void run()
  {
    TaskOpenEvent event = TasksUiInternal.openTask(OpenRepositoryTaskJob.access$2(this$0), OpenRepositoryTaskJob.access$3(this$0));
    if ((OpenRepositoryTaskJob.access$4(this$0) != null) && (event != null)) {
      OpenRepositoryTaskJob.access$4(this$0).taskOpened(event);
    }
    if ((OpenRepositoryTaskJob.access$5(this$0) != 0L) && (event != null))
    {
      List<TaskAttribute> commentAttributes = val$taskData.getAttributeMapper().getAttributesByType(
        val$taskData, "comment");
      if (commentAttributes.size() > 0) {
        for (TaskAttribute commentAttribute : commentAttributes)
        {
          TaskAttribute commentCreateDate = commentAttribute.getMappedAttribute("task.common.comment.date");
          if (commentCreateDate != null)
          {
            Date dateValue = val$taskData.getAttributeMapper().getDateValue(commentCreateDate);
            if (dateValue.getTime() >= OpenRepositoryTaskJob.access$5(this$0))
            {
              TaskAttribute dn = commentAttribute.getMappedAttribute("task.common.comment.number");
              TaskEditor editor = (TaskEditor)event.getEditor();
              if (dn == null) {
                break;
              }
              editor.selectReveal("task.common.comment-" + dn.getValue());
              
              break;
            }
          }
        }
      }
    }
  }
}

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

import org.eclipse.core.runtime.IStatus;

class DialogErrorReporter$1
  implements Runnable
{
  DialogErrorReporter$1(DialogErrorReporter paramDialogErrorReporter, IStatus paramIStatus) {}
  
  /* Error */
  public void run()
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 54	org/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter;
    //   4: invokestatic 59	org/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter:access$1	(Lorg/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter;)Z
    //   7: ifne +47 -> 54
    //   10: aload_0
    //   11: getfield 54	org/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter;
    //   14: iconst_1
    //   15: invokestatic 60	org/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter;Z)V
    //   18: invokestatic 61	org/eclipse/swt/widgets/Display:getDefault	()Lorg/eclipse/swt/widgets/Display;
    //   21: invokevirtual 62	org/eclipse/swt/widgets/Display:getActiveShell	()Lorg/eclipse/swt/widgets/Shell;
    //   24: astore_1
    //   25: aload_1
    //   26: getstatic 55	org/eclipse/mylyn/internal/tasks/ui/Messages:DialogErrorReporter_Mylyn_Error	Ljava/lang/String;
    //   29: getstatic 56	org/eclipse/mylyn/internal/tasks/ui/Messages:DialogErrorReporter_Please_report_the_following_error_at	Ljava/lang/String;
    //   32: aload_0
    //   33: getfield 53	org/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter$1:val$status	Lorg/eclipse/core/runtime/IStatus;
    //   36: invokestatic 58	org/eclipse/jface/dialogs/ErrorDialog:openError	(Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;Ljava/lang/String;Lorg/eclipse/core/runtime/IStatus;)I
    //   39: pop
    //   40: goto +14 -> 54
    //   43: astore_2
    //   44: aload_0
    //   45: getfield 54	org/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter;
    //   48: iconst_0
    //   49: invokestatic 60	org/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter;Z)V
    //   52: aload_2
    //   53: athrow
    //   54: aload_0
    //   55: getfield 54	org/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter;
    //   58: iconst_0
    //   59: invokestatic 60	org/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter;Z)V
    //   62: return
    // Line number table:
    //   Java source line #45	-> byte code offset #0
    //   Java source line #46	-> byte code offset #10
    //   Java source line #47	-> byte code offset #18
    //   Java source line #48	-> byte code offset #25
    //   Java source line #49	-> byte code offset #29
    //   Java source line #48	-> byte code offset #36
    //   Java source line #51	-> byte code offset #43
    //   Java source line #52	-> byte code offset #44
    //   Java source line #53	-> byte code offset #52
    //   Java source line #52	-> byte code offset #54
    //   Java source line #54	-> byte code offset #62
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	63	0	this	1
    //   24	2	1	shell	org.eclipse.swt.widgets.Shell
    //   43	10	2	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   0	43	43	finally
  }
}

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

import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
import org.eclipse.mylyn.internal.tasks.ui.views.TaskListView;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;

class TaskTrimWidget$7
  extends MouseAdapter
{
  TaskTrimWidget$7(TaskTrimWidget paramTaskTrimWidget) {}
  
  public void mouseDown(MouseEvent e)
  {
    if (button == 1)
    {
      if (TaskTrimWidget.access$1(this$0) == null) {
        return;
      }
      TaskListView taskListView = TaskListView.getFromActivePerspective();
      if ((taskListView != null) && (taskListView.getDrilledIntoCategory() != null)) {
        taskListView.goUpToRoot();
      }
      TasksUiInternal.refreshAndOpenTaskListElement(TaskTrimWidget.access$1(this$0));
    }
  }
}

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

import org.eclipse.core.runtime.CoreException;
import org.eclipse.mylyn.tasks.core.ITaskAttachment;
import org.eclipse.ui.IWorkbenchPage;

public abstract interface ITaskAttachmentViewer
{
  public abstract String getId();
  
  public abstract String getLabel();
  
  public abstract void openAttachment(IWorkbenchPage paramIWorkbenchPage, ITaskAttachment paramITaskAttachment)
    throws CoreException;
}

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

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Combo;

class ComboSelectionDialog$1
  extends SelectionAdapter
{
  ComboSelectionDialog$1(ComboSelectionDialog paramComboSelectionDialog, Combo paramCombo) {}
  
  public void widgetSelected(SelectionEvent e)
  {
    ComboSelectionDialog.access$0(this$0, val$combo.getItem(val$combo.getSelectionIndex()));
    ComboSelectionDialog.access$1(this$0, val$combo.getSelectionIndex());
  }
}

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

import java.lang.reflect.InvocationTargetException;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.jobs.ISchedulingRule;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.mylyn.internal.tasks.core.ITaskListRunnable;
import org.eclipse.mylyn.internal.tasks.core.TaskList;

public abstract class TaskListModifyOperation
  implements IRunnableWithProgress
{
  ISchedulingRule rule;
  
  public TaskListModifyOperation()
  {
    this(null);
  }
  
  public TaskListModifyOperation(ISchedulingRule rule)
  {
    this.rule = rule;
  }
  
  protected abstract void operations(IProgressMonitor paramIProgressMonitor)
    throws CoreException, InvocationTargetException, InterruptedException;
  
  public final void run(IProgressMonitor monitor)
    throws InvocationTargetException, InterruptedException
  {
    final InvocationTargetException[] ite = new InvocationTargetException[1];
    try
    {
      ITaskListRunnable runnable = new ITaskListRunnable()
      {
        /* Error */
        public void execute(IProgressMonitor monitor)
          throws CoreException
        {
          // Byte code:
          //   0: invokestatic 72	org/eclipse/core/runtime/jobs/Job:getJobManager	()Lorg/eclipse/core/runtime/jobs/IJobManager;
          //   3: aload_0
          //   4: getfield 67	org/eclipse/mylyn/internal/tasks/ui/TaskListModifyOperation$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/TaskListModifyOperation;
          //   7: getfield 65	org/eclipse/mylyn/internal/tasks/ui/TaskListModifyOperation:rule	Lorg/eclipse/core/runtime/jobs/ISchedulingRule;
          //   10: new 32	org/eclipse/core/runtime/SubProgressMonitor
          //   13: dup
          //   14: aload_1
          //   15: iconst_m1
          //   16: invokespecial 71	org/eclipse/core/runtime/SubProgressMonitor:<init>	(Lorg/eclipse/core/runtime/IProgressMonitor;I)V
          //   19: invokeinterface 75 3 0
          //   24: aload_0
          //   25: getfield 67	org/eclipse/mylyn/internal/tasks/ui/TaskListModifyOperation$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/TaskListModifyOperation;
          //   28: aload_1
          //   29: invokevirtual 73	org/eclipse/mylyn/internal/tasks/ui/TaskListModifyOperation:operations	(Lorg/eclipse/core/runtime/IProgressMonitor;)V
          //   32: goto +60 -> 92
          //   35: astore_2
          //   36: aload_0
          //   37: getfield 66	org/eclipse/mylyn/internal/tasks/ui/TaskListModifyOperation$1:val$ite	[Ljava/lang/reflect/InvocationTargetException;
          //   40: iconst_0
          //   41: aload_2
          //   42: aastore
          //   43: invokestatic 72	org/eclipse/core/runtime/jobs/Job:getJobManager	()Lorg/eclipse/core/runtime/jobs/IJobManager;
          //   46: aload_0
          //   47: getfield 67	org/eclipse/mylyn/internal/tasks/ui/TaskListModifyOperation$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/TaskListModifyOperation;
          //   50: getfield 65	org/eclipse/mylyn/internal/tasks/ui/TaskListModifyOperation:rule	Lorg/eclipse/core/runtime/jobs/ISchedulingRule;
          //   53: invokeinterface 74 2 0
          //   58: goto +49 -> 107
          //   61: astore_2
          //   62: new 31	org/eclipse/core/runtime/OperationCanceledException
          //   65: dup
          //   66: aload_2
          //   67: invokevirtual 68	java/lang/InterruptedException:getMessage	()Ljava/lang/String;
          //   70: invokespecial 70	org/eclipse/core/runtime/OperationCanceledException:<init>	(Ljava/lang/String;)V
          //   73: athrow
          //   74: astore_3
          //   75: invokestatic 72	org/eclipse/core/runtime/jobs/Job:getJobManager	()Lorg/eclipse/core/runtime/jobs/IJobManager;
          //   78: aload_0
          //   79: getfield 67	org/eclipse/mylyn/internal/tasks/ui/TaskListModifyOperation$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/TaskListModifyOperation;
          //   82: getfield 65	org/eclipse/mylyn/internal/tasks/ui/TaskListModifyOperation:rule	Lorg/eclipse/core/runtime/jobs/ISchedulingRule;
          //   85: invokeinterface 74 2 0
          //   90: aload_3
          //   91: athrow
          //   92: invokestatic 72	org/eclipse/core/runtime/jobs/Job:getJobManager	()Lorg/eclipse/core/runtime/jobs/IJobManager;
          //   95: aload_0
          //   96: getfield 67	org/eclipse/mylyn/internal/tasks/ui/TaskListModifyOperation$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/TaskListModifyOperation;
          //   99: getfield 65	org/eclipse/mylyn/internal/tasks/ui/TaskListModifyOperation:rule	Lorg/eclipse/core/runtime/jobs/ISchedulingRule;
          //   102: invokeinterface 74 2 0
          //   107: return
          // Line number table:
          //   Java source line #54	-> byte code offset #0
          //   Java source line #55	-> byte code offset #24
          //   Java source line #56	-> byte code offset #35
          //   Java source line #57	-> byte code offset #36
          //   Java source line #61	-> byte code offset #43
          //   Java source line #58	-> byte code offset #61
          //   Java source line #59	-> byte code offset #62
          //   Java source line #60	-> byte code offset #74
          //   Java source line #61	-> byte code offset #75
          //   Java source line #62	-> byte code offset #90
          //   Java source line #61	-> byte code offset #92
          //   Java source line #63	-> byte code offset #107
          // Local variable table:
          //   start	length	slot	name	signature
          //   0	108	0	this	1
          //   0	108	1	monitor	IProgressMonitor
          //   35	7	2	e	InvocationTargetException
          //   61	6	2	e	InterruptedException
          //   74	17	3	localObject	Object
          // Exception table:
          //   from	to	target	type
          //   0	32	35	java/lang/reflect/InvocationTargetException
          //   0	32	61	java/lang/InterruptedException
          //   0	43	74	finally
          //   61	74	74	finally
        }
      };
      getTaskList().run(runnable, monitor);
    }
    catch (CoreException e)
    {
      throw new InvocationTargetException(e);
    }
    if (ite[0] != null) {
      throw ite[0];
    }
  }
  
  protected TaskList getTaskList()
  {
    return TasksUiPlugin.getTaskList();
  }
}

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

import org.eclipse.jface.action.MenuManager;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Menu;

class ScheduleDatePicker$3
  extends SelectionAdapter
{
  ScheduleDatePicker$3(ScheduleDatePicker paramScheduleDatePicker) {}
  
  public void widgetSelected(SelectionEvent arg0)
  {
    MenuManager menuManager = ScheduleDatePicker.access$5(this$0).getSubMenuManager(ScheduleDatePicker.access$4(this$0));
    Menu menu = menuManager.createContextMenu(ScheduleDatePicker.access$6(this$0));
    ScheduleDatePicker.access$6(this$0).setMenu(menu);
    menu.setVisible(true);
    Point location = ScheduleDatePicker.access$6(this$0).toDisplay(ScheduleDatePicker.access$6(this$0).getLocation());
    Rectangle bounds = ScheduleDatePicker.access$6(this$0).getBounds();
    
    menu.setLocation(x - access$6this$0).getBounds().x, y + height + 2);
  }
}

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

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.viewers.IDecoration;
import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.ILightweightLabelDecorator;
import org.eclipse.mylyn.commons.ui.CommonImages;
import org.eclipse.mylyn.internal.tasks.core.ITaskRepositoryElement;
import org.eclipse.mylyn.internal.tasks.core.TaskActivityManager;
import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
import org.eclipse.mylyn.tasks.core.IRepositoryManager;
import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.ui.AbstractRepositoryConnectorUi;
import org.eclipse.mylyn.tasks.ui.TasksUi;

public class TaskLabelDecorator
  implements ILightweightLabelDecorator
{
  public void decorate(Object element, IDecoration decoration)
  {
    ImageDescriptor priorityOverlay = getPriorityImageDescriptor(element);
    if (priorityOverlay != null) {
      decoration.addOverlay(priorityOverlay, 2);
    }
    if ((element instanceof ITask))
    {
      ITask task = (ITask)element;
      if ((!task.isCompleted()) && (
        (TasksUiPlugin.getTaskActivityManager().isDueToday(task)) || 
        (TasksUiPlugin.getTaskActivityManager().isOverdue(task)))) {
        decoration.addOverlay(CommonImages.OVERLAY_DATE_OVERDUE, 1);
      } else if ((!task.isCompleted()) && (task.getDueDate() != null)) {
        decoration.addOverlay(CommonImages.OVERLAY_DATE_DUE, 1);
      }
    }
    else if ((element instanceof ITaskRepositoryElement))
    {
      ITaskRepositoryElement repositoryElement = (ITaskRepositoryElement)element;
      String repositoryUrl = repositoryElement.getRepositoryUrl();
      TaskRepository taskRepository = TasksUi.getRepositoryManager().getRepository(
        repositoryElement.getConnectorKind(), repositoryUrl);
      if (taskRepository != null) {
        decoration.addSuffix("   [" + taskRepository.getRepositoryLabel() + "]");
      }
    }
    else if ((element instanceof TaskRepository))
    {
      ImageDescriptor overlay = TasksUiPlugin.getDefault().getOverlayIcon(
        ((TaskRepository)element).getConnectorKind());
      if (overlay != null) {
        decoration.addOverlay(overlay, 3);
      }
    }
  }
  
  public void addListener(ILabelProviderListener listener) {}
  
  public void dispose() {}
  
  public boolean isLabelProperty(Object element, String property)
  {
    return false;
  }
  
  public void removeListener(ILabelProviderListener listener) {}
  
  private ImageDescriptor getPriorityImageDescriptor(Object element)
  {
    if ((element instanceof ITask))
    {
      ITask repositoryTask = (ITask)element;
      AbstractRepositoryConnectorUi connectorUi = TasksUiPlugin.getConnectorUi(((ITask)element).getConnectorKind());
      if (connectorUi != null) {
        return connectorUi.getTaskPriorityOverlay(repositoryTask);
      }
    }
    if ((element instanceof ITask)) {
      return TasksUiInternal.getPriorityImage((ITask)element);
    }
    return null;
  }
}

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

import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.jface.util.PropertyChangeEvent;
import org.eclipse.mylyn.commons.notifications.feed.ServiceMessageManager;

class TasksUiPlugin$2
  implements IPropertyChangeListener
{
  TasksUiPlugin$2(TasksUiPlugin paramTasksUiPlugin) {}
  
  public void propertyChange(PropertyChangeEvent event)
  {
    if ((event.getProperty().equals("org.eclipse.mylyn.tasks.ui.planning.end.hour")) || 
      (event.getProperty().equals("org.eclipse.mylyn.tasks.ui.planning.week.start.day"))) {
      TasksUiPlugin.access$0(this$0);
    }
    if ((event.getProperty().equals("org.eclipse.mylyn.tasks.ui.repositories.synch.schedule")) || 
      (event.getProperty().equals("org.eclipse.mylyn.tasks.ui.repositories.synch.schedule.miliseconds"))) {
      TasksUiPlugin.access$1(this$0, false);
    }
    if (event.getProperty().equals("org.eclipse.mylyn.tasks.ui.messages.enabled")) {
      if (this$0.getPreferenceStore().getBoolean("org.eclipse.mylyn.tasks.ui.messages.enabled")) {
        TasksUiPlugin.access$2(this$0).start();
      } else {
        TasksUiPlugin.access$2(this$0).stop();
      }
    }
  }
}

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

import org.eclipse.jface.action.Action;

class ScheduleTaskMenuContributor$4
  extends Action
{
  ScheduleTaskMenuContributor$4(ScheduleTaskMenuContributor paramScheduleTaskMenuContributor) {}
  
  public void run()
  {
    this$0.setScheduledDate(null);
  }
}

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

import org.eclipse.ui.IStartup;

public class TasksUiPlugin$TasksUiStartup
  implements IStartup
{
  public void earlyStartup() {}
}

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

import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;

public class PersonProposalLabelProvider
  extends LabelProvider
{
  public Image getImage(Object element)
  {
    if ((element instanceof PersonContentProposal)) {
      return ((PersonContentProposal)element).getImage();
    }
    return null;
  }
  
  public String getText(Object element)
  {
    if ((element instanceof PersonContentProposal)) {
      return ((PersonContentProposal)element).getLabel();
    }
    return super.getText(element);
  }
}

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

import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.ISafeRunnable;
import org.eclipse.core.runtime.Status;
import org.eclipse.mylyn.commons.core.StatusHandler;
import org.eclipse.mylyn.tasks.ui.AbstractTaskRepositoryLinkProvider;

class TasksUiPlugin$9
  implements ISafeRunnable
{
  TasksUiPlugin$9(TasksUiPlugin paramTasksUiPlugin, AbstractTaskRepositoryLinkProvider paramAbstractTaskRepositoryLinkProvider, IResource paramIResource, boolean[] paramArrayOfBoolean1, boolean[] paramArrayOfBoolean2) {}
  
  public void handleException(Throwable e)
  {
    StatusHandler.log(new Status(4, "org.eclipse.mylyn.tasks.ui", 
      "Task repository link provider failed: \"" + val$linkProvider.getId() + "\"", e));
  }
  
  public void run()
    throws Exception
  {
    if (val$linkProvider.getTaskRepository(val$resource, TasksUiPlugin.getRepositoryManager()) != null)
    {
      val$found[0] = true;
      val$result[0] = val$linkProvider.canSetTaskRepository(val$resource);
    }
  }
}

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

import org.eclipse.core.runtime.Assert;
import org.eclipse.mylyn.commons.workbench.EditorHandle;
import org.eclipse.mylyn.commons.workbench.browser.AbstractUrlHandler;
import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
import org.eclipse.mylyn.internal.tasks.core.LocalTask;
import org.eclipse.mylyn.internal.tasks.core.TaskRepositoryManager;
import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
import org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector;
import org.eclipse.mylyn.tasks.core.IRepositoryManager;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.ui.TasksUi;
import org.eclipse.mylyn.tasks.ui.TasksUiUtil;
import org.eclipse.ui.IWorkbenchPage;

public class TaskUrlHandler
  extends AbstractUrlHandler
{
  public EditorHandle openUrl(IWorkbenchPage page, String url, int customFlags)
  {
    Assert.isNotNull(url);
    AbstractTask task = TasksUiInternal.getTaskByUrl(url);
    if ((task != null) && (!(task instanceof LocalTask)))
    {
      TaskRepository repository = TasksUi.getRepositoryManager().getRepository(task.getConnectorKind(), 
        task.getRepositoryUrl());
      return TasksUiUtil.openTaskWithResult(repository, task.getTaskId());
    }
    AbstractRepositoryConnector connector = TasksUiPlugin.getRepositoryManager()
      .getConnectorForRepositoryTaskUrl(url);
    if (connector != null)
    {
      String repositoryUrl = connector.getRepositoryUrlFromTaskUrl(url);
      if (repositoryUrl != null)
      {
        String id = connector.getTaskIdFromTaskUrl(url);
        if (id != null)
        {
          TaskRepository repository = TasksUi.getRepositoryManager().getRepository(
            connector.getConnectorKind(), repositoryUrl);
          if (repository != null) {
            return TasksUiUtil.openTaskWithResult(repository, id);
          }
        }
      }
    }
    return null;
  }
}

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

import org.eclipse.jface.action.Action;
import org.eclipse.mylyn.internal.tasks.ui.actions.ActivateTaskDialogAction;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.PlatformUI;

class TaskHistoryDropDown$ActivateDialogAction
  extends Action
{
  private final ActivateTaskDialogAction dialogAction;
  
  public TaskHistoryDropDown$ActivateDialogAction(TaskHistoryDropDown paramTaskHistoryDropDown, ActivateTaskDialogAction action)
  {
    dialogAction = action;
    dialogAction.init(PlatformUI.getWorkbench().getActiveWorkbenchWindow());
    
    setText(Messages.TaskHistoryDropDown_Activate_Task_);
    setToolTipText(Messages.TaskHistoryDropDown_Activate_Task_);
    setEnabled(true);
    setChecked(false);
    setImageDescriptor(null);
  }
  
  public void run()
  {
    dialogAction.run(null);
  }
}

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

import java.util.Arrays;
import java.util.Collection;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
import org.eclipse.jface.fieldassist.IContentProposal;
import org.eclipse.jface.fieldassist.IContentProposalProvider;
import org.eclipse.mylyn.commo
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79

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-2019. Infinite Loop Ltd