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