Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Is it possible to export Plug-ins as stand-alone application
Is it possible to export Plug-ins as stand-alone application [message #182471] Wed, 25 May 2005 17:45 Go to next message
victor fiu is currently offline victor fiuFriend
Messages: 37
Registered: July 2009
Member
Hi, all,

I am develping a graphics editor as plug-in, but since running inside
workbench will confuse users of my application, so I expect it running as
standard application. Is it possible to export plug-ins, say Shapes, as
standard application with property and outline viewer as child windows?

Thanks and Regards,
Vince
Re: Is it possible to export Plug-ins as stand-alone application [message #182481 is a reply to message #182471] Wed, 25 May 2005 19:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

vince wrote:
> Hi, all,
>
> I am develping a graphics editor as plug-in, but since running inside
> workbench will confuse users of my application, so I expect it running as
> standard application. Is it possible to export plug-ins, say Shapes, as
> standard application with property and outline viewer as child windows?
>
> Thanks and Regards,
> Vince
>
>

I have an RCP-ified version of the shapes example here
https://bugs.eclipse.org/bugs/show_bug.cgi?id=91472

You can look at that as a start if you want to use RCP and GEF.
Re: Is it possible to export Plug-ins as stand-alone application [message #182717 is a reply to message #182481] Thu, 26 May 2005 16:23 Go to previous messageGo to next message
victor fiu is currently offline victor fiuFriend
Messages: 37
Registered: July 2009
Member
That seems like what I am looking for. Thank you so much!

However, I got "org.eclipse.ui.part.editoractionbarcontributor cannot be
resolved" error message when I tried to run it.

I am using SDK3.1M7+GEF3.1M7.
Here is how what I did: I copied your file to plugin directory, launched
Eclipse, selected the shape.rcp in plugin view, right clicked it and
followed "Import". I added all libraries that is useful in my thought, but
still cannot reslove the problem. Someone has idea?

Thank you!
Vince

"Chris Aniszczyk" <none@us.ibm.com> wrote in message
news:d72jqi$p9s$1@news.eclipse.org...
> vince wrote:
>> Hi, all,
>>
>> I am develping a graphics editor as plug-in, but since running inside
>> workbench will confuse users of my application, so I expect it running as
>> standard application. Is it possible to export plug-ins, say Shapes, as
>> standard application with property and outline viewer as child windows?
>>
>> Thanks and Regards,
>> Vince
>>
>>
>
> I have an RCP-ified version of the shapes example here
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=91472
>
> You can look at that as a start if you want to use RCP and GEF.
Re: Is it possible to export Plug-ins as stand-alone application [message #182724 is a reply to message #182717] Thu, 26 May 2005 17:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

vince wrote:
> That seems like what I am looking for. Thank you so much!
>
> However, I got "org.eclipse.ui.part.editoractionbarcontributor cannot be
> resolved" error message when I tried to run it.
>
> I am using SDK3.1M7+GEF3.1M7.
> Here is how what I did: I copied your file to plugin directory, launched
> Eclipse, selected the shape.rcp in plugin view, right clicked it and
> followed "Import". I added all libraries that is useful in my thought, but
> still cannot reslove the problem. Someone has idea?
>
> Thank you!
> Vince
>
> "Chris Aniszczyk" <none@us.ibm.com> wrote in message
> news:d72jqi$p9s$1@news.eclipse.org...
>
>>vince wrote:
>>
>>>Hi, all,
>>>
>>>I am develping a graphics editor as plug-in, but since running inside
>>>workbench will confuse users of my application, so I expect it running as
>>>standard application. Is it possible to export plug-ins, say Shapes, as
>>>standard application with property and outline viewer as child windows?
>>>
>>>Thanks and Regards,
>>>Vince
>>>
>>>
>>
>>I have an RCP-ified version of the shapes example here
>>https://bugs.eclipse.org/bugs/show_bug.cgi?id=91472
>>
>>You can look at that as a start if you want to use RCP and GEF.
>
>
>

If you import the plugin as a project and launch it via the plugin.xml
you should be all good.

If you can post any verbose logs, let me know.
Re: Is it possible to export Plug-ins as stand-alone application [message #182751 is a reply to message #182724] Fri, 27 May 2005 02:13 Go to previous messageGo to next message
victor fiu is currently offline victor fiuFriend
Messages: 37
Registered: July 2009
Member
"Chris Aniszczyk" <none@us.ibm.com> wrote in message
news:d7529g$gb6$1@news.eclipse.org...
> vince wrote:
>> That seems like what I am looking for. Thank you so much!
>>
>> However, I got "org.eclipse.ui.part.editoractionbarcontributor cannot be
>> resolved" error message when I tried to run it.
>>
>> I am using SDK3.1M7+GEF3.1M7.
>> Here is how what I did: I copied your file to plugin directory, launched
>> Eclipse, selected the shape.rcp in plugin view, right clicked it and
>> followed "Import". I added all libraries that is useful in my thought,
>> but
>> still cannot reslove the problem. Someone has idea?
>>
>> Thank you!
>> Vince
>>
>> "Chris Aniszczyk" <none@us.ibm.com> wrote in message
>> news:d72jqi$p9s$1@news.eclipse.org...
>>
>>>vince wrote:
>>>
>>>>Hi, all,
>>>>
>>>>I am develping a graphics editor as plug-in, but since running inside
>>>>workbench will confuse users of my application, so I expect it running
>>>>as
>>>>standard application. Is it possible to export plug-ins, say Shapes, as
>>>>standard application with property and outline viewer as child windows?
>>>>
>>>>Thanks and Regards,
>>>>Vince
>>>>
>>>>
>>>
>>>I have an RCP-ified version of the shapes example here
>>>https://bugs.eclipse.org/bugs/show_bug.cgi?id=91472
>>>
>>>You can look at that as a start if you want to use RCP and GEF.
>>
>>
>>
>
> If you import the plugin as a project and launch it via the plugin.xml
> you should be all good.
>
> If you can post any verbose logs, let me know.

Hi, I still cannot run it :(
When you were saying import the plugin as a project, you mean File-->
Import-->External plugin and fragments, right?
I did that, but found plugin.xml was not in the project automatically, so I
added it to the project by hand.

What do you mean to launch it via the plugin.xml? I right click the file and
choose "Run As"-->"Run...", is it right?
However, error message occured as:

!SESSION 2005-05-26
22:10:22.450 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product
org.eclipse.gef.examples.shapes.rcp.product -pdelaunch
Command-line arguments: -product
org.eclipse.gef.examples.shapes.rcp.product -data
U:\eclipse\runtime-workspace -dev
file:U:/eclipse/workspace/.metadata/.plugins/org.eclipse.pde .core/New_configuration/dev.properties -
pdelaunch -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.osgi 2005-05-26 22:10:25.950
!MESSAGE Error installing bundle:
reference:file:plugins/org.eclipse.core.commands_3.1.0.jar/
!STACK 0
org.osgi.framework.BundleException: Bundle "org.eclipse.core.commands"
version "3.1.0" has already been installed from:
update@plugins/org.eclipse.core.commands_3.1.0.jar
at
org.eclipse.osgi.framework.internal.core.Framework.createAnd VerifyBundle(Framework.java:558)
at
org.eclipse.osgi.framework.internal.core.Framework.installWo rkerPrivileged(Framework.java:823)
at
org.eclipse.osgi.framework.internal.core.Framework$2.run(Fra mework.java:738)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.Framework.installWo rker(Framework.java:789)
at
org.eclipse.osgi.framework.internal.core.Framework.installBu ndle(Framework.java:733)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.i nstallBundle(BundleContextImpl.java:221)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.installBundl es(EclipseStarter.java:946)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBun dles(EclipseStarter.java:538)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.startup(Ecli pseStarter.java:285)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:156)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:330 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:274)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

More error message is in the attachment. Do you have any more suggestions?

Regards,
Vince


Re: Is it possible to export Plug-ins as stand-alone application [message #182761 is a reply to message #182751] Fri, 27 May 2005 02:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

> What do you mean to launch it via the plugin.xml? I right click the file and
> choose "Run As"-->"Run...", is it right?

When you import the plugin as a project in the workspace, open the
plugin.xml and you should see a "Launch as application" and it will
automatically create a runtime environment for you. You want to launch
it that way first so it properly configures your runtime env.

I'm going to post an updated version which removes the welcome page /
intro plugins to simplify things.

In about a week I should have an article that details how to create an
RCP shapes editor. Just give me sometime :)

Cheers,

~ Chris
Re: Is it possible to export Plug-ins as stand-alone application [message #182770 is a reply to message #182761] Fri, 27 May 2005 02:42 Go to previous messageGo to next message
victor fiu is currently offline victor fiuFriend
Messages: 37
Registered: July 2009
Member
Thank you for your nice reply.
However, there still is the same error.

!ENTRY org.eclipse.osgi 2005-05-26 22:10:25.950
!MESSAGE Error installing bundle:
reference:file:plugins/org.eclipse.core.commands_3.1.0.jar/
!STACK 0
org.osgi.framework.BundleException: Bundle "org.eclipse.core.commands"
version "3.1.0" has already been installed from:
update@plugins/org.eclipse.core.commands_3.1.0.jar
at .....

I noticed in the Rich client tutorial by Ed Burnette a note:
Don't select "Create an OSGi bundle manifest for the plug-in". The notation
is for creating new RCP project.
In my case, I am importing existing project, so have no chance to deselect
that option. And the error message are all about OSGI, do you have any idea
to remove OSGi part from existing project?

Thanks,
Vince



"Chris Aniszczyk" <none@us.ibm.com> wrote in message
news:d760lv$g8t$1@news.eclipse.org...
>> What do you mean to launch it via the plugin.xml? I right click the file
>> and choose "Run As"-->"Run...", is it right?
>
> When you import the plugin as a project in the workspace, open the
> plugin.xml and you should see a "Launch as application" and it will
> automatically create a runtime environment for you. You want to launch it
> that way first so it properly configures your runtime env.
>
> I'm going to post an updated version which removes the welcome page /
> intro plugins to simplify things.
>
> In about a week I should have an article that details how to create an RCP
> shapes editor. Just give me sometime :)
>
> Cheers,
>
> ~ Chris
Re: Is it possible to export Plug-ins as stand-alone application [message #182775 is a reply to message #182770] Fri, 27 May 2005 16:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

I updated the example with a new plugin for rcp.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=91472

It include a .product file which you can use in 3.1M7 to export a
standalone version of the plugin.

Cheers,

~ Chris
Re: Is it possible to export Plug-ins as stand-alone application [message #182789 is a reply to message #182775] Sat, 28 May 2005 06:02 Go to previous messageGo to next message
victor fiu is currently offline victor fiuFriend
Messages: 37
Registered: July 2009
Member
Hi, I was able to launch the plugin in Eclipse now! Thank you so much!

Also I was able to export it to "shapes.exe", however, when I run it, an
error occurred.
Here is the content of .\configuration\1117259997182.log

!SESSION 2005-05-28
01:54:25.610 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.osgi 2005-05-28 01:54:26.391
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service.
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:362)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:330 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:274)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

Do you have any idea about it?

Thanks!
Vince


"Chris Aniszczyk" <none@us.ibm.com> wrote in message
news:d77i9s$5gs$1@news.eclipse.org...
>I updated the example with a new plugin for rcp.
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=91472
>
> It include a .product file which you can use in 3.1M7 to export a
> standalone version of the plugin.
>
> Cheers,
>
> ~ Chris
Different results between testing and after exporting [message #182801 is a reply to message #182775] Sat, 28 May 2005 20:00 Go to previous messageGo to next message
victor fiu is currently offline victor fiuFriend
Messages: 37
Registered: July 2009
Member
Hi,

What version of Eclipse are you using?

I was able to run the plugin successfuly when I selected "launch an Eclipse
application" in the overview tab of plugin.xml.
I could also run it by selecting "launch the product" in the overview tab of
shapes.product. It works great, thank you!

However, after I exported the plugin using "Eclipse Product export Wizard"
and got shapes.exe, the Palette is disabled when running the program. The
jpg file that grasped the screen is attached. Replace your rcp.jar with mine
which is also attached, you might re-produce the problem. I compared your
rcp.jar and my rcp.jar and found that the sizes are not same. Mine is 49K
and yours is 52K. Is that because of different versions of Eclipses? I am
sing 3.1M7+WinXP.

I am using plugin.xml, build.properties and shapes.product downloaded from
the link

Thanks and Regards,
Vince

"Chris Aniszczyk" <none@us.ibm.com> wrote in message
news:d77i9s$5gs$1@news.eclipse.org...
>I updated the example with a new plugin for rcp.
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=91472
>
> It include a .product file which you can use in 3.1M7 to export a
> standalone version of the plugin.
>
> Cheers,
>
> ~ Chris



Re: Different results between testing and after exporting [message #182871 is a reply to message #182801] Mon, 30 May 2005 06:25 Go to previous messageGo to next message
memorialday is currently offline memorialdayFriend
Messages: 37
Registered: July 2009
Member
could u tell me how to export as an .exe file? i have tried the export
wizard, but seems there isn't such option?
Re: Different results between testing and after exporting [message #182926 is a reply to message #182871] Mon, 30 May 2005 17:04 Go to previous messageGo to next message
victor fiu is currently offline victor fiuFriend
Messages: 37
Registered: July 2009
Member
hi, you need a .product file, an exmaple of which could be found at
https://bugs.eclipse.org/bugs/show_bug.cgi?id=91472


"unknown" <iunknown918@hotmail.com> wrote in message
news:6cbb2bb862256f48f2d15088df9df3d8$1@www.eclipse.org...
> could u tell me how to export as an .exe file? i have tried the export
> wizard, but seems there isn't such option?
>
Re: Different results between testing and after exporting [message #183026 is a reply to message #182926] Tue, 31 May 2005 03:16 Go to previous messageGo to next message
memorialday is currently offline memorialdayFriend
Messages: 37
Registered: July 2009
Member
yeah, i have downloaded ur great work and i can lauch it in eclipse . but
i don't know how to convert it to exe file?
Re: Different results between testing and after exporting [message #183172 is a reply to message #183026] Tue, 31 May 2005 19:25 Go to previous messageGo to next message
victor fiu is currently offline victor fiuFriend
Messages: 37
Registered: July 2009
Member
It's not my work. The link is given by Chirs Aniszczyk.
Sorry for the confusion.

Double click the .product file, follow "Eclipse Product export wizard" in
the overview tab.

Vince

"unknown" <iunknown918@hotmail.com> wrote in message
news:6a7c9c63294fa5c24ef3744629baf86a$1@www.eclipse.org...
> yeah, i have downloaded ur great work and i can lauch it in eclipse . but
> i don't know how to convert it to exe file?
>
Re: Different results between testing and after exporting [message #183263 is a reply to message #183172] Wed, 01 June 2005 01:09 Go to previous message
memorialday is currently offline memorialdayFriend
Messages: 37
Registered: July 2009
Member
thanks for ur reply, i misunderstood the meaning of exporting to a exe
file,
i thought it should be a single exe file, but acutlly the export wizard
generates many files including the exe file :)
Previous Topic:Word-wrap in Label -> TextFlow?
Next Topic:Need Help: GEF-Application
Goto Forum:
  


Current Time: Thu Dec 26 20:47:35 GMT 2024

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

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

Back to the top