Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Invoking eclipse
Invoking eclipse [message #176517] Sun, 05 September 2004 17:38 Go to next message
Eclipse UserFriend
Originally posted by: manshu.mammmmm.cm

Hello,

I have an application from which i have to invoke Eclipse and Eclipse also
should be focused on the file say a java file i pass in as argument while
invoking Eclipse.

Is it possible? i did not find any command line argument that Eclipse
takes to open the file. Or if you know an open source application which
does that let me know.

Thanks
Manshu
Re: Invoking eclipse [message #176841 is a reply to message #176517] Wed, 08 September 2004 10:25 Go to previous message
Eclipse UserFriend
Here is an idea how you can do it.

In Eclipse you will devolp plugin that implments the early startup
extension.
This plugin extension should do two things:
1. Read from file C:/All/file_name.txt the file name to open.
2. Open editor with this file.

Your application that wants to invoke eclipse will:
1. write the file name to open C:/All/file_name.txt
2. invoke eclipse

Now , when eclipse invoked, it will read file name fromC:/All/file_name.txt
and then open editor for it.

I have another version to idea, I am not sure it will work.
When you invoke eclipse from command line use
eclipse.exe vmargs -DmyFileName="Your file name to open"

Then in the early startup extension try to read 'myFileName' property from
JRE.

Regards,
Asaf

"manshu" <manshu@mammmmm.cm> wrote in message
news:chg10e$v0m$1@eclipse.org...
>
> Hello,
>
> I have an application from which i have to invoke Eclipse and Eclipse also
> should be focused on the file say a java file i pass in as argument while
> invoking Eclipse.
>
> Is it possible? i did not find any command line argument that Eclipse
> takes to open the file. Or if you know an open source application which
> does that let me know.
>
> Thanks
> Manshu
>
Previous Topic:Eclipse 3.0 strange shorcuts on Linux
Next Topic:3.1 enum bug
Goto Forum:
  


Current Time: Sun May 11 08:20:11 EDT 2025

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

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

Back to the top