本文整理了Java中org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.<init>()
方法的一些代码示例,展示了WorkspaceModifyDelegatingOperation.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkspaceModifyDelegatingOperation.<init>()
方法的具体详情如下:
包路径:org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation
类名称:WorkspaceModifyDelegatingOperation
方法名:<init>
[英]Creates a new operation which will delegate its work to the given runnable. Schedule using the supplied s
[中]创建一个新操作,将其工作委托给给定的runnable。使用提供的
代码示例来源:origin: org.eclipse/org.eclipse.jdt.debug.ui
public void run(boolean fork, boolean cancelable, IRunnableWithProgress runnable, ISchedulingRule schedulingRule) throws InvocationTargetException, InterruptedException {
WorkspaceModifyDelegatingOperation operation= new WorkspaceModifyDelegatingOperation(runnable, schedulingRule);
operation.run(getProgressMonitor());
}
}
代码示例来源:origin: org.eclipse/org.eclipse.ui.editors
public void run(boolean fork, boolean cancelable, IRunnableWithProgress runnable, ISchedulingRule schedulingRule) throws InvocationTargetException, InterruptedException {
WorkspaceModifyDelegatingOperation operation= new WorkspaceModifyDelegatingOperation(runnable, schedulingRule);
operation.run(getProgressMonitor());
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.editors
private void run(IRunnableWithProgress runnable, ISchedulingRule schedulingRule) throws InvocationTargetException, InterruptedException {
WorkspaceModifyDelegatingOperation operation= new WorkspaceModifyDelegatingOperation(runnable, schedulingRule);
operation.run(getProgressMonitor());
}
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
getContainer().run(true, false, new WorkspaceModifyDelegatingOperation(op));
return op.infoStatus;
} catch (InvocationTargetException e) {
代码示例来源:origin: org.eclipse/org.eclipse.ajdt.ui
IRunnableWithProgress op = new WorkspaceModifyDelegatingOperation(
runnable);
try {
代码示例来源:origin: org.eclipse/org.eclipse.ajdt.ui
IRunnableWithProgress op = new WorkspaceModifyDelegatingOperation(
runnable);
try {
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
private void removeProject() {
if (fCurrProject == null || !fCurrProject.exists()) {
return;
}
IRunnableWithProgress op= new IRunnableWithProgress() {
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
doRemoveProject(monitor);
}
};
try {
getContainer().run(true, true, new WorkspaceModifyDelegatingOperation(op));
} catch (InvocationTargetException e) {
final String title= NewWizardMessages.JavaProjectWizardSecondPage_error_remove_title;
final String message= NewWizardMessages.JavaProjectWizardSecondPage_error_remove_message;
ExceptionHandler.handle(e, getShell(), title, message);
} catch (InterruptedException e) {
// cancel pressed
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
getContainer().run(true, false, new WorkspaceModifyDelegatingOperation(op));
return op.infoStatus;
} catch (InvocationTargetException e) {
代码示例来源:origin: io.sarl/io.sarl.eclipse
/**
* Removes the provisional project. The provisional project is typically
* removed when the user cancels the wizard or goes back to the first page.
*/
protected void removeProvisonalProject() {
if (!this.currProject.exists()) {
this.currProject = null;
return;
}
final IRunnableWithProgress op = new IRunnableWithProgress() {
@SuppressWarnings("synthetic-access")
@Override
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
doRemoveProject(monitor);
}
};
try {
getContainer().run(true, true, new WorkspaceModifyDelegatingOperation(op));
} catch (InvocationTargetException e) {
final String title = NewWizardMessages.NewJavaProjectWizardPageTwo_error_remove_title;
final String message = NewWizardMessages.NewJavaProjectWizardPageTwo_error_remove_message;
ExceptionHandler.handle(e, getShell(), title, message);
} catch (InterruptedException e) {
// cancel pressed
}
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
/**
* Removes the provisional project. The provisional project is typically removed when the user cancels the wizard or goes
* back to the first page.
*/
protected void removeProvisonalProject() {
if (!fCurrProject.exists()) {
fCurrProject= null;
return;
}
IRunnableWithProgress op= new IRunnableWithProgress() {
@Override
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
doRemoveProject(monitor);
}
};
try {
getContainer().run(true, true, new WorkspaceModifyDelegatingOperation(op));
} catch (InvocationTargetException e) {
final String title= NewWizardMessages.NewJavaProjectWizardPageTwo_error_remove_title;
final String message= NewWizardMessages.NewJavaProjectWizardPageTwo_error_remove_message;
ExceptionHandler.handle(e, getShell(), title, message);
} catch (InterruptedException e) {
// cancel pressed
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
/**
* Removes the provisional project. The provisional project is typically removed when the user cancels the wizard or goes
* back to the first page.
*/
protected void removeProvisonalProject() {
if (!fCurrProject.exists()) {
fCurrProject= null;
return;
}
IRunnableWithProgress op= new IRunnableWithProgress() {
@Override
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
doRemoveProject(monitor);
}
};
try {
getContainer().run(true, true, new WorkspaceModifyDelegatingOperation(op));
} catch (InvocationTargetException e) {
final String title= NewWizardMessages.NewJavaProjectWizardPageTwo_error_remove_title;
final String message= NewWizardMessages.NewJavaProjectWizardPageTwo_error_remove_message;
ExceptionHandler.handle(e, getShell(), title, message);
} catch (InterruptedException e) {
// cancel pressed
}
}
代码示例来源:origin: io.sarl/io.sarl.eclipse
private IStatus changeToNewProject() {
final UpdateRunnable op = new UpdateRunnable();
try {
getContainer().run(true, false, new WorkspaceModifyDelegatingOperation(op));
return op.getInfoStatus();
} catch (InvocationTargetException e) {
final String title = NewWizardMessages.NewJavaProjectWizardPageTwo_error_title;
final String message = NewWizardMessages.NewJavaProjectWizardPageTwo_error_message;
updateStatus(e);
ExceptionHandler.handle(e, getShell(), title, message);
} catch (InterruptedException e) {
// cancel pressed
}
return null;
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.xml.ui
public boolean performFinish() {
ExampleProjectCreationOperation runnable = new ExampleProjectCreationOperation(pages, new ImportOverwriteQuery());
IRunnableWithProgress op = new WorkspaceModifyDelegatingOperation(runnable);
try {
getContainer().run(false, true, op);
}
catch (InvocationTargetException e) {
handleException(e.getTargetException());
return false;
}
catch (InterruptedException e) {
return false;
}
BasicNewProjectResourceWizard.updatePerspective(wizardConfigElement);
IResource res = runnable.getElementToOpen();
if (res != null) {
openResource(res);
}
return true;
}
代码示例来源:origin: org.eclipse/org.eclipse.ajdt.ui
IRunnableWithProgress op = new WorkspaceModifyDelegatingOperation(
runnable);
try {
代码示例来源:origin: org.eclipse/org.eclipse.ajdt.ui
IRunnableWithProgress op = new WorkspaceModifyDelegatingOperation(
runnable);
try {
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
getContainer().run(true, false, new WorkspaceModifyDelegatingOperation(op));
return op.infoStatus;
} catch (InvocationTargetException e) {
代码示例来源:origin: org.eclipse/org.eclipse.ajdt.ui
IRunnableWithProgress op = new WorkspaceModifyDelegatingOperation(
runnable);
try {
IRunnableWithProgress op = new WorkspaceModifyDelegatingOperation(
runnable);
try {
内容来源于网络,如有侵权,请联系作者删除!