Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Plug-in Developer Guide
Previous Page Home Next Page

Standard dialogs

The package org.eclipse.jface.dialogs defines the basic support for dialogs. This package provides standard dialogs for displaying user messages and obtaining simple input from the user.

  • MessageDialog displays a message to the user. You can set the dialog title, image, button text, and message in the constructor for this dialog.
  • ErrorDialog displays information about an error. You can set the dialog title and message for the dialog. You can also supply an IStatus object which the dialog will use to obtain an error message.
  • InputDialog allows the user to enter text. You can set the dialog title, default text value, and supply an object that will validate the text input.
  • ProgressMonitorDialog shows progress to the user during the running of a long operation.

The standard dialogs are designed so that you can completely specify the dialog in its constructor. We saw a MessageDialog in action in the readme tool's view action:

   MessageDialog.openInformation(
      view.getSite().getShell(),"Readme Editor","View Action executed");

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire