Examples of HintsLookup


Examples of org.jboss.forge.addon.ui.hints.HintsLookup

   }

   @Test
   public void testSimpleHintLookup() throws Exception
   {
      HintsLookup hints = new HintsLookup(environment);
      String type = hints.getInputType(JavaResource.class);
      Assert.assertNotNull(type);
      Assert.assertEquals(InputType.JAVA_CLASS_PICKER, type);
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.hints.HintsLookup

      if (environment == null)
      {
         throw new IllegalStateException("Environment must not be null.");
      }

      this.hintsLookup = new HintsLookup(environment);
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.hints.HintsLookup

   }

   @Test
   public void testSimpleHintLookup() throws Exception
   {
      HintsLookup hints = new HintsLookup(environment);
      String type = hints.getInputType(FileResource.class);
      Assert.assertNotNull(type);
      Assert.assertEquals(InputType.FILE_PICKER, type);
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.hints.HintsLookup

   public void initialize(@Observes PostStartup event)
   {
      try
      {
         HintsLookup hints = new HintsLookup(environment);
         hints.setInputType(JavaResource.class, InputType.JAVA_CLASS_PICKER);
      }
      catch (Throwable e)
      {
         log.log(Level.FINE,
                  "Could not register parser-java InputType hints. Resources addon is probably not loaded yet.", e);
View Full Code Here

Examples of org.jboss.forge.addon.ui.hints.HintsLookup

      if (environment == null)
      {
         throw new IllegalStateException("Environment must not be null.");
      }

      this.hintsLookup = new HintsLookup(environment);
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.hints.HintsLookup

      this.environment = environment;
   }

   public void initialize(@Observes PostStartup event)
   {
      HintsLookup hints = new HintsLookup(environment);
      hints.setInputType(FileResource.class, InputType.FILE_PICKER);
      hints.setInputType(DirectoryResource.class, InputType.FILE_PICKER);
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.hints.HintsLookup

      this.environment = environment;
   }

   public void initialize(@Observes PostStartup event)
   {
      HintsLookup hints = new HintsLookup(environment);
      hints.setInputType(JavaResource.class, InputType.JAVA_CLASS_PICKER);
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.hints.HintsLookup

   public void initialize(@Observes PostStartup event)
   {
      try
      {
         HintsLookup hints = new HintsLookup(environment);
         hints.setInputType(FileResource.class, InputType.FILE_PICKER);
         hints.setInputType(DirectoryResource.class, InputType.DIRECTORY_PICKER);
      }
      catch (Throwable e)
      {
         log.log(Level.FINE,
                  "Could not register resources InputType hints. Resources addon is probably not loaded yet.", e);
View Full Code Here

Examples of org.jboss.forge.ui.hints.HintsLookup

      this.environment = environment;
   }

   public void initialize(@Observes PostStartup event)
   {
      HintsLookup hints = new HintsLookup(environment);
      hints.setInputType(FileResource.class, InputTypes.FILE_PICKER);
      hints.setInputType(DirectoryResource.class, InputTypes.FILE_PICKER);
   }
View Full Code Here

Examples of org.jboss.forge.ui.hints.HintsLookup

      this.environment = environment;
   }

   public void initialize(@Observes PostStartup event)
   {
      HintsLookup hints = new HintsLookup(environment);
      hints.setInputType(JavaResource.class, InputTypes.JAVA_CLASS_PICKER);
   }
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.