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

ll;
      }
    });
  }
}

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

import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.jface.util.PropertyChangeEvent;

class TaskSelectionDialog$1
  implements IPropertyChangeListener
{
  TaskSelectionDialog$1(TaskSelectionDialog paramTaskSelectionDialog) {}
  
  public void propertyChange(PropertyChangeEvent event)
  {
    if ((event.getProperty().equals("workingSetContentChange")) && 
      (event.getNewValue().equals(TaskSelectionDialog.access$0(this$0)))) {
      TaskSelectionDialog.access$1(this$0);
    }
  }
}

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

import org.eclipse.jface.action.IAction;
import org.eclipse.mylyn.tasks.core.ITaskActivityManager;
import org.eclipse.mylyn.tasks.ui.TasksUi;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;
import org.eclipse.ui.actions.ActionDelegate;

public class DeactivateAllTasksAction
  extends ActionDelegate
  implements IWorkbenchWindowActionDelegate
{
  public void init(IWorkbenchWindow window) {}
  
  public void run(IAction action)
  {
    TasksUi.getTaskActivityManager().deactivateActiveTask();
  }
}

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

import org.eclipse.jface.action.Action;
import org.eclipse.ui.IWorkingSet;

class TaskSelectionDialog$FilterWorkingSetAction
  extends Action
{
  private final IWorkingSet workingSet;
  
  public TaskSelectionDialog$FilterWorkingSetAction(TaskSelectionDialog paramTaskSelectionDialog, IWorkingSet workingSet, int shortcutKeyNumber)
  {
    super("", 8);
    this.workingSet = workingSet;
    if ((shortcutKeyNumber >= 1) && (shortcutKeyNumber <= 9)) {
      setText("&" + String.valueOf(shortcutKeyNumber) + " " + workingSet.getLabel());
    } else {
      setText(workingSet.getLabel());
    }
    setImageDescriptor(workingSet.getImageDescriptor());
  }
  
  public void run()
  {
    TaskSelectionDialog.access$2(this$0, workingSet);
  }
}

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

import org.eclipse.jface.action.Action;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;

public class ShowNonMatchingSubtasksAction
  extends Action
{
  public ShowNonMatchingSubtasksAction()
  {
    setText(Messages.ShowNonMatchingSubtasksAction_Show_Non_Matching_Subtasks);
    setToolTipText(Messages.ShowNonMatchingSubtasksAction_Show_Non_Matching_Subtasks);
    setChecked(
    
      !TasksUiPlugin.getDefault().getPreferenceStore().getBoolean("org.eclipse.mylyn.tasks.ui.filters.nonmatching"));
  }
  
  public void run()
  {
    TasksUiPlugin.getDefault().getPreferenceStore().setValue("org.eclipse.mylyn.tasks.ui.filters.nonmatching", !isChecked());
  }
}

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

import java.util.Collection;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.Separator;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.mylyn.internal.tasks.ui.views.PresentationFilter;
import org.eclipse.mylyn.internal.tasks.ui.views.TaskListView;
import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.mylyn.tasks.core.ITaskContainer;
import org.eclipse.ui.part.DrillDownAdapter;

