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

se/mylyn/tasks/core/ITask;
      //   41: invokeinterface 1737 1 0
      //   46: invokevirtual 1530	org/eclipse/mylyn/tasks/core/ITask$SynchronizationState:isIncoming	()Z
      //   49: istore_1
      //   50: aload_0
      //   51: getfield 1407	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:model	Lorg/eclipse/mylyn/tasks/core/data/TaskDataModel;
      //   54: ifnull +21 -> 75
      //   57: aload_0
      //   58: new 648	org/eclipse/core/runtime/NullProgressMonitor
      //   61: dup
      //   62: invokespecial 1448	org/eclipse/core/runtime/NullProgressMonitor:<init>	()V
      //   65: invokevirtual 1580	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:doSave	(Lorg/eclipse/core/runtime/IProgressMonitor;)V
      //   68: aload_0
      //   69: invokespecial 1562	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:refreshInput	()V
      //   72: goto +14 -> 86
      //   75: aload_0
      //   76: aload_0
      //   77: invokevirtual 1591	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:getTaskEditor	()Lorg/eclipse/mylyn/tasks/ui/editors/TaskEditor;
      //   80: invokevirtual 1659	org/eclipse/mylyn/tasks/ui/editors/TaskEditor:getTaskEditorInput	()Lorg/eclipse/mylyn/tasks/ui/editors/TaskEditorInput;
      //   83: invokespecial 1592	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:initModel	(Lorg/eclipse/mylyn/tasks/ui/editors/TaskEditorInput;)V
      //   86: aload_0
      //   87: getfield 1406	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:taskData	Lorg/eclipse/mylyn/tasks/core/data/TaskData;
      //   90: ifnull +195 -> 285
      //   93: aload_0
      //   94: iconst_0
      //   95: invokevirtual 1572	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:setReflow	(Z)V
      //   98: aload_0
      //   99: getfield 1411	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:editorComposite	Lorg/eclipse/swt/widgets/Composite;
      //   102: invokevirtual 1694	org/eclipse/swt/widgets/Composite:getMenu	()Lorg/eclipse/swt/widgets/Menu;
      //   105: astore_2
      //   106: aload_0
      //   107: getfield 1411	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:editorComposite	Lorg/eclipse/swt/widgets/Composite;
      //   110: aconst_null
      //   111: invokestatic 1467	org/eclipse/mylyn/commons/ui/CommonUiUtil:setMenu	(Lorg/eclipse/swt/widgets/Composite;Lorg/eclipse/swt/widgets/Menu;)V
      //   114: aload_0
      //   115: getfield 1411	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:editorComposite	Lorg/eclipse/swt/widgets/Composite;
      //   118: invokevirtual 1691	org/eclipse/swt/widgets/Composite:getChildren	()[Lorg/eclipse/swt/widgets/Control;
      //   121: dup
      //   122: astore 6
      //   124: arraylength
      //   125: istore 5
      //   127: iconst_0
      //   128: istore 4
      //   130: goto +16 -> 146
      //   133: aload 6
      //   135: iload 4
      //   137: aaload
      //   138: astore_3
      //   139: aload_3
      //   140: invokevirtual 1696	org/eclipse/swt/widgets/Control:dispose	()V
      //   143: iinc 4 1
      //   146: iload 4
      //   148: iload 5
      //   150: if_icmplt -17 -> 133
      //   153: aload_0
      //   154: getfield 1401	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:focusTracker	Lorg/eclipse/mylyn/internal/tasks/ui/editors/FocusTracker;
      //   157: ifnull +10 -> 167
      //   160: aload_0
      //   161: getfield 1401	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:focusTracker	Lorg/eclipse/mylyn/internal/tasks/ui/editors/FocusTracker;
      //   164: invokevirtual 1506	org/eclipse/mylyn/internal/tasks/ui/editors/FocusTracker:reset	()V
      //   167: aload_0
      //   168: aconst_null
      //   169: putfield 1395	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:lastSelection	Lorg/eclipse/jface/viewers/ISelection;
      //   172: aload_0
      //   173: invokevirtual 1597	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:getManagedForm	()Lorg/eclipse/ui/forms/IManagedForm;
      //   176: invokeinterface 1754 1 0
      //   181: dup
      //   182: astore 6
      //   184: arraylength
      //   185: istore 5
      //   187: iconst_0
      //   188: istore 4
      //   190: goto +28 -> 218
      //   193: aload 6
      //   195: iload 4
      //   197: aaload
      //   198: astore_3
      //   199: aload_3
      //   200: invokeinterface 1749 1 0
      //   205: aload_0
      //   206: invokevirtual 1597	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:getManagedForm	()Lorg/eclipse/ui/forms/IManagedForm;
      //   209: aload_3
      //   210: invokeinterface 1756 2 0
      //   215: iinc 4 1
      //   218: iload 4
      //   220: iload 5
      //   222: if_icmplt -29 -> 193
      //   225: aload_0
      //   226: getfield 1411	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:editorComposite	Lorg/eclipse/swt/widgets/Composite;
      //   229: aload_2
      //   230: invokevirtual 1695	org/eclipse/swt/widgets/Composite:setMenu	(Lorg/eclipse/swt/widgets/Menu;)V
      //   233: aload_0
      //   234: invokespecial 1557	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:createFormContentInternal	()V
      //   237: aload_0
      //   238: invokevirtual 1591	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:getTaskEditor	()Lorg/eclipse/mylyn/tasks/ui/editors/TaskEditor;
      //   241: aconst_null
      //   242: iconst_0
      //   243: invokevirtual 1658	org/eclipse/mylyn/tasks/ui/editors/TaskEditor:setMessage	(Ljava/lang/String;I)V
      //   246: iload_1
      //   247: ifeq +15 -> 262
      //   250: aload_0
      //   251: invokevirtual 1591	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:getTaskEditor	()Lorg/eclipse/mylyn/tasks/ui/editors/TaskEditor;
      //   254: aload_0
      //   255: invokevirtual 1577	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:getId	()Ljava/lang/String;
      //   258: invokevirtual 1663	org/eclipse/mylyn/tasks/ui/editors/TaskEditor:setActivePage	(Ljava/lang/String;)Lorg/eclipse/ui/forms/editor/IFormPage;
      //   261: pop
      //   262: aload_0
      //   263: iconst_1
      //   264: invokespecial 1573	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:setSubmitEnabled	(Z)V
      //   267: goto +13 -> 280
      //   270: astore 7
      //   272: aload_0
      //   273: iconst_1
      //   274: invokevirtual 1572	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:setReflow	(Z)V
      //   277: aload 7
      //   279: athrow
      //   280: aload_0
      //   281: iconst_1
      //   282: invokevirtual 1572	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:setReflow	(Z)V
      //   285: aload_0
      //   286: invokespecial 1564	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:updateOutlinePage	()V
      //   289: aload_0
      //   290: invokespecial 1563	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:updateHeaderMessage	()V
      //   293: aload_0
      //   294: invokevirtual 1597	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:getManagedForm	()Lorg/eclipse/ui/forms/IManagedForm;
      //   297: invokeinterface 1751 1 0
      //   302: aload_0
      //   303: invokevirtual 1591	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:getTaskEditor	()Lorg/eclipse/mylyn/tasks/ui/editors/TaskEditor;
      //   306: invokevirtual 1655	org/eclipse/mylyn/tasks/ui/editors/TaskEditor:updateHeaderToolBar	()V
      //   309: goto +13 -> 322
      //   312: astore 8
      //   314: aload_0
      //   315: iconst_0
      //   316: invokevirtual 1574	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:showEditorBusy	(Z)V
      //   319: aload 8
      //   321: athrow
      //   322: aload_0
      //   323: iconst_0
      //   324: invokevirtual 1574	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:showEditorBusy	(Z)V
      //   327: aload_0
      //   328: invokevirtual 1560	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:reflow	()V
      //   331: return
      // Line number table:
      //   Java source line #1393	-> byte code offset #0
      //   Java source line #1395	-> byte code offset #22
      //   Java source line #1399	-> byte code offset #23
      //   Java source line #1401	-> byte code offset #28
      //   Java source line #1403	-> byte code offset #30
      //   Java source line #1404	-> byte code offset #37
      //   Java source line #1406	-> byte code offset #50
      //   Java source line #1407	-> byte code offset #57
      //   Java source line #1408	-> byte code offset #68
      //   Java source line #1410	-> byte code offset #75
      //   Java source line #1413	-> byte code offset #86
      //   Java source line #1415	-> byte code offset #93
      //   Java source line #1417	-> byte code offset #98
      //   Java source line #1418	-> byte code offset #106
      //   Java source line #1421	-> byte code offset #114
      //   Java source line #1422	-> byte code offset #139
      //   Java source line #1421	-> byte code offset #143
      //   Java source line #1424	-> byte code offset #153
      //   Java source line #1425	-> byte code offset #160
      //   Java source line #1427	-> byte code offset #167
      //   Java source line #1428	-> byte code offset #172
      //   Java source line #1429	-> byte code offset #199
      //   Java source line #1430	-> byte code offset #205
      //   Java source line #1428	-> byte code offset #215
      //   Java source line #1434	-> byte code offset #225
      //   Java source line #1436	-> byte code offset #233
      //   Java source line #1438	-> byte code offset #237
      //   Java source line #1439	-> byte code offset #246
      //   Java source line #1440	-> byte code offset #250
      //   Java source line #1443	-> byte code offset #262
      //   Java source line #1444	-> byte code offset #270
      //   Java source line #1445	-> byte code offset #272
      //   Java source line #1446	-> byte code offset #277
      //   Java source line #1445	-> byte code offset #280
      //   Java source line #1449	-> byte code offset #285
      //   Java source line #1450	-> byte code offset #289
      //   Java source line #1451	-> byte code offset #293
      //   Java source line #1452	-> byte code offset #302
      //   Java source line #1453	-> byte code offset #312
      //   Java source line #1454	-> byte code offset #314
      //   Java source line #1455	-> byte code offset #319
      //   Java source line #1454	-> byte code offset #322
      //   Java source line #1456	-> byte code offset #327
      //   Java source line #1457	-> byte code offset #331
      // Local variable table:
      //   start	length	slot	name	signature
      //   0	332	0	this	AbstractTaskEditorPage
      //   29	218	1	hasIncoming	boolean
      //   105	125	2	menu	Menu
      //   138	2	3	control	Control
      //   198	12	3	part	IFormPart
      //   128	95	4	i	int
      //   125	98	5	j	int
      //   122	72	6	localObject1	Object
      //   270	8	7	localObject2	Object
      //   312	8	8	localObject3	Object
      // Exception table:
      //   from	to	target	type
      //   93	270	270	finally
      //   23	312	312	finally
    }
    
    /* Error */
    private void refreshInput()
    {
      // Byte code:
      //   0: aload_0
      //   1: iconst_1
      //   2: putfield 1390	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:refreshDisabled	Z
      //   5: aload_0
      //   6: getfield 1407	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:model	Lorg/eclipse/mylyn/tasks/core/data/TaskDataModel;
      //   9: aconst_null
      //   10: invokevirtual 1541	org/eclipse/mylyn/tasks/core/data/TaskDataModel:refresh	(Lorg/eclipse/core/runtime/IProgressMonitor;)V
      //   13: goto +54 -> 67
      //   16: astore_1
      //   17: aload_0
      //   18: invokevirtual 1591	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:getTaskEditor	()Lorg/eclipse/mylyn/tasks/ui/editors/TaskEditor;
      //   21: new 635	java/lang/StringBuilder
      //   24: dup
      //   25: getstatic 1371	org/eclipse/mylyn/internal/tasks/ui/editors/Messages:AbstractTaskEditorPage_Failed_to_read_task_data_	Ljava/lang/String;
      //   28: invokestatic 1430	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
      //   31: invokespecial 1433	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
      //   34: aload_1
      //   35: invokevirtual 1442	org/eclipse/core/runtime/CoreException:getMessage	()Ljava/lang/String;
      //   38: invokevirtual 1435	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
      //   41: invokevirtual 1432	java/lang/StringBuilder:toString	()Ljava/lang/String;
      //   44: iconst_3
      //   45: invokevirtual 1658	org/eclipse/mylyn/tasks/ui/editors/TaskEditor:setMessage	(Ljava/lang/String;I)V
      //   48: aload_0
      //   49: aconst_null
      //   50: putfield 1406	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:taskData	Lorg/eclipse/mylyn/tasks/core/data/TaskData;
      //   53: aload_0
      //   54: iconst_0
      //   55: putfield 1390	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:refreshDisabled	Z
      //   58: return
      //   59: astore_2
      //   60: aload_0
      //   61: iconst_0
      //   62: putfield 1390	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:refreshDisabled	Z
      //   65: aload_2
      //   66: athrow
      //   67: aload_0
      //   68: iconst_0
      //   69: putfield 1390	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:refreshDisabled	Z
      //   72: aload_0
      //   73: aload_0
      //   74: getfield 1407	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:model	Lorg/eclipse/mylyn/tasks/core/data/TaskDataModel;
      //   77: invokevirtual 1544	org/eclipse/mylyn/tasks/core/data/TaskDataModel:getTaskData	()Lorg/eclipse/mylyn/tasks/core/data/TaskData;
      //   80: invokespecial 1585	org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage:setTaskData	(Lorg/eclipse/mylyn/tasks/core/data/TaskData;)V
      //   83: return
      // Line number table:
      //   Java source line #1461	-> byte code offset #0
      //   Java source line #1462	-> byte code offset #5
      //   Java source line #1463	-> byte code offset #16
      //   Java source line #1464	-> byte code offset #17
      //   Java source line #1465	-> byte code offset #44
      //   Java source line #1464	-> byte code offset #45
      //   Java source line #1466	-> byte code offset #48
      //   Java source line #1469	-> byte code offset #53
      //   Java source line #1467	-> byte code offset #58
      //   Java source line #1468	-> byte code offset #59
      //   Java source line #1469	-> byte code offset #60
      //   Java source line #1470	-> byte code offset #65
      //   Java source line #1469	-> byte code offset #67
      //   Java source line #1472	-> byte code offset #72
      //   Java source line #1473	-> byte code offset #83
      // Local variable table:
      //   start	length	slot	name	signature
      //   0	84	0	this	AbstractTaskEditorPage
      //   16	19	1	e	CoreException
      //   59	7	2	localObject	Object
      // Exception table:
      //   from	to	target	type
      //   0	13	16	org/eclipse/core/runtime/CoreException
      //   0	53	59	finally
    }
    
    public void registerDefaultDropListener(Control control)
    {
      if ((getModel() == null) || (getModel().getTaskData().isNew())) {
        return;
      }
      DropTarget target = new DropTarget(control, 17);
      LocalSelectionTransfer localSelectionTransfer = LocalSelectionTransfer.getTransfer();
      TextTransfer textTransfer = TextTransfer.getInstance();
      FileTransfer fileTransfer = FileTransfer.getInstance();
      Transfer[] types = { localSelectionTransfer, textTransfer, fileTransfer };
      target.setTransfer(types);
      if (defaultDropListener == null) {
        defaultDropListener = new TaskAttachmentDropListener(this);
      }
      target.addDropListener(defaultDropListener);
    }
    
    public void removeSelectionChangedListener(ISelectionChangedListener listener)
    {
      selectionChangedListeners.remove(listener);
    }
    
    public void selectionChanged(Object element)
    {
      selectionChanged(new SelectionChangedEvent(this, new StructuredSelection(element)));
    }
    
    public void selectionChanged(SelectionChangedEvent event)
    {
      ISelection selection = event.getSelection();
      if ((selection instanceof TextSelection))
      {
        ((TaskEditorActionContributor)getEditorSite().getActionBarContributor()).updateSelectableActions(event.getSelection());
        return;
      }
      if (selection.isEmpty())
      {
        selection = defaultSelection;
        
        ((TaskEditorActionContributor)getEditorSite().getActionBarContributor()).forceActionsEnabled();
      }
      if (!selection.equals(lastSelection))
      {
        lastSelection = selection;
        fireSelectionChanged(lastSelection);
        getSite().getSelectionProvider().setSelection(selection);
      }
    }
    
    public void setFocus()
    {
      if ((focusTracker != null) && (focusTracker.setFocus())) {
        return;
      }
      IFormPart[] parts = getManagedForm().getParts();
      if (parts.length > 0)
      {
        parts[0].setFocus();
        return;
      }
      super.setFocus();
    }
    
    public void setNeedsAddToCategory(boolean needsAddToCategory)
    {
      this.needsAddToCategory = needsAddToCategory;
    }
    
    public void setReflow(boolean reflow)
    {
      this.reflow = reflow;
      form.setRedraw(reflow);
    }
    
    public void setSelection(ISelection selection)
    {
      IFormPart[] parts = getManagedForm().getParts();
      IFormPart[] arrayOfIFormPart1;
      int j = (arrayOfIFormPart1 = parts).length;
      for (int i = 0; i < j; i++)
      {
        IFormPart formPart = arrayOfIFormPart1[i];
        if (((formPart instanceof AbstractTaskEditorPart)) && 
          (((AbstractTaskEditorPart)formPart).setSelection(selection)))
        {
          lastSelection = selection;
          return;
        }
      }
    }
    
    private void setSubmitEnabled(boolean enabled)
    {
      AbstractTaskEditorPart actionPart = getPart("org.eclipse.mylyn.tasks.ui.editors.parts.actions");
      if ((actionPart instanceof TaskEditorActionPart)) {
        ((TaskEditorActionPart)actionPart).setSubmitEnabled(enabled);
      }
      if ((submitButton != null) && (!submitButton.isDisposed())) {
        submitButton.setEnabled(enabled);
      }
      submitEnabled = enabled;
    }
    
    private void setTaskData(TaskData taskData)
    {
      this.taskData = taskData;
    }
    
    public void showBusy(boolean busy)
    {
      if ((getManagedForm() != null) && (!getManagedForm().getForm().isDisposed()) && (this.busy != busy))
      {
        setSubmitEnabled(!busy);
        CommonUiUtil.setEnabled(editorComposite, !busy);
        this.busy = busy;
      }
    }
    
    public void showEditorBusy(boolean busy)
    {
      getTaskEditor().showBusy(busy);
      refreshDisabled = busy;
    }
    
    private void updateHeaderMessage()
    {
      if (taskData == null) {
        getTaskEditor().setMessage(Messages.AbstractTaskEditorPage_Synchronize_to_retrieve_task_data, 
          2, new HyperlinkAdapter()
          {
            public void linkActivated(HyperlinkEvent e)
            {
              if (synchronizeEditorAction != null) {
                synchronizeEditorAction.run();
              }
            }
          });
      }
      if ((getTaskEditor().getMessage() == null) && 
        (TasksUiPlugin.getTaskList().getTask(task.getRepositoryUrl(), task.getTaskId()) == null)) {
        getTaskEditor().setMessage(Messages.AbstractTaskEditorPage_Add_task_to_tasklist, 
          1, new NotInTaskListListener());
      }
    }
    
    public Control getPartControl()
    {
      return partControl != null ? partControl : super.getPartControl();
    }
    
    private boolean needsFooter()
    {
      return needsFooter;
    }
    
    private void setNeedsFooter(boolean needsFooter)
    {
      this.needsFooter = needsFooter;
    }
    
    private void createFooterContent(Composite parent)
    {
      parent.setLayout(new GridLayout());
    }
    
    public boolean needsSubmit()
    {
      return needsSubmit;
    }
    
    public void setNeedsSubmit(boolean needsSubmit)
    {
      this.needsSubmit = needsSubmit;
    }
    
    public boolean needsSubmitButton()
    {
      return needsSubmitButton;
    }
    
    public void setNeedsSubmitButton(boolean needsSubmitButton)
    {
      this.needsSubmitButton = needsSubmitButton;
    }
    
    public boolean needsPrivateSection()
    {
      return needsPrivateSection;
    }
    
    public void setNeedsPrivateSection(boolean needsPrivateSection)
    {
      this.needsPrivateSection = needsPrivateSection;
    }
    
    public boolean selectReveal(Object object)
    {
      if ((object instanceof TaskEditorOutlineNode))
      {
        TaskEditorOutlineNode node = (TaskEditorOutlineNode)object;
        TaskAttribute attribute = node.getData();
        if (attribute != null)
        {
          super.selectReveal(attribute.getId());
        }
        else
        {
          TaskRelation taskRelation = node.getTaskRelation();
          TaskRepository taskRepository = node.getTaskRepository();
          if ((taskRelation != null) && (taskRepository != null))
          {
            String taskID = taskRelation.getTaskId();
            TasksUiUtil.openTask(taskRepository, taskID);
          }
          else
          {
            EditorUtil.reveal(getManagedForm().getForm(), node.getLabel());
          }
          return true;
        }
      }
      return super.selectReveal(object);
    }
    
    void expandLastComment()
    {
      if ((getManagedForm() == null) || (getManagedForm().getForm().isDisposed())) {
        return;
      }
      if (taskData == null) {
        return;
      }
      List<TaskAttribute> commentAttributes = taskData.getAttributeMapper().getAttributesByType(taskData, 
        "comment");
      if (commentAttributes.size() > 0) {
        selectReveal(((TaskAttribute)commentAttributes.get(commentAttributes.size() - 1)).getId());
      }
    }
  }

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

