List of usage examples for java.beans BeanDescriptor isExpert
public boolean isExpert()
From source file:org.apache.jmeter.testbeans.gui.TestBeanGUI.java
/** {@inheritDoc} */ @Override/* www .j a va 2 s .com*/ public Collection<String> getMenuCategories() { List<String> menuCategories = new LinkedList<>(); BeanDescriptor bd = beanInfo.getBeanDescriptor(); // We don't want to show expert beans in the menus unless we're // in expert mode: if (bd.isExpert() && !JMeterUtils.isExpertMode()) { return null; } int matches = setupGuiClasses(menuCategories); if (matches == 0) { log.error("Could not assign GUI class to " + testBeanClass.getName()); } else if (matches > 1) {// may be impossible, but no harm in // checking ... log.error("More than 1 GUI class found for " + testBeanClass.getName()); } return menuCategories; }