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

iInternal.displayStatus(Messages.BrowserPreviewViewer_Error, val$job.getStatus());
  }
}

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

import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.mylyn.tasks.core.TaskActivityAdapter;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.PlatformUI;

class PlanningPart$3
  extends TaskActivityAdapter
{
  PlanningPart$3(PlanningPart paramPlanningPart) {}
  
  public void elapsedTimeUpdated(ITask task, long newElapsedTime)
  {
    if (task.equals(this$0.getTask())) {
      PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable()
      {
        public void run()
        {
          if ((PlanningPart.access$0(this$0) != null) && (!PlanningPart.access$0(this$0).isDisposed())) {
            PlanningPart.access$1(this$0);
          }
        }
      });
    }
  }
}

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

import org.eclipse.core.runtime.Assert;
import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
import org.eclipse.mylyn.tasks.core.data.TaskAttributeMapper;
import org.eclipse.mylyn.tasks.core.data.TaskDataModel;
import org.eclipse.mylyn.tasks.ui.editors.AbstractAttributeEditor;
import org.eclipse.swt.custom.CCombo;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.forms.widgets.FormToolkit;

public class SingleSelectionAttributeEditor
  extends AbstractAttributeEditor
{
  private CCombo combo;
  private boolean ignoreNotification;
  private Text text;
  private String[] values;
  
  public SingleSelectionAttributeEditor(TaskDataModel manager, TaskAttribute taskAttribute)
  {
    super(manager, taskAttribute);
  }
  
  public void createControl(Composite parent, FormToolkit toolkit)
  {
    if (isReadOnly())
    {
      text = new Text(parent, 8388616);
      text.setFont(EditorUtil.TEXT_FONT);
      toolkit.adapt(text, false, false);
      text.setData("FormWidgetFactory.drawBorder", Boolean.FALSE);
      text.setToolTipText(getDescription());
      setControl(text);
    }
    else
    {
      combo = new CCombo(parent, 8388616);
      combo.setVisibleItemCount(10);
      toolkit.adapt(combo, false, false);
      combo.setFont(EditorUtil.TEXT_FONT);
      combo.setData("FormWidgetFactory.drawBorder", "treeBorder");
      combo.setToolTipText(getDescription());
      combo.addSelectionListener(new SelectionAdapter()
      {
        public void widgetSelected(SelectionEvent event)
        {
          if (!ignoreNotification)
          {
            int index = combo.getSelectionIndex();
            if (index > -1)
            {
              Assert.isNotNull(values);
              Assert.isLegal((index >= 0) && (index <= values.length - 1));
              setValue(values[index]);
            }
          }
        }
      });
      EditorUtil.addScrollListener(combo);
      setControl(combo);
    }
    refresh();
  }
  
  public String getValue()
  {
    return getAttributeMapper().getValue(getTaskAttribute());
  }
  
  public String getValueLabel()
  {
    return getAttributeMapper().getValueLabel(getTaskAttribute());
  }
  
  /* Error */
  public void refresh()
  {
    // Byte code:
    //   0: aload_0
    //   1: iconst_1
    //   2: putfield 175	org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor:ignoreNotification	Z
    //   5: aload_0
    //   6: getfield 178	org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor:text	Lorg/eclipse/swt/widgets/Text;
    //   9: ifnull +50 -> 59
    //   12: aload_0
    //   13: getfield 178	org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor:text	Lorg/eclipse/swt/widgets/Text;
    //   16: invokevirtual 211	org/eclipse/swt/widgets/Text:isDisposed	()Z
    //   19: ifne +40 -> 59
    //   22: aload_0
    //   23: invokevirtual 186	org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor:getValueLabel	()Ljava/lang/String;
    //   26: astore_1
    //   27: ldc 2
    //   29: aload_1
    //   30: invokevirtual 179	java/lang/String:equals	(Ljava/lang/Object;)Z
    //   33: ifeq +15 -> 48
    //   36: aload_0
    //   37: getfield 178	org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor:text	Lorg/eclipse/swt/widgets/Text;
    //   40: ldc 3
    //   42: invokevirtual 212	org/eclipse/swt/widgets/Text:setText	(Ljava/lang/String;)V
    //   45: goto +154 -> 199
    //   48: aload_0
    //   49: getfield 178	org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor:text	Lorg/eclipse/swt/widgets/Text;
    //   52: aload_1
    //   53: invokevirtual 212	org/eclipse/swt/widgets/Text:setText	(Ljava/lang/String;)V
    //   56: goto +143 -> 199
    //   59: aload_0
    //   60: getfield 177	org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor:combo	Lorg/eclipse/swt/custom/CCombo;
    //   63: ifnull +136 -> 199
    //   66: aload_0
    //   67: getfield 177	org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor:combo	Lorg/eclipse/swt/custom/CCombo;
    //   70: invokevirtual 201	org/eclipse/swt/custom/CCombo:isDisposed	()Z
    //   73: ifne +126 -> 199
    //   76: aload_0
    //   77: getfield 177	org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor:combo	Lorg/eclipse/swt/custom/CCombo;
    //   80: invokevirtual 200	org/eclipse/swt/custom/CCombo:removeAll	()V
    //   83: aload_0
    //   84: invokevirtual 189	org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor:getAttributeMapper	()Lorg/eclipse/mylyn/tasks/core/data/TaskAttributeMapper;
    //   87: aload_0
    //   88: invokevirtual 188	org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor:getTaskAttribute	()Lorg/eclipse/mylyn/tasks/core/data/TaskAttribute;
    //   91: invokevirtual 196	org/eclipse/mylyn/tasks/core/data/TaskAttributeMapper:getOptions	(Lorg/eclipse/mylyn/tasks/core/data/TaskAttribute;)Ljava/util/Map;
    //   94: astore_1
    //   95: aload_1
    //   96: ifnull +71 -> 167
    //   99: aload_0
    //   100: aload_1
    //   101: invokeinterface 218 1 0
    //   106: iconst_0
    //   107: anewarray 83	java/lang/String
    //   110: invokeinterface 220 2 0
    //   115: checkcast 81	[Ljava/lang/String;
    //   118: putfield 176	org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor:values	[Ljava/lang/String;
    //   121: aload_0
    //   122: getfield 176	org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor:values	[Ljava/lang/String;
    //   125: dup
    //   126: astore 5
    //   128: arraylength
    //   129: istore 4
    //   131: iconst_0
    //   132: istore_3
    //   133: goto +28 -> 161
    //   136: aload 5
    //   138: iload_3
    //   139: aaload
    //   140: astore_2
    //   141: aload_0
    //   142: getfield 177	org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor:combo	Lorg/eclipse/swt/custom/CCombo;
    //   145: aload_1
    //   146: aload_2
    //   147: invokeinterface 219 2 0
    //   152: checkcast 83	java/lang/String
    //   155: invokevirtual 204	org/eclipse/swt/custom/CCombo:add	(Ljava/lang/String;)V
    //   158: iinc 3 1
    //   161: iload_3
    //   162: iload 4
    //   164: if_icmplt -28 -> 136
    //   167: aload_0
    //   168: aload_0
    //   169: invokevirtual 185	org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor:getValue	()Ljava/lang/String;
    //   172: aload_0
    //   173: invokevirtual 186	org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor:getValueLabel	()Ljava/lang/String;
    //   176: invokespecial 191	org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor:select	(Ljava/lang/String;Ljava/lang/String;)V
    //   179: aload_0
    //   180: getfield 177	org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor:combo	Lorg/eclipse/swt/custom/CCombo;
    //   183: invokevirtual 199	org/eclipse/swt/custom/CCombo:redraw	()V
    //   186: goto +13 -> 199
    //   189: astore 6
    //   191: aload_0
    //   192: iconst_0
    //   193: putfield 175	org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor:ignoreNotification	Z
    //   196: aload 6
    //   198: athrow
    //   199: aload_0
    //   200: iconst_0
    //   201: putfield 175	org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor:ignoreNotification	Z
    //   204: return
    // Line number table:
    //   Java source line #91	-> byte code offset #0
    //   Java source line #92	-> byte code offset #5
    //   Java source line #93	-> byte code offset #22
    //   Java source line #94	-> byte code offset #27
    //   Java source line #96	-> byte code offset #36
    //   Java source line #98	-> byte code offset #48
    //   Java source line #100	-> byte code offset #59
    //   Java source line #101	-> byte code offset #76
    //   Java source line #102	-> byte code offset #83
    //   Java source line #103	-> byte code offset #95
    //   Java source line #104	-> byte code offset #99
    //   Java source line #105	-> byte code offset #121
    //   Java source line #106	-> byte code offset #141
    //   Java source line #105	-> byte code offset #158
    //   Java source line #109	-> byte code offset #167
    //   Java source line #110	-> byte code offset #179
    //   Java source line #112	-> byte code offset #189
    //   Java source line #113	-> byte code offset #191
    //   Java source line #114	-> byte code offset #196
    //   Java source line #113	-> byte code offset #199
    //   Java source line #115	-> byte code offset #204
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	205	0	this	SingleSelectionAttributeEditor
    //   26	27	1	label	String
    //   94	52	1	labelByValue	java.util.Map<String, String>
    //   140	7	2	value	String
    //   132	33	3	i	int
    //   129	36	4	j	int
    //   126	11	5	arrayOfString	String[]
    //   189	8	6	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   0	189	189	finally
  }
  
  public boolean shouldAutoRefresh()
  {
    return true;
  }
  
  private void select(String value, String label)
  {
    if (values != null) {
      for (int i = 0; i < values.length; i++) {
        if (values[i].equals(value))
        {
          combo.select(i);
          break;
        }
      }
    } else {
      combo.setText(label);
    }
  }
  
  void selectDefaultValue()
  {
    if ((combo.getSelectionIndex() == -1) && (values.length > 0))
    {
      combo.select(0);
      setValue(values[0]);
    }
  }
  
  public void setValue(String value)
  {
    String oldValue = getAttributeMapper().getValue(getTaskAttribute());
    if (!oldValue.equals(value))
    {
      getAttributeMapper().setValue(getTaskAttribute(), value);
      attributeChanged();
    }
  }
}

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

