当前位置: 首页>>代码示例>>Java>>正文


Java IPostSelectionProvider.removePostSelectionChangedListener方法代码示例

本文整理汇总了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);
	}
}
 
开发者ID:angelozerr,项目名称:typescript.java,代码行数:19,代码来源:JavaScriptLightWeightEditor.java

示例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);
		}
	}
}
 
开发者ID:cplutte,项目名称:bts,代码行数:12,代码来源:XtextEditor.java

示例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);
   	}
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:15,代码来源:EnsembleSelectionProvider.java

示例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);
	}
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:17,代码来源:JavaEditor.java

示例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);
	}
}
 
开发者ID:MulgaSoft,项目名称:e4macs,代码行数:14,代码来源:ExecuteCommandHandler.java


注:本文中的org.eclipse.jface.viewers.IPostSelectionProvider.removePostSelectionChangedListener方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。