Package org.eclipse.php.internal.ui.folding.html

Examples of org.eclipse.php.internal.ui.folding.html.ProjectionModelNodeAdapterFactoryHTML


    if (fElementListener != null) {
      DLTKCore.removeElementChangedListener(fElementListener);
      fElementListener = null;
    }

    final ProjectionModelNodeAdapterFactoryHTML factory2 = getAdapterFactoryHTML(false);
    if (factory2 != null) {
      factory2.removeProjectionViewer(viewer);
    }

    // clear out all annotations
    if (viewer.getProjectionAnnotationModel() != null) {
      viewer.getProjectionAnnotationModel().removeAllAnnotations();
View Full Code Here


    if (viewer != null) {
      fDocument = viewer.getDocument();

      // set projection viewer on new document's adapter factory
      if (viewer.getProjectionAnnotationModel() != null) {
        final ProjectionModelNodeAdapterFactoryHTML factory2 = getAdapterFactoryHTML(true);
        if (factory2 != null) {
          factory2.addProjectionViewer(viewer);
          factory2.suspendProjectionViewer(viewer);
        }
        addAllAdapters();
        if (factory2 != null) {
          factory2.activateProjectionViewer(viewer);
        }
      }
    }

    fUpdatingCount++;
View Full Code Here

   */
  private ProjectionModelNodeAdapterFactoryHTML getAdapterFactoryHTML(
      boolean createIfNeeded) {
    final long start = System.currentTimeMillis();

    ProjectionModelNodeAdapterFactoryHTML factory = null;
    if (fDocument != null) {
      IStructuredModel sModel = null;
      try {
        sModel = StructuredModelManager.getModelManager()
            .getExistingModelForRead(fDocument);
        if (sModel != null && (sModel instanceof IDOMModel)) {
          final FactoryRegistry factoryRegistry = sModel
              .getFactoryRegistry();

          // getting the projectionmodelnodeadapter for the first
          // time
          // so do some initializing
          if (!factoryRegistry
              .contains(ProjectionModelNodeAdapterHTML.class)
              && createIfNeeded) {
            final ProjectionModelNodeAdapterFactoryHTML newFactory = new ProjectionModelNodeAdapterFactoryHTML();

            // add factory to factory registry
            factoryRegistry.addFactory(newFactory);

            // add factory to propogating adapter
View Full Code Here

        if (viewer != null) {
            fDocument = viewer.getDocument();

            // set projection viewer on new document's adapter factory
            if (viewer.getProjectionAnnotationModel() != null) {
                final ProjectionModelNodeAdapterFactoryHTML factory2 = getAdapterFactoryHTML(true);
                if (factory2 != null) {
                    factory2.addProjectionViewer(viewer);
                }

                addAllAdapters();
            }
        }
View Full Code Here

        if (fElementListener != null) {
            DLTKCore.removeElementChangedListener(fElementListener);
            fElementListener = null;
        }

        final ProjectionModelNodeAdapterFactoryHTML factory2 = getAdapterFactoryHTML(false);
        if (factory2 != null) {
            factory2.removeProjectionViewer(viewer);
        }

        // clear out all annotations
        if (viewer.getProjectionAnnotationModel() != null) {
            viewer.getProjectionAnnotationModel().removeAllAnnotations();
View Full Code Here

    }

    private ProjectionModelNodeAdapterFactoryHTML getAdapterFactoryHTML(
            boolean createIfNeeded)
    {
        ProjectionModelNodeAdapterFactoryHTML factory = null;
        if (fDocument != null) {
            IStructuredModel sModel = null;
            try {
                sModel = StructuredModelManager.getModelManager()
                        .getExistingModelForRead(fDocument);
                if (sModel != null && (sModel instanceof IDOMModel)) {
                    final FactoryRegistry factoryRegistry = sModel
                            .getFactoryRegistry();

                    // getting the projectionmodelnodeadapter for the first
                    // time
                    // so do some initializing
                    if (!factoryRegistry
                            .contains(ProjectionModelNodeAdapterHTML.class)
                            && createIfNeeded) {
                        final ProjectionModelNodeAdapterFactoryHTML newFactory = new ProjectionModelNodeAdapterFactoryHTML();

                        // add factory to factory registry
                        factoryRegistry.addFactory(newFactory);

                        // add factory to propogating adapter
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.ui.folding.html.ProjectionModelNodeAdapterFactoryHTML

Copyright © 2018 www.massapicom. 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.