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


Java IJavaReconcilingListener类代码示例

本文整理汇总了Java中org.eclipse.jdt.internal.ui.text.java.IJavaReconcilingListener的典型用法代码示例。如果您正苦于以下问题:Java IJavaReconcilingListener类的具体用法?Java IJavaReconcilingListener怎么用?Java IJavaReconcilingListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IJavaReconcilingListener类属于org.eclipse.jdt.internal.ui.text.java包,在下文中一共展示了IJavaReconcilingListener类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addReconcileListener

import org.eclipse.jdt.internal.ui.text.java.IJavaReconcilingListener; //导入依赖的package包/类
private void addReconcileListener(CompilationUnitEditor textEditor) {
	try {
		Method m = CompilationUnitEditor.class.getDeclaredMethod("addReconcileListener",
				IJavaReconcilingListener.class);
		m.setAccessible(true);
		m.invoke(textEditor, this);
	} catch (Exception e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
}
 
开发者ID:angelozerr,项目名称:codelens-eclipse,代码行数:12,代码来源:JavaCodeLensController.java

示例2: removeReconcileListener

import org.eclipse.jdt.internal.ui.text.java.IJavaReconcilingListener; //导入依赖的package包/类
private void removeReconcileListener(CompilationUnitEditor textEditor) {
	try {
		Method m = CompilationUnitEditor.class.getDeclaredMethod("removeReconcileListener",
				IJavaReconcilingListener.class);
		m.setAccessible(true);
		m.invoke(textEditor, this);
	} catch (Exception e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
}
 
开发者ID:angelozerr,项目名称:codelens-eclipse,代码行数:12,代码来源:JavaCodeLensController.java

示例3: aboutToBeReconciled

import org.eclipse.jdt.internal.ui.text.java.IJavaReconcilingListener; //导入依赖的package包/类
public void aboutToBeReconciled() {

		// Notify AST provider
		JavaPlugin.getDefault().getASTProvider().aboutToBeReconciled(getInputJavaElement());

		// Notify listeners
		Object[] listeners = fReconcilingListeners.getListeners();
		for (int i = 0, length= listeners.length; i < length; ++i)
			((IJavaReconcilingListener)listeners[i]).aboutToBeReconciled();
	}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:11,代码来源:CompilationUnitEditor.java

示例4: reconciled

import org.eclipse.jdt.internal.ui.text.java.IJavaReconcilingListener; //导入依赖的package包/类
public void reconciled(CompilationUnit ast, boolean forced, IProgressMonitor progressMonitor) {

		// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=58245
		JavaPlugin javaPlugin= JavaPlugin.getDefault();
		if (javaPlugin == null)
			return;

		// Always notify AST provider
		javaPlugin.getASTProvider().reconciled(ast, getInputJavaElement(), progressMonitor);

		// Notify listeners
		Object[] listeners = fReconcilingListeners.getListeners();
		for (int i = 0, length= listeners.length; i < length; ++i)
			((IJavaReconcilingListener)listeners[i]).reconciled(ast, forced, progressMonitor);

		// Update Java Outline page selection
		if (!forced && !progressMonitor.isCanceled()) {
			Shell shell= getSite().getShell();
			if (shell != null && !shell.isDisposed()) {
				shell.getDisplay().asyncExec(new Runnable() {
					public void run() {
						selectionChanged();
					}
				});
			}
		}
	}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:28,代码来源:CompilationUnitEditor.java

示例5: addReconcileListener

import org.eclipse.jdt.internal.ui.text.java.IJavaReconcilingListener; //导入依赖的package包/类
/**
 * Adds the given listener.
 * Has no effect if an identical listener was not already registered.
 *
 * @param listener	The reconcile listener to be added
 * @since 3.0
 */
final void addReconcileListener(IJavaReconcilingListener listener) {
	synchronized (fReconcilingListeners) {
		fReconcilingListeners.add(listener);
	}
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:13,代码来源:CompilationUnitEditor.java

示例6: removeReconcileListener

import org.eclipse.jdt.internal.ui.text.java.IJavaReconcilingListener; //导入依赖的package包/类
/**
 * Removes the given listener.
 * Has no effect if an identical listener was not already registered.
 *
 * @param listener	the reconcile listener to be removed
 * @since 3.0
 */
final void removeReconcileListener(IJavaReconcilingListener listener) {
	synchronized (fReconcilingListeners) {
		fReconcilingListeners.remove(listener);
	}
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:13,代码来源:CompilationUnitEditor.java


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