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

Examples of org.springframework.ide.eclipse.config.core.IConfigEditor


    return JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE);
  }

  private ITextViewer getViewer(IEditorPart editorPart) {
    if (editorPart instanceof IConfigEditor) {
      IConfigEditor configEditor = (IConfigEditor) editorPart;
      return configEditor.getTextViewer();
    }
    if (editorPart instanceof StructuredTextEditor) {
      return ((StructuredTextEditor) editorPart).getTextViewer();
    }
    if (editorPart instanceof XMLMultiPageEditorPart) {
View Full Code Here


    return null;
  }

  private ITextViewer getViewer(IEditorPart editorPart) {
    if (editorPart instanceof IConfigEditor) {
      IConfigEditor configEditor = (IConfigEditor) editorPart;
      return configEditor.getTextViewer();
    }
    if (editorPart instanceof StructuredTextEditor) {
      return ((StructuredTextEditor) editorPart).getTextViewer();
    }
    if (editorPart instanceof XMLMultiPageEditorPart) {
View Full Code Here

          e.printStackTrace();
        }
      }

      if (editor instanceof IConfigEditor) {
        IConfigEditor configEditor = (IConfigEditor) editor;
        return configEditor.getTextViewer().getDocument();
      }
      else if (editor instanceof MultiPageEditorPart) {
        MultiPageEditorPart multiEditor = (MultiPageEditorPart) editor;
        IEditorPart[] editors = multiEditor.findEditors(fileInput);
        for (IEditorPart e : editors) {
View Full Code Here

          }
        }

        StructuredTextEditor textEditor = null;
        if (part instanceof IConfigEditor) {
          IConfigEditor editor = (IConfigEditor) part;
          textEditor = editor.getSourcePage();
        }
        else if (part instanceof XMLMultiPageEditorPart) {
          XMLMultiPageEditorPart xmlEditor = (XMLMultiPageEditorPart) part;
          IEditorPart[] editors = xmlEditor.findEditors(xmlEditor.getEditorInput());
          for (IEditorPart editor : editors) {
View Full Code Here

  public void showProperties() {
    try {
      IViewPart props = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
          .showView("org.eclipse.ui.views.PropertySheet"); //$NON-NLS-1$
      if (props instanceof ISelectionListener) {
        IConfigEditor editor = getModelElement().getDiagram().getGraphicalEditor().getEditor();
        Object obj = editor.getAdapter(ISelectionProvider.class);
        if (obj instanceof ISelectionProvider) {
          ISelectionProvider provider = (ISelectionProvider) obj;
          ((ISelectionListener) props).selectionChanged(editor, provider.getSelection());
        }
      }
View Full Code Here

      new FormatProcessorXML().formatNode(bean);

      model.endRecording(this);

      if (editor instanceof IConfigEditor) {
        IConfigEditor configEditor = (IConfigEditor) editor;
        int startOffset = bean.getStartOffset();
        int length = bean.getEndOffset() - startOffset;

        StructuredTextViewer textViewer = configEditor.getTextViewer();
        textViewer.setRangeIndication(startOffset, length, true);
        textViewer.revealRange(startOffset, length);
      }

      newBean = bean;
View Full Code Here

    return null;
  }

  private ITextViewer getViewer(IEditorPart editorPart) {
    if (editorPart instanceof IConfigEditor) {
      IConfigEditor configEditor = (IConfigEditor) editorPart;
      return configEditor.getTextViewer();
    }
    if (editorPart instanceof StructuredTextEditor) {
      return ((StructuredTextEditor) editorPart).getTextViewer();
    }
    if (editorPart instanceof XMLMultiPageEditorPart) {
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.config.core.IConfigEditor

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.