import org.eclipse.mylyn.internal.tasks.ui.editors.TaskEditorAttributePart;

class AbstractTaskEditorPage$6
  extends TaskEditorPartDescriptor
{
  AbstractTaskEditorPage$6(AbstractTaskEditorPage paramAbstractTaskEditorPage, String $anonymous0)
  {
    super($anonymous0);
  }
  
  public AbstractTaskEditorPart createPart()
  {
    return new TaskEditorAttributePart();
  }
}

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

import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;

class AbstractTaskEditorPage$20$1
  implements Listener
{
  AbstractTaskEditorPage$20$1(AbstractTaskEditorPage.20 param20) {}
  
  public void handleEvent(Event e)
  {
    AbstractTaskEditorPage.20.access$0(this$1).doSubmit();
  }
}

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

import org.eclipse.mylyn.tasks.core.data.TaskDataModelListener;

class AbstractAttributeEditor$1
  extends TaskDataModelListener
{
  AbstractAttributeEditor$1(AbstractAttributeEditor paramAbstractAttributeEditor) {}
  
  /* Error */
  public void attributeChanged(org.eclipse.mylyn.tasks.core.data.TaskDataModelEvent event)
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 40	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor$1:this$0	Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;
    //   4: invokevirtual 45	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor:shouldAutoRefresh	()Z
    //   7: ifeq +69 -> 76
    //   10: aload_0
    //   11: getfield 40	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor$1:this$0	Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;
    //   14: invokevirtual 46	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor:getTaskAttribute	()Lorg/eclipse/mylyn/tasks/core/data/TaskAttribute;
    //   17: aload_1
    //   18: invokevirtual 42	org/eclipse/mylyn/tasks/core/data/TaskDataModelEvent:getTaskAttribute	()Lorg/eclipse/mylyn/tasks/core/data/TaskAttribute;
    //   21: invokevirtual 41	org/eclipse/mylyn/tasks/core/data/TaskAttribute:equals	(Ljava/lang/Object;)Z
    //   24: ifeq +52 -> 76
    //   27: aload_0
    //   28: getfield 40	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor$1:this$0	Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;
    //   31: iconst_1
    //   32: invokestatic 47	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor:access$0	(Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;Z)V
    //   35: aload_0
    //   36: getfield 40	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor$1:this$0	Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;
    //   39: invokevirtual 44	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor:refresh	()V
    //   42: goto +26 -> 68
    //   45: pop
    //   46: aload_0
    //   47: getfield 40	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor$1:this$0	Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;
    //   50: iconst_0
    //   51: invokestatic 47	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor:access$0	(Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;Z)V
    //   54: goto +22 -> 76
    //   57: astore_2
    //   58: aload_0
    //   59: getfield 40	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor$1:this$0	Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;
    //   62: iconst_0
    //   63: invokestatic 47	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor:access$0	(Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;Z)V
    //   66: aload_2
    //   67: athrow
    //   68: aload_0
    //   69: getfield 40	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor$1:this$0	Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;
    //   72: iconst_0
    //   73: invokestatic 47	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor:access$0	(Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;Z)V
    //   76: return
    // Line number table:
    //   Java source line #69	-> byte code offset #0
    //   Java source line #71	-> byte code offset #27
    //   Java source line #72	-> byte code offset #35
    //   Java source line #73	-> byte code offset #45
    //   Java source line #75	-> byte code offset #46
    //   Java source line #74	-> byte code offset #57
    //   Java source line #75	-> byte code offset #58
    //   Java source line #76	-> byte code offset #66
    //   Java source line #75	-> byte code offset #68
    //   Java source line #78	-> byte code offset #76
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	77	0	this	1
    //   0	77	1	event	org.eclipse.mylyn.tasks.core.data.TaskDataModelEvent
    //   57	10	2	localObject	Object
    //   45	1	3	localUnsupportedOperationException	UnsupportedOperationException
    // Exception table:
    //   from	to	target	type
    //   27	42	45	java/lang/UnsupportedOperationException
    //   27	46	57	finally
  }
}

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

