How to load a DOM and make it available to script? [message #1484] |
Fri, 10 March 2006 03:50  |
Eclipse User |
|
|
|
Hi,
I skimmed through the following site while creating a DOM
http://www.eclipse.org/dash/monkey-help.php?key=writing
I have written a very basic DOM factory and want to make it available
when I run a script using my DOM object (currently it displays an error
that the object was not resolved). How can I do that?
The website says that I need to follow
http://<update-site>/<dom-plugin-id> pattern in the script header.
Could any one please post a simple DOM plugin example that could be
loaded from the local file system (instead of an update site) and a
simple script that uses it?
Appreciate any pointers. BTW, I think Eclipse Monkey is going to shape
up into a real cool scripting env.!
Great work!
Cheers,
Rahul
|
|
|
|
|
|
|
Re: How to load a DOM and make it available to script? [message #1557 is a reply to message #1542] |
Wed, 29 March 2006 02:04  |
Eclipse User |
|
|
|
Hi (again),
oops. looks like that I can reply to myself as well :-)
checking the code shows that the metadata is parsed via these regular
expressions ...
p = Pattern.compile("Menu:\\s*((\\p{Graph}| )+)", Pattern.DOTALL);
p = Pattern.compile("Scope:\\s*((\\p{Graph}| )+)", Pattern.DOTALL);
p =
Pattern.compile("DOM:\\s*(\\p{Graph}+)\\/((\\p{Alnum}|\\.)+) ",Pattern.DOTALL);
and so it just needs the slash before the plugin-id.
Naturally, following the other code shows that if the plugin can be loaded -
it doesn't need the URL. I had also just forgotten the:
- develop the plugin
- export the plugin
- import the plugin
- use plugin
cycle.
thanks,
Evan
"Evan" <evan.williams@isi.com.au> wrote in message
news:e0d9es$tqv$1@utils.eclipse.org...
> Hi there,
>
> I've got the same issue ... I was wondering about the syntax of the DOM
> directive though.
>
> Can you elaborate ? What exactly should I have for ...
>
> DOM http://update-site/dom-plugin-id
>
> if I don't have an update site ?
>
> thanks for any help,
> Evan
>
> "Rahul" <rahul.thakur.xdev@gmail.com> wrote in message
> news:dv0e0h$u1h$1@utils.eclipse.org...
>> Thanks John,
>>
>> I figured it out! Needed to have a DOM directive in the script header
>> even if there was no update site available for my plugin.
>>
>> Cheers,
>> Rahul
>>
>> "john" <johnwillsons@hotmail.com> wrote in message
>> news:dv0761$3i1$1@utils.eclipse.org...
>>> You may see the plugin org.eclipse.dash.doms.
>>> cheers.
>>>> Hi,
>>>>
>>>> I skimmed through the following site while creating a DOM
>>>> http://www.eclipse.org/dash/monkey-help.php?key=writing
>>>>
>>>> I have written a very basic DOM factory and want to make it available
>>>> when I run a script using my DOM object (currently it displays an error
>>>> that the object was not resolved). How can I do that?
>>>>
>>>> The website says that I need to follow
>>>> http://<update-site>/<dom-plugin-id> pattern in the script header.
>>>>
>>>> Could any one please post a simple DOM plugin example that could be
>>>> loaded from the local file system (instead of an update site) and a
>>>> simple script that uses it?
>>>>
>>>> Appreciate any pointers. BTW, I think Eclipse Monkey is going to shape
>>>> up into a real cool scripting env.!
>>>>
>>>> Great work!
>>>>
>>>> Cheers,
>>>> Rahul
>>>>
>>>>
>>>
>>>
>>
>>
>
>
|
|
|
Re: How to load a DOM and make it available to script? [message #560335 is a reply to message #1484] |
Sat, 11 March 2006 23:12  |
Eclipse User |
|
|
|
You may see the plugin org.eclipse.dash.doms.
cheers.
> Hi,
>
> I skimmed through the following site while creating a DOM
> http://www.eclipse.org/dash/monkey-help.php?key=writing
>
> I have written a very basic DOM factory and want to make it available when
> I run a script using my DOM object (currently it displays an error that
> the object was not resolved). How can I do that?
>
> The website says that I need to follow
> http://<update-site>/<dom-plugin-id> pattern in the script header.
>
> Could any one please post a simple DOM plugin example that could be loaded
> from the local file system (instead of an update site) and a simple script
> that uses it?
>
> Appreciate any pointers. BTW, I think Eclipse Monkey is going to shape up
> into a real cool scripting env.!
>
> Great work!
>
> Cheers,
> Rahul
>
>
|
|
|
Re: How to load a DOM and make it available to script? [message #560340 is a reply to message #1500] |
Sun, 12 March 2006 01:09  |
Eclipse User |
|
|
|
Thanks John,
I figured it out! Needed to have a DOM directive in the script header
even if there was no update site available for my plugin.
Cheers,
Rahul
"john" <johnwillsons@hotmail.com> wrote in message
news:dv0761$3i1$1@utils.eclipse.org...
> You may see the plugin org.eclipse.dash.doms.
> cheers.
>> Hi,
>>
>> I skimmed through the following site while creating a DOM
>> http://www.eclipse.org/dash/monkey-help.php?key=writing
>>
>> I have written a very basic DOM factory and want to make it available
>> when I run a script using my DOM object (currently it displays an
>> error that the object was not resolved). How can I do that?
>>
>> The website says that I need to follow
>> http://<update-site>/<dom-plugin-id> pattern in the script header.
>>
>> Could any one please post a simple DOM plugin example that could be
>> loaded from the local file system (instead of an update site) and a
>> simple script that uses it?
>>
>> Appreciate any pointers. BTW, I think Eclipse Monkey is going to
>> shape up into a real cool scripting env.!
>>
>> Great work!
>>
>> Cheers,
>> Rahul
>>
>>
>
>
|
|
|
|
Re: How to load a DOM and make it available to script? [message #560351 is a reply to message #1513] |
Wed, 29 March 2006 01:28  |
Eclipse User |
|
|
|
Hi there,
I've got the same issue ... I was wondering about the syntax of the DOM
directive though.
Can you elaborate ? What exactly should I have for ...
DOM http://update-site/dom-plugin-id
if I don't have an update site ?
thanks for any help,
Evan
"Rahul" <rahul.thakur.xdev@gmail.com> wrote in message
news:dv0e0h$u1h$1@utils.eclipse.org...
> Thanks John,
>
> I figured it out! Needed to have a DOM directive in the script header even
> if there was no update site available for my plugin.
>
> Cheers,
> Rahul
>
> "john" <johnwillsons@hotmail.com> wrote in message
> news:dv0761$3i1$1@utils.eclipse.org...
>> You may see the plugin org.eclipse.dash.doms.
>> cheers.
>>> Hi,
>>>
>>> I skimmed through the following site while creating a DOM
>>> http://www.eclipse.org/dash/monkey-help.php?key=writing
>>>
>>> I have written a very basic DOM factory and want to make it available
>>> when I run a script using my DOM object (currently it displays an error
>>> that the object was not resolved). How can I do that?
>>>
>>> The website says that I need to follow
>>> http://<update-site>/<dom-plugin-id> pattern in the script header.
>>>
>>> Could any one please post a simple DOM plugin example that could be
>>> loaded from the local file system (instead of an update site) and a
>>> simple script that uses it?
>>>
>>> Appreciate any pointers. BTW, I think Eclipse Monkey is going to shape
>>> up into a real cool scripting env.!
>>>
>>> Great work!
>>>
>>> Cheers,
>>> Rahul
>>>
>>>
>>
>>
>
>
|
|
|
Re: How to load a DOM and make it available to script? [message #560356 is a reply to message #1542] |
Wed, 29 March 2006 02:04  |
Eclipse User |
|
|
|
Hi (again),
oops. looks like that I can reply to myself as well :-)
checking the code shows that the metadata is parsed via these regular
expressions ...
p = Pattern.compile("Menu:\\s*((\\p{Graph}| )+)", Pattern.DOTALL);
p = Pattern.compile("Scope:\\s*((\\p{Graph}| )+)", Pattern.DOTALL);
p =
Pattern.compile("DOM:\\s*(\\p{Graph}+)\\/((\\p{Alnum}|\\.)+) ",Pattern.DOTALL);
and so it just needs the slash before the plugin-id.
Naturally, following the other code shows that if the plugin can be loaded -
it doesn't need the URL. I had also just forgotten the:
- develop the plugin
- export the plugin
- import the plugin
- use plugin
cycle.
thanks,
Evan
"Evan" <evan.williams@isi.com.au> wrote in message
news:e0d9es$tqv$1@utils.eclipse.org...
> Hi there,
>
> I've got the same issue ... I was wondering about the syntax of the DOM
> directive though.
>
> Can you elaborate ? What exactly should I have for ...
>
> DOM http://update-site/dom-plugin-id
>
> if I don't have an update site ?
>
> thanks for any help,
> Evan
>
> "Rahul" <rahul.thakur.xdev@gmail.com> wrote in message
> news:dv0e0h$u1h$1@utils.eclipse.org...
>> Thanks John,
>>
>> I figured it out! Needed to have a DOM directive in the script header
>> even if there was no update site available for my plugin.
>>
>> Cheers,
>> Rahul
>>
>> "john" <johnwillsons@hotmail.com> wrote in message
>> news:dv0761$3i1$1@utils.eclipse.org...
>>> You may see the plugin org.eclipse.dash.doms.
>>> cheers.
>>>> Hi,
>>>>
>>>> I skimmed through the following site while creating a DOM
>>>> http://www.eclipse.org/dash/monkey-help.php?key=writing
>>>>
>>>> I have written a very basic DOM factory and want to make it available
>>>> when I run a script using my DOM object (currently it displays an error
>>>> that the object was not resolved). How can I do that?
>>>>
>>>> The website says that I need to follow
>>>> http://<update-site>/<dom-plugin-id> pattern in the script header.
>>>>
>>>> Could any one please post a simple DOM plugin example that could be
>>>> loaded from the local file system (instead of an update site) and a
>>>> simple script that uses it?
>>>>
>>>> Appreciate any pointers. BTW, I think Eclipse Monkey is going to shape
>>>> up into a real cool scripting env.!
>>>>
>>>> Great work!
>>>>
>>>> Cheers,
>>>> Rahul
>>>>
>>>>
>>>
>>>
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.29679 seconds