本文整理匯總了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);
}
}