Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » distributing non java executables along with a plugin
distributing non java executables along with a plugin [message #336780] Thu, 02 July 2009 10:04 Go to next message
Laurent Petit is currently offline Laurent PetitFriend
Messages: 35
Registered: July 2009
Member
Hello,

I created a plugin that is an IDE for working with a custom language/platform.
The language/platform is available in several versions, the IDE can adapt to the version each project is declaring to use.

Currently, the user can independently of the Eclipse plugin install several versions of the language/platform, and in Eclipse have different projects use different versions of the language/platform.

I would like to improve the user experience by allowing him to manage language/platform versions installed on his computer via Eclipse.
The user should be able to manage several versions of the language/platform installed on his computer at the same time.

Please note that this language/platform has nothing to do with java.


Before engaging to this path, I would like to know whether it's a deadlock or not.

(Additional constraints I have is that the language/platform is specialized to the host OS - but that certainly can be solved by fragments)

Do you think it is possible, and not fighting the framework too much ?

Thanks,

--
Laurent
Re: distributing non java executables along with a plugin [message #336826 is a reply to message #336780] Mon, 06 July 2009 07:50 Go to previous messageGo to next message
Stefan Schuster is currently offline Stefan SchusterFriend
Messages: 5
Registered: July 2009
Junior Member
Hello,

sorry, that I do not have an answer, but instead the very same question. I
also aim to provide "external, non-Eclipse related, non-Java-related"
executables for different platforms as an Eclipse plug-in, such that they
are distributable and updatable via the Eclipse update manager.

I started by creating a small test-plugin that bundels several executables
(for a start only on Mac OS X). The plug-in is contained in a feature,
which in turn is provided via an update site. All was done with the
functionalities provided by the PDE.

1) After installing the plug-in, I realized, that the file permissions of
the executables changed and they no longer were executable. My idea would
now be to omplement an Install Handler for the providing feature.

2) Another problem is that some of the provided external executables
create temporary files in the same folder they are installed, i.e. they
modify the plug-in directory. So, is there any "standard way" to copy the
plug-in into the users workspace, where the operations of the executables
can be carried out safely?


Thanks for any comment / any suggestion.

Stefan
Re: distributing non java executables along with a plugin [message #336833 is a reply to message #336826] Mon, 06 July 2009 15:05 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

In 3.5 this is supported by using p2 to install ... specifically
touchpoints:
http://wiki.eclipse.org/Equinox/p2/Engine/Touchpoint_Instruc tions

It seems this supports copying out source (maybe contributed
executables) to a separate (controlled) directory and then supports some
native touchpoints (like chmod)

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Re: distributing non java executables along with a plugin [message #336843 is a reply to message #336833] Tue, 07 July 2009 12:13 Go to previous message
Laurent Petit is currently offline Laurent PetitFriend
Messages: 35
Registered: July 2009
Member
Paul Webster wrote:
> In 3.5 this is supported by using p2 to install ... specifically
> touchpoints:
> http://wiki.eclipse.org/Equinox/p2/Engine/Touchpoint_Instruc tions
>
> It seems this supports copying out source (maybe contributed
> executables) to a separate (controlled) directory and then supports some
> native touchpoints (like chmod)
>
> PW
>

Hi Paul,

Thanks for the answer.

From it, I can guess that there is in 3.4 no supported way to do this. What I'll do is , as Stefan suggested, create a feature and different version of plugins (maybe even different plugins ids since
I want several version of the executables to be concurrently installed by the user), and maybe resort to an Installation Handler.

==> Do you know of a public documentation about the Install Handler ? I had a hard time finding tutorials or even refs material about it ?

Thanks in advance,

--
Laurent
Previous Topic:Compile & Build Eclipse from Sourcecode does NOT work!!
Next Topic:Views disappear after installing Galileo
Goto Forum:
  


Current Time: Tue Apr 23 07:22:06 GMT 2024

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

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

Back to the top