[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] How to implement a MessageDialog

Hi,

When I open a file in the workspace into the eclipse editor and start editing it will be checkout ( that is what our clearcase plug-in does.)

I am not sure how this works but we have class called ClearcaseProvider that extends RepositoryProvider.
ClearcaseProvider has a private final class:


private final class CheckOutOperation implements IRecursiveOperation {
public IStatus visit(IResource resource, IProgressMonitor monitor) {
}
}

This visit() is called and it is in here a need to generate a MessageDialog.

MessageDialog(Shell parentShell, String dialogTitle, Image dialogTitleImage, String dialogMessage, int dialogImageType, String[] dialogButtonLabels, int defaultIndex)

Since I have no window ( or do I?) how shall I set my parentShell parameter when I create my MessageDialog.

cheers,

//mike