public class TaskListViewActionGroup
  extends RepositoryElementActionGroup
{
  private final RenameAction renameAction;
  private final TaskListView view;
  private final GoIntoAction goIntoAction;
  private final GoUpAction goUpAction;
  private final DrillDownAdapter drillDownAdapter;
  private final HideQueryAction hideQueryAction;
  
  public TaskListViewActionGroup(TaskListView view, DrillDownAdapter drillDownAdapter)
  {
    this.view = view;
    this.drillDownAdapter = drillDownAdapter;
    
    goIntoAction = new GoIntoAction();
    goUpAction = new GoUpAction(drillDownAdapter);
    renameAction = ((RenameAction)add(new RenameAction(view)));
    hideQueryAction = ((HideQueryAction)add(new HideQueryAction()));
    
    setSelectionProvider(view.getViewer());
  }
  
  public void dispose()
  {
    setSelectionProvider(null);
  }
  
  public void updateDrillDownActions()
  {
    if (drillDownAdapter.canGoBack()) {
      goUpAction.setEnabled(true);
    } else {
      goUpAction.setEnabled(false);
    }
  }
  
  public void fillContextMenu(IMenuManager manager)
  {
    super.fillContextMenu(manager);
    if ((hideQueryAction.isEnabled()) && (!PresentationFilter.getInstance().isFilterHiddenQueries()))
    {
      manager.appendToGroup("repository", new Separator());
      manager.appendToGroup("repository", hideQueryAction);
    }
    updateDrillDownActions();
    
    Object element = ((IStructuredSelection)view.getViewer().getSelection()).getFirstElement();
    if (((element instanceof ITaskContainer)) && (!(element instanceof ITask)))
    {
      ITaskContainer cat = (ITaskContainer)element;
      if (cat.getChildren().size() > 0) {
        goIntoAction.setEnabled(true);
      } else {
        goIntoAction.setEnabled(false);
      }
    }
    else
    {
      goIntoAction.setEnabled(false);
    }
    if (goIntoAction.isEnabled()) {
      manager.appendToGroup("navigate", goIntoAction);
    }
    if (goUpAction.isEnabled()) {
      manager.appendToGroup("navigate", goUpAction);
    }
    if ((!(element instanceof ITask)) && (renameAction.isEnabled()) && (element != null)) {
      manager.appendToGroup("edit", renameAction);
    }
  }
  
  public GoUpAction getGoUpAction()
  {
    return goUpAction;
  }
  
  public GoIntoAction getGoIntoAction()
  {
    return goIntoAction;
  }
  
  public RenameAction getRenameAction()
  {
    return renameAction;
  }
}

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

import java.util.Iterator;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.mylyn.internal.tasks.ui.search.SearchUtil;
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.IRepositoryQuery;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.ui.TasksUi;
import org.eclipse.ui.actions.BaseSelectionListenerAction;

public class ShowInSearchViewAction
  extends BaseSelectionListenerAction
{
  public static final String ID = "org.eclipse.mylyn.tasklist.actions.open.browser";
  
  public ShowInSearchViewAction()
  {
    super(Messages.ShowInSearchViewAction_Open_in_Search_Label);
    setId("org.eclipse.mylyn.tasklist.actions.open.browser");
  }
  
  public void run()
  {
    if (super.getStructuredSelection() != null) {
      for (Iterator<?> iter = super.getStructuredSelection().iterator(); iter.hasNext();) {
        runWithSelection(iter.next());
      }
    }
  }
  
  private void runWithSelection(Object selectedObject)
  {
    if ((selectedObject instanceof IRepositoryQuery))
    {
      IRepositoryQuery query = (IRepositoryQuery)selectedObject;
      AbstractRepositoryConnector connector = TasksUi.getRepositoryManager().getRepositoryConnector(
        query.getConnectorKind());
      TaskRepository taskRepository = TasksUi.getRepositoryManager().getRepository(query.getConnectorKind(), 
        query.getRepositoryUrl());
      if (connector != null) {
        SearchUtil.runSearchQuery(TasksUiInternal.getTaskList(), taskRepository, query);
      }
    }
  }
  
  protected boolean updateSelection(IStructuredSelection selection)
  {
    return (SearchUtil.supportsTaskSearch()) && (selection.size() == 1) && ((selection.getFirstElement() instanceof IRepositoryQuery));
  }
}

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

