本文整理了Java中org.eclipse.jdt.internal.core.util.Util.getTrimmedSimpleNames()
方法的一些代码示例,展示了Util.getTrimmedSimpleNames()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.getTrimmedSimpleNames()
方法的具体详情如下:
包路径:org.eclipse.jdt.internal.core.util.Util
类名称:Util
方法名:getTrimmedSimpleNames
[英]Returns a trimmed version the simples names returned by Signature.
[中]返回由签名返回的简化名称的精简版本。
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
/**
* When executed, this operation will create a package fragment with the given name
* under the given package fragment root. The dot-separated name is broken into
* segments. Intermediate folders are created as required for each segment.
* If the folders already exist, this operation has no effect.
*/
public CreatePackageFragmentOperation(IPackageFragmentRoot parentElement, String packageName, boolean force) {
super(null, new IJavaElement[]{parentElement}, force);
this.pkgName = packageName == null ? null : Util.getTrimmedSimpleNames(packageName);
}
/**
代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core
/**
* When executed, this operation will create a package fragment with the given name
* under the given package fragment root. The dot-separated name is broken into
* segments. Intermediate folders are created as required for each segment.
* If the folders already exist, this operation has no effect.
*/
public CreatePackageFragmentOperation(IPackageFragmentRoot parentElement, String packageName, boolean force) {
super(null, new IJavaElement[]{parentElement}, force);
this.pkgName = packageName == null ? null : Util.getTrimmedSimpleNames(packageName);
}
/**
代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion
/**
* When executed, this operation will create a package fragment with the given name
* under the given package fragment root. The dot-separated name is broken into
* segments. Intermediate folders are created as required for each segment.
* If the folders already exist, this operation has no effect.
*/
public CreatePackageFragmentOperation(IPackageFragmentRoot parentElement, String packageName, boolean force) {
super(null, new IJavaElement[]{parentElement}, force);
this.pkgName = packageName == null ? null : Util.getTrimmedSimpleNames(packageName);
}
/**
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
/**
* When executed, this operation will create a package fragment with the given name
* under the given package fragment root. The dot-separated name is broken into
* segments. Intermediate folders are created as required for each segment.
* If the folders already exist, this operation has no effect.
*/
public CreatePackageFragmentOperation(IPackageFragmentRoot parentElement, String packageName, boolean force) {
super(null, new IJavaElement[]{parentElement}, force);
this.pkgName = packageName == null ? null : Util.getTrimmedSimpleNames(packageName);
}
/**
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
/**
* When executed, this operation will create a package fragment with the given name
* under the given package fragment root. The dot-separated name is broken into
* segments. Intermediate folders are created as required for each segment.
* If the folders already exist, this operation has no effect.
*/
public CreatePackageFragmentOperation(IPackageFragmentRoot parentElement, String packageName, boolean force) {
super(null, new IJavaElement[]{parentElement}, force);
this.pkgName = packageName == null ? null : Util.getTrimmedSimpleNames(packageName);
}
/**
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core
/**
* When executed, this operation will create a package fragment with the given name
* under the given package fragment root. The dot-separated name is broken into
* segments. Intermediate folders are created as required for each segment.
* If the folders already exist, this operation has no effect.
*/
public CreatePackageFragmentOperation(IPackageFragmentRoot parentElement, String packageName, boolean force) {
super(null, new IJavaElement[]{parentElement}, force);
this.pkgName = packageName == null ? null : Util.getTrimmedSimpleNames(packageName);
}
/**
代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion
/**
* @see IPackageFragmentRoot
*/
public IPackageFragment getPackageFragment(String packageName) {
// tolerate package names with spaces (e.g. 'x . y') (http://bugs.eclipse.org/bugs/show_bug.cgi?id=21957)
String[] pkgName = Util.getTrimmedSimpleNames(packageName);
return getPackageFragment(pkgName);
}
public PackageFragment getPackageFragment(String[] pkgName) {
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
/**
* @see IPackageFragmentRoot
*/
@Override
public IPackageFragment getPackageFragment(String packageName) {
// tolerate package names with spaces (e.g. 'x . y') (http://bugs.eclipse.org/bugs/show_bug.cgi?id=21957)
String[] pkgName = Util.getTrimmedSimpleNames(packageName);
return getPackageFragment(pkgName);
}
public PackageFragment getPackageFragment(String[] pkgName) {
代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core
/**
* @see IPackageFragmentRoot
*/
public IPackageFragment getPackageFragment(String packageName) {
// tolerate package names with spaces (e.g. 'x . y') (http://bugs.eclipse.org/bugs/show_bug.cgi?id=21957)
String[] pkgName = Util.getTrimmedSimpleNames(packageName);
return getPackageFragment(pkgName);
}
public PackageFragment getPackageFragment(String[] pkgName) {
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
/**
* @see IPackageFragmentRoot
*/
public IPackageFragment getPackageFragment(String packageName) {
// tolerate package names with spaces (e.g. 'x . y') (http://bugs.eclipse.org/bugs/show_bug.cgi?id=21957)
String[] pkgName = Util.getTrimmedSimpleNames(packageName);
return getPackageFragment(pkgName);
}
public PackageFragment getPackageFragment(String[] pkgName) {
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
/**
* @see IPackageFragmentRoot
*/
public IPackageFragment getPackageFragment(String packageName) {
// tolerate package names with spaces (e.g. 'x . y') (http://bugs.eclipse.org/bugs/show_bug.cgi?id=21957)
String[] pkgName = Util.getTrimmedSimpleNames(packageName);
return getPackageFragment(pkgName);
}
public PackageFragment getPackageFragment(String[] pkgName) {
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core
/**
* @see IPackageFragmentRoot
*/
public IPackageFragment getPackageFragment(String packageName) {
// tolerate package names with spaces (e.g. 'x . y') (http://bugs.eclipse.org/bugs/show_bug.cgi?id=21957)
String[] pkgName = Util.getTrimmedSimpleNames(packageName);
return getPackageFragment(pkgName);
}
public PackageFragment getPackageFragment(String[] pkgName) {
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
String[] newFragName = (newName == null) ? source.names : Util.getTrimmedSimpleNames(newName);
PackageFragment newFrag = root.getPackageFragment(newFragName);
IResource[] resources = collectResourcesOfInterest(source);
代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion
String[] newFragName = (newName == null) ? source.names : Util.getTrimmedSimpleNames(newName);
PackageFragment newFrag = root.getPackageFragment(newFragName);
IResource[] resources = collectResourcesOfInterest(source);
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
String[] newFragName = (newName == null) ? source.names : Util.getTrimmedSimpleNames(newName);
PackageFragment newFrag = root.getPackageFragment(newFragName);
IResource[] resources = collectResourcesOfInterest(source);
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
String[] newFragName = (newName == null) ? source.names : Util.getTrimmedSimpleNames(newName);
PackageFragment newFrag = root.getPackageFragment(newFragName);
IResource[] resources = collectResourcesOfInterest(source);
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core
String[] newFragName = (newName == null) ? source.names : Util.getTrimmedSimpleNames(newName);
PackageFragment newFrag = root.getPackageFragment(newFragName);
IResource[] resources = collectResourcesOfInterest(source);
代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core
String[] newFragName = (newName == null) ? source.names : Util.getTrimmedSimpleNames(newName);
PackageFragment newFrag = root.getPackageFragment(newFragName);
IResource[] resources = collectResourcesOfInterest(source);
内容来源于网络,如有侵权,请联系作者删除!