Package net.sf.redmine_mylyn.api.query

Examples of net.sf.redmine_mylyn.api.query.CompareOperator


      QueryField definition = queryField instanceof CustomField ? ((CustomField) queryField)
          .getQueryField() : (QueryField) queryField;
     
      IStructuredSelection selection = (IStructuredSelection)opCombo.getSelection();
      if (selection.getFirstElement() instanceof CompareOperator) {
        CompareOperator operator = (CompareOperator)selection.getFirstElement();
       
        selection = (IStructuredSelection)viewer.getSelection();
        if (selection.isEmpty()) {
          query.addFilter(queryField, definition, operator, ""); //$NON-NLS-1$
        } else {
View Full Code Here


      Text text = entry.getValue();
      ComboViewer opCombo = operators.get(queryField);
     
      IStructuredSelection selection = (IStructuredSelection)opCombo.getSelection();
      if (selection.getFirstElement() instanceof CompareOperator) {
        CompareOperator operator = (CompareOperator)selection.getFirstElement();
        if (queryField instanceof CustomField) {
          CustomField customField = (CustomField)queryField;
          if(customField.getFieldFormat()==CustomField.Format.BOOL) {
            query.addFilter(customField, QueryField.BOOLEAN_TYPE, operator, IRedmineConstants.BOOLEAN_TRUE_SUBMIT_VALUE);
          } else {
View Full Code Here

   
    List<Tracker> availableTrackerList = project==null
      ? configuration.getTrackers().getAll()
      : configuration.getTrackers().getById(project.getTrackerIds());
     
    CompareOperator op = getSelectedOperator(QueryField.TRACKER);
    StructuredSelection selection = (StructuredSelection)queryStructuredViewer.get(QueryField.TRACKER).getSelection();

    //Find related Trackers - Negate Tracker-Selection if necessary
    List<Tracker> selTrackerList = null;
    if(op==null || op==CompareOperator.IS_NOT && selection.isEmpty()) {
View Full Code Here

TOP

Related Classes of net.sf.redmine_mylyn.api.query.CompareOperator

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.