Package org.eclipse.swt.custom

Examples of org.eclipse.swt.custom.CTabItem.dispose()


    boolean doit = true;
    for (int i = 0; i < folder.getItemCount(); i++) {
      CTabItem tab = folder.getItem(i);
      folder.setSelection(i);
      if (((IEditor) tab.getControl()).close()) {
        tab.dispose();
        i--;
      } else {
        doit = false;
      }
    }
View Full Code Here


  }

  public void closeCurrentTab() {
    if(folder.getSelectionIndex() > -1) {
      CTabItem tab = folder.getSelection();
      tab.dispose();      
    } else {
      getCurrentTab().dispose();
    }
  }
View Full Code Here

    CTabItem item = getItem(pageIndex);
    Control pageControl = item.getControl();

    // dispose item before disposing editor, in case there's an exception
    // in editor's dispose
    item.dispose();

    if (pageControl != null) {
      pageControl.dispose();
    }
View Full Code Here

        public void widgetDisposed(DisposeEvent e) {
          DataContent dataContent = (DataContent) tbtmNewItem
              .getData();

          openDataContent.remove(dataContent);
          tbtmNewItem.dispose();
        }
      });

     
      DataContent content = null;
View Full Code Here

 
  protected void removeTab(IProject project) {
    tabs.remove(project);
    CTabItem item = tabItems.remove(project);
    if (item != null) {
      item.dispose();
    }
    openRooCommandWizardAction.update();
    openRooAddOnManagerAction.update();
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.