Codota Logo
IType.getFullyQualifiedParameterizedName
Code IndexAdd Codota to your IDE (free)

How to use
getFullyQualifiedParameterizedName
method
in
org.eclipse.jdt.core.IType

Best Java code snippets using org.eclipse.jdt.core.IType.getFullyQualifiedParameterizedName (Showing top 8 results out of 315)

  • Common ways to obtain IType
private void myMethod () {
IType i =
  • Codota IconIMethod method;method.getDeclaringType()
  • Codota IconIJavaProject javaProject;String fullyQualifiedName;javaProject.findType(fullyQualifiedName)
  • Codota IconIMember member;member.getDeclaringType()
  • Smart code suggestions by Codota
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

public IType findType(String builderClassName) throws JavaModelException {
  if (fLastValidBuilderType != null && builderClassName.equals(fLastValidBuilderType.getFullyQualifiedParameterizedName())) {
    return fLastValidBuilderType;
  }
  return fJavaProject.findType(builderClassName, (IProgressMonitor)null);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

public IType findType(String builderClassName) throws JavaModelException {
  if (fLastValidBuilderType != null && builderClassName.equals(fLastValidBuilderType.getFullyQualifiedParameterizedName())) {
    return fLastValidBuilderType;
  }
  return fJavaProject.findType(builderClassName, (IProgressMonitor)null);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

private String createDummyType(String name) throws JavaModelException {
  StringBuffer buffer= new StringBuffer();
  buffer.append("abstract class "); //$NON-NLS-1$
  buffer.append(name);
  if (fSuperType.isInterface())
    buffer.append(" implements "); //$NON-NLS-1$
  else
    buffer.append(" extends "); //$NON-NLS-1$
  if (fDeclarationSignature != null)
    buffer.append(Signature.toString(fDeclarationSignature));
  else
    buffer.append(fSuperType.getFullyQualifiedParameterizedName());
  buffer.append(" {"); //$NON-NLS-1$
  buffer.append("\n"); // Using newline is ok since source is used in dummy compilation unit //$NON-NLS-1$
  buffer.append("}"); //$NON-NLS-1$
  return buffer.toString();
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

private String createDummyType(String name) throws JavaModelException {
  StringBuilder buffer= new StringBuilder();
  buffer.append("abstract class "); //$NON-NLS-1$
  buffer.append(name);
  if (fSuperType.isInterface())
    buffer.append(" implements "); //$NON-NLS-1$
  else
    buffer.append(" extends "); //$NON-NLS-1$
  if (fDeclarationSignature != null)
    buffer.append(Signature.toString(fDeclarationSignature));
  else
    buffer.append(fSuperType.getFullyQualifiedParameterizedName());
  buffer.append(" {"); //$NON-NLS-1$
  buffer.append("\n"); // Using newline is ok since source is used in dummy compilation unit //$NON-NLS-1$
  buffer.append("}"); //$NON-NLS-1$
  return buffer.toString();
}
origin: eclipse/eclipse.jdt.ls

private String createDummyType(String name) throws JavaModelException {
  StringBuffer buffer = new StringBuffer();
  buffer.append("abstract class "); //$NON-NLS-1$
  buffer.append(name);
  if (fSuperType.isInterface()) {
    buffer.append(" implements "); //$NON-NLS-1$
  } else {
    buffer.append(" extends "); //$NON-NLS-1$
  }
  if (fDeclarationSignature != null) {
    buffer.append(Signature.toString(fDeclarationSignature));
  } else {
    buffer.append(fSuperType.getFullyQualifiedParameterizedName());
  }
  buffer.append(" {"); //$NON-NLS-1$
  buffer.append("\n"); //$NON-NLS-1$
  buffer.append("}"); //$NON-NLS-1$
  return buffer.toString();
}
origin: org.eclipse/org.eclipse.jdt.ui

private int createDummy(String name, StringBuffer buffer) throws JavaModelException {
  String lineDelim= "\n"; // Using newline is ok since source is used in dummy compilation unit //$NON-NLS-1$
  buffer.append("class "); //$NON-NLS-1$
  buffer.append(name);
  if (fSuperType.isInterface())
    buffer.append(" implements "); //$NON-NLS-1$
  else
    buffer.append(" extends "); //$NON-NLS-1$
  if (fDeclarationSignature != null)
    buffer.append(Signature.toString(fDeclarationSignature));
  else
    buffer.append(fSuperType.getFullyQualifiedParameterizedName());
  int start= buffer.length();
  buffer.append("{"); //$NON-NLS-1$
  buffer.append(lineDelim);
  buffer.append(lineDelim);
  buffer.append("}"); //$NON-NLS-1$
  return start;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

  private void browseForBuilderClass() {
    try {
      IJavaSearchScope scope= SearchEngine.createJavaSearchScope(new IJavaElement[] { getType().getJavaProject() });
      SelectionDialog dialog= JavaUI.createTypeDialog(getShell(), PlatformUI.getWorkbench().getProgressService(), scope,
          IJavaElementSearchConstants.CONSIDER_CLASSES, false, "*ToString", fExtension); //$NON-NLS-1$
      dialog.setTitle(JavaUIMessages.GenerateToStringDialog_customBuilderConfig_classSelection_windowTitle);
      dialog.setMessage(JavaUIMessages.GenerateToStringDialog_customBuilderConfig_classSelection_message);
      dialog.open();
      if (dialog.getReturnCode() == OK) {
        IType type= (IType)dialog.getResult()[0];
        fBuilderClassName.setText(type.getFullyQualifiedParameterizedName());
        List<String> suggestions= fValidator.getAppendMethodSuggestions(type);
        if (!suggestions.contains(fAppendMethodName.getText()))
          fAppendMethodName.setText(suggestions.get(0));
        suggestions= fValidator.getResultMethodSuggestions(type);
        if (!suggestions.contains(fResultMethodName.getText()))
          fResultMethodName.setText(suggestions.get(0));
      }
    } catch (JavaModelException e) {
      JavaPlugin.log(e);
    }
  }
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

  private void browseForBuilderClass() {
    try {
      IJavaSearchScope scope= SearchEngine.createJavaSearchScope(new IJavaElement[] { getType().getJavaProject() });
      SelectionDialog dialog= JavaUI.createTypeDialog(getShell(), PlatformUI.getWorkbench().getProgressService(), scope,
          IJavaElementSearchConstants.CONSIDER_CLASSES, false, "*ToString", fExtension); //$NON-NLS-1$
      dialog.setTitle(JavaUIMessages.GenerateToStringDialog_customBuilderConfig_classSelection_windowTitle);
      dialog.setMessage(JavaUIMessages.GenerateToStringDialog_customBuilderConfig_classSelection_message);
      dialog.open();
      if (dialog.getReturnCode() == OK) {
        IType type= (IType)dialog.getResult()[0];
        fBuilderClassName.setText(type.getFullyQualifiedParameterizedName());
        List<String> suggestions= fValidator.getAppendMethodSuggestions(type);
        if (!suggestions.contains(fAppendMethodName.getText()))
          fAppendMethodName.setText(suggestions.get(0));
        suggestions= fValidator.getResultMethodSuggestions(type);
        if (!suggestions.contains(fResultMethodName.getText()))
          fResultMethodName.setText(suggestions.get(0));
      }
    } catch (JavaModelException e) {
      JavaPlugin.log(e);
    }
  }
}
org.eclipse.jdt.coreITypegetFullyQualifiedParameterizedName

Javadoc

Returns this type's fully qualified name using a '.' enclosing type separator followed by its type parameters between angle brackets if it is a generic type. For example, "p.X<T>", "java.util.Map<java.lang.String, p.X>"

Popular methods of IType

  • getFullyQualifiedName
    Returns the fully qualified name of this type, including qualification for any containing types and
  • getElementName
    Returns the simple name of this type, unqualified by package or enclosing type. This is a handle-onl
  • getMethods
    Returns the methods and constructors declared by this type. For binary types, this may include the s
  • getFlags
  • getPackageFragment
    Returns the package fragment in which this element is defined. This is a handle-only method.
  • getCompilationUnit
  • newSupertypeHierarchy
    Creates and returns a type hierarchy for this type containing this type and all of its supertypes, c
  • exists
  • getJavaProject
  • isInterface
    Returns whether this type represents an interface. Note that an interface can also be an annotation
  • getDeclaringType
  • getMethod
    Returns the method with the specified name and parameter types in this type (for example, "foo", {"I
  • getDeclaringType,
  • getMethod,
  • getParent,
  • isClass,
  • getSourceRange,
  • newTypeHierarchy,
  • isAnonymous,
  • isBinary,
  • getResource,
  • getTypeParameters

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • requestLocationUpdates (LocationManager)
  • getSharedPreferences (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now