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

rn super.close();
  }
  
  protected Control createDialogArea(Composite parent)
  {
    createViewer(parent);
    createUIListenersTreeViewer();
    addDisposeListener(this);
    
    return viewer.getControl();
  }
  
  /* Error */
  private void createViewer(Composite parent)
  {
    // Byte code:
    //   0: aload_0
    //   1: aload_1
    //   2: invokespecial 485	org/eclipse/jface/dialogs/PopupDialog:createDialogArea	(Lorg/eclipse/swt/widgets/Composite;)Lorg/eclipse/swt/widgets/Control;
    //   5: astore_2
    //   6: aload_0
    //   7: aload_0
    //   8: aload_2
    //   9: checkcast 245	org/eclipse/swt/widgets/Composite
    //   12: invokevirtual 532	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog:createCommonViewer	(Lorg/eclipse/swt/widgets/Composite;)Lorg/eclipse/jface/viewers/TreeViewer;
    //   15: putfield 468	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog:viewer	Lorg/eclipse/jface/viewers/TreeViewer;
    //   18: aload_0
    //   19: new 233	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog$OpenListener
    //   22: dup
    //   23: aload_0
    //   24: aload_0
    //   25: getfield 468	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog:viewer	Lorg/eclipse/jface/viewers/TreeViewer;
    //   28: invokespecial 545	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog$OpenListener:<init>	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog;Lorg/eclipse/jface/viewers/Viewer;)V
    //   31: putfield 470	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog:openListener	Lorg/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog$OpenListener;
    //   34: aload_0
    //   35: getfield 468	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog:viewer	Lorg/eclipse/jface/viewers/TreeViewer;
    //   38: aload_0
    //   39: getfield 470	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog:openListener	Lorg/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog$OpenListener;
    //   42: invokevirtual 497	org/eclipse/jface/viewers/TreeViewer:addOpenListener	(Lorg/eclipse/jface/viewers/IOpenListener;)V
    //   45: aload_0
    //   46: getfield 468	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog:viewer	Lorg/eclipse/jface/viewers/TreeViewer;
    //   49: invokevirtual 504	org/eclipse/jface/viewers/TreeViewer:getTree	()Lorg/eclipse/swt/widgets/Tree;
    //   52: aload_0
    //   53: getfield 470	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog:openListener	Lorg/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog$OpenListener;
    //   56: invokevirtual 584	org/eclipse/swt/widgets/Tree:addMouseListener	(Lorg/eclipse/swt/events/MouseListener;)V
    //   59: aload_0
    //   60: new 232	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog$Filter
    //   63: dup
    //   64: aload_0
    //   65: invokespecial 544	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog$Filter:<init>	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog;)V
    //   68: putfield 469	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog:namePatternFilter	Lorg/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog$Filter;
    //   71: aload_0
    //   72: getfield 469	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog:namePatternFilter	Lorg/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog$Filter;
    //   75: iconst_1
    //   76: invokevirtual 541	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog$Filter:setIncludeLeadingWildcard	(Z)V
    //   79: aload_0
    //   80: getfield 468	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog:viewer	Lorg/eclipse/jface/viewers/TreeViewer;
    //   83: aload_0
    //   84: getfield 469	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog:namePatternFilter	Lorg/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog$Filter;
    //   87: invokevirtual 501	org/eclipse/jface/viewers/TreeViewer:addFilter	(Lorg/eclipse/jface/viewers/ViewerFilter;)V
    //   90: aload_0
    //   91: invokevirtual 524	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog:getTaskEditorPage	()Lorg/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage;
    //   94: astore_3
    //   95: aload_3
    //   96: ifnull +105 -> 201
    //   99: aload_0
    //   100: getfield 468	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog:viewer	Lorg/eclipse/jface/viewers/TreeViewer;
    //   103: invokevirtual 503	org/eclipse/jface/viewers/TreeViewer:getControl	()Lorg/eclipse/swt/widgets/Control;
    //   106: iconst_0
    //   107: invokevirtual 565	org/eclipse/swt/widgets/Control:setRedraw	(Z)V
    //   110: aload_3
    //   111: invokevirtual 549	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:getModel	()Lorg/eclipse/mylyn/tasks/core/data/TaskDataModel;
    //   114: invokevirtual 548	org/eclipse/mylyn/tasks/core/data/TaskDataModel:getTaskData	()Lorg/eclipse/mylyn/tasks/core/data/TaskData;
    //   117: iconst_1
    //   118: invokestatic 509	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlineNode:parse	(Lorg/eclipse/mylyn/tasks/core/data/TaskData;Z)Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlineNode;
    //   121: astore 4
    //   123: aload_0
    //   124: getfield 468	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog:viewer	Lorg/eclipse/jface/viewers/TreeViewer;
    //   127: new 223	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlineModel
    //   130: dup
    //   131: aload 4
    //   133: invokespecial 507	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlineModel:<init>	(Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlineNode;)V
    //   136: invokevirtual 492	org/eclipse/jface/viewers/TreeViewer:setInput	(Ljava/lang/Object;)V
    //   139: aload_0
    //   140: getfield 468	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog:viewer	Lorg/eclipse/jface/viewers/TreeViewer;
    //   143: invokevirtual 488	org/eclipse/jface/viewers/TreeViewer:expandAll	()V
    //   146: aload 4
    //   148: getstatic 466	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlineNode:LABEL_ATTRIBUTES	Ljava/lang/String;
    //   151: invokevirtual 508	org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlineNode:getChild	(Ljava/lang/String;)Lorg/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlineNode;
    //   154: astore 5
    //   156: aload 5
    //   158: ifnull +32 -> 190
    //   161: aload_0
    //   162: getfield 468	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog:viewer	Lorg/eclipse/jface/viewers/TreeViewer;
    //   165: aload 5
    //   167: iconst_m1
    //   168: invokevirtual 493	org/eclipse/jface/viewers/TreeViewer:collapseToLevel	(Ljava/lang/Object;I)V
    //   171: goto +19 -> 190
    //   174: astore 6
    //   176: aload_0
    //   177: getfield 468	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog:viewer	Lorg/eclipse/jface/viewers/TreeViewer;
    //   180: invokevirtual 503	org/eclipse/jface/viewers/TreeViewer:getControl	()Lorg/eclipse/swt/widgets/Control;
    //   183: iconst_1
    //   184: invokevirtual 565	org/eclipse/swt/widgets/Control:setRedraw	(Z)V
    //   187: aload 6
    //   189: athrow
    //   190: aload_0
    //   191: getfield 468	org/eclipse/mylyn/internal/tasks/ui/editors/outline/QuickOutlineDialog:viewer	Lorg/eclipse/jface/viewers/TreeViewer;
    //   194: invokevirtual 503	org/eclipse/jface/viewers/TreeViewer:getControl	()Lorg/eclipse/swt/widgets/Control;
    //   197: iconst_1
    //   198: invokevirtual 565	org/eclipse/swt/widgets/Control:setRedraw	(Z)V
    //   201: return
    // Line number table:
    //   Java source line #206	-> byte code offset #0
    //   Java source line #207	-> byte code offset #6
    //   Java source line #208	-> byte code offset #18
    //   Java source line #210	-> byte code offset #34
    //   Java source line #211	-> byte code offset #45
    //   Java source line #213	-> byte code offset #59
    //   Java source line #214	-> byte code offset #71
    //   Java source line #215	-> byte code offset #79
    //   Java source line #217	-> byte code offset #90
    //   Java source line #218	-> byte code offset #95
    //   Java source line #220	-> byte code offset #99
    //   Java source line #221	-> byte code offset #110
    //   Java source line #222	-> byte code offset #123
    //   Java source line #223	-> byte code offset #139
    //   Java source line #224	-> byte code offset #146
    //   Java source line #225	-> byte code offset #156
    //   Java source line #226	-> byte code offset #161
    //   Java source line #228	-> byte code offset #174
    //   Java source line #229	-> byte code offset #176
    //   Java source line #230	-> byte code offset #187
    //   Java source line #229	-> byte code offset #190
    //   Java source line #232	-> byte code offset #201
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	202	0	this	QuickOutlineDialog
    //   0	202	1	parent	Composite
    //   5	4	2	composite	Control
    //   94	17	3	taskEditorPage	AbstractTaskEditorPage
    //   121	26	4	root	TaskEditorOutlineNode
    //   154	12	5	attributesNode	TaskEditorOutlineNode
    //   174	14	6	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   99	174	174	finally
  }
  
  protected TreeViewer createCommonViewer(Composite parent)
  {
    TreeViewer viewer = new TreeViewer(parent, 768);
    viewer.setUseHashlookup(true);
    viewer.getControl().setLayoutData(new GridData(4, 4, true, true));
    viewer.setContentProvider(new TaskEditorOutlineContentProvider());
    viewer.setLabelProvider(new DecoratingPatternStyledCellLabelProvider(new QuickOutlineLabelProvider(), 
      new TaskEditorOutlineLabelDecorator(), null));
    return viewer;
  }
  
  protected void fillDialogMenu(IMenuManager dialogMenu)
  {
    dialogMenu.add(new Separator());
    super.fillDialogMenu(dialogMenu);
  }
  
  private void createUIListenersTreeViewer()
  {
    final Tree tree = viewer.getTree();
    tree.addKeyListener(new KeyListener()
    {
      public void keyPressed(KeyEvent e)
      {
        if (character == '\033') {
          dispose();
        }
      }
      
      public void keyReleased(KeyEvent e) {}
    });
    tree.addMouseListener(new MouseAdapter()
    {
      public void mouseUp(MouseEvent e)
      {
        QuickOutlineDialog.this.handleTreeViewerMouseUp(tree, e);
      }
    });
    tree.addSelectionListener(new SelectionListener()
    {
      public void widgetSelected(SelectionEvent e) {}
      
      public void widgetDefaultSelected(SelectionEvent e)
      {
        QuickOutlineDialog.this.gotoSelectedElement();
      }
    });
  }
  
  private void handleTreeViewerMouseUp(Tree tree, MouseEvent e)
  {
    if ((tree.getSelectionCount() < 1) || (button != 1) || (!tree.equals(e.getSource()))) {
      return;
    }
    Object object = tree.getItem(new Point(x, y));
    TreeItem selection = tree.getSelection()[0];
    if (selection.equals(object)) {
      gotoSelectedElement();
    }
  }
  
  private Object getSelectedElement()
  {
    if (viewer == null) {
      return null;
    }
    return ((IStructuredSelection)viewer.getSelection()).getFirstElement();
  }
  
  public void addDisposeListener(DisposeListener listener)
  {
    getShell().addDisposeListener(listener);
  }
  
  public void addFocusListener(FocusListener listener)
  {
    getShell().addFocusListener(listener);
  }
  
  public Point computeSizeHint()
  {
    return getShell().getSize();
  }
  
  public void dispose()
  {
    close();
  }
  
  protected Point getDefaultSize()
  {
    return new Point(400, 300);
  }
  
  public boolean isFocusControl()
  {
    if ((viewer.getControl().isFocusControl()) || (filterText.isFocusControl())) {
      return true;
    }
    return false;
  }
  
  public void removeDisposeListener(DisposeListener listener)
  {
    getShell().removeDisposeListener(listener);
  }
  
  public void removeFocusListener(FocusListener listener)
  {
    getShell().removeFocusListener(listener);
  }
  
  public void setBackgroundColor(Color background)
  {
    applyBackgroundColor(background, getContents());
  }
  
  public void setFocus()
  {
    getShell().forceFocus();
    filterText.setFocus();
  }
  
  public void setForegroundColor(Color foreground)
  {
    applyForegroundColor(foreground, getContents());
  }
  
  public void setInformation(String information) {}
  
  public void setLocation(Point location)
  {
    if ((!getPersistLocation()) || (getDialogSettings() == null)) {
      getShell().setLocation(location);
    }
  }
  
  public void setSize(int width, int height)
  {
    getShell().setSize(width, height);
  }
  
  public void setSizeConstraints(int maxWidth, int maxHeight) {}
  
  public void setVisible(boolean visible)
  {
    if (visible)
    {
      open();
    }
    else
    {
      saveDialogBounds(getShell());
      getShell().setVisible(false);
    }
  }
  
  public boolean hasContents()
  {
    if ((viewer == null) || (viewer.getInput() == null)) {
      return false;
    }
    return true;
  }
  
  public void setInput(Object input)
  {
    if (input != null) {
      viewer.setSelection(new StructuredSelection(input));
    }
  }
  
  public void widgetDisposed(DisposeEvent e)
  {
    viewer = null;
    filterText = null;
  }
  
  protected Control createTitleControl(Composite parent)
  {
    Composite control = new Composite(parent, 0);
    GridLayout layout = new GridLayout(1, false);
    marginHeight = 0;
    control.setLayout(layout);
    control.setLayoutData(new GridData(4, 4, true, true));
    
    createUIWidgetFilterText(control);
    
    createUIListenersFilterText();
    
    return control;
  }
  
  private void createUIWidgetFilterText(Composite parent)
  {
    filterText = new Text(parent, 0);
    
    GC gc = new GC(parent);
    gc.setFont(parent.getFont());
    FontMetrics fontMetrics = gc.getFontMetrics();
    gc.dispose();
    
    GridData data = new GridData(768);
    heightHint = Dialog.convertHeightInCharsToPixels(fontMetrics, 1);
    horizontalAlignment = 4;
    verticalAlignment = 2;
    filterText.setLayoutData(data);
  }
  
  private void gotoSelectedElement()
  {
    Object selectedElement = getSelectedElement();
    if (selectedElement == null) {
      return;
    }
    dispose();
  }
  
  private void createUIListenersFilterText()
  {
    filterText.addKeyListener(new KeyListener()
    {
      public void keyPressed(KeyEvent e)
      {
        if (keyCode == 13) {
          QuickOutlineDialog.this.gotoSelectedElement();
        } else if (keyCode == 16777218) {
          viewer.getTree().setFocus();
        } else if (keyCode == 16777217) {
          viewer.getTree().setFocus();
        } else if (character == '\033') {
          dispose();
        }
      }
      
      public void keyReleased(KeyEvent e) {}
    });
    filterText.addModifyListener(new ModifyListener()
    {
      public void modifyText(ModifyEvent e)
      {
        String text = ((Text)widget).getText();
        int length = text.length();
        if (length > 0)
        {
          if (text.charAt(length - 1) != '*') {
            text = text + '*';
          }
          if (text.charAt(0) != '*') {
            text = '*' + text;
          }
        }
        QuickOutlineDialog.this.setMatcherString(text, true);
      }
    });
  }
  
  private void setMatcherString(String pattern, boolean update)
  {
    namePatternFilter.setPattern(pattern);
    if (update) {
      stringMatcherUpdated();
    }
  }
  
  private void stringMatcherUpdated()
  {
    viewer.getControl().setRedraw(false);
    viewer.refresh();
    viewer.expandAll();
    selectFirstMatch();
    viewer.getControl().setRedraw(true);
  }
  
  protected AbstractTaskEditorPage getTaskEditorPage()
  {
    IWorkbenchPage activePage = window.getActivePage();
    if (activePage == null) {
      return null;
    }
    IEditorPart editorPart = activePage.getActiveEditor();
    AbstractTaskEditorPage taskEditorPage = null;
    if ((editorPart instanceof TaskEditor))
    {
      TaskEditor taskEditor = (TaskEditor)editorPart;
      IFormPage formPage = taskEditor.getActivePageInstance();
      if ((formPage instanceof AbstractTaskEditorPage)) {
        taskEditorPage = (AbstractTaskEditorPage)formPage;
      }
    }
    return taskEditorPage;
  }
  
  private void selectFirstMatch()
  {
    Tree tree = viewer.getTree();
    Object element = findFirstMatchToPattern(tree.getItems());
    if (element != null) {
      viewer.setSelection(new StructuredSelection(element), true);
    } else {
      viewer.setSelection(StructuredSelection.EMPTY);
    }
  }
  
  private Object findFirstMatchToPattern(TreeItem[] items)
  {
    ILabelProvider labelProvider = (ILabelProvider)viewer.getLabelProvider();
    TreeItem[] arrayOfTreeItem;
    int j = (arrayOfTreeItem = items).length;
    for (int i = 0; i < j; i++)
    {
      TreeItem item = arrayOfTreeItem[i];
      Object element = item.getData();
      if (element != null)
      {
        String label = labelProvider.getText(element);
        if (namePatternFilter.wordMatches(label)) {
          return element;
        }
      }
      element = findFirstMatchToPattern(item.getItems());
      if (element != null) {
        return element;
      }
    }
    return null;
  }
}

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

import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.events.KeyListener;

class QuickOutlineDialog$1
  implements KeyListener
{
  QuickOutlineDialog$1(QuickOutlineDialog paramQuickOutlineDialog) {}
  
  public void keyPressed(KeyEvent e)
  {
    if (character == '\033') {
      this$0.dispose();
    }
  }
  
  public void keyReleased(KeyEvent e) {}
}

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

import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.widgets.Tree;

class QuickOutlineDialog$2
  extends MouseAdapter
{
  QuickOutlineDialog$2(QuickOutlineDialog paramQuickOutlineDialog, Tree paramTree) {}
  
  public void mouseUp(MouseEvent e)
  {
    QuickOutlineDialog.access$0(this$0, val$tree, e);
  }
}

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

import org.eclipse.jface.viewers.ILabelDecorator;
import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.mylyn.internal.tasks.ui.editors.TaskEditorOutlineNode;
import org.eclipse.mylyn.tasks.core.data.TaskRelation;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.graphics.Image;

public final class QuickOutlineDialog$TaskEditorOutlineLabelDecorator
  implements ILabelDecorator
{
  public QuickOutlineDialog$TaskEditorOutlineLabelDecorator(QuickOutlineDialog paramQuickOutlineDialog) {}
  
  public String decorateText(String text, Object element)
  {
    if ((element instanceof TaskEditorOutlineNode))
    {
      TaskEditorOutlineNode node = (TaskEditorOutlineNode)element;
      if (node.getTaskRelation() != null) {
        return NLS.bind(Messages.QuickOutlineDialog_Node_Label_Decoration, text, node.getTaskRelation()
          .toString());
      }
    }
    return null;
  }
  
  public void addListener(ILabelProviderListener listener) {}
  
  public void dispose() {}
  
  public boolean isLabelProperty(Object element, String property)
  {
    return false;
  }
  
  public void removeListener(ILabelProviderListener listener) {}
  
  public Image decorateImage(Image image, Object element)
  {
    return null;
  }
}

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

