Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org.eclipse.cdt.ui.internal.ui.wizards.NewClassCreationWizard.java #562

Closed
chengm349 opened this issue Dec 13, 2019 · 3 comments
Closed

Comments

@chengm349
Copy link

I modified DiagramFileHandler in an added function which is to the effect:

JOptionPane.showMessageDialog( null, "generateAClass" );
NewClassCreationWizardPage page = new NewClassCreationWizardPage();
JOptionPane.showMessageDialog( null, classname );

I ran in Eclipse plugin mode and seems to me the plugin hang at new NewClassCreationWizardPage();

If I remove the 2nd line, I can see both prompts. Do I need to change plugin.xml under umlet-eclipse-plugin?

@chengm349
Copy link
Author

public class NewClassCreationWizard extends NewElementWizard {
}

@ruspl-afed
Copy link

ruspl-afed commented Dec 13, 2019

NewClassCreationWizardPage page = new NewClassCreationWizardPage();

the WizardPage is designed to live inside the Wizard. Please have a closer look to the surrounding code, where should be a Wizard that instantiates this page. What you need to "emulate" the result of wizard work is the content of its "performFinish()" method.

@chengm349
Copy link
Author

I changed code to:

JOptionPane.showMessageDialog( null, "generateAClass" );
NewClassCreationWizard page = new NewClassCreationWizard();
JOptionPane.showMessageDialog( null, classname );

But the same result (only see first showMessageDialog).

In fact I don't need Wizard popup window. I just need to have a simple way to create .h and .cpp files. If possible, please give me a almost there snipet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants