org.opencms.workplace.editors
Class CmsPreEditorActionDefinitionXmlContent

java.lang.Object
  extended by org.opencms.workplace.editors.A_CmsPreEditorActionDefinition
      extended by org.opencms.workplace.editors.CmsPreEditorActionDefinitionXmlContent
All Implemented Interfaces:
I_CmsPreEditorActionDefinition

public class CmsPreEditorActionDefinitionXmlContent
extends A_CmsPreEditorActionDefinition

Pre editor action for XML content resource types, checks if model files are available for the XML content to create in direct edit mode and shows the selection before opening the editor.

Since:
6.5.4
Version:
$Revision: 1.7 $
Author:
Andreas Zahner

Constructor Summary
CmsPreEditorActionDefinitionXmlContent()
          Constructor, without parameters.
 
Method Summary
 boolean doPreAction(CmsResource resource, CmsDialog dialog, java.lang.String originalParams)
          Returns if an action has to be performed before opening the editor depending on the resource to edit and eventual request parameter values.
 
Methods inherited from class org.opencms.workplace.editors.A_CmsPreEditorActionDefinition
getResourceType, getResourceTypeName, setResourceTypeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsPreEditorActionDefinitionXmlContent

public CmsPreEditorActionDefinitionXmlContent()
Constructor, without parameters.

Method Detail

doPreAction

public boolean doPreAction(CmsResource resource,
                           CmsDialog dialog,
                           java.lang.String originalParams)
                    throws java.lang.Exception
Description copied from interface: I_CmsPreEditorActionDefinition
Returns if an action has to be performed before opening the editor depending on the resource to edit and eventual request parameter values.

Specified by:
doPreAction in interface I_CmsPreEditorActionDefinition
Specified by:
doPreAction in class A_CmsPreEditorActionDefinition
Parameters:
resource - the resource to be edited
dialog - the dialog instance
originalParams - the original request parameters as String passed to the editor
Returns:
true if an action has to be performed before opening the editor
Throws:
java.lang.Exception - if something goes wrong
See Also:
I_CmsPreEditorActionDefinition.doPreAction(org.opencms.file.CmsResource, org.opencms.workplace.CmsDialog, java.lang.String)