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

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


  private IConfigEditorPage createConfigEditorPage(IConfigurationElement definition, String property) {
    try {
      Object obj = definition.createExecutableExtension(property);
      if (obj instanceof IConfigEditorPage) {
        IConfigEditorPage page = (IConfigEditorPage) obj;
        page.initialize(this, definition.getAttribute(FormPagesExtensionPointConstants.ATTR_NAMESPACE_URI));
        return page;
      }
    }
    catch (CoreException e) {
      StatusHandler.log(new Status(IStatus.ERROR, ConfigUiPlugin.PLUGIN_ID, Messages
View Full Code Here


  @Override
  public void doSave(IProgressMonitor monitor) {
    sourceEditor.doSave(monitor);
    for (Object obj : pages) {
      if (obj instanceof IConfigEditorPage) {
        IConfigEditorPage page = (IConfigEditorPage) obj;
        page.doSave(monitor);
      }
    }
  }
View Full Code Here

    sourceEditor.doSaveAs();
    setPartName(sourceEditor.getTitle());
    setInput(sourceEditor.getEditorInput());
    for (Object obj : pages) {
      if (obj instanceof IConfigEditorPage) {
        IConfigEditorPage page = (IConfigEditorPage) obj;
        page.doSaveAs();
      }
    }
  }
View Full Code Here

    }
    loadActivePagePreference();
  }

  private void loadActivePagePreference() {
    IConfigEditorPage activePage = null;
    Integer index = null;
    String xml = prefStore.getString(activePageKey);

    if (xml != null && xml.length() > 0) {
      try {
View Full Code Here

  }

  private void notifyModelChanged(boolean updateNamespaces) {
    for (Object obj : pages) {
      if (obj instanceof IConfigEditorPage) {
        IConfigEditorPage page = (IConfigEditorPage) obj;
        page.modelUpdated();
        if (updateNamespaces) {
          page.namespacesUpdated();
        }
      }
    }
    for (AbstractConfigPropertySection propertiesPage : propertiesPages) {
      propertiesPage.refresh();
View Full Code Here

      IFormPage formPage = (IFormPage) activePage;
      memento.putString(KEY_PAGE_ID, formPage.getId());
    }

    if (activePage instanceof IConfigEditorPage) {
      IConfigEditorPage configPage = (IConfigEditorPage) activePage;
      memento.putString(KEY_PAGE_URI, configPage.getNamespaceUri());
      memento.putString(KEY_PAGE_KIND, configPage.getPageKind());
    }
    memento.putInteger(KEY_PAGE_INDEX, newPageIndex);

    try {
      StringWriter writer = new StringWriter();
View Full Code Here

    for (IConfigurationElement def : pageDefinitions) {
      String uri = def.getAttribute(FormPagesExtensionPointConstants.ATTR_NAMESPACE_URI);
      if (containsNamespaceUri(uri)) {
        String prefix = def.getAttribute(FormPagesExtensionPointConstants.ATTR_NAMESPACE_PREFIX);
        if (getFormPageForUri(uri) == null) {
          IConfigEditorPage page = createConfigEditorPage(def, FormPagesExtensionPointConstants.ATTR_CLASS);
          addConfigEditorPage(page, prefix);
        }

        if (gefEnabled) {
          if (getGraphicalEditorForUri(uri) == null) {
            String graph = def.getAttribute(FormPagesExtensionPointConstants.ATTR_GRAPH);
            if (graph != null && graph.trim().length() > 0) {
              String graphPrefix = prefix.concat("-graph"); //$NON-NLS-1$
              IConfigEditorPage gEditor = createConfigEditorPage(def,
                  FormPagesExtensionPointConstants.ATTR_GRAPH);
              addConfigEditorPage(gEditor, graphPrefix);
            }
          }
        }
View Full Code Here

TOP

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

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.