本文整理汇总了Java中org.eclipse.jdt.core.compiler.ReconcileContext类的典型用法代码示例。如果您正苦于以下问题:Java ReconcileContext类的具体用法?Java ReconcileContext怎么用?Java ReconcileContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ReconcileContext类属于org.eclipse.jdt.core.compiler包,在下文中一共展示了ReconcileContext类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: reconcile
import org.eclipse.jdt.core.compiler.ReconcileContext; //导入依赖的package包/类
@Override
public void reconcile(final ReconcileContext context) {
if (FileCompletionPreferencePage.checkDuringTyping) {
if (context == null) {
LOG.fine("context is null");
} else {
IJavaElementDelta delta = context.getDelta();
if (delta == null) {
LOG.fine("delta is null");
} else {
reconcileImpl(context, delta);
}
}
}
}
开发者ID:impetuouslab,项目名称:eclipse-filecompletion,代码行数:17,代码来源:MarkerFinderImpl.java
示例2: notifyParticipants
import org.eclipse.jdt.core.compiler.ReconcileContext; //导入依赖的package包/类
private void notifyParticipants(final CompilationUnit workingCopy) {
IJavaProject javaProject = getWorkingCopy().getJavaProject();
CompilationParticipant[] participants = JavaModelManager.getJavaModelManager().compilationParticipants.getCompilationParticipants(javaProject);
if (participants == null) return;
final ReconcileContext context = new ReconcileContext(this, workingCopy);
for (int i = 0, length = participants.length; i < length; i++) {
final CompilationParticipant participant = participants[i];
SafeRunner.run(new ISafeRunnable() {
public void handleException(Throwable exception) {
if (exception instanceof Error) {
throw (Error) exception; // errors are not supposed to be caught
} else if (exception instanceof OperationCanceledException)
throw (OperationCanceledException) exception;
else if (exception instanceof UnsupportedOperationException) {
// might want to disable participant as it tried to modify the buffer of the working copy being reconciled
Util.log(exception, "Reconcile participant attempted to modify the buffer of the working copy being reconciled"); //$NON-NLS-1$
} else
Util.log(exception, "Exception occurred in reconcile participant"); //$NON-NLS-1$
}
public void run() throws Exception {
participant.reconcile(context);
}
});
}
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:27,代码来源:ReconcileWorkingCopyOperation.java
示例3: reconcile
import org.eclipse.jdt.core.compiler.ReconcileContext; //导入依赖的package包/类
@Override
public void reconcile(ReconcileContext context) {
try {
CompilationUnit unit = context.getAST8();
ProblemCollector collector = new ProblemCollector(context);
if (ElementTypeTeller.isModelElement(unit)) {
unit.accept(new ModelVisitor(collector));
}
collector.refreshProblems();
} catch (Exception e) {
Logger.sys.error("Error while checking for problems", e); //$NON-NLS-1$
}
}
开发者ID:ELTE-Soft,项目名称:txtUML,代码行数:14,代码来源:JtxtUMLCompilationParticipant.java
示例4: reconcile
import org.eclipse.jdt.core.compiler.ReconcileContext; //导入依赖的package包/类
@Override
public void reconcile(ReconcileContext context) {
log("reconcile");
}
开发者ID:paninij,项目名称:paninij,代码行数:5,代码来源:Plugin.java
示例5: ProblemCollector
import org.eclipse.jdt.core.compiler.ReconcileContext; //导入依赖的package包/类
public ProblemCollector(ReconcileContext context) throws JavaModelException {
resource = context.getWorkingCopy().getResource();
this.sourceInfo = new SourceInfo(context.getAST8());
}
开发者ID:ELTE-Soft,项目名称:txtUML,代码行数:5,代码来源:ProblemCollector.java
注:本文中的org.eclipse.jdt.core.compiler.ReconcileContext类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论