Examples of IDocument


Examples of aQute.bnd.properties.IDocument

            // Only commit changes to the model if the document text has
            // actually changed since we switched to the page; this prevents us
            // losing selection in the Components and Imports tabs.
            // We can't use the dirty flag for this because "undo" will clear
            // the dirty flag.
            IDocument doc = getDocument();
            String currentContent = doc.get();
            if (!currentContent.equals(lastLoaded))
                formEditor.getEditModel().loadFrom(getDocument());
        } catch (IOException e) {
            logger.logError("Error loading model from document.", e);
        }
View Full Code Here

Examples of aQute.bnd.properties.IDocument

            logger.logError("Error loading model from document.", e);
        }
    }

    void refresh() {
        IDocument document = getDocument();
        formEditor.getEditModel().saveChangesTo(document);
    }
View Full Code Here

Examples of aQute.bnd.properties.IDocument

            // Only commit changes to the model if the document text has
            // actually changed since we switched to the page; this prevents us
            // losing selection in the Components and Imports tabs.
            // We can't use the dirty flag for this because "undo" will clear
            // the dirty flag.
            IDocument doc = getDocument();
            String currentContent = doc.get();
            if (!currentContent.equals(lastLoaded))
                formEditor.getEditModel().loadFrom(getDocument());
        } catch (IOException e) {
            logger.logError("Error loading model from document.", e);
        }
View Full Code Here

Examples of aQute.bnd.properties.IDocument

            logger.logError("Error loading model from document.", e);
        }
    }

    void refresh() {
        IDocument document = getDocument();
        formEditor.getEditModel().saveChangesTo(document);
    }
View Full Code Here

Examples of ag.ion.bion.officelayer.document.IDocument

      configuration
          .setApplicationHomePath("/home/Sebastianr/OpenOffice.org1.1.1");
      localOfficeApplication.setConfiguration(configuration);
      localOfficeApplication.activate();

      IDocument document = localOfficeApplication
          .getDocumentService()
          .loadDocument(
              new FileInputStream(new File("test/testTexts.sxw")),
              new DocumentDescriptor());
      if (document != null) {
View Full Code Here

Examples of com.google.enterprise.connector.filenet4.filewrap.IDocument

      logger.config("Authorizing DocID: " + docId + " for user: "
          + user.get_Name());
      // Check whether the search user is authorized to view document
      // contents or
      // not.
      IDocument releasedVersion = versionSeries.get_ReleasedVersion();
      Permissions permissions = new Permissions(
          releasedVersion.get_Permissions(), releasedVersion.get_Owner());
      if (permissions.authorize(user)) {
        logger.log(Level.INFO, "As per the ACLS User "
            + user.get_Name()
            + " is authorized for document DocID " + docId);
        authorizationResponse = new AuthorizationResponse(true,
            docId);

        if (checkMarkings) {
          logger.log(Level.INFO, "Authorizing DocID: " + docId
              + " for user: " + user.get_Name()
              + " for Marking sets ");

          // check whether current document has property values
          // set for properties associated with marking sets or
          // not //
          if (releasedVersion.get_ActiveMarkings() != null) {
            logger.log(Level.INFO, "Document has property associated with Markings set");

            // check whether USER is authorized to view the
            // document as per the Marking set security applied
            // over it.
            MarkingPermissions markingPermissions =
                new MarkingPermissions(releasedVersion.get_ActiveMarkings());
            if (markingPermissions.authorize(user)) {
              logger.log(Level.INFO, "As per the Marking Sets User "
                  + user.get_Name()
                  + " is authorized for document DocID "
                  + docId);
View Full Code Here

Examples of net.alteiar.newversion.server.document.IDocument

   * @param propertyName
   * @param newValue
   * @param timestamp
   */
  protected void documentChanged(MessageModifyValue msg) {
    IDocument doc = documents.get(msg.getId());
    doc.remoteValueChanged(msg.getPropertyName(), msg.getNewValue(),
        msg.getTimestamp());
  }
View Full Code Here

Examples of org.apache.rat.document.IDocument

     * @param file the file to be reported on
     * @throws RatReportFailedException
     */
    private void report(final RatReport report, File file) throws RatReportFailedException {

        IDocument document = new FileDocument(file, UNARCHIVER);
        report.report(document);

    }
View Full Code Here

Examples of org.apache.uima.caseditor.core.IDocument

  @Override
  public void dispose() {
    // remove selection listener
    getSite().getWorkbenchWindow().getSelectionService().removeSelectionListener(this);

    IDocument document = getDocument();

    if (document != null) {
      document.removeChangeListener(mAnnotationSynchronizer);
    }
  }
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocument

                      OntoUML.diagram.part.Messages.OntoUMLDocumentProvider_IncorrectInputError,
                      new Object[] { element,
                          "org.eclipse.emf.common.ui.URIEditorInput" }), //$NON-NLS-1$
              null));
    }
    IDocument document = createEmptyDocument();
    setDocumentContent(document, (IEditorInput) element);
    setupDocument(element, document);
    return document;
  }
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.