revealing names generation in Auto Code Generation [message #94939] |
Fri, 12 September 2003 00:30  |
Eclipse User |
|
|
|
Originally posted by: sunilvi.noida.hcltech.com
Here I am trying to create a new Wizard , but the constructor and the
method comes with arg0 , arg1 as their input argument . How can do the
settings so that revealing names are generated.
for eg
public void handleEvent(Event arg0) {
// TODO Auto-generated method stub
}
It should be like
public void handleEvent(Event event) {
// TODO Auto-generated method stub
}
here i have event instead of arg0
/*
* Created on Sep 9, 2003
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package com.example.MyWizard;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
/**
* @author sunilvi
*
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
public class MyWizardMainPage extends WizardPage implements Listener {
/**
* @param arg0
*/
public MyWizardMainPage(String arg0) {
super(arg0);
// TODO Auto-generated constructor stub
}
/**
* @param arg0
* @param arg1
* @param arg2
*/
public MyWizardMainPage(String arg0, String arg1, ImageDescriptor
arg2) {
super(arg0, arg1, arg2);
// TODO Auto-generated constructor stub
}
/* (non-Javadoc)
* @see
org.eclipse.jface.dialogs.IDialogPage#createControl(org.ecli pse.swt.widgets.Composite)
*/
public void createControl(Composite arg0) {
// TODO Auto-generated method stub
}
/* (non-Javadoc)
* @see
org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt .widgets.Event)
*/
public void handleEvent(Event arg0) {
// TODO Auto-generated method stub
}
public static void main(String[] args) {
}
}
|
|
|
Re: revealing names generation in Auto Code Generation [message #95132 is a reply to message #94939] |
Fri, 12 September 2003 05:47  |
Eclipse User |
|
|
|
Originally posted by: daniel.megert.gmx.net
This works for me. Do you see the source for WizardPage? If not it
cannot detect the names.
Dani
Sunil Virmani wrote:
>
>Here I am trying to create a new Wizard , but the constructor and the
>method comes with arg0 , arg1 as their input argument . How can do the
>settings so that revealing names are generated.
>for eg
> public void handleEvent(Event arg0) {
> // TODO Auto-generated method stub
> }
>
>It should be like
>
> public void handleEvent(Event event) {
> // TODO Auto-generated method stub
> }
>here i have event instead of arg0
>
>/*
> * Created on Sep 9, 2003
> *
> * To change the template for this generated file go to
> * Window>Preferences>Java>Code Generation>Code and Comments
> */
>package com.example.MyWizard;
>
>import org.eclipse.jface.resource.ImageDescriptor;
>import org.eclipse.jface.wizard.WizardPage;
>import org.eclipse.swt.widgets.Composite;
>import org.eclipse.swt.widgets.Event;
>import org.eclipse.swt.widgets.Listener;
>
>/**
> * @author sunilvi
> *
> * To change the template for this generated type comment go to
> * Window>Preferences>Java>Code Generation>Code and Comments
> */
>public class MyWizardMainPage extends WizardPage implements Listener {
> /**
> * @param arg0
> */
> public MyWizardMainPage(String arg0) {
> super(arg0);
> // TODO Auto-generated constructor stub
> }
> /**
> * @param arg0
> * @param arg1
> * @param arg2
> */
> public MyWizardMainPage(String arg0, String arg1, ImageDescriptor
>arg2) {
> super(arg0, arg1, arg2);
> // TODO Auto-generated constructor stub
> }
> /* (non-Javadoc)
> * @see
> org.eclipse.jface.dialogs.IDialogPage#createControl(org.ecli pse.swt.widgets.Composite)
> */
> public void createControl(Composite arg0) {
> // TODO Auto-generated method stub
> }
> /* (non-Javadoc)
> * @see
> org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt .widgets.Event)
> */
> public void handleEvent(Event arg0) {
> // TODO Auto-generated method stub
> }
> public static void main(String[] args) {
> }
>}
>
>
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03792 seconds