Examples of Lookup


Examples of br.gov.frameworkdemoiselle.mail.internal.Lookup

        break;
      case PROVIDED:
        String mailLookupClass = config.getMailLookupClass();
        String jndi;
        if (mailLookupClass != null) {
          Lookup lookup;
          try {
            lookup = (Lookup) Class.forName(mailLookupClass).newInstance();
          } catch (Exception e) {
            throw new MailException("Error in mail lookup class configuration: " + mailLookupClass, e);
          }
          jndi = lookup.getMailName();
        } else {
          jndi = Lookup.DEFAULT_MAIL_NAME;
        }

        try {

Examples of com.cedarsoft.lookup.Lookup

   * @param struct the struct
   * @return the presentation that has been created
   */
  @NotNull
  public T present( @NotNull StructPart struct ) {
    Lookup lookup = struct.getLookup();
    T presentation = createPresentation();

    //Only hold the presentation as weak reference
    final WeakReference<T> weakPresentationReference = new WeakReference<T>( presentation );

Examples of com.github.axet.starjeweled.core.Lookup

        // desktopImage =
        // capture.load("/Users/axet/Desktop//Screen Shot 2011-08-19 at 18.55.22.png");
        desktopImage = capture.capture();
        frame.capture.setImage(desktopImage);

        Lookup lookup = new Lookup();
        BufferedImage i = lookup.filterMask(desktopImage);
        frame.mask.setImage(i);
        BufferedImage i2 = lookup.filterNoise(i);
        frame.noise.setImage(i2);
        rectangle = lookup.getBounds(i2);
        BufferedImage i3 = lookup.crop(i2, rectangle);
        frame.bounds.setImage(i3);

        Recognition rr = new Recognition(desktopImage, rectangle);
        colorTable = new BoardColorsTable(rr.matrix);

Examples of com.intellij.codeInsight.lookup.Lookup

        EmptyAction.setupAction(this, actionId, null);
    }

    public void update(AnActionEvent e) {
        EditorEx editor = console.getConsoleEditor();
        Lookup lookup = LookupManager.getActiveLookup(editor);
        e.getPresentation().setEnabled(!processHandler.isProcessTerminated() &&
            (lookup == null || !lookup.isCompletion()));
    }

Examples of com.jpetrak.gate.stringannotation.extendedgazetteer2.Lookup

    System.out.println("State after s: "+s2);
    System.out.println("isFinal: "+s2.isFinal());
    Iterator<Lookup> lookupIter = gs.getLookups(s2);
    System.out.println("Have lookups: "+lookupIter.hasNext());
    while(lookupIter.hasNext()) {
      Lookup l = lookupIter.next();
      System.out.println("Have a lookup"+l);
    }
    File someFile = new File("tmp.gazbin");
    try {
      gs.save(someFile);
    } catch (FileNotFoundException e) {
      e.printStackTrace();
      assertTrue("could not save trie", false);
      return;
    }
    GazStoreTrie3 gs2 = new GazStoreTrie3();
    try {
      gs2 = (GazStoreTrie3)gs2.load(someFile);
    } catch (FileNotFoundException e) {
      e.printStackTrace();
      assertTrue("could not load trie",false);
      return;
    }
    State init_2 = gs2.getInitialState();
    System.out.println("Initial State: "+init_2);
    State s1_2 = init_2.next('a');
    System.out.println("State after a: "+s1_2);
    System.out.println("isFinal: "+s1_2.isFinal());
    State s2_2 = s1_2.next('s');
    System.out.println("State after s: "+s2_2);
    System.out.println("isFinal: "+s2_2.isFinal());
    Iterator<Lookup> lookupIter_2 = gs2.getLookups(s2_2);
    System.out.println("Have lookups: "+lookupIter_2.hasNext());
    while(lookupIter_2.hasNext()) {
      Lookup l = lookupIter_2.next();
      System.out.println("Have a lookup"+l);
    }
   
    System.out.println("************* end ********************");
 

Examples of java.lang.invoke.MethodHandles.Lookup

     * It will make an up-call to this method.  (Do not change the name or signature.)
     */
    static MethodHandle linkMethodHandleConstant(Class<?> callerClass, int refKind,
                                                 Class<?> defc, String name, Object type) {
        try {
            Lookup lookup = IMPL_LOOKUP.in(callerClass);
            return lookup.linkMethodHandleConstant(refKind, defc, name, type);
        } catch (ReflectiveOperationException ex) {
            Error err = new IncompatibleClassChangeError();
            err.initCause(ex);
            throw err;
        }

Examples of javango.contrib.jquery.annotations.Lookup

  @Override
  public void handleAnnotation(Annotation annotation) {
    super.handleAnnotation(annotation);
   
    if (annotation instanceof Lookup) {
      Lookup lookup = (Lookup)annotation;
      model = lookup.model();
      display = lookup.display();
      search = lookup.search();     
      results = lookup.results();
    }
  }

Examples of nexj.core.util.Lookup

    * @return A map (String[String]) from Java class name to its scripting type
    *         alias.
    */
   protected Lookup findTypeAliases(List classDocList)
   {
      Lookup typeAliasMap = new HashTab();

      for (Iterator iterator = classDocList.iterator(); iterator.hasNext();)
      {
         ClassDoc classDoc = (ClassDoc)iterator.next();

         if (classDoc.tags(TYPE_ALIAS_TAG).length == 1)
         {
            typeAliasMap.put(classDoc.name(), classDoc.tags(TYPE_ALIAS_TAG)[0].text());
         }
      }

      return typeAliasMap;
   }

Examples of org.apache.commons.configuration.interpol.Lookup

                defConfig.configurationsAt(KEY_CONFIGURATION_LOOKUPS);
        for (HierarchicalConfiguration<?> config : nodes)
        {
            XMLBeanDeclaration decl = new XMLBeanDeclaration(config);
            String key = config.getString(KEY_LOOKUP_KEY);
            Lookup lookup = (Lookup) fetchBeanHelper().createBean(decl);
            lookups.put(key, lookup);
        }

        if (!lookups.isEmpty())
        {

Examples of org.apache.commons.configuration2.interpol.Lookup

        parent.addProperty("tablespaces.tablespace.name", "default");
        parent.addProperty("tablespaces.tablespace(-1).name", "test");
        parent.addProperty("tables.table(0).var", "${brackets:x}");

        ConfigurationInterpolator interpolator = parent.getInterpolator();
        interpolator.registerLookup("brackets", new Lookup() {

            public String lookup(String key) {
                return "(" + key + ")";
            }
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.