Package org.eclipse.wst.sse.core.internal.cleanup

Examples of org.eclipse.wst.sse.core.internal.cleanup.IStructuredCleanupProcessor


      Dialog cleanupDialog = new CleanupDialogXML(editor.getSite().getShell());
      if (cleanupDialog.open() == Window.OK) {
        // setup runnable
        Runnable runnable = new Runnable() {
          public void run() {
            IStructuredCleanupProcessor cleanupProcessor = getCleanupProcessor();
            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


      if (cleanupDialog != null) {
        if (cleanupDialog.open() == Window.OK) {
          // 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

      Dialog cleanupDialog = new CleanupDialogXML(editor.getSite().getShell());
      if (cleanupDialog.open() == Window.OK) {
        // setup runnable
        Runnable runnable = new Runnable() {
          public void run() {
            IStructuredCleanupProcessor cleanupProcessor = getCleanupProcessor();
            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

TOP

Related Classes of org.eclipse.wst.sse.core.internal.cleanup.IStructuredCleanupProcessor

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.