class FocusTaskListAction$3
  implements Runnable
{
  FocusTaskListAction$3(FocusTaskListAction paramFocusTaskListAction) {}
  
  /* Error */
  public void run()
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 126	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;
    //   4: invokestatic 140	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;)Lorg/eclipse/mylyn/internal/tasks/ui/views/TaskListView;
    //   7: invokevirtual 143	org/eclipse/mylyn/internal/tasks/ui/views/TaskListView:getViewer	()Lorg/eclipse/jface/viewers/TreeViewer;
    //   10: invokevirtual 134	org/eclipse/jface/viewers/TreeViewer:getControl	()Lorg/eclipse/swt/widgets/Control;
    //   13: iconst_0
    //   14: invokevirtual 147	org/eclipse/swt/widgets/Control:setRedraw	(Z)V
    //   17: aload_0
    //   18: getfield 126	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;
    //   21: invokestatic 140	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;)Lorg/eclipse/mylyn/internal/tasks/ui/views/TaskListView;
    //   24: iconst_0
    //   25: invokevirtual 142	org/eclipse/mylyn/internal/tasks/ui/views/TaskListView:setFocusedMode	(Z)V
    //   28: aload_0
    //   29: getfield 126	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;
    //   32: invokestatic 137	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction:access$6	(Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;)Ljava/util/Set;
    //   35: invokeinterface 154 1 0
    //   40: astore_2
    //   41: goto +24 -> 65
    //   44: aload_2
    //   45: invokeinterface 153 1 0
    //   50: checkcast 62	org/eclipse/mylyn/internal/tasks/ui/AbstractTaskListFilter
    //   53: astore_1
    //   54: aload_0
    //   55: getfield 126	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;
    //   58: invokestatic 140	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;)Lorg/eclipse/mylyn/internal/tasks/ui/views/TaskListView;
    //   61: aload_1
    //   62: invokevirtual 144	org/eclipse/mylyn/internal/tasks/ui/views/TaskListView:addFilter	(Lorg/eclipse/mylyn/internal/tasks/ui/AbstractTaskListFilter;)V
    //   65: aload_2
    //   66: invokeinterface 152 1 0
    //   71: ifne -27 -> 44
    //   74: aload_0
    //   75: getfield 126	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;
    //   78: invokestatic 140	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;)Lorg/eclipse/mylyn/internal/tasks/ui/views/TaskListView;
    //   81: aload_0
    //   82: getfield 126	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;
    //   85: invokestatic 139	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction:access$3	(Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;)Lorg/eclipse/mylyn/internal/tasks/ui/views/TaskListInterestFilter;
    //   88: invokevirtual 145	org/eclipse/mylyn/internal/tasks/ui/views/TaskListView:removeFilter	(Lorg/eclipse/mylyn/internal/tasks/ui/AbstractTaskListFilter;)V
    //   91: aload_0
    //   92: getfield 126	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;
    //   95: invokestatic 140	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;)Lorg/eclipse/mylyn/internal/tasks/ui/views/TaskListView;
    //   98: invokevirtual 146	org/eclipse/mylyn/internal/tasks/ui/views/TaskListView:getFilteredTree	()Lorg/eclipse/mylyn/internal/tasks/ui/views/TaskListFilteredTree;
    //   101: invokevirtual 141	org/eclipse/mylyn/internal/tasks/ui/views/TaskListFilteredTree:getFilterControl	()Lorg/eclipse/swt/widgets/Text;
    //   104: astore_1
    //   105: aload_1
    //   106: ifnull +29 -> 135
    //   109: aload_1
    //   110: invokevirtual 148	org/eclipse/swt/widgets/Text:getText	()Ljava/lang/String;
    //   113: invokevirtual 128	java/lang/String:length	()I
    //   116: ifle +19 -> 135
    //   119: aload_0
    //   120: getfield 126	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;
    //   123: invokestatic 140	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;)Lorg/eclipse/mylyn/internal/tasks/ui/views/TaskListView;
    //   126: invokevirtual 143	org/eclipse/mylyn/internal/tasks/ui/views/TaskListView:getViewer	()Lorg/eclipse/jface/viewers/TreeViewer;
    //   129: invokevirtual 130	org/eclipse/jface/viewers/TreeViewer:expandAll	()V
    //   132: goto +97 -> 229
    //   135: aload_0
    //   136: getfield 126	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;
    //   139: invokestatic 140	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;)Lorg/eclipse/mylyn/internal/tasks/ui/views/TaskListView;
    //   142: invokevirtual 143	org/eclipse/mylyn/internal/tasks/ui/views/TaskListView:getViewer	()Lorg/eclipse/jface/viewers/TreeViewer;
    //   145: invokevirtual 129	org/eclipse/jface/viewers/TreeViewer:collapseAll	()V
    //   148: aload_0
    //   149: getfield 126	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;
    //   152: invokestatic 140	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;)Lorg/eclipse/mylyn/internal/tasks/ui/views/TaskListView;
    //   155: invokevirtual 143	org/eclipse/mylyn/internal/tasks/ui/views/TaskListView:getViewer	()Lorg/eclipse/jface/viewers/TreeViewer;
    //   158: invokevirtual 132	org/eclipse/jface/viewers/TreeViewer:getContentProvider	()Lorg/eclipse/jface/viewers/IContentProvider;
    //   161: instanceof 67
    //   164: ifeq +65 -> 229
    //   167: aload_0
    //   168: getfield 126	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;
    //   171: invokestatic 140	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;)Lorg/eclipse/mylyn/internal/tasks/ui/views/TaskListView;
    //   174: invokevirtual 143	org/eclipse/mylyn/internal/tasks/ui/views/TaskListView:getViewer	()Lorg/eclipse/jface/viewers/TreeViewer;
    //   177: invokevirtual 135	org/eclipse/jface/viewers/TreeViewer:getTree	()Lorg/eclipse/swt/widgets/Tree;
    //   180: invokevirtual 149	org/eclipse/swt/widgets/Tree:getItemCount	()I
    //   183: ifle +46 -> 229
    //   186: aload_0
    //   187: getfield 126	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;
    //   190: invokestatic 140	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;)Lorg/eclipse/mylyn/internal/tasks/ui/views/TaskListView;
    //   193: invokevirtual 143	org/eclipse/mylyn/internal/tasks/ui/views/TaskListView:getViewer	()Lorg/eclipse/jface/viewers/TreeViewer;
    //   196: invokevirtual 135	org/eclipse/jface/viewers/TreeViewer:getTree	()Lorg/eclipse/swt/widgets/Tree;
    //   199: iconst_0
    //   200: invokevirtual 150	org/eclipse/swt/widgets/Tree:getItem	(I)Lorg/eclipse/swt/widgets/TreeItem;
    //   203: astore_2
    //   204: aload_2
    //   205: invokevirtual 151	org/eclipse/swt/widgets/TreeItem:getData	()Ljava/lang/Object;
    //   208: ifnull +21 -> 229
    //   211: aload_0
    //   212: getfield 126	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;
    //   215: invokestatic 140	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;)Lorg/eclipse/mylyn/internal/tasks/ui/views/TaskListView;
    //   218: invokevirtual 143	org/eclipse/mylyn/internal/tasks/ui/views/TaskListView:getViewer	()Lorg/eclipse/jface/viewers/TreeViewer;
    //   221: aload_2
    //   222: invokevirtual 151	org/eclipse/swt/widgets/TreeItem:getData	()Ljava/lang/Object;
    //   225: iconst_1
    //   226: invokevirtual 131	org/eclipse/jface/viewers/TreeViewer:expandToLevel	(Ljava/lang/Object;I)V
    //   229: aload_0
    //   230: getfield 126	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;
    //   233: invokestatic 140	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;)Lorg/eclipse/mylyn/internal/tasks/ui/views/TaskListView;
    //   236: invokevirtual 143	org/eclipse/mylyn/internal/tasks/ui/views/TaskListView:getViewer	()Lorg/eclipse/jface/viewers/TreeViewer;
    //   239: aload_0
    //   240: getfield 126	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;
    //   243: invokestatic 138	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction:access$7	(Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;)Lorg/eclipse/jface/viewers/ViewerSorter;
    //   246: invokevirtual 133	org/eclipse/jface/viewers/TreeViewer:setSorter	(Lorg/eclipse/jface/viewers/ViewerSorter;)V
    //   249: aload_0
    //   250: getfield 126	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;
    //   253: iconst_0
    //   254: invokestatic 136	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction:access$5	(Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;Z)V
    //   257: goto +23 -> 280
    //   260: astore_3
    //   261: aload_0
    //   262: getfield 126	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;
    //   265: invokestatic 140	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;)Lorg/eclipse/mylyn/internal/tasks/ui/views/TaskListView;
    //   268: invokevirtual 143	org/eclipse/mylyn/internal/tasks/ui/views/TaskListView:getViewer	()Lorg/eclipse/jface/viewers/TreeViewer;
    //   271: invokevirtual 134	org/eclipse/jface/viewers/TreeViewer:getControl	()Lorg/eclipse/swt/widgets/Control;
    //   274: iconst_1
    //   275: invokevirtual 147	org/eclipse/swt/widgets/Control:setRedraw	(Z)V
    //   278: aload_3
    //   279: athrow
    //   280: aload_0
    //   281: getfield 126	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;
    //   284: invokestatic 140	org/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/actions/FocusTaskListAction;)Lorg/eclipse/mylyn/internal/tasks/ui/views/TaskListView;
    //   287: invokevirtual 143	org/eclipse/mylyn/internal/tasks/ui/views/TaskListView:getViewer	()Lorg/eclipse/jface/viewers/TreeViewer;
    //   290: invokevirtual 134	org/eclipse/jface/viewers/TreeViewer:getControl	()Lorg/eclipse/swt/widgets/Control;
    //   293: iconst_1
    //   294: invokevirtual 147	org/eclipse/swt/widgets/Control:setRedraw	(Z)V
    //   297: return
    // Line number table:
    //   Java source line #132	-> byte code offset #0
    //   Java source line #133	-> byte code offset #17
    //   Java source line #134	-> byte code offset #28
    //   Java source line #135	-> byte code offset #54
    //   Java source line #134	-> byte code offset #65
    //   Java source line #137	-> byte code offset #74
    //   Java source line #138	-> byte code offset #91
    //   Java source line #139	-> byte code offset #105
    //   Java source line #140	-> byte code offset #119
    //   Java source line #142	-> byte code offset #135
    //   Java source line #144	-> byte code offset #148
    //   Java source line #145	-> byte code offset #167
    //   Java source line #146	-> byte code offset #186
    //   Java source line #147	-> byte code offset #204
    //   Java source line #148	-> byte code offset #211
    //   Java source line #152	-> byte code offset #229
    //   Java source line #153	-> byte code offset #249
    //   Java source line #154	-> byte code offset #260
    //   Java source line #155	-> byte code offset #261
    //   Java source line #156	-> byte code offset #278
    //   Java source line #155	-> byte code offset #280
    //   Java source line #157	-> byte code offset #297
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	298	0	this	3
    //   53	9	1	filter	org.eclipse.mylyn.internal.tasks.ui.AbstractTaskListFilter
    //   104	6	1	textControl	org.eclipse.swt.widgets.Text
    //   40	26	2	localIterator	java.util.Iterator
    //   203	19	2	item	org.eclipse.swt.widgets.TreeItem
    //   260	19	3	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   0	260	260	finally
  }
}

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

