本文整理了Java中org.eclipse.swt.widgets.Tree.removeTreeListener()
方法的一些代码示例,展示了Tree.removeTreeListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tree.removeTreeListener()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Tree
类名称:Tree
方法名:removeTreeListener
[英]Removes the listener from the collection of listeners who will be notified when items in the receiver are expanded or collapsed.
[中]从侦听器集合中删除侦听器,当接收器中的项展开或折叠时,将通知这些侦听器。
代码示例来源:origin: org.eclipse/org.eclipse.jdt.debug.ui
public synchronized void dispose() {
if (fTree != null) {
fTree.removeTreeListener(this);
}
IPreferenceStore preferenceStore = JDIDebugUIPlugin.getDefault().getPreferenceStore();
preferenceStore.removePropertyChangeListener(this);
super.dispose();
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
/**
* Removes all associations between the TreeEditor and the row in the tree. The
* tree and the editor Control are <b>not</b> disposed.
*/
public void dispose () {
if (tree != null && !tree.isDisposed()) {
if (this.column > -1 && this.column < tree.getColumnCount()){
TreeColumn treeColumn = tree.getColumn(this.column);
treeColumn.removeControlListener(columnListener);
}
if (treeListener != null) tree.removeTreeListener(treeListener);
}
columnListener = null;
treeListener = null;
tree = null;
item = null;
column = 0;
timer = null;
super.dispose();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
/**
* Removes all associations between the TreeEditor and the row in the tree. The
* tree and the editor Control are <b>not</b> disposed.
*/
@Override
public void dispose () {
if (tree != null && !tree.isDisposed()) {
if (this.column > -1 && this.column < tree.getColumnCount()){
TreeColumn treeColumn = tree.getColumn(this.column);
treeColumn.removeControlListener(columnListener);
}
if (treeListener != null) tree.removeTreeListener(treeListener);
}
columnListener = null;
treeListener = null;
tree = null;
item = null;
column = 0;
timer = null;
super.dispose();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
/**
* Removes all associations between the TreeEditor and the row in the tree. The
* tree and the editor Control are <b>not</b> disposed.
*/
@Override
public void dispose () {
if (tree != null && !tree.isDisposed()) {
if (this.column > -1 && this.column < tree.getColumnCount()){
TreeColumn treeColumn = tree.getColumn(this.column);
treeColumn.removeControlListener(columnListener);
}
if (treeListener != null) tree.removeTreeListener(treeListener);
}
columnListener = null;
treeListener = null;
tree = null;
item = null;
column = 0;
timer = null;
super.dispose();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
/**
* Removes all associations between the TreeEditor and the row in the tree. The
* tree and the editor Control are <b>not</b> disposed.
*/
@Override
public void dispose () {
if (tree != null && !tree.isDisposed()) {
if (this.column > -1 && this.column < tree.getColumnCount()){
TreeColumn treeColumn = tree.getColumn(this.column);
treeColumn.removeControlListener(columnListener);
}
if (treeListener != null) tree.removeTreeListener(treeListener);
}
columnListener = null;
treeListener = null;
tree = null;
item = null;
column = 0;
timer = null;
super.dispose();
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
/**
* Removes all associations between the TreeEditor and the row in the tree.
* The tree and the editor Control are <b>not</b> disposed.
*/
public void dispose() {
if( tree != null && !tree.isDisposed() ) {
if( this.column > -1 && this.column < tree.getColumnCount() ) {
TreeColumn treeColumn = tree.getColumn( this.column );
treeColumn.removeControlListener( columnListener );
}
if( treeListener != null )
tree.removeTreeListener( treeListener );
}
columnListener = null;
treeListener = null;
tree = null;
item = null;
column = 0;
timer = null;
super.dispose();
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
/**
* Removes all associations between the TreeEditor and the row in the tree. The
* tree and the editor Control are <b>not</b> disposed.
*/
@Override
public void dispose () {
if (tree != null && !tree.isDisposed()) {
if (this.column > -1 && this.column < tree.getColumnCount()){
TreeColumn treeColumn = tree.getColumn(this.column);
treeColumn.removeControlListener(columnListener);
}
if (treeListener != null) tree.removeTreeListener(treeListener);
}
columnListener = null;
treeListener = null;
tree = null;
item = null;
column = 0;
timer = null;
super.dispose();
}
代码示例来源:origin: org.eclipse/org.eclipse.team.ui
/**
* Dispose of the provider
*/
public void dispose() {
// Only dispose the update handler if it is
// directly associated with this provider
if (isRootProvider()) {
updateHandler.dispose();
getTree().removeTreeListener(this);
} else {
set.removeSyncSetChangedListener(this);
}
if (actionGroup != null) {
Utils.syncExec(new Runnable() {
public void run() {
actionGroup.dispose();
}
}, getViewer());
}
this.disposed = true;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.team.ui
/**
* Dispose of the provider
*/
@Override
public void dispose() {
// Only dispose the update handler if it is
// directly associated with this provider
if (isRootProvider()) {
updateHandler.dispose();
getTree().removeTreeListener(this);
} else {
set.removeSyncSetChangedListener(this);
}
if (actionGroup != null) {
Utils.syncExec((Runnable) () -> actionGroup.dispose(), getViewer());
}
this.disposed = true;
}
内容来源于网络,如有侵权,请联系作者删除!