Package org.springframework.ide.eclipse.config.core.formatting

Examples of org.springframework.ide.eclipse.config.core.formatting.ShallowFormatProcessorXML


    Attr classAttribute = createClassAttribute(newBean, ownerDocument);
    addNode(newBean, nextNode, BeansEditorUtils.getFile(document), beansNode);
    try {
      document.replace(getOffset(), 0, "");

      ShallowFormatProcessorXML formatter = new ShallowFormatProcessorXML();
      formatter.formatNode(newBean);

      if (parentNode instanceof IDOMElement) {
        int docLength = document.getLength();
        int startOffset = ((IDOMElement) newBean).getStartOffset() - 1;
        int length = ((IDOMElement) newBean).getLength() + 2;
        formatter.formatDocument(document, startOffset >= 0 ? startOffset : 0,
            length + startOffset <= docLength ? length : docLength - startOffset);
      }

      if (classAttribute instanceof AttrImpl && newBean instanceof IDOMNode) {
        cursorPosition = ((IDOMNode) newBean).getStartOffset()
View Full Code Here


  private String namespaceUri;

  private boolean hasManualBounds;

  public AbstractConfigGraphModelElement() {
    this.formatter = new ShallowFormatProcessorXML();
    hasManualBounds = false;
  }
View Full Code Here

  protected String targetId;

  public WireTapConnectionCreateCommand(ITextEditor textEditor) {
    super(textEditor, Graphics.LINE_DASH);
    this.formatter = new ShallowFormatProcessorXML();
  }
View Full Code Here

  protected String targetId;

  public MappingConnectionCreateCommand(ITextEditor textEditor) {
    super(textEditor, Graphics.LINE_DASH);
    this.formatter = new ShallowFormatProcessorXML();
  }
View Full Code Here

  protected String targetId;

  public RecipientConnectionCreateCommand(ITextEditor textEditor) {
    super(textEditor, Graphics.LINE_DASH);
    this.formatter = new ShallowFormatProcessorXML();
  }
View Full Code Here

  private String inputName;

  public FixedConnectionChannelCreateCommand(ITextEditor textEditor, int lineStyle) {
    super(textEditor, lineStyle);
    this.formatter = new ShallowFormatProcessorXML();
  }
View Full Code Here

  public NamespacesMasterPart(AbstractConfigFormPage page, Composite parent) {
    super(page, parent);
    selectedNamespaces = new HashSet<INamespaceDefinition>();
    selectedVersions = new HashMap<INamespaceDefinition, String>();
    formatProcessor = new ShallowFormatProcessorXML();
    lazyInitializationLatch = new CountDownLatch(1);
    BeansCorePlugin.registerNamespaceDefinitionListener(this);
    getNamespaceDefinitionList();
  }
View Full Code Here

  /**
   * Creates a new wizard.
   */
  public AbstractConfigWizard() {
    super();
    formatter = new ShallowFormatProcessorXML();
  }
View Full Code Here

  private EditorPart editor;

  private final IFile file;

  public NamespaceConfigWizard(IFile xmlConfigFile) throws CoreException {
    formatProcessor = new ShallowFormatProcessorXML();
    this.file = xmlConfigFile;
    this.beansElement = getBeansXmlElement(xmlConfigFile);
    setDialogSettings(BeansUIPlugin.getDefault().getDialogSettings());
    setDefaultPageImageDescriptor(StsUiImages.NAMESPACE_CONFIG_ICON);
    this.setWindowTitle(ConfigWizardsMessages.NamespaceConfig_windowTitle);
View Full Code Here

  public DeleteNodeAction(StructuredTextViewer textView, IDOMNode node) {
    super();
    this.textView = textView;
    this.node = node;
    formatter = new ShallowFormatProcessorXML();
    setText(Messages.getString("DeleteNodeAction.DELETE_ELEMENT_PREFIX") + node.getNodeName() + Messages.getString("DeleteNodeAction.DELETE_ELEMENT_SUFFIX")); //$NON-NLS-1$ //$NON-NLS-2$
  }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.config.core.formatting.ShallowFormatProcessorXML

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.