import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.mylyn.internal.tasks.ui.views.TaskListView;
import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.mylyn.tasks.ui.TasksUiUtil;
import org.eclipse.ui.actions.BaseSelectionListenerAction;

public class ShowInTaskListAction
  extends BaseSelectionListenerAction
{
  public ShowInTaskListAction()
  {
    super(Messages.ShowInTaskListAction_Show_In_Task_List);
  }
  
  public void run()
  {
    IStructuredSelection selection = getStructuredSelection();
    if (!selection.isEmpty())
    {
      Object element = selection.getFirstElement();
      if ((element instanceof ITask))
      {
        TasksUiUtil.openTasksViewInActivePerspective();
        TaskListView.getFromActivePerspective().selectedAndFocusTask((ITask)element);
      }
    }
  }
  
  protected boolean updateSelection(IStructuredSelection selection)
  {
    return (selection.size() == 1) && ((selection.getFirstElement() instanceof ITask));
  }
}

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

import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.mylyn.commons.ui.CommonImages;
import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
import org.eclipse.mylyn.tasks.core.IRepositoryElement;
import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.mylyn.tasks.core.ITask.SynchronizationState;
import org.eclipse.mylyn.tasks.core.data.ITaskDataManager;
import org.eclipse.mylyn.tasks.ui.TasksUi;
import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPage;