import org.eclipse.swt.widgets.Text;

class PlanningPart$4$1
  implements Runnable
{
  PlanningPart$4$1(PlanningPart.4 param4) {}
  
  public void run()
  {
    if ((PlanningPart.access$0(PlanningPart.4.access$0(this$1)) != null) && (!PlanningPart.access$0(PlanningPart.4.access$0(this$1)).isDisposed())) {
      PlanningPart.access$1(PlanningPart.4.access$0(this$1));
    }
  }
}

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

import org.eclipse.mylyn.commons.ui.CommonImages;
import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPageFactory;
import org.eclipse.mylyn.tasks.ui.editors.TaskEditor;
import org.eclipse.mylyn.tasks.ui.editors.TaskEditorInput;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.forms.editor.IFormPage;

public class PlanningPageFactory
  extends AbstractTaskEditorPageFactory
{
  public boolean canCreatePageFor(TaskEditorInput input)
  {
    return true;
  }
  
  public IFormPage createPage(TaskEditor parentEditor)
  {
    return new TaskPlanningEditor(parentEditor);
  }
  
  public Image getPageImage()
  {
    return CommonImages.getImage(CommonImages.CALENDAR_SMALL);
  }
  
  public String getPageText()
  {
    return Messages.PlanningPageFactory_Private;
  }
  
  public int getPriority()
  {
    return 10;
  }
}

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

