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

Examples of org.springframework.ide.eclipse.config.ui.hyperlinks.XmlBackedHyperlinkProvider


   * @return {@link HyperlinkedTextAttribute} widget set
   */
  protected HyperlinkedTextAttribute createAdviceMethodAttribute(Composite client, String attr, boolean required) {
    HyperlinkedTextAttribute linkAttr = new XmlBackedHyperlinkTextAttribute(client, toolkit, attr, required) {
      public void openHyperlink() {
        XmlBackedHyperlinkProvider provider = new AdviceMethodHyperlinkProvider(getConfigEditor()
            .getTextViewer(), getInput(), attr);
        provider.open(text.getText());
      }
    };
    linkAttr.createAttribute(2);
    return linkAttr;
  }
View Full Code Here


   * @return {@link HyperlinkedTextAttribute} widget set
   */
  protected HyperlinkedTextAttribute createBeanAttribute(Composite client, String attr, boolean required) {
    HyperlinkedTextAttribute linkAttr = new XmlBackedHyperlinkTextAttribute(client, toolkit, attr, required) {
      public void openHyperlink() {
        XmlBackedHyperlinkProvider provider = new BeanHyperlinkProvider(getConfigEditor().getTextViewer(),
            getInput(), attr);
        provider.open(text.getText());
      }
    };
    linkAttr.createAttribute(2);
    return linkAttr;
  }
View Full Code Here

      public void modifyAttribute() {
        editAttribute(attr, text.getText());
      }

      public void openHyperlink() {
        XmlBackedHyperlinkProvider provider = new ClassHyperlinkProvider(getConfigEditor().getTextViewer(),
            getInput(), attr);
        if (!provider.open(text.getText())) {
          openNewClassWizard(attr, text.getText());
        }
      }

      @Override
View Full Code Here

   * @return {@link HyperlinkedTextAttribute} widget set
   */
  protected HyperlinkedTextAttribute createFactoryMethodAttribute(Composite client, String attr, boolean required) {
    HyperlinkedTextAttribute linkAttr = new XmlBackedHyperlinkTextAttribute(client, toolkit, attr, required) {
      public void openHyperlink() {
        XmlBackedHyperlinkProvider provider = new FactoryMethodHyperlinkProvider(getConfigEditor()
            .getTextViewer(), getInput(), attr);
        provider.open(text.getText());
      }
    };
    linkAttr.createAttribute(2);
    return linkAttr;
  }
View Full Code Here

   */
  protected HyperlinkedTextAttribute createFactoryMethodAttribute(Composite client, String attr,
      final String referenceNode, boolean required) {
    HyperlinkedTextAttribute linkAttr = new XmlBackedHyperlinkTextAttribute(client, toolkit, attr, required) {
      public void openHyperlink() {
        XmlBackedHyperlinkProvider provider = new FactoryMethodHyperlinkProvider(getConfigEditor()
            .getTextViewer(), getInput(), attr, referenceNode);
        provider.open(text.getText());
      }
    };
    linkAttr.createAttribute(2);
    return linkAttr;
  }
View Full Code Here

   * @return {@link HyperlinkedTextAttribute} widget set
   */
  protected HyperlinkedTextAttribute createFieldAttribute(Composite client, String attr, boolean required) {
    HyperlinkedTextAttribute linkAttr = new XmlBackedHyperlinkTextAttribute(client, toolkit, attr, required) {
      public void openHyperlink() {
        XmlBackedHyperlinkProvider provider = new FieldHyperlinkProvider(getConfigEditor().getTextViewer(),
            getInput(), attr);
        provider.open(text.getText());
      }
    };
    linkAttr.createAttribute(2);
    return linkAttr;
  }
View Full Code Here

   * @return {@link HyperlinkedTextAttribute} widget set
   */
  protected HyperlinkedTextAttribute createImportAttribute(Composite client, String attr, boolean required) {
    HyperlinkedTextAttribute linkAttr = new XmlBackedHyperlinkTextAttribute(client, toolkit, attr, required) {
      public void openHyperlink() {
        XmlBackedHyperlinkProvider provider = new ImportHyperlinkProvider(getConfigEditor().getTextViewer(),
            getInput(), attr);
        provider.open(text.getText());
      }
    };
    linkAttr.createAttribute(2);
    return linkAttr;
  }
View Full Code Here

   * @return {@link HyperlinkedTextAttribute} widget set
   */
  protected HyperlinkedTextAttribute createInitDestroyMethodAttribute(Composite client, String attr, boolean required) {
    HyperlinkedTextAttribute linkAttr = new XmlBackedHyperlinkTextAttribute(client, toolkit, attr, required) {
      public void openHyperlink() {
        XmlBackedHyperlinkProvider provider = new InitDestroyMethodHyperlinkProvider(getConfigEditor()
            .getTextViewer(), getInput(), attr);
        provider.open(text.getText());
      }
    };
    linkAttr.createAttribute(2);
    return linkAttr;
  }
View Full Code Here

   * @return {@link HyperlinkedTextAttribute} widget set
   */
  protected HyperlinkedTextAttribute createListenerMethodAttribute(Composite client, String attr, boolean required) {
    HyperlinkedTextAttribute linkAttr = new XmlBackedHyperlinkTextAttribute(client, toolkit, attr, required) {
      public void openHyperlink() {
        XmlBackedHyperlinkProvider provider = new ListenerMethodHyperlinkProvider(getConfigEditor()
            .getTextViewer(), getInput(), attr);
        provider.open(text.getText());
      }
    };
    linkAttr.createAttribute(2);
    return linkAttr;
  }
View Full Code Here

   */
  protected HyperlinkedTextAttribute createLookupReplaceMethodAttribute(Composite client, String attr,
      boolean required) {
    HyperlinkedTextAttribute linkAttr = new XmlBackedHyperlinkTextAttribute(client, toolkit, attr, required) {
      public void openHyperlink() {
        XmlBackedHyperlinkProvider provider = new LookupReplaceMethodHyperlinkProvider(getConfigEditor()
            .getTextViewer(), getInput(), attr);
        provider.open(text.getText());
      }
    };
    linkAttr.createAttribute(2);
    return linkAttr;
  }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.config.ui.hyperlinks.XmlBackedHyperlinkProvider

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.