org.eclipse.pde.runtime_3.4.201.v20110928-1516

16:47:29.177 INFO  jd.cli.Main - Decompiling org.eclipse.pde.runtime_3.4.201.v20110928-1516.jar
package org.eclipse.pde.internal.runtime;

public abstract interface IHelpContextIds
{
  public static final String PREFIX = "org.eclipse.pde.doc.user.";
  public static final String REGISTRY_VIEW = "org.eclipse.pde.doc.user.registry_view";
  public static final String SPY_DIALOG = "org.eclipse.pde.doc.user.spy_dialog";
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.IHelpContextIds
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime;

import org.eclipse.osgi.service.resolver.BundleSpecification;
import org.eclipse.osgi.service.resolver.ImportPackageSpecification;
import org.eclipse.osgi.service.resolver.VersionConstraint;
import org.eclipse.osgi.service.resolver.VersionRange;
import org.eclipse.osgi.util.NLS;

public class MessageHelper
{
  public static String getResolutionFailureMessage(VersionConstraint unsatisfied)
  {
    if (unsatisfied.isResolved()) {
      throw new IllegalArgumentException();
    }
    if ((unsatisfied instanceof ImportPackageSpecification)) {
      return NLS.bind(PDERuntimeMessages.MessageHelper_missing_imported_package, toString(unsatisfied));
    }
    if ((unsatisfied instanceof BundleSpecification))
    {
      if (((BundleSpecification)unsatisfied).isOptional()) {
        return NLS.bind(PDERuntimeMessages.MessageHelper_missing_optional_required_bundle, toString(unsatisfied));
      }
      return NLS.bind(PDERuntimeMessages.MessageHelper_missing_required_bundle, toString(unsatisfied));
    }
    return NLS.bind(PDERuntimeMessages.MessageHelper_missing_host, toString(unsatisfied));
  }
  
