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

Messages.ContextEditorFormPage_Remove_every_element_not_visible);
    if (confirmed) {
      if (ContextCore.getContextManager().isContextActive()) {
        try
        {
          final Collection<Object> allVisible = InvisibleContextElementsPart.access$4(this$0);
          PlatformUI.getWorkbench().getProgressService().busyCursorWhile(new IRunnableWithProgress()
          {
            public void run(IProgressMonitor monitor)
              throws InvocationTargetException, InterruptedException
            {
              monitor.beginTask(Messages.InvisibleContextElementsPart_Collecting_all_invisible, 
                -1);
              if (allVisible != null)
              {
                final List<IInteractionElement> allToRemove = InvisibleContextElementsPart.access$6(this$0, InvisibleContextElementsPart.access$5(this$0), 
                  allVisible);
                Display.getDefault().asyncExec(new Runnable()
                {
                  public void run()
                  {
                    ContextCorePlugin.getContextManager().deleteElements(allToRemove, true);
                  }
                });
              }
              else
              {
                MessageDialog.openInformation(Display.getCurrent().getActiveShell(), 
                  Messages.ContextEditorFormPage_Remove_Invisible, 
                  Messages.ContextEditorFormPage_No_context_active);
              }
            }
          });
        }
        catch (InvocationTargetException e)
        {
          StatusHandler.log(new Status(4, "org.eclipse.mylyn.context.ui", e.getMessage(), e));
        }
        catch (InterruptedException e)
        {
          StatusHandler.log(new Status(4, "org.eclipse.mylyn.context.ui", e.getMessage(), e));
        }
      } else {
        MessageDialog.openInformation(Display.getCurrent().getActiveShell(), 
          Messages.ContextEditorFormPage_Remove_Invisible, 
          Messages.ContextEditorFormPage_No_context_active);
      }
    }
  }
}

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

import java.util.Collection;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

class InvisibleContextElementsPart$2
  implements IStructuredContentProvider
{
  InvisibleContextElementsPart$2(InvisibleContextElementsPart paramInvisibleContextElementsPart) {}
  
  public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {}
  
  public void dispose() {}
  
  public Object[] getElements(Object inputElement)
  {
    if ((inputElement instanceof Collection)) {
      return ((Collection)inputElement).toArray();
    }
    return new Object[0];
  }
}

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

import org.eclipse.mylyn.internal.tasks.ui.context.RetrieveContextHandler;
import org.eclipse.ui.forms.events.HyperlinkAdapter;
import org.eclipse.ui.forms.events.HyperlinkEvent;

class ContextEditorFormPage$6
  extends HyperlinkAdapter
{
  ContextEditorFormPage$6(ContextEditorFormPage paramContextEditorFormPage) {}
  
  public void linkActivated(HyperlinkEvent e)
  {
    RetrieveContextHandler.run(ContextEditorFormPage.access$3(this$0));
  }
}

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

import org.eclipse.jface.action.IMenuListener;
import org.eclipse.jface.action.IMenuManager;

class ContextEditorFormPage$11$1
  implements IMenuListener
{
  ContextEditorFormPage$11$1(ContextEditorFormPage.11 param11) {}
  
  public void menuAboutToShow(IMenuManager manager)
  {
    ContextEditorFormPage.11.access$0(this$1).fillContextMenu(manager);
  }
}

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

import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;

class InvisibleContextElementsPart$3
  extends SelectionAdapter
{
  InvisibleContextElementsPart$3(InvisibleContextElementsPart paramInvisibleContextElementsPart, InvisibleContextElementsPart.InteractionElementTableSorter paramInteractionElementTableSorter, int paramInt, Table paramTable, TableColumn paramTableColumn) {}
  
  public void widgetSelected(SelectionEvent e)
  {
    val$invisibleTableSorter.setCriteria(val$index);
    val$table.setSortColumn(val$column);
    if (val$invisibleTableSorter.isDecending()) {
      val$table.setSortDirection(128);
    } else {
      val$table.setSortDirection(1024);
    }
    InvisibleContextElementsPart.access$7(this$0).refresh();
  }
}

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

import org.eclipse.mylyn.internal.tasks.ui.context.CopyContextHandler;
import org.eclipse.ui.forms.events.HyperlinkAdapter;
import org.eclipse.ui.forms.events.HyperlinkEvent;

class ContextEditorFormPage$7
  extends HyperlinkAdapter
{
  ContextEditorFormPage$7(ContextEditorFormPage paramContextEditorFormPage) {}
  
  public void linkActivated(HyperlinkEvent e)
  {
    CopyContextHandler.run(ContextEditorFormPage.access$3(this$0));
  }
}

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

import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerSorter;

final class InvisibleContextElementsPart$InteractionElementTableSorter
  extends ViewerSorter
{
  private int criteria = 0;
  private boolean isDecending = true;
  private final ITableLabelProvider labelProvider;
  
  public InvisibleContextElementsPart$InteractionElementTableSorter(InvisibleContextElementsPart paramInvisibleContextElementsPart, ITableLabelProvider labelProvider)
  {
    this.labelProvider = labelProvider;
  }
  
  public int compare(Viewer viewer, Object e1, Object e2)
  {
    int result = 0;
    
    String value1 = labelProvider.getColumnText(e1, criteria);
    String value2 = labelProvider.getColumnText(e2, criteria);
    if ((value1 == null) && (value2 != null)) {
      result = -1;
    } else if ((value1 != null) && (value2 == null)) {
      result = 1;
    } else if ((value1 != null) && (value2 != null)) {
      result = value1.compareTo(value2);
    }
    return isDecending() ? result * -1 : result;
  }
  
  public boolean isDecending()
  {
    return isDecending;
  }
  
  public void setCriteria(int index)
  {
    if (criteria == index) {
      isDecending = (!isDecending);
    } else {
      isDecending = false;
    }
    criteria = index;
  }
}

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

import java.lang.reflect.InvocationTargetException;
import java.util.Collection;
import java.util.List;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.mylyn.context.core.IInteractionElement;
import org.eclipse.mylyn.internal.context.core.ContextCorePlugin;
import org.eclipse.mylyn.internal.context.core.InteractionContextManager;
import org.eclipse.swt.widgets.Display;

class InvisibleContextElementsPart$RemoveInvisibleAction$1
  implements IRunnableWithProgress
{
  InvisibleContextElementsPart$RemoveInvisibleAction$1(InvisibleContextElementsPart.RemoveInvisibleAction paramRemoveInvisibleAction, Collection paramCollection) {}
  
  public void run(IProgressMonitor monitor)
    throws InvocationTargetException, InterruptedException
  {
    monitor.beginTask(Messages.InvisibleContextElementsPart_Collecting_all_invisible, 
      -1);
    if (val$allVisible != null)
    {
      final List<IInteractionElement> allToRemove = InvisibleContextElementsPart.access$6(InvisibleContextElementsPart.RemoveInvisibleAction.access$0(this$1), InvisibleContextElementsPart.access$5(InvisibleContextElementsPart.RemoveInvisibleAction.access$0(this$1)), 
        val$allVisible);
      Display.getDefault().asyncExec(new Runnable()
      {
        public void run()
        {
          ContextCorePlugin.getContextManager().deleteElements(allToRemove, true);
        }
      });
    }
    else
    {
      MessageDialog.openInformation(Display.getCurrent().getActiveShell(), 
        Messages.ContextEditorFormPage_Remove_Invisible, 
        Messages.ContextEditorFormPage_No_context_active);
    }
  }
}

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

import java.util.Collection;
import java.util.List;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.mylyn.context.core.IInteractionContext;
import org.eclipse.mylyn.context.core.IInteractionElement;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Table;
import org.eclipse.ui.forms.widgets.Section;

