Examples of cleanupModel()


Examples of org.eclipse.wst.html.core.internal.cleanup.HTMLCleanupProcessorImpl.cleanupModel()

    else {
      pref.setTagNameCase(HTMLCorePreferenceNames.ASIS);
      pref.setAttrNameCase(HTMLCorePreferenceNames.ASIS);
    }

    processor.cleanupModel(model);

    // set back options
    pref.setCompressEmptyElementTags(compressEmptyElementTags);
    pref.setInsertRequiredAttrs(insertRequiredAttrs);
    pref.setInsertMissingTags(insertMissingTags);
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.cleanup.IStructuredCleanupProcessor.cleanupModel()

            if (cleanupProcessor != null) {
              IStructuredModel model = null;
              try {
                model = StructuredModelManager.getModelManager().getExistingModelForEdit(editor.getDocumentProvider().getDocument(editor.getEditorInput()));
                if (model != null) {
                  cleanupProcessor.cleanupModel(model);
                }
              }
              finally {
                if (model != null) {
                  model.releaseFromEdit();
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.cleanup.IStructuredCleanupProcessor.cleanupModel()

          // setup runnable
          Runnable runnable = new Runnable() {
            public void run() {
              IStructuredCleanupProcessor cleanupProcessor = getCleanupProcessor();
              if (cleanupProcessor != null)
                cleanupProcessor.cleanupModel(editor.getModel());
            }
          };

          // TODO: make independent of 'model'.
          IStructuredModel model = editor.getModel();
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.cleanup.IStructuredCleanupProcessor.cleanupModel()

            if (cleanupProcessor != null) {
              IStructuredModel model = null;
              try {
                model = StructuredModelManager.getModelManager().getExistingModelForEdit(finalTextEditor.getDocumentProvider().getDocument(finalTextEditor.getEditorInput()));
                if (model != null) {
                  cleanupProcessor.cleanupModel(model);
                }
              }
              finally {
                if (model != null) {
                  model.releaseFromEdit();
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.cleanup.CleanupProcessorXML.cleanupModel()

    formatProcessor.getFormatPreferences().setClearAllBlankLines(true);
    formatProcessor.formatModel(model);

    CleanupProcessorXML bla = new CleanupProcessorXML();
    bla.getCleanupPreferences().setCompressEmptyElementTags(true);
    bla.cleanupModel(model);
  }

  public Object getAdapter(Class type) {
    if (type == IContentOutlinePage.class) {
      if (outlinePage == null) {
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.