/**
   * {@inheritDoc}
   *
   * <p>Subclasses may override this method (however, if they do so, they should invoke the method
   * on their superclass to ensure that the Platform's adapter manager is consulted).
   */
  public Object getAdapter(Class adapter) {

    /**
     * This implementation of the method declared by <code>IAdaptable</code> passes the request
     * along to the platform's adapter manager; roughly <code>
     * Platform.getAdapterManager().getAdapter(this, adapter)</code>.
     */
    return Platform.getAdapterManager().getAdapter(this, adapter);
  }
Example #2
0
 /** The default constructor. */
 public SampleWizard() {
   PDEPlugin.getDefault().getLabelProvider().connect(this);
   setDefaultPageImageDescriptor(PDEPluginImages.DESC_NEWEXP_WIZ);
   samples =
       Platform.getExtensionRegistry()
           .getConfigurationElementsFor("org.eclipse.pde.ui.samples"); // $NON-NLS-1$
   namesPage = new ProjectNamesPage(this);
   lastPage = new ReviewPage(this);
   setNeedsProgressMonitor(true);
   setWindowTitle(PDEUIMessages.ShowSampleAction_title);
 }