mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 09:45:39 +02:00
*** empty log message ***
This commit is contained in:
parent
35f169b20d
commit
350c4a4ce6
1 changed files with 1 additions and 4 deletions
|
@ -24,7 +24,6 @@ import org.eclipse.swt.layout.FillLayout;
|
||||||
import org.eclipse.swt.widgets.Composite;
|
import org.eclipse.swt.widgets.Composite;
|
||||||
import org.eclipse.swt.widgets.Control;
|
import org.eclipse.swt.widgets.Control;
|
||||||
import org.eclipse.swt.widgets.Label;
|
import org.eclipse.swt.widgets.Label;
|
||||||
import org.eclipse.swt.widgets.Shell;
|
|
||||||
import org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation;
|
import org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation;
|
||||||
import org.eclipse.ui.dialogs.PropertyPage;
|
import org.eclipse.ui.dialogs.PropertyPage;
|
||||||
|
|
||||||
|
@ -71,7 +70,6 @@ public class MakePropertyPage extends PropertyPage implements ICOptionContainer
|
||||||
* @see PreferencePage#performOk
|
* @see PreferencePage#performOk
|
||||||
*/
|
*/
|
||||||
public boolean performOk() {
|
public boolean performOk() {
|
||||||
Shell shell = getControl().getShell();
|
|
||||||
IRunnableWithProgress runnable = new IRunnableWithProgress() {
|
IRunnableWithProgress runnable = new IRunnableWithProgress() {
|
||||||
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
|
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
|
||||||
fOptionBlock.performApply(monitor);
|
fOptionBlock.performApply(monitor);
|
||||||
|
@ -79,9 +77,8 @@ public class MakePropertyPage extends PropertyPage implements ICOptionContainer
|
||||||
};
|
};
|
||||||
IRunnableWithProgress op = new WorkspaceModifyDelegatingOperation(runnable);
|
IRunnableWithProgress op = new WorkspaceModifyDelegatingOperation(runnable);
|
||||||
try {
|
try {
|
||||||
new ProgressMonitorDialog(shell).run(false, true, op);
|
new ProgressMonitorDialog(getShell()).run(false, true, op);
|
||||||
} catch (InvocationTargetException e) {
|
} catch (InvocationTargetException e) {
|
||||||
// dinglis-TODO show/log errors
|
|
||||||
return false;
|
return false;
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
// cancelled
|
// cancelled
|
||||||
|
|
Loading…
Add table
Reference in a new issue