Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Executing external programs or code from diagram tool interface
Executing external programs or code from diagram tool interface [message #89244] Wed, 03 January 2007 13:08 Go to next message
Eclipse UserFriend
Originally posted by: rafaellfonseca.yahoo.com.br

Hi all :)
I'm developing a tool for modeling and automatic generation of Spatial Data
Warehouses as part of my master's degree thesis.
I've built the modeling interface using GMF. It's working fine and real cool
:)
For the automatic generation (wich in my case consists in the generation of
some SQL statements) i have built a separate java program that takes the xml
file with the diagram metadata info as an argument, parses it and generates
another file containing the SQL statements. Like executing "Sqlgenerator
xmlfile.domain" at the OS comand line, wich results in the file
"xmlfile.sql".

Is there any way that i can call this external program passing the current
diagram as an argument from the diagram tool interface? Or, the best case,
is there any way that i can merge this code with the diagram code and call
it from the tool interface?

P.s.: srry for any english mistakes.

Cheers,
Rafael from Brazil :)
Re: Executing external programs or code from diagram tool interface [message #89409 is a reply to message #89244] Thu, 04 January 2007 08:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

You could contribute an action to diagram editor that will call
java.lang.Runtime.exec() with appropriate arguments.

Rafael Fonseca wrote:
> Hi all :)
> I'm developing a tool for modeling and automatic generation of Spatial Data
> Warehouses as part of my master's degree thesis.
> I've built the modeling interface using GMF. It's working fine and real cool
> :)
> For the automatic generation (wich in my case consists in the generation of
> some SQL statements) i have built a separate java program that takes the xml
> file with the diagram metadata info as an argument, parses it and generates
> another file containing the SQL statements. Like executing "Sqlgenerator
> xmlfile.domain" at the OS comand line, wich results in the file
> "xmlfile.sql".
>
> Is there any way that i can call this external program passing the current
> diagram as an argument from the diagram tool interface? Or, the best case,
> is there any way that i can merge this code with the diagram code and call
> it from the tool interface?
>
> P.s.: srry for any english mistakes.
>
> Cheers,
> Rafael from Brazil :)
>
>
Re: Executing external programs or code from diagram tool interface [message #89485 is a reply to message #89409] Thu, 04 January 2007 11:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rafaellfonseca.yahoo.com.br

Thanks for the Answer :)
I'm not familiar with this :( Is there any link or documentation teaching
how to contribute an action to the diagram editor?

Cheers,
Rafael


"Dmitry Stadnik" <5d5@mail.ru> wrote in message
news:eniv6s$n10$1@utils.eclipse.org...
> You could contribute an action to diagram editor that will call
> java.lang.Runtime.exec() with appropriate arguments.
>
> Rafael Fonseca wrote:
>> Hi all :)
>> I'm developing a tool for modeling and automatic generation of Spatial
>> Data Warehouses as part of my master's degree thesis.
>> I've built the modeling interface using GMF. It's working fine and real
>> cool :)
>> For the automatic generation (wich in my case consists in the generation
>> of some SQL statements) i have built a separate java program that takes
>> the xml file with the diagram metadata info as an argument, parses it and
>> generates another file containing the SQL statements. Like executing
>> "Sqlgenerator xmlfile.domain" at the OS comand line, wich results in the
>> file "xmlfile.sql".
>>
>> Is there any way that i can call this external program passing the
>> current diagram as an argument from the diagram tool interface? Or, the
>> best case, is there any way that i can merge this code with the diagram
>> code and call it from the tool interface?
>>
>> P.s.: srry for any english mistakes.
>>
>> Cheers,
>> Rafael from Brazil :)
Re: Executing external programs or code from diagram tool interface [message #89637 is a reply to message #89485] Fri, 05 January 2007 06:02 Go to previous message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

http://wiki.eclipse.org/index.php/GMF_Tutorial

but there is nothing special with gmf diagram editor context menu so
org.eclipse.ui.popupMenus extension point applies )))

Rafael Fonseca wrote:
> Thanks for the Answer :)
> I'm not familiar with this :( Is there any link or documentation teaching
> how to contribute an action to the diagram editor?
>
> Cheers,
> Rafael
>
>
> "Dmitry Stadnik" <5d5@mail.ru> wrote in message
> news:eniv6s$n10$1@utils.eclipse.org...
>> You could contribute an action to diagram editor that will call
>> java.lang.Runtime.exec() with appropriate arguments.
>>
>> Rafael Fonseca wrote:
>>> Hi all :)
>>> I'm developing a tool for modeling and automatic generation of Spatial
>>> Data Warehouses as part of my master's degree thesis.
>>> I've built the modeling interface using GMF. It's working fine and real
>>> cool :)
>>> For the automatic generation (wich in my case consists in the generation
>>> of some SQL statements) i have built a separate java program that takes
>>> the xml file with the diagram metadata info as an argument, parses it and
>>> generates another file containing the SQL statements. Like executing
>>> "Sqlgenerator xmlfile.domain" at the OS comand line, wich results in the
>>> file "xmlfile.sql".
>>>
>>> Is there any way that i can call this external program passing the
>>> current diagram as an argument from the diagram tool interface? Or, the
>>> best case, is there any way that i can merge this code with the diagram
>>> code and call it from the tool interface?
>>>
>>> P.s.: srry for any english mistakes.
>>>
>>> Cheers,
>>> Rafael from Brazil :)
>
>
Previous Topic:How to disable TextWrapping in WrapLabel?
Next Topic:How to add text inside Notefigure
Goto Forum:
  


Current Time: Wed May 28 23:30:52 EDT 2025

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

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

Back to the top