commit | 0ab94e6755c839436b1d84ad5607b80ae47a4e50 | [log] [tgz] |
---|---|---|
author | Carsten Reckord <reckord@yatta.de> | Wed Feb 22 20:41:58 2017 +0100 |
committer | Carsten Reckord <reckord@yatta.de> | Wed Feb 22 20:41:58 2017 +0100 |
tree | 8c75bd346fc8760baae8a83a9e7cfd3b1969fc30 | |
parent | c02c80452d44aadb4dd516dbd7bdc96d0a36edfa [diff] |
509710: Error message on every 'unknown file type' opening Only log the error instead of opening a popup Bug: 509710 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=509710
diff --git a/org.eclipse.epp.mpc.ui/src/org/eclipse/epp/internal/mpc/ui/AskMarketPlaceForFileSupportStrategy.java b/org.eclipse.epp.mpc.ui/src/org/eclipse/epp/internal/mpc/ui/AskMarketPlaceForFileSupportStrategy.java index dc9dd67..26f530e 100644 --- a/org.eclipse.epp.mpc.ui/src/org/eclipse/epp/internal/mpc/ui/AskMarketPlaceForFileSupportStrategy.java +++ b/org.eclipse.epp.mpc.ui/src/org/eclipse/epp/internal/mpc/ui/AskMarketPlaceForFileSupportStrategy.java
@@ -75,8 +75,9 @@ ISearchResult searchResult = marketplaceService.tagged(fileExtensionTag, monitor); nodes = searchResult.getNodes(); } catch (CoreException ex) { - return new Status(IStatus.ERROR, - MarketplaceClientUiPlugin.getInstance().getBundle().getSymbolicName(), ex.getMessage(), ex); + //Only log the error and return cancel. Otherwise user would be bothered with error dialog popups, e.g. when working offline + MarketplaceClientUi.error(ex); + return Status.CANCEL_STATUS; } if (nodes.isEmpty()) { return Status.OK_STATUS;