Results 1 to 1 of 1
- 04-11-2011, 09:41 PM #1
Member
- Join Date
- Apr 2011
- Posts
- 8
- Rep Power
- 0
Simply linking a button to a method in RCP
Dear all,
I am creating an RCP application, but I'm very new to it. I have the following simple issue.
I have a menu item, which I would like to use to run a routine when it is clicked. When I create the command for it, I use the following code in the command handler:
As you will see, I try importing the package org.myApp.server.conductor.Java Code:package org.myApp.commands; import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.commands.ExecutionException; import org.myApp.server.conductor.*; public class RunServer extends AbstractHandler{ @Override public Object execute(ExecutionEvent event) throws ExecutionException { // TODO Auto-generated method stub Conductor A = new Conductor(); return null; } }
This sems like the right thing to do, but it just throws lots of errors such as "at java.lang.ClassLoader.loadClass(Unknown Source)"
Please, any help? Quite simply I just want to run something in a different project! (I have added myApp to the build path!)
Many thanks
Matt
Similar Threads
-
How to simply get if a key is pushed?
By ChazZeromus in forum New To JavaReplies: 6Last Post: 07-28-2009, 01:32 AM -
It simply won't sort
By xf021209 in forum New To JavaReplies: 7Last Post: 04-25-2009, 03:53 PM -
input to an integer (simply)
By chitwood in forum Advanced JavaReplies: 3Last Post: 03-18-2009, 06:34 AM -
calling a public void method from a class button
By supa_kali_frajilistik in forum AWT / SwingReplies: 4Last Post: 05-23-2008, 01:05 PM -
calling a public void method from a class button
By supa_kali_frajilistik in forum AWT / SwingReplies: 1Last Post: 05-21-2008, 05:40 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks