private void addButtonIfTypeSupported(List<TabButton> result, BrowserType type) { if (type.isSupported()) { result.add(new NewBrowserButton(type)); } }
/** * Constructor. * * @param browserType browser type */ public NewBrowserButton(BrowserType browserType) { super( ResourceUtil.getIcon(browserType.getName() + "-new.png"), "New " + browserType.getName() + " tab"); this.browserType = browserType; }