import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;

class QuickOutlineDialog$3
  implements SelectionListener
{
  QuickOutlineDialog$3(QuickOutlineDialog paramQuickOutlineDialog) {}
  
  public void widgetSelected(SelectionEvent e) {}
  
  public void widgetDefaultSelected(SelectionEvent e)
  {
    QuickOutlineDialog.access$1(this$0);
  }
}

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

import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.events.KeyListener;
import org.eclipse.swt.widgets.Tree;

class QuickOutlineDialog$4
  implements KeyListener
{
  QuickOutlineDialog$4(QuickOutlineDialog paramQuickOutlineDialog) {}
  
  public void keyPressed(KeyEvent e)
  {
    if (keyCode == 13) {
      QuickOutlineDialog.access$1(this$0);
    } else if (keyCode == 16777218) {
      QuickOutlineDialog.access$2(this$0).getTree().setFocus();
    } else if (keyCode == 16777217) {
      QuickOutlineDialog.access$2(this$0).getTree().setFocus();
    } else if (character == '\033') {
      this$0.dispose();
    }
  }
  
  public void keyReleased(KeyEvent e) {}
}

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

import org.eclipse.osgi.util.NLS;

public class Messages
  extends NLS
{
  private static final String BUNDLE_NAME = "org.eclipse.mylyn.internal.tasks.ui.editors.outline.messages";
  public static String QuickOutlineDialog_Node_Label_Decoration;
  public static String QuickOutlineDialog_Press_Esc_Info_Text;
  
  static
  {
    NLS.initializeMessages("org.eclipse.mylyn.internal.tasks.ui.editors.outline.messages", Messages.class);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.outline.Messages
 * 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$3$1
  implements Runnable
{
  PlanningPart$3$1(PlanningPart.3 param3) {}
  
  public void run()
  {
    if ((PlanningPart.access$0(PlanningPart.3.access$0(this$1)) != null) && (!PlanningPart.access$0(PlanningPart.3.access$0(this$1)).isDisposed())) {
      PlanningPart.access$1(PlanningPart.3.access$0(this$1));
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.PlanningPart.3.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.text.ITextPresentationListener;
import org.eclipse.jface.text.TextPresentation;
import org.eclipse.swt.custom.StyleRange;

class AbstractHyperlinkTextPresentationManager$Support
  implements ITextPresentationListener
{
  private AbstractHyperlinkTextPresentationManager$Support(AbstractHyperlinkTextPresentationManager paramAbstractHyperlinkTextPresentationManager) {}
  
  public void applyTextPresentation(TextPresentation textPresentation)
  {
    StyleRange[] styleRanges = this$0.computeStyleRanges(textPresentation.getCoverage());
    if ((styleRanges != null) && (styleRanges.length > 0)) {
      textPresentation.mergeStyleRanges(styleRanges);
    }
  }
}

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

class PlanningPart$6
  implements ITextListener
{
  PlanningPart$6(PlanningPart paramPlanningPart) {}
  
  public void textChanged(TextEvent event)
  {
    PlanningPart.access$6(this$0, PlanningPart.access$5(this$0).getText());
    if (!PlanningPart.access$7(this$0)) {
      this$0.markDirty();
    }
  }
}

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

import java.util.Set;
import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
import org.eclipse.mylyn.internal.tasks.core.TaskContainerDelta;
import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.PlatformUI;

class TaskPlanningEditor$2
  extends TaskListChangeAdapter
{
  TaskPlanningEditor$2(TaskPlanningEditor paramTaskPlanningEditor) {}
  
  public void containersChanged(Set<TaskContainerDelta> containers)
  {
    for (TaskContainerDelta taskContainerDelta : containers) {
      if ((taskContainerDelta.getElement() instanceof ITask))
      {
        AbstractTask updateTask = (AbstractTask)taskContainerDelta.getElement();
        if ((updateTask != null) && (TaskPlanningEditor.access$2(this$0) != null) && 
          (updateTask.getHandleIdentifier().equals(TaskPlanningEditor.access$2(this$0).getHandleIdentifier())))
        {
          if ((PlatformUI.getWorkbench() == null) || (PlatformUI.getWorkbench().isClosing())) {
            break;
          }
          PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable()
          {
            public void run()
            {
              this$0.refresh();
            }
          });
          break;
        }
      }
    }
  }
}

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

class TaskEditorCommentPart$5
  extends Action
{
  TaskEditorCommentPart$5(TaskEditorCommentPart paramTaskEditorCommentPart, String $anonymous0)
  {
    super($anonymous0);
  }
  
  public void run()
  {
    TaskEditorCommentPart.access$12(this$0, true);
  }
}

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

class TaskEditorSummaryPart$1
  extends FocusAdapter
{
  TaskEditorSummaryPart$1(TaskEditorSummaryPart paramTaskEditorSummaryPart, Control paramControl) {}
  
  public void focusGained(FocusEvent e)
  {
    if ((TaskEditorSummaryPart.access$0(this$0) != null) && (TaskEditorSummaryPart.access$0(this$0).getControl() != null))
    {
      TaskEditorSummaryPart.access$0(this$0).getControl().setFocus();
      
      val$priorityEditor.removeFocusListener(this);
    }
  }
}

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

import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import org.eclipse.mylyn.commons.identity.core.spi.ProfileImage;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;

class UserAttributeEditor$1
  implements PropertyChangeListener
{
  UserAttributeEditor$1(UserAttributeEditor paramUserAttributeEditor) {}
  
  public void propertyChange(PropertyChangeEvent event)
  {
    if (event.getPropertyName().equals("image"))
    {
      final ProfileImage profileImage = (ProfileImage)event.getNewValue();
      Display.getDefault().asyncExec(new Runnable()
      {
        public void run()
        {
          if (!UserAttributeEditor.access$0(this$0).isDisposed()) {
            this$0.updateImage(profileImage);
          }
        }
      });
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.UserAttributeEditor.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.Assert;
import org.eclipse.swt.custom.CCombo;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;

class SingleSelectionAttributeEditor$1
  extends SelectionAdapter
{
  SingleSelectionAttributeEditor$1(SingleSelectionAttributeEditor paramSingleSelectionAttributeEditor) {}
  
  public void widgetSelected(SelectionEvent event)
  {
    if (!SingleSelectionAttributeEditor.access$0(this$0))
    {
      int index = SingleSelectionAttributeEditor.access$1(this$0).getSelectionIndex();
      if (index > -1)
      {
        Assert.isNotNull(SingleSelectionAttributeEditor.access$2(this$0));
        Assert.isLegal((index >= 0) && (index <= SingleSelectionAttributeEditor.access$2(this$0).length - 1));
        this$0.setValue(SingleSelectionAttributeEditor.access$2(this$0)[index]);
      }
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.SingleSelectionAttributeEditor.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.ScrolledComposite;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseWheelListener;
import org.eclipse.swt.widgets.ScrollBar;
import org.eclipse.swt.widgets.Scrollable;
import org.eclipse.ui.internal.forms.widgets.FormUtil;

class EditorUtil$4
  implements MouseWheelListener
{
  EditorUtil$4(Scrollable paramScrollable) {}
  
  public void mouseScrolled(MouseEvent event)
  {
    ScrollBar verticalBar = val$textWidget.getVerticalBar();
    ScrolledComposite form = FormUtil.getScrolledComposite(val$textWidget);
    if ((verticalBar != null) && (form != null)) {
      if (count < 0)
      {
        if (verticalBar.getSelection() + verticalBar.getThumb() == verticalBar.getMaximum()) {
          EditorUtil.scroll(form, 0, form.getVerticalBar().getIncrement());
        }
      }
      else if (verticalBar.getSelection() == verticalBar.getMinimum()) {
        EditorUtil.scroll(form, 0, -form.getVerticalBar().getIncrement());
      }
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.EditorUtil.4
 * 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.mylyn.tasks.core.TaskRepository;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.forms.AbstractFormPart;
import org.eclipse.ui.forms.IManagedForm;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.Section;

public abstract class AbstractLocalEditorPart
  extends AbstractFormPart
{
  private static final String FLAG_DIRTY = "LocalEditor.dirty";
  private Control control;
  private TaskRepository repository;
  private Section section;
  private final String sectionName;
  private final int sectionStyle;
  private AbstractTask task;
  
  public AbstractLocalEditorPart(int sectionStyle, String sectionName)
  {
    this.sectionStyle = sectionStyle;
    this.sectionName = sectionName;
  }
  
  public AbstractLocalEditorPart(String sectionName)
  {
    sectionStyle = 2;
    this.sectionName = sectionName;
  }
  
  public abstract Control createControl(Composite paramComposite, FormToolkit paramFormToolkit);
  
  protected Section createSection(Composite parent, FormToolkit toolkit, boolean expandedState)
  {
    int style = 0x100 | getSectionStyle();
    if ((expandedState) && (isTwistie(style))) {
      style |= 0x40;
    }
    return createSection(parent, toolkit, style);
  }
  
  protected Section createSection(Composite parent, FormToolkit toolkit, int style)
  {
    Section section = toolkit.createSection(parent, style);
    section.setText(getSectionName());
    clientVerticalSpacing = 0;
    descriptionVerticalSpacing = 0;
    marginHeight = 0;
    return section;
  }
  
  public Control getControl()
  {
    return control;
  }
  
  public TaskRepository getRepository()
  {
    return repository;
  }
  
  public Section getSection()
  {
    return section;
  }
  
  public String getSectionName()
  {
    return sectionName;
  }
  
  private int getSectionStyle()
  {
    return sectionStyle;
  }
  
  public AbstractTask getTask()
  {
    return task;
  }
  
  public void initialize(IManagedForm managedForm, TaskRepository repository, AbstractTask task)
  {
    super.initialize(managedForm);
    this.task = task;
    this.repository = repository;
  }
  
  private boolean isTwistie(int style)
  {
    return (style & 0x2) != 0;
  }
  
  public void setControl(Control control)
  {
    this.control = control;
  }
  
  protected void setSection(FormToolkit toolkit, Section section)
  {
    this.section = section;
    setControl(section);
  }
  
  public void refresh()
  {
    refresh(true);
    super.refresh();
  }
  
  protected void refresh(boolean discardChanges) {}
  
  protected void markDirty(Control control)
  {
    control.setData("LocalEditor.dirty", Boolean.TRUE);
    markDirty();
  }
  
  protected boolean shouldRefresh(Control control, boolean discardChanges)
  {
    if (discardChanges)
    {
      clearState(control);
      return true;
    }
    return control.getData("LocalEditor.dirty") == null;
  }
  
  protected void clearState(Control control)
  {
    control.setData("LocalEditor.dirty", null);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.AbstractLocalEditorPart
 * 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;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;

class SummaryPart$4
  extends SelectionAdapter
{
  SummaryPart$4(SummaryPart paramSummaryPart) {}
  
  public void widgetSelected(SelectionEvent e)
  {
    if (SummaryPart.access$3(this$0).getSelection())
    {
      SummaryPart.access$2(this$0).setSelection(false);
      this$0.markDirty(SummaryPart.access$3(this$0));
    }
  }
}

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

import org.eclipse.swt.graphics.Image;

@Deprecated
public abstract interface IBusyEditor
{
  public abstract void setTitleImage(Image paramImage);
  
  public abstract Image getTitleImage();
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.IBusyEditor
 * 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.HyperlinkAdapter;
import org.eclipse.ui.forms.events.HyperlinkEvent;

class AttributePart$2
  extends HyperlinkAdapter
{
  AttributePart$2(AttributePart paramAttributePart) {}
  
  public void linkActivated(HyperlinkEvent e)
  {
    AttributePart.access$2(this$0, AttributePart.access$1(this$0).getText());
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.internal.tasks.ui.editors.AttributePart.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.Collections;
import java.util.Comparator;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.ITextSelection;
import org.eclipse.jface.text.ITextViewer;
import org.eclipse.jface.text.contentassist.CompletionProposal;
import org.eclipse.jface.text.contentassist.ICompletionProposal;
import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
import org.eclipse.jface.text.contentassist.IContextInformation;
import org.eclipse.jface.text.contentassist.IContextInformationValidator;
import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.mylyn.commons.ui.CommonImages;
import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
import org.eclipse.mylyn.internal.tasks.core.LocalTask;
import org.eclipse.mylyn.internal.tasks.core.TaskActivationHistory;
import org.eclipse.mylyn.internal.tasks.core.TaskActivityManager;
import org.eclipse.mylyn.internal.tasks.core.TaskList;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
import org.eclipse.mylyn.internal.tasks.ui.actions.CopyTaskDetailsAction;
import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
import org.eclipse.mylyn.internal.tasks.ui.workingsets.TaskWorkingSetUpdater;
import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.ui.TaskElementLabelProvider;
import org.eclipse.mylyn.tasks.ui.editors.TaskEditorInput;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.Point;
import org.eclipse.ui.IEditorReference;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;

public class RepositoryCompletionProcessor
  implements IContentAssistProcessor
{
  private static final int MAX_OPEN_EDITORS = 10;
  private static final int MAX_ACTIVATED_TASKS = 10;
  
  public static class TaskCompletionProposal
    implements ICompletionProposal
  {
    private final LabelProvider labelProvider;
    private final TaskRepository repository;
    private final ITask task;
    private final int replacementOffset;
    private final int replacementLength;
    private String replacement;
    private final String defaultReplacement;
    private final boolean includePrefix;
    
    public TaskCompletionProposal(TaskRepository repository, ITask task, LabelProvider labelProvider, String defaultReplacement, boolean includePrefix, int replacementOffset, int replacementLength)
    {
      this.labelProvider = labelProvider;
      this.repository = repository;
      this.task = task;
      this.defaultReplacement = defaultReplacement;
      this.includePrefix = includePrefix;
      this.replacementOffset = replacementOffset;
      this.replacementLength = replacementLength;
    }
    
    public void apply(IDocument document)
    {
      try
      {
        document.replace(replacementOffset, replacementLength, getReplacement());
      }
      catch (BadLocationException localBadLocationException) {}
    }
    
    public String getReplacement()
    {
      if (replacement == null) {
        if ((defaultReplacement == null) || (repository == null) || 
          (!repository.getRepositoryUrl().equals(task.getRepositoryUrl()))) {
          replacement = CopyTaskDetailsAction.getTextForTask(task);
        } else if (includePrefix)
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