code: public void addPreEditorConditionDefinition(String resourceTypeName, String preEditorConditionDefinitionClassName) {
  
          try {
              I_CmsPreEditorActionDefinition preEditorCondition = (I_CmsPreEditorActionDefinition)Class.forName(
                  preEditorConditionDefinitionClassName).newInstance();
              preEditorCondition.setResourceTypeName(resourceTypeName);
              m_preEditorConditionDefinitions.add(preEditorCondition);
              if (CmsLog.INIT.isInfoEnabled()) {
                  CmsLog.INIT.info(
                      Messages.get().getBundle().key(
                          Messages.INIT_EDITOR_PRE_ACTION_2,
                          preEditorConditionDefinitionClassName,
                          resourceTypeName));
              }
          } catch (Exception e) {
              LOG.error(
                  Messages.get().getBundle().key(
                      Messages.LOG_INVALID_EDITOR_PRE_ACTION_1,
                      preEditorConditionDefinitionClassName),
                  e);
          }
      }
docs: Adds a condition definition class for a given resource type name that is triggered before opening the editor.<p>
  
  @param resourceTypeName the name of the resource type
  @param preEditorConditionDefinitionClassName full class name of the condition definition class