File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
plugin/src/de/anbos/eclipse/easyshell/plugin/commands Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -41,15 +41,14 @@ public class DefineCommands extends ExtensionContributionFactory {
4141 public DefineCommands () {
4242 }
4343
44- @ SuppressWarnings ("deprecation" )
4544 @ Override
4645 public void createContributionItems (IServiceLocator serviceLocator , IContributionRoot additions ) {
4746 if (GeneralDataStore .instance ().getData ().getMenuPopup () != CheckBox .yes ) {
4847 return ;
4948 }
5049 IWorkbenchPart activePart = serviceLocator .getService (IWorkbenchPart .class );
5150 boolean isResourceNavigator = false ;
52- isResourceNavigator = activePart instanceof org .eclipse .ui .views .navigator .ResourceNavigator ;
51+ isResourceNavigator = activePart != null && " org.eclipse.ui.views.navigator.ResourceNavigator" . equals ( activePart . getClass (). getCanonicalName ()) ;
5352 if ((isResourceNavigator == isForResourceNavigator ())) {
5453 ResourceType resType = ResourceUtils .getCommonResourceType (activePart );
5554 if (resType != null ) {
You can’t perform that action at this time.
0 commit comments