Me n My Programming

If Only I Have TIme

Marama Code 113 ~ How to get shell

Today I want to pop up a message box when user invoke user event. To do that, I need a  running workspace shell. So how do I get it?

Shell sh = EclipseHelper.getWorkingWindowShell(); // get the shell

Now I can try my message box code:

MessageBox box = new MessageBox(sh,SWT.ICON_INFORMATION);
box.setText(“Formulae Syntax”);
box.setMessage(“Hey there! You entered : “);;


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


This entry was posted on September 15, 2010 by in Life on Marama.
%d bloggers like this: