Examples of InputType


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

      // FIXME This should use the Resource API to allow completion of virtual resources.
      final File cwd = selection.isEmpty() ? OperatingSystemUtils.getUserHomeDir() : selection.get()
               .getUnderlyingResourceObject();

      InputType inputType = component.getFacet(HintsFacet.class).getInputType();
      OptionCompleter strategy = null;
      if (inputType == InputType.FILE_PICKER && cwd.isDirectory())
      {
         strategy = new FileOptionCompleter(cwd);
      }
View Full Code Here

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

   /**
    * @return the {@link InputType} object associated to this {@link InputComponent}
    */
   public static InputType getInputType(InputComponent<?, ?> input)
   {
      InputType result = InputType.DEFAULT;
      for (Facet f : input.getFacets())
      {
         if (HintsFacet.class.isInstance(f))
         {
            result = ((HintsFacet) f).getInputType();
View Full Code Here

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

            ConverterFactory converterFactory)
   {
      UISelection<FileResource<?>> selection = context.getInitialSelection();
      final File cwd = selection.isEmpty() ? OperatingSystemUtils.getUserHomeDir() : selection.get()
               .getUnderlyingResourceObject();
      InputType inputType = component.getFacet(HintsFacet.class).getInputType();
      OptionCompleter strategy = null;
      if (inputType == InputType.FILE_PICKER && cwd.isDirectory())
      {
         strategy = new FileOptionCompleter(cwd);
      }
View Full Code Here

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

*/
public class CompletionStrategyFactory
{
   public static CompletionStrategy getCompletionFor(InputComponent<?, Object> component)
   {
      InputType inputType = component.getFacet(HintsFacet.class).getInputType();
      CompletionStrategy strategy = null;
      if (inputType == InputType.FILE_PICKER)
      {
         strategy = new FileInputCompletionStrategy(false);
      }
View Full Code Here

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

   /**
    * @return the {@link InputType} object associated to this {@link InputComponent}
    */
   public static InputType getInputType(InputComponent<?, ?> input)
   {
      InputType result = InputType.DEFAULT;
      for (Facet f : input.getFacets())
      {
         if (HintsFacet.class.isInstance(f))
         {
            result = ((HintsFacet) f).getInputType();
View Full Code Here

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

      // FIXME This should use the Resource API to allow completion of virtual resources.
      final File cwd = selection.isEmpty() ? OperatingSystemUtils.getUserHomeDir() : selection.get()
               .getUnderlyingResourceObject();

      InputType inputType = component.getFacet(HintsFacet.class).getInputType();
      OptionCompleter<CompleterInvocation> strategy = null;
      if (inputType == InputType.FILE_PICKER && cwd.isDirectory())
      {
         strategy = new FileOptionCompleter(Filter.ALL);
      }
View Full Code Here

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

   /**
    * @return the {@link InputType} object associated to this {@link InputComponent}
    */
   public static InputType getInputType(InputComponent<?, ?> input)
   {
      InputType result = InputType.DEFAULT;
      for (Facet f : input.getFacets())
      {
         if (HintsFacet.class.isInstance(f))
         {
            result = ((HintsFacet) f).getInputType();
View Full Code Here

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

   /**
    * @return the {@link InputType} object associated to this {@link InputComponent}
    */
   public static InputType getInputType(InputComponent<?, ?> input)
   {
      InputType result = null;
      if (input.hasFacet(HintsFacet.class))
      {
         HintsFacet facet = input.getFacet(HintsFacet.class);
         result = facet.getInputType();
      }
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.