Examples of find()


Examples of org.eclipse.jface.text.FindReplaceDocumentAdapter.find()

  }
 
  public IRegion getAttributeValueRegion(String attributeName) throws BadLocationException {
    FindReplaceDocumentAdapter findReplaceAdapter = new FindReplaceDocumentAdapter(_document);
   
    IRegion region = findReplaceAdapter.find(_documentRegion.getOffset(), attributeName + "=\"" + getAttributeValue(attributeName) + "\"", true, true, false, false);
    if (region != null) {
      String tmp = attributeName + "=\"";
      return new Region(region.getOffset() + tmp.length(), region.getLength() - tmp.length() - 1);
    } else {
      return null;
View Full Code Here

Examples of org.eclipse.persistence.jpa.rs.PersistenceContext.find()

        }
        Map<String, String> discriminators = getMatrixParameters(ui, persistenceUnit);

        Object id = IdHelper.buildId(app, type, key);

        Object entity = app.find(discriminators, type, id, getQueryParameters(ui));

        if (entity == null) {
            JPARSLogger.fine("jpars_could_not_entity_for_key", new Object[] { type, key, persistenceUnit });
            return Response.status(Status.NOT_FOUND).type(StreamingOutputMarshaller.getResponseMediaType(hh)).build();
        } else {
View Full Code Here

Examples of org.eclipse.php.internal.core.filenetwork.ReferenceTree.find()

              .buildReferencedFilesTree(sourceModule, monitor);
        }
        for (T element : elements) {
          if (LanguageModelInitializer
              .isLanguageModelElement(element)
              || referenceTree.find(((ModelElement) element)
                  .getSourceModule())) {
            filteredElements.add(element);
          }
        }
      }
View Full Code Here

Examples of org.eclipse.sapphire.ui.SourceEditorService.find()

       
        if( service != null )
        {
            try
            {
                return service.find( element, null );
            }
            catch( Exception e )
            {
                Sapphire.service( LoggingService.class ).log( e );
            }
View Full Code Here

Examples of org.eclipse.ui.internal.registry.ViewRegistry.find()

      filteredTree.getViewer().setExpandedElements(categoriesToExpand.toArray());
    }
       
        String selectedViewId = settings.get(STORE_SELECTED_VIEW_ID);
        if (selectedViewId != null) {
            IViewDescriptor viewDesc = reg.find(selectedViewId);
            if (viewDesc != null) {
                filteredTree.getViewer().setSelection(new StructuredSelection(viewDesc), true);
            }
        }
    }
View Full Code Here

Examples of org.eclipse.ui.views.IViewRegistry.find()

    IViewRegistry registry = PlatformUI.getWorkbench().getViewRegistry();
    String serversViewID = SERVERS_VIEW_ID;

    // fast check to verify that the servers View is available.
    IViewDescriptor serversViewDescriptor = registry.find(serversViewID);
    if (serversViewDescriptor != null) {

      // Granular null checks required as any of the workbench components
      // may not be available at some given point in time (e.g., during
      // start/shutdown)
View Full Code Here

Examples of org.ektorp.CouchDbConnector.find()

        final String databaseName = table.getName();
        final CouchDbConnector connector = _couchDbInstance.createConnector(databaseName, false);

        final String keyString = keyValue.toString();
        final JsonNode node = connector.find(JsonNode.class, keyString);
        if (node == null) {
            return null;
        }

        return CouchDbUtils.jsonNodeToMetaModelRow(node, new SimpleDataSetHeader(selectItems));
View Full Code Here

Examples of org.everestWeather.wsdm.samples.x2005.x04.schema.WeatherstationHome.find()

        {
            InitialContext initialContext = new InitialContext();
            WeatherstationHome home = (WeatherstationHome) initialContext.lookup(WeatherstationHome.HOME_LOCATION);
            SimpleTypeResourceKey simpleTypeResourceKey = new SimpleTypeResourceKey(new QName(WeatherstationPropertyQNames.FCCID.getNamespaceURI(), "ResourceID"),
                                                                                    InteropConstants.WEATHERSTATION_KEY1);
            WeatherstationResource resource = (WeatherstationResource) home.find(simpleTypeResourceKey);
            Topic topic = resource.getTopicSpaceSet().getTopicSpace(MowsConstants.NSURI_MOWS_TOPICS).getTopic("RequestProcessingObservations");
            Calendar currentTime = Calendar.getInstance();

            //RequestProcessingNotification
            RequestProcessingNotificationDocument notifDocument = RequestProcessingNotificationDocument.Factory.newInstance();
View Full Code Here

Examples of org.exist.indexing.range.RangeIndexConfig.find()

            }
            IndexSpec idxConf = collection.getIndexConfiguration(context.getBroker());
            if (idxConf != null) {
                RangeIndexConfig config = (RangeIndexConfig) idxConf.getCustomIndexSpec(RangeIndex.ID);
                if (config != null) {
                    RangeIndexConfigElement rice = config.find(path);
                    if (rice != null && !rice.isComplex()) {
                        return rice;
                    }
                }
            }
View Full Code Here

Examples of org.exist.storage.NativeValueIndex.find()

        Sequence result = Sequence.EMPTY_SEQUENCE;

        if (comparisonCriterium instanceof Indexable) {
            final NativeValueIndex valueIndex = context.getBroker().getValueIndex();
            result =
                valueIndex.find(context.getWatchDog(), Constants.EQ, contextSequence.getDocumentSet(), null, NodeSet.ANCESTOR,
            qname, comparisonCriterium);
        } else {
            final String message = "The comparison criterium must be an Indexable: " +
              "boolean, numeric, string; instead your criterium has type " +
              Type.getTypeName(comparisonCriterium.getType());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.