diff options
Diffstat (limited to 'changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/actions/PrepareCommitHandler.java')
-rw-r--r-- | changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/actions/PrepareCommitHandler.java | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/actions/PrepareCommitHandler.java b/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/actions/PrepareCommitHandler.java new file mode 100644 index 0000000000..4633458d9c --- /dev/null +++ b/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/actions/PrepareCommitHandler.java @@ -0,0 +1,65 @@ +/******************************************************************************* + * Copyright (c) 2006 Red Hat Inc. and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Kyu Lee <klee@redhat.com> - initial API and implementation + *******************************************************************************/ +package org.eclipse.linuxtools.internal.changelog.core.actions; + +import org.eclipse.core.commands.ExecutionEvent; +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.commands.IHandler; +import org.eclipse.core.commands.IHandlerListener; +import org.eclipse.jface.action.Action; + +/** + * + * @author klee + * + */ +public class PrepareCommitHandler implements IHandler { + + public void addHandlerListener(IHandlerListener handlerListener) { + // TODO Auto-generated method stub + } + + public void dispose() { + // TODO Auto-generated method stub + } + + public Object execute(ExecutionEvent event) throws ExecutionException { + + Action exampleAction; + exampleAction = new PrepareCommitAction() { + @Override + public void run() { + //setSelection(new StructuredSelection(rm)); + doRun(); + } + }; + + exampleAction.run(); + + return null; + } + + public boolean isEnabled() { + // TODO Auto-generated method stub + return true; + } + + public boolean isHandled() { + // TODO Auto-generated method stub + return true; + } + + public void removeHandlerListener(IHandlerListener handlerListener) { + // TODO Auto-generated method stub + + } + +} |