本文整理汇总了Java中org.eclipse.jdt.core.compiler.BuildContext类的典型用法代码示例。如果您正苦于以下问题:Java BuildContext类的具体用法?Java BuildContext怎么用?Java BuildContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BuildContext类属于org.eclipse.jdt.core.compiler包,在下文中一共展示了BuildContext类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: buildStarting
import org.eclipse.jdt.core.compiler.BuildContext; //导入依赖的package包/类
@Override
public void buildStarting(final BuildContext[] files, boolean isBatch) {
// We handle batch builds in a separate job to avoid blocking for a long
// time in the case of batch (clean) builds.
if (isBatch) {
assert files.length > 0;
IProject project = files[0].getFile().getProject();
synchronized (this) {
Job job = validationJobs.get(project);
if (job != null) {
job.cancel();
}
job = new Job("Validating GWT components") {
@Override
protected IStatus run(IProgressMonitor monitor) {
monitor.beginTask("validating", files.length);
handleBuildStarting(files, monitor);
monitor.done();
return new JobStatus(Status.OK, this, "done");
}
};
validationJobs.put(project, job);
job.schedule();
}
} else {
handleBuildStarting(files, null);
}
}
开发者ID:gwt-plugins,项目名称:gwt-eclipse-plugin,代码行数:34,代码来源:JavaCompilationParticipant.java
示例2: buildStarting
import org.eclipse.jdt.core.compiler.BuildContext; //导入依赖的package包/类
@Override
public void buildStarting(BuildContext[] files, boolean isBatch) {
for (BuildContext file : files) {
IProject project = file.getFile().getProject();
IJavaProject javaProject = JavaCore.create(project);
Set<BuildContext> projectFileSet = javaProjectToFileSet.get(javaProject);
if (projectFileSet == null) {
projectFileSet = new HashSet<>();
javaProjectToFileSet.put(javaProject, projectFileSet);
}
projectFileSet.add(file);
}
}
开发者ID:ELTE-Soft,项目名称:txtUML,代码行数:16,代码来源:JtxtUMLCompilationParticipant.java
示例3: buildFinished
import org.eclipse.jdt.core.compiler.BuildContext; //导入依赖的package包/类
@Override
public void buildFinished(IJavaProject javaProject) {
Set<BuildContext> projectFileSet = javaProjectToFileSet.get(javaProject);
if (projectFileSet == null) { // buildFinished might be called without
// buildStarting
return;
}
for (BuildContext file : projectFileSet) {
validateFile(file, javaProject);
}
javaProjectToFileSet.remove(javaProject);
}
开发者ID:ELTE-Soft,项目名称:txtUML,代码行数:15,代码来源:JtxtUMLCompilationParticipant.java
示例4: PathGeneratorCategorizedProblem
import org.eclipse.jdt.core.compiler.BuildContext; //导入依赖的package包/类
public PathGeneratorCategorizedProblem(BuildContext context,String pathGenerator,Location location) {
super();
this.context = context;
this.pathGenerator=pathGenerator;
this.location=location;
}
开发者ID:gw4e,项目名称:gw4e.project,代码行数:7,代码来源:BuildParticipant.java
示例5: buildStarting
import org.eclipse.jdt.core.compiler.BuildContext; //导入依赖的package包/类
@Override
public void buildStarting(BuildContext[] files, boolean isBatch) {
log("buildStarting");
}
开发者ID:paninij,项目名称:paninij,代码行数:5,代码来源:Plugin.java
示例6: buildStarting
import org.eclipse.jdt.core.compiler.BuildContext; //导入依赖的package包/类
@Override
public void buildStarting(BuildContext[] files, boolean isBatch) {
}
开发者ID:impetuouslab,项目名称:eclipse-filecompletion,代码行数:4,代码来源:MarkerFinderImpl.java
示例7: processAnnotations
import org.eclipse.jdt.core.compiler.BuildContext; //导入依赖的package包/类
@Override
public void processAnnotations(BuildContext[] files) {
}
开发者ID:impetuouslab,项目名称:eclipse-filecompletion,代码行数:4,代码来源:MarkerFinderImpl.java
示例8: processAnnotations
import org.eclipse.jdt.core.compiler.BuildContext; //导入依赖的package包/类
public void processAnnotations(BuildContext[] files) {
}
开发者ID:gw4e,项目名称:gw4e.project,代码行数:4,代码来源:BuildParticipant.java
注:本文中的org.eclipse.jdt.core.compiler.BuildContext类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论