import org.eclipse.jface.action.IAction;
import org.eclipse.jface.action.IMenuListener;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.Separator;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.mylyn.commons.ui.SelectionProviderAdapter;
import org.eclipse.mylyn.internal.tasks.ui.actions.CommentActionGroup;
import org.eclipse.mylyn.tasks.core.ITaskComment;
import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPage;
import org.eclipse.ui.actions.ActionContext;

class TaskEditorCommentPart$2
  implements IMenuListener
{
  TaskEditorCommentPart$2(TaskEditorCommentPart paramTaskEditorCommentPart) {}
  
  public void menuAboutToShow(IMenuManager manager)
  {
    ISelection selection = TaskEditorCommentPart.access$5(this$0).getSelection();
    if (((selection instanceof IStructuredSelection)) && (!selection.isEmpty()))
    {
      Object element = ((IStructuredSelection)selection).getFirstElement();
      if ((element instanceof ITaskComment))
      {
        final ITaskComment comment = (ITaskComment)element;
        AbstractReplyToCommentAction replyAction = new AbstractReplyToCommentAction(
          this$0.getTaskEditorPage(), comment)
          {
            protected String getReplyText()
            {
              return comment.getText();
            }
          };
          manager.add(replyAction);
        }
      }
      TaskEditorCommentPart.access$7(this$0).setContext(new ActionContext(TaskEditorCommentPart.access$5(this$0).getSelection()));
      TaskEditorCommentPart.access$7(this$0).fillContextMenu(manager);
      if ((TaskEditorCommentPart.access$8(this$0) != null) && ((TaskEditorCommentPart.access$8(this$0).getEditor() instanceof RichTextAttributeEditor)))
      {
        RichTextAttributeEditor editor = (RichTextAttributeEditor)TaskEditorCommentPart.access$8(this$0).getEditor();
        if (editor.getViewSourceAction().isEnabled())
        {
          manager.add(new Separator("planning"));
          manager.add(editor.getViewSourceAction());
        }
      }
    }
  }

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

import org.eclipse.swt.widgets.Text;

class PlanningPart$2$2
  implements Runnable
{
  PlanningPart$2$2(PlanningPart.2 param2) {}
  
  public void run()
  {
    if ((PlanningPart.access$0(PlanningPart.2.access$0(this$1)) != null) && (!PlanningPart.access$0(PlanningPart.2.access$0(this$1)).isDisposed())) {
      PlanningPart.access$1(PlanningPart.2.access$0(this$1));
    }
  }
}

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

import java.util.Comparator;
import org.eclipse.mylyn.tasks.core.AbstractDuplicateDetector;

class TaskEditorDescriptionPart$1
  implements Comparator<AbstractDuplicateDetector>
{
  TaskEditorDescriptionPart$1(TaskEditorDescriptionPart paramTaskEditorDescriptionPart) {}
  
  public int compare(AbstractDuplicateDetector c1, AbstractDuplicateDetector c2)
  {
    return c1.getName().compareToIgnoreCase(c2.getName());
  }
}

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

import java.util.List;
import org.eclipse.mylyn.internal.tasks.core.AbstractTaskCategory;
import org.eclipse.swt.custom.CCombo;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;

class TaskEditorActionPart$3
  extends SelectionAdapter
{
  TaskEditorActionPart$3(TaskEditorActionPart paramTaskEditorActionPart, List paramList) {}
  
  public void widgetSelected(SelectionEvent e)
  {
    this$0.markDirty();
    if (!TaskEditorActionPart.access$3(this$0).getSelection()) {
      TaskEditorActionPart.access$2(this$0, null);
    } else if (TaskEditorActionPart.access$1(this$0).getSelectionIndex() != -1) {
      TaskEditorActionPart.access$2(this$0, (AbstractTaskCategory)val$categories.get(TaskEditorActionPart.access$1(this$0).getSelectionIndex()));
    }
    TaskEditorActionPart.access$1(this$0).setEnabled(TaskEditorActionPart.access$3(this$0).getSelection());
  }
}

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

import org.eclipse.mylyn.internal.tasks.ui.wizards.NewAttachmentWizardDialog;
import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPage;
import org.eclipse.mylyn.tasks.ui.editors.TaskEditor;
import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.events.DisposeListener;

class EditorUtil$1
  implements DisposeListener
{
  EditorUtil$1(NewAttachmentWizardDialog paramNewAttachmentWizardDialog, AbstractTaskEditorPage paramAbstractTaskEditorPage) {}
  
  public void widgetDisposed(DisposeEvent e)
  {
    if (val$dialog.getReturnCode() == 0) {
      val$page.getTaskEditor().refreshPages();
    }
  }
}

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

import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
import org.eclipse.mylyn.tasks.core.data.TaskData;
import org.eclipse.mylyn.tasks.ui.editors.AbstractAttributeEditor;
import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPage;
import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPart;
import org.eclipse.mylyn.tasks.ui.editors.AttributeEditorToolkit;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.Section;

public class TaskEditorPeoplePart
  extends AbstractTaskEditorPart
{
  private static final int COLUMN_MARGIN = 5;
  
  public TaskEditorPeoplePart()
  {
    setPartName(Messages.TaskEditorPeoplePart_People);
  }
  
  private void addAttribute(Composite composite, FormToolkit toolkit, TaskAttribute attribute)
  {
    AbstractAttributeEditor editor = createAttributeEditor(attribute);
    if (editor != null)
    {
      editor.createLabelControl(composite, toolkit);
      GridDataFactory.defaultsFor(editor.getLabelControl())
        .indent(5, 0)
        .applyTo(editor.getLabelControl());
      editor.createControl(composite, toolkit);
      getTaskEditorPage().getAttributeEditorToolkit().adapt(editor);
      GridDataFactory.fillDefaults().grab(true, false).align(4, 128).applyTo(editor.getControl());
    }
  }
  
  public void createControl(Composite parent, FormToolkit toolkit)
  {
    Section section = createSection(parent, toolkit, true);
    
    Composite peopleComposite = toolkit.createComposite(section);
    GridLayout layout = EditorUtil.createSectionClientLayout();
    numColumns = 2;
    peopleComposite.setLayout(layout);
    
    addAttribute(peopleComposite, toolkit, getTaskData().getRoot().getMappedAttribute("task.common.user.assigned"));
    addAttribute(peopleComposite, toolkit, getTaskData().getRoot().getMappedAttribute("task.common.user.reporter"));
    addAttribute(peopleComposite, toolkit, getTaskData().getRoot().getMappedAttribute("task.common.addselfcc"));
    addAttribute(peopleComposite, toolkit, getTaskData().getRoot().getMappedAttribute("task.common.user.cc"));
    
    toolkit.paintBordersFor(peopleComposite);
    section.setClient(peopleComposite);
    setSection(toolkit, section);
  }
}

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

import org.eclipse.jface.text.ITextListener;
import org.eclipse.jface.text.TextEvent;
import org.eclipse.mylyn.internal.tasks.core.AbstractTask;

class SummaryPart$1
  implements ITextListener
{
  SummaryPart$1(SummaryPart paramSummaryPart) {}
  
  public void textChanged(TextEvent event)
  {
    if (!this$0.getTask().getSummary().equals(SummaryPart.access$0(this$0).getText())) {
      this$0.markDirty(SummaryPart.access$0(this$0).getControl());
    }
  }
}

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

import java.util.HashMap;
import java.util.Map;
import java.util.SortedSet;
import java.util.TreeSet;
import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.Status;
import org.eclipse.mylyn.commons.core.StatusHandler;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorExtension;
import org.eclipse.ui.IPluginContribution;

public class TaskEditorExtensions
{
  public static final String REPOSITORY_PROPERTY_EDITOR_EXTENSION = "editorExtension";
  public static final String REPOSITORY_PROPERTY_AVATAR_SUPPORT = "avatarSupport";
  private static Map<String, RegisteredTaskEditorExtension> extensionsById = new HashMap();
  private static Map<String, String> associationByConnectorKind = new HashMap();
  private static boolean initialized;
  
  public static SortedSet<RegisteredTaskEditorExtension> getTaskEditorExtensions()
  {
    init();
    return new TreeSet(extensionsById.values());
  }
  
  public static void addTaskEditorExtension(String pluginId, String id, String name, AbstractTaskEditorExtension extension)
  {
    Assert.isNotNull(id);
    RegisteredTaskEditorExtension descriptor = new RegisteredTaskEditorExtension(extension, id, name, null);
    descriptor.setPluginId(pluginId);
    RegisteredTaskEditorExtension previous = (RegisteredTaskEditorExtension)extensionsById.put(id, descriptor);
    if (previous != null) {
      StatusHandler.log(new Status(4, "org.eclipse.mylyn.tasks.ui", "Duplicate taskEditorExtension id=" + 
        id, null));
    }
  }
  
  public static void addRepositoryAssociation(String connectorKind, String extensionId)
  {
    if ((connectorKind == null) || (extensionId == null)) {
      throw new IllegalArgumentException();
    }
    String previous = (String)associationByConnectorKind.put(connectorKind, extensionId);
    if (previous != null) {
      StatusHandler.log(new Status(4, "org.eclipse.mylyn.tasks.ui", String.format(
        "Duplicate association for repository %s: %s replaces %s", new Object[] { connectorKind, extensionId, previous }), 
        null));
    }
  }
  
  public static AbstractTaskEditorExtension getTaskEditorExtension(TaskRepository taskRepository)
  {
    init();
    String extensionId = getTaskEditorExtensionId(taskRepository);
    if (extensionId != null)
    {
      RegisteredTaskEditorExtension taskEditorExtension = (RegisteredTaskEditorExtension)extensionsById.get(extensionId);
      return taskEditorExtension == null ? null : taskEditorExtension.getExtension();
    }
    return null;
  }
  
  public static String getTaskEditorExtensionId(TaskRepository taskRepository)
  {
    init();
    String id = taskRepository.getProperty("editorExtension");
    if (id == null) {
      id = getDefaultTaskEditorExtensionId(taskRepository);
    }
    return id;
  }
  
  public static void setTaskEditorExtensionId(TaskRepository repository, String editorExtensionId)
  {
    repository.setProperty("editorExtension", editorExtensionId);
  }
  
  public static String getDefaultTaskEditorExtensionId(TaskRepository taskRepository)
  {
    return getDefaultTaskEditorExtensionId(taskRepository.getConnectorKind());
  }
  
  public static String getDefaultTaskEditorExtensionId(String connectorKind)
  {
    init();
    return (String)associationByConnectorKind.get(connectorKind);
  }
  
  public static AbstractTaskEditorExtension getDefaultTaskEditorExtension(TaskRepository taskRepository)
  {
    init();
    String extensionId = getDefaultTaskEditorExtensionId(taskRepository);
    if (extensionId != null)
    {
      RegisteredTaskEditorExtension taskEditorExtension = (RegisteredTaskEditorExtension)extensionsById.get(extensionId);
      return taskEditorExtension == null ? null : taskEditorExtension.getExtension();
    }
    return null;
  }
  
  private static void init()
  {
    if (!initialized)
    {
      initialized = true;
      TaskEditorExtensionReader.initExtensions();
    }
  }
  
  public static class RegisteredTaskEditorExtension
    implements Comparable<RegisteredTaskEditorExtension>, IPluginContribution
  {
    private final String id;
    private final String name;
    private final AbstractTaskEditorExtension extension;
    private String pluginId;
    
    private RegisteredTaskEditorExtension(AbstractTaskEditorExtension extension, String id, String name)
    {
      this.extension = extension;
      this.id = id;
      this.name = name;
    }
    
    public String getId()
    {
      return id;
    }
    
    public String getName()
    {
      return name;
    }
    
    public AbstractTaskEditorExtension getExtension()
    {
      return extension;
    }
    
    public int compareTo(RegisteredTaskEditorExtension o)
    {
      if (o == this) {
        return 0;
      }
      int i = name.compareTo(name);
      if (i == 0) {
        i = id.compareTo(id);
      }
      return i;
    }
    
    public String getLocalId()
    {
      return id;
    }
    
    public String getPluginId()
    {
      return pluginId;
    }
    
    public void setPluginId(String pluginId)
    {
      this.pluginId = pluginId;
    }
  }
}

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

import org.eclipse.core.runtime.jobs.IJobChangeEvent;
import org.eclipse.core.runtime.jobs.JobChangeAdapter;
import org.eclipse.mylyn.commons.workbench.WorkbenchUtil;
import org.eclipse.mylyn.internal.tasks.core.ITaskJobFactory;
import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
import org.eclipse.mylyn.internal.tasks.ui.views.UpdateRepositoryConfigurationAction;
import org.eclipse.mylyn.tasks.core.sync.TaskJob;
import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPage;
import org.eclipse.mylyn.tasks.ui.editors.TaskEditor;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.PlatformUI;