  private static String toString(VersionConstraint constraint)
  {
    VersionRange versionRange = constraint.getVersionRange();
    if (versionRange == null) {
      return constraint.getName();
    }
    return constraint.getName() + '_' + versionRange;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.MessageHelper
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime;

import org.eclipse.jface.resource.CompositeImageDescriptor;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.graphics.ImageData;
import org.eclipse.swt.graphics.Point;

public class OverlayIcon
  extends CompositeImageDescriptor
{
  static final int DEFAULT_WIDTH = 16;
  static final int DEFAULT_HEIGHT = 16;
  private Point fSize = null;
  private ImageDescriptor fBase;
  private ImageDescriptor[][] fOverlays;
  
  public OverlayIcon(ImageDescriptor base, ImageDescriptor[][] overlays)
  {
    fBase = base;
    if (fBase == null) {
      fBase = ImageDescriptor.getMissingImageDescriptor();
    }
    fOverlays = overlays;
    fSize = new Point(16, 16);
  }
  
  public OverlayIcon(ImageDescriptor base, ImageDescriptor[][] overlays, Point size)
  {
    fBase = base;
    if (fBase == null) {
      fBase = ImageDescriptor.getMissingImageDescriptor();
    }
    fOverlays = overlays;
    fSize = size;
  }
  
  protected void drawBottomLeft(ImageDescriptor[] overlays)
  {
    if (overlays == null) {
      return;
    }
    int length = overlays.length;
    int x = 0;
    for (int i = 0; i < 3; i++) {
      if ((i < length) && (overlays[i] != null))
      {
        ImageData id = overlays[i].getImageData();
        drawImage(id, x, getSizey - height);
        x += width;
      }
    }
  }
  
  protected void drawBottomRight(ImageDescriptor[] overlays)
  {
    if (overlays == null) {
      return;
    }
    int length = overlays.length;
    int x = getSizex;
    for (int i = 2; i >= 0; i--) {
      if ((i < length) && (overlays[i] != null))
      {
        ImageData id = overlays[i].getImageData();
        x -= width;
        drawImage(id, x, getSizey - height);
      }
    }
  }
  
  protected void drawCompositeImage(int width, int height)
  {
    ImageData bg = fBase.getImageData();
    drawImage(bg, 0, 0);
    if (fOverlays != null)
    {
      if (fOverlays.length > 0) {
        drawTopRight(fOverlays[0]);
      }
      if (fOverlays.length > 1) {
        drawBottomRight(fOverlays[1]);
      }
      if (fOverlays.length > 2) {
        drawBottomLeft(fOverlays[2]);
      }
      if (fOverlays.length > 3) {
        drawTopLeft(fOverlays[3]);
      }
    }
  }
  
  protected void drawTopLeft(ImageDescriptor[] overlays)
  {
    if (overlays == null) {
      return;
    }
    int length = overlays.length;
    int x = 0;
    for (int i = 0; i < 3; i++) {
      if ((i < length) && (overlays[i] != null))
      {
        ImageData id = overlays[i].getImageData();
        drawImage(id, x, 0);
        x += width;
      }
    }
  }
  
  protected void drawTopRight(ImageDescriptor[] overlays)
  {
    if (overlays == null) {
      return;
    }
    int length = overlays.length;
    int x = getSizex;
    for (int i = 2; i >= 0; i--) {
      if ((i < length) && (overlays[i] != null))
      {
        ImageData id = overlays[i].getImageData();
        x -= width;
        drawImage(id, x, 0);
      }
    }
  }
  
  protected Point getSize()
  {
    return fSize;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.OverlayIcon
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime;

import org.eclipse.osgi.util.NLS;

public class PDERuntimeMessages
  extends NLS
{
  private static final String BUNDLE_NAME = "org.eclipse.pde.internal.runtime.pderuntimeresources";
  public static String ActiveFormEditorSection_Active_Form_Page;
  public static String ActiveMenuSection_0;
  public static String ActiveMenuSection_1;
  public static String ActiveMenuSection_2;
  public static String ActiveMenuSection_3;
  public static String ActiveMenuSection_4;
  public static String ActiveMenuSection_5;
  public static String ActiveMenuSection_6;
  public static String ActiveMenuSection_7;
  public static String RegistryView_refresh_label;
  public static String RegistryView_refresh_tooltip;
  public static String RegistryView_collapseAll_label;
  public static String RegistryView_collapseAll_tooltip;
  public static String RegistryView_folders_imports;
  public static String RegistryView_folders_libraries;
  public static String RegistryView_folders_extensionPoints;
  public static String RegistryView_folders_extensions;
  public static String RegistryView_found_problems;
  public static String RegistryView_showRunning_label;
  public static String RegistryView_showDisabled_label;
  public static String RegistryView_showAdvanced_label;
  public static String RegistryView_titleSummary;
  public static String RegistryView_startAction_label;
  public static String RegistryView_stopAction_label;
  public static String RegistryView_enableAction_label;
  public static String RegistryView_diag_dialog_title;
  public static String RegistryView_diagnoseAction_label;
  public static String RegistryView_disableAction_label;
  public static String RegistryView_no_unresolved_constraints;
  public static String MessageHelper_missing_optional_required_bundle;
  public static String MessageHelper_missing_required_bundle;
  public static String MessageHelper_missing_imported_package;
  public static String MessageHelper_missing_host;
  public static String SpyDialog_title;
  public static String MenuSpyDialog_title;
  public static String SpyDialog_close;
  public static String SpyDialog_activeShell_title;
  public static String SpyDialog_activeShell_desc;
  public static String SpyDialog_activePart_title;
  public static String SpyDialog_activePart_desc;
  public static String SpyDialog_activeWizard_title;
  public static String SpyDialog_activeWizard_desc;
  public static String SpyDialog_activeMenuIds;
  public static String SpyDialog_contributingPluginId_title;
  public static String SpyDialog_contributingPluginId_desc;
  public static String SpyDialog_activeSelection_title;
  public static String SpyDialog_activeSelection_desc;
  public static String SpyDialog_activeSelectionInterfaces_desc;
  public static String SpyDialog_activeSelectedElementsCount_desc;
  public static String SpyDialog_activeSelectedElement_desc;
  public static String SpyDialog_activeSelectedElementInterfaces_desc;
  public static String SpyDialog_activeDialogPageSection_title;
  public static String SpyDialog_activeDialogPageSection_title2;
  public static String SpyDialog_activeDialogPageSection_desc;
  public static String SpyDialog_activeHelpSection_title;
  public static String SpyDialog_activeHelpSection_desc;
  public static String SpyIDEUtil_noSourceFound_title;
  public static String SpyIDEUtil_noSourceFound_message;
  public static String SpyDialog_activePageBook_title;
  public static String SpyFormToolkit_saveImageAs_title;
  public static String SpyFormToolkit_copyQualifiedName;
  public static String RegistryBrowser_Bundle;
  public static String RegistryBrowser_copy_label;
  public static String RegistryBrowser_ExtensionPoint;
  public static String RegistryBrowser_extensionPoints;
  public static String RegistryBrowser_GroupBy;
  public static String RegistryBrowser_InitializingView;
  public static String RegistryBrowser_plugins;
  public static String RegistryBrowser_Service;
  public static String RegistryBrowser_Services;
  public static String RegistryBrowserLabelProvider_contributedBy;
  public static String RegistryBrowserLabelProvider_ExportedPackages;
  public static String RegistryBrowserLabelProvider_Fragments;
  public static String RegistryBrowserLabelProvider_ImportedPackages;
  public static String RegistryBrowserLabelProvider_Properties;
  public static String RegistryBrowserLabelProvider_RegisteredBy;
  public static String RegistryBrowserLabelProvider_usedServices;
  public static String RegistryBrowserLabelProvider_registeredServices;
  public static String RegistryBrowserLabelProvider_UsingBundles;
  
  static
  {
    NLS.initializeMessages("org.eclipse.pde.internal.runtime.pderuntimeresources", PDERuntimeMessages.class);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.PDERuntimeMessages
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime;

import java.lang.reflect.InvocationTargetException;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.ILog;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
import org.eclipse.osgi.service.resolver.PlatformAdmin;
import org.eclipse.osgi.service.resolver.State;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.service.packageadmin.PackageAdmin;
import org.osgi.util.tracker.ServiceTracker;

public class PDERuntimePlugin
  extends AbstractUIPlugin
{
  public static final String ID = "org.eclipse.pde.runtime";
  private static PDERuntimePlugin inst;
  private BundleContext fContext;
  private ServiceTracker packageAdminTracker;
  private ServiceTracker platformAdminTracker;
  public static final boolean HAS_IDE_BUNDLES;
  
  public PDERuntimePlugin()
  {
    inst = this;
  }
  
  private static boolean isBundleAvailable(String bundleID)
  {
    Bundle bundle = Platform.getBundle(bundleID);
    return (bundle != null) && ((bundle.getState() & 0x2C) != 0);
  }
  
  static
  {
    boolean result = false;
    try
    {
      result = (isBundleAvailable("org.eclipse.core.resources")) && 
        (isBundleAvailable("org.eclipse.pde.core")) && 
        (isBundleAvailable("org.eclipse.jdt.core")) && 
        (isBundleAvailable("org.eclipse.help")) && 
        (isBundleAvailable("org.eclipse.pde.ui")) && 
        (isBundleAvailable("org.eclipse.jdt.ui"));
    }
    catch (Throwable localThrowable) {}
    HAS_IDE_BUNDLES = result;
  }
  
  public static IWorkbenchPage getActivePage()
  {
    return getDefault().internalGetActivePage();
  }
  
  public static Shell getActiveWorkbenchShell()
  {
    return getActiveWorkbenchWindow().getShell();
  }
  
  public static IWorkbenchWindow getActiveWorkbenchWindow()
  {
    return getDefault().getWorkbench().getActiveWorkbenchWindow();
  }
  
  public PackageAdmin getPackageAdmin()
  {
    if (packageAdminTracker == null) {
      return null;
    }
    return (PackageAdmin)packageAdminTracker.getService();
  }
  
  public PlatformAdmin getPlatformAdmin()
  {
    if (platformAdminTracker == null) {
      return null;
    }
    return (PlatformAdmin)platformAdminTracker.getService();
  }
  
  public static PDERuntimePlugin getDefault()
  {
    return inst;
  }
  
  public static String getPluginId()
  {
    return getDefault().getBundle().getSymbolicName();
  }
  
  private IWorkbenchPage internalGetActivePage()
  {
    return getWorkbench().getActiveWorkbenchWindow().getActivePage();
  }
  
  public void start(BundleContext context)
    throws Exception
  {
    super.start(context);
    fContext = context;
    
    packageAdminTracker = new ServiceTracker(context, PackageAdmin.class.getName(), null);
    packageAdminTracker.open();
    
    platformAdminTracker = new ServiceTracker(context, PlatformAdmin.class.getName(), null);
    platformAdminTracker.open();
  }
  
  public BundleContext getBundleContext()
  {
    return fContext;
  }
  
  public State getState()
  {
    return getPlatformAdmin().getState(false);
  }
  
  public static void log(Throwable e)
  {
    if ((e instanceof InvocationTargetException)) {
      e = ((InvocationTargetException)e).getTargetException();
    }
    IStatus status = null;
    if ((e instanceof CoreException)) {
      status = ((CoreException)e).getStatus();
    } else if (e.getMessage() != null) {
      status = new Status(4, "org.eclipse.pde.runtime", 0, e.getMessage(), e);
    }
    if (status != null) {
      getDefault().getLog().log(status);
    }
  }
  
  public void stop(BundleContext context)
    throws Exception
  {
    super.stop(context);
    if (packageAdminTracker != null)
    {
      packageAdminTracker.close();
      packageAdminTracker = null;
    }
    if (platformAdminTracker != null)
    {
      platformAdminTracker.close();
      platformAdminTracker = null;
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.PDERuntimePlugin
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime;

import java.net.URL;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.Path;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.swt.graphics.Image;

public class PDERuntimePluginImages
{
  private static ImageRegistry PLUGIN_REGISTRY;
  public static final String ICONS_PATH = "icons/";
  private static final String PATH_OBJ = "icons/obj16/";
  private static final String PATH_DCL = "icons/dlcl16/";
  private static final String PATH_LCL = "icons/elcl16/";
  private static final String PATH_OVR = "icons/ovr16/";
  public static final String IMG_CLASS_OBJ = "class_obj.gif";
  public static final String IMG_INTERFACE_OBJ = "int_obj.gif";
  public static final String IMG_PLUGIN_OBJ = "plugin_obj.gif";
  public static final String IMG_SPY_OBJ = "pdespy_obj.gif";
  public static final String IMG_MENU_OBJ = "menu_obj.gif";
  public static final String IMG_ID_OBJ = "generic_xml_obj.gif";
  public static final String IMG_MENUSPY_OBJ = "menuspy_obj.gif";
  public static final String IMG_CONTEXTID_OBJ = "contextid_obj.gif";
  public static final String IMG_SAVE_IMAGE_AS_OBJ = "save_image_as_obj.gif";
  public static final String IMG_COPY_QNAME = "cpyqual_menu.gif";
  public static final ImageDescriptor CLASS_OBJ = create("icons/obj16/", "class_obj.gif");
  public static final ImageDescriptor INTERFACE_OBJ = create("icons/obj16/", "int_obj.gif");
  public static final ImageDescriptor PLUGIN_OBJ = create("icons/obj16/", "plugin_obj.gif");
  public static final ImageDescriptor SPY_OBJ = create("icons/obj16/", "pdespy_obj.gif");
  public static final ImageDescriptor MENU_OBJ = create("icons/obj16/", "menu_obj.gif");
  public static final ImageDescriptor ID_OBJ = create("icons/obj16/", "generic_xml_obj.gif");
  public static final ImageDescriptor MENUSPY_OBJ = create("icons/obj16/", "menuspy_obj.gif");
  public static final ImageDescriptor CONTEXTID_OBJ = create("icons/obj16/", "contextid_obj.gif");
  public static final ImageDescriptor SAVE_IMAGE_AS_OBJ = create("icons/obj16/", "save_image_as_obj.gif");
  public static final ImageDescriptor COPY_QNAME = create("icons/elcl16/", "cpyqual_menu.gif");
  public static final ImageDescriptor DESC_REFRESH_DISABLED = create("icons/dlcl16/", "refresh.gif");
  public static final ImageDescriptor DESC_REFRESH = create("icons/elcl16/", "refresh.gif");
  public static final ImageDescriptor DESC_COLLAPSE_ALL = create("icons/elcl16/", "collapseall.gif");
  public static final ImageDescriptor DESC_ERROR_ST_OBJ = create("icons/obj16/", "error_st_obj.gif");
  public static final ImageDescriptor DESC_ERROR_STACK_OBJ = create("icons/obj16/", "error_stack.gif");
  public static final ImageDescriptor DESC_EXT_POINT_OBJ = create("icons/obj16/", "ext_point_obj.gif");
  public static final ImageDescriptor DESC_EXT_POINTS_OBJ = create("icons/obj16/", "ext_points_obj.gif");
  public static final ImageDescriptor DESC_EXTENSION_OBJ = create("icons/obj16/", "extension_obj.gif");
  public static final ImageDescriptor DESC_EXTENSIONS_OBJ = create("icons/obj16/", "extensions_obj.gif");
  public static final ImageDescriptor DESC_GENERIC_XML_OBJ = create("icons/obj16/", "generic_xml_obj.gif");
  public static final ImageDescriptor DESC_ATTR_XML_OBJ = create("icons/obj16/", "attr_xml_obj.gif");
  public static final ImageDescriptor DESC_INFO_ST_OBJ = create("icons/obj16/", "info_st_obj.gif");
  public static final ImageDescriptor DESC_JAVA_LIB_OBJ = create("icons/obj16/", "java_lib_obj.gif");
  public static final ImageDescriptor DESC_NATIVE_LIB_OBJ = create("icons/obj16/", "native_lib_obj.gif");
  public static final ImageDescriptor DESC_OK_ST_OBJ = create("icons/obj16/", "ok_st_obj.gif");
  public static final ImageDescriptor DESC_PLUGIN_OBJ = create("icons/obj16/", "plugin_obj.gif");
  public static final ImageDescriptor DESC_REQ_PLUGIN_OBJ = create("icons/obj16/", "req_plugin_obj.gif");
  public static final ImageDescriptor DESC_REQ_PLUGINS_OBJ = create("icons/obj16/", "req_plugins_obj.gif");
  public static final ImageDescriptor DESC_RUNTIME_OBJ = create("icons/obj16/", "runtime_obj.gif");
  public static final ImageDescriptor DESC_WARNING_ST_OBJ = create("icons/obj16/", "warning_st_obj.gif");
  public static final ImageDescriptor DESC_LOCATION = create("icons/obj16/", "location_obj.gif");
  public static final ImageDescriptor DESC_IMP_OBJ = create("icons/obj16/", "bundle-importer.gif");
  public static final ImageDescriptor DESC_EXP_OBJ = create("icons/obj16/", "bundle-exporter.gif");
  public static final ImageDescriptor DESC_SERVICE_OBJ = create("icons/obj16/", "int_obj.gif");
  public static final ImageDescriptor DESC_PROPERTY_OBJ = create("icons/obj16/", "property_obj.gif");
  public static final ImageDescriptor DESC_PLUGINS_OBJ = create("icons/obj16/", "plugins_obj.gif");
  public static final ImageDescriptor DESC_FRAGMENT_OBJ = create("icons/obj16/", "frgmt_obj.gif");
  public static final ImageDescriptor DESC_PACKAGE_OBJ = create("icons/obj16/", "package_obj.gif");
  public static final ImageDescriptor DESC_RUN_CO = create("icons/ovr16/", "run_co.gif");
  public static final ImageDescriptor DESC_EXPORT_CO = create("icons/ovr16/", "export_co.gif");
  public static final ImageDescriptor DESC_ERROR_CO = create("icons/ovr16/", "error_co.gif");
  public static final ImageDescriptor DESC_DEFAULT_CO = create("icons/ovr16/", "default_co.gif");
  
  private static final void initialize()
  {
    PLUGIN_REGISTRY = PDERuntimePlugin.getDefault().getImageRegistry();
    manage("class_obj.gif", CLASS_OBJ);
    manage("int_obj.gif", INTERFACE_OBJ);
    manage("plugin_obj.gif", PLUGIN_OBJ);
    manage("pdespy_obj.gif", SPY_OBJ);
    manage("menu_obj.gif", MENU_OBJ);
    manage("generic_xml_obj.gif", ID_OBJ);
    manage("menuspy_obj.gif", MENUSPY_OBJ);
    manage("contextid_obj.gif", CONTEXTID_OBJ);
    manage("save_image_as_obj.gif", SAVE_IMAGE_AS_OBJ);
    manage("cpyqual_menu.gif", COPY_QNAME);
  }
  
  private static ImageDescriptor create(String prefix, String name)
  {
    return ImageDescriptor.createFromURL(makeIconURL(prefix, name));
  }
  
  public static Image get(String key)
  {
    if (PLUGIN_REGISTRY == null) {
      initialize();
    }
    return PLUGIN_REGISTRY.get(key);
  }
  
  private static URL makeIconURL(String prefix, String name)
  {
    String path = "$nl$/" + prefix + name;
    return FileLocator.find(PDERuntimePlugin.getDefault().getBundle(), new Path(path), null);
  }
  
  public static Image manage(String key, ImageDescriptor desc)
  {
    Image image = desc.createImage();
    PLUGIN_REGISTRY.put(key, image);
    return image;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.PDERuntimePluginImages
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime.registry;

import org.eclipse.core.runtime.IStatus;
import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;

public class DiagnosticsDialog
  extends ErrorDialog
{
  public DiagnosticsDialog(Shell parentShell, String dialogTitle, String message, IStatus status, int displayMask)
  {
    super(parentShell, dialogTitle, message, status, displayMask);
  }
  
  protected Control createDialogArea(Composite parent)
  {
    Control area = super.createDialogArea(parent);
    createDropDownList((Composite)area);
    return area;
  }
  
  protected void createButtonsForButtonBar(Composite parent)
  {
    createButton(parent, 0, IDialogConstants.OK_LABEL, true);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.registry.DiagnosticsDialog
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime.registry;

import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerFilter;
import org.eclipse.pde.internal.runtime.registry.model.Bundle;
import org.eclipse.pde.internal.runtime.registry.model.Extension;
import org.eclipse.pde.internal.runtime.registry.model.ExtensionPoint;

class RegistryBrowser$1
  extends ViewerFilter
{
  final RegistryBrowser this$0;
  
  RegistryBrowser$1(RegistryBrowser paramRegistryBrowser)
  {
    this$0 = paramRegistryBrowser;
  }
  
  public boolean select(Viewer viewer, Object parentElement, Object element)
  {
    if ((element instanceof ExtensionPoint)) {
      element = Platform.getBundle(((ExtensionPoint)element).getNamespaceIdentifier());
    } else if ((element instanceof Extension)) {
      element = Platform.getBundle(((Extension)element).getNamespaceIdentifier());
    }
    if ((element instanceof Bundle)) {
      return ((Bundle)element).getState() == 32;
    }
    return true;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.registry.RegistryBrowser.1
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime.registry;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ITreeSelection;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.dnd.Clipboard;
import org.eclipse.swt.dnd.TextTransfer;
import org.eclipse.swt.dnd.Transfer;
import org.eclipse.ui.dialogs.FilteredTree;

class RegistryBrowser$10
  extends Action
{
  final RegistryBrowser this$0;
  
  RegistryBrowser$10(RegistryBrowser paramRegistryBrowser, String $anonymous0)
  {
    super($anonymous0);this$0 = paramRegistryBrowser;
  }
  
  public void run()
  {
    ITreeSelection selection = (ITreeSelection)RegistryBrowser.access$10(this$0).getViewer().getSelection();
    if (selection.isEmpty()) {
      return;
    }
    String textVersion = ((ILabelProvider)RegistryBrowser.access$7(this$0).getLabelProvider()).getText(selection.getFirstElement());
    if ((textVersion != null) && (textVersion.trim().length() > 0)) {
      RegistryBrowser.access$11(this$0).setContents(new Object[] { textVersion }, new Transfer[] { TextTransfer.getInstance() });
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.registry.RegistryBrowser.10
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime.registry;

import org.eclipse.jface.action.Action;

class RegistryBrowser$11
  extends Action
{
  final RegistryBrowser this$0;
  
  RegistryBrowser$11(RegistryBrowser paramRegistryBrowser, String $anonymous0)
  {
    super($anonymous0);this$0 = paramRegistryBrowser;
  }
  
  public void run() {}
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.registry.RegistryBrowser.11
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime.registry;

import java.util.Iterator;
import java.util.List;
import org.eclipse.jface.action.Action;
import org.eclipse.pde.internal.runtime.PDERuntimePlugin;
import org.eclipse.pde.internal.runtime.registry.model.Bundle;
import org.osgi.framework.BundleException;

class RegistryBrowser$12
  extends Action
{
  final RegistryBrowser this$0;
  
  RegistryBrowser$12(RegistryBrowser paramRegistryBrowser, String $anonymous0)
  {
    super($anonymous0);this$0 = paramRegistryBrowser;
  }
  
  public void run()
  {
    try
    {
      List bundles = RegistryBrowser.access$12(this$0);
      for (Iterator it = bundles.iterator(); it.hasNext();)
      {
        Bundle bundle = (Bundle)it.next();
        bundle.start();
      }
    }
    catch (BundleException e)
    {
      PDERuntimePlugin.log(e);
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.registry.RegistryBrowser.12
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime.registry;

import java.util.Iterator;
import java.util.List;
import org.eclipse.jface.action.Action;
import org.eclipse.pde.internal.runtime.PDERuntimePlugin;
import org.eclipse.pde.internal.runtime.registry.model.Bundle;
import org.osgi.framework.BundleException;

class RegistryBrowser$13
  extends Action
{
  final RegistryBrowser this$0;
  
  RegistryBrowser$13(RegistryBrowser paramRegistryBrowser, String $anonymous0)
  {
    super($anonymous0);this$0 = paramRegistryBrowser;
  }
  
  public void run()
  {
    try
    {
      List bundles = RegistryBrowser.access$12(this$0);
      for (Iterator it = bundles.iterator(); it.hasNext();)
      {
        Bundle bundle = (Bundle)it.next();
        bundle.stop();
      }
    }
    catch (BundleException e)
    {
      PDERuntimePlugin.log(e);
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.registry.RegistryBrowser.13
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime.registry;

import java.util.Iterator;
import java.util.List;
import org.eclipse.jface.action.Action;
import org.eclipse.pde.internal.runtime.registry.model.Bundle;

class RegistryBrowser$14
  extends Action
{
  final RegistryBrowser this$0;
  
  RegistryBrowser$14(RegistryBrowser paramRegistryBrowser, String $anonymous0)
  {
    super($anonymous0);this$0 = paramRegistryBrowser;
  }
  
  public void run()
  {
    List bundles = RegistryBrowser.access$12(this$0);
    for (Iterator it = bundles.iterator(); it.hasNext();)
    {
      Bundle bundle = (Bundle)it.next();
      bundle.enable();
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.registry.RegistryBrowser.14
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime.registry;

import java.util.Iterator;
import java.util.List;
import org.eclipse.jface.action.Action;
import org.eclipse.pde.internal.runtime.registry.model.Bundle;

class RegistryBrowser$15
  extends Action
{
  final RegistryBrowser this$0;
  
  RegistryBrowser$15(RegistryBrowser paramRegistryBrowser, String $anonymous0)
  {
    super($anonymous0);this$0 = paramRegistryBrowser;
  }
  
  public void run()
  {
    List bundles = RegistryBrowser.access$12(this$0);
    for (Iterator it = bundles.iterator(); it.hasNext();)
    {
      Bundle bundle = (Bundle)it.next();
      bundle.disable();
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.registry.RegistryBrowser.15
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime.registry;

import java.util.Iterator;
import java.util.List;
import org.eclipse.core.runtime.MultiStatus;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.pde.internal.runtime.PDERuntimeMessages;
import org.eclipse.pde.internal.runtime.registry.model.Bundle;
import org.eclipse.ui.IWorkbenchPartSite;

class RegistryBrowser$16
  extends Action
{
  final RegistryBrowser this$0;
  
  RegistryBrowser$16(RegistryBrowser paramRegistryBrowser, String $anonymous0)
  {
    super($anonymous0);this$0 = paramRegistryBrowser;
  }
  
  public void run()
  {
    List bundles = RegistryBrowser.access$12(this$0);
    for (Iterator it = bundles.iterator(); it.hasNext();)
    {
      Bundle bundle = (Bundle)it.next();
      MultiStatus problems = bundle.diagnose();
      if ((problems != null) && (problems.getChildren().length > 0))
      {
        Dialog dialog = new DiagnosticsDialog(this$0.getSite().getShell(), PDERuntimeMessages.RegistryView_diag_dialog_title, null, problems, 2);
        dialog.open();
      }
      else
      {
        MessageDialog.openInformation(this$0.getSite().getShell(), PDERuntimeMessages.RegistryView_diag_dialog_title, PDERuntimeMessages.RegistryView_no_unresolved_constraints);
      }
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.registry.RegistryBrowser.16
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime.registry;

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

class RegistryBrowser$17
  extends Action
{
  final RegistryBrowser this$0;
  
  RegistryBrowser$17(RegistryBrowser paramRegistryBrowser, String $anonymous0)
  {
    super($anonymous0);this$0 = paramRegistryBrowser;
  }
  
  public void run()
  {
    RegistryBrowser.access$7(this$0).collapseAll();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.registry.RegistryBrowser.17
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime.registry;

import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Tree;

class RegistryBrowser$18
  implements Runnable
{
  final RegistryBrowser this$0;
  
  RegistryBrowser$18(RegistryBrowser paramRegistryBrowser)
  {
    this$0 = paramRegistryBrowser;
  }
  
  public void run()
  {
    try
    {
      Thread.sleep(50L);
    }
    catch (InterruptedException localInterruptedException)
    {
      return;
    }
    RegistryBrowser.access$13(this$0, null);
    if (RegistryBrowser.access$7(this$0).getTree().isDisposed()) {
      return;
    }
    RegistryBrowser.access$7(this$0).getTree().getDisplay().asyncExec(new RegistryBrowser.19(this));
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.registry.RegistryBrowser.18
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime.registry;

import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.widgets.Tree;

class RegistryBrowser$19
  implements Runnable
{
  final RegistryBrowser.18 this$1;
  
  RegistryBrowser$19(RegistryBrowser.18 param18)
  {
    this$1 = param18;
  }
  
  public void run()
  {
    if (!RegistryBrowser.access$7(RegistryBrowser.18.access$0(this$1)).getTree().isDisposed())
    {
      RegistryBrowser.access$7(RegistryBrowser.18.access$0(this$1)).refresh();
      RegistryBrowser.18.access$0(this$1).updateTitle();
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.registry.RegistryBrowser.19
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime.registry;

import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerFilter;
import org.eclipse.pde.internal.runtime.registry.model.Bundle;

class RegistryBrowser$2
  extends ViewerFilter
{
  final RegistryBrowser this$0;
  
  RegistryBrowser$2(RegistryBrowser paramRegistryBrowser)
  {
    this$0 = paramRegistryBrowser;
  }
  
  public boolean select(Viewer viewer, Object parentElement, Object element)
  {
    if ((element instanceof Bundle)) {
      return !((Bundle)element).isEnabled();
    }
    return false;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.registry.RegistryBrowser.2
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime.registry;

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.pde.internal.runtime.registry.model.RegistryModel;

class RegistryBrowser$3
  extends Job
{
  final RegistryBrowser this$0;
  
  RegistryBrowser$3(RegistryBrowser paramRegistryBrowser, String $anonymous0)
  {
    super($anonymous0);this$0 = paramRegistryBrowser;
  }
  
  public IStatus run(IProgressMonitor monitor)
  {
    RegistryBrowser.access$4(this$0).connect(monitor, true);
    RegistryBrowser.access$5(this$0, null);
    return monitor.isCanceled() ? Status.CANCEL_STATUS : Status.OK_STATUS;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.registry.RegistryBrowser.3
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime.registry;

import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerComparator;
import org.eclipse.pde.internal.runtime.registry.model.Bundle;
import org.eclipse.pde.internal.runtime.registry.model.Folder;

class RegistryBrowser$4
  extends ViewerComparator
{
  final RegistryBrowser this$0;
  
  RegistryBrowser$4(RegistryBrowser paramRegistryBrowser)
  {
    this$0 = paramRegistryBrowser;
  }
  
  public int compare(Viewer viewer, Object e1, Object e2)
  {
    if (((e1 instanceof Comparable)) && ((e2 instanceof Comparable)) && (e1.getClass().equals(e2.getClass())))
    {
      Comparable c1 = (Comparable)e1;
      Comparable c2 = (Comparable)e2;
      
      return c1.compareTo(c2);
    }
    if (((e1 instanceof Folder)) && ((e2 instanceof Folder))) {
      return ((Folder)e1).getId() - ((Folder)e2).getId();
    }
    if (((e1 instanceof Bundle)) && ((e2 instanceof Bundle)))
    {
      e1 = ((Bundle)e1).getSymbolicName();
      e2 = ((Bundle)e2).getSymbolicName();
    }
    return super.compare(viewer, e1, e2);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.registry.RegistryBrowser.4
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime.registry;

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

class RegistryBrowser$5
  implements IMenuListener
{
  final RegistryBrowser this$0;
  
  RegistryBrowser$5(RegistryBrowser paramRegistryBrowser)
  {
    this$0 = paramRegistryBrowser;
  }
  
  public void menuAboutToShow(IMenuManager mng)
  {
    RegistryBrowser.access$6(this$0, mng);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.registry.RegistryBrowser.5
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime.registry;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.custom.BusyIndicator;
import org.eclipse.swt.widgets.Tree;

class RegistryBrowser$6
  extends Action
{
  final RegistryBrowser this$0;
  
  RegistryBrowser$6(RegistryBrowser paramRegistryBrowser, String $anonymous0)
  {
    super($anonymous0);this$0 = paramRegistryBrowser;
  }
  
  public void run()
  {
    BusyIndicator.showWhile(RegistryBrowser.access$7(this$0).getTree().getDisplay(), new RegistryBrowser.7(this));
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.registry.RegistryBrowser.6
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime.registry;

import org.eclipse.jface.viewers.TreeViewer;

class RegistryBrowser$7
  implements Runnable
{
  final RegistryBrowser.6 this$1;
  
  RegistryBrowser$7(RegistryBrowser.6 param6)
  {
    this$1 = param6;
  }
  
  public void run()
  {
    RegistryBrowser.6.access$0(this$1).refresh(RegistryBrowser.access$7(RegistryBrowser.6.access$0(this$1)).getInput());
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.registry.RegistryBrowser.7
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime.registry;

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

class RegistryBrowser$8
  extends Action
{
  final RegistryBrowser this$0;
  
  RegistryBrowser$8(RegistryBrowser paramRegistryBrowser, String $anonymous0)
  {
    super($anonymous0);this$0 = paramRegistryBrowser;
  }
  
  public void run()
  {
    if (RegistryBrowser.access$2(this$0).isChecked()) {
      RegistryBrowser.access$7(this$0).addFilter(RegistryBrowser.access$8(this$0));
    } else {
      RegistryBrowser.access$7(this$0).removeFilter(RegistryBrowser.access$8(this$0));
    }
    this$0.updateTitle();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.registry.RegistryBrowser.8
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime.registry;

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

class RegistryBrowser$9
  extends Action
{
  final RegistryBrowser this$0;
  
  RegistryBrowser$9(RegistryBrowser paramRegistryBrowser, String $anonymous0)
  {
    super($anonymous0);this$0 = paramRegistryBrowser;
  }
  
  public void run()
  {
    if (RegistryBrowser.access$3(this$0).isChecked()) {
      RegistryBrowser.access$7(this$0).addFilter(RegistryBrowser.access$9(this$0));
    } else {
      RegistryBrowser.access$7(this$0).removeFilter(RegistryBrowser.access$9(this$0));
    }
    this$0.updateTitle();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.internal.runtime.registry.RegistryBrowser.9
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.internal.runtime.registry;

import org.eclipse.jface.action.Action;
import org.eclipse.ui.IMemento;

class RegistryBrowser$GroupByAction
  extends Action
{
  private int actionGroupBy;
  final RegistryBrowser this$0;
  
  public RegistryBrowser$GroupByAction(RegistryBrowser paramRegistryBrowser, String name, int groupBy)
  {
    super(name, 8);this$0 = paramRegistryBrowser;
    actionGroupBy = groupBy;
  }
  
  pub
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-2017. Infinite Loop Ltd