本文整理汇总了Java中org.eclipse.core.commands.IExecutionListener类的典型用法代码示例。如果您正苦于以下问题:Java IExecutionListener类的具体用法?Java IExecutionListener怎么用?Java IExecutionListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IExecutionListener类属于org.eclipse.core.commands包,在下文中一共展示了IExecutionListener类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: saveListenersAreFiredOnSave
import org.eclipse.core.commands.IExecutionListener; //导入依赖的package包/类
@Test
public void saveListenersAreFiredOnSave() {
IExecutionListener saveListener = createStrictMock(IExecutionListener.class);
reset(saveListener);
saveListener.preExecute(org.eclipse.ui.IWorkbenchCommandConstants.FILE_SAVE, null);
expectLastCall().times(1);
saveListener.postExecuteSuccess(org.eclipse.ui.IWorkbenchCommandConstants.FILE_SAVE, null);
expectLastCall().times(1);
replay(saveListener);
eclipse.addCommandServiceListener(saveListener);
eclipseMockCtrl.issueSaveEvent(SaveEventKind.SAVE);
verify(saveListener);
}
示例2: addCommandServiceListener
import org.eclipse.core.commands.IExecutionListener; //导入依赖的package包/类
@Override
public void addCommandServiceListener(IExecutionListener iel) {
final ICommandService service = (ICommandService) PlatformUI.getWorkbench().getService(ICommandService.class);
service.addExecutionListener(iel);
}
示例3: removeCommandServiceListener
import org.eclipse.core.commands.IExecutionListener; //导入依赖的package包/类
@Override
public void removeCommandServiceListener(IExecutionListener iel) {
final ICommandService service = (ICommandService) PlatformUI.getWorkbench().getService(ICommandService.class);
service.removeExecutionListener(iel);
}
示例4: issueSaveEvent
import org.eclipse.core.commands.IExecutionListener; //导入依赖的package包/类
public void issueSaveEvent(SaveEventKind kind) {
for (IExecutionListener listener : this.saveListeners) {
listener.preExecute(kind.getEclipseActionID(), null);
listener.postExecuteSuccess(kind.getEclipseActionID(), null);
}
}
示例5: getTagListener
import org.eclipse.core.commands.IExecutionListener; //导入依赖的package包/类
static IExecutionListener getTagListener() {
return tagMarker;
}
示例6: getExecListener
import org.eclipse.core.commands.IExecutionListener; //导入依赖的package包/类
static IExecutionListener getExecListener(boolean isReverse){
return (isReverse ? StaticRevExecection.revexecutionListener : StaticExecection.executionListener);
}
示例7: getCopyExecListener
import org.eclipse.core.commands.IExecutionListener; //导入依赖的package包/类
static IExecutionListener getCopyExecListener(boolean isReverse) {
return (isReverse ? StaticRevCopyExecection.revcopyexecutionListener : StaticCopyExecection.copyexecutionListener);
}
示例8: MinderBinder
import org.eclipse.core.commands.IExecutionListener; //导入依赖的package包/类
public MinderBinder(String commandId, String contextId, String keyString, IExecutionListener enhancer) {
this.commandId = commandId;
this.contextId = contextId;
this.keyString = keyString;
this.enhancer = enhancer;
}
示例9: getEnhancer
import org.eclipse.core.commands.IExecutionListener; //导入依赖的package包/类
public IExecutionListener getEnhancer() {
return enhancer;
}
示例10: addCommandServiceListener
import org.eclipse.core.commands.IExecutionListener; //导入依赖的package包/类
/**
* Adds an {@link IExecutionListener} to the Eclipse workbench's command service.
*
* @param iel
* The listener to be added.
*/
public void addCommandServiceListener(IExecutionListener iel);
示例11: removeCommandServiceListener
import org.eclipse.core.commands.IExecutionListener; //导入依赖的package包/类
/**
* Removes an {@link IExecutionListener} from the Eclipse workbench's command service.
*
* @param iel
* The listener to be removed.
*/
void removeCommandServiceListener(IExecutionListener iel);
示例12: addExecutionListener
import org.eclipse.core.commands.IExecutionListener; //导入依赖的package包/类
/**
* Adds an execution listener to the command service. This listener will be
* notified as commands are executed.
* <p>
* <b>Note:</b> listeners should be removed when no longer necessary. If
* not, they will be removed when the IServiceLocator used to acquire this
* service is disposed.
* </p>
*
* @param listener
* The listener to add; must not be <code>null</code>.
* @see #removeExecutionListener(IExecutionListener)
*/
public void addExecutionListener(IExecutionListener listener);
示例13: removeExecutionListener
import org.eclipse.core.commands.IExecutionListener; //导入依赖的package包/类
/**
* Removes an execution listener from the command service.
*
* @param listener
* The listener to remove; must not be <code>null</code>.
*/
public void removeExecutionListener(IExecutionListener listener);