Mylyn WikiText

org.eclipse.mylyn.wikitext.ui.commands
Class AbstractMarkupResourceHandler

java.lang.Object
  extended by AbstractHandler
      extended by org.eclipse.mylyn.wikitext.ui.commands.AbstractMarkupResourceHandler
Direct Known Subclasses:
ConvertMarkupToDocbook, ConvertMarkupToHtml

public abstract class AbstractMarkupResourceHandler
extends AbstractHandler

An abstract base class for handlers that use the workbench selection to operate on resources

Author:
David Green

Field Summary
protected  MarkupLanguage markupLanguage
           
 
Constructor Summary
AbstractMarkupResourceHandler()
           
 
Method Summary
protected  ISelection computeSelection(ExecutionEvent event)
           
 Object execute(ExecutionEvent event)
           
 MarkupLanguage getMarkupLanguage()
           
 IStructuredSelection getSelection()
           
protected abstract  void handleFile(IFile file, String name)
           
 void setMarkupLanguage(MarkupLanguage markupLanguage)
           
 void setSelection(IStructuredSelection selection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

markupLanguage

protected MarkupLanguage markupLanguage
Constructor Detail

AbstractMarkupResourceHandler

public AbstractMarkupResourceHandler()
Method Detail

execute

public Object execute(ExecutionEvent event)
               throws ExecutionException
Throws:
ExecutionException

computeSelection

protected ISelection computeSelection(ExecutionEvent event)
Parameters:
event -
Since:
1.1

handleFile

protected abstract void handleFile(IFile file,
                                   String name)
                            throws ExecutionException
Throws:
ExecutionException

getMarkupLanguage

public MarkupLanguage getMarkupLanguage()

setMarkupLanguage

public void setMarkupLanguage(MarkupLanguage markupLanguage)

getSelection

public IStructuredSelection getSelection()
Since:
1.1

setSelection

public void setSelection(IStructuredSelection selection)
Since:
1.1

Mylyn WikiText

Copyright © 2007, 2009 David Green 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