Java Code Examples for org.eclipse.xtext.util.Strings#EMPTY_ARRAY

The following examples show how to use org.eclipse.xtext.util.Strings#EMPTY_ARRAY . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GeneratorFragment.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public String[] getRequiredBundlesRt(Grammar grammar) {
	if (isGenerateStub(grammar))
		return new String[] {
				"org.eclipse.xtext.xbase.lib"
		};
	return Strings.EMPTY_ARRAY;
}
 
Example 2
Source File: QualifiedName.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
protected QualifiedName(String... segments) {
	if (segments == null || segments.length == 0)
		this.segments = Strings.EMPTY_ARRAY;
	else
		this.segments = segments;
	hash = Arrays.hashCode(this.segments);
}
 
Example 3
Source File: DetachableEObjectDescription.java    From dsl-devkit with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public String[] getUserDataKeys() {
  if (userData == null) {
    return Strings.EMPTY_ARRAY;
  }
  return userData.keySet().toArray(new String[userData.size()]);
}
 
Example 4
Source File: ScopeProviderAccess.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public String[] getUserDataKeys() {
	return Strings.EMPTY_ARRAY;
}
 
Example 5
Source File: GeneratorFragment.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public String[] getImportedPackagesRt(Grammar grammar) {
	return Strings.EMPTY_ARRAY;
}
 
Example 6
Source File: LoggingGeneratorFragment.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public String[] getExportedPackagesRt(Grammar grammar) {
	return Strings.EMPTY_ARRAY;
}
 
Example 7
Source File: LoggingGeneratorFragment.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public String[] getExportedPackagesUi(Grammar grammar) {
	return Strings.EMPTY_ARRAY;
}
 
Example 8
Source File: LoggingGeneratorFragment.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public String[] getRequiredBundlesRt(Grammar grammar) {
	return Strings.EMPTY_ARRAY;
}
 
Example 9
Source File: LoggingGeneratorFragment.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public String[] getRequiredBundlesUi(Grammar grammar) {
	return Strings.EMPTY_ARRAY;
}
 
Example 10
Source File: TypeResourceDescription.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public String[] getUserDataKeys() {
	return Strings.EMPTY_ARRAY;
}
 
Example 11
Source File: NameBasedEObjectDescription.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public String[] getUserDataKeys() {
	return Strings.EMPTY_ARRAY;
}
 
Example 12
Source File: EObjectDescription.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public String[] getUserDataKeys() {
	if (userData==null)
		return Strings.EMPTY_ARRAY;
	return userData.keySet().toArray(new String[userData.size()]);
}
 
Example 13
Source File: AbstractEObjectDescription.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public String[] getUserDataKeys() {
	return Strings.EMPTY_ARRAY;
}