class InvisibleContextElementsPart$4
  extends Job
{
  InvisibleContextElementsPart$4(InvisibleContextElementsPart paramInvisibleContextElementsPart, String $anonymous0, IInteractionContext paramIInteractionContext, Collection paramCollection)
  {
    super($anonymous0);
  }
  
  protected IStatus run(IProgressMonitor monitor)
  {
    monitor.beginTask(Messages.InvisibleContextElementsPart_Computing_invisible_elements, 
      -1);
    final List<IInteractionElement> allInvisibleElements = InvisibleContextElementsPart.access$6(this$0, val$context, val$allVisible);
    Display.getDefault().asyncExec(new Runnable()
    {
      public void run()
      {
        if ((InvisibleContextElementsPart.access$8(this$0) != null) && (!InvisibleContextElementsPart.access$8(this$0).isDisposed()))
        {
          InvisibleContextElementsPart.access$8(this$0).setText(NLS.bind(Messages.InvisibleContextElementsPart_Invisible_elements, 
            Integer.valueOf(allInvisibleElements.size())));
          InvisibleContextElementsPart.access$8(this$0).layout();
          if (allInvisibleElements.size() == 0)
          {
            InvisibleContextElementsPart.access$8(this$0).setExpanded(false);
            InvisibleContextElementsPart.access$8(this$0).setEnabled(false);
          }
          else
          {
            InvisibleContextElementsPart.access$8(this$0).setEnabled(true);
          }
        }
        if ((InvisibleContextElementsPart.access$7(this$0) != null) && (!InvisibleContextElementsPart.access$7(this$0).getTable().isDisposed())) {
          InvisibleContextElementsPart.access$7(this$0).setInput(allInvisibleElements);
        }
      }
    });
    return Status.OK_STATUS;
  }
}

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

import org.eclipse.mylyn.context.core.AbstractContextListener;
import org.eclipse.mylyn.context.core.ContextChangeEvent;
import org.eclipse.mylyn.internal.context.core.ContextCorePlugin;
import org.eclipse.mylyn.internal.context.core.InteractionContextManager;
import org.eclipse.mylyn.internal.context.core.LocalContextStore;
import org.eclipse.mylyn.tasks.core.ITask;

class ContextEditorFormPage$1
  extends AbstractContextListener
{
  ContextEditorFormPage$1(ContextEditorFormPage paramContextEditorFormPage) {}
  
  public void contextChanged(ContextChangeEvent event)
  {
    switch (event.getEventKind())
    {
    case CLEARED: 
      if (ContextEditorFormPage.access$0(this$0))
      {
        ContextEditorFormPage.access$1(this$0).setWrappedContext(ContextCorePlugin.getContextManager().getActiveContext());
        ContextEditorFormPage.access$2(this$0);
      }
      break;
    case DEACTIVATED: 
      if (ContextEditorFormPage.access$1(this$0).isForSameTaskAs(event.getContext())) {
        ContextEditorFormPage.access$1(this$0).setWrappedContext(ContextCorePlugin.getContextStore().loadContext(
          ContextEditorFormPage.access$3(this$0).getHandleIdentifier()));
      }
      break;
    case ELEMENTS_DELETED: 
      if (ContextEditorFormPage.access$1(this$0).isForSameTaskAs(event.getContextHandle()))
      {
        ContextEditorFormPage.access$1(this$0).setWrappedContext(ContextCorePlugin.getContextStore().loadContext(
          ContextEditorFormPage.access$3(this$0).getHandleIdentifier()));
        ContextEditorFormPage.access$2(this$0);
      }
      break;
    case INTEREST_CHANGED: 
    case LANDMARKS_ADDED: 
    case LANDMARKS_REMOVED: 
    case PRE_ACTIVATED: 
      if (ContextEditorFormPage.access$0(this$0)) {
        ContextEditorFormPage.access$4(this$0, event.getElements());
      }
      break;
    }
  }
}

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

import org.eclipse.mylyn.internal.tasks.ui.context.ClearContextHandler;
import org.eclipse.ui.forms.events.HyperlinkAdapter;
import org.eclipse.ui.forms.events.HyperlinkEvent;

class ContextEditorFormPage$8
  extends HyperlinkAdapter
{
  ContextEditorFormPage$8(ContextEditorFormPage paramContextEditorFormPage) {}
  
  public void linkActivated(HyperlinkEvent e)
  {
    ClearContextHandler.run(ContextEditorFormPage.access$3(this$0));
  }
}

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

import org.eclipse.jface.viewers.StructuredViewer;
import org.eclipse.mylyn.commons.workbench.DelayedRefreshJob;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.ui.navigator.CommonViewer;

