Examples of indexOf()


Examples of org.apache.yoko.rmi.util.ByteString.indexOf()

                //
                // reverse order of dot-separated name components up
                // till the first slash.
                //
                int firstSlash = s.indexOf('/');
                if (firstSlash > 0) {
                    ByteString prefix = s.substring(0, firstSlash);
                    ByteString[] elems = prefix.split('.');

                    for (int i = elems.length - 1; i >= 0; i--) {
View Full Code Here

Examples of org.custommonkey.xmlunit.util.IntegerBuffer.indexOf()

                    } else {
                        // comment or doctype
                        IntegerBuffer b =
                            new IntegerBuffer(elementOrDeclOr.length);
                        b.append(elementOrDeclOr);
                        if (b.indexOf(DOCTYPE_INTS) == -1) {
                            after.append('<');
                            after.append(elementOrDeclOr);
                        } else {
                            // swallow old declaration
                            stillNeedToSeeDoctype = false;
View Full Code Here

Examples of org.dom4j.Element.indexOf()

    int j = 0;

    for (Iterator responses = el_labels.iterator(); responses.hasNext();) {
      Element response = (Element) responses.next();
      Element parent = response.getParent();
      int pos = parent.indexOf(response);
      posList[j++] = pos;
      respList.add(response.clone()); // need to use clones so they are not
      // attached anymore
      parentList.add(parent);
    }
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.indexOf()

            match = entries[jj];
            results.add(entries[jj]);
            break;

          // different version match
          }else if(path.indexOf(pattern) != -1){
            break;
          }
        }else if(entries[jj].getEntryKind() == IClasspathEntry.CPE_PROJECT){
          String path = entries[jj].getPath().toOSString();
          if(path.endsWith(dependencies[ii].getName())){
View Full Code Here

Examples of org.eclipse.core.runtime.Path.indexOf()

      }
    }
    else if (resource instanceof UrlResource) {
      URL url = resource.getURL();
      String path = url.getPath();
      int ix = path.indexOf('!');
      if (ix > 0) {
        String entryName = path.substring(ix + 1);
        path = path.substring(0, ix);

        try {
View Full Code Here

Examples of org.eclipse.emf.ecore.util.InternalEList.indexOf()

              }
              else
              {
                if (isBidirectional)
                {
                  int position = target.indexOf(copyReferencedEObject);
                  if (position == -1)
                  {
                    target.addUnique(index, copyReferencedEObject);
                  }
                  else if (index != position)
View Full Code Here

Examples of org.eclipse.nebula.widgets.gallery.Gallery.indexOf()

      public void handleEvent(Event event) {
        final GalleryItem item = (GalleryItem) event.item;
        final GalleryItem parentItem = item.getParentItem();
        if (parentItem == null) {
          final int index = gallery.indexOf(item);
          final ItemGroup itemGroup = (ItemGroup) images.get(index);
          item.setText(itemGroup.getName());
          item.setData(itemGroup);
          item.setItemCount(itemGroup.getChildCount());
        } else {
View Full Code Here

Examples of org.eclipse.nebula.widgets.gallery.GalleryItem.indexOf()

          final ItemGroup itemGroup = (ItemGroup) images.get(index);
          item.setText(itemGroup.getName());
          item.setData(itemGroup);
          item.setItemCount(itemGroup.getChildCount());
        } else {
          final int indexOf = parentItem.indexOf(item);
          final ItemGroup ga = (ItemGroup) parentItem.getData();
          item.setItemCount(0);
          final IImageEntry image = ga.getImage(indexOf);
          try {
            item.setImage(image.getImage());
View Full Code Here

Examples of org.eclipse.persistence.sdo.helper.ListWrapper.indexOf()

        Property prop = getProperty(setting);
        if (prop != null && prop.isMany()) {
            ListWrapper lw = (ListWrapper) dataObject.getList(prop);
            Object value = getValue(setting);
            int currentIndexInLw = lw.indexOf(value);
            lw.remove(currentIndexInLw, false);
            int newIndexInLw = getIndexInList(prop, value);
            lw.add(newIndexInLw, value, false);
        }
    }
View Full Code Here

Examples of org.eclipse.swt.custom.CCombo.indexOf()

                combo.add(key);
              }
            }
           
            // Select the previously selected item from the cell
            combo.select(combo.indexOf(item.getText(column)));

            // Compute the width for the editor
            // Also, compute the column width, so that the dropdown fits
            editor.minimumWidth = combo.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;
            if (incrementTable.getColumn(column).getWidth() < editor.minimumWidth)
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.