@Override public ICustomFeature[] getContextButtonPadFeatures(CustomContext context) { // Check the selection to make sure it's appropriate for (PictogramElement pe : context.getPictogramElements()) { if (!(pe instanceof RHContainerShape) || DUtil.getBusinessObject(pe, ComponentInstantiation.class) == null) { return super.getContextButtonPadFeatures(context); } } List<ICustomFeature> features = new ArrayList<ICustomFeature>(Arrays.asList(super.getContextButtonPadFeatures(context))); features.add(new ShowConsoleFeature(this)); return features.toArray(new ICustomFeature[features.size()]); }