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

rent, FormToolkit toolkit)
  {
    super.createControl(parent, toolkit);
    AttributeEditorToolkit.createValidator(this, getText(), getAttributeTypeValidator());
  }
  
  private IInputValidator getAttributeTypeValidator()
  {
    new IInputValidator()
    {
      public String isValid(String newText)
      {
        if (StringUtils.isNotBlank(newText)) {
          try
          {
            Integer.parseInt(getText().getText());
          }
          catch (NumberFormatException localNumberFormatException)
          {
            return Messages.IntegerAttributeEditor_this_field_requires_integer_value;
          }
        }
        return null;
      }
    };
  }
}

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

public enum RichTextEditor$State
{
  DEFAULT,  BROWSER,  EDITOR,  PREVIEW;
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.RichTextEditor.State
 * 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.Event;
import org.eclipse.swt.widgets.Listener;

class RichTextEditor$8
  implements Listener
{
  RichTextEditor$8(RichTextEditor paramRichTextEditor) {}
  
  public void handleEvent(Event event)
  {
    switch (detail)
    {
    case 8: 
    case 16: 
      doit = true;
    }
  }
}

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

class AbstractTaskEditorSection$2
  extends ExpansionAdapter
{
  AbstractTaskEditorSection$2(AbstractTaskEditorSection paramAbstractTaskEditorSection, Label paramLabel) {}
  
  public void expansionStateChanging(ExpansionEvent e)
  {
    val$label.setVisible(!e.getState());
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.AbstractTaskEditorSection.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.text.source.SourceViewer;
import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.widgets.Display;

class RichTextEditor$10
  extends MouseAdapter
{
  private boolean toggled;
  
  RichTextEditor$10(RichTextEditor paramRichTextEditor) {}
  
  public void mouseUp(MouseEvent e)
  {
    if ((!toggled) && (count == 1)) {
      Display.getDefault().timerExec(Display.getDefault().getDoubleClickTime(), new Runnable()
      {
        public void run()
        {
          if ((RichTextEditor.access$10(this$0).getTextWidget() == null) || (RichTextEditor.access$10(this$0).getTextWidget().isDisposed())) {
            return;
          }
          if (RichTextEditor.access$10(this$0).getTextWidget().getSelectionCount() == 0)
          {
            int offset = RichTextEditor.access$10(this$0).getTextWidget().getCaretOffset();
            this$0.showEditor();
            RichTextEditor.access$11(this$0).getTextWidget().setCaretOffset(offset);
            
            toggled = true;
          }
        }
      });
    }
  }
}

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

public class TaskEditorOutlineModel
{
  private final TaskEditorOutlineNode root;
  
  public TaskEditorOutlineModel(TaskEditorOutlineNode root)
  {
    this.root = root;
  }
  
  public TaskEditorOutlineNode getRoot()
  {
    return root;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.TaskEditorOutlineModel
 * 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.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.swt.events.ModifyListener;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.forms.widgets.FormToolkit;

public class TextAttributeEditor
  extends AbstractAttributeEditor
{
  private Text text;
  private boolean suppressRefresh;
  
  public TextAttributeEditor(TaskDataModel manager, TaskAttribute taskAttribute)
  {
    super(manager, taskAttribute);
    setLayoutHint(new LayoutHint(LayoutHint.RowSpan.SINGLE, LayoutHint.ColumnSpan.SINGLE));
  }
  
  protected Text getText()
  {
    return text;
  }
  
  public void createControl(Composite parent, FormToolkit toolkit)
  {
    if (isReadOnly())
    {
      text = new Text(parent, 8388616);
      text.setFont(EditorUtil.TEXT_FONT);
      text.setData("FormWidgetFactory.drawBorder", Boolean.FALSE);
      text.setToolTipText(getDescription());
      text.setText(getValue());
    }
    else
    {
      text = toolkit.createText(parent, getValue(), 8388608);
      text.setFont(EditorUtil.TEXT_FONT);
      text.setData("FormWidgetFactory.drawBorder", "treeBorder");
      text.setToolTipText(getDescription());
      text.addModifyListener(new ModifyListener()
      {
        /* Error */
        public void modifyText(org.eclipse.swt.events.ModifyEvent e)
        {
          // Byte code:
          //   0: aload_0
          //   1: getfield 44	org/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor;
          //   4: iconst_1
          //   5: invokestatic 48	org/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor;Z)V
          //   8: aload_0
          //   9: getfield 44	org/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor;
          //   12: aload_0
          //   13: getfield 44	org/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor;
          //   16: invokestatic 49	org/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor:access$1	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor;)Lorg/eclipse/swt/widgets/Text;
          //   19: invokevirtual 50	org/eclipse/swt/widgets/Text:getText	()Ljava/lang/String;
          //   22: invokevirtual 47	org/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor:setValue	(Ljava/lang/String;)V
          //   25: goto +14 -> 39
          //   28: astore_2
          //   29: aload_0
          //   30: getfield 44	org/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor;
          //   33: iconst_0
          //   34: invokestatic 48	org/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor;Z)V
          //   37: aload_2
          //   38: athrow
          //   39: aload_0
          //   40: getfield 44	org/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor;
          //   43: iconst_0
          //   44: invokestatic 48	org/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor;Z)V
          //   47: aload_0
          //   48: getfield 44	org/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor;
          //   51: invokestatic 49	org/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor:access$1	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/TextAttributeEditor;)Lorg/eclipse/swt/widgets/Text;
          //   54: invokestatic 46	org/eclipse/mylyn/commons/workbench/forms/CommonFormUtil:ensureVisible	(Lorg/eclipse/swt/widgets/Control;)V
          //   57: return
          // Line number table:
          //   Java source line #62	-> byte code offset #0
          //   Java source line #63	-> byte code offset #8
          //   Java source line #64	-> byte code offset #28
          //   Java source line #65	-> byte code offset #29
          //   Java source line #66	-> byte code offset #37
          //   Java source line #65	-> byte code offset #39
          //   Java source line #67	-> byte code offset #47
          //   Java source line #68	-> byte code offset #57
          // Local variable table:
          //   start	length	slot	name	signature
          //   0	58	0	this	1
          //   0	58	1	e	org.eclipse.swt.events.ModifyEvent
          //   28	10	2	localObject	Object
          // Exception table:
          //   from	to	target	type
          //   0	28	28	finally
        }
      });
    }
    toolkit.adapt(text, false, false);
    setControl(text);
  }
  
  public String getValue()
  {
    return getAttributeMapper().getValue(getTaskAttribute());
  }
  
  public void setValue(String text)
  {
    getAttributeMapper().setValue(getTaskAttribute(), text);
    attributeChanged();
  }
  
  public void refresh()
  {
    if ((text != null) && (!text.isDisposed())) {
      text.setText(getValue());
    }
  }
  
  public boolean shouldAutoRefresh()
  {
    return !suppressRefresh;
  }
}

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

class PriorityAttributeEditor$1
  extends PriorityEditor
{
  PriorityAttributeEditor$1(PriorityAttributeEditor paramPriorityAttributeEditor) {}
  
  protected void valueChanged(String value)
  {
    this$0.setValue(value);
  }
}

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

class BooleanAttributeEditor$1
  extends SelectionAdapter
{
  BooleanAttributeEditor$1(BooleanAttributeEditor paramBooleanAttributeEditor) {}
  
  /* Error */
  public void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 40	org/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor;
    //   4: invokestatic 42	org/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor:access$0	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor;)Z
    //   7: ifne +50 -> 57
    //   10: aload_0
    //   11: getfield 40	org/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor;
    //   14: iconst_1
    //   15: invokestatic 43	org/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor:access$1	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor;Z)V
    //   18: aload_0
    //   19: getfield 40	org/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor;
    //   22: aload_0
    //   23: getfield 40	org/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor;
    //   26: invokestatic 44	org/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor:access$2	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor;)Lorg/eclipse/swt/widgets/Button;
    //   29: invokevirtual 46	org/eclipse/swt/widgets/Button:getSelection	()Z
    //   32: invokevirtual 41	org/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor:setValue	(Z)V
    //   35: goto +14 -> 49
    //   38: astore_2
    //   39: aload_0
    //   40: getfield 40	org/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor;
    //   43: iconst_0
    //   44: invokestatic 43	org/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor:access$1	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor;Z)V
    //   47: aload_2
    //   48: athrow
    //   49: aload_0
    //   50: getfield 40	org/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor;
    //   53: iconst_0
    //   54: invokestatic 43	org/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor:access$1	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor;Z)V
    //   57: return
    // Line number table:
    //   Java source line #46	-> byte code offset #0
    //   Java source line #48	-> byte code offset #10
    //   Java source line #49	-> byte code offset #18
    //   Java source line #50	-> byte code offset #38
    //   Java source line #51	-> byte code offset #39
    //   Java source line #52	-> byte code offset #47
    //   Java source line #51	-> byte code offset #49
    //   Java source line #54	-> byte code offset #57
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	58	0	this	1
    //   0	58	1	e	org.eclipse.swt.events.SelectionEvent
    //   38	10	2	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   10	38	38	finally
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.BooleanAttributeEditor.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.util.IPropertyChangeListener;
import org.eclipse.jface.util.PropertyChangeEvent;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.PlatformUI;

class PlanningPart$4
  implements IPropertyChangeListener
{
  PlanningPart$4(PlanningPart paramPlanningPart) {}
  
  public void propertyChange(PropertyChangeEvent event)
  {
    if (event.getProperty().equals("org.eclipse.mylyn.monitor.activity.tracking.enabled")) {
      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.4
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.internal.tasks.ui.editors;

import org.eclipse.core.resources.IStorage;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.PlatformObject;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.mylyn.tasks.core.ITaskAttachment;
import org.eclipse.ui.IPersistableElement;
import org.eclipse.ui.IStorageEditorInput;

@Deprecated
public class TaskAttachmentEditorInput
  extends PlatformObject
  implements IStorageEditorInput
{
  private final ITaskAttachment attachment;
  
  public TaskAttachmentEditorInput(ITaskAttachment attachment)
  {
    this.attachment = attachment;
  }
  
  public boolean exists()
  {
    return true;
  }
  
  public ImageDescriptor getImageDescriptor()
  {
    return null;
  }
  
  public String getName()
  {
    return attachment.getFileName();
  }
  
  public IPersistableElement getPersistable()
  {
    return null;
  }
  
  public String getToolTipText()
  {
    if (attachment.getUrl() != null) {
      return attachment.getUrl();
    }
    return getName();
  }
  
  public IStorage getStorage()
    throws CoreException
  {
    return TaskAttachmentStorage.create(attachment);
  }
}

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

import org.eclipse.ui.forms.events.ExpansionAdapter;
import org.eclipse.ui.forms.widgets.FormToolkit;

class TaskEditorCommentPart$3
  extends ExpansionAdapter
{
  TaskEditorCommentPart$3(TaskEditorCommentPart paramTaskEditorCommentPart, FormToolkit paramFormToolkit) {}
  
  /* Error */
  public void expansionStateChanged(org.eclipse.ui.forms.events.ExpansionEvent event)
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 51	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart;
    //   4: getfield 50	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart:section	Lorg/eclipse/ui/forms/widgets/Section;
    //   7: invokevirtual 59	org/eclipse/ui/forms/widgets/Section:getClient	()Lorg/eclipse/swt/widgets/Control;
    //   10: ifnonnull +94 -> 104
    //   13: aload_0
    //   14: getfield 51	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart;
    //   17: iconst_1
    //   18: invokestatic 53	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart:access$9	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart;Z)V
    //   21: aload_0
    //   22: getfield 51	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart;
    //   25: invokevirtual 54	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart:getTaskEditorPage	()Lorg/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage;
    //   28: iconst_0
    //   29: invokevirtual 57	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:setReflow	(Z)V
    //   32: aload_0
    //   33: getfield 51	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart;
    //   36: aload_0
    //   37: getfield 52	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart$3:val$toolkit	Lorg/eclipse/ui/forms/widgets/FormToolkit;
    //   40: aload_0
    //   41: getfield 51	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart;
    //   44: getfield 50	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart:section	Lorg/eclipse/ui/forms/widgets/Section;
    //   47: invokestatic 55	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart:access$10	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart;Lorg/eclipse/ui/forms/widgets/FormToolkit;Lorg/eclipse/ui/forms/widgets/Section;)V
    //   50: goto +25 -> 75
    //   53: astore_2
    //   54: aload_0
    //   55: getfield 51	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart;
    //   58: iconst_0
    //   59: invokestatic 53	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart:access$9	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart;Z)V
    //   62: aload_0
    //   63: getfield 51	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart;
    //   66: invokevirtual 54	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart:getTaskEditorPage	()Lorg/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage;
    //   69: iconst_1
    //   70: invokevirtual 57	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:setReflow	(Z)V
    //   73: aload_2
    //   74: athrow
    //   75: aload_0
    //   76: getfield 51	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart;
    //   79: iconst_0
    //   80: invokestatic 53	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart:access$9	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart;Z)V
    //   83: aload_0
    //   84: getfield 51	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart;
    //   87: invokevirtual 54	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart:getTaskEditorPage	()Lorg/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage;
    //   90: iconst_1
    //   91: invokevirtual 57	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:setReflow	(Z)V
    //   94: aload_0
    //   95: getfield 51	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart$3:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart;
    //   98: invokevirtual 54	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart:getTaskEditorPage	()Lorg/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage;
    //   101: invokevirtual 56	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:reflow	()V
    //   104: return
    // Line number table:
    //   Java source line #665	-> byte code offset #0
    //   Java source line #667	-> byte code offset #13
    //   Java source line #668	-> byte code offset #21
    //   Java source line #670	-> byte code offset #32
    //   Java source line #671	-> byte code offset #53
    //   Java source line #672	-> byte code offset #54
    //   Java source line #673	-> byte code offset #62
    //   Java source line #674	-> byte code offset #73
    //   Java source line #672	-> byte code offset #75
    //   Java source line #673	-> byte code offset #83
    //   Java source line #675	-> byte code offset #94
    //   Java source line #677	-> byte code offset #104
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	105	0	this	3
    //   0	105	1	event	org.eclipse.ui.forms.events.ExpansionEvent
    //   53	21	2	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   13	53	53	finally
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.TaskEditorCommentPart.3
 * 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.CCombo;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;

class TaskEditorDescriptionPart$2
  implements Listener
{
  TaskEditorDescriptionPart$2(TaskEditorDescriptionPart paramTaskEditorDescriptionPart, CCombo paramCCombo) {}
  
  public void handleEvent(Event e)
  {
    String selectedDetector = val$duplicateDetectorChooser.getItem(val$duplicateDetectorChooser.getSelectionIndex());
    this$0.searchForDuplicates(selectedDetector);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.TaskEditorDescriptionPart.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.PaintEvent;
import org.eclipse.swt.events.PaintListener;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.forms.FormColors;
import org.eclipse.ui.forms.widgets.FormToolkit;

class EditorUtil$2
  implements PaintListener
{
  EditorUtil$2(FormToolkit paramFormToolkit, Composite paramComposite) {}
  
  public void paintControl(PaintEvent e)
  {
    gc.setForeground(val$toolkit.getColors().getBorderColor());
    Point size = val$roundedBorder.getSize();
    gc.drawRoundRectangle(0, 2, x - 1, y - 5, 5, 5);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.EditorUtil.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.text.hyperlink.IHyperlink;
import org.eclipse.mylyn.internal.tasks.core.TaskList;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.ui.TaskHyperlink;
import org.eclipse.swt.custom.StyleRange;

public class TaskHyperlinkTextPresentationManager
  extends AbstractHyperlinkTextPresentationManager
{
  private final TaskList taskList = TasksUiPlugin.getTaskList();
  
  public boolean select(IHyperlink hyperlink)
  {
    if ((hyperlink instanceof TaskHyperlink))
    {
      TaskHyperlink taskHyperlink = (TaskHyperlink)hyperlink;
      String taskId = taskHyperlink.getTaskId();
      String repositoryUrl = taskHyperlink.getRepository().getRepositoryUrl();
      
      ITask task = taskList.getTask(repositoryUrl, taskId);
      if (task == null) {
        task = taskList.getTaskByKey(repositoryUrl, taskId);
      }
      return (task != null) && (task.isCompleted());
    }
    return false;
  }
  
  protected void decorate(StyleRange styleRange)
  {
    strikeout = true;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.TaskHyperlinkTextPresentationManager
 * 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.source.SourceViewer;
import org.eclipse.swt.custom.StyledText;

class RichTextEditor$10$1
  implements Runnable
{
  RichTextEditor$10$1(RichTextEditor.10 param10) {}
  
  public void run()
  {
    if ((RichTextEditor.access$10(RichTextEditor.10.access$1(this$1)).getTextWidget() == null) || (RichTextEditor.access$10(RichTextEditor.10.access$1(this$1)).getTextWidget().isDisposed())) {
      return;
    }
    if (RichTextEditor.access$10(RichTextEditor.10.access$1(this$1)).getTextWidget().getSelectionCount() == 0)
    {
      int offset = RichTextEditor.access$10(RichTextEditor.10.access$1(this$1)).getTextWidget().getCaretOffset();
      RichTextEditor.10.access$1(this$1).showEditor();
      RichTextEditor.access$11(RichTextEditor.10.access$1(this$1)).getTextWidget().setCaretOffset(offset);
      
      RichTextEditor.10.access$0(this$1, true);
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.RichTextEditor.10.1
 * 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.StyledText;
import org.eclipse.swt.events.ModifyListener;

class LongTextAttributeEditor$1
  implements ModifyListener
{
  LongTextAttributeEditor$1(LongTextAttributeEditor paramLongTextAttributeEditor, StyledText paramStyledText) {}
  
  /* Error */
  public void modifyText(org.eclipse.swt.events.ModifyEvent e)
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 45	org/eclipse/mylyn/internal/tasks/ui/editors/LongTextAttributeEditor$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/LongTextAttributeEditor;
    //   4: iconst_1
    //   5: putfield 44	org/eclipse/mylyn/internal/tasks/ui/editors/LongTextAttributeEditor:suppressRefresh	Z
    //   8: aload_0
    //   9: getfield 45	org/eclipse/mylyn/internal/tasks/ui/editors/LongTextAttributeEditor$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/LongTextAttributeEditor;
    //   12: aload_0
    //   13: getfield 46	org/eclipse/mylyn/internal/tasks/ui/editors/LongTextAttributeEditor$1:val$text	Lorg/eclipse/swt/custom/StyledText;
    //   16: invokevirtual 50	org/eclipse/swt/custom/StyledText:getText	()Ljava/lang/String;
    //   19: invokevirtual 49	org/eclipse/mylyn/internal/tasks/ui/editors/LongTextAttributeEditor:setValue	(Ljava/lang/String;)V
    //   22: aload_0
    //   23: getfield 46	org/eclipse/mylyn/internal/tasks/ui/editors/LongTextAttributeEditor$1:val$text	Lorg/eclipse/swt/custom/StyledText;
    //   26: invokestatic 48	org/eclipse/mylyn/commons/workbench/forms/CommonFormUtil:ensureVisible	(Lorg/eclipse/swt/widgets/Control;)V
    //   29: goto +14 -> 43
    //   32: astore_2
    //   33: aload_0
    //   34: getfield 45	org/eclipse/mylyn/internal/tasks/ui/editors/LongTextAttributeEditor$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/LongTextAttributeEditor;
    //   37: iconst_0
    //   38: putfield 44	org/eclipse/mylyn/internal/tasks/ui/editors/LongTextAttributeEditor:suppressRefresh	Z
    //   41: aload_2
    //   42: athrow
    //   43: aload_0
    //   44: getfield 45	org/eclipse/mylyn/internal/tasks/ui/editors/LongTextAttributeEditor$1:this$0	Lorg/eclipse/mylyn/internal/tasks/ui/editors/LongTextAttributeEditor;
    //   47: iconst_0
    //   48: putfield 44	org/eclipse/mylyn/internal/tasks/ui/editors/LongTextAttributeEditor:suppressRefresh	Z
    //   51: return
    // Line number table:
    //   Java source line #74	-> byte code offset #0
    //   Java source line #75	-> byte code offset #8
    //   Java source line #76	-> byte code offset #22
    //   Java source line #77	-> byte code offset #32
    //   Java source line #78	-> byte code offset #33
    //   Java source line #79	-> byte code offset #41
    //   Java source line #78	-> byte code offset #43
    //   Java source line #80	-> byte code offset #51
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	52	0	this	1
    //   0	52	1	e	org.eclipse.swt.events.ModifyEvent
    //   32	10	2	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   0	32	32	finally
  }
}

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

class SummaryPart$2
  extends PriorityEditor
{
  SummaryPart$2(SummaryPart paramSummaryPart) {}
  
  protected void valueChanged(String value)
  {
    SummaryPart.access$1(this$0).select(value, ITask.PriorityLevel.fromString(value));
    SummaryPart.access$1(this$0).setToolTipText(value);
    this$0.markDirty(SummaryPart.access$1(this$0).getControl());
  }
}

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

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.ITextViewer;
import org.eclipse.jface.text.Region;
import org.eclipse.jface.text.hyperlink.IHyperlink;
import org.eclipse.mylyn.tasks.core.IRepositoryManager;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.ui.TasksUi;

public class MultipleTaskHyperlinkDetector
  extends TaskHyperlinkDetector
{
  protected List<IHyperlink> detectHyperlinks(ITextViewer textViewer, String content, int index, int contentOffset)
  {
    List<IHyperlink> result = new ArrayList();
    TaskRepository currentRepository = getTaskRepository(textViewer);
    IHyperlink[] currentRepositoryLinks = detectHyperlinks(currentRepository, content, index, contentOffset);
    if ((currentRepositoryLinks != null) && (currentRepositoryLinks.length > 0))
    {
      result.addAll(Arrays.asList(currentRepositoryLinks));
      Set<Region> currentRepositoryRegions = new HashSet();
      IHyperlink[] arrayOfIHyperlink1;
      int j = (arrayOfIHyperlink1 = currentRepositoryLinks).length;
      for (int i = 0; i < j; i++)
      {
        IHyperlink link = arrayOfIHyperlink1[i];
        currentRepositoryRegions.add(getRegion(link));
      }
      List<TaskRepository> otherRepositories = getTaskRepositories(textViewer);
      otherRepositories.remove(currentRepository);
      for (TaskRepository repository : otherRepositories)
      {
        IHyperlink[] links = detectHyperlinks(repository, content, index, contentOffset);
        if (links != null)
        {
          IHyperlink[] arrayOfIHyperlink2;
          int m = (arrayOfIHyperlink2 = links).length;
          for (int k = 0; k < m; k++)
          {
            IHyperlink link = arrayOfIHyperlink2[k];
            if (currentRepositoryRegions.contains(getRegion(link))) {
              result.add(link);
            }
          }
        }
      }
    }
    if (result.isEmpty()) {
      return null;
    }
    return result;
  }
  
  protected Region getRegion(IHyperlink link)
  {
    if ((link.getHyperlinkRegion() instanceof Region)) {
      return (Region)link.getHyperlinkRegion();
    }
    return new Region(link.getHyperlinkRegion().getOffset(), link.getHyperlinkRegion().getLength());
  }
  
  protected List<TaskRepository> getTaskRepositories(ITextViewer textViewer)
  {
    return TasksUi.getRepositoryManager().getAllRepositories();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.MultipleTaskHyperlinkDetector
 * 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.jface.layout.GridLayoutFactory;
import org.eclipse.mylyn.commons.ui.CommonImages;
import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
import org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector;
import org.eclipse.mylyn.tasks.core.ITask.PriorityLevel;
import org.eclipse.mylyn.tasks.core.ITaskMapping;
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.eclipse.mylyn.tasks.core.data.TaskAttributeMetaData;
import org.eclipse.mylyn.tasks.core.data.TaskData;
import org.eclipse.mylyn.tasks.core.data.TaskDataModel;
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.events.FocusAdapter;
import org.eclipse.swt.events.FocusEvent;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.forms.widgets.FormToolkit;

public class TaskEditorSummaryPart
  extends AbstractTaskEditorPart
{
  private AbstractAttributeEditor summaryEditor;
  
  public TaskEditorSummaryPart()
  {
    setPartName(Messages.TaskEditorSummaryPart_Summary);
  }
  
  private void addAttribute(Composite composite, FormToolkit toolkit, TaskAttribute attribute)
  {
    addAttribute(composite, toolkit, attribute, 6);
  }
  
  private void addAttribute(Composite composite, FormToolkit toolkit, TaskAttribute attribute, int indent)
  {
    addAttribute(composite, toolkit, attribute, indent, true);
  }
  
  private void addAttribute(Composite composite, FormToolkit toolkit, TaskAttribute attribute, int indent, boolean showLabel)
  {
    addAttribute(composite, toolkit, attribute, indent, true, false);
  }
  
  private void addAttribute(Composite composite, FormToolkit toolkit, TaskAttribute attribute, int indent, boolean showLabel, boolean decorationEnabled)
  {
    AbstractAttributeEditor editor = createAttributeEditor(attribute);
    if (editor != null)
    {
      editor.setReadOnly(true);
      editor.setDecorationEnabled(decorationEnabled);
      
      boolean isPriority = isAttribute(attribute, "task.common.priority");
      if ((showLabel) && (!isPriority))
      {
        editor.createLabelControl(composite, toolkit);
        GridDataFactory.defaultsFor(editor.getLabelControl())
          .indent(indent, 0)
          .applyTo(editor.getLabelControl());
      }
      if (isPriority)
      {
        ITaskMapping mapping = getTaskEditorPage().getConnector().getTaskMapping(getTaskData());
        if (mapping != null)
        {
          ITask.PriorityLevel priorityLevel = mapping.getPriorityLevel();
          if (priorityLevel != null)
          {
            Image image = CommonImages.getImage(TasksUiInternal.getPriorityImage(getTaskEditorPage().getTask()));
            if (image != null)
            {
              Label label = toolkit.createLabel(composite, null);
              label.setImage(image);
              GridDataFactory.defaultsFor(label).indent(5, -3).applyTo(label);
            }
          }
        }
      }
      if ((isAttribute(attribute, "task.common.date.modified")) && ((editor instanceof DateAttributeEditor))) {
        ((DateAttributeEditor)editor).setShowTime(true);
      }
      editor.createControl(composite, toolkit);
      getTaskEditorPage().getAttributeEditorToolkit().adapt(editor);
    }
  }
  
  protected Control addAttributeWithIcon(Composite composite, FormToolkit toolkit, TaskAttribute attribute, boolean forceReadOnly)
  {
    if (attribute != null)
    {
      AbstractAttributeEditor editor = new PriorityAttributeEditor(getModel(), attribute);
      if (editor != null)
      {
        editor.setDecorationEnabled(false);
        if (forceReadOnly) {
          editor.setReadOnly(true);
        }
        editor.createControl(composite, toolkit);
        getTaskEditorPage().getAttributeEditorToolkit().adapt(editor);
      }
      return editor.getControl();
    }
    return null;
  }
  
  private boolean isAttribute(TaskAttribute attribute, String id)
  {
    return attribute.getId().equals(
      attribute.getTaskData().getAttributeMapper().mapToRepositoryKey(attribute.getParentAttribute(), id));
  }
  
  private void addSummaryText(Composite composite, FormToolkit toolkit)
  {
    TaskAttribute summaryAttrib = getTaskData().getRoot().getMappedAttribute("task.common.summary");
    summaryEditor = createAttributeEditor(summaryAttrib);
    if (summaryEditor != null)
    {
      if (summaryAttrib.getMetaData().isReadOnly()) {
        summaryEditor.setReadOnly(true);
      }
      if ((summaryEditor instanceof RichTextAttributeEditor))
      {
        Composite roundedBorder = EditorUtil.createBorder(composite, toolkit, !summaryEditor.isReadOnly());
        summaryEditor.createControl(roundedBorder, toolkit);
        EditorUtil.setHeaderFontSizeAndStyle(summaryEditor.getControl());
      }
      else
      {
        Composite border = toolkit.createComposite(composite);
        GridDataFactory.fillDefaults()
          .align(4, 1)
          .hint(300, -1)
          .grab(true, false)
          .applyTo(border);
        
        border.setLayout(GridLayoutFactory.fillDefaults().margins(1, 4).create());
        summaryEditor.createControl(border, toolkit);
        GridDataFactory.fillDefaults()
          .align(4, 16777216)
          .grab(true, false)
          .applyTo(summaryEditor.getControl());
        toolkit.paintBordersFor(border);
      }
      getTaskEditorPage().getAttributeEditorToolkit().adapt(summaryEditor);
    }
  }
  
  public void createControl(Composite parent, FormToolkit toolkit)
  {
    Composite composite = toolkit.createComposite(parent);
    GridLayout layout = EditorUtil.createSectionClientLayout();
    numColumns = 1;
    marginHeight = 0;
    marginTop = 0;
    marginWidth = 0;
    verticalSpacing = 3;
    composit
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