Package org.pentaho.commons.metadata.mqleditor.editor

Examples of org.pentaho.commons.metadata.mqleditor.editor.SwingMqlEditor


   */
  public void run()
  {
    try
    {
      final SwingMqlEditor mqlEditor = new SwingMqlEditor(repository);
      final String queryXml = selectedQuery.getQuery();
      if (StringUtils.isEmpty(queryXml) == false)
      {
        mqlEditor.setQuery(queryXml);
      }
      mqlEditor.hidePreview();
      mqlEditor.show();
      if (mqlEditor.getOkClicked())
      {
        final String theQuery = mqlEditor.getQuery();

        if (theQuery != null)
        {
          selectedQuery.setQuery(theQuery);
          queryTextArea.setText(theQuery);
View Full Code Here


     */
    public void run()
    {
      try
      {
        final SwingMqlEditor mqlEditor = new SwingMqlEditor(repository);

        final String theQueryKey = queryNameTextField.getText();
        final DataSetQuery theSelectedQuery = queries.get(theQueryKey);
        final String theQueryXml = theSelectedQuery.getQuery();
        if (StringUtils.isEmpty(theQueryXml) == false)
        {
          mqlEditor.setQuery(theQueryXml);
        }
        mqlEditor.hidePreview();
        mqlEditor.show();
        if (mqlEditor.getOkClicked())
        {
          final String theQuery = mqlEditor.getQuery();

          if (theQuery != null)
          {
            theSelectedQuery.setQuery(theQuery);
            queryTextArea.setText(theQuery);
View Full Code Here

TOP

Related Classes of org.pentaho.commons.metadata.mqleditor.editor.SwingMqlEditor

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.