if (kind != IncrementalProjectBuilder.CLEAN_BUILD) { if (buildAdapter != null) { buildAdapter.markAsDerivated(monitor); } IWoprojectAdapter woprojectAdapter = projectAdapter .getWoprojectAdapter(); if (woprojectAdapter != null) { woprojectAdapter.markAsDerivated(monitor); }
if (buildAdapter != null) { buildAdapter.markAsDerivated(monitor); } IWoprojectAdapter woprojectAdapter = projectAdapter.getWoprojectAdapter(); if (woprojectAdapter != null) { woprojectAdapter.markAsDerivated(monitor);
	protected IProject[] build(int kind, Map args, IProgressMonitor monitor)			throws CoreException {		IProject project = this.getProject();		IProjectAdapter projectAdapter = (IProjectAdapter) project				.getAdapter(IProjectAdapter.class);		IBuildAdapter buildAdapter = projectAdapter.getBuildAdapter();		if (kind == IncrementalProjectBuilder.FULL_BUILD) {			this.clean(monitor);		}		BuilderWrapper[] deltaBuilderWrappersRequestingFullBuild = build(kind,				args, monitor, this.builderWrappers);		Set builderWrappersRequestingFullBuild = new HashSet();		for (int i = 0; i < deltaBuilderWrappersRequestingFullBuild.length; i++) {			builderWrappersRequestingFullBuild					.add(deltaBuilderWrappersRequestingFullBuild[i]);		}		if (builderWrappersRequestingFullBuild.size() > 0) {			BuilderWrapper[] builderWrappersRequestingFullBuildList = (BuilderWrapper[]) builderWrappersRequestingFullBuild					.toArray(new BuilderWrapper[builderWrappersRequestingFullBuild							.size()]);			build(IncrementalProjectBuilder.FULL_BUILD, args, monitor,					builderWrappersRequestingFullBuildList);		}		if (kind != IncrementalProjectBuilder.CLEAN_BUILD) {			if (buildAdapter != null) {				buildAdapter.markAsDerivated(monitor);			}			IWoprojectAdapter woprojectAdapter = projectAdapter					.getWoprojectAdapter();			if (woprojectAdapter != null) {				woprojectAdapter.markAsDerivated(monitor);			}		}		final IProject workspaceRunnableProject = project;		IWorkspaceRunnable workspaceRunnable = new IWorkspaceRunnable() {			public void run(IProgressMonitor runInWorkspaceMonitor)					throws CoreException {				workspaceRunnableProject.refreshLocal(IResource.DEPTH_INFINITE,						runInWorkspaceMonitor);			}		};		ResourcesPlugin.getWorkspace().run(workspaceRunnable,				workspaceRunnableProject, 0, (IProgressMonitor) null);		return null;	}