code: static boolean isDirectEditEnabled(CmsObject cms) {
  
          return !cms.getRequestContext().getCurrentProject().isOnlineProject()
              && (cms.getRequestContext().getAttribute(CmsGwtConstants.PARAM_DISABLE_DIRECT_EDIT) == null);
      }
docs: Returns if direct edit is enabled.<p>
  
  @param cms the current cms context
  
  @return <code>true</code> if direct edit is enabled