public class ClearOutgoingAction
  extends Action
{
  public static final String ID = "org.eclipse.mylyn.tasklist.actions.mark.discard";
  private final List<IRepositoryElement> selectedElements;
  private AbstractTaskEditorPage taskEditorPage;
  
  public ClearOutgoingAction(List<IRepositoryElement> selectedElements)
  {
    this.selectedElements = selectedElements;
    setText(Messages.ClearOutgoingAction_Clear_outgoing);
    setToolTipText(Messages.ClearOutgoingAction_Clear_outgoing);
    setImageDescriptor(CommonImages.CLEAR);
    setId("org.eclipse.mylyn.tasklist.actions.mark.discard");
    if ((selectedElements.size() == 1) && ((selectedElements.get(0) instanceof ITask)))
    {
      ITask task = (ITask)selectedElements.get(0);
      setEnabled(hasOutgoingChanges(task));
    }
    else
    {
      setEnabled(false);
    }
  }
  
  public AbstractTaskEditorPage getTaskEditorPage()
  {
    return taskEditorPage;
  }
  
  public void setTaskEditorPage(AbstractTaskEditorPage taskEditorPage)
  {
    this.taskEditorPage = taskEditorPage;
  }
  
  public static boolean hasOutgoingChanges(ITask task)
  {
    return (task.getSynchronizationState().equals(ITask.SynchronizationState.OUTGOING)) || (task.getSynchronizationState().equals(ITask.SynchronizationState.CONFLICT));
  }
  
  public void run()
  {
    ArrayList<AbstractTask> toClear = new ArrayList();
    for (Object selectedObject : selectedElements) {
      if (((selectedObject instanceof ITask)) && (hasOutgoingChanges((ITask)selectedObject))) {
        toClear.add((AbstractTask)selectedObject);
      }
    }
    if (toClear.size() > 0)
    {
      AbstractTask task = (AbstractTask)toClear.get(0);
      boolean confirm = MessageDialog.openConfirm(null, Messages.ClearOutgoingAction_Confirm_discard, 
        Messages.ClearOutgoingAction_Discard_all_outgoing_changes_ + "\n\n" + 
        task.getSummary());
      if (confirm)
      {
        if (taskEditorPage != null) {
          taskEditorPage.doSave(null);
        }
        try
        {
          TasksUi.getTaskDataManager().discardEdits(task);
        }
        catch (CoreException e)
        {
          TasksUiInternal.displayStatus(Messages.ClearOutgoingAction_Clear_outgoing_failed, e.getStatus());
        }
      }
    }
  }
}

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

