commit | b4c1e638079575b111ea07e8af2a85230790e6f3 | [log] [tgz] |
---|---|---|
author | cbrun <cedric.brun@obeo.fr> | Wed Apr 27 15:20:48 2016 +0200 |
committer | cbrun <cedric.brun@obeo.fr> | Wed Apr 27 15:21:05 2016 +0200 |
tree | d7124e9c4437b8c1e90a192d933ab95b4eab3d13 | |
parent | 3f2130d4dd26220984dd63cddf39cda82a195d4c [diff] |
Prevent exception on each selection change. When the view gains focus, getExplorerContextualViewID() gets called to return an ID of view which should be opened. Right now this returns "" and as such Eclipse then fails with an exception. This commit make sure the getExplorerContextualViewID() method is not static (otherwise I don't see the point as then nobody could override it) and that if the returned string is null or empty then we won't ask Eclipse to show the view.