class AbstractTaskEditorAttributeSection$3
  extends UpdateRepositoryConfigurationAction
{
  AbstractTaskEditorAttributeSection$3(AbstractTaskEditorAttributeSection paramAbstractTaskEditorAttributeSection) {}
  
  public void run()
  {
    this$0.getTaskEditorPage().showEditorBusy(true);
    final TaskJob job = TasksUiInternal.getJobFactory().createUpdateRepositoryConfigurationJob(
      this$0.getTaskEditorPage().getConnector(), this$0.getTaskEditorPage().getTaskRepository(), 
      this$0.getTaskEditorPage().getTask());
    job.addJobChangeListener(new JobChangeAdapter()
    {
      public void done(IJobChangeEvent event)
      {
        PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable()
        {
          public void run()
          {
            this$0.getTaskEditorPage().showEditorBusy(false);
            if (val$job.getStatus() != null) {
              this$0.getTaskEditorPage().getTaskEditor().setStatus(
                Messages.TaskEditorAttributePart_Updating_of_repository_configuration_failed, 
                Messages.TaskEditorAttributePart_Update_Failed, val$job.getStatus());
            } else {
              this$0.getTaskEditorPage().refresh();
            }
          }
        });
      }
    });
    job.setUser(true);
    
    job.setProperty(WorkbenchUtil.SHOW_IN_TASKBAR_ICON_PROPERTY, Boolean.TRUE);
    job.setPriority(10);
    job.schedule();
  }
}

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

import java.util.List;
import java.util.Map;
import org.eclipse.mylyn.commons.ui.dialogs.IInPlaceDialogListener;
import org.eclipse.mylyn.commons.workbench.InPlaceCheckBoxTreeDialog;
import org.eclipse.mylyn.commons.workbench.WorkbenchUtil;
import org.eclipse.mylyn.tasks.core.data.TaskAttributeMapper;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;

