Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to open a popup window?
How to open a popup window? [message #453569] Thu, 03 August 2006 04:32 Go to next message
Eclipse UserFriend
Originally posted by: lzj369.gmail.com

I would like to create an action in the menu to allow the user to click
and show another popup window with a tree.

thx!
Re: How to open a popup window? [message #453571 is a reply to message #453569] Thu, 03 August 2006 05:19 Go to previous message
Jian Lee is currently offline Jian LeeFriend
Messages: 21
Registered: July 2009
Junior Member
Dave Li wrote:
> I would like to create an action in the menu to allow the user to click
> and show another popup window with a tree.
>
> thx!

public class AddFriendAction extends Action{
private final IWorkbenchWindow window;

public final static String ID = "peer68T.AddFriendAction";

public AddFriendAction(IWorkbenchWindow window) {
this.window = window;
setId(ID);
setText("Add");
}
public void run() {
AddFriendDialog dialog = new AddFriendDialog(window.getShell());
int code = dialog.open();
if (code == Window.OK) {

}
}
}
Previous Topic:How to use multi tableviewers as SelectionProvider?
Next Topic:popup checkbox
Goto Forum:
  


Current Time: Sun Oct 13 20:31:44 GMT 2024

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

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

Back to the top