Hi Alexander and All,
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.
Thanks.
Sent from
Mail for Windows 10
Hi Ming Cheng,
You need to read a bit about how Eclipse JFace and Eclipse Workbench is working. I added the answer below to your GitHub issue as well.
> 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.
Regards,
AF
13.12.2019 12:59, Ming Cheng пишет:
Hi Jonah,
I am following your suggestion about new C++ class but can’t move. I logged an issue to “my” tool
https://github.com/umlet/umlet/issues/562
Thanks.
Sent from
Mail for Windows 10
Hi,
I had a quick look at all these questions - I am not surprised that no one has answered on the forums, the forums are really meant for Users of the Eclipse CDT IDE - i.e. people writing C/C++ code.
I don't have answers to most of your questions, but I can try an answer on some of them:
> How to stop inserting same include stmt more than once
Try looking at how organize imports in CDT is implemented, it manipulates includes so may give you a good idea.
> How to load a file content into a new editor tab
Look up the IDE class in Eclipse platform (such as openEditor
method)
> How to use CDT to create a .h with a class decl?
Look how the new C++ class wizard is implemented for some clues.
I
I don't t
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev