Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to program to launch OS editor like WordPad?
How to program to launch OS editor like WordPad? [message #323014] Wed, 05 December 2007 02:15 Go to next message
Eclipse UserFriend
Hi all,

I want to launch WordPad to open log file just like right click the text
file in Eclipse Navigator and select 'open with System Editor'.


How to implement this function?

How to find out the way Eclipse IDE implement this function?

Thanks!

Anthony Lee
Re: How to program to launch OS editor like WordPad? [message #323016 is a reply to message #323014] Wed, 05 December 2007 02:24 Go to previous messageGo to next message
Eclipse UserFriend
Programm#launch()

Tom

Anthony Lee schrieb:
> Hi all,
>
> I want to launch WordPad to open log file just like right click the text
> file in Eclipse Navigator and select 'open with System Editor'.
>
>
> How to implement this function?
>
> How to find out the way Eclipse IDE implement this function?
>
> Thanks!
>
> Anthony Lee
>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: How to program to launch OS editor like WordPad? [message #323018 is a reply to message #323016] Wed, 05 December 2007 03:03 Go to previous messageGo to next message
Eclipse UserFriend
???


"Tom Schindl" <tom.schindl@bestsolution.at>
??????:fj5jni$j5m$2@build.eclipse.org...
> Programm#launch()
>
> Tom
>
> Anthony Lee schrieb:
>> Hi all,
>>
>> I want to launch WordPad to open log file just like right click the
>> text file in Eclipse Navigator and select 'open with System Editor'.
>>
>>
>> How to implement this function?
>>
>> How to find out the way Eclipse IDE implement this function?
>>
>> Thanks!
>>
>> Anthony Lee
>
>
> --
> B e s t S o l u t i o n . at
> ------------------------------------------------------------ --------
> Tom Schindl JFace-Committer
> ------------------------------------------------------------ --------
Re: How to program to launch OS editor like WordPad? [message #323020 is a reply to message #323018] Wed, 05 December 2007 03:26 Go to previous messageGo to next message
Eclipse UserFriend
Your are posting to eclipse.platform so I assume you already have a
dependency on swt-libs.

org.eclipse.swt.program.Program.launch("C:/my.log")

Tom

Anthony Lee schrieb:
> ???
>
>
> "Tom Schindl" <tom.schindl@bestsolution.at>
> ??????:fj5jni$j5m$2@build.eclipse.org...
>> Programm#launch()
>>
>> Tom
>>
>> Anthony Lee schrieb:
>>> Hi all,
>>>
>>> I want to launch WordPad to open log file just like right click the
>>> text file in Eclipse Navigator and select 'open with System Editor'.
>>>
>>>
>>> How to implement this function?
>>>
>>> How to find out the way Eclipse IDE implement this function?
>>>
>>> Thanks!
>>>
>>> Anthony Lee
>>
>> --
>> B e s t S o l u t i o n . at
>> ------------------------------------------------------------ --------
>> Tom Schindl JFace-Committer
>> ------------------------------------------------------------ --------
>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: How to program to launch OS editor like WordPad? [message #323021 is a reply to message #323020] Wed, 05 December 2007 03:40 Go to previous messageGo to next message
Eclipse UserFriend
Hi Tom,

It works well.

Thanks a lot!

Anthony Lee


"Tom Schindl" <tom.schindl@bestsolution.at>
??????:fj5nc3$a6k$1@build.eclipse.org...
> Your are posting to eclipse.platform so I assume you already have a
> dependency on swt-libs.
>
> org.eclipse.swt.program.Program.launch("C:/my.log")
>
> Tom
>
> Anthony Lee schrieb:
>> ???
>>
>>
>> "Tom Schindl" <tom.schindl@bestsolution.at>
>> ??????:fj5jni$j5m$2@build.eclipse.org...
>>> Programm#launch()
>>>
>>> Tom
>>>
>>> Anthony Lee schrieb:
>>>> Hi all,
>>>>
>>>> I want to launch WordPad to open log file just like right click the
>>>> text file in Eclipse Navigator and select 'open with System Editor'.
>>>>
>>>>
>>>> How to implement this function?
>>>>
>>>> How to find out the way Eclipse IDE implement this function?
>>>>
>>>> Thanks!
>>>>
>>>> Anthony Lee
>>>
>>> --
>>> B e s t S o l u t i o n . at
>>> ------------------------------------------------------------ --------
>>> Tom Schindl JFace-Committer
>>> ------------------------------------------------------------ --------
>>
>>
>
>
> --
> B e s t S o l u t i o n . at
> ------------------------------------------------------------ --------
> Tom Schindl JFace-Committer
> ------------------------------------------------------------ --------
Re: How to program to launch OS editor like WordPad? [message #323022 is a reply to message #323018] Wed, 05 December 2007 04:43 Go to previous message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------080507090607060005060609
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Anthony,

I think he meant using org.eclipse.swt.program.Program#Launch(String),
the String passed as argument being the filename of the log you want to
edit. This should bring up the system editor associated with the file.

Laurent Goubet
Obeo

Anthony Lee a
Previous Topic:Multiple Dialogs
Next Topic:feature-based self-hosting vs. Product configuration file
Goto Forum:
  


Current Time: Wed Jul 23 11:20:28 EDT 2025

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

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

Back to the top