Re: Eclipse UMC Plugin and _main.cfg
Fabian Mueller <fabianmueller5 <at> gmx.de>
2010-04-02 13:59:15 GMT
On 04/02/2010 03:39 PM, Timotei Dolean wrote:
Hello everybody!
I'm "timotei21" and I am a student who wants to participate in gsoc.
So, I've decided to take on the project "Eclipse U(ser) M(ade)
C(ontent). The plugin will create with some wizards, the
campaigns/scenarios/eras/etc. After that, you can edit the files in the
custom editor.
Now, there is an issue. The editor isn't just for single-file editing,
it's for editing an entire project. So the problem that showed up is
how can I import the existing campaigns/scenarios/etc in the
eclipse workspace, so we can edit them and still have the features like
autocompletition, etc.
The talk is here:
http://wesnoth.debian.net/%23wesnoth-dev-2010-04-02.log
. The first
part is between 13.50 to 14.18 and the second part between 14.33 to
15.16.
So, what should I use in achieving the "importing" task, and also not
to forget, to be able to edit manually the files.
Regards,
Timotei Dolean aka "timotei21"
_______________________________________________
Wesnoth-dev mailing list
Wesnoth-dev <at> gna.org
https://mail.gna.org/listinfo/wesnoth-dev
To precise the core point of the discussion:
We can go two different ways with the plugin design:
1. The plugin itself knows about what it can expect from a single file
that is part of the current project.
That could be handled by a stricter syntax of the _main.cfg file
for example.
For example would a file in scenarios/ be treated as a single
scenario what would give many advantages
regarding the plugin functionality.
2. The plugin does not expect a predefined file structure and respects
the macros/includes.
It only knows that a file that is called .cfg will include WML code.
If the wml parsing fails for some reason and the plugin does not
know about the WML that is included
in the file it will display everything that is known from python
tools or the engine itself.
I would like to stick to the second option.
Surely the first will create a better eclipse plugin in a shorter time.
But the second one will show the need where the output of our python
library tools or the engine itself
can be improved.
That way the project will give a benefit for every wesnoth coder, no
matter if he uses emacs, vi or the
eclipse plugin.
_______________________________________________
Wesnoth-dev mailing list
Wesnoth-dev <at> gna.org
https://mail.gna.org/listinfo/wesnoth-dev