當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。