Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ease-dev] Some questions of EASE

Hi,

there is no way we can prevent scripts from redefining existing functions and variables. you might reload a module which will redefine all its functions (and potentially overwrite same variables defined by the user before).
Name conflicts between modules may happen. In some cases they are even wanted. My advice is to use function names that are very specific and therefore unlikely to be overwritten. Programmers then might want to define alias commands that are shorter to type and easier to remember for users.

eg

@WrapToScript(alias="collapse")
public void collapseProjectExplorerTree() {}


Auto completion for the shell and and the JS editor are provided to some extent.

cheers
Christian

On 05/08/2016 06:18 AM, Trig Chen wrote:
Hi all,

I just heard of EASE yesterday. EASE seems the right scripting enviroment I'm looking for.
There are some question I wonder.

1. How to avoid script function to be redefined or overwritten?  
    If user types  "var wrap=1" in mistakes, the wrap function is redefined and can't be reverted.

2. How to avoid the same name conflicts between modules?

3. Does the script input textbox have auto completion?


Best regards,

Trig


_______________________________________________
ease-dev mailing list
ease-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ease-dev


Back to the top