congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
LastUsed
Code IndexAdd Tabnine to your IDE (free)

How to use
LastUsed
in
org.springframework.roo.converters

Best Java code snippets using org.springframework.roo.converters.LastUsed (Showing top 20 results out of 315)

origin: spring-projects/spring-roo

@CliOptionVisibilityIndicator(command = "field embedded", params = {"class"},
  help = "Option 'class' is not available "
    + "for this command when the focus is set to one class.")
public boolean isClassVisibleForFieldEmbedded(ShellContext shellContext) {
 if (lastUsed.getJavaType() == null) {
  return true;
 }
 return false;
}
origin: spring-projects/spring-roo

result = lastUsed.getModule();
if (result == null) {
 throw new IllegalStateException(
lastUsed.setTypeNotVerified(null, result);
origin: spring-projects/spring-roo

public JavaPackage convertFromText(String value, final Class<?> requiredType,
  final String optionContext) {
 if (StringUtils.isBlank(value)) {
  return null;
 }
 Pom module = projectOperations.getFocusedModule();
 if (value.contains(MODULE_PATH_SEPARATOR)) {
  final String moduleName = value.substring(0, value.indexOf(MODULE_PATH_SEPARATOR));
  module = projectOperations.getPomFromModuleName(moduleName);
  value = value.substring(value.indexOf(MODULE_PATH_SEPARATOR) + 1, value.length()).trim();
  if (StringUtils.contains(optionContext, UPDATE)) {
   projectOperations.setModule(module);
  }
 }
 String moduleName = module == null ? null : module.getModuleName();
 JavaPackage result =
   new JavaPackage(convertToFullyQualifiedPackageName(module, value), moduleName);
 if (optionContext != null
   && (optionContext.contains(UPDATE) || optionContext.contains(UPDATELAST))) {
  lastUsed.setPackage(result, module);
 }
 return result;
}
origin: spring-projects/spring-roo

final JavaType result = lastUsed.getJavaType();
if (result == null) {
 throw new IllegalStateException(
  (lastUsed.getJavaPackage() == null ? lastUsed.getTopLevelPackage()
    .getFullyQualifiedPackageName() : lastUsed.getJavaPackage()
    .getFullyQualifiedPackageName())
    + "." + newValue;
 lastUsed.setTypeNotVerified(null, module);
} else {
 lastUsed.setTypeNotVerified(result, module);
origin: spring-projects/spring-roo

private String locateNew(final String value, final String topLevelPath) {
 String newValue = value;
 if (value.startsWith(TOP_LEVEL_PACKAGE_SYMBOL)) {
  if (value.length() > 1) {
   newValue =
     (value.charAt(1) == '.' ? topLevelPath : topLevelPath + ".") + value.substring(1);
  } else {
   newValue = topLevelPath + ".";
  }
 }
 lastUsed.setTopLevelPackage(new JavaPackage(topLevelPath));
 return newValue;
}
origin: spring-projects/spring-roo

lastUsed.setTopLevelPackage(new JavaPackage(topLevelPath));
return newValue;
origin: spring-projects/spring-roo

@CliOptionVisibilityIndicator(command = "field enum", params = {"class"},
  help = "Option 'class' is not available "
    + "for this command when the focus is set to one class.")
public boolean isClassVisibleForFieldEnum(ShellContext shellContext) {
 if (lastUsed.getJavaType() == null) {
  return true;
 }
 return false;
}
origin: spring-projects/spring-roo

@CliOptionVisibilityIndicator(command = "field number", params = {"class"},
  help = "Option 'class' is not available "
    + "for this command when the focus is set to one class.")
public boolean isClassVisibleForFieldNumber(ShellContext shellContext) {
 if (lastUsed.getJavaType() == null) {
  return true;
 }
 return false;
}
origin: spring-projects/spring-roo

@CliOptionMandatoryIndicator(command = "field number", params = {"class"})
public boolean isClassMandatoryForFieldNumber() {
 if (lastUsed.getJavaType() == null) {
  return true;
 }
 return false;
}
origin: spring-projects/spring-roo

@CliOptionMandatoryIndicator(command = "field boolean", params = {"class"})
public boolean isClassMandatoryForFieldBoolean() {
 if (lastUsed.getJavaType() == null) {
  return true;
 }
 return false;
}
origin: spring-projects/spring-roo

@CliOptionMandatoryIndicator(command = "field date", params = {"class"})
public boolean isClassMandatoryForFieldDate() {
 if (lastUsed.getJavaType() == null) {
  return true;
 }
 return false;
}
origin: spring-projects/spring-roo

@CliOptionMandatoryIndicator(command = "field embedded", params = {"class"})
public boolean isClassMandatoryForFieldEmbedded() {
 if (lastUsed.getJavaType() == null) {
  return true;
 }
 return false;
}
origin: spring-projects/spring-roo

@CliOptionMandatoryIndicator(command = "field enum", params = {"class"})
public boolean isClassMandatoryForFieldEnum() {
 if (lastUsed.getJavaType() == null) {
  return true;
 }
 return false;
}
origin: spring-projects/spring-roo

@CliOptionVisibilityIndicator(command = "field set", params = {"class"},
  help = "Option 'class' is not available "
    + "for this command when the focus is set to one class.")
public boolean isClassVisibleForFieldSet(ShellContext shellContext) {
 if (lastUsed.getJavaType() == null) {
  return true;
 }
 return false;
}
origin: spring-projects/spring-roo

@CliOptionVisibilityIndicator(command = "field string", params = {"class"},
  help = "Option 'class' is not available "
    + "for this command when the focus is set to one class.")
public boolean isClassVisibleForFieldString(ShellContext shellContext) {
 if (lastUsed.getJavaType() == null) {
  return true;
 }
 return false;
}
origin: spring-projects/spring-roo

@CliOptionVisibilityIndicator(command = "field date", params = {"class"},
  help = "Option 'class' is not available "
    + "for this command when the focus is set to one class.")
public boolean isClassVisibleForFieldDate(ShellContext shellContext) {
 if (lastUsed.getJavaType() == null) {
  return true;
 }
 return false;
}
origin: spring-projects/spring-roo

@CliOptionVisibilityIndicator(command = "field list", params = {"class"},
  help = "Option 'class' is not available "
    + "for this command when the focus is set to one class.")
public boolean isClassVisibleForFieldList(ShellContext shellContext) {
 if (lastUsed.getJavaType() == null) {
  return true;
 }
 return false;
}
origin: spring-projects/spring-roo

@CliOptionMandatoryIndicator(command = "field list", params = {"class"})
public boolean isClassMandatoryForFieldList() {
 if (lastUsed.getJavaType() == null) {
  return true;
 }
 return false;
}
origin: spring-projects/spring-roo

@CliOptionVisibilityIndicator(command = "field boolean", params = {"class"},
  help = "Option 'class' is not available "
    + "for this command when the focus is set to one class.")
public boolean isClassVisibleForFieldBoolean(ShellContext shellContext) {
 if (lastUsed.getJavaType() == null) {
  return true;
 }
 return false;
}
origin: spring-projects/spring-roo

@CliOptionMandatoryIndicator(command = "field set", params = {"class"})
public boolean isClassMandatoryForFieldSet() {
 if (lastUsed.getJavaType() == null) {
  return true;
 }
 return false;
}
org.springframework.roo.convertersLastUsed

Javadoc

Interface for LastUsedImpl.

Most used methods

  • getJavaType
  • getJavaPackage
  • getModule
  • getTopLevelPackage
  • setPackage
    Sets the package, its module, and clears the type field. Ignores attempts to set to java.*.
  • setTopLevelPackage
  • setTypeNotVerified
    Sets the last used type and the module to which it belongs not verified

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now