本文整理汇总了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();
}
}
示例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();
}
}
示例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();
}
示例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();
}
});
}
}
}
示例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);
}
}
示例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);
}
}