本文整理汇总了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$
}
}
}
示例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);
}
}
示例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);
}
}
示例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;
}
}
}
示例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());
}
}
示例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());
}
}
示例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));
}
});
}
}
示例8: done
import org.eclipse.core.runtime.jobs.IJobChangeEvent; //导入方法依赖的package包/类
@Override
public void done( IJobChangeEvent event ) {
if( event.getJob() instanceof TerminateLaunchesJob ) {
jobDone.set( true );
}
}