uqbar-project / wollok

Wollok Programming Language
GNU General Public License v3.0
60 stars 16 forks source link

The new Object and Classes Wizard should ask the name of the object included in the generated code. #831

Closed Charlyzzz closed 8 years ago

Charlyzzz commented 8 years ago

Creating a new file for Wollok object named "someFile.wlk" generates the following code:

object abc {

}

Perhaps changing abc to the filename could be a better guess. Cheers!

tesonep commented 8 years ago

Hi @Charlyzzz it is clear we have to work on it.

The name of the file creates a package (or namespace) so having this object called someFile while declare the object with fully qualified name someFile.someFile. With the actual configuration the generated object is someFile.abc

Maybe we can add a text box in the wizard providing the initial name of the object? what do you think of this??

Charlyzzz commented 8 years ago

Definitely, that's even better! Good idea.

tesonep commented 8 years ago

Ok, then I will rewrite the issue to express that.

fdodino commented 8 years ago

I've been working on this. Now you have a third text control, so you can optionally define an object name. If text is blank, object abc is created, otherwise it uses object name from Wizard.

fdodino commented 8 years ago

I think that Wizard should have 2 radio buttons:

But we should open a new issue for that.