import org.eclipse.mylyn.internal.tasks.ui.editors.TaskEditorActionPart;

class AbstractTaskEditorPage$12
  extends TaskEditorPartDescriptor
{
  AbstractTaskEditorPage$12(AbstractTaskEditorPage paramAbstractTaskEditorPage, String $anonymous0)
  {
    super($anonymous0);
  }
  
  public AbstractTaskEditorPart createPart()
  {
    return new TaskEditorActionPart();
  }
}

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

import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.ui.TasksUiUtil;
import org.eclipse.ui.forms.events.HyperlinkAdapter;
import org.eclipse.ui.forms.events.HyperlinkEvent;

class TaskEditor$12$1
  extends HyperlinkAdapter
{
  TaskEditor$12$1(TaskEditor.12 param12, TaskRepository paramTaskRepository) {}
  
  public void linkActivated(HyperlinkEvent e)
  {
    TasksUiUtil.openEditRepositoryWizard(val$taskRepository);
  }
}

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

import org.eclipse.core.runtime.Assert;
import org.eclipse.mylyn.commons.ui.CommonUiUtil;
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.core.data.TaskDataModelListener;
import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.events.DisposeListener;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.forms.FormColors;
import org.eclipse.ui.forms.widgets.FormToolkit;

public abstract class AbstractAttributeEditor
{
  public static final String KEY_TASK_ATTRIBUTE = "org.eclipse.mylyn.tasks.ui.editors.TaskAttribute";
  private Control control;
  private boolean decorationEnabled;
  private Label labelControl;
  private LayoutHint layoutHint;
  private final TaskDataModel manager;
  private final TaskAttribute taskAttribute;
  private boolean readOnly;
  private String description;
  private boolean refreshInProgress;
  private final TaskDataModelListener modelListener = new TaskDataModelListener()
  {
    /* Error */
    public void attributeChanged(org.eclipse.mylyn.tasks.core.data.TaskDataModelEvent event)
    {
      // Byte code:
      //   0: aload_0
      //   1: getfield 40	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor$1:this$0	Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;
      //   4: invokevirtual 45	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor:shouldAutoRefresh	()Z
      //   7: ifeq +69 -> 76
      //   10: aload_0
      //   11: getfield 40	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor$1:this$0	Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;
      //   14: invokevirtual 46	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor:getTaskAttribute	()Lorg/eclipse/mylyn/tasks/core/data/TaskAttribute;
      //   17: aload_1
      //   18: invokevirtual 42	org/eclipse/mylyn/tasks/core/data/TaskDataModelEvent:getTaskAttribute	()Lorg/eclipse/mylyn/tasks/core/data/TaskAttribute;
      //   21: invokevirtual 41	org/eclipse/mylyn/tasks/core/data/TaskAttribute:equals	(Ljava/lang/Object;)Z
      //   24: ifeq +52 -> 76
      //   27: aload_0
      //   28: getfield 40	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor$1:this$0	Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;
      //   31: iconst_1
      //   32: invokestatic 47	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor:access$0	(Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;Z)V
      //   35: aload_0
      //   36: getfield 40	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor$1:this$0	Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;
      //   39: invokevirtual 44	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor:refresh	()V
      //   42: goto +26 -> 68
      //   45: pop
      //   46: aload_0
      //   47: getfield 40	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor$1:this$0	Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;
      //   50: iconst_0
      //   51: invokestatic 47	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor:access$0	(Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;Z)V
      //   54: goto +22 -> 76
      //   57: astore_2
      //   58: aload_0
      //   59: getfield 40	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor$1:this$0	Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;
      //   62: iconst_0
      //   63: invokestatic 47	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor:access$0	(Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;Z)V
      //   66: aload_2
      //   67: athrow
      //   68: aload_0
      //   69: getfield 40	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor$1:this$0	Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;
      //   72: iconst_0
      //   73: invokestatic 47	org/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor:access$0	(Lorg/eclipse/mylyn/tasks/ui/editors/AbstractAttributeEditor;Z)V
      //   76: return
      // Line number table:
      //   Java source line #69	-> byte code offset #0
      //   Java source line #71	-> byte code offset #27
      //   Java source line #72	-> byte code offset #35
      //   Java source line #73	-> byte code offset #45
      //   Java source line #75	-> byte code offset #46
      //   Java source line #74	-> byte code offset #57
      //   Java source line #75	-> byte code offset #58
      //   Java source line #76	-> byte code offset #66
      //   Java source line #75	-> byte code offset #68
      //   Java source line #78	-> byte code offset #76
      // Local variable table:
      //   start	length	slot	name	signature
      //   0	77	0	this	1
      //   0	77	1	event	org.eclipse.mylyn.tasks.core.data.TaskDataModelEvent
      //   57	10	2	localObject	Object
      //   45	1	3	localUnsupportedOperationException	UnsupportedOperationException
      // Exception table:
      //   from	to	target	type
      //   27	42	45	java/lang/UnsupportedOperationException
      //   27	46	57	finally
    }
  };
  private final DisposeListener disposeListener = new DisposeListener()
  {
    public void widgetDisposed(DisposeEvent e)
    {
      getModel().removeModelListener(modelListener);
    }
  };
  
