Package com.antlersoft.query

Examples of com.antlersoft.query.SelectionSetExpression


    {
      ISelection viewSelection = _currentResultView.getSelection();
        if (viewSelection != null && !viewSelection.isEmpty()
                && viewSelection instanceof IStructuredSelection) {
          IStructuredSelection selection = (IStructuredSelection)viewSelection;
          SelectionSetExpression se = m_qp.getCurrentSelection();
          se.clear();
          for (Iterator<?> i = selection.iterator(); i.hasNext();)
          {
            se.add(i.next());
          }
        }
    }
  }
View Full Code Here


     */
    public void run() {
      try
      {
        env.setLine( request.getText());
        SelectionSetExpression selection = env.getCurrentSelection();
        selection.clear();
        ObjectDB db = ObjectDB.getObjectDB();
        for (String s : request.getObjectKeys())
        {
          try {
            Object o = db.get(db.stringToKey(s));
            selection.add(o);
          }
          catch (ObjectStoreException ose)
          {
            // do nothing with bad selected value
          }
View Full Code Here

    m_lexer=new Lexer( parser);
    parser.setParserEnvironment( this);
    storedValues=new HashMap<String,TokenSequence>();
    storedValuesSupport=new PropertyChangeSupport(this);
    m_sequence_stack=new Stack<TokenSequence>();
    m_selection = new SelectionSetExpression();
  }
View Full Code Here

        if (slt.m_className != null)
        {
          Class<?> slc = Class.forName(slt.m_className);
          if (m_selection.getResultClass() == null || ! m_selection.getResultClass().isAssignableFrom(slc))
          {
            m_selection = new SelectionSetExpression(slc);
          }
        }
      }
    }
      restore_tokens.add( new Token( Parser._end_, ""));
View Full Code Here

            {
                String line=queryArea.getText();
                if ( line==null || line.length()==0)
                    return;
                qp.setLine( line);
                SelectionSetExpression querySelection = qp.getCurrentSelection();
                querySelection.clear();
                for (Object o : resultList.getSelectedValues())
                {
                  querySelection.add(o);
                }
                SetExpression se=qp.getExpression();
                historyList.addQuery( line);
                Enumeration<?> e=se.evaluate( container.getDataSource());
                ArrayList<Object> resultSorter = new ArrayList<Object>();
View Full Code Here

TOP

Related Classes of com.antlersoft.query.SelectionSetExpression

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.