public WorkingSetSelectionDialog(Shell parentShell, IWorkingSet[] workingSets, boolean multi, boolean sorted) { super(parentShell); contentProvider = new ListContentProvider(); labelProvider = new WorkingSetLabelProvider(); multiSelect = multi; if (multiSelect) { setTitle(WorkbenchMessages .getString("WorkingSetSelectionDialog.title.multiSelect")); setMessage(WorkbenchMessages .getString("WorkingSetSelectionDialog.message.multiSelect")); } else { setTitle(WorkbenchMessages .getString("WorkingSetSelectionDialog.title")); setMessage(WorkbenchMessages .getString("WorkingSetSelectionDialog.message")); } this.sorted= sorted; fElements= new ArrayList(Arrays.asList(workingSets));
public WorkingSetSelectionDialog(Shell parentShell, boolean multi) { this(parentShell, WorkbenchPlugin.getDefault().getWorkingSetManager().getWorkingSets(), multi, true);
    public WorkingSetSelectionDialog(Shell parentShell, IWorkingSet[] workingSets, boolean multi, boolean sorted) {        super(parentShell);        contentProvider = new ListContentProvider();        labelProvider = new WorkingSetLabelProvider();        multiSelect = multi;        if (multiSelect) {            setTitle(WorkbenchMessages                    .getString("WorkingSetSelectionDialog.title.multiSelect")); //$NON-NLS-1$;            setMessage(WorkbenchMessages                    .getString("WorkingSetSelectionDialog.message.multiSelect")); //$NON-NLS-1$        } else {            setTitle(WorkbenchMessages                    .getString("WorkingSetSelectionDialog.title")); //$NON-NLS-1$;            setMessage(WorkbenchMessages                    .getString("WorkingSetSelectionDialog.message")); //$NON-NLS-1$        }    	this.sorted= sorted;    	fElements= new ArrayList(Arrays.asList(workingSets));    }