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

  • Start an intent from android
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • 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