class CheckboxMultiSelectAttributeEditor$1
  extends SelectionAdapter
{
  CheckboxMultiSelectAttributeEditor$1(CheckboxMultiSelectAttributeEditor paramCheckboxMultiSelectAttributeEditor) {}
  
  public void widgetSelected(SelectionEvent e)
  {
    final List<String> values = this$0.getValues();
    Map<String, String> validValues = CheckboxMultiSelectAttributeEditor.access$0(this$0).getOptions(this$0.getTaskAttribute());
    
    final InPlaceCheckBoxTreeDialog selectionDialog = new InPlaceCheckBoxTreeDialog(
      WorkbenchUtil.getShell(), CheckboxMultiSelectAttributeEditor.access$1(this$0), values, validValues, NLS.bind(
      Messages.CheckboxMultiSelectAttributeEditor_Select_X, this$0.getLabel()));
    
    selectionDialog.addEventListener(new IInPlaceDialogListener()
    {
      /* Error */
      public void buttonPressed(org.eclipse.mylyn.commons.ui.dialogs.InPlaceDialogEvent event)
      {
        // Byte code:
        //   0: aload_0
        //   1: getfield 68	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1$1:this$1	Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1;
        //   4: invokestatic 79	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1;)Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor;
        //   7: iconst_1
        //   8: invokestatic 78	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor:access$2	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor;Z)V
        //   11: aload_1
        //   12: invokevirtual 74	org/eclipse/mylyn/commons/ui/dialogs/InPlaceDialogEvent:getReturnCode	()I
        //   15: ifne +60 -> 75
        //   18: aload_0
        //   19: getfield 67	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1$1:val$selectionDialog	Lorg/eclipse/mylyn/commons/workbench/InPlaceCheckBoxTreeDialog;
        //   22: invokevirtual 75	org/eclipse/mylyn/commons/workbench/InPlaceCheckBoxTreeDialog:getSelectedValues	()Ljava/util/Set;
        //   25: astore_2
        //   26: new 30	java/util/HashSet
        //   29: dup
        //   30: aload_0
        //   31: getfield 66	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1$1:val$values	Ljava/util/List;
        //   34: invokespecial 73	java/util/HashSet:<init>	(Ljava/util/Collection;)V
        //   37: aload_2
        //   38: invokevirtual 72	java/util/HashSet:equals	(Ljava/lang/Object;)Z
        //   41: ifne +115 -> 156
        //   44: aload_0
        //   45: getfield 68	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1$1:this$1	Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1;
        //   48: invokestatic 79	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1;)Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor;
        //   51: new 29	java/util/ArrayList
        //   54: dup
        //   55: aload_2
        //   56: invokespecial 70	java/util/ArrayList:<init>	(Ljava/util/Collection;)V
        //   59: invokevirtual 77	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor:setValues	(Ljava/util/List;)V
        //   62: aload_0
        //   63: getfield 68	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1$1:this$1	Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1;
        //   66: invokestatic 79	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1;)Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor;
        //   69: invokevirtual 76	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor:refresh	()V
        //   72: goto +84 -> 156
        //   75: aload_1
        //   76: invokevirtual 74	org/eclipse/mylyn/commons/ui/dialogs/InPlaceDialogEvent:getReturnCode	()I
        //   79: sipush 1025
        //   82: if_icmpne +74 -> 156
        //   85: new 30	java/util/HashSet
        //   88: dup
        //   89: invokespecial 71	java/util/HashSet:<init>	()V
        //   92: astore_2
        //   93: new 30	java/util/HashSet
        //   96: dup
        //   97: aload_0
        //   98: getfield 66	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1$1:val$values	Ljava/util/List;
        //   101: invokespecial 73	java/util/HashSet:<init>	(Ljava/util/Collection;)V
        //   104: aload_2
        //   105: invokevirtual 72	java/util/HashSet:equals	(Ljava/lang/Object;)Z
        //   108: ifne +48 -> 156
        //   111: aload_0
        //   112: getfield 68	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1$1:this$1	Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1;
        //   115: invokestatic 79	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1;)Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor;
        //   118: new 29	java/util/ArrayList
        //   121: dup
        //   122: aload_2
        //   123: invokespecial 70	java/util/ArrayList:<init>	(Ljava/util/Collection;)V
        //   126: invokevirtual 77	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor:setValues	(Ljava/util/List;)V
        //   129: aload_0
        //   130: getfield 68	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1$1:this$1	Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1;
        //   133: invokestatic 79	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1;)Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor;
        //   136: invokevirtual 76	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor:refresh	()V
        //   139: goto +17 -> 156
        //   142: astore_3
        //   143: aload_0
        //   144: getfield 68	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1$1:this$1	Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1;
        //   147: invokestatic 79	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1;)Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor;
        //   150: iconst_0
        //   151: invokestatic 78	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor:access$2	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor;Z)V
        //   154: aload_3
        //   155: athrow
        //   156: aload_0
        //   157: getfield 68	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1$1:this$1	Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1;
        //   160: invokestatic 79	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor$1;)Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor;
        //   163: iconst_0
        //   164: invokestatic 78	org/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor:access$2	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/CheckboxMultiSelectAttributeEditor;Z)V
        //   167: return
        // Line number table:
        //   Java source line #113	-> byte code offset #0
        //   Java source line #115	-> byte code offset #11
        //   Java source line #116	-> byte code offset #18
        //   Java source line #117	-> byte code offset #26
        //   Java source line #118	-> byte code offset #44
        //   Java source line #119	-> byte code offset #62
        //   Java source line #121	-> byte code offset #75
        //   Java source line #122	-> byte code offset #85
        //   Java source line #123	-> byte code offset #93
        //   Java source line #124	-> byte code offset #111
        //   Java source line #125	-> byte code offset #129
        //   Java source line #128	-> byte code offset #142
        //   Java source line #129	-> byte code offset #143
        //   Java source line #130	-> byte code offset #154
        //   Java source line #129	-> byte code offset #156
        //   Java source line #131	-> byte code offset #167
        // Local variable table:
        //   start	length	slot	name	signature
        //   0	168	0	this	1
        //   0	168	1	event	org.eclipse.mylyn.commons.ui.dialogs.InPlaceDialogEvent
        //   25	31	2	newValues	java.util.Set<String>
        //   92	31	2	newValues	java.util.Set<String>
        //   142	13	3	localObject	Object
        // Exception table:
        //   from	to	target	type
        //   11	142	142	finally
      }
    });
    selectionDialog.open();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.CheckboxMultiSelectAttributeEditor.1
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
packa
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