class ContextEditorFormPage$ContextEditorDelayedRefreshJob
  extends DelayedRefreshJob
{
  public ContextEditorFormPage$ContextEditorDelayedRefreshJob(ContextEditorFormPage paramContextEditorFormPage, StructuredViewer treeViewer, String name)
  {
    super(treeViewer, name);
  }
  
  protected void doRefresh(Object[] items)
  {
    if ((ContextEditorFormPage.access$5(this$0) != null) && (!ContextEditorFormPage.access$5(this$0).getTree().isDisposed()))
    {
      ContextEditorFormPage.access$5(this$0).refresh();
      if (items != null)
      {
        Object[] arrayOfObject;
        int j = (arrayOfObject = items).length;
        for (int i = 0; i < j; i++)
        {
          Object item = arrayOfObject[i];
          updateExpansionState(item);
        }
      }
      else
      {
        updateExpansionState(null);
      }
    }
    if (ContextEditorFormPage.access$6(this$0) != null) {
      ContextEditorFormPage.access$6(this$0).updateInvisibleElementsSection();
    }
  }
  
  /* Error */
  protected void updateExpansionState(Object item)
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 85	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage$ContextEditorDelayedRefreshJob:this$0	Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;
    //   4: invokestatic 91	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage:access$5	(Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;)Lorg/eclipse/ui/navigator/CommonViewer;
    //   7: ifnull +145 -> 152
    //   10: aload_0
    //   11: getfield 85	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage$ContextEditorDelayedRefreshJob:this$0	Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;
    //   14: invokestatic 91	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage:access$5	(Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;)Lorg/eclipse/ui/navigator/CommonViewer;
    //   17: invokevirtual 99	org/eclipse/ui/navigator/CommonViewer:getTree	()Lorg/eclipse/swt/widgets/Tree;
    //   20: invokevirtual 94	org/eclipse/swt/widgets/Tree:isDisposed	()Z
    //   23: ifne +129 -> 152
    //   26: aload_0
    //   27: getfield 85	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage$ContextEditorDelayedRefreshJob:this$0	Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;
    //   30: invokestatic 91	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage:access$5	(Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;)Lorg/eclipse/ui/navigator/CommonViewer;
    //   33: invokevirtual 99	org/eclipse/ui/navigator/CommonViewer:getTree	()Lorg/eclipse/swt/widgets/Tree;
    //   36: iconst_0
    //   37: invokevirtual 95	org/eclipse/swt/widgets/Tree:setRedraw	(Z)V
    //   40: aload_1
    //   41: ifnonnull +16 -> 57
    //   44: aload_0
    //   45: getfield 85	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage$ContextEditorDelayedRefreshJob:this$0	Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;
    //   48: invokestatic 91	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage:access$5	(Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;)Lorg/eclipse/ui/navigator/CommonViewer;
    //   51: invokevirtual 96	org/eclipse/ui/navigator/CommonViewer:expandAll	()V
    //   54: goto +84 -> 138
    //   57: aload_1
    //   58: ifnull +80 -> 138
    //   61: aload_1
    //   62: instanceof 41
    //   65: ifeq +73 -> 138
    //   68: aload_1
    //   69: checkcast 41	org/eclipse/mylyn/context/core/IInteractionElement
    //   72: astore_2
    //   73: invokestatic 88	org/eclipse/mylyn/internal/context/core/ContextCorePlugin:getDefault	()Lorg/eclipse/mylyn/internal/context/core/ContextCorePlugin;
    //   76: aload_2
    //   77: invokeinterface 100 1 0
    //   82: invokevirtual 89	org/eclipse/mylyn/internal/context/core/ContextCorePlugin:getStructureBridge	(Ljava/lang/String;)Lorg/eclipse/mylyn/context/core/AbstractContextStructureBridge;
    //   85: astore_3
    //   86: aload_3
    //   87: aload_2
    //   88: invokeinterface 101 1 0
    //   93: invokevirtual 87	org/eclipse/mylyn/context/core/AbstractContextStructureBridge:getObjectForHandle	(Ljava/lang/String;)Ljava/lang/Object;
    //   96: astore 4
    //   98: aload 4
    //   100: ifnull +38 -> 138
    //   103: aload_0
    //   104: getfield 85	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage$ContextEditorDelayedRefreshJob:this$0	Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;
    //   107: invokestatic 91	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage:access$5	(Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;)Lorg/eclipse/ui/navigator/CommonViewer;
    //   110: aload 4
    //   112: iconst_m1
    //   113: invokevirtual 98	org/eclipse/ui/navigator/CommonViewer:expandToLevel	(Ljava/lang/Object;I)V
    //   116: goto +22 -> 138
    //   119: astore 5
    //   121: aload_0
    //   122: getfield 85	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage$ContextEditorDelayedRefreshJob:this$0	Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;
    //   125: invokestatic 91	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage:access$5	(Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;)Lorg/eclipse/ui/navigator/CommonViewer;
    //   128: invokevirtual 99	org/eclipse/ui/navigator/CommonViewer:getTree	()Lorg/eclipse/swt/widgets/Tree;
    //   131: iconst_1
    //   132: invokevirtual 95	org/eclipse/swt/widgets/Tree:setRedraw	(Z)V
    //   135: aload 5
    //   137: athrow
    //   138: aload_0
    //   139: getfield 85	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage$ContextEditorDelayedRefreshJob:this$0	Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;
    //   142: invokestatic 91	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage:access$5	(Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;)Lorg/eclipse/ui/navigator/CommonViewer;
    //   145: invokevirtual 99	org/eclipse/ui/navigator/CommonViewer:getTree	()Lorg/eclipse/swt/widgets/Tree;
    //   148: iconst_1
    //   149: invokevirtual 95	org/eclipse/swt/widgets/Tree:setRedraw	(Z)V
    //   152: return
    // Line number table:
    //   Java source line #121	-> byte code offset #0
    //   Java source line #123	-> byte code offset #26
    //   Java source line #124	-> byte code offset #40
    //   Java source line #125	-> byte code offset #44
    //   Java source line #126	-> byte code offset #57
    //   Java source line #127	-> byte code offset #68
    //   Java source line #128	-> byte code offset #73
    //   Java source line #129	-> byte code offset #76
    //   Java source line #128	-> byte code offset #85
    //   Java source line #130	-> byte code offset #86
    //   Java source line #131	-> byte code offset #98
    //   Java source line #132	-> byte code offset #103
    //   Java source line #135	-> byte code offset #119
    //   Java source line #136	-> byte code offset #121
    //   Java source line #137	-> byte code offset #135
    //   Java source line #136	-> byte code offset #138
    //   Java source line #139	-> byte code offset #152
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	153	0	this	ContextEditorDelayedRefreshJob
    //   0	153	1	item	Object
    //   72	16	2	node	org.eclipse.mylyn.context.core.IInteractionElement
    //   85	2	3	structureBridge	org.eclipse.mylyn.context.core.AbstractContextStructureBridge
    //   96	15	4	objectToRefresh	Object
    //   119	17	5	localObject1	Object
    // Exception table:
    //   from	to	target	type
    //   26	119	119	finally
  }
}

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

