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


Java IJobChangeEvent.getJob方法代码示例

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


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

示例1: done

import org.eclipse.core.runtime.jobs.IJobChangeEvent; //导入方法依赖的package包/类
@Override
public void done(final IJobChangeEvent event) {
    final IStatus result = event.getResult();
    ProjectManagerRepositoryJob testJob;
    final ProjectManagerRepositoryJob job = (ProjectManagerRepositoryJob) event.getJob();
    final WorkspaceKey workspaceKey = new WorkspaceKey(job.getCachedWorkspace());

    synchronized (connectionLock) {
        testJob = workspaceJobMap.remove(workspaceKey);

        if (testJob == null) {
            log.warn("Could not locate running repository connection job in connection manager."); //$NON-NLS-1$
        } else if (!testJob.equals(job)) {
            log.warn("Multiple repository connection jobs running for same connection key."); //$NON-NLS-1$
        } else if (result.isOK()) {
            log.debug("Project Manager connected project with repository"); //$NON-NLS-1$
        }
    }
}
 
开发者ID:Microsoft,项目名称:team-explorer-everywhere,代码行数:20,代码来源:ProjectConnectionManager.java

示例2: scheduled

import org.eclipse.core.runtime.jobs.IJobChangeEvent; //导入方法依赖的package包/类
@Override
public synchronized void scheduled(final IJobChangeEvent event) {
  Job job = event.getJob();
  if (finder.apply(job)) {
    newJobs.add(job);
  }
}
 
开发者ID:dsldevkit,项目名称:dsl-devkit,代码行数:8,代码来源:JobMatcher.java

示例3: done

import org.eclipse.core.runtime.jobs.IJobChangeEvent; //导入方法依赖的package包/类
@Override
public synchronized void done(final IJobChangeEvent event) {
  Job job = event.getJob();
  if (finder.apply(job)) {
    jobQueue.add(job);
  }
}
 
开发者ID:dsldevkit,项目名称:dsl-devkit,代码行数:8,代码来源:JobMatcher.java

示例4: done

import org.eclipse.core.runtime.jobs.IJobChangeEvent; //导入方法依赖的package包/类
public void done(IJobChangeEvent event) {
	final Job j = event.getJob();
	if(j.belongsTo(ToolboxJob.FAMILY)) {
		final String jobName = j.getName();
		if(jobName.endsWith(model.getName())) {
			job = j;
		}
	}
}
 
开发者ID:tlaplus,项目名称:tlaplus,代码行数:10,代码来源:DummyJobChangeListener.java

示例5: done

import org.eclipse.core.runtime.jobs.IJobChangeEvent; //导入方法依赖的package包/类
/**
 * @see org.eclipse.core.runtime.jobs.JobChangeAdapter#done(org.eclipse.core.runtime.jobs.IJobChangeEvent)
 */
public void done(IJobChangeEvent event) {
    Job job = event.getJob();

    if (job.belongsTo(BuildJob.FAMILY)) {
        BuildJob buildJob = (BuildJob) job;

        fireProviderChangedEvent(buildJob.getDoxyfile());
    }
}
 
开发者ID:anb0s,项目名称:eclox,代码行数:13,代码来源:DoxyfileDecorator.java

示例6: running

import org.eclipse.core.runtime.jobs.IJobChangeEvent; //导入方法依赖的package包/类
/**
 * @see org.eclipse.core.runtime.jobs.JobChangeAdapter#running(org.eclipse.core.runtime.jobs.IJobChangeEvent)
 */
public void running(IJobChangeEvent event) {
    Job job = event.getJob();

    if (job.belongsTo(BuildJob.FAMILY)) {
        BuildJob buildJob = (BuildJob) job;

        fireProviderChangedEvent(buildJob.getDoxyfile());
    }
}
 
开发者ID:anb0s,项目名称:eclox,代码行数:13,代码来源:DoxyfileDecorator.java

示例7: done

import org.eclipse.core.runtime.jobs.IJobChangeEvent; //导入方法依赖的package包/类
@Override
public void done(IJobChangeEvent event) {

	if (event.getResult().isOK()) {
		UpdateMetaFileReaderJob = ((UpdateMetaFileReaderJob) event.getJob());
		final int count = UpdateMetaFileReaderJob.getUpdateCount();
		Display.getDefault().syncExec(new Runnable() {
			@Override
			public void run() {
				try {
					String displayMsg = String.valueOf(count)
							+ " update(s) available for developer studio. List them now ?";
					int userPref = getUserPreference(UPDATER_DIALOG_TITLE, displayMsg);
					if (userPref == 0 || userPref == USER_SCHEDULED_AUTOMATIC_INSTALL) {
						executeUpdateJob();
					} 
				} catch (Exception e) {
					log.error(Messages.UpdatemetaFileReaderJobListener_0, e);
				}
			}

			private void executeUpdateJob() {
				Job updateJob = new UpdateCheckerJob(updateManager);
				updateJob.schedule();
				updateJob.addJobChangeListener(
						new UpdateCheckerJobListener(updateManager, ActiveTab.UPDATE_FEATURES, true));
			}
		});
	}
}
 
开发者ID:wso2,项目名称:developer-studio,代码行数:31,代码来源:UpdateMetaFileReaderJobListener.java

示例8: done

import org.eclipse.core.runtime.jobs.IJobChangeEvent; //导入方法依赖的package包/类
@Override
public void done( IJobChangeEvent event ) {
  if( event.getJob() instanceof TerminateLaunchesJob ) {
    jobDone.set( true );
  }
}
 
开发者ID:rherrmann,项目名称:eclipse-extras,代码行数:7,代码来源:TerminateLaunchesActionPDETest.java


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