  public AbstractAttributeEditor(TaskDataModel manager, TaskAttribute taskAttribute)
  {
    Assert.isNotNull(manager);
    Assert.isNotNull(taskAttribute);
    this.manager = manager;
    this.taskAttribute = taskAttribute;
    setDecorationEnabled(true);
    setReadOnly(taskAttribute.getMetaData().isReadOnly());
    setDescription(taskAttribute.getMetaData().getValue("task.meta.description"));
  }
  
  protected void attributeChanged()
  {
    if (!refreshInProgress) {
      getModel().attributeChanged(getTaskAttribute());
    }
  }
  
  public abstract void createControl(Composite paramComposite, FormToolkit paramFormToolkit);
  
  public void createLabelControl(Composite composite, FormToolkit toolkit)
  {
    labelControl = toolkit.createLabel(composite, getLabel());
    labelControl.setForeground(toolkit.getColors().getColor("org.eclipse.ui.forms.TITLE"));
  }
  
  @Deprecated
  public void dispose() {}
  
  public TaskDataModel getModel()
  {
    return manager;
  }
  
  protected TaskAttributeMapper getAttributeMapper()
  {
    return getModel().getTaskData().getAttributeMapper();
  }
  
  public Control getControl()
  {
    return control;
  }
  
  public String getLabel()
  {
    String label = getAttributeMapper().getLabel(getTaskAttribute());
    return CommonUiUtil.toLabel(label);
  }
  
