Examples of supportsEdit()


Examples of org.olat.repository.handlers.RepositoryHandler.supportsEdit()

        columnsLayoutCtr.setCol2(toolComp);
        menuTree.setSelectedNodeId(myEntriesNodeId);

        // ask if we should start the editor right now.
        RepositoryHandler handler = RepositoryHandlerFactory.getInstance().getRepositoryHandler(addController.getAddedEntry());
        if (handler.supportsEdit()) { // start Editor
          removeAsListenerAndDispose(launchEditorDialog); // cleanup old                                                          // instance
          launchEditorDialog = activateYesNoDialog(urequest, null, translate("add.launchedit.msg"), launchEditorDialog);
          launchEditorDialog.setUserObject(addController.getAddedEntry());
          return;
        }
View Full Code Here

Examples of org.olat.repository.handlers.RepositoryHandler.supportsEdit()

        if (isNewController) {
          detailsToolC.addLink(ACTION_DELETE, translate("details.delete"));
          detailsToolC.addLink(ACTION_GROUPS, translate("details.groups"));
        }
        // enable
        detailsToolC.setEnabled(TOOL_EDIT, handler.supportsEdit());
        detailsToolC.setEnabled(TOOL_CHDESC, true);
        detailsToolC.setEnabled(TOOL_CHPROP, true);
        canCopy = true;
      }
      detailsToolC.setEnabled(TOOL_COPY, canCopy);
View Full Code Here

Examples of org.olat.repository.handlers.RepositoryHandler.supportsEdit()

   * @param ureq
   */
  void doEdit(UserRequest ureq) {
    if (!isOwner) throw new OLATSecurityException("Trying to launch editor, but not allowed: user = " + ureq.getIdentity());
    RepositoryHandler typeToEdit = RepositoryHandlerFactory.getInstance().getRepositoryHandler(repositoryEntry);
    if (!typeToEdit.supportsEdit()){
      throw new AssertException("Trying to edit repository entry which has no assoiciated editor: "+ typeToEdit);
    }
       

    OLATResourceable ores = repositoryEntry.getOlatResource();
View Full Code Here

Examples of org.olat.repository.handlers.RepositoryHandler.supportsEdit()

    if (repositoryEntry == null) {
      // do nothing
      return;
    }
    RepositoryHandler typeToEdit = RepositoryHandlerFactory.getInstance().getRepositoryHandler(repositoryEntry);
    if (!typeToEdit.supportsEdit()){
      throw new AssertException("Trying to edit repository entry which has no assoiciated editor: "+ typeToEdit);
    }         
    // Open editor in new tab
    OLATResourceable ores = repositoryEntry.getOlatResource();
    DTabs dts = (DTabs)Windows.getWindows(ureq).getWindow(ureq).getAttribute("DTabs");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.