org.eclipse.equinox.p2.ui.importexport_1.0.1.v20120913-155635

et #17
    //   Java source line #55	-> byte code offset #25
    //   Java source line #57	-> byte code offset #27
    //   Java source line #58	-> byte code offset #42
    //   Java source line #59	-> byte code offset #49
    //   Java source line #60	-> byte code offset #54
    //   Java source line #61	-> byte code offset #70
    //   Java source line #62	-> byte code offset #73
    //   Java source line #105	-> byte code offset #98
    //   Java source line #106	-> byte code offset #100
    //   Java source line #108	-> byte code offset #104
    //   Java source line #109	-> byte code offset #111
    //   Java source line #113	-> byte code offset #112
    //   Java source line #114	-> byte code offset #119
    //   Java source line #115	-> byte code offset #124
    //   Java source line #106	-> byte code offset #127
    //   Java source line #108	-> byte code offset #131
    //   Java source line #109	-> byte code offset #138
    //   Java source line #113	-> byte code offset #139
    //   Java source line #114	-> byte code offset #146
    //   Java source line #116	-> byte code offset #151
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	152	0	this	ExportPage
    //   24	61	1	checked	Object[]
    //   26	106	2	stream	OutputStream
    //   41	22	3	target	java.io.File
    //   71	15	4	out	OutputStream
    //   98	27	5	localObject	Object
    //   111	1	6	localIOException1	java.io.IOException
    //   138	1	7	localIOException2	java.io.IOException
    // Exception table:
    //   from	to	target	type
    //   27	98	98	finally
    //   104	108	111	java/io/IOException
    //   131	135	138	java/io/IOException
  }
  
  protected String getDialogTitle()
  {
    return Messages.ExportPage_FILEDIALOG_TITLE;
  }
  
  protected Object getInput()
  {
    ProfileElement element = new ProfileElement(null, getSelfProfile().getProfileId());
    return element;
  }
  
  protected String getInvalidDestinationMessage()
  {
    return Messages.ExportPage_DEST_ERRORMESSAGE;
  }
  
  protected void giveFocusToDestination()
  {
    if (viewer != null) {
      viewer.getControl().setFocus();
    }
  }
  
  protected String getDestinationLabel()
  {
    return Messages.ExportPage_LABEL_EXPORTFILE;
  }
  
  protected int getBrowseDialogStyle()
  {
    return 8192;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.equinox.internal.p2.importexport.internal.wizard.ExportPage
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.equinox.internal.p2.importexport.internal.wizard;

import java.io.File;
import org.eclipse.core.runtime.Platform;
import org.eclipse.equinox.internal.p2.importexport.internal.ImportExportActivator;
import org.eclipse.equinox.internal.p2.importexport.internal.Messages;
import org.eclipse.jface.dialogs.IDialogSettings;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.osgi.util.NLS;
import org.eclipse.ui.IExportWizard;
import org.eclipse.ui.IWorkbench;
import org.osgi.framework.Bundle;

public class ExportWizard
  extends AbstractWizard
  implements IExportWizard
{
  public ExportWizard()
  {
    IDialogSettings workbenchSettings = ImportExportActivator.getDefault().getDialogSettings();
    String sectionName = "ExportWizard";
    IDialogSettings section = workbenchSettings.getSection(sectionName);
    if (section == null) {
      section = workbenchSettings.addNewSection(sectionName);
    }
    setDialogSettings(section);
  }
  
  public void addPages()
  {
    super.addPages();
    mainPage = new ExportPage("mainPage");
    addPage(mainPage);
  }
  
  public void init(IWorkbench workbench, IStructuredSelection selection)
  {
    setWindowTitle(Messages.ExportWizard_WizardTitle);
    setDefaultPageImageDescriptor(ImageDescriptor.createFromURL(Platform.getBundle("org.eclipse.equinox.p2.ui.importexport").getEntry("icons/install_wiz.gif")));
    setNeedsProgressMonitor(true);
  }
  
  public boolean performFinish()
  {
    File file = new File(((ExportPage)mainPage).getDestinationValue());
    if ((file.exists()) && 
      (!MessageDialog.openConfirm(getShell(), Messages.ExportWizard_ConfirmDialogTitle, NLS.bind(Messages.ExportWizard_OverwriteConfirm, file.getAbsolutePath())))) {
      return false;
    }
    return super.performFinish();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.equinox.internal.p2.importexport.internal.wizard.ExportWizard
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.equinox.internal.p2.importexport.internal.wizard;

class ImportFromInstallationPage$1$1
  implements Runnable
{
  final ImportFromInstallationPage.1 this$1;
  
  ImportFromInstallationPage$1$1(ImportFromInstallationPage.1 param1) {}
  
  public void run()
  {
    this$1.validated = new Boolean(ImportFromInstallationPage.access$0(ImportFromInstallationPage.1.access$1(this$1)));
  }
}

/* Location:
 * Qualified Name:     org.eclipse.equinox.internal.p2.importexport.internal.wizard.ImportFromInstallationPage.1.1
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.equinox.internal.p2.importexport.internal.wizard;

import java.util.concurrent.Callable;
import org.eclipse.swt.widgets.Display;

class ImportFromInstallationPage$1
  implements Callable<Boolean>
{
  Boolean validated;
  final ImportFromInstallationPage this$0;
  
  ImportFromInstallationPage$1(ImportFromInstallationPage paramImportFromInstallationPage) {}
  
  public Boolean call()
    throws Exception
  {
    Display.getDefault().syncExec(new Runnable()
    {
      public void run()
      {
        validated = new Boolean(ImportFromInstallationPage.access$0(this$0));
      }
    });
    return validated;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.equinox.internal.p2.importexport.internal.wizard.ImportFromInstallationPage.1
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.equinox.internal.p2.importexport.internal.wizard;

class ImportFromInstallationPage$2$1
  implements Runnable
{
  final ImportFromInstallationPage.2 this$1;
  
  ImportFromInstallationPage$2$1(ImportFromInstallationPage.2 param2) {}
  
  public void run()
  {
    this$1.des = ImportFromInstallationPage.2.access$1(this$1).getDestinationValue();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.equinox.internal.p2.importexport.internal.wizard.ImportFromInstallationPage.2.1
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.equinox.internal.p2.importexport.internal.wizard;

import java.util.concurrent.Callable;
import org.eclipse.swt.widgets.Display;

class ImportFromInstallationPage$2
  implements Callable<String>
{
  String des;
  final ImportFromInstallationPage this$0;
  
  ImportFromInstallationPage$2(ImportFromInstallationPage paramImportFromInstallationPage) {}
  
  public String call()
    throws Exception
  {
    if (Display.findDisplay(Thread.currentThread()) == null) {
      Display.getDefault().syncExec(new Runnable()
      {
        public void run()
        {
          des = this$0.getDestinationValue();
        }
      });
    } else {
      des = this$0.getDestinationValue();
    }
    return des;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.equinox.internal.p2.importexport.internal.wizard.ImportFromInstallationPage.2
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.equinox.internal.p2.importexport.internal.wizard;

class ImportFromInstallationPage$3
  implements Runnable
{
  final ImportFromInstallationPage this$0;
  
  ImportFromInstallationPage$3(ImportFromInstallationPage paramImportFromInstallationPage) {}
  
  public void run()
  {
    this$0.setErrorMessage(this$0.getInvalidDestinationMessage());
  }
}

/* Location:
 * Qualified Name:     org.eclipse.equinox.internal.p2.importexport.internal.wizard.ImportFromInstallationPage.3
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.equinox.internal.p2.importexport.internal.wizard;

import org.eclipse.equinox.internal.p2.ui.model.ProfileElement;
import org.eclipse.equinox.p2.engine.IProfile;
import org.eclipse.equinox.p2.query.IQueryable;

class ImportFromInstallationPage$4$1
  extends ProfileElement
{
  final ImportFromInstallationPage.4 this$1;
  
  ImportFromInstallationPage$4$1(ImportFromInstallationPage.4 param4, Object $anonymous0, String $anonymous1, IProfile paramIProfile)
  {
    super($anonymous0, $anonymous1);
  }
  
  public IQueryable<?> getQueryable()
  {
    return val$currentProfile;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.equinox.internal.p2.importexport.internal.wizard.ImportFromInstallationPage.4.1
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.equinox.internal.p2.importexport.internal.wizard;

import org.eclipse.jface.viewers.CheckboxTreeViewer;

class ImportFromInstallationPage$4$2
  implements Runnable
{
  final ImportFromInstallationPage.4 this$1;
  
  ImportFromInstallationPage$4$2(ImportFromInstallationPage.4 param4, Object paramObject) {}
  
  public void run()
  {
    access$0this$1).viewer.setInput(val$viewerInput);
    ImportFromInstallationPage.4.access$0(this$1).updatePageCompletion();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.equinox.internal.p2.importexport.internal.wizard.ImportFromInstallationPage.4.2
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.equinox.internal.p2.importexport.internal.wizard;

import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.equinox.internal.p2.ui.model.ProfileElement;
import org.eclipse.equinox.p2.engine.IProfile;
import org.eclipse.equinox.p2.query.IQueryable;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jface.viewers.CheckboxTreeViewer;
import org.eclipse.swt.widgets.Display;

class ImportFromInstallationPage$4
  implements IRunnableWithProgress
{
  final ImportFromInstallationPage this$0;
  
  ImportFromInstallationPage$4(ImportFromInstallationPage paramImportFromInstallationPage) {}
  
  public void run(IProgressMonitor monitor)
  {
    Object input = null;
    if (this$0.validateDestinationGroup(monitor))
    {
      final IProfile currentProfile = this$0.toBeImportedProfile;
      ProfileElement element = new ProfileElement(null, currentProfile.getProfileId())
      {
        public IQueryable<?> getQueryable()
        {
          return currentProfile;
        }
      };
      element.setQueryable(currentProfile);
      input = element;
    }
    final Object viewerInput = input;
    Display.getDefault().asyncExec(new Runnable()
    {
      public void run()
      {
        this$0.viewer.setInput(viewerInput);
        this$0.updatePageCompletion();
      }
    });
  }
}

/* Location:
 * Qualified Name:     org.eclipse.equinox.internal.p2.importexport.internal.wizard.ImportFromInstallationPage.4
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.equinox.internal.p2.importexport.internal.wizard;

import org.eclipse.equinox.internal.p2.ui.ProvUI;
import org.eclipse.equinox.internal.p2.ui.viewers.IUDetailsLabelProvider;
import org.eclipse.equinox.p2.metadata.IInstallableUnit;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.widgets.Display;

class ImportFromInstallationPage$ImportFromInstallationLabelProvider
  extends IUDetailsLabelProvider
{
  final ImportFromInstallationPage this$0;
  
  ImportFromInstallationPage$ImportFromInstallationLabelProvider(ImportFromInstallationPage paramImportFromInstallationPage) {}
  
  public String getColumnText(Object element, int columnIndex)
  {
    String text = super.getColumnText(element, columnIndex);
    if (columnIndex == 0)
    {
      Class tmp15_12 = ImportFromInstallationPage.class$0;
      if (tmp15_12 == null)
      {
        tmp15_12;
        try
        {
          tmpTernaryOp = (ImportFromInstallationPage.class$0 = Class.forName("org.eclipse.equinox.p2.metadata.IInstallableUnit"));
        }
        catch (ClassNotFoundException localClassNotFoundException)
        {
          throw new NoClassDefFoundError(localClassNotFoundException.getMessage());
        }
      }
      IInstallableUnit iu = (IInstallableUnit)ProvUI.getAdapter(element, tmp15_12);
      return this$0.getIUNameWithDetail(iu);
    }
    return text;
  }
  
  public Color getForeground(Object element)
  {
    Class tmp4_1 = ImportFromInstallationPage.class$0;
    if (tmp4_1 == null)
    {
      tmp4_1;
      try
      {
        tmpTernaryOp = (ImportFromInstallationPage.class$0 = Class.forName("org.eclipse.equinox.p2.metadata.IInstallableUnit"));
      }
      catch (ClassNotFoundException localClassNotFoundException)
      {
        throw new NoClassDefFoundError(localClassNotFoundException.getMessage());
      }
    }
    IInstallableUnit iu = (IInstallableUnit)ProvUI.getAdapter(element, tmp4_1);
    if (this$0.hasInstalled(iu)) {
      return Display.getDefault().getSystemColor(15);
    }
    return super.getForeground(element);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.equinox.internal.p2.importexport.internal.wizard.ImportFromInstallationPage.ImportFromInstallationLabelProvider
 * Java Class Version: 1.4 (48.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.equinox.internal.p2.importexport.internal.wizard;

import java.io.File;
import java.lang.reflect.InvocationTargetException;
import java.net.URI;
import java.util.concurrent.Callable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Platform;
import org.eclipse.equinox.internal.p2.importexport.internal.Messages;
import org.eclipse.equinox.internal.p2.ui.ProvUI;
import org.eclipse.equinox.internal.p2.ui.dialogs.ISelectableIUsPage;
import org.eclipse.equinox.internal.p2.ui.dialogs.ProvisioningOperationWizard;
import org.eclipse.equinox.internal.p2.ui.model.ProfileElement;
import org.eclipse.equinox.internal.p2.ui.viewers.IUDetailsLabelProvider;
import org.eclipse.equinox.p2.core.IProvisioningAgent;
import org.eclipse.equinox.p2.core.IProvisioningAgentProvider;
import org.eclipse.equinox.p2.engine.IProfile;
import org.eclipse.equinox.p2.engine.ProvisioningContext;
import org.eclipse.equinox.p2.metadata.IInstallableUnit;
import org.eclipse.equinox.p2.operations.ProvisioningSession;
import org.eclipse.equinox.p2.query.IQueryable;
import org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryManager;
import org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager;
import org.eclipse.equinox.p2.ui.ProvisioningUI;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jface.viewers.CheckboxTreeViewer;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.wizard.IWizard;
import org.eclipse.jface.wizard.IWizardContainer;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.DirectoryDialog;
import org.eclipse.swt.widgets.Display;
import org.osgi.framework.Bundle;
import org.osgi.util.tracker.ServiceTracker;

public class ImportFromInstallationPage
  extends AbstractImportPage
  implements ISelectableIUsPage
{
  protected IProvisioningAgent otherInstanceAgent = null;
  IProfile toBeImportedProfile = null;
  private File instancePath = null;
  private URI[] metaURIs = null;
  private URI[] artiURIs = null;
  private IProvisioningAgentProvider agentProvider;
  static Class class$0;
  
  public ImportFromInstallationPage(ProvisioningUI ui, ProvisioningOperationWizard wizard)
  {
    super("importfrominstancepage", ui, wizard);
    setTitle(Messages.ImportFromInstallationPage_DIALOG_TITLE);
    setDescription(Messages.ImportFromInstallationPage_DIALOG_DESCRIPTION);
  }
  
  protected void createContents(Composite composite)
  {
    createDestinationGroup(composite);
    createInstallationTable(composite);
  }
  
  protected String getDestinationLabel()
  {
    return Messages.ImportFromInstallationPage_DESTINATION_LABEL;
  }
  
  protected String getDialogTitle()
  {
    return Messages.ImportFromInstallationPage_DIALOG_TITLE;
  }
  
  protected Object getInput()
  {
    return new IInstallableUnit[0];
  }
  
  protected String getInvalidDestinationMessage()
  {
    return Messages.ImportFromInstallationPage_INVALID_DESTINATION;
  }
  
  protected String getNoOptionsMessage()
  {
    return Messages.ImportFromInstallationPage_SELECT_COMPONENT;
  }
  
  protected boolean validateDestinationGroup()
  {
    return validateDestinationGroup(new NullProgressMonitor());
  }
  
  private IProvisioningAgentProvider getAgentProvider()
  {
    if (agentProvider == null)
    {
      ServiceTracker<IProvisioningAgentProvider, IProvisioningAgentProvider> tracker = new ServiceTracker(Platform.getBundle("org.eclipse.equinox.p2.ui.importexport").getBundleContext(), IProvisioningAgentProvider.class, null);
      tracker.open();
      agentProvider = ((IProvisioningAgentProvider)tracker.getService());
      tracker.close();
    }
    return agentProvider;
  }
  
  /* Error */
  boolean validateDestinationGroup(IProgressMonitor monitor)
  {
    // Byte code:
    //   0: aload_1
    //   1: bipush 100
    //   3: invokestatic 567	org/eclipse/core/runtime/SubMonitor:convert	(Lorg/eclipse/core/runtime/IProgressMonitor;I)Lorg/eclipse/core/runtime/SubMonitor;
    //   6: astore_2
    //   7: invokestatic 554	java/lang/Thread:currentThread	()Ljava/lang/Thread;
    //   10: invokestatic 612	org/eclipse/swt/widgets/Display:findDisplay	(Ljava/lang/Thread;)Lorg/eclipse/swt/widgets/Display;
    //   13: ifnonnull +78 -> 91
    //   16: new 277	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage$1
    //   19: dup
    //   20: aload_0
    //   21: invokespecial 590	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage$1:<init>	(Lorg/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage;)V
    //   24: astore 4
    //   26: invokestatic 562	java/util/concurrent/Executors:newSingleThreadScheduledExecutor	()Ljava/util/concurrent/ScheduledExecutorService;
    //   29: astore 5
    //   31: aload 5
    //   33: aload 4
    //   35: invokeinterface 618 2 0
    //   40: astore 6
    //   42: aload 6
    //   44: invokeinterface 619 1 0
    //   49: checkcast 250	java/lang/Boolean
    //   52: invokevirtual 544	java/lang/Boolean:booleanValue	()Z
    //   55: istore_3
    //   56: goto +25 -> 81
    //   59: pop
    //   60: aload 5
    //   62: invokeinterface 617 1 0
    //   67: iconst_0
    //   68: ireturn
    //   69: astore 7
    //   71: aload 5
    //   73: invokeinterface 617 1 0
    //   78: aload 7
    //   80: athrow
    //   81: aload 5
    //   83: invokeinterface 617 1 0
    //   88: goto +8 -> 96
    //   91: aload_0
    //   92: invokespecial 573	org/eclipse/equinox/internal/p2/importexport/internal/wizard/AbstractImportPage:validateDestinationGroup	()Z
    //   95: istore_3
    //   96: iload_3
    //   97: ifeq +955 -> 1052
    //   100: invokestatic 554	java/lang/Thread:currentThread	()Ljava/lang/Thread;
    //   103: invokestatic 612	org/eclipse/swt/widgets/Display:findDisplay	(Ljava/lang/Thread;)Lorg/eclipse/swt/widgets/Display;
    //   106: ifnonnull +66 -> 172
    //   109: new 278	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage$2
    //   112: dup
    //   113: aload_0
    //   114: invokespecial 591	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage$2:<init>	(Lorg/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage;)V
    //   117: astore 5
    //   119: invokestatic 562	java/util/concurrent/Executors:newSingleThreadScheduledExecutor	()Ljava/util/concurrent/ScheduledExecutorService;
    //   122: astore 6
    //   124: aload 6
    //   126: aload 5
    //   128: invokeinterface 618 2 0
    //   133: astore 7
    //   135: aload 7
    //   137: invokeinterface 619 1 0
    //   142: checkcast 256	java/lang/String
    //   145: astore 4
    //   147: goto +15 -> 162
    //   150: astore 8
    //   152: aload 6
    //   154: invokeinterface 617 1 0
    //   159: aload 8
    //   161: athrow
    //   162: aload 6
    //   164: invokeinterface 617 1 0
    //   169: goto +9 -> 178
    //   172: aload_0
    //   173: invokevirtual 577	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:getDestinationValue	()Ljava/lang/String;
    //   176: astore 4
    //   178: aconst_null
    //   179: astore 5
    //   181: new 245	java/io/File
    //   184: dup
    //   185: aload 4
    //   187: ldc 1
    //   189: invokespecial 540	java/io/File:<init>	(Ljava/lang/String;Ljava/lang/String;)V
    //   192: astore 6
    //   194: aload 6
    //   196: invokevirtual 535	java/io/File:getParentFile	()Ljava/io/File;
    //   199: invokevirtual 538	java/io/File:toURI	()Ljava/net/URI;
    //   202: astore 7
    //   204: aconst_null
    //   205: astore 8
    //   207: new 245	java/io/File
    //   210: dup
    //   211: aload 4
    //   213: ldc 7
    //   215: invokespecial 540	java/io/File:<init>	(Ljava/lang/String;Ljava/lang/String;)V
    //   218: astore 9
    //   220: new 263	java/util/Properties
    //   223: dup
    //   224: invokespecial 559	java/util/Properties:<init>	()V
    //   227: astore 10
    //   229: new 246	java/io/FileInputStream
    //   232: dup
    //   233: aload 6
    //   235: invokespecial 541	java/io/FileInputStream:<init>	(Ljava/io/File;)V
    //   238: astore 8
    //   240: aload 10
    //   242: aload 8
    //   244: invokevirtual 560	java/util/Properties:load	(Ljava/io/InputStream;)V
    //   247: aload 10
    //   249: ldc 3
    //   251: invokevirtual 561	java/util/Properties:getProperty	(Ljava/lang/String;)Ljava/lang/String;
    //   254: astore 5
    //   256: aload 10
    //   258: ldc 2
    //   260: invokevirtual 561	java/util/Properties:getProperty	(Ljava/lang/String;)Ljava/lang/String;
    //   263: astore 11
    //   265: aload 11
    //   267: ifnull +136 -> 403
    //   270: aload 11
    //   272: ldc_w 241
    //   275: invokevirtual 550	java/lang/String:startsWith	(Ljava/lang/String;)Z
    //   278: ifeq +32 -> 310
    //   281: new 257	java/lang/StringBuffer
    //   284: dup
    //   285: ldc_w 242
    //   288: invokespecial 552	java/lang/StringBuffer:<init>	(Ljava/lang/String;)V
    //   291: aload 11
    //   293: ldc_w 241
    //   296: invokevirtual 548	java/lang/String:length	()I
    //   299: invokevirtual 549	java/lang/String:substring	(I)Ljava/lang/String;
    //   302: invokevirtual 553	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   305: invokevirtual 551	java/lang/StringBuffer:toString	()Ljava/lang/String;
    //   308: astore 11
    //   310: new 245	java/io/File
    //   313: dup
    //   314: new 245	java/io/File
    //   317: dup
    //   318: aload 11
    //   320: ldc_w 242
    //   323: invokevirtual 548	java/lang/String:length	()I
    //   326: invokevirtual 549	java/lang/String:substring	(I)Ljava/lang/String;
    //   329: invokespecial 537	java/io/File:<init>	(Ljava/lang/String;)V
    //   332: invokevirtual 533	java/io/File:isAbsolute	()Z
    //   335: ifeq +8 -> 343
    //   338: aload 11
    //   340: goto +14 -> 354
    //   343: aload 11
    //   345: ldc_w 242
    //   348: invokevirtual 548	java/lang/String:length	()I
    //   351: invokevirtual 549	java/lang/String:substring	(I)Ljava/lang/String;
    //   354: invokestatic 568	org/eclipse/core/runtime/URIUtil:fromString	(Ljava/lang/String;)Ljava/net/URI;
    //   357: aload 7
    //   359: invokestatic 569	org/eclipse/core/runtime/URIUtil:makeAbsolute	(Ljava/net/URI;Ljava/net/URI;)Ljava/net/URI;
    //   362: invokespecial 539	java/io/File:<init>	(Ljava/net/URI;)V
    //   365: astore 9
    //   367: goto +36 -> 403
    //   370: pop
    //   371: aload 8
    //   373: invokevirtual 543	java/io/InputStream:close	()V
    //   376: goto +4 -> 380
    //   379: pop
    //   380: aconst_null
    //   381: astore 8
    //   383: goto +32 -> 415
    //   386: astore 12
    //   388: aload 8
    //   390: invokevirtual 543	java/io/InputStream:close	()V
    //   393: goto +4 -> 397
    //   396: pop
    //   397: aconst_null
    //   398: astore 8
    //   400: aload 12
    //   402: athrow
    //   403: aload 8
    //   405: invokevirtual 543	java/io/InputStream:close	()V
    //   408: goto +4 -> 412
    //   411: pop
    //   412: aconst_null
    //   413: astore 8
    //   415: aload 9
    //   417: invokevirtual 532	java/io/File:exists	()Z
    //   420: ifeq +203 -> 623
    //   423: iconst_1
    //   424: istore 10
    //   426: aload_0
    //   427: getfield 522	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:otherInstanceAgent	Lorg/eclipse/equinox/p2/core/IProvisioningAgent;
    //   430: ifnull +45 -> 475
    //   433: aload 9
    //   435: aload_0
    //   436: getfield 517	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:instancePath	Ljava/io/File;
    //   439: invokevirtual 536	java/io/File:equals	(Ljava/lang/Object;)Z
    //   442: ifne +30 -> 472
    //   445: aload_0
    //   446: getfield 522	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:otherInstanceAgent	Lorg/eclipse/equinox/p2/core/IProvisioningAgent;
    //   449: invokeinterface 622 1 0
    //   454: aload_0
    //   455: aconst_null
    //   456: putfield 522	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:otherInstanceAgent	Lorg/eclipse/equinox/p2/core/IProvisioningAgent;
    //   459: aload_0
    //   460: aload 9
    //   462: putfield 517	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:instancePath	Ljava/io/File;
    //   465: aload_0
    //   466: invokevirtual 575	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:cleanLocalRepository	()V
    //   469: goto +6 -> 475
    //   472: iconst_0
    //   473: istore 10
    //   475: iload 10
    //   477: ifeq +21 -> 498
    //   480: aload_0
    //   481: aload_0
    //   482: invokespecial 584	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:getAgentProvider	()Lorg/eclipse/equinox/p2/core/IProvisioningAgentProvider;
    //   485: aload 9
    //   487: invokevirtual 538	java/io/File:toURI	()Ljava/net/URI;
    //   490: invokeinterface 624 2 0
    //   495: putfield 522	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:otherInstanceAgent	Lorg/eclipse/equinox/p2/core/IProvisioningAgent;
    //   498: new 272	org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationArtifactRepositoryFactory
    //   501: dup
    //   502: invokespecial 570	org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationArtifactRepositoryFactory:<init>	()V
    //   505: astore 11
    //   507: aload 11
    //   509: getstatic 521	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:agent	Lorg/eclipse/equinox/p2/core/IProvisioningAgent;
    //   512: invokevirtual 599	org/eclipse/equinox/p2/repository/artifact/spi/ArtifactRepositoryFactory:setAgent	(Lorg/eclipse/equinox/p2/core/IProvisioningAgent;)V
    //   515: aload 11
    //   517: new 245	java/io/File
    //   520: dup
    //   521: aload 4
    //   523: invokespecial 537	java/io/File:<init>	(Ljava/lang/String;)V
    //   526: invokevirtual 538	java/io/File:toURI	()Ljava/net/URI;
    //   529: iconst_0
    //   530: aload_2
    //   531: bipush 50
    //   533: invokevirtual 565	org/eclipse/core/runtime/SubMonitor:newChild	(I)Lorg/eclipse/core/runtime/SubMonitor;
    //   536: invokevirtual 600	org/eclipse/equinox/p2/repository/artifact/spi/ArtifactRepositoryFactory:load	(Ljava/net/URI;ILorg/eclipse/core/runtime/IProgressMonitor;)Lorg/eclipse/equinox/p2/repository/artifact/IArtifactRepository;
    //   539: astore 12
    //   541: aload_0
    //   542: iconst_1
    //   543: anewarray 262	java/net/URI
    //   546: dup
    //   547: iconst_0
    //   548: aload 12
    //   550: invokeinterface 629 1 0
    //   555: aastore
    //   556: putfield 519	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:artiURIs	[Ljava/net/URI;
    //   559: new 273	org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationMetadataRepositoryFactory
    //   562: dup
    //   563: invokespecial 571	org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationMetadataRepositoryFactory:<init>	()V
    //   566: astore 13
    //   568: aload 13
    //   570: getstatic 521	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:agent	Lorg/eclipse/equinox/p2/core/IProvisioningAgent;
    //   573: invokevirtual 601	org/eclipse/equinox/p2/repository/metadata/spi/MetadataRepositoryFactory:setAgent	(Lorg/eclipse/equinox/p2/core/IProvisioningAgent;)V
    //   576: aload 13
    //   578: new 245	java/io/File
    //   581: dup
    //   582: aload 4
    //   584: invokespecial 537	java/io/File:<init>	(Ljava/lang/String;)V
    //   587: invokevirtual 538	java/io/File:toURI	()Ljava/net/URI;
    //   590: iconst_0
    //   591: aload_2
    //   592: bipush 50
    //   594: invokevirtual 565	org/eclipse/core/runtime/SubMonitor:newChild	(I)Lorg/eclipse/core/runtime/SubMonitor;
    //   597: invokevirtual 602	org/eclipse/equinox/p2/repository/metadata/spi/MetadataRepositoryFactory:load	(Ljava/net/URI;ILorg/eclipse/core/runtime/IProgressMonitor;)Lorg/eclipse/equinox/p2/repository/metadata/IMetadataRepository;
    //   600: astore 14
    //   602: aload_0
    //   603: iconst_1
    //   604: anewarray 262	java/net/URI
    //   607: dup
    //   608: iconst_0
    //   609: aload 14
    //   611: invokeinterface 632 1 0
    //   616: aastore
    //   617: putfield 520	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:metaURIs	[Ljava/net/URI;
    //   620: goto +426 -> 1046
    //   623: new 247	java/io/FileNotFoundException
    //   626: dup
    //   627: invokespecial 542	java/io/FileNotFoundException:<init>	()V
    //   630: athrow
    //   631: pop
    //   632: aload_0
    //   633: getfield 522	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:otherInstanceAgent	Lorg/eclipse/equinox/p2/core/IProvisioningAgent;
    //   636: ifnull +335 -> 971
    //   639: aload_0
    //   640: aconst_null
    //   641: putfield 524	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:toBeImportedProfile	Lorg/eclipse/equinox/p2/engine/IProfile;
    //   644: getstatic 521	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:agent	Lorg/eclipse/equinox/p2/core/IProvisioningAgent;
    //   647: getstatic 531	org/eclipse/equinox/p2/repository/metadata/IMetadataRepositoryManager:SERVICE_NAME	Ljava/lang/String;
    //   650: invokeinterface 623 2 0
    //   655: checkcast 296	org/eclipse/equinox/p2/repository/metadata/IMetadataRepositoryManager
    //   658: astore 6
    //   660: getstatic 521	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:agent	Lorg/eclipse/equinox/p2/core/IProvisioningAgent;
    //   663: getstatic 530	org/eclipse/equinox/p2/repository/artifact/IArtifactRepositoryManager:SERVICE_NAME	Ljava/lang/String;
    //   666: invokeinterface 623 2 0
    //   671: checkcast 293	org/eclipse/equinox/p2/repository/artifact/IArtifactRepositoryManager
    //   674: astore 7
    //   676: aload_0
    //   677: getfield 522	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:otherInstanceAgent	Lorg/eclipse/equinox/p2/core/IProvisioningAgent;
    //   680: getstatic 529	org/eclipse/equinox/p2/engine/IProfileRegistry:SERVICE_NAME	Ljava/lang/String;
    //   683: invokeinterface 623 2 0
    //   688: checkcast 288	org/eclipse/equinox/p2/engine/IProfileRegistry
    //   691: astore 8
    //   693: aload 5
    //   695: ifnull +16 -> 711
    //   698: aload_0
    //   699: aload 8
    //   701: aload 5
    //   703: invokeinterface 628 2 0
    //   708: putfield 524	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:toBeImportedProfile	Lorg/eclipse/equinox/p2/engine/IProfile;
    //   711: aload_0
    //   712: getfield 524	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:toBeImportedProfile	Lorg/eclipse/equinox/p2/engine/IProfile;
    //   715: ifnonnull +103 -> 818
    //   718: aload 8
    //   720: invokeinterface 627 1 0
    //   725: astore 9
    //   727: aload 9
    //   729: arraylength
    //   730: iconst_1
    //   731: if_icmpne +14 -> 745
    //   734: aload_0
    //   735: aload 9
    //   737: iconst_0
    //   738: aaload
    //   739: putfield 524	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:toBeImportedProfile	Lorg/eclipse/equinox/p2/engine/IProfile;
    //   742: goto +76 -> 818
    //   745: aload 9
    //   747: dup
    //   748: astore 13
    //   750: arraylength
    //   751: istore 12
    //   753: iconst_0
    //   754: istore 11
    //   756: goto +55 -> 811
    //   759: aload 13
    //   761: iload 11
    //   763: aaload
    //   764: astore 10
    //   766: aload_0
    //   767: getfield 524	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:toBeImportedProfile	Lorg/eclipse/equinox/p2/engine/IProfile;
    //   770: ifnonnull +12 -> 782
    //   773: aload_0
    //   774: aload 10
    //   776: putfield 524	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:toBeImportedProfile	Lorg/eclipse/equinox/p2/engine/IProfile;
    //   779: goto +29 -> 808
    //   782: aload_0
    //   783: getfield 524	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:toBeImportedProfile	Lorg/eclipse/equinox/p2/engine/IProfile;
    //   786: invokeinterface 625 1 0
    //   791: aload 10
    //   793: invokeinterface 625 1 0
    //   798: lcmp
    //   799: ifge +9 -> 808
    //   802: aload_0
    //   803: aload 10
    //   805: putfield 524	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:toBeImportedProfile	Lorg/eclipse/equinox/p2/engine/IProfile;
    //   808: iinc 11 1
    //   811: iload 11
    //   813: iload 12
    //   815: if_icmplt -56 -> 759
    //   818: aload_0
    //   819: getfield 522	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:otherInstanceAgent	Lorg/eclipse/equinox/p2/core/IProvisioningAgent;
    //   822: getstatic 528	org/eclipse/equinox/p2/core/IAgentLocation:SERVICE_NAME	Ljava/lang/String;
    //   825: invokeinterface 623 2 0
    //   830: checkcast 283	org/eclipse/equinox/p2/core/IAgentLocation
    //   833: astore 9
    //   835: aload 9
    //   837: ldc_w 243
    //   840: invokeinterface 621 2 0
    //   845: astore 10
    //   847: aload_2
    //   848: bipush 50
    //   850: invokevirtual 566	org/eclipse/core/runtime/SubMonitor:setWorkRemaining	(I)Lorg/eclipse/core/runtime/SubMonitor;
    //   853: pop
    //   854: aload 6
    //   856: aload 10
    //   858: new 257	java/lang/StringBuffer
    //   861: dup
    //   862: ldc_w 244
    //   865: invokespecial 552	java/lang/StringBuffer:<init>	(Ljava/lang/String;)V
    //   868: aload_0
    //   869: getfield 524	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:toBeImportedProfile	Lorg/eclipse/equinox/p2/engine/IProfile;
    //   872: invokeinterface 626 1 0
    //   877: invokevirtual 553	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   880: ldc_w 240
    //   883: invokevirtual 553	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   886: invokevirtual 551	java/lang/StringBuffer:toString	()Ljava/lang/String;
    //   889: invokevirtual 558	java/net/URI:resolve	(Ljava/lang/String;)Ljava/net/URI;
    //   892: aload_2
    //   893: bipush 25
    //   895: invokevirtual 565	org/eclipse/core/runtime/SubMonitor:newChild	(I)Lorg/eclipse/core/runtime/SubMonitor;
    //   898: invokeinterface 634 3 0
    //   903: astore 11
    //   905: aload_0
    //   906: iconst_1
    //   907: anewarray 262	java/net/URI
    //   910: dup
    //   911: iconst_0
    //   912: aload 11
    //   914: invokeinterface 632 1 0
    //   919: aastore
    //   920: putfield 520	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:metaURIs	[Ljava/net/URI;
    //   923: aload 7
    //   925: new 245	java/io/File
    //   928: dup
    //   929: aload 4
    //   931: invokespecial 537	java/io/File:<init>	(Ljava/lang/String;)V
    //   934: invokevirtual 538	java/io/File:toURI	()Ljava/net/URI;
    //   937: aload_2
    //   938: bipush 25
    //   940: invokevirtual 565	org/eclipse/core/runtime/SubMonitor:newChild	(I)Lorg/eclipse/core/runtime/SubMonitor;
    //   943: invokeinterface 631 3 0
    //   948: astore 12
    //   950: aload_0
    //   951: iconst_1
    //   952: anewarray 262	java/net/URI
    //   955: dup
    //   956: iconst_0
    //   957: aload 12
    //   959: invokeinterface 629 1 0
    //   964: aastore
    //   965: putfield 519	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:artiURIs	[Ljava/net/URI;
    //   968: goto +78 -> 1046
    //   971: new 253	java/lang/Exception
    //   974: dup
    //   975: invokespecial 546	java/lang/Exception:<init>	()V
    //   978: athrow
    //   979: pop
    //   980: invokestatic 611	org/eclipse/swt/widgets/Display:getDefault	()Lorg/eclipse/swt/widgets/Display;
    //   983: new 279	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage$3
    //   986: dup
    //   987: aload_0
    //   988: invokespecial 592	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage$3:<init>	(Lorg/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage;)V
    //   991: invokevirtual 610	org/eclipse/swt/widgets/Display:asyncExec	(Ljava/lang/Runnable;)V
    //   994: iconst_0
    //   995: istore_3
    //   996: aload_0
    //   997: getfield 522	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:otherInstanceAgent	Lorg/eclipse/equinox/p2/core/IProvisioningAgent;
    //   1000: ifnull +12 -> 1012
    //   1003: aload_0
    //   1004: getfield 522	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:otherInstanceAgent	Lorg/eclipse/equinox/p2/core/IProvisioningAgent;
    //   1007: invokeinterface 622 1 0
    //   1012: aload_0
    //   1013: aconst_null
    //   1014: putfield 522	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:otherInstanceAgent	Lorg/eclipse/equinox/p2/core/IProvisioningAgent;
    //   1017: aload_0
    //   1018: aconst_null
    //   1019: putfield 524	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:toBeImportedProfile	Lorg/eclipse/equinox/p2/engine/IProfile;
    //   1022: aload_0
    //   1023: invokevirtual 575	org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage:cleanLocalRepository	()V
    //   1026: aload_1
    //   1027: invokeinterface 620 1 0
    //   1032: goto +20 -> 1052
    //   1035: astore 15
    //   1037: aload_1
    //   10
1 2 3 4 5 6

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