import org.eclipse.jface.action.Action;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.ui.navigator.CommonViewer;

class ContextEditorFormPage$10
  extends Action
{
  ContextEditorFormPage$10(ContextEditorFormPage paramContextEditorFormPage, String $anonymous0, ImageDescriptor $anonymous1)
  {
    super($anonymous0, $anonymous1);
  }
  
  public void run()
  {
    if ((ContextEditorFormPage.access$5(this$0) != null) && (ContextEditorFormPage.access$5(this$0).getTree() != null) && (!ContextEditorFormPage.access$5(this$0).getTree().isDisposed())) {
      ContextEditorFormPage.access$5(this$0).expandAll();
    }
  }
}

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

import java.util.Collection;
import java.util.List;
import org.eclipse.mylyn.context.core.IInteractionContext;
import org.eclipse.mylyn.context.core.IInteractionContextScaling;
import org.eclipse.mylyn.context.core.IInteractionElement;
import org.eclipse.mylyn.monitor.core.InteractionEvent;
import org.eclipse.mylyn.tasks.core.ITask;

class ContextWrapper
  implements IInteractionContext
{
  private IInteractionContext wrappedContext;
  private final ITask task;
  
  public ContextWrapper(IInteractionContext context, ITask task)
  {
    wrappedContext = context;
    this.task = task;
  }
  
  public boolean isForSameTaskAs(IInteractionContext context)
  {
    return (context != null) && (isForSameTaskAs(context.getHandleIdentifier()));
  }
  
  public boolean isForSameTaskAs(String contextHandle)
  {
    return (contextHandle != null) && (contextHandle.equals(task.getHandleIdentifier()));
  }
  
  public IInteractionContext getWrappedContext()
  {
    return wrappedContext;
  }
  
  public void setWrappedContext(IInteractionContext wrappedContext)
  {
    this.wrappedContext = wrappedContext;
  }
  
  public String getHandleIdentifier()
  {
    return wrappedContext.getHandleIdentifier();
  }
  
  public List<InteractionEvent> getInteractionHistory()
  {
    return wrappedContext.getInteractionHistory();
  }
  
  public boolean isInteresting(String elementHandle)
  {
    return wrappedContext.isInteresting(elementHandle);
  }
  
  public List<IInteractionElement> getInteresting()
  {
    return wrappedContext.getInteresting();
  }
  
  public List<IInteractionElement> getLandmarks()
  {
    return wrappedContext.getLandmarks();
  }
  
  public IInteractionElement get(String element)
  {
    return wrappedContext.get(element);
  }
  
  public IInteractionElement getActiveNode()
  {
    return wrappedContext.getActiveNode();
  }
  
  public void delete(IInteractionElement element)
  {
    wrappedContext.delete(element);
  }
  
  public void delete(Collection<IInteractionElement> elements)
  {
    wrappedContext.delete(elements);
  }
  
  public void updateElementHandle(IInteractionElement element, String newHandle)
  {
    wrappedContext.updateElementHandle(element, newHandle);
  }
  
  public List<IInteractionElement> getAllElements()
  {
    return wrappedContext.getAllElements();
  }
  
  public IInteractionContextScaling getScaling()
  {
    return wrappedContext.getScaling();
  }
  
  public String getContentLimitedTo()
  {
    return wrappedContext.getContentLimitedTo();
  }
  
  public void setContentLimitedTo(String contentLimitedTo)
  {
    wrappedContext.setContentLimitedTo(contentLimitedTo);
  }
}

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

