Executing external programs or code from diagram tool interface [message #89244] |
Wed, 03 January 2007 13:08  |
Eclipse User |
|
|
|
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 #89637 is a reply to message #89485] |
Fri, 05 January 2007 06:02  |
Eclipse User |
|
|
|
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 :)
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04473 seconds