de.cau.cs.kieler.core.model.handlers
Class ConvertModelHandler
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
de.cau.cs.kieler.core.model.handlers.ConvertModelHandler
- All Implemented Interfaces:
- IHandler, IHandler2
- Direct Known Subclasses:
- ConvertKaomModelHandler
public class ConvertModelHandler
- extends AbstractHandler
A command handler that can be used to convert a model from one format into another.
- Rating

Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConvertModelHandler
public ConvertModelHandler()
setTargetExtension
public final void setTargetExtension(String extension)
- Set the target file extension.
- Parameters:
extension
- the new target file extension
execute
public final Object execute(ExecutionEvent event)
throws ExecutionException
-
- Throws:
ExecutionException
convert
public final void convert(IFile file)
- Process a source file.
- Parameters:
file
- a source file
transform
protected void transform(EObject model)
- Transform the model before it is written to the new file format.
- Parameters:
model
- a model instance