Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » PDE(error in running the PDE)
PDE [message #643459] Mon, 06 December 2010 23:06 Go to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 13
Registered: December 2010
Location: swden
Junior Member
package org.eclipse.examples.helloworld;


import org.eclipse.jface.action.IAction;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.swt.widgets.Shell;


/** HelloWorldAction is a simple example of using an
* action set to extend the Eclipse Workbench with a menu
* and toolbar action that prints the "Hello World" message.
*/
public class HelloWorldAction implements IWorkbenchWindowActionDelegate {
IWorkbenchWindow activeWindow = null;

/** Run the action. Display the Hello World message
*/
public void run(IAction proxyAction) {
// proxyAction has UI information from manifest file (ignored)
Shell shell = activeWindow.getShell();
MessageDialog.openInformation(shell, "Hello World", "Hello World!");
}

// IActionDelegate method
public void selectionChanged(IAction proxyAction, ISelection selection) {
// do nothing, action is not dependent on the selection
}

// IWorkbenchWindowActionDelegate method
public void init(IWorkbenchWindow window) {
activeWindow = window;
}

// IWorkbenchWindowActionDelegate method
public void dispose() {
// nothing to do
}
}

the above is the code of my plugin. i want to create hello plugin but it generates the error that applet not initialized.

what should i do please help me.
thanks for your time!
Re: PDE [message #643506 is a reply to message #643459] Tue, 07 December 2010 07:10 Go to previous message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 12/7/2010 00:06, arifihsan50@yahoo.com wrote:
> /** HelloWorldAction is a simple example of using an
> * action set to extend the Eclipse Workbench with a menu * and toolbar
> action that prints the "Hello World" message.
> */

[..]

Why don't you start with a tutorial? I recommend to start with simples
examples from the following ones:

http://www.vogella.de/articles/Eclipse/article.html
http://www.vogella.de/articles/EclipseRCP/article.html
http://www.vogella.de/articles/EclipsePlugIn/article.html

HTH & Greetings from Bremen,

Daniel Krügler
Previous Topic:about PDE
Next Topic:JarSign of feautres and plugins from Update site project
Goto Forum:
  


Current Time: Thu Apr 25 01:33:33 GMT 2024

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

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

Back to the top