Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RES: [pde-ui-dev] Problem to run a wizard plugin

ok , thank you.

Olivier

-----Mensagem original-----
De: dejan@xxxxxxxxxx [mailto:dejan@xxxxxxxxxx]
Enviada em: terça-feira, 22 de outubro de 2002 15:37
Para: pde-ui-dev@xxxxxxxxxxx
Assunto: Re: [pde-ui-dev] Problem to run a wizard plugin


Olivier,

The error looks like some of your classes is missing an expected default
constructor. Two classes I would look at are your top-level plug-in class
and the Wizard class. Read the spec and check what is the expected
constructor.

Regards,

Dejan Glozic, Ph.D.
Manager, Eclipse Platform Components
D2/MY7/8200/MKM
IBM Canada Ltd.
Tel. 905 413-2745  T/L 969-2745
Fax. 905 413-4854



 

                      Olivier@xxxxxxxxx

                      .br                      To:
pde-ui-dev@xxxxxxxxxxx

                      Sent by:                 cc:

                      pde-ui-dev-admin@        Subject:  [pde-ui-dev]
Problem to run a wizard plugin                                   
                      eclipse.org

 

 

                      10/22/2002 02:48

                      PM

                      Please respond to

                      pde-ui-dev

 

 




Hi,

I am trying to develop a simple wizard plugin based on the ReadmeFileWizard
example, but when i choose my wizard and click on the next button, i get
the
following exception :

java.lang.NoSuchMethodException
             at java.lang.Class.getConstructor0(Native Method)
             at java.lang.Class.getConstructor(Unknown Source)
             at
org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivatio

n(PluginDescriptor.java:664)
             at
org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(Plugin

Descriptor.java:183)
             at
org.eclipse.core.internal.plugins.PluginClassLoader.activatePlugin(PluginCla

ssLoader.java:58)
             at
org.eclipse.core.internal.plugins.PluginClassLoader.findClassParentsSelf(Plu

ginClassLoader.java:136)
             at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(Delegating

URLClassLoader.java:750)
             at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(Delegating

URLClassLoader.java:730)
             at java.lang.ClassLoader.loadClass(Unknown Source)
             at
org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension

(PluginDescriptor.java:127)
             at
org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension

(PluginDescriptor.java:164)
             at
org.eclipse.core.internal.plugins.ConfigurationElement.createExecutableExten

sion(ConfigurationElement.java:102)
             at
org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:116)
             at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:66)
             at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin..jav
a

:113)
             at
org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.createExecutableExten

sion(WorkbenchWizardElement.java:77)
             at
org.eclipse.ui.internal.dialogs.NewWizardNewPage$2.createWizard(NewWizardNew

Page.java:219)
             at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(WorkbenchWizardNod

e.java:85)
             at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform..jav
a

:839)
             at org.eclipse.core.runtime.Platform.run(Platform.java:416)
             at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(WorkbenchWizardNod

e.java:82)
             at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:66)
             at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizard(WorkbenchWizar

dNode.java:80)
             at
org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(WizardSelectionPage

.java:91)
             at
org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:646)
             at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:308)
             at
org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:398)
             at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:87)
             at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77)
             at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:827)
             at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1529)
             at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1291)
             at
org.eclipse.jface.window.Window.runEventLoop(Window.java:562)
             at org.eclipse.jface.window.Window.open(Window.java:542)
             at
org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:88)
             at
org.eclipse.jface.action.Action.runWithEvent(Action.java:749)
             at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Action

ContributionItem.java:407)
             at
org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionCont

ributionItem.java:361)
             at
org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionI

tem.java:352)
             at
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(A

ctionContributionItem.java:47)
             at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77)
             at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:827)
             at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1529)
             at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1291)
             at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1256)
             at org.eclipse.ui.internal.Workbench.run(Workbench.java:1239)
             at
org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.jav

a:775)
             at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
             at java.lang.reflect.Method.invoke(Native Method)
             at org.eclipse.core.launcher.Main.basicRun(Main.java:247)
             at org.eclipse.core.launcher.Main.run(Main.java:703)
             at org.eclipse.core.launcher.Main.main(Main.java:539)

The code of my wizard is :

package cetip.eclipse.plugin.nome;

import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.ui.INewWizard;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.internal.Workbench;
import org.eclipse.ui.wizards.newresource.BasicNewFileResourceWizard;

/**
 * @author Olivier
 *
 */
public class NewMenuWizard extends Wizard{

             IWorkbench _workbench ;
             IStructuredSelection _selection;



             /**
              * Constructor for NewMenuWizard.
              */
             public NewMenuWizard() {
                         super();
             }

             public void init(IWorkbench in_workbench ,
IStructuredSelection
in_selection ){
                         _workbench = in_workbench;
                         _selection = in_selection;
             }

             /**
              * @see org.eclipse.jface.wizard.IWizard#performFinish()
              */
             public boolean performFinish() {
                         return false;
             }

             /**
              * @see org.eclipse.jface.wizard.IWizard#addPages()
              */
             public void addPages() {
                         NewMenuPage nmp = new NewMenuPage( "Criação de
Menu" ,
_selection );
                         addPage( nmp );
             }

             public static void main(String[] args) {
                           // Create the wizard
      NewMenuWizard wizard = new NewMenuWizard();
      wizard.init(null, null);

      // Create the wizard dialog
      WizardDialog dialog = new WizardDialog
         (null,wizard);
      // Open the wizard dialog
      dialog.open();

             }

}


do someone has already passed for this ????


Thank you
Olivier.
_______________________________________________
pde-ui-dev mailing list
pde-ui-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/pde-ui-dev



_______________________________________________
pde-ui-dev mailing list
pde-ui-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/pde-ui-dev


Back to the top