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


Java IExecutionListener类代码示例

本文整理汇总了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);
}
 
开发者ID:vitruv-tools,项目名称:Vitruv,代码行数:16,代码来源:EclipseMockTests.java

示例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);
}
 
开发者ID:vitruv-tools,项目名称:Vitruv,代码行数:6,代码来源:EclipseAdapterImpl.java

示例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);
}
 
开发者ID:vitruv-tools,项目名称:Vitruv,代码行数:6,代码来源:EclipseAdapterImpl.java

示例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);
    }
}
 
开发者ID:vitruv-tools,项目名称:Vitruv,代码行数:7,代码来源:EclipseMock.java

示例5: getTagListener

import org.eclipse.core.commands.IExecutionListener; //导入依赖的package包/类
static IExecutionListener getTagListener() {
	return tagMarker;
}
 
开发者ID:MulgaSoft,项目名称:e4macs,代码行数:4,代码来源:MarkUtils.java

示例6: getExecListener

import org.eclipse.core.commands.IExecutionListener; //导入依赖的package包/类
static IExecutionListener getExecListener(boolean isReverse){
	return (isReverse ?  StaticRevExecection.revexecutionListener : StaticExecection.executionListener);
}
 
开发者ID:MulgaSoft,项目名称:e4macs,代码行数:4,代码来源:KillRingListeners.java

示例7: getCopyExecListener

import org.eclipse.core.commands.IExecutionListener; //导入依赖的package包/类
static IExecutionListener getCopyExecListener(boolean isReverse) {
	return (isReverse ?  StaticRevCopyExecection.revcopyexecutionListener : StaticCopyExecection.copyexecutionListener);
}
 
开发者ID:MulgaSoft,项目名称:e4macs,代码行数:4,代码来源:KillRingListeners.java

示例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;
}
 
开发者ID:MulgaSoft,项目名称:e4macs,代码行数:7,代码来源:DynamicInitializer.java

示例9: getEnhancer

import org.eclipse.core.commands.IExecutionListener; //导入依赖的package包/类
public IExecutionListener getEnhancer() {
	return enhancer;
}
 
开发者ID:MulgaSoft,项目名称:e4macs,代码行数:4,代码来源:DynamicInitializer.java

示例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);
 
开发者ID:vitruv-tools,项目名称:Vitruv,代码行数:8,代码来源:IEclipseAdapter.java

示例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);
 
开发者ID:vitruv-tools,项目名称:Vitruv,代码行数:8,代码来源:IEclipseAdapter.java

示例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);
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:15,代码来源:ICommandService.java

示例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);
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:8,代码来源:ICommandService.java


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