Package org.springframework.ide.eclipse.config.ui.editors

Examples of org.springframework.ide.eclipse.config.ui.editors.AbstractConfigEditor


  @Override
  public void open() {
    super.open();
    IEditorPart editor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
    if (editor instanceof AbstractConfigEditor) {
      AbstractConfigEditor cEditor = (AbstractConfigEditor) editor;
      cEditor.revealElement(node);
    }
  }
View Full Code Here


    return new OverviewMasterPart(page, parent);
  }

  @Override
  public AbstractConfigDetailsPart getPage(Object key) {
    AbstractConfigEditor editor = getFormPage().getEditor();
    Set<IConfigurationElement> definitions = ConfigUiExtensionPointReader.getPageDefinitions();
    for (IConfigurationElement def : definitions) {
      String uri = def.getAttribute(FormPagesExtensionPointConstants.ATTR_NAMESPACE_URI);
      AbstractConfigFormPage formPage = editor.getFormPageForUri(uri);
      if (formPage != null) {
        AbstractConfigDetailsPart page = formPage.getMasterDetailsBlock().getPage(key);
        if (page != null) {
          page.setMasterPart(getMasterPart());
          return page;
View Full Code Here

  @Override
  public void run() {
    IEditorInput input = new FileEditorInput(file);
    IEditorPart part = SpringUIUtils.openInEditor(input, SpringWebFlowEditor.ID_EDITOR);
    if (part instanceof AbstractConfigEditor) {
      AbstractConfigEditor cEditor = (AbstractConfigEditor) part;
      IEditorPart graph = cEditor.getGraphicalEditorForUri(WebFlowSchemaConstants.URI);
      if (graph != null) {
        cEditor.setActiveEditor(graph);
      }
    }
  }
View Full Code Here

  @Override
  public void run() {
    IEditorInput input = new FileEditorInput(file);
    IEditorPart part = SpringUIUtils.openInEditor(input, SpringWebFlowEditor.ID_EDITOR);
    if (part instanceof AbstractConfigEditor) {
      AbstractConfigEditor cEditor = (AbstractConfigEditor) part;
      IEditorPart source = cEditor.getSourcePage();
      if (source != null) {
        cEditor.setActiveEditor(source);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.config.ui.editors.AbstractConfigEditor

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.