当前位置: 首页>>代码示例>>Java>>正文


Java IncrementalProjectBuilder.INCREMENTAL_BUILD属性代码示例

本文整理汇总了Java中org.eclipse.core.resources.IncrementalProjectBuilder.INCREMENTAL_BUILD属性的典型用法代码示例。如果您正苦于以下问题:Java IncrementalProjectBuilder.INCREMENTAL_BUILD属性的具体用法?Java IncrementalProjectBuilder.INCREMENTAL_BUILD怎么用?Java IncrementalProjectBuilder.INCREMENTAL_BUILD使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.eclipse.core.resources.IncrementalProjectBuilder的用法示例。


在下文中一共展示了IncrementalProjectBuilder.INCREMENTAL_BUILD属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: build

@Override
protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws CoreException {
	if (!PlatformUI.isWorkbenchRunning()) {
		return new IProject[0];
	}
	IProject[] projects = null;
	switch (kind) {
	case IncrementalProjectBuilder.CLEAN_BUILD:
		clean(monitor);
		break;
	case IncrementalProjectBuilder.FULL_BUILD:
		projects = fullBuild(args, monitor);
		break;
	case IncrementalProjectBuilder.AUTO_BUILD:
	case IncrementalProjectBuilder.INCREMENTAL_BUILD:
		projects = incrementalBuild(args, monitor);
		break;
	}
	return projects;
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:20,代码来源:PlanResourceIncrementalProjectBuilder.java

示例2: BuildActionGroup

private BuildActionGroup(IWorkbenchSite site, ISelectionProvider specialSelectionProvider, RefreshAction refreshAction) {
	fSelectionProvider= specialSelectionProvider != null ? specialSelectionProvider : site.getSelectionProvider();

	fBuildAction= new BuildAction(new ShellProviderAdapter(site.getShell()), IncrementalProjectBuilder.INCREMENTAL_BUILD);
	fBuildAction.setText(ActionMessages.BuildAction_label);
	fBuildAction.setActionDefinitionId(IWorkbenchCommandConstants.PROJECT_BUILD_PROJECT);

	fRefreshAction= refreshAction;
	fRefreshAction.setActionDefinitionId(IWorkbenchCommandConstants.FILE_REFRESH);

	if (specialSelectionProvider != null) {
		fRefreshAction.setSpecialSelectionProvider(specialSelectionProvider);
	}

	fSelectionProvider.addSelectionChangedListener(fBuildAction);
	fSelectionProvider.addSelectionChangedListener(fRefreshAction);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:17,代码来源:BuildActionGroup.java

示例3: shouldBuild

protected boolean shouldBuild(int kind, IManagedBuildInfo info) {
	IConfiguration cfg = info.getDefaultConfiguration();
	IBuilder builder = null;
	if (cfg != null) {
		builder = cfg.getEditableBuilder();
	switch (kind) {
	case IncrementalProjectBuilder.AUTO_BUILD :
		return true;
	case IncrementalProjectBuilder.INCREMENTAL_BUILD : // now treated as the same!
	case IncrementalProjectBuilder.FULL_BUILD :
		return builder.isFullBuildEnabled() | builder.isIncrementalBuildEnabled() ;
	case IncrementalProjectBuilder.CLEAN_BUILD :
		return builder.isCleanBuildEnabled();
	}
	}
	return true;
}
 
开发者ID:rungemar,项目名称:cmake4cdt,代码行数:17,代码来源:CMakeProjectBuilderImpl.java

示例4: BuildOperationsActionGroup

public BuildOperationsActionGroup(IViewPart viewPart) {
	super(viewPart);
	
	buildAction = new BuildAction(() -> viewPart.getSite().getShell(), 
		IncrementalProjectBuilder.INCREMENTAL_BUILD);
	buildAction.setActionDefinitionId(IWorkbenchCommandConstants.PROJECT_BUILD_PROJECT);
}
 
开发者ID:GoClipse,项目名称:goclipse,代码行数:7,代码来源:LangNavigatorActionProvider.java

示例5: build

/**
 * Run the builder.
 *
 * @see IncrementalProjectBuilder#build
 */
@SuppressWarnings("rawtypes")
@Override
protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws CoreException {
    monitor.subTask("Running FindBugs...");
    switch (kind) {
    case IncrementalProjectBuilder.FULL_BUILD: {
        FindBugs2Eclipse.cleanClassClache(getProject());
        if (FindbugsPlugin.getUserPreferences(getProject()).isRunAtFullBuild()) {
            if (DEBUG) {
                System.out.println("FULL BUILD");
            }
            doBuild(args, monitor, kind);
        } else {
            // TODO probably worth to cleanup?
            // MarkerUtil.removeMarkers(getProject());
        }
        break;
    }
    case IncrementalProjectBuilder.INCREMENTAL_BUILD: {
        if (DEBUG) {
            System.out.println("INCREMENTAL BUILD");
        }
        doBuild(args, monitor, kind);
        break;
    }
    case IncrementalProjectBuilder.AUTO_BUILD: {
        if (DEBUG) {
            System.out.println("AUTO BUILD");
        }
        doBuild(args, monitor, kind);
        break;
    }
    default: {

        FindbugsPlugin.getDefault()
        .logWarning("UKNOWN BUILD kind" + kind);
        doBuild(args, monitor, kind);
        break;
    }
    }
    return null;
}
 
开发者ID:OpenNTF,项目名称:FindBug-for-Domino-Designer,代码行数:47,代码来源:FindBugsBuilder.java


注:本文中的org.eclipse.core.resources.IncrementalProjectBuilder.INCREMENTAL_BUILD属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。