當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。