1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 01:45:33 +02:00

*** empty log message ***

This commit is contained in:
David Inglis 2003-08-18 16:01:01 +00:00
parent 35f169b20d
commit 350c4a4ce6

View file

@ -24,7 +24,6 @@ import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation;
import org.eclipse.ui.dialogs.PropertyPage;
@ -71,7 +70,6 @@ public class MakePropertyPage extends PropertyPage implements ICOptionContainer
* @see PreferencePage#performOk
*/
public boolean performOk() {
Shell shell = getControl().getShell();
IRunnableWithProgress runnable = new IRunnableWithProgress() {
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
fOptionBlock.performApply(monitor);
@ -79,9 +77,8 @@ public class MakePropertyPage extends PropertyPage implements ICOptionContainer
};
IRunnableWithProgress op = new WorkspaceModifyDelegatingOperation(runnable);
try {
new ProgressMonitorDialog(shell).run(false, true, op);
new ProgressMonitorDialog(getShell()).run(false, true, op);
} catch (InvocationTargetException e) {
// dinglis-TODO show/log errors
return false;
} catch (InterruptedException e) {
// cancelled