Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dash » How to load a DOM and make it available to script?
How to load a DOM and make it available to script? [message #1484] Fri, 10 March 2006 08:50 Go to next message
Rahul Thakur is currently offline Rahul ThakurFriend
Messages: 39
Registered: July 2009
Member
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 #1500 is a reply to message #1484] Sun, 12 March 2006 04:12 Go to previous messageGo to next message
John Willson is currently offline John WillsonFriend
Messages: 22
Registered: July 2009
Junior Member
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 #1513 is a reply to message #1500] Sun, 12 March 2006 06:09 Go to previous messageGo to next message
Rahul Thakur is currently offline Rahul ThakurFriend
Messages: 39
Registered: July 2009
Member
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 #1527 is a reply to message #1513] Sun, 12 March 2006 20:54 Go to previous messageGo to next message
Bjorn Freeman-Benson is currently offline Bjorn Freeman-BensonFriend
Messages: 334
Registered: July 2009
Senior Member
I guess we should document that - yes, it uses the DOM directives to
decide which DOMs to instantiate.

> 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.
Re: How to load a DOM and make it available to script? [message #1542 is a reply to message #1513] Wed, 29 March 2006 06:28 Go to previous messageGo to next message
Evan Williams is currently offline Evan WilliamsFriend
Messages: 6
Registered: July 2009
Junior Member
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 #1557 is a reply to message #1542] Wed, 29 March 2006 07:04 Go to previous message
Evan Williams is currently offline Evan WilliamsFriend
Messages: 6
Registered: July 2009
Junior Member
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] Sun, 12 March 2006 04:12 Go to previous message
John Willson is currently offline John WillsonFriend
Messages: 22
Registered: July 2009
Junior Member
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 06:09 Go to previous message
Rahul Thakur is currently offline Rahul ThakurFriend
Messages: 39
Registered: July 2009
Member
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 #560345 is a reply to message #1513] Sun, 12 March 2006 20:54 Go to previous message
Bjorn Freeman-Benson is currently offline Bjorn Freeman-BensonFriend
Messages: 334
Registered: July 2009
Senior Member
I guess we should document that - yes, it uses the DOM directives to
decide which DOMs to instantiate.

> 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.
Re: How to load a DOM and make it available to script? [message #560351 is a reply to message #1513] Wed, 29 March 2006 06:28 Go to previous message
Evan Williams is currently offline Evan WilliamsFriend
Messages: 6
Registered: July 2009
Junior Member
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 07:04 Go to previous message
Evan Williams is currently offline Evan WilliamsFriend
Messages: 6
Registered: July 2009
Junior Member
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
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Previous Topic:How to load a DOM and make it available to script?
Next Topic:What's ahead in Dash?
Goto Forum:
  


Current Time: Tue Apr 16 12:15:17 GMT 2024

Powered by FUDForum. Page generated in 0.09809 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top