Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Using my RCP app as target for the Windows "Open With" functionality??
Using my RCP app as target for the Windows "Open With" functionality?? [message #453122] Sat, 22 July 2006 11:04 Go to next message
Thomas Tolborg is currently offline Thomas TolborgFriend
Messages: 20
Registered: July 2009
Junior Member
Hi all

I would like my RCP app to be associated with certain mime types on e.g.
windows, so when I double click on a file with a certain extension my
rcp app will load a do stuff with this file.

More importantly - if my rcp app is already running I don't want a new
instance of the app to load whenever I double click on these files.

How do I do that?

regards,
Thomas
Re: Using my RCP app as target for the Windows "Open With" functionality?? [message #453135 is a reply to message #453122] Sun, 23 July 2006 11:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: florianwendland.freenet.de

Hello Thomas,
you have to look for Windows Registry functionality, to realize thios
behaviour.
IMHO, this has nothing to do with rcp, but in the registry, you can add you
application to several suffixes.
Just google for windows registry.
greetings
Florian

"Thomas Tolborg" <eclipse@tolborg.dk> schrieb im Newsbeitrag
news:e9t0mu$3rm$1@utils.eclipse.org...
> Hi all
>
> I would like my RCP app to be associated with certain mime types on e.g.
> windows, so when I double click on a file with a certain extension my
> rcp app will load a do stuff with this file.
>
> More importantly - if my rcp app is already running I don't want a new
> instance of the app to load whenever I double click on these files.
>
> How do I do that?
>
> regards,
> Thomas
Re: Using my RCP app as target for the Windows "Open With" functionality?? [message #453136 is a reply to message #453135] Sun, 23 July 2006 12:35 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Maybe creating an Installer using wix you could certainly do that in the
installer-xml. What I think the problematic part is that the application
is not started once more. Maybe you need some Proxy-Script in between
informing your application that it has to load a new file e.g. using
RMI, ... .

Tom

Florian Wendland wrote:
> Hello Thomas,
> you have to look for Windows Registry functionality, to realize thios
> behaviour.
> IMHO, this has nothing to do with rcp, but in the registry, you can add you
> application to several suffixes.
> Just google for windows registry.
> greetings
> Florian
>
> "Thomas Tolborg" <eclipse@tolborg.dk> schrieb im Newsbeitrag
> news:e9t0mu$3rm$1@utils.eclipse.org...
>
>>Hi all
>>
>>I would like my RCP app to be associated with certain mime types on e.g.
>> windows, so when I double click on a file with a certain extension my
>>rcp app will load a do stuff with this file.
>>
>>More importantly - if my rcp app is already running I don't want a new
>>instance of the app to load whenever I double click on these files.
>>
>>How do I do that?
>>
>>regards,
>>Thomas
>
>
>
Re: Using my RCP app as target for the Windows "Open With" functionality?? [message #453144 is a reply to message #453136] Sun, 23 July 2006 21:55 Go to previous messageGo to next message
Thomas Tolborg is currently offline Thomas TolborgFriend
Messages: 20
Registered: July 2009
Junior Member
Tom Schindl wrote:
> Maybe creating an Installer using wix you could certainly do that in the
> installer-xml. What I think the problematic part is that the application
> is not started once more. Maybe you need some Proxy-Script in between
> informing your application that it has to load a new file e.g. using
> RMI, ... .
>
> Tom
>

Yeah .. thats the whole point. When creating an RCP I don't control the
executable. Its just the standard eclipse executable renamed.
So to make this work I guess I would have to add some "look for a
running instance" functionality to the executable.
That kind of sucks doesn't it... the wonders of not running completely
native.

regards,
Thomas
Re: Using my RCP app as target for the Windows "Open With" functionality?? [message #453186 is a reply to message #453144] Mon, 24 July 2006 20:10 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Well what I had in mind is that you make your Application an RMI-Server
( http://java.sun.com/j2se/1.3/docs/guide/rmi/getstart.doc.htm l) and the
compontent registered in win32 to open your file extension sends the
RMI-Server (hence your RCP-Application) a signal to open the specified
file if no server is running it simply starts-up the RCP-application.
This has the advantage that it would also work on Linux, Mac, ... .

Tom

Thomas Tolborg wrote:
> Tom Schindl wrote:
>
>> Maybe creating an Installer using wix you could certainly do that in the
>> installer-xml. What I think the problematic part is that the application
>> is not started once more. Maybe you need some Proxy-Script in between
>> informing your application that it has to load a new file e.g. using
>> RMI, ... .
>>
>> Tom
>>
>
> Yeah .. thats the whole point. When creating an RCP I don't control the
> executable. Its just the standard eclipse executable renamed.
> So to make this work I guess I would have to add some "look for a
> running instance" functionality to the executable.
> That kind of sucks doesn't it... the wonders of not running completely
> native.
>
> regards,
> Thomas
Re: Using my RCP app as target for the Windows "Open With" functionality?? [message #453305 is a reply to message #453122] Tue, 25 July 2006 22:07 Go to previous message
Markus KellerFriend
Messages: 294
Registered: July 2009
Senior Member
On 2006-07-22 13:04, Thomas Tolborg wrote:
> Hi all
>
> I would like my RCP app to be associated with certain mime types on e.g.
> windows, so when I double click on a file with a certain extension my
> rcp app will load a do stuff with this file.
>
> More importantly - if my rcp app is already running I don't want a new
> instance of the app to load whenever I double click on these files.
>
> How do I do that?
>
> regards,
> Thomas

I guess you're waiting for
https://bugs.eclipse.org/bugs/show_bug.cgi?id=60289
or
https://bugs.eclipse.org/bugs/show_bug.cgi?id=4922

Some more votes might help speeding things up a bit ;-)

Markus
Previous Topic:Bigger Toolbar Icons
Next Topic:Question about involving "Cheat Sheet..." action into my RCP application
Goto Forum:
  


Current Time: Mon Oct 14 03:05:18 GMT 2024

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

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

Back to the top