Home » Eclipse Projects » GEF » main on GEF flow example
main on GEF flow example [message #134608] |
Thu, 27 May 2004 12:56 |
Eclipse User |
|
|
|
Originally posted by: misterfunkyman.hotmail.com
For a project, i need to use the flow example in gef and modify it...
but i don't know how to make a Main Class from this example.
if someone could help me...
Thank you !!!
|
|
|
Re: main on GEF flow example [message #134622 is a reply to message #134608] |
Thu, 27 May 2004 14:01 |
Eclipse User |
|
|
|
Originally posted by: rlemaigr.ulb.ac.be
What do you mean by a Main Class ?
A class which contains the "main" method in it ?
There is no such a class when you write a plugin for Eclipse.
The entry point for Eclipse in your plugin is the class implementing =
IEditorPart, which is specified in the plugin.xml file of the plugin.
Or maybe you want to use it as a standalone application, without Eclipse=
? =
That is not possible.
The only way you can use and modify this flow example is as a plugin for=
=
Eclipse, and thus, there is no main class.
Maybe somebody else could explain to you the right way to get started to=
=
modify an existent plugin because I am not sure about it.
Maybe you should create a new plugin project in Eclipse, copy the source=
=
files of the flow example in your src folder, copy the plugin.xml in you=
r =
project folder, modify the id of your plugin in the plugin.xml file, try=
=
to compile it and run it and see what happens...or something like =
that...then beginning to modify it...
I hope I have understood your question well and that this will help you,=
r=E9gis
On Thu, 27 May 2004 12:56:39 +0000 (UTC), Antoine =
<misterfunkyman@hotmail.com> wrote:
> For a project, i need to use the flow example in gef and modify it...
> but i don't know how to make a Main Class from this example.
> if someone could help me...
> Thank you !!!
>
>
-- =
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
|
|
|
Re: main on GEF flow example [message #134674 is a reply to message #134622] |
Fri, 28 May 2004 07:33 |
Eclipse User |
|
|
|
Originally posted by: misterfunkyman.hotmail.com
Yes i just would like to use the flow example as a base for an
application. I would like, for example, to change the images, to add
actionListener on these items... In fact, i would like to have the
possibility to execute this plug-in in a Frame(or something like this...
Shell for SWT...)
i don't know how to run this plug-in cos there is no main method...
I am new at GEF sorry ...
Thanks in advance
rlemaigr@ulb.ac.be wrote:
> What do you mean by a Main Class ?
> A class which contains the "main" method in it ?
> There is no such a class when you write a plugin for Eclipse.
> The entry point for Eclipse in your plugin is the class implementing
> IEditorPart, which is specified in the plugin.xml file of the plugin.
> Or maybe you want to use it as a standalone application, without Eclipse ?
> That is not possible.
> The only way you can use and modify this flow example is as a plugin for
> Eclipse, and thus, there is no main class.
> Maybe somebody else could explain to you the right way to get started to
> modify an existent plugin because I am not sure about it.
> Maybe you should create a new plugin project in Eclipse, copy the source
> files of the flow example in your src folder, copy the plugin.xml in your
> project folder, modify the id of your plugin in the plugin.xml file, try
> to compile it and run it and see what happens...or something like
> that...then beginning to modify it...
> I hope I have understood your question well and that this will help you,
> régis
> On Thu, 27 May 2004 12:56:39 +0000 (UTC), Antoine
> <misterfunkyman@hotmail.com> wrote:
> > For a project, i need to use the flow example in gef and modify it...
> > but i don't know how to make a Main Class from this example.
> > if someone could help me...
> > Thank you !!!
> >
> >
|
|
|
Re: main on GEF flow example [message #134751 is a reply to message #134674] |
Fri, 28 May 2004 17:48 |
Eclipse User |
|
|
|
Originally posted by: rlemaigr.ulb.ac.be
First I think it is impossible to make a standalone application which us=
es =
GEF, or if it is possible it is not easy or at least GEF is not made for=
=
that purpose. There was a thread a few days ago named "Newbie: gef =
standalone" where you can find information about that.
Second you can't run this plugin outside of the Eclipse plateform. It's =
a =
plugin so it is made for interacting with Eclipse.
But why don't you write a plugin for Eclipse based on the flow example =
instead of your standalone application ?
r=E9gis
On Fri, 28 May 2004 07:33:47 +0000 (UTC), Antoine =
<misterfunkyman@hotmail.com> wrote:
> Yes i just would like to use the flow example as a base for an
> application. I would like, for example, to change the images, to add
> actionListener on these items... In fact, i would like to have the
> possibility to execute this plug-in in a Frame(or something like this.=
...
> Shell for SWT...)
> i don't know how to run this plug-in cos there is no main method...
> I am new at GEF sorry ...
> Thanks in advance
>
> rlemaigr@ulb.ac.be wrote:
>
>> What do you mean by a Main Class ?
>> A class which contains the "main" method in it ?
>> There is no such a class when you write a plugin for Eclipse.
>> The entry point for Eclipse in your plugin is the class implementing
>> IEditorPart, which is specified in the plugin.xml file of the plugin.=
>
>> Or maybe you want to use it as a standalone application, without =
>> Eclipse ?
>> That is not possible.
>> The only way you can use and modify this flow example is as a plugin =
for
>> Eclipse, and thus, there is no main class.
>
>
>> Maybe somebody else could explain to you the right way to get started=
to
>> modify an existent plugin because I am not sure about it.
>
>> Maybe you should create a new plugin project in Eclipse, copy the sou=
rce
>> files of the flow example in your src folder, copy the plugin.xml in =
=
>> your
>> project folder, modify the id of your plugin in the plugin.xml file, =
try
>> to compile it and run it and see what happens...or something like
>> that...then beginning to modify it...
>
>> I hope I have understood your question well and that this will help y=
ou,
>
>> r=E9gis
>
>
>
>
>> On Thu, 27 May 2004 12:56:39 +0000 (UTC), Antoine
>> <misterfunkyman@hotmail.com> wrote:
>
>> > For a project, i need to use the flow example in gef and modify it.=
...
>> > but i don't know how to make a Main Class from this example.
>> > if someone could help me...
>> > Thank you !!!
>> >
>> >
>
>
>
>
>
-- =
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
|
|
| |
Re: main on GEF flow example [message #134777 is a reply to message #134764] |
Fri, 28 May 2004 20:59 |
Eclipse User |
|
|
|
Originally posted by: rlemaigr.ulb.ac.be
By "circuit simulator", do you mean that:
http://eclipsewiki.swiki.net/50#logicexamplestandalone
?
If it's the case, the author says it is a "first attempt to make a =
standalone application with..." and that some functionnalities are not =
supported. So that does not really mean that gef is fine for a standalon=
e =
application.
For example, the author says the delete operation is not working and it'=
s =
understandable because in the logic example the delete commands are =
triggers by a global action in Eclipse or by a key stroke, and this two =
=
way of invoking delete make use of the =
org.eclipse.gef.actions.DeleteAction (I think) which is a SelectionActio=
n =
and the constructor of a SelectionAction takes a IWorkbenchPart as =
parameter for having a way of knowing about current selection in the =
workbench. So you can't use this kind of things outside of Eclipse.
In the other thread, somebody mentionned the RCP. I didn't know what thi=
s =
was so google tells me that:
http://viva.sourceforge.net/republic/2003/11/eclipse_rich_cl ient_platfor=
m_rcp_upcoming_in_milestone_5.html
maybe you should search in this direction...
r=E9gis
On Fri, 28 May 2004 21:27:42 +0200, Andreas Herz <a.herz@FreeGroup.de> =
wrote:
> GEF is fine for an standalone application. See the circuit simulator
> /(digitalSimulator) example on the eclipse wiki
>
> http://eclipse-wiki.info/GEF
>
> greetings
>
> Andreas Herz
>
-- =
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
|
|
|
Goto Forum:
Current Time: Fri Apr 26 17:36:16 GMT 2024
Powered by FUDForum. Page generated in 0.04168 seconds
|