mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
2004-08-10 Alain Magloire
* src/org/eclipse/cdt/internal/ui/editor/AddIncludeOnSelectionAction.java
This commit is contained in:
parent
0c2fcb2413
commit
5786d372c3
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2004-08-10 Alain Magloire
|
||||
|
||||
* src/org/eclipse/cdt/internal/ui/editor/AddIncludeOnSelectionAction.java
|
||||
|
||||
2004-08-06 Chris Wiebe
|
||||
|
||||
Add scheduling rule to WorkbenchRunnableAdapter
|
||||
|
|
|
@ -116,7 +116,7 @@ public class AddIncludeOnSelectionAction extends Action implements IUpdate {
|
|||
|
||||
}
|
||||
|
||||
private ITranslationUnit getTranslationUnit () {
|
||||
protected ITranslationUnit getTranslationUnit () {
|
||||
ITranslationUnit unit = null;
|
||||
if (fEditor != null) {
|
||||
IEditorInput editorInput= fEditor.getEditorInput();
|
||||
|
@ -222,6 +222,13 @@ public class AddIncludeOnSelectionAction extends Action implements IUpdate {
|
|||
fs[0] = CCompletionContributorManager.getDefault().getFunctionInfo(name);
|
||||
}
|
||||
};
|
||||
try {
|
||||
PlatformUI.getWorkbench().getProgressService().busyCursorWhile(op);
|
||||
} catch (InvocationTargetException e) {
|
||||
ExceptionHandler.handle(e, getShell(), CEditorMessages.getString("AddIncludeOnSelection.error.message1"), null); //$NON-NLS-1$
|
||||
} catch (InterruptedException e) {
|
||||
// Do nothing. Operation has been canceled.
|
||||
}
|
||||
return fs[0];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue