Skip to content
Snippets Groups Projects
Commit efd91da5 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

bugfix: forgot negation

parent 5deed562
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ import org.fortiss.tooling.kernel.ui.service.INavigatorService;
* @author hoelzlf
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: DF1A32386F4941DD835D87B7943AAE75
* @ConQAT.Rating YELLOW Hash: DCDF1E7D1F19BB1A14BCCC57E6D805A4
*/
public class NewMenu implements IContextMenuContributor {
......@@ -61,7 +61,7 @@ public class NewMenu implements IContextMenuContributor {
@Override
public List<IContributionItem> getContributedItems(EObject selectedObject,
ContextMenuContextProvider contextProvider) {
if (INavigatorService.INSTANCE.isNavigatorView(contextProvider)
if (!INavigatorService.INSTANCE.isNavigatorView(contextProvider)
|| selectedObject == null) {
return Collections.emptyList();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment