Call the RCP application from My Menu?

I think you confuse Eclipse plug-in with Eclipse RCP application. What exactly are you trying to achieve here? Have you developed a plug-in, e.g. A ViewPart to extend your version of the Eclipse IDE, for instance Helios 3.6 for Java developers?

I think you confuse Eclipse plug-in with Eclipse RCP application. What exactly are you trying to achieve here? Have you developed a plug-in, e.g. A ViewPart to extend your version of the Eclipse IDE, for instance Helios 3.6 for Java developers?

Or have you developed a full stand-alone RCP application, which gives you an executable with a blank application window when starting it up? Could you please specify what you mean by "my menu"? Do you mean the html based start menu?

Or do you mean the normal application menu? In case it is indeed a view extension plug-in, you can always run it from "Window" - "Show View" - "Other" and then select your view. You obviously need to deploy your plug-in first (plugin folder in your eclipse path).

These useful tutorials might help you clear things up: RCP: http://www.vogella.de/articles/EclipseRCP/article.html Plug-in: http://www.vogella.de/articles/EclipsePlugIn/article.html EDIT: Okay, thank you for clearing that up. I assume (I never did that, though) you have two options then. Since your RCP app, once built, should come with a normal runtime binary, you could either use: java.lang.Runtime.exec() ( http://download.oracle.com/javase/6/docs/api/java/lang/Runtime.html ) This is the standard Java way to run executables.

It comes with six overloaded versions: public Process exec(String command); public Process exec(String cmdArray); public Process exec(String cmdarray, String envp, File dir); public Process exec(String command, String envp); public Process exec(String command, String envp, File dir); public Process exec(String cmdArray, String envp); So just pick what's best, e.g. The fourth if you want to hand over arguments.To obtain the Runtime instance: Runtime rt = Runtime.getRuntime(); rt. Exec("~/myapp"); You could also "build" the process yourself: http://www.java-tips.org/java-se-tips/java.util/from-runtime.exec-to-processbuilder.html or use org.eclipse.swt.program. Program ( http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/swt/program/package-summary.html ) This class is originally intended to run files with the OS associated program, e.g. HTML with the default browser.

It can however be used to run normal executables as well. And just to be complete, to launch Java applications from within Eclipse, you can always follow this guide: http://www.eclipse.org/articles/Article-Java-launch/launching-java.html.

Thanks For reply , See I am going to create one plugin for Eclipse and I have one RCP Application also. In Plugin I going to create one sparate menu near the "Project Menu" and after clicking on that menu I want to open my "RCP Applicatin" in different window. Please help me for that – Rahul Mar 24 '11 at 10:38 @user626526: Please see if edit clarifies... Are you happy with creating a menu extension or do you need help on that as well?

– Jules Mar 24 '11 at 11:22 @user626526: Oh, and please accept the answer if it was what you were looking for... – Jules Mar 24 '11 at 11:27 Thanks Jules... I got the answer ....I am using SWT – Rahul Mar 25 '11 at 4:35 @user626526: Then please accept the answer (tick below the votes). It's common courtesy on this site and helps future users to identify solutions more quickly (and for personal vanity :) ) – Jules Mar 25 '11 at 9:42.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions