Class XMLCommandHandler

java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
uk.ac.gda.client.experimentdefinition.ui.handlers.AbstractExperimentCommandHandler
uk.ac.gda.client.experimentdefinition.ui.handlers.XMLCommandHandler
All Implemented Interfaces:
org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2, org.eclipse.ui.IActionDelegate, org.eclipse.ui.IEditorActionDelegate, IXMLCommandHandler

public class XMLCommandHandler extends AbstractExperimentCommandHandler implements IXMLCommandHandler
  • Constructor Details

    • XMLCommandHandler

      public XMLCommandHandler()
    • XMLCommandHandler

      public XMLCommandHandler(String templateFileName)
  • Method Details

    • run

      public void run(org.eclipse.jface.action.IAction action)
      Specified by:
      run in interface org.eclipse.ui.IActionDelegate
      Overrides:
      run in class AbstractExperimentCommandHandler
    • execute

      public Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException
      Specified by:
      execute in interface org.eclipse.core.commands.IHandler
      Throws:
      org.eclipse.core.commands.ExecutionException
    • doCopyAndSelection

      protected Object doCopyAndSelection(String id)
    • doCopyAndSelection

      public Object doCopyAndSelection()
      Specified by:
      doCopyAndSelection in interface IXMLCommandHandler
    • doCopy

      public org.eclipse.core.resources.IFile doCopy(org.eclipse.core.resources.IFile to)
      Specified by:
      doCopy in interface IXMLCommandHandler
    • doCopy

      public org.eclipse.core.resources.IFile doCopy(org.eclipse.core.resources.IFolder runFolder)
      Specified by:
      doCopy in interface IXMLCommandHandler
      Parameters:
      runFolder -
      Returns:
      name copied.
    • doTemplateCopy

      public org.eclipse.core.resources.IFile doTemplateCopy(org.eclipse.core.resources.IFolder runFolder, String fromFileName)
      Specified by:
      doTemplateCopy in interface IXMLCommandHandler
    • getTemplatePath

      public File getTemplatePath()
      Specified by:
      getTemplatePath in interface IXMLCommandHandler
    • getTemplateFileName

      public String getTemplateFileName()
      Specified by:
      getTemplateFileName in interface IXMLCommandHandler
      Returns:
      Returns the templateFileName.
    • getTemplateParameters

      public XMLRichBean getTemplateParameters() throws Exception
      Specified by:
      getTemplateParameters in interface IXMLCommandHandler
      Returns:
      bean
      Throws:
      Exception