import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Composite;

class ContextEditorFormPage$2
  extends Composite
{
  ContextEditorFormPage$2(ContextEditorFormPage paramContextEditorFormPage, Composite $anonymous0, int $anonymous1)
  {
    super($anonymous0, $anonymous1);
  }
  
  public Point computeSize(int widhtHint, int heigtHint, boolean changed)
  {
    Rectangle clientArea = getClientArea();
    return super.computeSize(widhtHint, height, changed);
  }
}

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

import org.eclipse.jface.action.Action;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.ui.navigator.CommonViewer;

class ContextEditorFormPage$9
  extends Action
{
  ContextEditorFormPage$9(ContextEditorFormPage paramContextEditorFormPage, String $anonymous0, ImageDescriptor $anonymous1)
  {
    super($anonymous0, $anonymous1);
  }
  
  public void run()
  {
    if ((ContextEditorFormPage.access$5(this$0) != null) && (ContextEditorFormPage.access$5(this$0).getTree() != null) && (!ContextEditorFormPage.access$5(this$0).getTree().isDisposed())) {
      ContextEditorFormPage.access$5(this$0).collapseAll();
    }
  }
}

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

import org.eclipse.jface.action.IMenuListener;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.MenuManager;

class ContextEditorFormPage$11
  extends MenuManager
{
  private final IMenuListener listener;
  
  ContextEditorFormPage$11(ContextEditorFormPage paramContextEditorFormPage, String $anonymous0)
  {
    super($anonymous0);
    listener = new IMenuListener()
    {
      public void menuAboutToShow(IMenuManager manager)
      {
        this$0.fillContextMenu(manager);
      }
    };
    addMenuListener(listener);
  }
  
  public void addMenuListener(IMenuListener listener)
  {
    super.removeMenuListener(this.listener);
    super.addMenuListener(listener);
    super.addMenuListener(this.listener);
  }
}

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