import org.eclipse.mylyn.tasks.core.TaskMapping;

class NewTaskFromSelectionAction$1
  extends TaskMapping
{
  NewTaskFromSelectionAction$1(NewTaskFromSelectionAction paramNewTaskFromSelectionAction, String paramString) {}
  
  public String getDescription()
  {
    return val$text;
  }
}

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

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.mylyn.commons.core.ICoreRunnable;
import org.eclipse.mylyn.commons.workbench.WorkbenchUtil;
import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
import org.eclipse.mylyn.internal.tasks.core.ITaskList;
import org.eclipse.mylyn.internal.tasks.core.ITaskListRunnable;
import org.eclipse.mylyn.internal.tasks.core.RepositoryQuery;
import org.eclipse.mylyn.internal.tasks.core.TaskList;
import org.eclipse.mylyn.internal.tasks.core.TaskRepositoryManager;
import org.eclipse.mylyn.internal.tasks.core.UnsubmittedTaskContainer;
import org.eclipse.mylyn.internal.tasks.ui.TaskRepositoryUtil;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
import org.eclipse.mylyn.tasks.core.IRepositoryQuery;
import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.osgi.util.NLS;
import org.eclipse.ui.IViewPart;
import org.eclipse.ui.internal.WorkbenchImages;

public class DeleteTaskRepositoryAction
  extends AbstractTaskRepositoryAction
{
  private static final String ID = "org.eclipse.mylyn.tasklist.repositories.delete";
  
  public DeleteTaskRepositoryAction()
  {
    super(Messages.DeleteTaskRepositoryAction_Delete_Repository);
    setImageDescriptor(WorkbenchImages.getImageDescriptor("IMG_TOOL_DELETE"));
    setId("org.eclipse.mylyn.tasklist.repositories.delete");
    setEnabled(false);
    setActionDefinitionId("org.eclipse.ui.edit.delete");
    setSingleSelect(true);
  }
  
  public void init(IViewPart view) {}
  
  public void run()
  {
    TaskRepository repositoryToDelete = getTaskRepository(getStructuredSelection());
    if (repositoryToDelete != null) {
      run(repositoryToDelete);
    }
  }
  
  public static void run(final TaskRepository repositoryToDelete)
  {
    Assert.isNotNull(repositoryToDelete);
    
    final List<IRepositoryQuery> queriesToDelete = new ArrayList();
    List<AbstractTask> tasksToDelete = new ArrayList();
    
    Set<RepositoryQuery> queries = TasksUiInternal.getTaskList().getQueries();
    for (IRepositoryQuery query : queries) {
      if ((repositoryToDelete.getRepositoryUrl().equals(query.getRepositoryUrl())) && 
        (repositoryToDelete.getConnectorKind().equals(query.getConnectorKind()))) {
        queriesToDelete.add(query);
      }
    }
    Set<ITask> tasks = TasksUiPlugin.getTaskList().getTasks(repositoryToDelete.getRepositoryUrl());
    for (ITask task : tasks) {
      if ((repositoryToDelete.getRepositoryUrl().equals(task.getRepositoryUrl())) && 
        (repositoryToDelete.getConnectorKind().equals(task.getConnectorKind()))) {
        tasksToDelete.add((AbstractTask)task);
      }
    }
    UnsubmittedTaskContainer unsubmitted = TasksUiPlugin.getTaskList().getUnsubmittedContainer(
      repositoryToDelete.getRepositoryUrl());
    if (unsubmitted != null)
    {
      Object children = unsubmitted.getChildren();
      if (children != null) {
        for (ITask task : (Collection)children) {
          tasksToDelete.add((AbstractTask)task);
        }
      }
    }
    boolean deleteConfirmed;
    boolean deleteConfirmed;
    if ((queriesToDelete.size() > 0) || (tasksToDelete.size() > 0)) {
      deleteConfirmed = MessageDialog.openQuestion(
        WorkbenchUtil.getShell(), 
        Messages.DeleteTaskRepositoryAction_Confirm_Delete, 
        NLS.bind(Messages.DeleteTaskRepositoryAction_Delete_the_selected_task_repositories, new Integer[] {
        Integer.valueOf(tasksToDelete.size()), Integer.valueOf(queriesToDelete.size()) }));
    } else {
      deleteConfirmed = MessageDialog.openQuestion(WorkbenchUtil.getShell(), 
        Messages.DeleteTaskRepositoryAction_Confirm_Delete, NLS.bind(
        Messages.DeleteTaskRepositoryAction_Delete_Specific_Task_Repository, 
        new String[] { repositoryToDelete.getRepositoryLabel() }));
    }
    if (deleteConfirmed)
    {
      ICoreRunnable op = new ICoreRunnable()
      {
        /* Error */
        public void run(IProgressMonitor monitor)
          throws CoreException
        {
          // Byte code:
          //   0: aload_1
          //   1: getstatic 64	org/eclipse/mylyn/internal/tasks/ui/actions/Messages:DeleteTaskRepositoryAction_Delete_Repository_In_Progress	Ljava/lang/String;
          //   4: iconst_m1
          //   5: invokeinterface 71 3 0
          //   10: aload_0
          //   11: getfield 62	org/eclipse/mylyn/internal/tasks/ui/actions/DeleteTaskRepositoryAction$1:val$tasksToDelete	Ljava/util/List;
          //   14: invokestatic 68	org/eclipse/mylyn/internal/tasks/ui/actions/DeleteAction:prepareDeletion	(Ljava/util/Collection;)V
          //   17: aload_0
          //   18: getfield 61	org/eclipse/mylyn/internal/tasks/ui/actions/DeleteTaskRepositoryAction$1:val$queriesToDelete	Ljava/util/List;
          //   21: invokestatic 68	org/eclipse/mylyn/internal/tasks/ui/actions/DeleteAction:prepareDeletion	(Ljava/util/Collection;)V
          //   24: invokestatic 67	org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin:getTaskList	()Lorg/eclipse/mylyn/internal/tasks/core/TaskList;
          //   27: new 34	org/eclipse/mylyn/internal/tasks/ui/actions/DeleteTaskRepositoryAction$1$1
          //   30: dup
          //   31: aload_0
          //   32: aload_0
          //   33: getfield 62	org/eclipse/mylyn/internal/tasks/ui/actions/DeleteTaskRepositoryAction$1:val$tasksToDelete	Ljava/util/List;
          //   36: aload_0
          //   37: getfield 61	org/eclipse/mylyn/internal/tasks/ui/actions/DeleteTaskRepositoryAction$1:val$queriesToDelete	Ljava/util/List;
          //   40: aload_0
          //   41: getfield 63	org/eclipse/mylyn/internal/tasks/ui/actions/DeleteTaskRepositoryAction$1:val$repositoryToDelete	Lorg/eclipse/mylyn/tasks/core/TaskRepository;
          //   44: invokespecial 69	org/eclipse/mylyn/internal/tasks/ui/actions/DeleteTaskRepositoryAction$1$1:<init>	(Lorg/eclipse/mylyn/internal/tasks/ui/actions/DeleteTaskRepositoryAction$1;Ljava/util/List;Ljava/util/List;Lorg/eclipse/mylyn/tasks/core/TaskRepository;)V
          //   47: aload_1
          //   48: invokevirtual 66	org/eclipse/mylyn/internal/tasks/core/TaskList:run	(Lorg/eclipse/mylyn/internal/tasks/core/ITaskListRunnable;Lorg/eclipse/core/runtime/IProgressMonitor;)V
          //   51: goto +12 -> 63
          //   54: astore_2
          //   55: aload_1
          //   56: invokeinterface 70 1 0
          //   61: aload_2
          //   62: athrow
          //   63: aload_1
          //   64: invokeinterface 70 1 0
          //   69: return
          // Line number table:
          //   Java source line #129	-> byte code offset #0
          //   Java source line #130	-> byte code offset #4
          //   Java source line #129	-> byte code offset #5
          //   Java source line #131	-> byte code offset #10
          //   Java source line #132	-> byte code offset #17
          //   Java source line #133	-> byte code offset #24
          //   Java source line #144	-> byte code offset #47
          //   Java source line #133	-> byte code offset #48
          //   Java source line #145	-> byte code offset #54
          //   Java source line #146	-> byte code offset #55
          //   Java source line #147	-> byte code offset #61
          //   Java source line #146	-> byte code offset #63
          //   Java source line #148	-> byte code offset #69
          // Local variable table:
          //   start	length	slot	name	signature
          //   0	70	0	this	1
          //   0	70	1	monitor	IProgressMonitor
          //   54	8	2	localObject	Object
          // Exception table:
          //   from	to	target	type
          //   0	54	54	finally
        }
      };
      try
      {
        WorkbenchUtil.runInUi(op, null);
      }
      catch (CoreException e)
      {
        Status status = new Status(4, "org.eclipse.mylyn.tasks.ui", NLS.bind(
          "Problems encountered deleting task repository: {0}", e.getMessage()), e);
        TasksUiInternal.logAndDisplayStatus(Messages.DeleteTaskRepositoryAction_Delete_Task_Repository_Failed, 
          status);
      }
      catch (OperationCanceledException localOperationCanceledException) {}
    }
  }
}

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

