org.eclipse.team.ui_3.6.101.R37x_v20111109-0800

me(), currentPageContainer.getSource());
      }
    }
  }
  
  protected PageSite initPage(IPageBookViewPage page)
  {
    try
    {
      PageSite site = new PageSite(getViewSite());
      page.init(site);
      return site;
    }
    catch (PartInitException e)
    {
      TeamUIPlugin.log(e);
    }
    return null;
  }
  
  public IHistoryPage showHistoryFor(Object object, boolean force)
  {
    return showHistoryPageFor(object, true, force, null);
  }
  
  public IHistoryPage showHistoryPageFor(Object object, boolean refresh, boolean force, IHistoryPageSource pageSource)
  {
    if (Policy.DEBUG_HISTORY)
    {
      String time = new SimpleDateFormat("m:ss.SSS").format(new Date(System.currentTimeMillis()));
      System.out.println(time + ": GenericHistoryView#showHistoryPageFor, the object to show is: " + object);
    }
    if (!getSite().getPage().isPartVisible(this)) {
      return null;
    }
    pageSource = getPageSourceFor(object, pageSource);
    if ((pageSource == null) || (!pageSource.canShowHistoryFor(object))) {
      return null;
    }
    IHistoryPage existingPage = checkForExistingPage(object, refresh, force, pageSource);
    if (existingPage != null) {
      return existingPage;
    }
    if ((isViewPinned()) && (!force)) {
      return handlePinnedView(object, refresh, pageSource);
    }
    PageContainer tempPageContainer = null;
    if ((currentPageContainer != null) && (currentPageContainer.canShow(object, pageSource))) {
      tempPageContainer = currentPageContainer;
    } else {
      tempPageContainer = createPage(pageSource, object);
    }
    IHistoryPage historyPage = (IHistoryPage)tempPageContainer.getPage();
    if (Policy.DEBUG_HISTORY)
    {
      String time = new SimpleDateFormat("m:ss.SSS").format(new Date(System.currentTimeMillis()));
      System.out.println(time + ": GenericHistoryView#showHistoryPageFor, the page to show the history is: " + historyPage);
    }
    historyPage.setInput(object);
    ((HistoryPage)historyPage).setHistoryView(this);
    setContentDescription(historyPage.getName());
    showPageRec(tempPageContainer);
    return historyPage;
  }
  
  private IHistoryPageSource getPageSourceFor(Object object, IHistoryPageSource pageSource)
  {
    if ((object == null) || (pageSource != null)) {
      return pageSource;
    }
    IResource resource = Utils.getResource(object);
    if (resource == null) {
      return (IHistoryPageSource)Utils.getAdapter(object, IHistoryPageSource.class);
    }
    if (resource.getProject() == null) {
      return null;
    }
    RepositoryProvider teamProvider = RepositoryProvider.getProvider(resource.getProject());
    if (teamProvider == null) {
      return LocalHistoryPageSource.getInstance();
    }
    IFileHistoryProvider fileHistory = teamProvider.getFileHistoryProvider();
    if (fileHistory != null)
    {
      IHistoryPageSource source = (IHistoryPageSource)Utils.getAdapter(fileHistory, IHistoryPageSource.class, true);
      if (source != null) {
        return source;
      }
    }
    return (IHistoryPageSource)Utils.getAdapter(teamProvider, IHistoryPageSource.class, true);
  }
  
  private IHistoryPage handlePinnedView(Object object, boolean refresh, IHistoryPageSource source)
  {
    try
    {
      GenericHistoryView historyView = findUnpinnedHistoryView();
      if (historyView != null)
      {
        getSite().getPage().activate(historyView);
        return historyView.showHistoryPageFor(object, refresh, true, source);
      }
      String id = "org.eclipse.team.ui.GenericHistoryView" + System.currentTimeMillis();
      IViewPart view = getSite().getPage().showView("org.eclipse.team.ui.GenericHistoryView", id, 3);
      getSite().getPage().activate(view);
      if ((view instanceof GenericHistoryView)) {
        return ((GenericHistoryView)view).showHistoryPageFor(object, refresh, true, source);
      }
    }
    catch (PartInitException localPartInitException) {}
    return null;
  }
  
  private IHistoryPage checkForExistingPage(Object object, boolean refresh, boolean thisViewOnly, IHistoryPageSource pageSource)
  {
    IHistoryPage tempPage = checkForExistingPage(object, refresh, pageSource);
    if ((tempPage != null) || (thisViewOnly)) {
      return tempPage;
    }
    tempPage = searchHistoryViewsForObject(object, refresh, pageSource);
    if (tempPage != null) {
      getSite().getPage().bringToTop((IWorkbenchPart)tempPage.getHistoryView());
    }
    return tempPage;
  }
  
  private IHistoryPage checkForExistingPage(Object object, boolean refresh, IHistoryPageSource pageSource)
  {
    if ((currentPageContainer != null) && 
      (currentPageContainer.matches(object, pageSource)))
    {
      IHistoryPage tempPage = (IHistoryPage)currentPageContainer.getPage();
      if (refresh) {
        tempPage.refresh();
      }
      return tempPage;
    }
    return null;
  }
  
  private IHistoryPage searchHistoryViewsForObject(Object object, boolean refresh, IHistoryPageSource pageSource)
  {
    IWorkbenchPage page = getSite().getPage();
    IViewReference[] historyViews = page.getViewReferences();
    for (int i = 0; i < historyViews.length; i++) {
      if (historyViews[i].getId().equals("org.eclipse.team.ui.GenericHistoryView"))
      {
        IViewPart historyView = historyViews[i].getView(true);
        if ((historyView instanceof GenericHistoryView))
        {
          GenericHistoryView ghv = (GenericHistoryView)historyView;
          IHistoryPage historyPage = ghv.checkForExistingPage(object, refresh, pageSource);
          if (historyPage != null) {
            return historyPage;
          }
        }
      }
    }
    return null;
  }
  
  public GenericHistoryView findUnpinnedHistoryView()
  {
    IWorkbenchPage page = getSite().getPage();
    IViewReference[] historyViews = page.getViewReferences();
    for (int i = 0; i < historyViews.length; i++) {
      if (historyViews[i].getId().equals("org.eclipse.team.ui.GenericHistoryView"))
      {
        IViewPart historyView = historyViews[i].getView(false);
        if (!((GenericHistoryView)historyView).isViewPinned()) {
          return (GenericHistoryView)historyView;
        }
      }
    }
    return null;
  }
  
  boolean isViewPinned()
  {
    return viewPinned;
  }
  
  private PageContainer createPage(IHistoryPageSource source, Object object)
  {
    Page page = source.createPage(object);
    PageSite site = initPage(page);
    ((IHistoryPage)page).setSite(new WorkbenchHistoryPageSite(this, page.getSite()));
    page.createControl(book);
    PageContainer container = new PageContainer(page, source);
    container.setSubBars((SubActionBars)site.getActionBars());
    return container;
  }
  
  protected PageContainer createDefaultPage(PageBook book)
  {
    GenericHistoryViewDefaultPage page = new GenericHistoryViewDefaultPage();
    PageSite site = initPage(page);
    page.createControl(book);
    PageContainer container = new PageContainer(page, null);
    container.setSubBars((SubActionBars)site.getActionBars());
    return container;
  }
  
  protected void editorActivated(IEditorPart editor)
  {
    if ((editor != null) && (!checkIfPageIsVisible())) {
      lastSelectedElement = editor;
    }
    if ((editor == null) || (!isLinkingEnabled()) || (!checkIfPageIsVisible()) || (isViewPinned())) {
      return;
    }
    IEditorInput input = editor.getEditorInput();
    
    IFile file = ResourceUtil.getFile(input);
    if (file != null)
    {
      showHistory(file);
    }
    else
    {
      Object pageSource = Utils.getAdapter(input, IHistoryPageSource.class);
      if (pageSource != null) {
        showHistory(input);
      }
    }
  }
  
  private boolean checkIfPageIsVisible()
  {
    return getViewSite().getPage().isPartVisible(this);
  }
  
  public void dispose()
  {
    super.dispose();
    if ((dropTarget != null) && (!dropTarget.isDisposed())) {
      dropTarget.removeDropListener(dropAdapter);
    }
    ((IHistoryPage)currentPageContainer.getPage()).removePropertyChangeListener(this);
    currentPageContainer.getPage().dispose();
    defaultPageContainer.getPage().dispose();
    currentPageContainer = null;
    defaultPageContainer = null;
    
    getSite().getPage().removePartListener(partListener);
    getSite().getPage().removePartListener(partListener2);
    
    getSite().getPage().removePostSelectionListener(selectionListener);
    navigateAction.dispose();
  }
  
  public IHistoryPage showHistoryFor(Object object)
  {
    return showHistoryFor(object, false);
  }
  
  public IHistoryPage getHistoryPage()
  {
    if ((currentPageContainer != null) && 
      (currentPageContainer.getPage() != null)) {
      return (IHistoryPage)currentPageContainer.getPage();
    }
    return (IHistoryPage)defaultPageContainer.getPage();
  }
  
  public void propertyChange(PropertyChangeEvent event)
  {
    if (event.getSource() == currentPageContainer.getPage()) {
      if (event.getProperty().equals("org.eclipse.team.ui.name")) {
        Display.getDefault().asyncExec(new Runnable()
        {
          public void run()
          {
            IHistoryPage historyPage = (IHistoryPage)currentPageContainer.getPage();
            setContentDescription(historyPage.getName());
            navigationHistory.updateName(historyPage, currentPageContainer.getSource());
          }
        });
      } else {
        event.getProperty().equals("org.eclipse.team.ui.description");
      }
    }
  }
  
  public IHistoryView findAppropriateHistoryViewFor(Object input, IHistoryPageSource pageSource)
  {
    IHistoryPage page = searchHistoryViewsForObject(input, false, pageSource);
    if (page != null) {
      return page.getHistoryView();
    }
    return findUnpinnedHistoryView();
  }
  
  private void showHistory(Object object)
  {
    if (getHistoryPage().getInput() != object) {
      showHistoryPageFor(object, false, false, null);
    }
  }
  
  public boolean show(ShowInContext context)
  {
    ISelection selection = context.getSelection();
    if ((selection instanceof IStructuredSelection))
    {
      IStructuredSelection ss = (IStructuredSelection)selection;
      if (ss.size() == 1) {
        if (showHistoryFor(ss.getFirstElement()) != null) {
          return true;
        }
      }
    }
    if (context.getInput() != null) {
      return showHistoryFor(context.getInput()) != null;
    }
    return false;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.history.GenericHistoryView
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui.history;

import org.eclipse.jface.resource.JFaceColors;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.team.ui.history.HistoryPage;

public class GenericHistoryViewDefaultPage
  extends HistoryPage
{
  private Composite pgComp;
  
  public void createControl(Composite parent)
  {
    pgComp = new Composite(parent, 0);
    pgComp.setLayout(new FillLayout());
    pgComp.setBackground(JFaceColors.getBannerBackground(pgComp.getDisplay()));
  }
  
  public Control getControl()
  {
    return pgComp;
  }
  
  public void setFocus()
  {
    pgComp.setFocus();
  }
  
  public boolean isValidInput(Object object)
  {
    return false;
  }
  
  public void refresh() {}
  
  public String getName()
  {
    return "";
  }
  
  public Object getAdapter(Class adapter)
  {
    return null;
  }
  
  public String getDescription()
  {
    return null;
  }
  
  public Object getInput()
  {
    return null;
  }
  
  public boolean inputSet()
  {
    return false;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.history.GenericHistoryViewDefaultPage
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui.history;

public abstract interface IFileHistoryConstants
{
  public static final String PREF_GENERIC_HISTORYVIEW_SHOW_COMMENTS = "pref_generichistory_show_comments";
  public static final String PREF_GENERIC_HISTORYVIEW_WRAP_COMMENTS = "pref_generichistory_wrap_comments";
  public static final String PREF_GENERIC_HISTORYVIEW_SHOW_TAGS = "pref_generichistory_show_tags";
  public static final String PREF_GENERIC_HISTORYVIEW_EDITOR_LINKING = "pref_generichistory_view_linking";
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.history.IFileHistoryConstants
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui.history;

class LocalHistoryPage$1
  implements Runnable
{
  final LocalHistoryPage.HistoryResourceListener this$1;
  
  LocalHistoryPage$1(LocalHistoryPage.HistoryResourceListener paramHistoryResourceListener)
  {
    this$1 = paramHistoryResourceListener;
  }
  
  public void run()
  {
    LocalHistoryPage.HistoryResourceListener.access$1(this$1).refresh();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.history.LocalHistoryPage.1
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui.history;

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

class LocalHistoryPage$10
  implements IMenuListener
{
  final LocalHistoryPage this$0;
  
  LocalHistoryPage$10(LocalHistoryPage paramLocalHistoryPage)
  {
    this$0 = paramLocalHistoryPage;
  }
  
  public void menuAboutToShow(IMenuManager menuMgr)
  {
    this$0.fillTableMenu(menuMgr);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.history.LocalHistoryPage.10
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui.history;

import java.lang.reflect.InvocationTargetException;
import org.eclipse.core.resources.IWorkspaceRunnable;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.team.core.history.IFileRevision;
import org.eclipse.team.internal.ui.Utils;
import org.eclipse.team.ui.history.IHistoryPageSite;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.progress.IProgressService;

class LocalHistoryPage$11
  extends Action
{
  final LocalHistoryPage this$0;
  private final boolean val$needsProgressDialog;
  private final IWorkspaceRunnable val$action;
  
  LocalHistoryPage$11(LocalHistoryPage paramLocalHistoryPage, String $anonymous0, boolean paramBoolean, IWorkspaceRunnable paramIWorkspaceRunnable)
  {
    super($anonymous0);this$0 = paramLocalHistoryPage;val$needsProgressDialog = paramBoolean;val$action = paramIWorkspaceRunnable;
  }
  
  public void run()
  {
    try
    {
      if (this$0.file == null) {
        return;
      }
      ISelection selection = this$0.treeViewer.getSelection();
      if (!(selection instanceof IStructuredSelection)) {
        return;
      }
      IStructuredSelection ss = (IStructuredSelection)selection;
      Object o = ss.getFirstElement();
      if ((o instanceof AbstractHistoryCategory)) {
        return;
      }
      LocalHistoryPage.access$11(this$0, (IFileRevision)o);
      if (val$needsProgressDialog) {
        PlatformUI.getWorkbench().getProgressService().run(true, true, new LocalHistoryPage.12(this, val$action));
      } else {
        try
        {
          val$action.run(null);
        }
        catch (CoreException e)
        {
          throw new InvocationTargetException(e);
        }
      }
      IHistoryPageSite parentSite;
      return;
    }
    catch (InvocationTargetException e)
    {
      parentSite = this$0.getHistoryPageSite();
      Utils.handleError(parentSite.getShell(), e, null, null);
    }
    catch (InterruptedException localInterruptedException) {}
  }
  
  public boolean isEnabled()
  {
    ISelection selection = this$0.treeViewer.getSelection();
    if (!(selection instanceof IStructuredSelection)) {
      return false;
    }
    IStructuredSelection ss = (IStructuredSelection)selection;
    if (ss.size() != 1) {
      return false;
    }
    return true;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.history.LocalHistoryPage.11
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui.history;

import java.lang.reflect.InvocationTargetException;
import org.eclipse.core.resources.IWorkspaceRunnable;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.operation.IRunnableWithProgress;

class LocalHistoryPage$12
  implements IRunnableWithProgress
{
  final LocalHistoryPage.11 this$1;
  private final IWorkspaceRunnable val$action;
  
  LocalHistoryPage$12(LocalHistoryPage.11 param11, IWorkspaceRunnable paramIWorkspaceRunnable)
  {
    this$1 = param11;val$action = paramIWorkspaceRunnable;
  }
  
  public void run(IProgressMonitor monitor)
    throws InvocationTargetException, InterruptedException
  {
    try
    {
      val$action.run(monitor);
    }
    catch (CoreException e)
    {
      throw new InvocationTargetException(e);
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.history.LocalHistoryPage.12
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui.history;

import org.eclipse.jface.dialogs.MessageDialog;

class LocalHistoryPage$13
  implements Runnable
{
  final LocalHistoryPage this$0;
  private final int[] val$result;
  private final MessageDialog val$dialog;
  
  LocalHistoryPage$13(LocalHistoryPage paramLocalHistoryPage, int[] paramArrayOfInt, MessageDialog paramMessageDialog)
  {
    this$0 = paramLocalHistoryPage;val$result = paramArrayOfInt;val$dialog = paramMessageDialog;
  }
  
  public void run()
  {
    val$result[0] = val$dialog.open();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.history.LocalHistoryPage.13
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui.history;

import com.ibm.icu.text.SimpleDateFormat;
import java.io.PrintStream;
import java.util.Date;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.team.core.history.IFileRevision;
import org.eclipse.team.internal.ui.Policy;

class LocalHistoryPage$14
  implements Runnable
{
  final LocalHistoryPage this$0;
  private final AbstractHistoryCategory[] val$categories;
  private final IFileRevision[] val$revisions;
  
  LocalHistoryPage$14(LocalHistoryPage paramLocalHistoryPage, AbstractHistoryCategory[] paramArrayOfAbstractHistoryCategory, IFileRevision[] paramArrayOfIFileRevision)
  {
    this$0 = paramLocalHistoryPage;val$categories = paramArrayOfAbstractHistoryCategory;val$revisions = paramArrayOfIFileRevision;
  }
  
  public void run()
  {
    if (Policy.DEBUG_HISTORY)
    {
      String time = new SimpleDateFormat("m:ss.SSS").format(new Date(System.currentTimeMillis()));
      System.out.println(time + ": LocalHistoryPage#update, the tree is being updated in the UI thread");
    }
    if (val$categories != null)
    {
      Object[] elementsToExpand = LocalHistoryPage.access$12(this$0, val$categories, this$0.treeViewer.getExpandedElements());
      this$0.treeViewer.getTree().setRedraw(false);
      this$0.treeViewer.setInput(val$categories);
      if (elementsToExpand.length > 0)
      {
        this$0.treeViewer.setExpandedElements(elementsToExpand);
      }
      else
      {
        this$0.treeViewer.expandAll();
        Object[] el = this$0.treeViewer.getExpandedElements();
        if ((el != null) && (el.length > 0))
        {
          this$0.treeViewer.setSelection(new StructuredSelection(el[0]));
          this$0.treeViewer.getTree().deselectAll();
        }
      }
      this$0.treeViewer.getTree().setRedraw(true);
    }
    else if (val$revisions.length > 0)
    {
      this$0.treeViewer.setInput(val$revisions);
    }
    else
    {
      this$0.treeViewer.setInput(new AbstractHistoryCategory[] { LocalHistoryPage.access$13(this$0) });
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.history.LocalHistoryPage.14
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui.history;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.resource.ImageDescriptor;

class LocalHistoryPage$2
  extends Action
{
  final LocalHistoryPage this$0;
  private final IPreferenceStore val$store;
  
  LocalHistoryPage$2(LocalHistoryPage paramLocalHistoryPage, String $anonymous0, ImageDescriptor $anonymous1, IPreferenceStore paramIPreferenceStore)
  {
    super($anonymous0, $anonymous1);this$0 = paramLocalHistoryPage;val$store = paramIPreferenceStore;
  }
  
  public void run()
  {
    LocalHistoryPage.access$1(this$0, !LocalHistoryPage.access$0(this$0));
    val$store.setValue("org.eclipse.team.ui.group_bydate_mode", LocalHistoryPage.access$0(this$0));
    LocalHistoryPage.access$2(this$0, false);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.history.LocalHistoryPage.2
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui.history;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.viewers.TreeViewer;

class LocalHistoryPage$3
  extends Action
{
  final LocalHistoryPage this$0;
  
  LocalHistoryPage$3(LocalHistoryPage paramLocalHistoryPage, String $anonymous0, ImageDescriptor $anonymous1)
  {
    super($anonymous0, $anonymous1);this$0 = paramLocalHistoryPage;
  }
  
  public void run()
  {
    this$0.treeViewer.collapseAll();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.history.LocalHistoryPage.3
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui.history;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.resource.ImageDescriptor;

class LocalHistoryPage$4
  extends Action
{
  final LocalHistoryPage this$0;
  
  LocalHistoryPage$4(LocalHistoryPage paramLocalHistoryPage, String $anonymous0, ImageDescriptor $anonymous1)
  {
    super($anonymous0, $anonymous1);this$0 = paramLocalHistoryPage;
  }
  
  public void run()
  {
    LocalHistoryPage.access$4(this$0, LocalHistoryPage.access$3(this$0) == 1 ? 2 : 1);
    LocalHistoryPage.access$5(this$0).setChecked(LocalHistoryPage.access$3(this$0) == 1);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.history.LocalHistoryPage.4
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui.history;

import org.eclipse.core.resources.IWorkspaceRunnable;

class LocalHistoryPage$5
  implements IWorkspaceRunnable
{
  final LocalHistoryPage this$0;
  
  LocalHistoryPage$5(LocalHistoryPage paramLocalHistoryPage)
  {
    this$0 = paramLocalHistoryPage;
  }
  
  /* Error */
  public void run(org.eclipse.core.runtime.IProgressMonitor monitor)
    throws org.eclipse.core.runtime.CoreException
  {
    // Byte code:
    //   0: aload_1
    //   1: aconst_null
    //   2: bipush 100
    //   4: invokeinterface 84 3 0
    //   9: aload_0
    //   10: getfield 74	org/eclipse/team/internal/ui/history/LocalHistoryPage$5:this$0	Lorg/eclipse/team/internal/ui/history/LocalHistoryPage;
    //   13: invokestatic 79	org/eclipse/team/internal/ui/history/LocalHistoryPage:access$6	(Lorg/eclipse/team/internal/ui/history/LocalHistoryPage;)Z
    //   16: ifeq +85 -> 101
    //   19: aload_0
    //   20: getfield 74	org/eclipse/team/internal/ui/history/LocalHistoryPage$5:this$0	Lorg/eclipse/team/internal/ui/history/LocalHistoryPage;
    //   23: invokestatic 80	org/eclipse/team/internal/ui/history/LocalHistoryPage:access$7	(Lorg/eclipse/team/internal/ui/history/LocalHistoryPage;)Lorg/eclipse/team/core/history/IFileRevision;
    //   26: new 37	org/eclipse/core/runtime/SubProgressMonitor
    //   29: dup
    //   30: aload_1
    //   31: bipush 50
    //   33: invokespecial 77	org/eclipse/core/runtime/SubProgressMonitor:<init>	(Lorg/eclipse/core/runtime/IProgressMonitor;I)V
    //   36: invokeinterface 85 2 0
    //   41: astore_2
    //   42: aload_2
    //   43: invokeinterface 82 1 0
    //   48: astore_3
    //   49: aload_0
    //   50: getfield 74	org/eclipse/team/internal/ui/history/LocalHistoryPage$5:this$0	Lorg/eclipse/team/internal/ui/history/LocalHistoryPage;
    //   53: getfield 73	org/eclipse/team/internal/ui/history/LocalHistoryPage:file	Lorg/eclipse/core/resources/IFile;
    //   56: aload_3
    //   57: iconst_0
    //   58: iconst_1
    //   59: new 37	org/eclipse/core/runtime/SubProgressMonitor
    //   62: dup
    //   63: aload_1
    //   64: bipush 50
    //   66: invokespecial 77	org/eclipse/core/runtime/SubProgressMonitor:<init>	(Lorg/eclipse/core/runtime/IProgressMonitor;I)V
    //   69: invokeinterface 81 5 0
    //   74: goto +27 -> 101
    //   77: astore_2
    //   78: new 35	org/eclipse/core/runtime/CoreException
    //   81: dup
    //   82: aload_2
    //   83: invokevirtual 78	org/eclipse/team/core/TeamException:getStatus	()Lorg/eclipse/core/runtime/IStatus;
    //   86: invokespecial 76	org/eclipse/core/runtime/CoreException:<init>	(Lorg/eclipse/core/runtime/IStatus;)V
    //   89: athrow
    //   90: astore 4
    //   92: aload_1
    //   93: invokeinterface 83 1 0
    //   98: aload 4
    //   100: athrow
    //   101: aload_1
    //   102: invokeinterface 83 1 0
    //   107: return
    // Line number table:
    //   Java source line #359	-> byte code offset #0
    //   Java source line #361	-> byte code offset #9
    //   Java source line #362	-> byte code offset #19
    //   Java source line #363	-> byte code offset #42
    //   Java source line #364	-> byte code offset #49
    //   Java source line #366	-> byte code offset #77
    //   Java source line #367	-> byte code offset #78
    //   Java source line #368	-> byte code offset #90
    //   Java source line #369	-> byte code offset #92
    //   Java source line #370	-> byte code offset #98
    //   Java source line #369	-> byte code offset #101
    //   Java source line #371	-> byte code offset #107
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	108	0	this	5
    //   0	108	1	monitor	org.eclipse.core.runtime.IProgressMonitor
    //   41	2	2	currentStorage	org.eclipse.core.resources.IStorage
    //   77	6	2	e	org.eclipse.team.core.TeamException
    //   48	9	3	in	java.io.InputStream
    //   90	9	4	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   9	74	77	org/eclipse/team/core/TeamException
    //   9	90	90	finally
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.history.LocalHistoryPage.5
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui.history;

import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.team.internal.ui.actions.CompareRevisionAction;

class LocalHistoryPage$6
  extends SelectionAdapter
{
  final LocalHistoryPage this$0;
  
  LocalHistoryPage$6(LocalHistoryPage paramLocalHistoryPage)
  {
    this$0 = paramLocalHistoryPage;
  }
  
  public void widgetSelected(SelectionEvent e)
  {
    LocalHistoryPage.access$8(this$0).setCurrentFileRevision(this$0.getCurrentFileRevision());
    LocalHistoryPage.access$8(this$0).selectionChanged((IStructuredSelection)this$0.treeViewer.getSelection());
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.history.LocalHistoryPage.6
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui.history;

import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.team.internal.ui.actions.OpenRevisionAction;

class LocalHistoryPage$7
  extends SelectionAdapter
{
  final LocalHistoryPage this$0;
  
  LocalHistoryPage$7(LocalHistoryPage paramLocalHistoryPage)
  {
    this$0 = paramLocalHistoryPage;
  }
  
  public void widgetSelected(SelectionEvent e)
  {
    LocalHistoryPage.access$9(this$0).selectionChanged((IStructuredSelection)this$0.treeViewer.getSelection());
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.history.LocalHistoryPage.7
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui.history;

import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.team.internal.ui.actions.OpenWithMenu;

class LocalHistoryPage$8
  extends SelectionAdapter
{
  final LocalHistoryPage this$0;
  
  LocalHistoryPage$8(LocalHistoryPage paramLocalHistoryPage)
  {
    this$0 = paramLocalHistoryPage;
  }
  
  public void widgetSelected(SelectionEvent e)
  {
    LocalHistoryPage.access$10(this$0).selectionChanged((IStructuredSelection)this$0.treeViewer.getSelection());
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.history.LocalHistoryPage.8
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui.history;

import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.StructuredViewer;
import org.eclipse.team.internal.ui.actions.CompareRevisionAction;
import org.eclipse.team.internal.ui.actions.OpenRevisionAction;
import org.eclipse.ui.OpenAndLinkWithEditorHelper;

class LocalHistoryPage$9
  extends OpenAndLinkWithEditorHelper
{
  final LocalHistoryPage this$0;
  
  LocalHistoryPage$9(LocalHistoryPage paramLocalHistoryPage, StructuredViewer $anonymous0)
  {
    super($anonymous0);this$0 = paramLocalHistoryPage;
  }
  
  protected void open(ISelection selection, boolean activate)
  {
    if ((this$0.getSite() != null) && ((selection instanceof IStructuredSelection)))
    {
      IStructuredSelection structuredSelection = (IStructuredSelection)selection;
      if ((LocalHistoryPage.access$3(this$0) & 0x1) > 0)
      {
        StructuredSelection sel = new StructuredSelection(new Object[] { this$0.getCurrentFileRevision(), structuredSelection.getFirstElement() });
        LocalHistoryPage.access$8(this$0).selectionChanged(sel);
        LocalHistoryPage.access$8(this$0).run();
      }
      else if (LocalHistoryPage.access$9(this$0) != null)
      {
        LocalHistoryPage.access$9(this$0).selectionChanged(structuredSelection);
        LocalHistoryPage.access$9(this$0).run();
      }
    }
  }
  
  /* Error */
  protected void activate(ISelection selection)
  {
    // Byte code:
    //   0: invokestatic 79	org/eclipse/jface/util/OpenStrategy:getOpenMethod	()I
    //   3: istore_2
    //   4: iconst_0
    //   5: invokestatic 80	org/eclipse/jface/util/OpenStrategy:setOpenMethod	(I)V
    //   8: aload_0
    //   9: aload_1
    //   10: iconst_1
    //   11: invokevirtual 91	org/eclipse/team/internal/ui/history/LocalHistoryPage$9:open	(Lorg/eclipse/jface/viewers/ISelection;Z)V
    //   14: goto +10 -> 24
    //   17: astore_3
    //   18: iload_2
    //   19: invokestatic 80	org/eclipse/jface/util/OpenStrategy:setOpenMethod	(I)V
    //   22: aload_3
    //   23: athrow
    //   24: iload_2
    //   25: invokestatic 80	org/eclipse/jface/util/OpenStrategy:setOpenMethod	(I)V
    //   28: return
    // Line number table:
    //   Java source line #426	-> byte code offset #0
    //   Java source line #428	-> byte code offset #4
    //   Java source line #429	-> byte code offset #8
    //   Java source line #430	-> byte code offset #17
    //   Java source line #431	-> byte code offset #18
    //   Java source line #432	-> byte code offset #22
    //   Java source line #431	-> byte code offset #24
    //   Java source line #433	-> byte code offset #28
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	29	0	this	9
    //   0	29	1	selection	ISelection
    //   3	22	2	currentMode	int
    //   17	6	3	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   4	17	17	finally
  }
  
  protected void linkToEditor(ISelection selection) {}
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.history.LocalHistoryPage.9
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui.history;

import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResourceChangeEvent;
import org.eclipse.core.resources.IResourceChangeListener;
import org.eclipse.core.resources.IResourceDelta;
import org.eclipse.swt.widgets.Display;

class LocalHistoryPage$HistoryResourceListener
  implements IResourceChangeListener
{
  final LocalHistoryPage this$0;
  
  private LocalHistoryPage$HistoryResourceListener(LocalHistoryPage paramLocalHistoryPage)
  {
    this$0 = paramLocalHistoryPage;
  }
  
  LocalHistoryPage$HistoryResourceListener(LocalHistoryPage paramLocalHistoryPage, HistoryResourceListener paramHistoryResourceListener)
  {
    this(paramLocalHistoryPage);
  }
  
  public void resourceChanged(IResourceChangeEvent event)
  {
    IResourceDelta root = event.getDelta();
    if (this$0.file == null) {
      return;
    }
    IResourceDelta resourceDelta = root.findMember(this$0.file.getFullPath());
    if (resourceDelta != null) {
      Display.getDefault().asyncExec(new LocalHistoryPage.1(this));
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.history.LocalHistoryPage.HistoryResourceListener
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui.history;

import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.team.core.history.IFileRevision;

class LocalHistoryPage$LocalFileHistoryTableProvider
  extends LocalHistoryTableProvider
{
  final LocalHistoryPage this$0;
  
  private LocalHistoryPage$LocalFileHistoryTableProvider(LocalHistoryPage paramLocalHistoryPage)
  {
    this$0 = paramLocalHistoryPage;
  }
  
  LocalHistoryPage$LocalFileHistoryTableProvider(LocalHistoryPage paramLocalHistoryPage, LocalFileHistoryTableProvider paramLocalFileHistoryTableProvider)
  {
    this(paramLocalHistoryPage);
  }
  
  protected IFileRevision adaptToFileRevision(Object element)
  {
    IFileRevision entry = null;
    if ((element instanceof IFileRevision))
    {
      entry = (IFileRevision)element;
    }
    else if ((element instanceof IAdaptable))
    {
      Class tmp31_28 = LocalHistoryPage.class$0;
      if (tmp31_28 == null)
      {
        tmp31_28;
        try
        {
          tmpTernaryOp = (LocalHistoryPage.class$0 = Class.forName("org.eclipse.team.core.history.IFileRevision"));
        }
        catch (ClassNotFoundException localClassNotFoundException)
        {
          throw new NoClassDefFoundError(localClassNotFoundException.getMessage());
        }
      }
      entry = (IFileRevision)((IAdaptable)element).getAdapter(tmp31_28);
    }
    else if ((element instanceof AbstractHistoryCategory))
    {
      IFileRevision[] revisions = ((AbstractHistoryCategory)element).getRevisions();
      if (revisions.length > 0) {
        entry = revisions[0];
      }
    }
    return entry;
  }
  
  private long getCurrentRevision()
  {
    if (this$0.file != null) {
      return this$0.file.getLocalTimeStamp();
    }
    return -1L;
  }
  
  protected long getModificationDate(Object element)
  {
    IFileRevision entry = adaptToFileRevision(element);
    if (entry != null) {
      return entry.getTimestamp();
    }
    return -1L;
  }
  
  protected boolean isCurrentEdition(Object element)
  {
    IFileRevision entry = adaptToFileRevision(element);
    if (entry == null) {
      return false;
    }
    long timestamp = entry.getTimestamp();
    long tempCurrentTimeStamp = getCurrentRevision();
    return (tempCurrentTimeStamp != -1L) && (tempCurrentTimeStamp == timestamp);
  }
  
  protected boolean isDeletedEdition(Object element)
  {
    IFileRevision entry = adaptToFileRevision(element);
    return !entry.exists();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.history.LocalHistoryPage.LocalFileHistoryTableProvider
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui.history;

import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.team.core.history.IFileHistory;
import org.eclipse.team.core.history.IFileRevision;

final class LocalHistoryPage$LocalHistoryContentProvider
  implements ITreeContentProvider
{
  final LocalHistoryPage this$0;
  
  private LocalHistoryPage$LocalHistoryContentProvider(LocalHistoryPage paramLocalHistoryPage)
  {
    this$0 = paramLocalHistoryPage;
  }
  
  LocalHistoryPage$LocalHistoryContentProvider(LocalHistoryPage paramLocalHistoryPage, LocalHistoryContentProvider paramLocalHistoryContentProvider)
  {
    this(paramLocalHistoryPage);
  }
  
  public Object[] getElements(Object inputElement)
  {
    if ((inputElement instanceof IFileHistory))
    {
      IFileHistory fileHistory = (IFileHistory)inputElement;
      return fileHistory.getFileRevisions();
    }
    if ((inputElement instanceof IFileRevision[])) {
      return (IFileRevision[])inputElement;
    }
    if ((inputElement instanceof AbstractHistoryCategory[])) {
      return (AbstractHistoryCategory[])inputElement;
    }
    return new Object[0];
  }
  
  public Object[] getChildren(Object parentElement)
  {
    if ((parentElement instanceof AbstractHistoryCategory)) {
      return ((AbstractHistoryCategory)parentElement).getRevisions();
    }
    return new Object[0];
  }
  
  public Object getParent(Object element)
  {
    return null;
  }
  
  public boolean hasChildren(Object element)
  {
    if ((element instanceof AbstractHistoryCategory)) {
      return ((AbstractHistoryCategory)element).hasRevisions();
    }
    return false;
  }
  
  public void dispose() {}
  
  public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {}
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.history.LocalHistoryPage.LocalHistoryContentProvider
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui.history;

import com.ibm.icu.text.SimpleDateFormat;
import java.io.PrintStream;
import java.util.Date;
import org.eclipse.core.runtime.CoreException;
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.team.core.TeamStatus;
import org.eclipse.team.internal.core.history.LocalFileHistory;
import org.eclipse.team.internal.ui.Policy;
import org.eclipse.team.internal.ui.TeamUIMessages;
import org.eclipse.ui.progress.IProgressConstants;

class LocalHistoryPage$RefreshFileHistory
  extends Job
{
  final LocalHistoryPage this$0;
  
  public LocalHistoryPage$RefreshFileHistory(LocalHistoryPage paramLocalHistoryPage)
  {
    super(TeamUIMessages.LocalHistoryPage_FetchLocalHistoryMessage);
    this$0 = paramLocalHistoryPage;
  }
  
  public IStatus run(IProgressMonitor monitor)
  {
    try
    {
      IStatus status = Status.OK_STATUS;
      
      LocalFileHistory fileHistory = this$0.localFileHistory;
      IStatus loca
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

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