Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tm.te.tcf.ui/src/org/eclipse/tm/te/tcf/ui/internal/handler/DeleteCommandHandler.java')
-rw-r--r--target_explorer/plugins/org.eclipse.tm.te.tcf.ui/src/org/eclipse/tm/te/tcf/ui/internal/handler/DeleteCommandHandler.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/target_explorer/plugins/org.eclipse.tm.te.tcf.ui/src/org/eclipse/tm/te/tcf/ui/internal/handler/DeleteCommandHandler.java b/target_explorer/plugins/org.eclipse.tm.te.tcf.ui/src/org/eclipse/tm/te/tcf/ui/internal/handler/DeleteCommandHandler.java
index a27c6a24a..fe1d85166 100644
--- a/target_explorer/plugins/org.eclipse.tm.te.tcf.ui/src/org/eclipse/tm/te/tcf/ui/internal/handler/DeleteCommandHandler.java
+++ b/target_explorer/plugins/org.eclipse.tm.te.tcf.ui/src/org/eclipse/tm/te/tcf/ui/internal/handler/DeleteCommandHandler.java
@@ -33,6 +33,7 @@ public class DeleteCommandHandler extends AbstractHandler {
/* (non-Javadoc)
* @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
*/
+ @Override
public Object execute(ExecutionEvent event) throws ExecutionException {
ISelection selection = HandlerUtil.getCurrentSelection(event);
if (selection instanceof IStructuredSelection && !selection.isEmpty()) {
@@ -45,7 +46,7 @@ public class DeleteCommandHandler extends AbstractHandler {
} catch (IOException e) {
// Ignore it for now, we will have to pass it to the status handler later
}
-
+
// Get the locator model
final ILocatorModel model = Model.getModel();
if (model != null) {
@@ -53,6 +54,7 @@ public class DeleteCommandHandler extends AbstractHandler {
final ILocatorModelRefreshService service = model.getService(ILocatorModelRefreshService.class);
if (service != null) {
Protocol.invokeLater(new Runnable() {
+ @Override
public void run() {
// Refresh the model now (must be executed within the TCF dispatch thread)
service.refresh();
@@ -60,7 +62,7 @@ public class DeleteCommandHandler extends AbstractHandler {
});
}
}
-
+
}
}
}

Back to the top