  public Label getLabelControl()
  {
    return labelControl;
  }
  
  public LayoutHint getLayoutHint()
  {
    return layoutHint;
  }
  
  public TaskAttribute getTaskAttribute()
  {
    return taskAttribute;
  }
  
  public boolean hasLabel()
  {
    return true;
  }
  
  public boolean isDecorationEnabled()
  {
    return decorationEnabled;
  }
  
  protected void setControl(Control control)
  {
    if ((this.control != null) && (!this.control.isDisposed()))
    {
      this.control.removeDisposeListener(disposeListener);
      getModel().removeModelListener(modelListener);
    }
    this.control = control;
    if (control != null)
    {
      control.setData("org.eclipse.mylyn.tasks.ui.editors.TaskAttribute", taskAttribute);
      control.addDisposeListener(disposeListener);
      getModel().addModelListener(modelListener);
    }
  }
  
  public void setDecorationEnabled(boolean decorationEnabled)
  {
    this.decorationEnabled = decorationEnabled;
  }
  
  public void setLayoutHint(LayoutHint layoutHint)
  {
    this.layoutHint = layoutHint;
  }
  
  public void decorate(Color color)
  {
    if (isDecorationEnabled())
    {
      if ((manager.hasBeenRead()) && (manager.hasIncomingChanges(getTaskAttribute()))) {
        decorateIncoming(color);
      }
      if (manager.hasOutgoingChanges(getTaskAttribute())) {
        decorateOutgoing(color);
      }
    }
  }
  
