id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
56,600 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/CodeBuilderFragment2.java | CodeBuilderFragment2.initializeSubGenerators | @SuppressWarnings("static-method")
protected Collection<AbstractSubCodeBuilderFragment> initializeSubGenerators(Injector injector) {
final Collection<AbstractSubCodeBuilderFragment> fragments = new ArrayList<>();
fragments.add(injector.getInstance(BuilderFactoryFragment.class));
fragments.add(injector.getInstanc... | java | @SuppressWarnings("static-method")
protected Collection<AbstractSubCodeBuilderFragment> initializeSubGenerators(Injector injector) {
final Collection<AbstractSubCodeBuilderFragment> fragments = new ArrayList<>();
fragments.add(injector.getInstance(BuilderFactoryFragment.class));
fragments.add(injector.getInstanc... | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"protected",
"Collection",
"<",
"AbstractSubCodeBuilderFragment",
">",
"initializeSubGenerators",
"(",
"Injector",
"injector",
")",
"{",
"final",
"Collection",
"<",
"AbstractSubCodeBuilderFragment",
">",
"fragments",
... | Initialize the sub generators.
@param injector the injector.
@return the list of the generators. | [
"Initialize",
"the",
"sub",
"generators",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/CodeBuilderFragment2.java#L94-L103 |
56,601 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/CodeBuilderFragment2.java | CodeBuilderFragment2.createRuntimeBindings | protected BindingFactory createRuntimeBindings() {
final BindingFactory factory = new BindingFactory(getClass().getName());
for (final AbstractSubCodeBuilderFragment subFragment : this.subFragments) {
subFragment.generateRuntimeBindings(factory);
}
return factory;
} | java | protected BindingFactory createRuntimeBindings() {
final BindingFactory factory = new BindingFactory(getClass().getName());
for (final AbstractSubCodeBuilderFragment subFragment : this.subFragments) {
subFragment.generateRuntimeBindings(factory);
}
return factory;
} | [
"protected",
"BindingFactory",
"createRuntimeBindings",
"(",
")",
"{",
"final",
"BindingFactory",
"factory",
"=",
"new",
"BindingFactory",
"(",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
")",
";",
"for",
"(",
"final",
"AbstractSubCodeBuilderFragment",
"subFra... | Create the runtime bindings for the builders.
@return the bindings. | [
"Create",
"the",
"runtime",
"bindings",
"for",
"the",
"builders",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/CodeBuilderFragment2.java#L166-L172 |
56,602 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/CodeBuilderFragment2.java | CodeBuilderFragment2.createEclipseBindings | protected BindingFactory createEclipseBindings() {
final BindingFactory factory = new BindingFactory(getClass().getName());
for (final AbstractSubCodeBuilderFragment subFragment : this.subFragments) {
subFragment.generateEclipseBindings(factory);
}
return factory;
} | java | protected BindingFactory createEclipseBindings() {
final BindingFactory factory = new BindingFactory(getClass().getName());
for (final AbstractSubCodeBuilderFragment subFragment : this.subFragments) {
subFragment.generateEclipseBindings(factory);
}
return factory;
} | [
"protected",
"BindingFactory",
"createEclipseBindings",
"(",
")",
"{",
"final",
"BindingFactory",
"factory",
"=",
"new",
"BindingFactory",
"(",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
")",
";",
"for",
"(",
"final",
"AbstractSubCodeBuilderFragment",
"subFra... | Create the Eclipse bindings for the builders.
@return the bindings. | [
"Create",
"the",
"Eclipse",
"bindings",
"for",
"the",
"builders",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/CodeBuilderFragment2.java#L178-L184 |
56,603 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/CodeBuilderFragment2.java | CodeBuilderFragment2.createIdeaBindings | protected BindingFactory createIdeaBindings() {
final BindingFactory factory = new BindingFactory(getClass().getName());
for (final AbstractSubCodeBuilderFragment subFragment : this.subFragments) {
subFragment.generateIdeaBindings(factory);
}
return factory;
} | java | protected BindingFactory createIdeaBindings() {
final BindingFactory factory = new BindingFactory(getClass().getName());
for (final AbstractSubCodeBuilderFragment subFragment : this.subFragments) {
subFragment.generateIdeaBindings(factory);
}
return factory;
} | [
"protected",
"BindingFactory",
"createIdeaBindings",
"(",
")",
"{",
"final",
"BindingFactory",
"factory",
"=",
"new",
"BindingFactory",
"(",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
")",
";",
"for",
"(",
"final",
"AbstractSubCodeBuilderFragment",
"subFragme... | Create the IDEA bindings for the builders.
@return the bindings. | [
"Create",
"the",
"IDEA",
"bindings",
"for",
"the",
"builders",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/CodeBuilderFragment2.java#L190-L196 |
56,604 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/CodeBuilderFragment2.java | CodeBuilderFragment2.createWebBindings | protected BindingFactory createWebBindings() {
final BindingFactory factory = new BindingFactory(getClass().getName());
for (final AbstractSubCodeBuilderFragment subFragment : this.subFragments) {
subFragment.generateWebBindings(factory);
}
return factory;
} | java | protected BindingFactory createWebBindings() {
final BindingFactory factory = new BindingFactory(getClass().getName());
for (final AbstractSubCodeBuilderFragment subFragment : this.subFragments) {
subFragment.generateWebBindings(factory);
}
return factory;
} | [
"protected",
"BindingFactory",
"createWebBindings",
"(",
")",
"{",
"final",
"BindingFactory",
"factory",
"=",
"new",
"BindingFactory",
"(",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
")",
";",
"for",
"(",
"final",
"AbstractSubCodeBuilderFragment",
"subFragmen... | Create the Web-interface bindings for the builders.
@return the bindings. | [
"Create",
"the",
"Web",
"-",
"interface",
"bindings",
"for",
"the",
"builders",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/CodeBuilderFragment2.java#L202-L208 |
56,605 | sarl/sarl | main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/core/Address.java | Address.compareTo | @Override
@Pure
public int compareTo(Address address) {
if (address == null) {
return 1;
}
return this.agentId.compareTo(address.getUUID());
} | java | @Override
@Pure
public int compareTo(Address address) {
if (address == null) {
return 1;
}
return this.agentId.compareTo(address.getUUID());
} | [
"@",
"Override",
"@",
"Pure",
"public",
"int",
"compareTo",
"(",
"Address",
"address",
")",
"{",
"if",
"(",
"address",
"==",
"null",
")",
"{",
"return",
"1",
";",
"}",
"return",
"this",
".",
"agentId",
".",
"compareTo",
"(",
"address",
".",
"getUUID",
... | Compares this object with the specified object for order. Returns a
negative integer, zero, or a positive integer as this object is less
than, equal to, or greater than the specified object.
<p>The implementor must ensure <code>sgn(x.compareTo(y)) ==
-sgn(y.compareTo(x))</code> for all <code>x</code> and <code>y</code... | [
"Compares",
"this",
"object",
"with",
"the",
"specified",
"object",
"for",
"order",
".",
"Returns",
"a",
"negative",
"integer",
"zero",
"or",
"a",
"positive",
"integer",
"as",
"this",
"object",
"is",
"less",
"than",
"equal",
"to",
"or",
"greater",
"than",
... | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/core/Address.java#L156-L163 |
56,606 | sarl/sarl | products/sarlc/src/main/java/io/sarl/lang/sarlc/Main.java | Main.main | public static void main(String[] args) {
final int retCode = createMainObject().runCompiler(args);
System.exit(retCode);
} | java | public static void main(String[] args) {
final int retCode = createMainObject().runCompiler(args);
System.exit(retCode);
} | [
"public",
"static",
"void",
"main",
"(",
"String",
"[",
"]",
"args",
")",
"{",
"final",
"int",
"retCode",
"=",
"createMainObject",
"(",
")",
".",
"runCompiler",
"(",
"args",
")",
";",
"System",
".",
"exit",
"(",
"retCode",
")",
";",
"}"
] | Main program of the batch compiler.
@param args the command line arguments. | [
"Main",
"program",
"of",
"the",
"batch",
"compiler",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/products/sarlc/src/main/java/io/sarl/lang/sarlc/Main.java#L46-L49 |
56,607 | sarl/sarl | main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/parser/SectionNumber.java | SectionNumber.setFromString | public void setFromString(String sectionNumber, int level) {
assert level >= 1;
final String[] numbers = sectionNumber.split("[^0-9]+"); //$NON-NLS-1$
final int len = Math.max(0, this.numbers.size() - numbers.length);
for (int i = 0; i < len; ++i) {
this.numbers.removeLast();
}
for (int i = 0; i < number... | java | public void setFromString(String sectionNumber, int level) {
assert level >= 1;
final String[] numbers = sectionNumber.split("[^0-9]+"); //$NON-NLS-1$
final int len = Math.max(0, this.numbers.size() - numbers.length);
for (int i = 0; i < len; ++i) {
this.numbers.removeLast();
}
for (int i = 0; i < number... | [
"public",
"void",
"setFromString",
"(",
"String",
"sectionNumber",
",",
"int",
"level",
")",
"{",
"assert",
"level",
">=",
"1",
";",
"final",
"String",
"[",
"]",
"numbers",
"=",
"sectionNumber",
".",
"split",
"(",
"\"[^0-9]+\"",
")",
";",
"//$NON-NLS-1$",
... | Change this version number from the given string representation.
<p>The string representation should be integer numbers, separated by dot characters.
@param sectionNumber the string representation of the version number.
@param level is the level at which the section number is visible (1 for the top level, 2 for subse... | [
"Change",
"this",
"version",
"number",
"from",
"the",
"given",
"string",
"representation",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/parser/SectionNumber.java#L56-L66 |
56,608 | sarl/sarl | main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/parser/SectionNumber.java | SectionNumber.increment | public void increment(int level) {
assert level >= 1;
if (this.numbers.size() < level) {
do {
this.numbers.addLast(0);
} while (this.numbers.size() < level);
} else if (this.numbers.size() > level) {
do {
this.numbers.removeLast();
} while (this.numbers.size() > level);
}
assert this.numbe... | java | public void increment(int level) {
assert level >= 1;
if (this.numbers.size() < level) {
do {
this.numbers.addLast(0);
} while (this.numbers.size() < level);
} else if (this.numbers.size() > level) {
do {
this.numbers.removeLast();
} while (this.numbers.size() > level);
}
assert this.numbe... | [
"public",
"void",
"increment",
"(",
"int",
"level",
")",
"{",
"assert",
"level",
">=",
"1",
";",
"if",
"(",
"this",
".",
"numbers",
".",
"size",
"(",
")",
"<",
"level",
")",
"{",
"do",
"{",
"this",
".",
"numbers",
".",
"addLast",
"(",
"0",
")",
... | Change this version number by incrementing the number for the given level.
@param level is the level at which the section number is visible (1 for the top level, 2 for subsections...) | [
"Change",
"this",
"version",
"number",
"by",
"incrementing",
"the",
"number",
"for",
"the",
"given",
"level",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/parser/SectionNumber.java#L72-L86 |
56,609 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixSuppressWarnings | @Fix("*")
public void fixSuppressWarnings(Issue issue, IssueResolutionAcceptor acceptor) {
if (isIgnorable(issue.getCode())) {
SuppressWarningsAddModification.accept(this, issue, acceptor);
}
} | java | @Fix("*")
public void fixSuppressWarnings(Issue issue, IssueResolutionAcceptor acceptor) {
if (isIgnorable(issue.getCode())) {
SuppressWarningsAddModification.accept(this, issue, acceptor);
}
} | [
"@",
"Fix",
"(",
"\"*\"",
")",
"public",
"void",
"fixSuppressWarnings",
"(",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
"{",
"if",
"(",
"isIgnorable",
"(",
"issue",
".",
"getCode",
"(",
")",
")",
")",
"{",
"SuppressWarningsAddModificati... | Add the fixes with suppress-warning annotations.
@param issue the issue.
@param acceptor the resolution acceptor. | [
"Add",
"the",
"fixes",
"with",
"suppress",
"-",
"warning",
"annotations",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L181-L186 |
56,610 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.getJvmOperationsFromURIs | public List<JvmOperation> getJvmOperationsFromURIs(XtendTypeDeclaration container, String... operationUris) {
// Collect the JvmOperation prior to any modification for ensuring that
// URI are pointing the JvmOperations.
final List<JvmOperation> operations = new ArrayList<>();
final ResourceSet resourceSet = co... | java | public List<JvmOperation> getJvmOperationsFromURIs(XtendTypeDeclaration container, String... operationUris) {
// Collect the JvmOperation prior to any modification for ensuring that
// URI are pointing the JvmOperations.
final List<JvmOperation> operations = new ArrayList<>();
final ResourceSet resourceSet = co... | [
"public",
"List",
"<",
"JvmOperation",
">",
"getJvmOperationsFromURIs",
"(",
"XtendTypeDeclaration",
"container",
",",
"String",
"...",
"operationUris",
")",
"{",
"// Collect the JvmOperation prior to any modification for ensuring that",
"// URI are pointing the JvmOperations.",
"f... | Replies the JVM operations that correspond to the given URIs.
@param container the container of the operations.
@param operationUris the URIs.
@return the JVM operations. | [
"Replies",
"the",
"JVM",
"operations",
"that",
"correspond",
"to",
"the",
"given",
"URIs",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L194-L210 |
56,611 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.removeToPreviousSeparator | public boolean removeToPreviousSeparator(Issue issue, IXtextDocument document, String separator)
throws BadLocationException {
return removeToPreviousSeparator(issue.getOffset(), issue.getLength(), document, separator);
} | java | public boolean removeToPreviousSeparator(Issue issue, IXtextDocument document, String separator)
throws BadLocationException {
return removeToPreviousSeparator(issue.getOffset(), issue.getLength(), document, separator);
} | [
"public",
"boolean",
"removeToPreviousSeparator",
"(",
"Issue",
"issue",
",",
"IXtextDocument",
"document",
",",
"String",
"separator",
")",
"throws",
"BadLocationException",
"{",
"return",
"removeToPreviousSeparator",
"(",
"issue",
".",
"getOffset",
"(",
")",
",",
... | Remove the element related to the issue, and the whitespaces before the element until the given separator.
@param issue the issue.
@param document the document.
@param separator the separator to consider.
@return <code>true</code> if the separator was found, <code>false</code> if not.
@throws BadLocationException if t... | [
"Remove",
"the",
"element",
"related",
"to",
"the",
"issue",
"and",
"the",
"whitespaces",
"before",
"the",
"element",
"until",
"the",
"given",
"separator",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L315-L318 |
56,612 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.removeToPreviousSeparator | public boolean removeToPreviousSeparator(int offset, int length, IXtextDocument document, String separator)
throws BadLocationException {
// Skip spaces before the identifier until the separator
int index = offset - 1;
char c = document.getChar(index);
while (Character.isWhitespace(c)) {
index--;
c = d... | java | public boolean removeToPreviousSeparator(int offset, int length, IXtextDocument document, String separator)
throws BadLocationException {
// Skip spaces before the identifier until the separator
int index = offset - 1;
char c = document.getChar(index);
while (Character.isWhitespace(c)) {
index--;
c = d... | [
"public",
"boolean",
"removeToPreviousSeparator",
"(",
"int",
"offset",
",",
"int",
"length",
",",
"IXtextDocument",
"document",
",",
"String",
"separator",
")",
"throws",
"BadLocationException",
"{",
"// Skip spaces before the identifier until the separator",
"int",
"index... | Remove the portion of text, and the whitespaces before the text until the given separator.
@param offset the offset where to start to remove.
@param length the length of the text to remove.
@param document the document.
@param separator the separator to consider.
@return <code>true</code> if the separator was found, <... | [
"Remove",
"the",
"portion",
"of",
"text",
"and",
"the",
"whitespaces",
"before",
"the",
"text",
"until",
"the",
"given",
"separator",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L329-L355 |
56,613 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.getImportInsertOffset | public int getImportInsertOffset(SarlScript script) {
final ICompositeNode node = NodeModelUtils.findActualNodeFor(script.getImportSection());
if (node == null) {
final List<INode> children = NodeModelUtils.findNodesForFeature(script,
XtendPackage.eINSTANCE.getXtendFile_Package());
if (children.isEmpty()... | java | public int getImportInsertOffset(SarlScript script) {
final ICompositeNode node = NodeModelUtils.findActualNodeFor(script.getImportSection());
if (node == null) {
final List<INode> children = NodeModelUtils.findNodesForFeature(script,
XtendPackage.eINSTANCE.getXtendFile_Package());
if (children.isEmpty()... | [
"public",
"int",
"getImportInsertOffset",
"(",
"SarlScript",
"script",
")",
"{",
"final",
"ICompositeNode",
"node",
"=",
"NodeModelUtils",
".",
"findActualNodeFor",
"(",
"script",
".",
"getImportSection",
"(",
")",
")",
";",
"if",
"(",
"node",
"==",
"null",
")... | Replies the index where import declaration could be inserted into the given container.
@param script the script to consider for the insertion
@return the insertion index. | [
"Replies",
"the",
"index",
"where",
"import",
"declaration",
"could",
"be",
"inserted",
"into",
"the",
"given",
"container",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L362-L373 |
56,614 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.removeToNextSeparator | public boolean removeToNextSeparator(Issue issue, IXtextDocument document, String separator)
throws BadLocationException {
// Skip spaces after the identifier until the separator
int index = issue.getOffset() + issue.getLength();
char c = document.getChar(index);
while (Character.isWhitespace(c)) {
index+... | java | public boolean removeToNextSeparator(Issue issue, IXtextDocument document, String separator)
throws BadLocationException {
// Skip spaces after the identifier until the separator
int index = issue.getOffset() + issue.getLength();
char c = document.getChar(index);
while (Character.isWhitespace(c)) {
index+... | [
"public",
"boolean",
"removeToNextSeparator",
"(",
"Issue",
"issue",
",",
"IXtextDocument",
"document",
",",
"String",
"separator",
")",
"throws",
"BadLocationException",
"{",
"// Skip spaces after the identifier until the separator",
"int",
"index",
"=",
"issue",
".",
"g... | Remove the element related to the issue, and the whitespaces after the element until the given separator.
@param issue the issue.
@param document the document.
@param separator the separator to consider.
@return <code>true</code> if the separator was found, <code>false</code> if not.
@throws BadLocationException if th... | [
"Remove",
"the",
"element",
"related",
"to",
"the",
"issue",
"and",
"the",
"whitespaces",
"after",
"the",
"element",
"until",
"the",
"given",
"separator",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L383-L409 |
56,615 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.removeToPreviousKeyword | public boolean removeToPreviousKeyword(Issue issue, IXtextDocument document,
String keyword1, String... otherKeywords) throws BadLocationException {
// Skip spaces before the element
int index = issue.getOffset() - 1;
char c = document.getChar(index);
while (Character.isWhitespace(c)) {
index--;
c = do... | java | public boolean removeToPreviousKeyword(Issue issue, IXtextDocument document,
String keyword1, String... otherKeywords) throws BadLocationException {
// Skip spaces before the element
int index = issue.getOffset() - 1;
char c = document.getChar(index);
while (Character.isWhitespace(c)) {
index--;
c = do... | [
"public",
"boolean",
"removeToPreviousKeyword",
"(",
"Issue",
"issue",
",",
"IXtextDocument",
"document",
",",
"String",
"keyword1",
",",
"String",
"...",
"otherKeywords",
")",
"throws",
"BadLocationException",
"{",
"// Skip spaces before the element",
"int",
"index",
"... | Remove the element related to the issue, and the whitespaces before the element until one of the given
keywords is encountered.
@param issue the issue.
@param document the document.
@param keyword1 the first keyword to consider.
@param otherKeywords other keywords.
@return <code>true</code> if one keyword was found, <... | [
"Remove",
"the",
"element",
"related",
"to",
"the",
"issue",
"and",
"the",
"whitespaces",
"before",
"the",
"element",
"until",
"one",
"of",
"the",
"given",
"keywords",
"is",
"encountered",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L421-L453 |
56,616 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.removeBetweenSeparators | public boolean removeBetweenSeparators(Issue issue, IXtextDocument document,
String beginSeparator, String endSeparator) throws BadLocationException {
int offset = issue.getOffset();
int length = issue.getLength();
// Skip spaces before the identifier until the separator
int index = offset - 1;
char c = d... | java | public boolean removeBetweenSeparators(Issue issue, IXtextDocument document,
String beginSeparator, String endSeparator) throws BadLocationException {
int offset = issue.getOffset();
int length = issue.getLength();
// Skip spaces before the identifier until the separator
int index = offset - 1;
char c = d... | [
"public",
"boolean",
"removeBetweenSeparators",
"(",
"Issue",
"issue",
",",
"IXtextDocument",
"document",
",",
"String",
"beginSeparator",
",",
"String",
"endSeparator",
")",
"throws",
"BadLocationException",
"{",
"int",
"offset",
"=",
"issue",
".",
"getOffset",
"("... | Remove the element related to the issue, and the whitespaces before the element until the begin separator,
and the whitespaces after the element until the end separator.
@param issue the issue.
@param document the document.
@param beginSeparator the separator before the element.
@param endSeparator the separator after... | [
"Remove",
"the",
"element",
"related",
"to",
"the",
"issue",
"and",
"the",
"whitespaces",
"before",
"the",
"element",
"until",
"the",
"begin",
"separator",
"and",
"the",
"whitespaces",
"after",
"the",
"element",
"until",
"the",
"end",
"separator",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L465-L511 |
56,617 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.getInsertOffset | public int getInsertOffset(XtendTypeDeclaration container) {
if (container.getMembers().isEmpty()) {
final ICompositeNode node = NodeModelUtils.findActualNodeFor(container);
final ILeafNode openingBraceNode = IterableExtensions.findFirst(node.getLeafNodes(),
lnode -> "{".equals(lnode.getText())); //$NON-NL... | java | public int getInsertOffset(XtendTypeDeclaration container) {
if (container.getMembers().isEmpty()) {
final ICompositeNode node = NodeModelUtils.findActualNodeFor(container);
final ILeafNode openingBraceNode = IterableExtensions.findFirst(node.getLeafNodes(),
lnode -> "{".equals(lnode.getText())); //$NON-NL... | [
"public",
"int",
"getInsertOffset",
"(",
"XtendTypeDeclaration",
"container",
")",
"{",
"if",
"(",
"container",
".",
"getMembers",
"(",
")",
".",
"isEmpty",
"(",
")",
")",
"{",
"final",
"ICompositeNode",
"node",
"=",
"NodeModelUtils",
".",
"findActualNodeFor",
... | Replies the index where elements could be inserted into the given container.
@param container the container to consider for the insertion
@return the insertion index. | [
"Replies",
"the",
"index",
"where",
"elements",
"could",
"be",
"inserted",
"into",
"the",
"given",
"container",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L518-L531 |
56,618 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.getSpaceSize | public int getSpaceSize(IXtextDocument document, int offset) throws BadLocationException {
int size = 0;
char c = document.getChar(offset + size);
while (Character.isWhitespace(c)) {
size++;
c = document.getChar(offset + size);
}
return size;
} | java | public int getSpaceSize(IXtextDocument document, int offset) throws BadLocationException {
int size = 0;
char c = document.getChar(offset + size);
while (Character.isWhitespace(c)) {
size++;
c = document.getChar(offset + size);
}
return size;
} | [
"public",
"int",
"getSpaceSize",
"(",
"IXtextDocument",
"document",
",",
"int",
"offset",
")",
"throws",
"BadLocationException",
"{",
"int",
"size",
"=",
"0",
";",
"char",
"c",
"=",
"document",
".",
"getChar",
"(",
"offset",
"+",
"size",
")",
";",
"while",... | Replies the size of a sequence of whitespaces.
@param document the document.
@param offset the offset of the first character of the sequence.
@return the number of whitespaces at the given offset.
@throws BadLocationException if there is a problem with the location of the element. | [
"Replies",
"the",
"size",
"of",
"a",
"sequence",
"of",
"whitespaces",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L540-L548 |
56,619 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.getOffsetForPattern | public int getOffsetForPattern(IXtextDocument document, int startOffset, String pattern) {
final Pattern compiledPattern = Pattern.compile(pattern);
final Matcher matcher = compiledPattern.matcher(document.get());
if (matcher.find(startOffset)) {
final int end = matcher.end();
return end;
}
return -1;
... | java | public int getOffsetForPattern(IXtextDocument document, int startOffset, String pattern) {
final Pattern compiledPattern = Pattern.compile(pattern);
final Matcher matcher = compiledPattern.matcher(document.get());
if (matcher.find(startOffset)) {
final int end = matcher.end();
return end;
}
return -1;
... | [
"public",
"int",
"getOffsetForPattern",
"(",
"IXtextDocument",
"document",
",",
"int",
"startOffset",
",",
"String",
"pattern",
")",
"{",
"final",
"Pattern",
"compiledPattern",
"=",
"Pattern",
".",
"compile",
"(",
"pattern",
")",
";",
"final",
"Matcher",
"matche... | Replies the offset that corresponds to the given regular expression pattern.
@param document the document to parse.
@param startOffset the offset in the text at which the pattern must be recognized.
@param pattern the regular expression pattern.
@return the offset (greater or equal to the startOffset), or <code>-1</co... | [
"Replies",
"the",
"offset",
"that",
"corresponds",
"to",
"the",
"given",
"regular",
"expression",
"pattern",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L558-L566 |
56,620 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.qualifiedName | public QualifiedName qualifiedName(String name) {
if (!com.google.common.base.Strings.isNullOrEmpty(name)) {
final List<String> segments = Strings.split(name, "."); //$NON-NLS-1$
return QualifiedName.create(segments);
}
return QualifiedName.create();
} | java | public QualifiedName qualifiedName(String name) {
if (!com.google.common.base.Strings.isNullOrEmpty(name)) {
final List<String> segments = Strings.split(name, "."); //$NON-NLS-1$
return QualifiedName.create(segments);
}
return QualifiedName.create();
} | [
"public",
"QualifiedName",
"qualifiedName",
"(",
"String",
"name",
")",
"{",
"if",
"(",
"!",
"com",
".",
"google",
".",
"common",
".",
"base",
".",
"Strings",
".",
"isNullOrEmpty",
"(",
"name",
")",
")",
"{",
"final",
"List",
"<",
"String",
">",
"segme... | Replies the qualified name for the given name.
@param name the name.
@return the qualified name. | [
"Replies",
"the",
"qualified",
"name",
"for",
"the",
"given",
"name",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L573-L579 |
56,621 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.removeExecutableFeature | public void removeExecutableFeature(EObject element, IModificationContext context) throws BadLocationException {
final ICompositeNode node;
final SarlAction action = EcoreUtil2.getContainerOfType(element, SarlAction.class);
if (action == null) {
final XtendMember feature = EcoreUtil2.getContainerOfType(element... | java | public void removeExecutableFeature(EObject element, IModificationContext context) throws BadLocationException {
final ICompositeNode node;
final SarlAction action = EcoreUtil2.getContainerOfType(element, SarlAction.class);
if (action == null) {
final XtendMember feature = EcoreUtil2.getContainerOfType(element... | [
"public",
"void",
"removeExecutableFeature",
"(",
"EObject",
"element",
",",
"IModificationContext",
"context",
")",
"throws",
"BadLocationException",
"{",
"final",
"ICompositeNode",
"node",
";",
"final",
"SarlAction",
"action",
"=",
"EcoreUtil2",
".",
"getContainerOfTy... | Remove the exectuable feature.
@param element the executable feature to remove.
@param context the context of the change.
@throws BadLocationException if there is a problem with the location of the element. | [
"Remove",
"the",
"exectuable",
"feature",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L587-L599 |
56,622 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixDuplicateTopElements | @Fix(IssueCodes.DUPLICATE_TYPE_NAME)
public void fixDuplicateTopElements(Issue issue, IssueResolutionAcceptor acceptor) {
MemberRemoveModification.accept(this, issue, acceptor);
} | java | @Fix(IssueCodes.DUPLICATE_TYPE_NAME)
public void fixDuplicateTopElements(Issue issue, IssueResolutionAcceptor acceptor) {
MemberRemoveModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"IssueCodes",
".",
"DUPLICATE_TYPE_NAME",
")",
"public",
"void",
"fixDuplicateTopElements",
"(",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
"{",
"MemberRemoveModification",
".",
"accept",
"(",
"this",
",",
"issue",
",",
"ac... | Quick fix for "Duplicate type".
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"Duplicate",
"type",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L667-L670 |
56,623 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixDuplicateAttribute | @Fix(IssueCodes.DUPLICATE_FIELD)
public void fixDuplicateAttribute(Issue issue, IssueResolutionAcceptor acceptor) {
MemberRemoveModification.accept(this, issue, acceptor);
} | java | @Fix(IssueCodes.DUPLICATE_FIELD)
public void fixDuplicateAttribute(Issue issue, IssueResolutionAcceptor acceptor) {
MemberRemoveModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"IssueCodes",
".",
"DUPLICATE_FIELD",
")",
"public",
"void",
"fixDuplicateAttribute",
"(",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
"{",
"MemberRemoveModification",
".",
"accept",
"(",
"this",
",",
"issue",
",",
"acceptor... | Quick fix for "Duplicate field".
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"Duplicate",
"field",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L677-L680 |
56,624 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixDuplicateMethod | @Fix(IssueCodes.DUPLICATE_METHOD)
public void fixDuplicateMethod(Issue issue, IssueResolutionAcceptor acceptor) {
MemberRemoveModification.accept(this, issue, acceptor);
} | java | @Fix(IssueCodes.DUPLICATE_METHOD)
public void fixDuplicateMethod(Issue issue, IssueResolutionAcceptor acceptor) {
MemberRemoveModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"IssueCodes",
".",
"DUPLICATE_METHOD",
")",
"public",
"void",
"fixDuplicateMethod",
"(",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
"{",
"MemberRemoveModification",
".",
"accept",
"(",
"this",
",",
"issue",
",",
"acceptor",... | Quick fix for "Duplicate method".
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"Duplicate",
"method",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L687-L690 |
56,625 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixMemberName | @Fix(IssueCodes.INVALID_MEMBER_NAME)
public void fixMemberName(final Issue issue, IssueResolutionAcceptor acceptor) {
MemberRenameModification.accept(this, issue, acceptor);
MemberRemoveModification.accept(this, issue, acceptor);
} | java | @Fix(IssueCodes.INVALID_MEMBER_NAME)
public void fixMemberName(final Issue issue, IssueResolutionAcceptor acceptor) {
MemberRenameModification.accept(this, issue, acceptor);
MemberRemoveModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"IssueCodes",
".",
"INVALID_MEMBER_NAME",
")",
"public",
"void",
"fixMemberName",
"(",
"final",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
"{",
"MemberRenameModification",
".",
"accept",
"(",
"this",
",",
"issue",
",",
"a... | Quick fix for "Invalid member name".
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"Invalid",
"member",
"name",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L718-L722 |
56,626 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixRedundantInterface | @Fix(io.sarl.lang.validation.IssueCodes.REDUNDANT_INTERFACE_IMPLEMENTATION)
public void fixRedundantInterface(final Issue issue, IssueResolutionAcceptor acceptor) {
ImplementedTypeRemoveModification.accept(this, issue, acceptor);
} | java | @Fix(io.sarl.lang.validation.IssueCodes.REDUNDANT_INTERFACE_IMPLEMENTATION)
public void fixRedundantInterface(final Issue issue, IssueResolutionAcceptor acceptor) {
ImplementedTypeRemoveModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"io",
".",
"sarl",
".",
"lang",
".",
"validation",
".",
"IssueCodes",
".",
"REDUNDANT_INTERFACE_IMPLEMENTATION",
")",
"public",
"void",
"fixRedundantInterface",
"(",
"final",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
"{",
... | Quick fix for "Redundant interface implementation".
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"Redundant",
"interface",
"implementation",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L729-L732 |
56,627 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixVariableNameShadowing | @Fix(org.eclipse.xtext.xbase.validation.IssueCodes.VARIABLE_NAME_SHADOWING)
public void fixVariableNameShadowing(final Issue issue, IssueResolutionAcceptor acceptor) {
MemberRemoveModification.accept(this, issue, acceptor);
MemberRenameModification.accept(this, issue, acceptor);
} | java | @Fix(org.eclipse.xtext.xbase.validation.IssueCodes.VARIABLE_NAME_SHADOWING)
public void fixVariableNameShadowing(final Issue issue, IssueResolutionAcceptor acceptor) {
MemberRemoveModification.accept(this, issue, acceptor);
MemberRenameModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"org",
".",
"eclipse",
".",
"xtext",
".",
"xbase",
".",
"validation",
".",
"IssueCodes",
".",
"VARIABLE_NAME_SHADOWING",
")",
"public",
"void",
"fixVariableNameShadowing",
"(",
"final",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",... | Quick fix for "Variable name shadowing".
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"Variable",
"name",
"shadowing",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L739-L743 |
56,628 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixOverriddenFinal | @Fix(IssueCodes.OVERRIDDEN_FINAL)
public void fixOverriddenFinal(Issue issue, IssueResolutionAcceptor acceptor) {
final MultiModification modifications = new MultiModification(
this, issue, acceptor,
Messages.SARLQuickfixProvider_0,
Messages.SARLQuickfixProvider_1);
modifications.bind(XtendTypeDeclarat... | java | @Fix(IssueCodes.OVERRIDDEN_FINAL)
public void fixOverriddenFinal(Issue issue, IssueResolutionAcceptor acceptor) {
final MultiModification modifications = new MultiModification(
this, issue, acceptor,
Messages.SARLQuickfixProvider_0,
Messages.SARLQuickfixProvider_1);
modifications.bind(XtendTypeDeclarat... | [
"@",
"Fix",
"(",
"IssueCodes",
".",
"OVERRIDDEN_FINAL",
")",
"public",
"void",
"fixOverriddenFinal",
"(",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
"{",
"final",
"MultiModification",
"modifications",
"=",
"new",
"MultiModification",
"(",
"th... | Quick fix for "Override final operation".
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"Override",
"final",
"operation",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L750-L758 |
56,629 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixDiscouragedBooleanExpression | @Fix(io.sarl.lang.validation.IssueCodes.DISCOURAGED_BOOLEAN_EXPRESSION)
public void fixDiscouragedBooleanExpression(final Issue issue, IssueResolutionAcceptor acceptor) {
BehaviorUnitGuardRemoveModification.accept(this, issue, acceptor);
} | java | @Fix(io.sarl.lang.validation.IssueCodes.DISCOURAGED_BOOLEAN_EXPRESSION)
public void fixDiscouragedBooleanExpression(final Issue issue, IssueResolutionAcceptor acceptor) {
BehaviorUnitGuardRemoveModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"io",
".",
"sarl",
".",
"lang",
".",
"validation",
".",
"IssueCodes",
".",
"DISCOURAGED_BOOLEAN_EXPRESSION",
")",
"public",
"void",
"fixDiscouragedBooleanExpression",
"(",
"final",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
... | Quick fix for "Discouraged boolean expression".
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"Discouraged",
"boolean",
"expression",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L765-L768 |
56,630 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixUnreachableBehaviorUnit | @Fix(io.sarl.lang.validation.IssueCodes.UNREACHABLE_BEHAVIOR_UNIT)
public void fixUnreachableBehaviorUnit(Issue issue, IssueResolutionAcceptor acceptor) {
MemberRemoveModification.accept(this, issue, acceptor);
} | java | @Fix(io.sarl.lang.validation.IssueCodes.UNREACHABLE_BEHAVIOR_UNIT)
public void fixUnreachableBehaviorUnit(Issue issue, IssueResolutionAcceptor acceptor) {
MemberRemoveModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"io",
".",
"sarl",
".",
"lang",
".",
"validation",
".",
"IssueCodes",
".",
"UNREACHABLE_BEHAVIOR_UNIT",
")",
"public",
"void",
"fixUnreachableBehaviorUnit",
"(",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
"{",
"MemberRemove... | Quick fix for "Unreachable behavior unit".
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"Unreachable",
"behavior",
"unit",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L775-L778 |
56,631 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixInvalidCapacityType | @Fix(io.sarl.lang.validation.IssueCodes.INVALID_CAPACITY_TYPE)
public void fixInvalidCapacityType(final Issue issue, IssueResolutionAcceptor acceptor) {
CapacityReferenceRemoveModification.accept(this, issue, acceptor);
} | java | @Fix(io.sarl.lang.validation.IssueCodes.INVALID_CAPACITY_TYPE)
public void fixInvalidCapacityType(final Issue issue, IssueResolutionAcceptor acceptor) {
CapacityReferenceRemoveModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"io",
".",
"sarl",
".",
"lang",
".",
"validation",
".",
"IssueCodes",
".",
"INVALID_CAPACITY_TYPE",
")",
"public",
"void",
"fixInvalidCapacityType",
"(",
"final",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
"{",
"CapacityR... | Quick fix for "Invalid capacity type".
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"Invalid",
"capacity",
"type",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L785-L788 |
56,632 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixInvalidFiringEventType | @Fix(io.sarl.lang.validation.IssueCodes.INVALID_FIRING_EVENT_TYPE)
public void fixInvalidFiringEventType(final Issue issue, IssueResolutionAcceptor acceptor) {
FiredEventRemoveModification.accept(this, issue, acceptor);
} | java | @Fix(io.sarl.lang.validation.IssueCodes.INVALID_FIRING_EVENT_TYPE)
public void fixInvalidFiringEventType(final Issue issue, IssueResolutionAcceptor acceptor) {
FiredEventRemoveModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"io",
".",
"sarl",
".",
"lang",
".",
"validation",
".",
"IssueCodes",
".",
"INVALID_FIRING_EVENT_TYPE",
")",
"public",
"void",
"fixInvalidFiringEventType",
"(",
"final",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
"{",
"Fi... | Quick fix for "Invalid firing event type".
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"Invalid",
"firing",
"event",
"type",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L795-L798 |
56,633 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixInvalidImplementedType | @Fix(io.sarl.lang.validation.IssueCodes.INVALID_IMPLEMENTED_TYPE)
public void fixInvalidImplementedType(final Issue issue, IssueResolutionAcceptor acceptor) {
ImplementedTypeRemoveModification.accept(this, issue, acceptor, RemovalType.OTHER);
} | java | @Fix(io.sarl.lang.validation.IssueCodes.INVALID_IMPLEMENTED_TYPE)
public void fixInvalidImplementedType(final Issue issue, IssueResolutionAcceptor acceptor) {
ImplementedTypeRemoveModification.accept(this, issue, acceptor, RemovalType.OTHER);
} | [
"@",
"Fix",
"(",
"io",
".",
"sarl",
".",
"lang",
".",
"validation",
".",
"IssueCodes",
".",
"INVALID_IMPLEMENTED_TYPE",
")",
"public",
"void",
"fixInvalidImplementedType",
"(",
"final",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
"{",
"Imp... | Quick fix for "Invalid implemented type".
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"Invalid",
"implemented",
"type",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L805-L808 |
56,634 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixInvalidExtendedType | @Fix(io.sarl.lang.validation.IssueCodes.INVALID_EXTENDED_TYPE)
public void fixInvalidExtendedType(final Issue issue, IssueResolutionAcceptor acceptor) {
ExtendedTypeRemoveModification.accept(this, issue, acceptor);
} | java | @Fix(io.sarl.lang.validation.IssueCodes.INVALID_EXTENDED_TYPE)
public void fixInvalidExtendedType(final Issue issue, IssueResolutionAcceptor acceptor) {
ExtendedTypeRemoveModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"io",
".",
"sarl",
".",
"lang",
".",
"validation",
".",
"IssueCodes",
".",
"INVALID_EXTENDED_TYPE",
")",
"public",
"void",
"fixInvalidExtendedType",
"(",
"final",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
"{",
"ExtendedT... | Quick fix for "Invalid extended type".
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"Invalid",
"extended",
"type",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L815-L818 |
56,635 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixCyclicInheritance | @Fix(IssueCodes.CYCLIC_INHERITANCE)
public void fixCyclicInheritance(final Issue issue, IssueResolutionAcceptor acceptor) {
ExtendedTypeRemoveModification.accept(this, issue, acceptor);
} | java | @Fix(IssueCodes.CYCLIC_INHERITANCE)
public void fixCyclicInheritance(final Issue issue, IssueResolutionAcceptor acceptor) {
ExtendedTypeRemoveModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"IssueCodes",
".",
"CYCLIC_INHERITANCE",
")",
"public",
"void",
"fixCyclicInheritance",
"(",
"final",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
"{",
"ExtendedTypeRemoveModification",
".",
"accept",
"(",
"this",
",",
"issue",... | Quick fix for "Cyclic hierarchy".
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"Cyclic",
"hierarchy",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L825-L828 |
56,636 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixInteraceExpected | @Fix(IssueCodes.INTERFACE_EXPECTED)
public void fixInteraceExpected(final Issue issue, IssueResolutionAcceptor acceptor) {
ExtendedTypeRemoveModification.accept(this, issue, acceptor);
} | java | @Fix(IssueCodes.INTERFACE_EXPECTED)
public void fixInteraceExpected(final Issue issue, IssueResolutionAcceptor acceptor) {
ExtendedTypeRemoveModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"IssueCodes",
".",
"INTERFACE_EXPECTED",
")",
"public",
"void",
"fixInteraceExpected",
"(",
"final",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
"{",
"ExtendedTypeRemoveModification",
".",
"accept",
"(",
"this",
",",
"issue",
... | Quick fix for "Interface expected".
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"Interface",
"expected",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L835-L838 |
56,637 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixClassExpected | @Fix(IssueCodes.CLASS_EXPECTED)
public void fixClassExpected(final Issue issue, IssueResolutionAcceptor acceptor) {
ExtendedTypeRemoveModification.accept(this, issue, acceptor);
} | java | @Fix(IssueCodes.CLASS_EXPECTED)
public void fixClassExpected(final Issue issue, IssueResolutionAcceptor acceptor) {
ExtendedTypeRemoveModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"IssueCodes",
".",
"CLASS_EXPECTED",
")",
"public",
"void",
"fixClassExpected",
"(",
"final",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
"{",
"ExtendedTypeRemoveModification",
".",
"accept",
"(",
"this",
",",
"issue",
",",
... | Quick fix for "Class expected".
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"Class",
"expected",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L845-L848 |
56,638 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixDiscouragedCapacityDefinition | @Fix(io.sarl.lang.validation.IssueCodes.DISCOURAGED_CAPACITY_DEFINITION)
public void fixDiscouragedCapacityDefinition(Issue issue, IssueResolutionAcceptor acceptor) {
MemberRemoveModification.accept(this, issue, acceptor, SarlCapacity.class);
ActionAddModification.accept(this, issue, acceptor);
} | java | @Fix(io.sarl.lang.validation.IssueCodes.DISCOURAGED_CAPACITY_DEFINITION)
public void fixDiscouragedCapacityDefinition(Issue issue, IssueResolutionAcceptor acceptor) {
MemberRemoveModification.accept(this, issue, acceptor, SarlCapacity.class);
ActionAddModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"io",
".",
"sarl",
".",
"lang",
".",
"validation",
".",
"IssueCodes",
".",
"DISCOURAGED_CAPACITY_DEFINITION",
")",
"public",
"void",
"fixDiscouragedCapacityDefinition",
"(",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
"{",
"... | Quick fix for "Discouraged capacity definition".
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"Discouraged",
"capacity",
"definition",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L855-L859 |
56,639 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixIncompatibleReturnType | @Fix(org.eclipse.xtext.xbase.validation.IssueCodes.INCOMPATIBLE_RETURN_TYPE)
public void fixIncompatibleReturnType(final Issue issue, IssueResolutionAcceptor acceptor) {
ReturnTypeReplaceModification.accept(this, issue, acceptor);
} | java | @Fix(org.eclipse.xtext.xbase.validation.IssueCodes.INCOMPATIBLE_RETURN_TYPE)
public void fixIncompatibleReturnType(final Issue issue, IssueResolutionAcceptor acceptor) {
ReturnTypeReplaceModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"org",
".",
"eclipse",
".",
"xtext",
".",
"xbase",
".",
"validation",
".",
"IssueCodes",
".",
"INCOMPATIBLE_RETURN_TYPE",
")",
"public",
"void",
"fixIncompatibleReturnType",
"(",
"final",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor... | Quick fix for "Incompatible return type".
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"Incompatible",
"return",
"type",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L866-L869 |
56,640 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixReturnTypeRecommended | @Fix(io.sarl.lang.validation.IssueCodes.RETURN_TYPE_SPECIFICATION_IS_RECOMMENDED)
public void fixReturnTypeRecommended(final Issue issue, IssueResolutionAcceptor acceptor) {
ReturnTypeAddModification.accept(this, issue, acceptor);
} | java | @Fix(io.sarl.lang.validation.IssueCodes.RETURN_TYPE_SPECIFICATION_IS_RECOMMENDED)
public void fixReturnTypeRecommended(final Issue issue, IssueResolutionAcceptor acceptor) {
ReturnTypeAddModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"io",
".",
"sarl",
".",
"lang",
".",
"validation",
".",
"IssueCodes",
".",
"RETURN_TYPE_SPECIFICATION_IS_RECOMMENDED",
")",
"public",
"void",
"fixReturnTypeRecommended",
"(",
"final",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")"... | Quick fix for "Return type is recommended".
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"Return",
"type",
"is",
"recommended",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L876-L879 |
56,641 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixUnusedAgentCapacity | @Fix(io.sarl.lang.validation.IssueCodes.UNUSED_AGENT_CAPACITY)
public void fixUnusedAgentCapacity(final Issue issue, IssueResolutionAcceptor acceptor) {
CapacityReferenceRemoveModification.accept(this, issue, acceptor);
} | java | @Fix(io.sarl.lang.validation.IssueCodes.UNUSED_AGENT_CAPACITY)
public void fixUnusedAgentCapacity(final Issue issue, IssueResolutionAcceptor acceptor) {
CapacityReferenceRemoveModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"io",
".",
"sarl",
".",
"lang",
".",
"validation",
".",
"IssueCodes",
".",
"UNUSED_AGENT_CAPACITY",
")",
"public",
"void",
"fixUnusedAgentCapacity",
"(",
"final",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
"{",
"CapacityR... | Quick fix for "Unused agent capacity".
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"Unused",
"agent",
"capacity",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L886-L889 |
56,642 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixRedundantAgentCapacityUse | @Fix(io.sarl.lang.validation.IssueCodes.REDUNDANT_CAPACITY_USE)
public void fixRedundantAgentCapacityUse(final Issue issue, IssueResolutionAcceptor acceptor) {
CapacityReferenceRemoveModification.accept(this, issue, acceptor);
} | java | @Fix(io.sarl.lang.validation.IssueCodes.REDUNDANT_CAPACITY_USE)
public void fixRedundantAgentCapacityUse(final Issue issue, IssueResolutionAcceptor acceptor) {
CapacityReferenceRemoveModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"io",
".",
"sarl",
".",
"lang",
".",
"validation",
".",
"IssueCodes",
".",
"REDUNDANT_CAPACITY_USE",
")",
"public",
"void",
"fixRedundantAgentCapacityUse",
"(",
"final",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
"{",
"Ca... | Quick fix for "Redundant capacity use".
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"Redundant",
"capacity",
"use",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L896-L899 |
56,643 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixNoViableAlternativeAtKeyword | @Fix(SyntaxIssueCodes.USED_RESERVED_KEYWORD)
public void fixNoViableAlternativeAtKeyword(final Issue issue, IssueResolutionAcceptor acceptor) {
ProtectKeywordModification.accept(this, issue, acceptor);
} | java | @Fix(SyntaxIssueCodes.USED_RESERVED_KEYWORD)
public void fixNoViableAlternativeAtKeyword(final Issue issue, IssueResolutionAcceptor acceptor) {
ProtectKeywordModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"SyntaxIssueCodes",
".",
"USED_RESERVED_KEYWORD",
")",
"public",
"void",
"fixNoViableAlternativeAtKeyword",
"(",
"final",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
"{",
"ProtectKeywordModification",
".",
"accept",
"(",
"this",
... | Quick fix for the no viable alternative at an input that is a SARL keyword.
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"the",
"no",
"viable",
"alternative",
"at",
"an",
"input",
"that",
"is",
"a",
"SARL",
"keyword",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L964-L967 |
56,644 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixDiscouragedAnnotationUse | @Fix(io.sarl.lang.validation.IssueCodes.USED_RESERVED_SARL_ANNOTATION)
public void fixDiscouragedAnnotationUse(final Issue issue, IssueResolutionAcceptor acceptor) {
AnnotationRemoveModification.accept(this, issue, acceptor);
} | java | @Fix(io.sarl.lang.validation.IssueCodes.USED_RESERVED_SARL_ANNOTATION)
public void fixDiscouragedAnnotationUse(final Issue issue, IssueResolutionAcceptor acceptor) {
AnnotationRemoveModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"io",
".",
"sarl",
".",
"lang",
".",
"validation",
".",
"IssueCodes",
".",
"USED_RESERVED_SARL_ANNOTATION",
")",
"public",
"void",
"fixDiscouragedAnnotationUse",
"(",
"final",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
"{",... | Quick fix for the discouraged annotation uses.
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"the",
"discouraged",
"annotation",
"uses",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L974-L977 |
56,645 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java | SARLQuickfixProvider.fixManualInlineDefinition | @Fix(io.sarl.lang.validation.IssueCodes.MANUAL_INLINE_DEFINITION)
public void fixManualInlineDefinition(final Issue issue, IssueResolutionAcceptor acceptor) {
AnnotationRemoveModification.accept(this, issue, acceptor);
} | java | @Fix(io.sarl.lang.validation.IssueCodes.MANUAL_INLINE_DEFINITION)
public void fixManualInlineDefinition(final Issue issue, IssueResolutionAcceptor acceptor) {
AnnotationRemoveModification.accept(this, issue, acceptor);
} | [
"@",
"Fix",
"(",
"io",
".",
"sarl",
".",
"lang",
".",
"validation",
".",
"IssueCodes",
".",
"MANUAL_INLINE_DEFINITION",
")",
"public",
"void",
"fixManualInlineDefinition",
"(",
"final",
"Issue",
"issue",
",",
"IssueResolutionAcceptor",
"acceptor",
")",
"{",
"Ann... | Quick fix for the manual definition of inline statements.
@param issue the issue.
@param acceptor the quick fix acceptor. | [
"Quick",
"fix",
"for",
"the",
"manual",
"definition",
"of",
"inline",
"statements",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/SARLQuickfixProvider.java#L984-L987 |
56,646 | sarl/sarl | contribs/io.sarl.pythongenerator/io.sarl.pythongenerator.ui/src/io/sarl/pythongenerator/ui/PyGeneratorUiPlugin.java | PyGeneratorUiPlugin.getDialogSettingsSection | public IDialogSettings getDialogSettingsSection(String name) {
final IDialogSettings dialogSettings = getDialogSettings();
IDialogSettings section = dialogSettings.getSection(name);
if (section == null) {
section = dialogSettings.addNewSection(name);
}
return section;
} | java | public IDialogSettings getDialogSettingsSection(String name) {
final IDialogSettings dialogSettings = getDialogSettings();
IDialogSettings section = dialogSettings.getSection(name);
if (section == null) {
section = dialogSettings.addNewSection(name);
}
return section;
} | [
"public",
"IDialogSettings",
"getDialogSettingsSection",
"(",
"String",
"name",
")",
"{",
"final",
"IDialogSettings",
"dialogSettings",
"=",
"getDialogSettings",
"(",
")",
";",
"IDialogSettings",
"section",
"=",
"dialogSettings",
".",
"getSection",
"(",
"name",
")",
... | Returns a section in the SARL Eclipse plugin's dialog settings.
If the section doesn't exist yet, it is created.
@param name the name of the section
@return the section of the given name | [
"Returns",
"a",
"section",
"in",
"the",
"SARL",
"Eclipse",
"plugin",
"s",
"dialog",
"settings",
".",
"If",
"the",
"section",
"doesn",
"t",
"exist",
"yet",
"it",
"is",
"created",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/contribs/io.sarl.pythongenerator/io.sarl.pythongenerator.ui/src/io/sarl/pythongenerator/ui/PyGeneratorUiPlugin.java#L77-L84 |
56,647 | sarl/sarl | contribs/io.sarl.pythongenerator/io.sarl.pythongenerator.generator/src/io/sarl/pythongenerator/generator/configuration/PyGeneratorConfigurationProvider.java | PyGeneratorConfigurationProvider.install | public PyGeneratorConfiguration install(ResourceSet resourceSet, PyGeneratorConfiguration config) {
assert config != null;
PyGeneratorConfigAdapter adapter = PyGeneratorConfigAdapter.findInEmfObject(resourceSet);
if (adapter == null) {
adapter = new PyGeneratorConfigAdapter();
}
adapter.attachToEmfObject(r... | java | public PyGeneratorConfiguration install(ResourceSet resourceSet, PyGeneratorConfiguration config) {
assert config != null;
PyGeneratorConfigAdapter adapter = PyGeneratorConfigAdapter.findInEmfObject(resourceSet);
if (adapter == null) {
adapter = new PyGeneratorConfigAdapter();
}
adapter.attachToEmfObject(r... | [
"public",
"PyGeneratorConfiguration",
"install",
"(",
"ResourceSet",
"resourceSet",
",",
"PyGeneratorConfiguration",
"config",
")",
"{",
"assert",
"config",
"!=",
"null",
";",
"PyGeneratorConfigAdapter",
"adapter",
"=",
"PyGeneratorConfigAdapter",
".",
"findInEmfObject",
... | Install the given configuration into the context.
@param resourceSet the target of the installation.
@param config the configuration to install.
@return the old configuration if one was previously installed. | [
"Install",
"the",
"given",
"configuration",
"into",
"the",
"context",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/contribs/io.sarl.pythongenerator/io.sarl.pythongenerator.generator/src/io/sarl/pythongenerator/generator/configuration/PyGeneratorConfigurationProvider.java#L94-L102 |
56,648 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/pygments/PygmentsGenerator2.java | PygmentsGenerator2.generatePythonSetup | protected void generatePythonSetup(IStyleAppendable it, String basename) {
it.appendNl("# -*- coding: {0} -*-", getCodeConfig().getEncoding().toLowerCase()); //$NON-NLS-1$
it.appendHeader();
it.newLine();
it.append("from setuptools import setup"); //$NON-NLS-1$
it.newLine().newLine();
it.append("setup ("); ... | java | protected void generatePythonSetup(IStyleAppendable it, String basename) {
it.appendNl("# -*- coding: {0} -*-", getCodeConfig().getEncoding().toLowerCase()); //$NON-NLS-1$
it.appendHeader();
it.newLine();
it.append("from setuptools import setup"); //$NON-NLS-1$
it.newLine().newLine();
it.append("setup ("); ... | [
"protected",
"void",
"generatePythonSetup",
"(",
"IStyleAppendable",
"it",
",",
"String",
"basename",
")",
"{",
"it",
".",
"appendNl",
"(",
"\"# -*- coding: {0} -*-\"",
",",
"getCodeConfig",
"(",
")",
".",
"getEncoding",
"(",
")",
".",
"toLowerCase",
"(",
")",
... | Create the content of the "setup.py" file.
@param it the content.
@param basename the basename. | [
"Create",
"the",
"content",
"of",
"the",
"setup",
".",
"py",
"file",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/pygments/PygmentsGenerator2.java#L254-L281 |
56,649 | sarl/sarl | main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/appenders/SarlBehaviorUnitSourceAppender.java | SarlBehaviorUnitSourceAppender.newTypeRef | public JvmParameterizedTypeReference newTypeRef(Notifier context, String typeName) {
return this.builder.newTypeRef(context, typeName);
} | java | public JvmParameterizedTypeReference newTypeRef(Notifier context, String typeName) {
return this.builder.newTypeRef(context, typeName);
} | [
"public",
"JvmParameterizedTypeReference",
"newTypeRef",
"(",
"Notifier",
"context",
",",
"String",
"typeName",
")",
"{",
"return",
"this",
".",
"builder",
".",
"newTypeRef",
"(",
"context",
",",
"typeName",
")",
";",
"}"
] | Find the reference to the type with the given name.
@param context the context for the type reference use
@param typeName the fully qualified name of the type
@return the type reference. | [
"Find",
"the",
"reference",
"to",
"the",
"type",
"with",
"the",
"given",
"name",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/appenders/SarlBehaviorUnitSourceAppender.java#L67-L69 |
56,650 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/codemining/SARLCodeMiningProvider.java | SARLCodeMiningProvider.getLightweightType | protected LightweightTypeReference getLightweightType(XExpression expr) {
final IResolvedTypes resolvedTypes = getResolvedTypes(expr);
final LightweightTypeReference expressionType = resolvedTypes.getActualType(expr);
if (expr instanceof AnonymousClass) {
final List<LightweightTypeReference> superTypes = expre... | java | protected LightweightTypeReference getLightweightType(XExpression expr) {
final IResolvedTypes resolvedTypes = getResolvedTypes(expr);
final LightweightTypeReference expressionType = resolvedTypes.getActualType(expr);
if (expr instanceof AnonymousClass) {
final List<LightweightTypeReference> superTypes = expre... | [
"protected",
"LightweightTypeReference",
"getLightweightType",
"(",
"XExpression",
"expr",
")",
"{",
"final",
"IResolvedTypes",
"resolvedTypes",
"=",
"getResolvedTypes",
"(",
"expr",
")",
";",
"final",
"LightweightTypeReference",
"expressionType",
"=",
"resolvedTypes",
".... | Replies the inferred type for the given expression.
@param expr the expression.
@return the type of the expression. | [
"Replies",
"the",
"inferred",
"type",
"for",
"the",
"given",
"expression",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/codemining/SARLCodeMiningProvider.java#L174-L184 |
56,651 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/codemining/SARLCodeMiningProvider.java | SARLCodeMiningProvider.createImplicitVariableType | private void createImplicitVariableType(XtextResource resource, IAcceptor<? super ICodeMining> acceptor) {
createImplicitVarValType(resource, acceptor, XtendVariableDeclaration.class,
it -> it.getType(),
it -> {
LightweightTypeReference type = getLightweightType(it.getRight());
if (type.isAny()) {
... | java | private void createImplicitVariableType(XtextResource resource, IAcceptor<? super ICodeMining> acceptor) {
createImplicitVarValType(resource, acceptor, XtendVariableDeclaration.class,
it -> it.getType(),
it -> {
LightweightTypeReference type = getLightweightType(it.getRight());
if (type.isAny()) {
... | [
"private",
"void",
"createImplicitVariableType",
"(",
"XtextResource",
"resource",
",",
"IAcceptor",
"<",
"?",
"super",
"ICodeMining",
">",
"acceptor",
")",
"{",
"createImplicitVarValType",
"(",
"resource",
",",
"acceptor",
",",
"XtendVariableDeclaration",
".",
"class... | Add an annotation when the variable's type is implicit and inferred by the SARL compiler.
@param resource the resource to parse.
@param acceptor the code mining acceptor. | [
"Add",
"an",
"annotation",
"when",
"the",
"variable",
"s",
"type",
"is",
"implicit",
"and",
"inferred",
"by",
"the",
"SARL",
"compiler",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/codemining/SARLCodeMiningProvider.java#L214-L226 |
56,652 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/codemining/SARLCodeMiningProvider.java | SARLCodeMiningProvider.createImplicitFieldType | private void createImplicitFieldType(XtextResource resource, IAcceptor<? super ICodeMining> acceptor) {
createImplicitVarValType(resource, acceptor, XtendField.class,
it -> it.getType(),
it -> {
final JvmField inferredField = (JvmField) this.jvmModelAssocitions.getPrimaryJvmElement(it);
if (inferredFiel... | java | private void createImplicitFieldType(XtextResource resource, IAcceptor<? super ICodeMining> acceptor) {
createImplicitVarValType(resource, acceptor, XtendField.class,
it -> it.getType(),
it -> {
final JvmField inferredField = (JvmField) this.jvmModelAssocitions.getPrimaryJvmElement(it);
if (inferredFiel... | [
"private",
"void",
"createImplicitFieldType",
"(",
"XtextResource",
"resource",
",",
"IAcceptor",
"<",
"?",
"super",
"ICodeMining",
">",
"acceptor",
")",
"{",
"createImplicitVarValType",
"(",
"resource",
",",
"acceptor",
",",
"XtendField",
".",
"class",
",",
"it",... | Add an annotation when the field's type is implicit and inferred by the SARL compiler.
@param resource the resource to parse.
@param acceptor the code mining acceptor. | [
"Add",
"an",
"annotation",
"when",
"the",
"field",
"s",
"type",
"is",
"implicit",
"and",
"inferred",
"by",
"the",
"SARL",
"compiler",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/codemining/SARLCodeMiningProvider.java#L233-L245 |
56,653 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/codemining/SARLCodeMiningProvider.java | SARLCodeMiningProvider.createImplicitActionReturnType | @SuppressWarnings("checkstyle:npathcomplexity")
private void createImplicitActionReturnType(XtextResource resource, IAcceptor<? super ICodeMining> acceptor) {
final List<XtendFunction> actions = EcoreUtil2.eAllOfType(resource.getContents().get(0), XtendFunction.class);
for (final XtendFunction action : actions) {... | java | @SuppressWarnings("checkstyle:npathcomplexity")
private void createImplicitActionReturnType(XtextResource resource, IAcceptor<? super ICodeMining> acceptor) {
final List<XtendFunction> actions = EcoreUtil2.eAllOfType(resource.getContents().get(0), XtendFunction.class);
for (final XtendFunction action : actions) {... | [
"@",
"SuppressWarnings",
"(",
"\"checkstyle:npathcomplexity\"",
")",
"private",
"void",
"createImplicitActionReturnType",
"(",
"XtextResource",
"resource",
",",
"IAcceptor",
"<",
"?",
"super",
"ICodeMining",
">",
"acceptor",
")",
"{",
"final",
"List",
"<",
"XtendFunct... | Add an annotation when the action's return type is implicit and inferred by the SARL compiler.
@param resource the resource to parse.
@param acceptor the code mining acceptor. | [
"Add",
"an",
"annotation",
"when",
"the",
"action",
"s",
"return",
"type",
"is",
"implicit",
"and",
"inferred",
"by",
"the",
"SARL",
"compiler",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/codemining/SARLCodeMiningProvider.java#L252-L298 |
56,654 | sarl/sarl | main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/services/SARLGrammarKeywordAccess.java | SARLGrammarKeywordAccess.getPureKeywords | public Set<String> getPureKeywords() {
Set<String> kws = this.pureSarlKeywords == null ? null : this.pureSarlKeywords.get();
if (kws == null) {
kws = new HashSet<>();
kws.add(getAsKeyword());
kws.add(getRequiresKeyword());
kws.add(getWithKeyword());
kws.add(getItKeyword());
kws.add(getArtifactKeyw... | java | public Set<String> getPureKeywords() {
Set<String> kws = this.pureSarlKeywords == null ? null : this.pureSarlKeywords.get();
if (kws == null) {
kws = new HashSet<>();
kws.add(getAsKeyword());
kws.add(getRequiresKeyword());
kws.add(getWithKeyword());
kws.add(getItKeyword());
kws.add(getArtifactKeyw... | [
"public",
"Set",
"<",
"String",
">",
"getPureKeywords",
"(",
")",
"{",
"Set",
"<",
"String",
">",
"kws",
"=",
"this",
".",
"pureSarlKeywords",
"==",
"null",
"?",
"null",
":",
"this",
".",
"pureSarlKeywords",
".",
"get",
"(",
")",
";",
"if",
"(",
"kws... | Replies the pure SARL keywords.
Pure SARL keywords are SARL keywords that are not Java keywords.
@return the pure SARL keywords. | [
"Replies",
"the",
"pure",
"SARL",
"keywords",
".",
"Pure",
"SARL",
"keywords",
"are",
"SARL",
"keywords",
"that",
"are",
"not",
"Java",
"keywords",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/services/SARLGrammarKeywordAccess.java#L946-L977 |
56,655 | sarl/sarl | main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/services/SARLGrammarKeywordAccess.java | SARLGrammarKeywordAccess.protectKeyword | public String protectKeyword(String text) {
if (!Strings.isEmpty(text) && isKeyword(text)) {
return "^" + text;
}
return text;
} | java | public String protectKeyword(String text) {
if (!Strings.isEmpty(text) && isKeyword(text)) {
return "^" + text;
}
return text;
} | [
"public",
"String",
"protectKeyword",
"(",
"String",
"text",
")",
"{",
"if",
"(",
"!",
"Strings",
".",
"isEmpty",
"(",
"text",
")",
"&&",
"isKeyword",
"(",
"text",
")",
")",
"{",
"return",
"\"^\"",
"+",
"text",
";",
"}",
"return",
"text",
";",
"}"
] | Protect the given text if it is a keyword.
@param text the text to protect.
@return the protected text. | [
"Protect",
"the",
"given",
"text",
"if",
"it",
"is",
"a",
"keyword",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/services/SARLGrammarKeywordAccess.java#L993-L998 |
56,656 | sarl/sarl | contribs/io.sarl.pythongenerator/io.sarl.pythongenerator.generator/src/io/sarl/pythongenerator/generator/validator/PyValidator.java | PyValidator.checkImportsMapping | @Check
public void checkImportsMapping(XImportDeclaration importDeclaration) {
final JvmDeclaredType type = importDeclaration.getImportedType();
doTypeMappingCheck(importDeclaration, type, this.typeErrorHandler1);
} | java | @Check
public void checkImportsMapping(XImportDeclaration importDeclaration) {
final JvmDeclaredType type = importDeclaration.getImportedType();
doTypeMappingCheck(importDeclaration, type, this.typeErrorHandler1);
} | [
"@",
"Check",
"public",
"void",
"checkImportsMapping",
"(",
"XImportDeclaration",
"importDeclaration",
")",
"{",
"final",
"JvmDeclaredType",
"type",
"=",
"importDeclaration",
".",
"getImportedType",
"(",
")",
";",
"doTypeMappingCheck",
"(",
"importDeclaration",
",",
"... | Check that import mapping are known.
@param importDeclaration the declaration. | [
"Check",
"that",
"import",
"mapping",
"are",
"known",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/contribs/io.sarl.pythongenerator/io.sarl.pythongenerator.generator/src/io/sarl/pythongenerator/generator/validator/PyValidator.java#L148-L152 |
56,657 | sarl/sarl | main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/wizards/importproject/MavenImportUtils.java | MavenImportUtils.importMavenProject | public static void importMavenProject(IWorkspaceRoot workspaceRoot, String projectName,
boolean addSarlSpecificSourceFolders, IProgressMonitor monitor) {
// XXX: The m2e plugin seems to have an issue for creating a fresh project with the SARL plugin as an extension.
// Solution: Create a simple project, and swit... | java | public static void importMavenProject(IWorkspaceRoot workspaceRoot, String projectName,
boolean addSarlSpecificSourceFolders, IProgressMonitor monitor) {
// XXX: The m2e plugin seems to have an issue for creating a fresh project with the SARL plugin as an extension.
// Solution: Create a simple project, and swit... | [
"public",
"static",
"void",
"importMavenProject",
"(",
"IWorkspaceRoot",
"workspaceRoot",
",",
"String",
"projectName",
",",
"boolean",
"addSarlSpecificSourceFolders",
",",
"IProgressMonitor",
"monitor",
")",
"{",
"// XXX: The m2e plugin seems to have an issue for creating a fres... | Create a fresh Maven project from existing files, assuming a pom file exists.
<p>If the Maven project is associated to an existing {@code IProject}, then the source folders
must be configured before the call to this function.
@param workspaceRoot the workspace root.
@param projectName the name of the project that is ... | [
"Create",
"a",
"fresh",
"Maven",
"project",
"from",
"existing",
"files",
"assuming",
"a",
"pom",
"file",
"exists",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/wizards/importproject/MavenImportUtils.java#L84-L110 |
56,658 | sarl/sarl | main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/wizards/importproject/MavenImportUtils.java | MavenImportUtils.runFixedImportJob | static List<IMavenProjectImportResult> runFixedImportJob(boolean addSarlSpecificSourceFolders,
Collection<MavenProjectInfo> projectInfos,
ProjectImportConfiguration importConfiguration, IProjectCreationListener projectCreationListener,
IProgressMonitor monitor) throws CoreException {
final List<IMavenProject... | java | static List<IMavenProjectImportResult> runFixedImportJob(boolean addSarlSpecificSourceFolders,
Collection<MavenProjectInfo> projectInfos,
ProjectImportConfiguration importConfiguration, IProjectCreationListener projectCreationListener,
IProgressMonitor monitor) throws CoreException {
final List<IMavenProject... | [
"static",
"List",
"<",
"IMavenProjectImportResult",
">",
"runFixedImportJob",
"(",
"boolean",
"addSarlSpecificSourceFolders",
",",
"Collection",
"<",
"MavenProjectInfo",
">",
"projectInfos",
",",
"ProjectImportConfiguration",
"importConfiguration",
",",
"IProjectCreationListene... | Run the job that execute a fixed import of a Maven project.
@param addSarlSpecificSourceFolders indicates if the source folders that are specific to SARL should be added.
@param projectInfos the list of descriptions for each project to import.
@param importConfiguration the import configuration.
@param projectCreation... | [
"Run",
"the",
"job",
"that",
"execute",
"a",
"fixed",
"import",
"of",
"a",
"Maven",
"project",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/wizards/importproject/MavenImportUtils.java#L123-L156 |
56,659 | sarl/sarl | main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/wizards/importproject/MavenImportUtils.java | MavenImportUtils.forceSimplePom | static void forceSimplePom(File projectDir, IProgressMonitor monitor) throws IOException {
final File pomFile = new File(projectDir, POM_FILE);
if (pomFile.exists()) {
final SubMonitor submon = SubMonitor.convert(monitor, 4);
final File savedPomFile = new File(projectDir, POM_BACKUP_FILE);
if (savedPomFile... | java | static void forceSimplePom(File projectDir, IProgressMonitor monitor) throws IOException {
final File pomFile = new File(projectDir, POM_FILE);
if (pomFile.exists()) {
final SubMonitor submon = SubMonitor.convert(monitor, 4);
final File savedPomFile = new File(projectDir, POM_BACKUP_FILE);
if (savedPomFile... | [
"static",
"void",
"forceSimplePom",
"(",
"File",
"projectDir",
",",
"IProgressMonitor",
"monitor",
")",
"throws",
"IOException",
"{",
"final",
"File",
"pomFile",
"=",
"new",
"File",
"(",
"projectDir",
",",
"POM_FILE",
")",
";",
"if",
"(",
"pomFile",
".",
"ex... | Force the pom file of a project to be "simple".
@param projectDir the folder in which the pom file is located.
@param monitor the progress monitor.
@throws IOException if the pom file cannot be changed. | [
"Force",
"the",
"pom",
"file",
"of",
"a",
"project",
"to",
"be",
"simple",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/wizards/importproject/MavenImportUtils.java#L186-L210 |
56,660 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/buildpath/AbstractSARLBasedClasspathContainer.java | AbstractSARLBasedClasspathContainer.getBundleDependencies | public final Set<String> getBundleDependencies() {
final Set<String> bundles = new TreeSet<>();
updateBundleList(bundles);
return bundles;
} | java | public final Set<String> getBundleDependencies() {
final Set<String> bundles = new TreeSet<>();
updateBundleList(bundles);
return bundles;
} | [
"public",
"final",
"Set",
"<",
"String",
">",
"getBundleDependencies",
"(",
")",
"{",
"final",
"Set",
"<",
"String",
">",
"bundles",
"=",
"new",
"TreeSet",
"<>",
"(",
")",
";",
"updateBundleList",
"(",
"bundles",
")",
";",
"return",
"bundles",
";",
"}"
] | Replies the list of the symbolic names of the bundle dependencies.
@return the bundle symbolic names of the dependencies. | [
"Replies",
"the",
"list",
"of",
"the",
"symbolic",
"names",
"of",
"the",
"bundle",
"dependencies",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/buildpath/AbstractSARLBasedClasspathContainer.java#L71-L75 |
56,661 | sarl/sarl | main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/core/Skill.java | Skill.getCaller | @SuppressWarnings("static-method")
@Pure
@Inline(value = "$1.getCaller()", imported = Capacities.class, constantExpression = true)
protected AgentTrait getCaller() {
return Capacities.getCaller();
} | java | @SuppressWarnings("static-method")
@Pure
@Inline(value = "$1.getCaller()", imported = Capacities.class, constantExpression = true)
protected AgentTrait getCaller() {
return Capacities.getCaller();
} | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"@",
"Pure",
"@",
"Inline",
"(",
"value",
"=",
"\"$1.getCaller()\"",
",",
"imported",
"=",
"Capacities",
".",
"class",
",",
"constantExpression",
"=",
"true",
")",
"protected",
"AgentTrait",
"getCaller",
"(... | Replies the caller of the capacity functions.
<p>The replied value has a meaning inside the skills' functions that
are implemented the capacities' functions.
@return the caller, or {@code null} if the caller is unknown (assuming that the caller is the agent itself).
@since 0.7 | [
"Replies",
"the",
"caller",
"of",
"the",
"capacity",
"functions",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/core/Skill.java#L75-L80 |
56,662 | sarl/sarl | main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/core/Skill.java | Skill.unregisterUse | void unregisterUse() {
final int value = this.uses.decrementAndGet();
if (value == 0) {
uninstall(UninstallationStage.PRE_DESTROY_EVENT);
uninstall(UninstallationStage.POST_DESTROY_EVENT);
}
} | java | void unregisterUse() {
final int value = this.uses.decrementAndGet();
if (value == 0) {
uninstall(UninstallationStage.PRE_DESTROY_EVENT);
uninstall(UninstallationStage.POST_DESTROY_EVENT);
}
} | [
"void",
"unregisterUse",
"(",
")",
"{",
"final",
"int",
"value",
"=",
"this",
".",
"uses",
".",
"decrementAndGet",
"(",
")",
";",
"if",
"(",
"value",
"==",
"0",
")",
"{",
"uninstall",
"(",
"UninstallationStage",
".",
"PRE_DESTROY_EVENT",
")",
";",
"unins... | Mark this skill as release by one user. | [
"Mark",
"this",
"skill",
"as",
"release",
"by",
"one",
"user",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/core/Skill.java#L93-L99 |
56,663 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/FormalParameterBuilderFragment.java | FormalParameterBuilderFragment.generateIFormalParameterBuilder | protected void generateIFormalParameterBuilder() {
final TypeReference builder = getFormalParameterBuilderInterface();
final StringConcatenationClient content = new StringConcatenationClient() {
@Override
protected void appendTo(TargetStringConcatenation it) {
it.append("/** Builder of a " + getLanguageNa... | java | protected void generateIFormalParameterBuilder() {
final TypeReference builder = getFormalParameterBuilderInterface();
final StringConcatenationClient content = new StringConcatenationClient() {
@Override
protected void appendTo(TargetStringConcatenation it) {
it.append("/** Builder of a " + getLanguageNa... | [
"protected",
"void",
"generateIFormalParameterBuilder",
"(",
")",
"{",
"final",
"TypeReference",
"builder",
"=",
"getFormalParameterBuilderInterface",
"(",
")",
";",
"final",
"StringConcatenationClient",
"content",
"=",
"new",
"StringConcatenationClient",
"(",
")",
"{",
... | Generate the formal parameter builder interface. | [
"Generate",
"the",
"formal",
"parameter",
"builder",
"interface",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/FormalParameterBuilderFragment.java#L100-L125 |
56,664 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/FormalParameterBuilderFragment.java | FormalParameterBuilderFragment.generateFormalParameterAppender | protected void generateFormalParameterAppender() {
final CodeElementExtractor.ElementDescription parameter = getCodeElementExtractor().getFormalParameter();
final String accessor = "get" //$NON-NLS-1$
+ Strings.toFirstUpper(parameter.getElementType().getSimpleName()) + "()"; //$NON-NLS-1$
final TypeReference ... | java | protected void generateFormalParameterAppender() {
final CodeElementExtractor.ElementDescription parameter = getCodeElementExtractor().getFormalParameter();
final String accessor = "get" //$NON-NLS-1$
+ Strings.toFirstUpper(parameter.getElementType().getSimpleName()) + "()"; //$NON-NLS-1$
final TypeReference ... | [
"protected",
"void",
"generateFormalParameterAppender",
"(",
")",
"{",
"final",
"CodeElementExtractor",
".",
"ElementDescription",
"parameter",
"=",
"getCodeElementExtractor",
"(",
")",
".",
"getFormalParameter",
"(",
")",
";",
"final",
"String",
"accessor",
"=",
"\"g... | Generate the formal parameter appender. | [
"Generate",
"the",
"formal",
"parameter",
"appender",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/FormalParameterBuilderFragment.java#L163-L197 |
56,665 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/StandardContextSpaceService.java | StandardContextSpaceService.fireContextCreated | protected void fireContextCreated(AgentContext context) {
final ContextRepositoryListener[] ilisteners = this.listeners.getListeners(ContextRepositoryListener.class);
this.logger.getKernelLogger().info(MessageFormat.format(Messages.StandardContextSpaceService_0, context.getID()));
for (final ContextRepositoryList... | java | protected void fireContextCreated(AgentContext context) {
final ContextRepositoryListener[] ilisteners = this.listeners.getListeners(ContextRepositoryListener.class);
this.logger.getKernelLogger().info(MessageFormat.format(Messages.StandardContextSpaceService_0, context.getID()));
for (final ContextRepositoryList... | [
"protected",
"void",
"fireContextCreated",
"(",
"AgentContext",
"context",
")",
"{",
"final",
"ContextRepositoryListener",
"[",
"]",
"ilisteners",
"=",
"this",
".",
"listeners",
".",
"getListeners",
"(",
"ContextRepositoryListener",
".",
"class",
")",
";",
"this",
... | Notifies the listeners about a context creation.
@param context reference to the created context. | [
"Notifies",
"the",
"listeners",
"about",
"a",
"context",
"creation",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/StandardContextSpaceService.java#L309-L315 |
56,666 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/StandardContextSpaceService.java | StandardContextSpaceService.fireContextDestroyed | protected void fireContextDestroyed(AgentContext context) {
final ContextRepositoryListener[] ilisteners = this.listeners.getListeners(ContextRepositoryListener.class);
this.logger.getKernelLogger().info(MessageFormat.format(Messages.StandardContextSpaceService_1, context.getID()));
for (final ContextRepositoryLi... | java | protected void fireContextDestroyed(AgentContext context) {
final ContextRepositoryListener[] ilisteners = this.listeners.getListeners(ContextRepositoryListener.class);
this.logger.getKernelLogger().info(MessageFormat.format(Messages.StandardContextSpaceService_1, context.getID()));
for (final ContextRepositoryLi... | [
"protected",
"void",
"fireContextDestroyed",
"(",
"AgentContext",
"context",
")",
"{",
"final",
"ContextRepositoryListener",
"[",
"]",
"ilisteners",
"=",
"this",
".",
"listeners",
".",
"getListeners",
"(",
"ContextRepositoryListener",
".",
"class",
")",
";",
"this",... | Notifies the listeners about a context destruction.
@param context reference to the destroyed context. | [
"Notifies",
"the",
"listeners",
"about",
"a",
"context",
"destruction",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/StandardContextSpaceService.java#L322-L328 |
56,667 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/StandardContextSpaceService.java | StandardContextSpaceService.removeDefaultSpaceDefinition | protected void removeDefaultSpaceDefinition(SpaceID spaceID) {
AgentContext context = null;
synchronized (mutex()) {
context = this.contexts.remove(spaceID.getContextID());
}
if (context != null) {
fireContextDestroyed(context);
}
} | java | protected void removeDefaultSpaceDefinition(SpaceID spaceID) {
AgentContext context = null;
synchronized (mutex()) {
context = this.contexts.remove(spaceID.getContextID());
}
if (context != null) {
fireContextDestroyed(context);
}
} | [
"protected",
"void",
"removeDefaultSpaceDefinition",
"(",
"SpaceID",
"spaceID",
")",
"{",
"AgentContext",
"context",
"=",
"null",
";",
"synchronized",
"(",
"mutex",
"(",
")",
")",
"{",
"context",
"=",
"this",
".",
"contexts",
".",
"remove",
"(",
"spaceID",
"... | Update the internal data structure when a default space was removed.
@param spaceID identifier of the space to remove. | [
"Update",
"the",
"internal",
"data",
"structure",
"when",
"a",
"default",
"space",
"was",
"removed",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/StandardContextSpaceService.java#L378-L386 |
56,668 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/latex/LaTeXListingsGenerator2.java | LaTeXListingsGenerator2.addRequirement | public void addRequirement(String requirement) {
if (!Strings.isEmpty(requirement)) {
if (this.requirements == null) {
this.requirements = new ArrayList<>();
}
this.requirements.add(requirement);
}
} | java | public void addRequirement(String requirement) {
if (!Strings.isEmpty(requirement)) {
if (this.requirements == null) {
this.requirements = new ArrayList<>();
}
this.requirements.add(requirement);
}
} | [
"public",
"void",
"addRequirement",
"(",
"String",
"requirement",
")",
"{",
"if",
"(",
"!",
"Strings",
".",
"isEmpty",
"(",
"requirement",
")",
")",
"{",
"if",
"(",
"this",
".",
"requirements",
"==",
"null",
")",
"{",
"this",
".",
"requirements",
"=",
... | Add a TeX requirement.
@param requirement the name of the TeX package. | [
"Add",
"a",
"TeX",
"requirement",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/latex/LaTeXListingsGenerator2.java#L255-L262 |
56,669 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/latex/LaTeXListingsGenerator2.java | LaTeXListingsGenerator2.generateOptions | @SuppressWarnings("static-method")
protected boolean generateOptions(IStyleAppendable it) {
it.appendNl("\\newif\\ifusesarlcolors\\usesarlcolorstrue"); //$NON-NLS-1$
it.appendNl("\\DeclareOption{sarlcolors}{\\global\\usesarlcolorstrue}"); //$NON-NLS-1$
it.appendNl("\\DeclareOption{nosarlcolors}{\\global\\usesarl... | java | @SuppressWarnings("static-method")
protected boolean generateOptions(IStyleAppendable it) {
it.appendNl("\\newif\\ifusesarlcolors\\usesarlcolorstrue"); //$NON-NLS-1$
it.appendNl("\\DeclareOption{sarlcolors}{\\global\\usesarlcolorstrue}"); //$NON-NLS-1$
it.appendNl("\\DeclareOption{nosarlcolors}{\\global\\usesarl... | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"protected",
"boolean",
"generateOptions",
"(",
"IStyleAppendable",
"it",
")",
"{",
"it",
".",
"appendNl",
"(",
"\"\\\\newif\\\\ifusesarlcolors\\\\usesarlcolorstrue\"",
")",
";",
"//$NON-NLS-1$",
"it",
".",
"append... | Generate the optional extensions.
@param it the target.
@return {@code true} if options are generated.
@since 0.6 | [
"Generate",
"the",
"optional",
"extensions",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/latex/LaTeXListingsGenerator2.java#L430-L436 |
56,670 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/network/AESEventEncrypter.java | AESEventEncrypter.setKey | @Inject
public void setKey(@Named(NetworkConfig.AES_KEY) String key) throws Exception {
final byte[] raw = key.getBytes(NetworkConfig.getStringEncodingCharset());
final int keySize = raw.length;
if ((keySize % 16) == 0 || (keySize % 24) == 0 || (keySize % 32) == 0) {
this.skeySpec = new SecretKeySpec(raw, "AE... | java | @Inject
public void setKey(@Named(NetworkConfig.AES_KEY) String key) throws Exception {
final byte[] raw = key.getBytes(NetworkConfig.getStringEncodingCharset());
final int keySize = raw.length;
if ((keySize % 16) == 0 || (keySize % 24) == 0 || (keySize % 32) == 0) {
this.skeySpec = new SecretKeySpec(raw, "AE... | [
"@",
"Inject",
"public",
"void",
"setKey",
"(",
"@",
"Named",
"(",
"NetworkConfig",
".",
"AES_KEY",
")",
"String",
"key",
")",
"throws",
"Exception",
"{",
"final",
"byte",
"[",
"]",
"raw",
"=",
"key",
".",
"getBytes",
"(",
"NetworkConfig",
".",
"getStrin... | Change the encryption key.
@param key injected encryption key.
@throws Exception - when the given key is invalid. | [
"Change",
"the",
"encryption",
"key",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/network/AESEventEncrypter.java#L62-L73 |
56,671 | sarl/sarl | docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/references/SarlLinkFactory.java | SarlLinkFactory.getLinkForPrimitive | @SuppressWarnings("static-method")
protected void getLinkForPrimitive(Content link, LinkInfo linkInfo, Type type) {
link.addContent(type.typeName());
} | java | @SuppressWarnings("static-method")
protected void getLinkForPrimitive(Content link, LinkInfo linkInfo, Type type) {
link.addContent(type.typeName());
} | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"protected",
"void",
"getLinkForPrimitive",
"(",
"Content",
"link",
",",
"LinkInfo",
"linkInfo",
",",
"Type",
"type",
")",
"{",
"link",
".",
"addContent",
"(",
"type",
".",
"typeName",
"(",
")",
")",
";... | Build the link for the primitive.
@param link the link.
@param linkInfo the information on the link.
@param type the type. | [
"Build",
"the",
"link",
"for",
"the",
"primitive",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/references/SarlLinkFactory.java#L64-L67 |
56,672 | sarl/sarl | docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/references/SarlLinkFactory.java | SarlLinkFactory.getLinkForAnnotationType | protected void getLinkForAnnotationType(Content link, LinkInfo linkInfo, Type type) {
link.addContent(getTypeAnnotationLinks(linkInfo));
linkInfo.type = type.asAnnotatedType().underlyingType();
link.addContent(getLink(linkInfo));
} | java | protected void getLinkForAnnotationType(Content link, LinkInfo linkInfo, Type type) {
link.addContent(getTypeAnnotationLinks(linkInfo));
linkInfo.type = type.asAnnotatedType().underlyingType();
link.addContent(getLink(linkInfo));
} | [
"protected",
"void",
"getLinkForAnnotationType",
"(",
"Content",
"link",
",",
"LinkInfo",
"linkInfo",
",",
"Type",
"type",
")",
"{",
"link",
".",
"addContent",
"(",
"getTypeAnnotationLinks",
"(",
"linkInfo",
")",
")",
";",
"linkInfo",
".",
"type",
"=",
"type",... | Build the link for the annotation type.
@param link the link.
@param linkInfo the information on the link.
@param type the type. | [
"Build",
"the",
"link",
"for",
"the",
"annotation",
"type",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/references/SarlLinkFactory.java#L75-L79 |
56,673 | sarl/sarl | docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/references/SarlLinkFactory.java | SarlLinkFactory.getLinkForWildcard | protected void getLinkForWildcard(Content link, LinkInfo linkInfo, Type type) {
linkInfo.isTypeBound = true;
link.addContent("?"); //$NON-NLS-1$
final WildcardType wildcardType = type.asWildcardType();
final Type[] extendsBounds = wildcardType.extendsBounds();
final SARLFeatureAccess kw = Utils.getKeywords();... | java | protected void getLinkForWildcard(Content link, LinkInfo linkInfo, Type type) {
linkInfo.isTypeBound = true;
link.addContent("?"); //$NON-NLS-1$
final WildcardType wildcardType = type.asWildcardType();
final Type[] extendsBounds = wildcardType.extendsBounds();
final SARLFeatureAccess kw = Utils.getKeywords();... | [
"protected",
"void",
"getLinkForWildcard",
"(",
"Content",
"link",
",",
"LinkInfo",
"linkInfo",
",",
"Type",
"type",
")",
"{",
"linkInfo",
".",
"isTypeBound",
"=",
"true",
";",
"link",
".",
"addContent",
"(",
"\"?\"",
")",
";",
"//$NON-NLS-1$",
"final",
"Wil... | Build the link for the wildcard.
@param link the link.
@param linkInfo the information on the link.
@param type the type. | [
"Build",
"the",
"link",
"for",
"the",
"wildcard",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/references/SarlLinkFactory.java#L87-L106 |
56,674 | sarl/sarl | docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/references/SarlLinkFactory.java | SarlLinkFactory.getLinkForTypeVariable | protected void getLinkForTypeVariable(Content link, LinkInfo linkInfo, Type type) {
link.addContent(getTypeAnnotationLinks(linkInfo));
linkInfo.isTypeBound = true;
final Doc owner = type.asTypeVariable().owner();
if ((!linkInfo.excludeTypeParameterLinks) && owner instanceof ClassDoc) {
linkInfo.classDoc = (C... | java | protected void getLinkForTypeVariable(Content link, LinkInfo linkInfo, Type type) {
link.addContent(getTypeAnnotationLinks(linkInfo));
linkInfo.isTypeBound = true;
final Doc owner = type.asTypeVariable().owner();
if ((!linkInfo.excludeTypeParameterLinks) && owner instanceof ClassDoc) {
linkInfo.classDoc = (C... | [
"protected",
"void",
"getLinkForTypeVariable",
"(",
"Content",
"link",
",",
"LinkInfo",
"linkInfo",
",",
"Type",
"type",
")",
"{",
"link",
".",
"addContent",
"(",
"getTypeAnnotationLinks",
"(",
"linkInfo",
")",
")",
";",
"linkInfo",
".",
"isTypeBound",
"=",
"t... | Build the link for the type variable.
@param link the link.
@param linkInfo the information on the link.
@param type the type. | [
"Build",
"the",
"link",
"for",
"the",
"type",
"variable",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/references/SarlLinkFactory.java#L114-L138 |
56,675 | sarl/sarl | docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/references/SarlLinkFactory.java | SarlLinkFactory.setBoundsLinkInfo | protected void setBoundsLinkInfo(LinkInfo linkInfo, Type bound) {
Reflect.callProc(this, LinkFactory.class, "setBoundsLinkInfo", //$NON-NLS-1$
new Class<?>[]{LinkInfo.class, Type.class},
linkInfo, bound);
} | java | protected void setBoundsLinkInfo(LinkInfo linkInfo, Type bound) {
Reflect.callProc(this, LinkFactory.class, "setBoundsLinkInfo", //$NON-NLS-1$
new Class<?>[]{LinkInfo.class, Type.class},
linkInfo, bound);
} | [
"protected",
"void",
"setBoundsLinkInfo",
"(",
"LinkInfo",
"linkInfo",
",",
"Type",
"bound",
")",
"{",
"Reflect",
".",
"callProc",
"(",
"this",
",",
"LinkFactory",
".",
"class",
",",
"\"setBoundsLinkInfo\"",
",",
"//$NON-NLS-1$",
"new",
"Class",
"<",
"?",
">",... | Change the bounds into the link info.
@param linkInfo the link info.
@param bound the new bounds. | [
"Change",
"the",
"bounds",
"into",
"the",
"link",
"info",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/references/SarlLinkFactory.java#L145-L149 |
56,676 | sarl/sarl | docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/references/SarlLinkFactory.java | SarlLinkFactory.getLinkForClass | protected Content getLinkForClass(Content link, LinkInfo linkInfo, Type type) {
if (linkInfo.isTypeBound && linkInfo.excludeTypeBoundsLinks) {
//Since we are excluding type parameter links, we should not
//be linking to the type bound.
link.addContent(type.typeName());
link.addContent(getTypeParameterLink... | java | protected Content getLinkForClass(Content link, LinkInfo linkInfo, Type type) {
if (linkInfo.isTypeBound && linkInfo.excludeTypeBoundsLinks) {
//Since we are excluding type parameter links, we should not
//be linking to the type bound.
link.addContent(type.typeName());
link.addContent(getTypeParameterLink... | [
"protected",
"Content",
"getLinkForClass",
"(",
"Content",
"link",
",",
"LinkInfo",
"linkInfo",
",",
"Type",
"type",
")",
"{",
"if",
"(",
"linkInfo",
".",
"isTypeBound",
"&&",
"linkInfo",
".",
"excludeTypeBoundsLinks",
")",
"{",
"//Since we are excluding type parame... | Build the link for the class.
@param link the link.
@param linkInfo the information on the link.
@param type the type.
@return the content. | [
"Build",
"the",
"link",
"for",
"the",
"class",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/references/SarlLinkFactory.java#L158-L173 |
56,677 | sarl/sarl | docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/references/SarlLinkFactory.java | SarlLinkFactory.updateLinkLabel | protected void updateLinkLabel(LinkInfo linkInfo) {
if (linkInfo.type != null && linkInfo instanceof LinkInfoImpl) {
final LinkInfoImpl impl = (LinkInfoImpl) linkInfo;
final ClassDoc classdoc = linkInfo.type.asClassDoc();
if (classdoc != null) {
final SARLFeatureAccess kw = Utils.getKeywords();
final... | java | protected void updateLinkLabel(LinkInfo linkInfo) {
if (linkInfo.type != null && linkInfo instanceof LinkInfoImpl) {
final LinkInfoImpl impl = (LinkInfoImpl) linkInfo;
final ClassDoc classdoc = linkInfo.type.asClassDoc();
if (classdoc != null) {
final SARLFeatureAccess kw = Utils.getKeywords();
final... | [
"protected",
"void",
"updateLinkLabel",
"(",
"LinkInfo",
"linkInfo",
")",
"{",
"if",
"(",
"linkInfo",
".",
"type",
"!=",
"null",
"&&",
"linkInfo",
"instanceof",
"LinkInfoImpl",
")",
"{",
"final",
"LinkInfoImpl",
"impl",
"=",
"(",
"LinkInfoImpl",
")",
"linkInfo... | Update the label of the given link with the SARL notation for lambdas.
@param linkInfo the link information to update. | [
"Update",
"the",
"label",
"of",
"the",
"given",
"link",
"with",
"the",
"SARL",
"notation",
"for",
"lambdas",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/references/SarlLinkFactory.java#L243-L257 |
56,678 | sarl/sarl | docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/references/SarlLinkFactory.java | SarlLinkFactory.createProcedureLambdaLabel | protected Content createProcedureLambdaLabel(LinkInfoImpl linkInfo) {
final ParameterizedType type = linkInfo.type.asParameterizedType();
if (type != null) {
final Type[] arguments = type.typeArguments();
if (arguments != null && arguments.length > 0) {
return createLambdaLabel(linkInfo, arguments, argume... | java | protected Content createProcedureLambdaLabel(LinkInfoImpl linkInfo) {
final ParameterizedType type = linkInfo.type.asParameterizedType();
if (type != null) {
final Type[] arguments = type.typeArguments();
if (arguments != null && arguments.length > 0) {
return createLambdaLabel(linkInfo, arguments, argume... | [
"protected",
"Content",
"createProcedureLambdaLabel",
"(",
"LinkInfoImpl",
"linkInfo",
")",
"{",
"final",
"ParameterizedType",
"type",
"=",
"linkInfo",
".",
"type",
".",
"asParameterizedType",
"(",
")",
";",
"if",
"(",
"type",
"!=",
"null",
")",
"{",
"final",
... | Create the label for a procedure lambda.
@param linkInfo the type.
@return the label. | [
"Create",
"the",
"label",
"for",
"a",
"procedure",
"lambda",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/references/SarlLinkFactory.java#L268-L277 |
56,679 | sarl/sarl | products/sarlc/src/main/java/io/sarl/lang/sarlc/modules/commands/CompilerCommandModule.java | CompilerCommandModule.provideSarlcCompilerCommand | @SuppressWarnings("static-method")
@Provides
@Singleton
public CompilerCommand provideSarlcCompilerCommand(Provider<SarlBatchCompiler> compiler,
Provider<SarlConfig> configuration, Provider<PathDetector> pathDetector,
Provider<ProgressBarConfig> commandConfig) {
return new CompilerCommand(compiler, configura... | java | @SuppressWarnings("static-method")
@Provides
@Singleton
public CompilerCommand provideSarlcCompilerCommand(Provider<SarlBatchCompiler> compiler,
Provider<SarlConfig> configuration, Provider<PathDetector> pathDetector,
Provider<ProgressBarConfig> commandConfig) {
return new CompilerCommand(compiler, configura... | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"@",
"Provides",
"@",
"Singleton",
"public",
"CompilerCommand",
"provideSarlcCompilerCommand",
"(",
"Provider",
"<",
"SarlBatchCompiler",
">",
"compiler",
",",
"Provider",
"<",
"SarlConfig",
">",
"configuration",
... | Provide the command for running the compiler.
@param compiler the compiler.
@param configuration the SARLC configuration.
@param pathDetector the detector of paths.
@param commandConfig the configuration of the command.
@return the command. | [
"Provide",
"the",
"command",
"for",
"running",
"the",
"compiler",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/products/sarlc/src/main/java/io/sarl/lang/sarlc/modules/commands/CompilerCommandModule.java#L77-L84 |
56,680 | sarl/sarl | products/sarlc/src/main/java/io/sarl/lang/sarlc/modules/commands/CompilerCommandModule.java | CompilerCommandModule.getProgressBarConfig | @SuppressWarnings("static-method")
@Provides
@Singleton
public ProgressBarConfig getProgressBarConfig(ConfigurationFactory configFactory, Injector injector) {
final ProgressBarConfig config = ProgressBarConfig.getConfiguration(configFactory);
injector.injectMembers(config);
return config;
} | java | @SuppressWarnings("static-method")
@Provides
@Singleton
public ProgressBarConfig getProgressBarConfig(ConfigurationFactory configFactory, Injector injector) {
final ProgressBarConfig config = ProgressBarConfig.getConfiguration(configFactory);
injector.injectMembers(config);
return config;
} | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"@",
"Provides",
"@",
"Singleton",
"public",
"ProgressBarConfig",
"getProgressBarConfig",
"(",
"ConfigurationFactory",
"configFactory",
",",
"Injector",
"injector",
")",
"{",
"final",
"ProgressBarConfig",
"config",
... | Replies the instance of the compiler command configuration.
@param configFactory accessor to the bootique factory.
@param injector the current injector.
@return the compiler command configuration accessor. | [
"Replies",
"the",
"instance",
"of",
"the",
"compiler",
"command",
"configuration",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/products/sarlc/src/main/java/io/sarl/lang/sarlc/modules/commands/CompilerCommandModule.java#L92-L99 |
56,681 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/macro/SarlProcessorInstanceForJvmTypeProvider.java | SarlProcessorInstanceForJvmTypeProvider.filterActiveProcessorType | public static JvmType filterActiveProcessorType(JvmType type, CommonTypeComputationServices services) {
if (AccessorsProcessor.class.getName().equals(type.getQualifiedName())) {
return services.getTypeReferences().findDeclaredType(SarlAccessorsProcessor.class, type);
}
return type;
} | java | public static JvmType filterActiveProcessorType(JvmType type, CommonTypeComputationServices services) {
if (AccessorsProcessor.class.getName().equals(type.getQualifiedName())) {
return services.getTypeReferences().findDeclaredType(SarlAccessorsProcessor.class, type);
}
return type;
} | [
"public",
"static",
"JvmType",
"filterActiveProcessorType",
"(",
"JvmType",
"type",
",",
"CommonTypeComputationServices",
"services",
")",
"{",
"if",
"(",
"AccessorsProcessor",
".",
"class",
".",
"getName",
"(",
")",
".",
"equals",
"(",
"type",
".",
"getQualifiedN... | Filter the type in order to create the correct processor.
@param type the type of the processor specified into the {@code @Active} annotation.
@param services the type services of the framework.
@return the real type of the processor to instance. | [
"Filter",
"the",
"type",
"in",
"order",
"to",
"create",
"the",
"correct",
"processor",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/macro/SarlProcessorInstanceForJvmTypeProvider.java#L59-L64 |
56,682 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLImages.java | SARLImages.forAgent | public ImageDescriptor forAgent(JvmVisibility visibility, int flags) {
return getDecorated(getTypeImageDescriptor(
SarlElementType.AGENT, false, false, toFlags(visibility), USE_LIGHT_ICONS), flags);
} | java | public ImageDescriptor forAgent(JvmVisibility visibility, int flags) {
return getDecorated(getTypeImageDescriptor(
SarlElementType.AGENT, false, false, toFlags(visibility), USE_LIGHT_ICONS), flags);
} | [
"public",
"ImageDescriptor",
"forAgent",
"(",
"JvmVisibility",
"visibility",
",",
"int",
"flags",
")",
"{",
"return",
"getDecorated",
"(",
"getTypeImageDescriptor",
"(",
"SarlElementType",
".",
"AGENT",
",",
"false",
",",
"false",
",",
"toFlags",
"(",
"visibility"... | Replies the image descriptor for the "agents".
@param visibility the visibility of the agent.
@param flags the mark flags. See {@link JavaElementImageDescriptor#setAdornments(int)} for
a description of the available flags.
@return the image descriptor for the agents. | [
"Replies",
"the",
"image",
"descriptor",
"for",
"the",
"agents",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLImages.java#L127-L130 |
56,683 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLImages.java | SARLImages.forBehavior | public ImageDescriptor forBehavior(JvmVisibility visibility, int flags) {
return getDecorated(getTypeImageDescriptor(
SarlElementType.BEHAVIOR, false, false, toFlags(visibility), USE_LIGHT_ICONS), flags);
} | java | public ImageDescriptor forBehavior(JvmVisibility visibility, int flags) {
return getDecorated(getTypeImageDescriptor(
SarlElementType.BEHAVIOR, false, false, toFlags(visibility), USE_LIGHT_ICONS), flags);
} | [
"public",
"ImageDescriptor",
"forBehavior",
"(",
"JvmVisibility",
"visibility",
",",
"int",
"flags",
")",
"{",
"return",
"getDecorated",
"(",
"getTypeImageDescriptor",
"(",
"SarlElementType",
".",
"BEHAVIOR",
",",
"false",
",",
"false",
",",
"toFlags",
"(",
"visib... | Replies the image descriptor for the "behaviors".
@param visibility the visibility of the behavior.
@param flags the mark flags. See {@link JavaElementImageDescriptor#setAdornments(int)} for
a description of the available flags.
@return the image descriptor for the behaviors. | [
"Replies",
"the",
"image",
"descriptor",
"for",
"the",
"behaviors",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLImages.java#L139-L142 |
56,684 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLImages.java | SARLImages.forCapacity | public ImageDescriptor forCapacity(JvmVisibility visibility, int flags) {
return getDecorated(getTypeImageDescriptor(
SarlElementType.CAPACITY, false, false, toFlags(visibility), USE_LIGHT_ICONS), flags);
} | java | public ImageDescriptor forCapacity(JvmVisibility visibility, int flags) {
return getDecorated(getTypeImageDescriptor(
SarlElementType.CAPACITY, false, false, toFlags(visibility), USE_LIGHT_ICONS), flags);
} | [
"public",
"ImageDescriptor",
"forCapacity",
"(",
"JvmVisibility",
"visibility",
",",
"int",
"flags",
")",
"{",
"return",
"getDecorated",
"(",
"getTypeImageDescriptor",
"(",
"SarlElementType",
".",
"CAPACITY",
",",
"false",
",",
"false",
",",
"toFlags",
"(",
"visib... | Replies the image descriptor for the "capacities".
@param visibility the visibility of the capacity.
@param flags the mark flags. See {@link JavaElementImageDescriptor#setAdornments(int)} for
a description of the available flags.
@return the image descriptor for the capacities. | [
"Replies",
"the",
"image",
"descriptor",
"for",
"the",
"capacities",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLImages.java#L151-L154 |
56,685 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLImages.java | SARLImages.forSkill | public ImageDescriptor forSkill(JvmVisibility visibility, int flags) {
return getDecorated(getTypeImageDescriptor(
SarlElementType.SKILL, false, false, toFlags(visibility), USE_LIGHT_ICONS), flags);
} | java | public ImageDescriptor forSkill(JvmVisibility visibility, int flags) {
return getDecorated(getTypeImageDescriptor(
SarlElementType.SKILL, false, false, toFlags(visibility), USE_LIGHT_ICONS), flags);
} | [
"public",
"ImageDescriptor",
"forSkill",
"(",
"JvmVisibility",
"visibility",
",",
"int",
"flags",
")",
"{",
"return",
"getDecorated",
"(",
"getTypeImageDescriptor",
"(",
"SarlElementType",
".",
"SKILL",
",",
"false",
",",
"false",
",",
"toFlags",
"(",
"visibility"... | Replies the image descriptor for the "skills".
@param visibility the visibility of the skill.
@param flags the mark flags. See {@link JavaElementImageDescriptor#setAdornments(int)} for
a description of the available flags.
@return the image descriptor for the skills. | [
"Replies",
"the",
"image",
"descriptor",
"for",
"the",
"skills",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLImages.java#L163-L166 |
56,686 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLImages.java | SARLImages.forEvent | public ImageDescriptor forEvent(JvmVisibility visibility, int flags) {
return getDecorated(getTypeImageDescriptor(
SarlElementType.EVENT, false, false, toFlags(visibility), USE_LIGHT_ICONS), flags);
} | java | public ImageDescriptor forEvent(JvmVisibility visibility, int flags) {
return getDecorated(getTypeImageDescriptor(
SarlElementType.EVENT, false, false, toFlags(visibility), USE_LIGHT_ICONS), flags);
} | [
"public",
"ImageDescriptor",
"forEvent",
"(",
"JvmVisibility",
"visibility",
",",
"int",
"flags",
")",
"{",
"return",
"getDecorated",
"(",
"getTypeImageDescriptor",
"(",
"SarlElementType",
".",
"EVENT",
",",
"false",
",",
"false",
",",
"toFlags",
"(",
"visibility"... | Replies the image descriptor for the "events".
@param visibility the visibility of the event.
@param flags the mark flags. See {@link JavaElementImageDescriptor#setAdornments(int)} for
a description of the available flags.
@return the image descriptor for the events. | [
"Replies",
"the",
"image",
"descriptor",
"for",
"the",
"events",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLImages.java#L175-L178 |
56,687 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLImages.java | SARLImages.forBehaviorUnit | public ImageDescriptor forBehaviorUnit() {
return getDecorated(getTypeImageDescriptor(
SarlElementType.BEHAVIOR_UNIT, false, false,
toFlags(JvmVisibility.PUBLIC), USE_LIGHT_ICONS), 0);
} | java | public ImageDescriptor forBehaviorUnit() {
return getDecorated(getTypeImageDescriptor(
SarlElementType.BEHAVIOR_UNIT, false, false,
toFlags(JvmVisibility.PUBLIC), USE_LIGHT_ICONS), 0);
} | [
"public",
"ImageDescriptor",
"forBehaviorUnit",
"(",
")",
"{",
"return",
"getDecorated",
"(",
"getTypeImageDescriptor",
"(",
"SarlElementType",
".",
"BEHAVIOR_UNIT",
",",
"false",
",",
"false",
",",
"toFlags",
"(",
"JvmVisibility",
".",
"PUBLIC",
")",
",",
"USE_LI... | Replies the image descriptor for the "behavior units".
@return the image descriptor for the behavior units. | [
"Replies",
"the",
"image",
"descriptor",
"for",
"the",
"behavior",
"units",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLImages.java#L184-L188 |
56,688 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLImages.java | SARLImages.forStaticConstructor | public ImageDescriptor forStaticConstructor() {
return getDecorated(
getMethodImageDescriptor(false, toFlags(JvmVisibility.PUBLIC)),
JavaElementImageDescriptor.CONSTRUCTOR | JavaElementImageDescriptor.STATIC);
} | java | public ImageDescriptor forStaticConstructor() {
return getDecorated(
getMethodImageDescriptor(false, toFlags(JvmVisibility.PUBLIC)),
JavaElementImageDescriptor.CONSTRUCTOR | JavaElementImageDescriptor.STATIC);
} | [
"public",
"ImageDescriptor",
"forStaticConstructor",
"(",
")",
"{",
"return",
"getDecorated",
"(",
"getMethodImageDescriptor",
"(",
"false",
",",
"toFlags",
"(",
"JvmVisibility",
".",
"PUBLIC",
")",
")",
",",
"JavaElementImageDescriptor",
".",
"CONSTRUCTOR",
"|",
"J... | Replies the image descriptor for the "static constructors".
@return the image descriptor for the agents.
@since 0.6 | [
"Replies",
"the",
"image",
"descriptor",
"for",
"the",
"static",
"constructors",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLImages.java#L236-L240 |
56,689 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/newproject/NewSarlProjectWizard.java | NewSarlProjectWizard.getPomTemplateLocation | public static URL getPomTemplateLocation() {
final URL url = Resources.getResource(NewSarlProjectWizard.class, POM_TEMPLATE_BASENAME);
assert url != null;
return url;
} | java | public static URL getPomTemplateLocation() {
final URL url = Resources.getResource(NewSarlProjectWizard.class, POM_TEMPLATE_BASENAME);
assert url != null;
return url;
} | [
"public",
"static",
"URL",
"getPomTemplateLocation",
"(",
")",
"{",
"final",
"URL",
"url",
"=",
"Resources",
".",
"getResource",
"(",
"NewSarlProjectWizard",
".",
"class",
",",
"POM_TEMPLATE_BASENAME",
")",
";",
"assert",
"url",
"!=",
"null",
";",
"return",
"u... | Replies the location of a template for the pom files.
@return the location. Should be never {@code null}.
@since 0.8
@see #POM_TEMPLATE_BASENAME | [
"Replies",
"the",
"location",
"of",
"a",
"template",
"for",
"the",
"pom",
"files",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/newproject/NewSarlProjectWizard.java#L128-L132 |
56,690 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/newproject/NewSarlProjectWizard.java | NewSarlProjectWizard.validateSARLSpecificElements | protected boolean validateSARLSpecificElements(IJavaProject javaProject) {
// Check if the "SARL" generation directory is a source folder.
final IPath outputPath = SARLPreferences.getSARLOutputPathFor(javaProject.getProject());
if (outputPath == null) {
final String message = MessageFormat.format(
Messag... | java | protected boolean validateSARLSpecificElements(IJavaProject javaProject) {
// Check if the "SARL" generation directory is a source folder.
final IPath outputPath = SARLPreferences.getSARLOutputPathFor(javaProject.getProject());
if (outputPath == null) {
final String message = MessageFormat.format(
Messag... | [
"protected",
"boolean",
"validateSARLSpecificElements",
"(",
"IJavaProject",
"javaProject",
")",
"{",
"// Check if the \"SARL\" generation directory is a source folder.",
"final",
"IPath",
"outputPath",
"=",
"SARLPreferences",
".",
"getSARLOutputPathFor",
"(",
"javaProject",
".",... | Validate the SARL properties of the new projects.
@param javaProject the created element
@return validity | [
"Validate",
"the",
"SARL",
"properties",
"of",
"the",
"new",
"projects",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/newproject/NewSarlProjectWizard.java#L202-L224 |
56,691 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/newproject/NewSarlProjectWizard.java | NewSarlProjectWizard.createDefaultMavenPom | protected void createDefaultMavenPom(IJavaProject project, String compilerCompliance) {
// Get the template resource.
final URL templateUrl = getPomTemplateLocation();
if (templateUrl != null) {
final String compliance = Strings.isNullOrEmpty(compilerCompliance) ? SARLVersion.MINIMAL_JDK_VERSION : compilerComp... | java | protected void createDefaultMavenPom(IJavaProject project, String compilerCompliance) {
// Get the template resource.
final URL templateUrl = getPomTemplateLocation();
if (templateUrl != null) {
final String compliance = Strings.isNullOrEmpty(compilerCompliance) ? SARLVersion.MINIMAL_JDK_VERSION : compilerComp... | [
"protected",
"void",
"createDefaultMavenPom",
"(",
"IJavaProject",
"project",
",",
"String",
"compilerCompliance",
")",
"{",
"// Get the template resource.",
"final",
"URL",
"templateUrl",
"=",
"getPomTemplateLocation",
"(",
")",
";",
"if",
"(",
"templateUrl",
"!=",
"... | Create the default Maven pom file for the project.
<p>Even if the project has not the Maven nature when it is created with this wizard,
the pom file is created in order to let the developer to switch to the Maven nature easily.
@param project the new project.
@param compilerCompliance the Java version that is support... | [
"Create",
"the",
"default",
"Maven",
"pom",
"file",
"for",
"the",
"project",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/newproject/NewSarlProjectWizard.java#L292-L325 |
56,692 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/newproject/NewSarlProjectWizard.java | NewSarlProjectWizard.getDefaultMavenGroupId | @SuppressWarnings("static-method")
protected String getDefaultMavenGroupId() {
final String userdomain = System.getenv("userdomain"); //$NON-NLS-1$
if (Strings.isNullOrEmpty(userdomain)) {
return "com.foo"; //$NON-NLS-1$
}
final String[] elements = userdomain.split(Pattern.quote(".")); //$NON-NLS-1$
final... | java | @SuppressWarnings("static-method")
protected String getDefaultMavenGroupId() {
final String userdomain = System.getenv("userdomain"); //$NON-NLS-1$
if (Strings.isNullOrEmpty(userdomain)) {
return "com.foo"; //$NON-NLS-1$
}
final String[] elements = userdomain.split(Pattern.quote(".")); //$NON-NLS-1$
final... | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"protected",
"String",
"getDefaultMavenGroupId",
"(",
")",
"{",
"final",
"String",
"userdomain",
"=",
"System",
".",
"getenv",
"(",
"\"userdomain\"",
")",
";",
"//$NON-NLS-1$",
"if",
"(",
"Strings",
".",
"i... | Replies the default group id for a maven project.
@return the default group id, never {@code null} nor empty string. | [
"Replies",
"the",
"default",
"group",
"id",
"for",
"a",
"maven",
"project",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/newproject/NewSarlProjectWizard.java#L331-L346 |
56,693 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/newproject/NewSarlProjectWizard.java | NewSarlProjectWizard.getActivePart | IWorkbenchPart getActivePart() {
final IWorkbenchWindow activeWindow = getWorkbench().getActiveWorkbenchWindow();
if (activeWindow != null) {
final IWorkbenchPage activePage = activeWindow.getActivePage();
if (activePage != null) {
return activePage.getActivePart();
}
}
return null;
} | java | IWorkbenchPart getActivePart() {
final IWorkbenchWindow activeWindow = getWorkbench().getActiveWorkbenchWindow();
if (activeWindow != null) {
final IWorkbenchPage activePage = activeWindow.getActivePage();
if (activePage != null) {
return activePage.getActivePart();
}
}
return null;
} | [
"IWorkbenchPart",
"getActivePart",
"(",
")",
"{",
"final",
"IWorkbenchWindow",
"activeWindow",
"=",
"getWorkbench",
"(",
")",
".",
"getActiveWorkbenchWindow",
"(",
")",
";",
"if",
"(",
"activeWindow",
"!=",
"null",
")",
"{",
"final",
"IWorkbenchPage",
"activePage"... | Replies the active part in the workbench.
@return the active part. | [
"Replies",
"the",
"active",
"part",
"in",
"the",
"workbench",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/newproject/NewSarlProjectWizard.java#L352-L361 |
56,694 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/Boot.java | Boot.getCurrentClasspath | public static String getCurrentClasspath() {
final StringBuilder path = new StringBuilder();
for (final URL url : getCurrentClassLoader().getURLs()) {
if (path.length() > 0) {
path.append(File.pathSeparator);
}
final File file = FileSystem.convertURLToFile(url);
if (file != null) {
path.append(f... | java | public static String getCurrentClasspath() {
final StringBuilder path = new StringBuilder();
for (final URL url : getCurrentClassLoader().getURLs()) {
if (path.length() > 0) {
path.append(File.pathSeparator);
}
final File file = FileSystem.convertURLToFile(url);
if (file != null) {
path.append(f... | [
"public",
"static",
"String",
"getCurrentClasspath",
"(",
")",
"{",
"final",
"StringBuilder",
"path",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"for",
"(",
"final",
"URL",
"url",
":",
"getCurrentClassLoader",
"(",
")",
".",
"getURLs",
"(",
")",
")",
"{",... | Replies the current class path.
@return the current class path.
@since 0.7 | [
"Replies",
"the",
"current",
"class",
"path",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/Boot.java#L360-L372 |
56,695 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/Boot.java | Boot.getCurrentClassLoader | private static URLClassLoader getCurrentClassLoader() {
synchronized (Boot.class) {
if (dynamicClassLoader == null) {
final ClassLoader cl = ClassLoader.getSystemClassLoader();
if (cl instanceof URLClassLoader) {
dynamicClassLoader = (URLClassLoader) cl;
} else {
dynamicClassLoader = URLClass... | java | private static URLClassLoader getCurrentClassLoader() {
synchronized (Boot.class) {
if (dynamicClassLoader == null) {
final ClassLoader cl = ClassLoader.getSystemClassLoader();
if (cl instanceof URLClassLoader) {
dynamicClassLoader = (URLClassLoader) cl;
} else {
dynamicClassLoader = URLClass... | [
"private",
"static",
"URLClassLoader",
"getCurrentClassLoader",
"(",
")",
"{",
"synchronized",
"(",
"Boot",
".",
"class",
")",
"{",
"if",
"(",
"dynamicClassLoader",
"==",
"null",
")",
"{",
"final",
"ClassLoader",
"cl",
"=",
"ClassLoader",
".",
"getSystemClassLoa... | Replies the current class loader.
@return the current class loader.
@since 0.7 | [
"Replies",
"the",
"current",
"class",
"loader",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/Boot.java#L380-L392 |
56,696 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/Boot.java | Boot.addToSystemClasspath | @SuppressWarnings("checkstyle:nestedifdepth")
public static void addToSystemClasspath(String entries) {
if (!Strings.isNullOrEmpty(entries)) {
final List<URL> cp = new ArrayList<>();
final String[] individualEntries = entries.split(Pattern.quote(File.pathSeparator));
for (final String entry : individualEntr... | java | @SuppressWarnings("checkstyle:nestedifdepth")
public static void addToSystemClasspath(String entries) {
if (!Strings.isNullOrEmpty(entries)) {
final List<URL> cp = new ArrayList<>();
final String[] individualEntries = entries.split(Pattern.quote(File.pathSeparator));
for (final String entry : individualEntr... | [
"@",
"SuppressWarnings",
"(",
"\"checkstyle:nestedifdepth\"",
")",
"public",
"static",
"void",
"addToSystemClasspath",
"(",
"String",
"entries",
")",
"{",
"if",
"(",
"!",
"Strings",
".",
"isNullOrEmpty",
"(",
"entries",
")",
")",
"{",
"final",
"List",
"<",
"UR... | Add the given entries to the system classpath.
@param entries the new classpath entries. The format of the value is the same as for the <code>-cp</code>
command-line option of the <code>java</code> tool. | [
"Add",
"the",
"given",
"entries",
"to",
"the",
"system",
"classpath",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/Boot.java#L399-L430 |
56,697 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/Boot.java | Boot.main | public static void main(String[] args) {
try {
Object[] freeArgs = parseCommandLine(args);
if (JanusConfig.getSystemPropertyAsBoolean(JanusConfig.JANUS_LOGO_SHOW_NAME,
JanusConfig.JANUS_LOGO_SHOW.booleanValue())) {
showJanusLogo();
}
if (freeArgs.length == 0) {
showError(Messages.Boot_3, nu... | java | public static void main(String[] args) {
try {
Object[] freeArgs = parseCommandLine(args);
if (JanusConfig.getSystemPropertyAsBoolean(JanusConfig.JANUS_LOGO_SHOW_NAME,
JanusConfig.JANUS_LOGO_SHOW.booleanValue())) {
showJanusLogo();
}
if (freeArgs.length == 0) {
showError(Messages.Boot_3, nu... | [
"public",
"static",
"void",
"main",
"(",
"String",
"[",
"]",
"args",
")",
"{",
"try",
"{",
"Object",
"[",
"]",
"freeArgs",
"=",
"parseCommandLine",
"(",
"args",
")",
";",
"if",
"(",
"JanusConfig",
".",
"getSystemPropertyAsBoolean",
"(",
"JanusConfig",
".",... | Main function that is parsing the command line and launching the first agent.
@param args command line arguments
@see #startJanus(Class, Object...) | [
"Main",
"function",
"that",
"is",
"parsing",
"the",
"command",
"line",
"and",
"launching",
"the",
"first",
"agent",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/Boot.java#L477-L511 |
56,698 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/Boot.java | Boot.getOptions | public static Options getOptions() {
final Options options = new Options();
options.addOption(CLI_OPTION_CLASSPATH_SHORT, CLI_OPTION_CLASSPATH_LONG, true,
Messages.Boot_24);
options.addOption(CLI_OPTION_EMBEDDED_SHORT, CLI_OPTION_EMBEDDED_LONG, false,
Messages.Boot_5);
options.addOption(CLI_OPTION_BO... | java | public static Options getOptions() {
final Options options = new Options();
options.addOption(CLI_OPTION_CLASSPATH_SHORT, CLI_OPTION_CLASSPATH_LONG, true,
Messages.Boot_24);
options.addOption(CLI_OPTION_EMBEDDED_SHORT, CLI_OPTION_EMBEDDED_LONG, false,
Messages.Boot_5);
options.addOption(CLI_OPTION_BO... | [
"public",
"static",
"Options",
"getOptions",
"(",
")",
"{",
"final",
"Options",
"options",
"=",
"new",
"Options",
"(",
")",
";",
"options",
".",
"addOption",
"(",
"CLI_OPTION_CLASSPATH_SHORT",
",",
"CLI_OPTION_CLASSPATH_LONG",
",",
"true",
",",
"Messages",
".",
... | Replies the command line options supported by this boot class.
@return the command line options. | [
"Replies",
"the",
"command",
"line",
"options",
"supported",
"by",
"this",
"boot",
"class",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/Boot.java#L542-L616 |
56,699 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/Boot.java | Boot.showError | @SuppressWarnings("checkstyle:regexp")
public static void showError(String message, Throwable exception) {
try (PrintWriter logger = new PrintWriter(getConsoleLogger())) {
if (message != null && !message.isEmpty()) {
logger.println(message);
} else if (exception != null) {
exception.printStackTrace(log... | java | @SuppressWarnings("checkstyle:regexp")
public static void showError(String message, Throwable exception) {
try (PrintWriter logger = new PrintWriter(getConsoleLogger())) {
if (message != null && !message.isEmpty()) {
logger.println(message);
} else if (exception != null) {
exception.printStackTrace(log... | [
"@",
"SuppressWarnings",
"(",
"\"checkstyle:regexp\"",
")",
"public",
"static",
"void",
"showError",
"(",
"String",
"message",
",",
"Throwable",
"exception",
")",
"{",
"try",
"(",
"PrintWriter",
"logger",
"=",
"new",
"PrintWriter",
"(",
"getConsoleLogger",
"(",
... | Show an error message, and exit.
<p>This function never returns.
@param message the description of the error.
@param exception the cause of the error. | [
"Show",
"an",
"error",
"message",
"and",
"exit",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/Boot.java#L626-L639 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.