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

/
package org.eclipse.mylyn.internal.tasks.ui.editors;

import org.eclipse.jface.action.Action;
import org.eclipse.mylyn.commons.ui.CommonImages;
import org.eclipse.mylyn.commons.workbench.forms.CommonFormUtil;
import org.eclipse.swt.widgets.Control;

class TaskEditorPlanningPart$NotesAction
  extends Action
{
  public TaskEditorPlanningPart$NotesAction(TaskEditorPlanningPart paramTaskEditorPlanningPart)
  {
    setImageDescriptor(CommonImages.NOTES_SMALL);
    setToolTipText(Messages.TaskEditorPlanningPart_Add_Private_Notes_Tooltip);
  }
  
  public void run()
  {
    CommonFormUtil.setExpanded(TaskEditorPlanningPart.access$0(this$0).getSection(), true);
    if ((TaskEditorPlanningPart.access$0(this$0).getNoteEditor() != null) && (TaskEditorPlanningPart.access$0(this$0).getNoteEditor().getControl() != null)) {
      TaskEditorPlanningPart.access$0(this$0).getNoteEditor().getControl().setFocus();
    } else {
      TaskEditorPlanningPart.access$0(this$0).getControl().setFocus();
    }
  }
}

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

import java.io.File;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IPath;
import org.eclipse.jface.util.LocalSelectionTransfer;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.mylyn.internal.tasks.core.data.FileTaskAttachmentSource;
import org.eclipse.mylyn.internal.tasks.core.data.TextTaskAttachmentSource;
import org.eclipse.mylyn.internal.tasks.ui.util.TaskDropHandler;
import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
import org.eclipse.mylyn.internal.tasks.ui.wizards.NewAttachmentWizardDialog;
import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.mylyn.tasks.ui.TaskDropListener.Operation;
import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPage;
import org.eclipse.swt.dnd.DropTargetEvent;
import org.eclipse.swt.dnd.DropTargetListener;
import org.eclipse.swt.dnd.FileTransfer;
import org.eclipse.swt.dnd.TextTransfer;
import org.eclipse.swt.dnd.TransferData;

public class TaskAttachmentDropListener
  implements DropTargetListener
{
  private final AbstractTaskEditorPage page;
  
  public TaskAttachmentDropListener(AbstractTaskEditorPage page)
  {
    this.page = page;
  }
  
  public void dragEnter(DropTargetEvent event)
  {
    if (detail == 16) {
      if ((operations & 0x1) != 0) {
        detail = 1;
      } else {
        detail = 0;
      }
    }
    TransferData[] arrayOfTransferData;
    int j = (arrayOfTransferData = dataTypes).length;
    for (int i = 0; i < j; i++)
    {
      TransferData dataType = arrayOfTransferData[i];
      if ((LocalSelectionTransfer.getTransfer().isSupportedType(dataType)) || 
        (FileTransfer.getInstance().isSupportedType(dataType)))
      {
        currentDataType = dataType;
        if (detail == 1) {
          break;
        }
        detail = 0;
        
        break;
      }
    }
  }
  
  public void dragOver(DropTargetEvent event)
  {
    feedback = 9;
  }
  
  public void dragOperationChanged(DropTargetEvent event)
  {
    if ((detail == 16) || ((operations & 0x1) != 0)) {
      detail = 1;
    } else {
      detail = 0;
    }
    if ((FileTransfer.getInstance().isSupportedType(currentDataType)) && 
      (detail != 1)) {
      detail = 0;
    }
  }
  
  public void dragLeave(DropTargetEvent event) {}
  
  public void dropAccept(DropTargetEvent event) {}
  
  public void drop(DropTargetEvent event)
  {
    if (LocalSelectionTransfer.getTransfer().isSupportedType(currentDataType))
    {
      TasksUiInternal.getTaskDropHandler().loadTaskDropListeners();
      ISelection selection = LocalSelectionTransfer.getTransfer().getSelection();
      List<ITask> tasksToMove = TasksUiInternal.getTasksFromSelection(selection);
      if (!tasksToMove.isEmpty()) {
        TasksUiInternal.getTaskDropHandler().fireTaskDropped(tasksToMove, page.getTask(), 
          TaskDropListener.Operation.DROP_ON_TASK_EDITOR);
      } else {
        attachFirstFile(getFilesFromSelection(selection));
      }
    }
    if (TextTransfer.getInstance().isSupportedType(currentDataType))
    {
      String text = (String)data;
      EditorUtil.openNewAttachmentWizard(page, null, new TextTaskAttachmentSource(text));
    }
    if (FileTransfer.getInstance().isSupportedType(currentDataType))
    {
      String[] files = (String[])data;
      attachFirstFile(files);
    }
  }
  
  protected void attachFirstFile(String[] files)
  {
    if ((files != null) && (files.length > 0))
    {
      File file = new File(files[0]);
      NewAttachmentWizardDialog dialog = EditorUtil.openNewAttachmentWizard(page, null, 
        new FileTaskAttachmentSource(file));
      if (files.length > 1) {
        dialog.setMessage(
          Messages.TaskAttachmentDropListener_Note_that_only_the_first_file_dragged_will_be_attached, 
          2);
      }
    }
  }
  
  public static String[] getFilesFromSelection(ISelection selection)
  {
    List<String> files = new ArrayList();
    if ((selection instanceof IStructuredSelection)) {
      for (Object element : ((IStructuredSelection)selection).toList())
      {
        IResource resource = null;
        if ((element instanceof IResource))
        {
          resource = (IResource)element;
        }
        else if ((element instanceof IAdaptable))
        {
          IAdaptable adaptable = (IAdaptable)element;
          resource = (IResource)adaptable.getAdapter(IResource.class);
        }
        if ((resource != null) && (resource.getRawLocation() != null)) {
          files.add(resource.getRawLocation().toOSString());
        }
      }
    }
    return (String[])files.toArray(new String[files.size()]);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.TaskAttachmentDropListener
 * 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.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.forms.IManagedForm;
import org.eclipse.ui.forms.widgets.ScrolledForm;

class AbstractTaskEditorAttributeSection$2
  implements Listener
{
  AbstractTaskEditorAttributeSection$2(AbstractTaskEditorAttributeSection paramAbstractTaskEditorAttributeSection) {}
  
  public void handleEvent(Event event)
  {
    Control focus = display.getFocusControl();
    if (((focus instanceof Text)) && (!((Text)focus).getEditable())) {
      this$0.getManagedForm().getForm().setFocus();
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.AbstractTaskEditorAttributeSection.2
 * 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.ControlContribution;
import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;

public abstract class ToolBarButtonContribution
  extends ControlContribution
{
  public int marginLeft = 0;
  public int marginRight = 0;
  
  protected ToolBarButtonContribution(String id)
  {
    super(id);
  }
  
  protected abstract Control createButton(Composite paramComposite);
  
  protected Control createControl(Composite parent)
  {
    Composite composite = new Composite(parent, 0);
    composite.setBackground(null);
    GridLayout layout = new GridLayout();
    marginWidth = 0;
    marginHeight = 0;
    if ("carbon".equals(SWT.getPlatform())) {
      marginTop = -3;
    }
    marginLeft = marginLeft;
    marginRight = marginRight;
    composite.setLayout(layout);
    
    Control button = createButton(composite);
    int heigtHint = -1;
    if ("win32".equals(SWT.getPlatform())) {
      heigtHint = 22;
    } else if ("carbon".equals(SWT.getPlatform())) {
      heigtHint = 32;
    }
    GridDataFactory.fillDefaults().align(1, 16777216).hint(-1, heigtHint).applyTo(button);
    return composite;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.ToolBarButtonContribution
 * 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.ISafeRunnable;
import org.eclipse.jface.text.hyperlink.IHyperlink;
import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.ui.AbstractRepositoryConnectorUi;

class TaskHyperlinkDetector$1
  implements ISafeRunnable
{
  TaskHyperlinkDetector$1(TaskHyperlinkDetector paramTaskHyperlinkDetector, IHyperlink[][] paramArrayOfIHyperlink, AbstractRepositoryConnectorUi paramAbstractRepositoryConnectorUi, TaskRepository paramTaskRepository, String paramString, int paramInt1, int paramInt2) {}
  
  public void handleException(Throwable exception) {}
  
  public void run()
    throws Exception
  {
    ITask task = (ITask)TaskHyperlinkDetector.access$0(this$0, ITask.class);
    val$links[0] = val$connectorUi.findHyperlinks(val$repository, task, val$content, val$index, val$contentOffset);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.TaskHyperlinkDetector.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;

class AttributePart$5
  extends SelectionAdapter
{
  AttributePart$5(AttributePart paramAttributePart) {}
  
  public void widgetSelected(SelectionEvent event)
  {
    if (AttributePart.access$3(this$0).getSelectionIndex() != -1)
    {
      this$0.category = ((AbstractTaskCategory)AttributePart.access$4(this$0).get(AttributePart.access$3(this$0).getSelectionIndex()));
      AttributePart.access$5(this$0);
      this$0.markDirty(AttributePart.access$3(this$0));
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.AttributePart.5
 * 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.internal.tasks.core.AbstractTask;
import org.eclipse.mylyn.tasks.ui.TaskElementLabelProvider;

class RepositoryCompletionProcessor$1
  implements Comparator<AbstractTask>
{
  RepositoryCompletionProcessor$1(RepositoryCompletionProcessor paramRepositoryCompletionProcessor) {}
  
  public int compare(AbstractTask o1, AbstractTask o2)
  {
    return RepositoryCompletionProcessor.access$1(this$0).getText(o1).compareTo(RepositoryCompletionProcessor.access$1(this$0).getText(o2));
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.RepositoryCompletionProcessor.1
 * 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.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$1
  extends JobChangeAdapter
{
  AbstractTaskEditorAttributeSection$3$1(AbstractTaskEditorAttributeSection.3 param3, TaskJob paramTaskJob) {}
  
  public void done(IJobChangeEvent event)
  {
    PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable()
    {
      public void run()
      {
        AbstractTaskEditorAttributeSection.3.access$0(this$1).getTaskEditorPage().showEditorBusy(false);
        if (val$job.getStatus() != null) {
          AbstractTaskEditorAttributeSection.3.access$0(this$1).getTaskEditorPage().getTaskEditor().setStatus(
            Messages.TaskEditorAttributePart_Updating_of_repository_configuration_failed, 
            Messages.TaskEditorAttributePart_Update_Failed, val$job.getStatus());
        } else {
          AbstractTaskEditorAttributeSection.3.access$0(this$1).getTaskEditorPage().refresh();
        }
      }
    });
  }
}

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

import java.util.Collections;
import java.util.List;
import java.util.Map;
import org.eclipse.jface.layout.GridDataFactory;
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.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.mylyn.tasks.ui.editors.LayoutHint;
import org.eclipse.mylyn.tasks.ui.editors.LayoutHint.ColumnSpan;
import org.eclipse.mylyn.tasks.ui.editors.LayoutHint.RowSpan;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.SharedScrolledComposite;

public class CheckboxMultiSelectAttributeEditor
  extends AbstractAttributeEditor
{
  private Text valueText;
  private Composite parent;
  private Button button;
  private boolean suppressRefresh;
  
  public CheckboxMultiSelectAttributeEditor(TaskDataModel manager, TaskAttribute taskAttribute)
  {
    super(manager, taskAttribute);
    setLayoutHint(new LayoutHint(LayoutHint.RowSpan.SINGLE, LayoutHint.ColumnSpan.MULTIPLE));
  }
  
  public void createControl(Composite parent, FormToolkit toolkit)
  {
    if (isReadOnly())
    {
      valueText = new Text(parent, 8388680);
      valueText.setFont(EditorUtil.TEXT_FONT);
      toolkit.adapt(valueText, false, false);
      valueText.setData("FormWidgetFactory.drawBorder", Boolean.FALSE);
      valueText.setToolTipText(getDescription());
      refresh();
      setControl(valueText);
    }
    else
    {
      this.parent = parent;
      
      Composite composite = toolkit.createComposite(parent);
      composite.setData("FormWidgetFactory.drawBorder", "treeBorder");
      GridLayout layout = new GridLayout(2, false);
      marginWidth = 0;
      marginBottom = 0;
      marginLeft = 0;
      marginRight = 0;
      marginTop = 0;
      marginHeight = 0;
      composite.setLayout(layout);
      
      valueText = toolkit.createText(composite, "", 8388672);
      GridDataFactory.fillDefaults().align(4, 16777216).grab(true, false).applyTo(valueText);
      valueText.setFont(EditorUtil.TEXT_FONT);
      valueText.setEditable(false);
      valueText.setToolTipText(getDescription());
      
      button = toolkit.createButton(composite, "", 1028);
      GridDataFactory.fillDefaults().align(16777216, 128).applyTo(button);
      button.addSelectionListener(new SelectionAdapter()
      {
        public void widgetSelected(SelectionEvent e)
        {
          final List<String> values = getValues();
          Map<String, String> validValues = getAttributeMapper().getOptions(getTaskAttribute());
          
          final InPlaceCheckBoxTreeDialog selectionDialog = new InPlaceCheckBoxTreeDialog(
            WorkbenchUtil.getShell(), button, values, validValues, NLS.bind(
            Messages.CheckboxMultiSelectAttributeEditor_Select_X, 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();
        }
      });
      toolkit.adapt(valueText, false, false);
      refresh();
      setControl(composite);
    }
  }
  
  private void reflow()
  {
    Composite c = parent;
    while (c != null)
    {
      c.setRedraw(false);
      c = c.getParent();
      if (((c instanceof SharedScrolledComposite)) || ((c instanceof Shell))) {
        break;
      }
    }
    c = parent;
    while (c != null)
    {
      c.layout(true);
      c = c.getParent();
      if ((c instanceof SharedScrolledComposite))
      {
        ((SharedScrolledComposite)c).reflow(true);
        break;
      }
    }
    c = parent;
    while (c != null)
    {
      c.setRedraw(true);
      c = c.getParent();
      if (((c instanceof SharedScrolledComposite)) || ((c instanceof Shell))) {
        break;
      }
    }
  }
  
  public List<String> getValues()
  {
    return getAttributeMapper().getValues(getTaskAttribute());
  }
  
  public List<String> getValuesLabels()
  {
    return getAttributeMapper().getValueLabels(getTaskAttribute());
  }
  
  public void setValues(List<String> newValues)
  {
    getAttributeMapper().setValues(getTaskAttribute(), newValues);
    attributeChanged();
  }
  
  protected void decorateIncoming(Color color)
  {
    super.decorateIncoming(color);
    if ((valueText != null) && (!valueText.isDisposed())) {
      valueText.setBackground(color);
    }
    if ((button != null) && (!button.isDisposed())) {
      button.setBackground(color);
    }
  }
  
  public void refresh()
  {
    if ((valueText == null) || (valueText.isDisposed())) {
      return;
    }
    StringBuilder valueString = new StringBuilder();
    List<String> values = getValuesLabels();
    Collections.sort(values);
    for (int i = 0; i < values.size(); i++)
    {
      valueString.append((String)values.get(i));
      if (i != values.size() - 1) {
        valueString.append(", ");
      }
    }
    valueText.setText(valueString.toString());
    if ((valueText != null) && (parent != null) && (parent.getParent() != null) && (parent.getParent().getParent() != null))
    {
      Point size = valueText.getSize();
      
      Point newSize = valueText.computeSize(x - 1, -1);
      if (y != y) {
        reflow();
      }
    }
  }
  
  public boolean shouldAutoRefresh()
  {
    return !suppressRefresh;
  }
}

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

import org.apache.commons.lang.StringUtils;
import org.eclipse.jface.dialogs.IInputValidator;
import org.eclipse.swt.widgets.Text;

class DoubleAttributeEditor$1
  implements IInputValidator
{
  DoubleAttributeEditor$1(DoubleAttributeEditor paramDoubleAttributeEditor) {}
  
  public String isValid(String newText)
  {
    if (StringUtils.isNotBlank(newText)) {
      try
      {
        Double.parseDouble(this$0.getText().getText());
      }
      catch (NumberFormatException localNumberFormatException)
      {
        return Messages.DoubleAttributeEditor_this_field_requires_double_value;
      }
    }
    return null;
  }
}

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

class TaskEditorRichTextPart$2
  implements RichTextEditor.StateChangedListener
{
  TaskEditorRichTextPart$2(TaskEditorRichTextPart paramTaskEditorRichTextPart) {}
  
  /* Error */
  public void stateChanged(RichTextEditor.StateChangedEvent event)
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 52	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart$2:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart;
    //   4: iconst_1
    //   5: invokestatic 55	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart:access$2	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart;Z)V
    //   8: aload_0
    //   9: getfield 52	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart$2:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart;
    //   12: invokestatic 56	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart:access$3	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart;)Lorg/eclipse/jface/action/Action;
    //   15: aload_1
    //   16: getfield 51	org/eclipse/mylyn/internal/tasks/ui/editors/RichTextEditor$StateChangedEvent:state	Lorg/eclipse/mylyn/internal/tasks/ui/editors/RichTextEditor$State;
    //   19: getstatic 50	org/eclipse/mylyn/internal/tasks/ui/editors/RichTextEditor$State:EDITOR	Lorg/eclipse/mylyn/internal/tasks/ui/editors/RichTextEditor$State;
    //   22: if_acmpeq +17 -> 39
    //   25: aload_1
    //   26: getfield 51	org/eclipse/mylyn/internal/tasks/ui/editors/RichTextEditor$StateChangedEvent:state	Lorg/eclipse/mylyn/internal/tasks/ui/editors/RichTextEditor$State;
    //   29: getstatic 49	org/eclipse/mylyn/internal/tasks/ui/editors/RichTextEditor$State:DEFAULT	Lorg/eclipse/mylyn/internal/tasks/ui/editors/RichTextEditor$State;
    //   32: if_acmpeq +7 -> 39
    //   35: iconst_0
    //   36: goto +4 -> 40
    //   39: iconst_1
    //   40: invokevirtual 54	org/eclipse/jface/action/Action:setChecked	(Z)V
    //   43: goto +14 -> 57
    //   46: astore_2
    //   47: aload_0
    //   48: getfield 52	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart$2:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart;
    //   51: iconst_0
    //   52: invokestatic 55	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart:access$2	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart;Z)V
    //   55: aload_2
    //   56: athrow
    //   57: aload_0
    //   58: getfield 52	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart$2:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart;
    //   61: iconst_0
    //   62: invokestatic 55	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart:access$2	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart;Z)V
    //   65: return
    // Line number table:
    //   Java source line #187	-> byte code offset #0
    //   Java source line #188	-> byte code offset #8
    //   Java source line #189	-> byte code offset #46
    //   Java source line #190	-> byte code offset #47
    //   Java source line #191	-> byte code offset #55
    //   Java source line #190	-> byte code offset #57
    //   Java source line #192	-> byte code offset #65
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	66	0	this	2
    //   0	66	1	event	RichTextEditor.StateChangedEvent
    //   46	10	2	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   0	46	46	finally
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.TaskEditorRichTextPart.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.internal.tasks.core.AbstractTask;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.widgets.Spinner;

class PlanningPart$10
  implements ModifyListener
{
  PlanningPart$10(PlanningPart paramPlanningPart) {}
  
  public void modifyText(ModifyEvent e)
  {
    if (this$0.getTask().getEstimatedTimeHours() != PlanningPart.access$9(this$0).getSelection()) {
      this$0.markDirty();
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.PlanningPart.10
 * 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.IMenuListener;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiMenus;

class TaskEditorAttachmentPart$2
  implements IMenuListener
{
  TaskEditorAttachmentPart$2(TaskEditorAttachmentPart paramTaskEditorAttachmentPart) {}
  
  public void menuAboutToShow(IMenuManager manager)
  {
    TasksUiMenus.fillTaskAttachmentMenu(manager);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.TaskEditorAttachmentPart.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.events.FocusAdapter;
import org.eclipse.swt.events.FocusEvent;
import org.eclipse.swt.widgets.Control;

class FocusTracker$1
  extends FocusAdapter
{
  FocusTracker$1(FocusTracker paramFocusTracker) {}
  
  public void focusGained(FocusEvent e)
  {
    FocusTracker.access$0(this$0, (Control)widget);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.FocusTracker.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.action.IMenuCreator;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.mylyn.commons.ui.SelectionProviderAdapter;
import org.eclipse.mylyn.tasks.core.ITaskComment;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Menu;

class TaskEditorCommentPart$ReplyToCommentAction
  extends AbstractReplyToCommentAction
  implements IMenuCreator
{
  private final ITaskComment taskComment;
  private final TaskEditorCommentPart.CommentViewer commentViewer;
  
  public TaskEditorCommentPart$ReplyToCommentAction(TaskEditorCommentPart paramTaskEditorCommentPart, TaskEditorCommentPart.CommentViewer commentViewer, ITaskComment taskComment)
  {
    super(paramTaskEditorCommentPart.getTaskEditorPage(), taskComment);
    this.commentViewer = commentViewer;
    this.taskComment = taskComment;
    setMenuCreator(this);
  }
  
  protected String getReplyText()
  {
    return taskComment.getText();
  }
  
  public Menu getMenu(Control parent)
  {
    TaskEditorCommentPart.access$4(this$0, commentViewer);
    TaskEditorCommentPart.access$5(this$0).setSelection(new StructuredSelection(taskComment));
    return TaskEditorCommentPart.access$6(this$0);
  }
  
  public void dispose() {}
  
  public Menu getMenu(Menu parent)
  {
    TaskEditorCommentPart.access$5(this$0).setSelection(new StructuredSelection(taskComment));
    return TaskEditorCommentPart.access$6(this$0);
  }
}

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

import org.eclipse.swt.custom.VerifyKeyListener;
import org.eclipse.swt.events.VerifyEvent;

class TraverseOnTabKeyListener
  implements VerifyKeyListener
{
  public void verifyKey(VerifyEvent event)
  {
    if (keyCode == 9) {
      doit = false;
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.TraverseOnTabKeyListener
 * 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.jface.text.source.SourceViewer;
import org.eclipse.mylyn.commons.workbench.forms.CommonFormUtil;
import org.eclipse.swt.custom.StyledText;

class RichTextEditor$7
  implements ITextListener
{
  RichTextEditor$7(RichTextEditor paramRichTextEditor, SourceViewer paramSourceViewer) {}
  
  public void textChanged(TextEvent event)
  {
    String value = val$viewer.getTextWidget().getText();
    if (!RichTextEditor.access$6(this$0).equals(value))
    {
      RichTextEditor.access$7(this$0, value); RichTextEditor 
        tmp37_34 = this$0;RichTextEditor.access$9(tmp37_34, RichTextEditor.access$8(tmp37_34) + 1);
      val$viewer.setData("org.eclipse.mylyn.tasks.ui.textVersion", Integer.valueOf(RichTextEditor.access$8(this$0)));
      this$0.valueChanged(value);
      CommonFormUtil.ensureVisible(val$viewer.getTextWidget());
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.RichTextEditor.7
 * 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.ui.editors.AbstractTaskEditorPage;
import org.eclipse.ui.forms.events.ExpansionAdapter;
import org.eclipse.ui.forms.events.ExpansionEvent;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.Section;

class AbstractTaskEditorSection$1
  extends ExpansionAdapter
{
  AbstractTaskEditorSection$1(AbstractTaskEditorSection paramAbstractTaskEditorSection, FormToolkit paramFormToolkit) {}
  
  public void expansionStateChanged(ExpansionEvent event)
  {
    if (AbstractTaskEditorSection.access$0(this$0).getClient() == null)
    {
      AbstractTaskEditorSection.access$1(this$0, val$toolkit, AbstractTaskEditorSection.access$0(this$0));
      this$0.getTaskEditorPage().reflow();
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.AbstractTaskEditorSection.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.viewers.LabelProvider;
import org.eclipse.mylyn.commons.ui.CommonImages;
import org.eclipse.mylyn.internal.tasks.ui.util.AttachmentUtil;
import org.eclipse.mylyn.tasks.core.IRepositoryManager;
import org.eclipse.mylyn.tasks.core.IRepositoryPerson;
import org.eclipse.mylyn.tasks.core.ITaskAttachment;
import org.eclipse.mylyn.tasks.core.ITaskComment;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
import org.eclipse.mylyn.tasks.core.data.TaskAttributeMapper;
import org.ec
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