  protected void decorateOutgoing(Color color)
  {
    if (labelControl != null) {
      labelControl.setText("*" + labelControl.getText());
    }
  }
  
  protected void decorateIncoming(Color color)
  {
    if (getControl() != null) {
      getControl().setBackground(color);
    }
  }
  
  public boolean isReadOnly()
  {
    return readOnly;
  }
  
  public void setReadOnly(boolean readOnly)
  {
    this.readOnly = readOnly;
  }
  
  public void refresh()
  {
    throw new UnsupportedOperationException();
  }
  
  protected boolean shouldAutoRefresh()
  {
    return false;
  }
  
  public String getDescription()
  {
    return description;
  }
  
  public void setDescription(String description)
  {
    this.description = description;
  }
  
  protected void updateLabel()
  {
    Label labelControl = getLabelControl();
    if ((labelControl != null) && (!labelControl.isDisposed())) {
      labelControl.setText(getLabel());
    }
  }
}

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

public class LayoutHint
{
  public static final int DEFAULT_PRIORITY = 10;
  public RowSpan rowSpan;
  public ColumnSpan columnSpan;
  
  public static enum ColumnSpan
  {
    MULTIPLE,  SINGLE;
  }
  
  public static enum RowSpan
  {
    MULTIPLE,  SINGLE;
  }
  
  public LayoutHint(RowSpan rowHint, ColumnSpan columnHint)
  {
    rowSpan = rowHint;
    columnSpan = columnHint;
  }
  
  public LayoutHint(LayoutHint source)
  {
    if (source != null)
    {
      rowSpan = rowSpan;
      columnSpan = columnSpan;
    }
  }
  
  public LayoutHint() {}
  
  public int getPriority()
  {
    if ((columnSpan == null) || (columnSpan == ColumnSpan.SINGLE))
    {
      if ((rowSpan == null) || (rowSpan == RowSpan.SINGLE)) {
        return 10;
      }
      return 20;
    }
    if ((rowSpan == null) || (rowSpan == RowSpan.SINGLE)) {
      return 30;
    }
    return 40;
  }
}

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

import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.action.Separator;
import org.eclipse.jface.viewers.S
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