import java.util.Set;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.dialogs.InputDialog;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.mylyn.internal.tasks.core.AbstractTaskCategory;
import org.eclipse.mylyn.internal.tasks.core.ITaskList;
import org.eclipse.mylyn.internal.tasks.core.RepositoryQuery;
import org.eclipse.mylyn.internal.tasks.core.TaskCategory;
import org.eclipse.mylyn.internal.tasks.core.TaskList;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
import org.eclipse.mylyn.tasks.ui.TasksUiImages;
import org.eclipse.ui.IViewActionDelegate;
import org.eclipse.ui.IViewPart;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;

public class NewCategoryAction
  extends Action
  implements IViewActionDelegate
{
  public static final String ID = "org.eclipse.mylyn.tasks.ui.actions.create.category";
  
  public NewCategoryAction()
  {
    setText(Messages.NewCategoryAction_New_Category_);
    setToolTipText(Messages.NewCategoryAction_New_Category_);
    setId("org.eclipse.mylyn.tasks.ui.actions.create.category");
    setImageDescriptor(TasksUiImages.CATEGORY_NEW);
  }
  
  public void init(IViewPart view) {}
  
  public void run(IAction action)
  {
    run();
  }
  
  public void run()
  {
    createCategory();
  }
  
  public TaskCategory createCategory()
  {
    InputDialog dialog = new InputDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), 
      Messages.NewCategoryAction_Enter_name, Messages.NewCategoryAction_Enter_a_name_for_the_Category, 
      "", null);
    int dialogResult = dialog.open();
    if (dialogResult == 0)
    {
      String name = dialog.getValue();
      Set<RepositoryQuery> queries = TasksUiInternal.getTaskList().getQueries();
      Set<AbstractTaskCategory> categories = TasksUiInternal.getTaskList().getCategories();
      for (AbstractTaskCategory category : categories) {
        if ((name != null) && (name.equals(category.getSummary())))
        {
          MessageDialog.openInformation(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), 
            Messages.NewCategoryAction_New_Category, 
            Messages.NewCategoryAction_A_category_with_this_name_already_exists);
          return null;
        }
      }
      for (RepositoryQuery query : queries) {
        if ((name != null) && (name.equals(query.getSummary())))
        {
          MessageDialog.openInformation(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), 
            Messages.NewCategoryAction_New_Category, 
            Messages.NewCategoryAction_A_query_with_this_name_already_exists);
          return null;
      
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