Package org.jboss.forge.addon.ui.hints

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


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

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

   }

   @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

   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

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

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

      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

      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

   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

TOP

Related Classes of org.jboss.forge.addon.ui.hints.HintsLookup

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.