Eclipse Platform
2.0

org.eclipse.ui.dialogs
Interface IWorkingSetSelectionDialog


public interface IWorkingSetSelectionDialog

A working set selection dialog displays the list of working sets available in the workbench.

Use org.eclipse.ui.IWorkingSetManager#createWorkingSetSelectionDialog(Shell) to create an instance of this dialog.

This interface is not intended to be implemented by clients.

Since:
2.0
See Also:
IWorkingSetManager

Method Summary
 IWorkingSet[] getSelection()
          Returns the working sets selected in the dialog or null if the dialog was canceled.
 int open()
          Displays the working set selection dialog.
 void setSelection(IWorkingSet[] workingSets)
          Sets the working sets that are initially selected in the dialog.
 

Method Detail

getSelection

public IWorkingSet[] getSelection()
Returns the working sets selected in the dialog or null if the dialog was canceled.

Returns:
the working sets selected in the dialog.

open

public int open()
Displays the working set selection dialog.

Returns:
Window.OK if the dialog closes with the working set selection confirmed. Window.CANCEL if the dialog closes with the working set selection dismissed.
See Also:
org.eclipse.jface.Window

setSelection

public void setSelection(IWorkingSet[] workingSets)
Sets the working sets that are initially selected in the dialog.

Parameters:
workingSets - the working sets to select in the dialog.

Eclipse Platform
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.