import java.util.List;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IMenuListener;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.action.Separator;
import org.eclipse.jface.action.ToolBarManager;
import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.StructuredViewer;
import org.eclipse.mylyn.commons.ui.CommonImages;
import org.eclipse.mylyn.commons.workbench.DelayedRefreshJob;
import org.eclipse.mylyn.context.core.AbstractContextListener;
import org.eclipse.mylyn.context.core.ContextChangeEvent;
import org.eclipse.mylyn.context.core.ContextCore;
import org.eclipse.mylyn.context.core.IInteractionContextManager;
import org.eclipse.mylyn.context.core.IInteractionElement;
import org.eclipse.mylyn.internal.context.core.ContextCorePlugin;
import org.eclipse.mylyn.internal.context.core.InteractionContextManager;
import org.eclipse.mylyn.internal.context.core.LocalContextStore;
import org.eclipse.mylyn.internal.tasks.ui.context.AttachContextHandler;
import org.eclipse.mylyn.internal.tasks.ui.context.ClearContextHandler;
import org.eclipse.mylyn.internal.tasks.ui.context.CopyContextHandler;
import org.eclipse.mylyn.internal.tasks.ui.context.RetrieveContextHandler;
import org.eclipse.mylyn.internal.tasks.ui.util.AttachmentUtil;
import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.mylyn.tasks.core.ITaskActivityManager;
import org.eclipse.mylyn.tasks.ui.TasksUi;
import org.eclipse.mylyn.tasks.ui.TasksUiImages;
import org.eclipse.mylyn.tasks.ui.editors.TaskEditorInput;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.GridData;
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.swt.widgets.Menu;
import org.eclipse.swt.widgets.Scale;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.ui.IWorkbenchPartSite;
import org.eclipse.ui.forms.IManagedForm;
import org.eclipse.ui.forms.editor.FormEditor;
import org.eclipse.ui.forms.editor.FormPage;
import org.eclipse.ui.forms.events.HyperlinkAdapter;
import org.eclipse.ui.forms.events.HyperlinkEvent;
import org.eclipse.ui.forms.events.IHyperlinkListener;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.Hyperlink;
import org.eclipse.ui.forms.widgets.ImageHyperlink;
import org.eclipse.ui.forms.widgets.ScrolledForm;
import org.eclipse.ui.forms.widgets.Section;
import org.eclipse.ui.navigator.CommonViewer;

public class ContextEditorFormPage
  extends FormPage
{
  private static final int SCALE_STEPS = 14;
  public static final String ID_VIEWER = "org.eclipse.mylyn.context.ui.navigator.context";
  private ScrolledForm form;
  private Composite sectionClient;
  private FormToolkit toolkit;
  private CommonViewer commonViewer;
  private ScalableInterestFilter interestFilter;
  private Scale doiScale;
  private ITask task;
  
  private class ContextEditorDelayedRefreshJob
    extends DelayedRefreshJob
  {
    public ContextEditorDelayedRefreshJob(StructuredViewer treeViewer, String name)
    {
      super(name);
    }
    
    protected void doRefresh(Object[] items)
    {
      if ((commonViewer != null) && (!commonViewer.getTree().isDisposed()))
      {
        commonViewer.refresh();
        if (items != null)
        {
          Object[] arrayOfObject;
          int j = (arrayOfObject = items).length;
          for (int i = 0; i < j; i++)
          {
            Object item = arrayOfObject[i];
            updateExpansionState(item);
          }
        }
        else
        {
          updateExpansionState(null);
        }
      }
      if (invisiblePart != null) {
        invisiblePart.updateInvisibleElementsSection();
      }
    }
    
    /* Error */
    protected void updateExpansionState(Object item)
    {
      // Byte code:
      //   0: aload_0
      //   1: getfield 85	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage$ContextEditorDelayedRefreshJob:this$0	Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;
      //   4: invokestatic 91	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage:access$5	(Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;)Lorg/eclipse/ui/navigator/CommonViewer;
      //   7: ifnull +145 -> 152
      //   10: aload_0
      //   11: getfield 85	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage$ContextEditorDelayedRefreshJob:this$0	Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;
      //   14: invokestatic 91	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage:access$5	(Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;)Lorg/eclipse/ui/navigator/CommonViewer;
      //   17: invokevirtual 99	org/eclipse/ui/navigator/CommonViewer:getTree	()Lorg/eclipse/swt/widgets/Tree;
      //   20: invokevirtual 94	org/eclipse/swt/widgets/Tree:isDisposed	()Z
      //   23: ifne +129 -> 152
      //   26: aload_0
      //   27: getfield 85	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage$ContextEditorDelayedRefreshJob:this$0	Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;
      //   30: invokestatic 91	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage:access$5	(Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;)Lorg/eclipse/ui/navigator/CommonViewer;
      //   33: invokevirtual 99	org/eclipse/ui/navigator/CommonViewer:getTree	()Lorg/eclipse/swt/widgets/Tree;
      //   36: iconst_0
      //   37: invokevirtual 95	org/eclipse/swt/widgets/Tree:setRedraw	(Z)V
      //   40: aload_1
      //   41: ifnonnull +16 -> 57
      //   44: aload_0
      //   45: getfield 85	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage$ContextEditorDelayedRefreshJob:this$0	Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;
      //   48: invokestatic 91	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage:access$5	(Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;)Lorg/eclipse/ui/navigator/CommonViewer;
      //   51: invokevirtual 96	org/eclipse/ui/navigator/CommonViewer:expandAll	()V
      //   54: goto +84 -> 138
      //   57: aload_1
      //   58: ifnull +80 -> 138
      //   61: aload_1
      //   62: instanceof 41
      //   65: ifeq +73 -> 138
      //   68: aload_1
      //   69: checkcast 41	org/eclipse/mylyn/context/core/IInteractionElement
      //   72: astore_2
      //   73: invokestatic 88	org/eclipse/mylyn/internal/context/core/ContextCorePlugin:getDefault	()Lorg/eclipse/mylyn/internal/context/core/ContextCorePlugin;
      //   76: aload_2
      //   77: invokeinterface 100 1 0
      //   82: invokevirtual 89	org/eclipse/mylyn/internal/context/core/ContextCorePlugin:getStructureBridge	(Ljava/lang/String;)Lorg/eclipse/mylyn/context/core/AbstractContextStructureBridge;
      //   85: astore_3
      //   86: aload_3
      //   87: aload_2
      //   88: invokeinterface 101 1 0
      //   93: invokevirtual 87	org/eclipse/mylyn/context/core/AbstractContextStructureBridge:getObjectForHandle	(Ljava/lang/String;)Ljava/lang/Object;
      //   96: astore 4
      //   98: aload 4
      //   100: ifnull +38 -> 138
      //   103: aload_0
      //   104: getfield 85	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage$ContextEditorDelayedRefreshJob:this$0	Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;
      //   107: invokestatic 91	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage:access$5	(Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;)Lorg/eclipse/ui/navigator/CommonViewer;
      //   110: aload 4
      //   112: iconst_m1
      //   113: invokevirtual 98	org/eclipse/ui/navigator/CommonViewer:expandToLevel	(Ljava/lang/Object;I)V
      //   116: goto +22 -> 138
      //   119: astore 5
      //   121: aload_0
      //   122: getfield 85	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage$ContextEditorDelayedRefreshJob:this$0	Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;
      //   125: invokestatic 91	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage:access$5	(Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;)Lorg/eclipse/ui/navigator/CommonViewer;
      //   128: invokevirtual 99	org/eclipse/ui/navigator/CommonViewer:getTree	()Lorg/eclipse/swt/widgets/Tree;
      //   131: iconst_1
      //   132: invokevirtual 95	org/eclipse/swt/widgets/Tree:setRedraw	(Z)V
      //   135: aload 5
      //   137: athrow
      //   138: aload_0
      //   139: getfield 85	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage$ContextEditorDelayedRefreshJob:this$0	Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;
      //   142: invokestatic 91	org/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage:access$5	(Lorg/eclipse/mylyn/internal/context/tasks/ui/editors/ContextEditorFormPage;)Lorg/eclipse/ui/navigator/CommonViewer;
      //   145: invokevirtual 99	org/eclipse/ui/na
1 2 3 4 5

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-2017. Infinite Loop Ltd