本文整理了Java中org.eclipse.swt.widgets.Table.addDisposeListener()
方法的一些代码示例,展示了Table.addDisposeListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.addDisposeListener()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称:Table
方法名:addDisposeListener
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.databinding
/**
* Creates an updator for the given control.
*
* @param table
* table to update
* @param list
* @since 1.2
*/
public TableUpdater(Table table, IObservableList list) {
this.table = table;
this.list = list;
Assert.isLegal((table.getStyle() & SWT.VIRTUAL) != 0,
"TableUpdater requires virtual table"); //$NON-NLS-1$
table.setItemCount(list.size());
list.addListChangeListener(listChangeListener);
table.addDisposeListener(privateInterface);
table.addListener(SWT.SetData, privateInterface);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench
fList.setLayoutData(new GridData(GridData.FILL_BOTH));
fList.setFont(parent.getFont());
fList.addDisposeListener(e -> {
fLabelProvider.dispose();
if (fUpdateJob != null) {
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench
/**
* Creates the list widget and sets layout data.
*
* @param parent
* the parent composite.
* @return returns the list table widget.
*/
protected Table createLowerList(Composite parent) {
Table list = new Table(parent, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
list.addListener(SWT.Selection, evt -> handleLowerSelectionChanged());
list.addListener(SWT.MouseDoubleClick, evt -> handleDefaultSelected());
list.addDisposeListener(e -> fQualifierRenderer.dispose());
GridData data = new GridData();
data.widthHint = convertWidthInCharsToPixels(50);
data.heightHint = convertHeightInCharsToPixels(5);
data.grabExcessVerticalSpace = true;
data.grabExcessHorizontalSpace = true;
data.horizontalAlignment = GridData.FILL;
data.verticalAlignment = GridData.FILL;
list.setLayoutData(data);
list.setFont(parent.getFont());
fLowerList = list;
return list;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench
editorsTable.addDisposeListener(e -> {
for (Iterator images1 = imageCache.values().iterator(); images1
.hasNext();) {
代码示例来源:origin: org.eclipse/org.eclipse.team.ui
viewer.setComparator(sorter);
table.addDisposeListener(new DisposeListener() {
public void widgetDisposed(DisposeEvent e) {
if(currentRevisionFont != null) {
代码示例来源:origin: org.eclipse.platform/org.eclipse.team.ui
/**
* Create a TableViewer that can be used to display a list of IFileRevision instances.
* This method provides the labels and sorter but does not provide a content provider
*
* @param parent
* @return TableViewer
*/
public TableViewer createTable(Composite parent) {
Table table = new Table(parent, SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI | SWT.FULL_SELECTION);
table.setHeaderVisible(true);
table.setLinesVisible(true);
GridData data = new GridData(GridData.FILL_BOTH);
table.setLayoutData(data);
TableLayout layout = new TableLayout();
table.setLayout(layout);
TableViewer viewer = new TableViewer(table);
createColumns(table, layout, viewer);
viewer.setLabelProvider(new HistoryLabelProvider());
// By default, reverse sort by revision.
HistoryComparator sorter = new HistoryComparator(COL_REVISIONID);
sorter.setReversed(true);
viewer.setComparator(sorter);
table.addDisposeListener(e -> {
if(currentRevisionFont != null) {
currentRevisionFont.dispose();
}
});
this.viewer = viewer;
return viewer;
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.server.ui
table.setLinesVisible(true);
tableViewer = new TableViewer(table);
table.addDisposeListener(new DisposeListener() {
public void widgetDisposed(DisposeEvent e) {
disposeResources();
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
fTable.addDisposeListener(new DisposeListener() {
public void widgetDisposed(DisposeEvent e) {
stop(true, true);
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
fTable.addDisposeListener(new DisposeListener() {
@Override
public void widgetDisposed(DisposeEvent e) {
代码示例来源:origin: org.eclipse/org.eclipse.ajdt.ui
fTable.addDisposeListener(new DisposeListener() {
public void widgetDisposed(DisposeEvent e) {
stop(true, true);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
fTable.addDisposeListener(new DisposeListener() {
@Override
public void widgetDisposed(DisposeEvent e) {
代码示例来源:origin: org.eclipse.egit/ui
rawTable.addDisposeListener(new DisposeListener() {
public void widgetDisposed(final DisposeEvent e) {
clipboard.dispose();
hoverManager.install(table.getTable());
table.getTable().addDisposeListener(new DisposeListener() {
代码示例来源:origin: org.eclipse.egit/ui
rawTable.addDisposeListener(new DisposeListener() {
public void widgetDisposed(final DisposeEvent e) {
clipboard.dispose();
内容来源于网络,如有侵权,请联系作者删除!