本文整理汇总了Java中org.eclipse.jface.viewers.IPostSelectionProvider.removePostSelectionChangedListener方法的典型用法代码示例。如果您正苦于以下问题:Java IPostSelectionProvider.removePostSelectionChangedListener方法的具体用法?Java IPostSelectionProvider.removePostSelectionChangedListener怎么用?Java IPostSelectionProvider.removePostSelectionChangedListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jface.viewers.IPostSelectionProvider
的用法示例。
在下文中一共展示了IPostSelectionProvider.removePostSelectionChangedListener方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: uninstall
import org.eclipse.jface.viewers.IPostSelectionProvider; //导入方法依赖的package包/类
/**
* Removes this selection changed listener from the given selection
* provider.
*
* @param selectionProvider
* the selection provider
*/
public void uninstall(ISelectionProvider selectionProvider) {
if (selectionProvider == null)
return;
if (selectionProvider instanceof IPostSelectionProvider) {
IPostSelectionProvider provider = (IPostSelectionProvider) selectionProvider;
provider.removePostSelectionChangedListener(this);
} else {
selectionProvider.removeSelectionChangedListener(this);
}
}
示例2: uninstallSelectionChangedListener
import org.eclipse.jface.viewers.IPostSelectionProvider; //导入方法依赖的package包/类
private void uninstallSelectionChangedListener() {
ISelectionProvider selectionProvider = getSelectionProvider();
if (selectionProvider != null) {
if (selectionProvider instanceof IPostSelectionProvider) {
final IPostSelectionProvider postSelectionProvider = (IPostSelectionProvider) selectionProvider;
postSelectionProvider.removePostSelectionChangedListener(selectionChangedListener);
} else {
selectionProvider.removeSelectionChangedListener(selectionChangedListener);
}
}
}
示例3: leave
import org.eclipse.jface.viewers.IPostSelectionProvider; //导入方法依赖的package包/类
/**
* Set this EnsembleSelectionProvider to no longer
* follow the provided ISelectionProvider.
*
* @see follow
* @param provider
*/
public void leave(ISelectionProvider provider) {
provider.removeSelectionChangedListener(selectionChangedListener);
if (provider instanceof IPostSelectionProvider) {
IPostSelectionProvider postProvider = (IPostSelectionProvider) provider;
postProvider.removePostSelectionChangedListener(selectionChangedListener);
}
}
示例4: uninstall
import org.eclipse.jface.viewers.IPostSelectionProvider; //导入方法依赖的package包/类
/**
* Removes this selection changed listener from the given selection provider.
*
* @param selectionProvider the selection provider
*/
public void uninstall(ISelectionProvider selectionProvider) {
if (selectionProvider == null)
return;
if (selectionProvider instanceof IPostSelectionProvider) {
IPostSelectionProvider provider= (IPostSelectionProvider) selectionProvider;
provider.removePostSelectionChangedListener(this);
} else {
selectionProvider.removeSelectionChangedListener(this);
}
}
示例5: removeListener
import org.eclipse.jface.viewers.IPostSelectionProvider; //导入方法依赖的package包/类
/**
* Remove the selection changed listener
*
* @param selectionProvider
*/
private void removeListener(ISelectionProvider selectionProvider, ISelectionChangedListener listener) {
if (selectionProvider instanceof IPostSelectionProvider) {
IPostSelectionProvider provider= (IPostSelectionProvider) selectionProvider;
provider.removePostSelectionChangedListener(listener);
} else {
selectionProvider.removeSelectionChangedListener(listener);
}
}