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,800
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/newproject/BuildSettingWizardPage.java
BuildSettingWizardPage.createProvisonalProject
protected IProject createProvisonalProject() { final IStatus status = changeToNewProject(); if (status != null) { updateStatus(status); if (!status.isOK()) { ErrorDialog.openError( getShell(), NewWizardMessages.NewJavaProjectWizardPageTwo_error_title, null, status); } } retu...
java
protected IProject createProvisonalProject() { final IStatus status = changeToNewProject(); if (status != null) { updateStatus(status); if (!status.isOK()) { ErrorDialog.openError( getShell(), NewWizardMessages.NewJavaProjectWizardPageTwo_error_title, null, status); } } retu...
[ "protected", "IProject", "createProvisonalProject", "(", ")", "{", "final", "IStatus", "status", "=", "changeToNewProject", "(", ")", ";", "if", "(", "status", "!=", "null", ")", "{", "updateStatus", "(", "status", ")", ";", "if", "(", "!", "status", ".", ...
Creates the provisional project on which the wizard is working on. The provisional project is typically created when the page is entered the first time. The early project creation is required to configure linked folders. @return the provisional project
[ "Creates", "the", "provisional", "project", "on", "which", "the", "wizard", "is", "working", "on", ".", "The", "provisional", "project", "is", "typically", "created", "when", "the", "page", "is", "entered", "the", "first", "time", ".", "The", "early", "proje...
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/newproject/BuildSettingWizardPage.java#L637-L650
56,801
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/newproject/BuildSettingWizardPage.java
BuildSettingWizardPage.removeProvisonalProject
protected void removeProvisonalProject() { if (!this.currProject.exists()) { this.currProject = null; return; } final IRunnableWithProgress op = new IRunnableWithProgress() { @SuppressWarnings("synthetic-access") @Override public void run(IProgressMonitor monitor) throws InvocationTargetException,...
java
protected void removeProvisonalProject() { if (!this.currProject.exists()) { this.currProject = null; return; } final IRunnableWithProgress op = new IRunnableWithProgress() { @SuppressWarnings("synthetic-access") @Override public void run(IProgressMonitor monitor) throws InvocationTargetException,...
[ "protected", "void", "removeProvisonalProject", "(", ")", "{", "if", "(", "!", "this", ".", "currProject", ".", "exists", "(", ")", ")", "{", "this", ".", "currProject", "=", "null", ";", "return", ";", "}", "final", "IRunnableWithProgress", "op", "=", "...
Removes the provisional project. The provisional project is typically removed when the user cancels the wizard or goes back to the first page.
[ "Removes", "the", "provisional", "project", ".", "The", "provisional", "project", "is", "typically", "removed", "when", "the", "user", "cancels", "the", "wizard", "or", "goes", "back", "to", "the", "first", "page", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/newproject/BuildSettingWizardPage.java#L656-L679
56,802
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/repository/UniqueAddressParticipantRepository.java
UniqueAddressParticipantRepository.registerParticipant
public ADDRESST registerParticipant(ADDRESST address, EventListener entity) { synchronized (mutex()) { addListener(address, entity); this.participants.put(entity.getID(), address); } return address; }
java
public ADDRESST registerParticipant(ADDRESST address, EventListener entity) { synchronized (mutex()) { addListener(address, entity); this.participants.put(entity.getID(), address); } return address; }
[ "public", "ADDRESST", "registerParticipant", "(", "ADDRESST", "address", ",", "EventListener", "entity", ")", "{", "synchronized", "(", "mutex", "(", ")", ")", "{", "addListener", "(", "address", ",", "entity", ")", ";", "this", ".", "participants", ".", "pu...
Registers a new participant in this repository. @param address the address of the participant @param entity the entity associated to the specified address @return the address of the participant
[ "Registers", "a", "new", "participant", "in", "this", "repository", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/repository/UniqueAddressParticipantRepository.java#L87-L93
56,803
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/repository/UniqueAddressParticipantRepository.java
UniqueAddressParticipantRepository.unregisterParticipant
public ADDRESST unregisterParticipant(UUID entityID) { synchronized (mutex()) { removeListener(this.participants.get(entityID)); return this.participants.remove(entityID); } }
java
public ADDRESST unregisterParticipant(UUID entityID) { synchronized (mutex()) { removeListener(this.participants.get(entityID)); return this.participants.remove(entityID); } }
[ "public", "ADDRESST", "unregisterParticipant", "(", "UUID", "entityID", ")", "{", "synchronized", "(", "mutex", "(", ")", ")", "{", "removeListener", "(", "this", ".", "participants", ".", "get", "(", "entityID", ")", ")", ";", "return", "this", ".", "part...
Remove a participant with the given ID from this repository. @param entityID identifier of the participant to remove from this repository. @return the address that was mapped to the given participant.
[ "Remove", "a", "participant", "with", "the", "given", "ID", "from", "this", "repository", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/repository/UniqueAddressParticipantRepository.java#L111-L116
56,804
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/repository/UniqueAddressParticipantRepository.java
UniqueAddressParticipantRepository.getParticipantAddresses
public SynchronizedCollection<ADDRESST> getParticipantAddresses() { final Object mutex = mutex(); synchronized (mutex) { return Collections3.synchronizedCollection(this.participants.values(), mutex); } }
java
public SynchronizedCollection<ADDRESST> getParticipantAddresses() { final Object mutex = mutex(); synchronized (mutex) { return Collections3.synchronizedCollection(this.participants.values(), mutex); } }
[ "public", "SynchronizedCollection", "<", "ADDRESST", ">", "getParticipantAddresses", "(", ")", "{", "final", "Object", "mutex", "=", "mutex", "(", ")", ";", "synchronized", "(", "mutex", ")", "{", "return", "Collections3", ".", "synchronizedCollection", "(", "th...
Replies all the addresses of the participants that ar einside this repository. @return all the addresses.
[ "Replies", "all", "the", "addresses", "of", "the", "participants", "that", "ar", "einside", "this", "repository", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/repository/UniqueAddressParticipantRepository.java#L145-L150
56,805
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/repository/UniqueAddressParticipantRepository.java
UniqueAddressParticipantRepository.getParticipantIDs
public SynchronizedSet<UUID> getParticipantIDs() { final Object mutex = mutex(); synchronized (mutex) { return Collections3.synchronizedSet(this.participants.keySet(), mutex); } }
java
public SynchronizedSet<UUID> getParticipantIDs() { final Object mutex = mutex(); synchronized (mutex) { return Collections3.synchronizedSet(this.participants.keySet(), mutex); } }
[ "public", "SynchronizedSet", "<", "UUID", ">", "getParticipantIDs", "(", ")", "{", "final", "Object", "mutex", "=", "mutex", "(", ")", ";", "synchronized", "(", "mutex", ")", "{", "return", "Collections3", ".", "synchronizedSet", "(", "this", ".", "participa...
Replies the identifiers of all the participants in this repository. @return all the identifiers.
[ "Replies", "the", "identifiers", "of", "all", "the", "participants", "in", "this", "repository", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/repository/UniqueAddressParticipantRepository.java#L157-L162
56,806
sarl/sarl
main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/InitializeMojo.java
InitializeMojo.addSourceFolder
protected void addSourceFolder(String path) { final List<String> existingFolders1 = this.project.getCompileSourceRoots(); final List<String> existingFolders2 = this.project.getTestCompileSourceRoots(); if (!existingFolders1.contains(path) && !existingFolders2.contains(path)) { getLog().info(MessageFormat.forma...
java
protected void addSourceFolder(String path) { final List<String> existingFolders1 = this.project.getCompileSourceRoots(); final List<String> existingFolders2 = this.project.getTestCompileSourceRoots(); if (!existingFolders1.contains(path) && !existingFolders2.contains(path)) { getLog().info(MessageFormat.forma...
[ "protected", "void", "addSourceFolder", "(", "String", "path", ")", "{", "final", "List", "<", "String", ">", "existingFolders1", "=", "this", ".", "project", ".", "getCompileSourceRoots", "(", ")", ";", "final", "List", "<", "String", ">", "existingFolders2",...
Add a source folder in the current projecT. @param path the source folder path.
[ "Add", "a", "source", "folder", "in", "the", "current", "projecT", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/InitializeMojo.java#L70-L79
56,807
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/acceptors/MissedMethodAddModification.java
MissedMethodAddModification.cloneTypeReferences
private List<LightweightTypeReference> cloneTypeReferences(List<JvmTypeReference> types, Map<String, JvmTypeReference> typeParameterMap) { final List<LightweightTypeReference> newList = new ArrayList<>(types.size()); for (final JvmTypeReference type : types) { newList.add(cloneTypeReference(type, typeParamete...
java
private List<LightweightTypeReference> cloneTypeReferences(List<JvmTypeReference> types, Map<String, JvmTypeReference> typeParameterMap) { final List<LightweightTypeReference> newList = new ArrayList<>(types.size()); for (final JvmTypeReference type : types) { newList.add(cloneTypeReference(type, typeParamete...
[ "private", "List", "<", "LightweightTypeReference", ">", "cloneTypeReferences", "(", "List", "<", "JvmTypeReference", ">", "types", ",", "Map", "<", "String", ",", "JvmTypeReference", ">", "typeParameterMap", ")", "{", "final", "List", "<", "LightweightTypeReference...
Clone the given types by applying the type parameter mapping when necessary. @param types the types to clone. @param typeParameterMap the type parameter mapping. @return the clones.
[ "Clone", "the", "given", "types", "by", "applying", "the", "type", "parameter", "mapping", "when", "necessary", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/quickfix/acceptors/MissedMethodAddModification.java#L321-L328
56,808
sarl/sarl
products/sarlc/src/main/java/io/sarl/lang/sarlc/configs/subconfigs/ValidatorConfig.java
ValidatorConfig.setWarningLevels
@BQConfigProperty("Specify the levels of specific warnings") public void setWarningLevels(Map<String, Severity> levels) { if (levels == null) { this.warningLevels = new HashMap<>(); } else { this.warningLevels = levels; } }
java
@BQConfigProperty("Specify the levels of specific warnings") public void setWarningLevels(Map<String, Severity> levels) { if (levels == null) { this.warningLevels = new HashMap<>(); } else { this.warningLevels = levels; } }
[ "@", "BQConfigProperty", "(", "\"Specify the levels of specific warnings\"", ")", "public", "void", "setWarningLevels", "(", "Map", "<", "String", ",", "Severity", ">", "levels", ")", "{", "if", "(", "levels", "==", "null", ")", "{", "this", ".", "warningLevels"...
Change the specific warning levels. @param levels the warnings levels.
[ "Change", "the", "specific", "warning", "levels", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/products/sarlc/src/main/java/io/sarl/lang/sarlc/configs/subconfigs/ValidatorConfig.java#L90-L97
56,809
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java
AbstractExternalHighlightingFragment2.quoteRegex
protected static String quoteRegex(String regex) { if (regex == null) { return ""; //$NON-NLS-1$ } return regex.replaceAll(REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_PROTECT); }
java
protected static String quoteRegex(String regex) { if (regex == null) { return ""; //$NON-NLS-1$ } return regex.replaceAll(REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_PROTECT); }
[ "protected", "static", "String", "quoteRegex", "(", "String", "regex", ")", "{", "if", "(", "regex", "==", "null", ")", "{", "return", "\"\"", ";", "//$NON-NLS-1$", "}", "return", "regex", ".", "replaceAll", "(", "REGEX_SPECIAL_CHARS", ",", "REGEX_SPECIAL_CHAR...
Protect the given regular expression. @param regex the expression to protect. @return the protected expression.
[ "Protect", "the", "given", "regular", "expression", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java#L136-L141
56,810
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java
AbstractExternalHighlightingFragment2.orRegex
protected static String orRegex(Iterable<String> elements) { final StringBuilder regex = new StringBuilder(); for (final String element : elements) { if (regex.length() > 0) { regex.append("|"); //$NON-NLS-1$ } regex.append("(?:"); //$NON-NLS-1$ regex.append(quoteRegex(element)); regex.append(")"...
java
protected static String orRegex(Iterable<String> elements) { final StringBuilder regex = new StringBuilder(); for (final String element : elements) { if (regex.length() > 0) { regex.append("|"); //$NON-NLS-1$ } regex.append("(?:"); //$NON-NLS-1$ regex.append(quoteRegex(element)); regex.append(")"...
[ "protected", "static", "String", "orRegex", "(", "Iterable", "<", "String", ">", "elements", ")", "{", "final", "StringBuilder", "regex", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "final", "String", "element", ":", "elements", ")", "{", "if",...
Build a regular expression that is matching one of the given elements. @param elements the elements to match. @return the regular expression
[ "Build", "a", "regular", "expression", "that", "is", "matching", "one", "of", "the", "given", "elements", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java#L148-L159
56,811
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java
AbstractExternalHighlightingFragment2.sortedConcat
@SafeVarargs protected static Set<String> sortedConcat(Iterable<String>... iterables) { final Set<String> set = new TreeSet<>(); for (final Iterable<String> iterable : iterables) { for (final String obj : iterable) { set.add(obj); } } return set; }
java
@SafeVarargs protected static Set<String> sortedConcat(Iterable<String>... iterables) { final Set<String> set = new TreeSet<>(); for (final Iterable<String> iterable : iterables) { for (final String obj : iterable) { set.add(obj); } } return set; }
[ "@", "SafeVarargs", "protected", "static", "Set", "<", "String", ">", "sortedConcat", "(", "Iterable", "<", "String", ">", "...", "iterables", ")", "{", "final", "Set", "<", "String", ">", "set", "=", "new", "TreeSet", "<>", "(", ")", ";", "for", "(", ...
Concat the given iterables. @param iterables the iterables. @return the concat result.
[ "Concat", "the", "given", "iterables", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java#L175-L184
56,812
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java
AbstractExternalHighlightingFragment2.addMimeType
public void addMimeType(String mimeType) { if (!Strings.isEmpty(mimeType)) { for (final String mtype : mimeType.split("[:;,]")) { //$NON-NLS-1$ this.mimeTypes.add(mtype); } } }
java
public void addMimeType(String mimeType) { if (!Strings.isEmpty(mimeType)) { for (final String mtype : mimeType.split("[:;,]")) { //$NON-NLS-1$ this.mimeTypes.add(mtype); } } }
[ "public", "void", "addMimeType", "(", "String", "mimeType", ")", "{", "if", "(", "!", "Strings", ".", "isEmpty", "(", "mimeType", ")", ")", "{", "for", "(", "final", "String", "mtype", ":", "mimeType", ".", "split", "(", "\"[:;,]\"", ")", ")", "{", "...
Add a mime type for the SARL source code. @param mimeType the mime type of SARL.
[ "Add", "a", "mime", "type", "for", "the", "SARL", "source", "code", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java#L190-L196
56,813
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java
AbstractExternalHighlightingFragment2.getMimeTypes
@Pure public List<String> getMimeTypes() { if (this.mimeTypes.isEmpty()) { return Arrays.asList("text/x-" + getLanguageSimpleName().toLowerCase()); //$NON-NLS-1$ } return this.mimeTypes; }
java
@Pure public List<String> getMimeTypes() { if (this.mimeTypes.isEmpty()) { return Arrays.asList("text/x-" + getLanguageSimpleName().toLowerCase()); //$NON-NLS-1$ } return this.mimeTypes; }
[ "@", "Pure", "public", "List", "<", "String", ">", "getMimeTypes", "(", ")", "{", "if", "(", "this", ".", "mimeTypes", ".", "isEmpty", "(", ")", ")", "{", "return", "Arrays", ".", "asList", "(", "\"text/x-\"", "+", "getLanguageSimpleName", "(", ")", "....
Replies the mime types for the SARL source code. @return the mime type for SARL.
[ "Replies", "the", "mime", "types", "for", "the", "SARL", "source", "code", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java#L202-L208
56,814
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java
AbstractExternalHighlightingFragment2.getBasename
@Pure public String getBasename(String defaultName) { if (Strings.isEmpty(this.basename)) { return defaultName; } return this.basename; }
java
@Pure public String getBasename(String defaultName) { if (Strings.isEmpty(this.basename)) { return defaultName; } return this.basename; }
[ "@", "Pure", "public", "String", "getBasename", "(", "String", "defaultName", ")", "{", "if", "(", "Strings", ".", "isEmpty", "(", "this", ".", "basename", ")", ")", "{", "return", "defaultName", ";", "}", "return", "this", ".", "basename", ";", "}" ]
Replies the basename of the XML file to generate. @param defaultName the name to reply if the basename was not set. @return the basename.
[ "Replies", "the", "basename", "of", "the", "XML", "file", "to", "generate", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java#L235-L241
56,815
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java
AbstractExternalHighlightingFragment2.exploreGrammar
@SuppressWarnings("checkstyle:nestedifdepth") private static void exploreGrammar(Grammar grammar, Set<String> expressionKeywords, Set<String> modifiers, Set<String> primitiveTypes, Set<String> punctuation, Set<String> literals, Set<String> excludedKeywords, Set<String> ignored) { for (final AbstractRule rule :...
java
@SuppressWarnings("checkstyle:nestedifdepth") private static void exploreGrammar(Grammar grammar, Set<String> expressionKeywords, Set<String> modifiers, Set<String> primitiveTypes, Set<String> punctuation, Set<String> literals, Set<String> excludedKeywords, Set<String> ignored) { for (final AbstractRule rule :...
[ "@", "SuppressWarnings", "(", "\"checkstyle:nestedifdepth\"", ")", "private", "static", "void", "exploreGrammar", "(", "Grammar", "grammar", ",", "Set", "<", "String", ">", "expressionKeywords", ",", "Set", "<", "String", ">", "modifiers", ",", "Set", "<", "Stri...
Explore the grammar for extracting the key elements. @param grammar the grammar to explore. @param expressionKeywords the SARL keywords, usually within expressions. @param modifiers the modifier keywords. @param primitiveTypes the primitive types. @param punctuation the set of detected punctuation symbols. @param lite...
[ "Explore", "the", "grammar", "for", "extracting", "the", "key", "elements", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java#L329-L361
56,816
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java
AbstractExternalHighlightingFragment2.generate
protected final void generate(Set<String> literals, Set<String> expressionKeywords, Set<String> modifiers, Set<String> primitiveTypes, Set<String> punctuation, Set<String> ignored, Set<String> specialKeywords, Set<String> typeDeclarationKeywords) { final T appendable = newStyleAppendable(); generate(appendabl...
java
protected final void generate(Set<String> literals, Set<String> expressionKeywords, Set<String> modifiers, Set<String> primitiveTypes, Set<String> punctuation, Set<String> ignored, Set<String> specialKeywords, Set<String> typeDeclarationKeywords) { final T appendable = newStyleAppendable(); generate(appendabl...
[ "protected", "final", "void", "generate", "(", "Set", "<", "String", ">", "literals", ",", "Set", "<", "String", ">", "expressionKeywords", ",", "Set", "<", "String", ">", "modifiers", ",", "Set", "<", "String", ">", "primitiveTypes", ",", "Set", "<", "S...
Generate the external specification. @param literals the SARL literals. @param expressionKeywords the SARL keywords, usually within expressions. @param modifiers the modifier keywords. @param primitiveTypes the primitive types. @param punctuation the SARL punctuation symbols. @param ignored the ignored literals (mostl...
[ "Generate", "the", "external", "specification", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java#L476-L487
56,817
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java
AbstractExternalHighlightingFragment2.concat
public static CharSequence concat(CharSequence... lines) { return new CharSequence() { private final StringBuilder content = new StringBuilder(); private int next; private int length = -1; @Override public String toString() { ensure(length()); return this.content.toString(); } privat...
java
public static CharSequence concat(CharSequence... lines) { return new CharSequence() { private final StringBuilder content = new StringBuilder(); private int next; private int length = -1; @Override public String toString() { ensure(length()); return this.content.toString(); } privat...
[ "public", "static", "CharSequence", "concat", "(", "CharSequence", "...", "lines", ")", "{", "return", "new", "CharSequence", "(", ")", "{", "private", "final", "StringBuilder", "content", "=", "new", "StringBuilder", "(", ")", ";", "private", "int", "next", ...
Contact the given strings of characters. @param lines the lines. @return the concatenation result.
[ "Contact", "the", "given", "strings", "of", "characters", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java#L528-L577
56,818
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java
AbstractExternalHighlightingFragment2.generateReadme
protected void generateReadme(String basename) { final Object content = getReadmeFileContent(basename); if (content != null) { final String textualContent = content.toString(); if (!Strings.isEmpty(textualContent)) { final byte[] bytes = textualContent.getBytes(); for (final String output : getOutputs...
java
protected void generateReadme(String basename) { final Object content = getReadmeFileContent(basename); if (content != null) { final String textualContent = content.toString(); if (!Strings.isEmpty(textualContent)) { final byte[] bytes = textualContent.getBytes(); for (final String output : getOutputs...
[ "protected", "void", "generateReadme", "(", "String", "basename", ")", "{", "final", "Object", "content", "=", "getReadmeFileContent", "(", "basename", ")", ";", "if", "(", "content", "!=", "null", ")", "{", "final", "String", "textualContent", "=", "content",...
Generate the README file. @param basename the basename of the generated file. @since 0.6
[ "Generate", "the", "README", "file", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java#L584-L602
56,819
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java
AbstractExternalHighlightingFragment2.getLanguageSimpleName
protected String getLanguageSimpleName() { final String name = getGrammar().getName(); final int index = name.lastIndexOf('.'); if (index > 0) { return name.substring(index + 1); } return name; }
java
protected String getLanguageSimpleName() { final String name = getGrammar().getName(); final int index = name.lastIndexOf('.'); if (index > 0) { return name.substring(index + 1); } return name; }
[ "protected", "String", "getLanguageSimpleName", "(", ")", "{", "final", "String", "name", "=", "getGrammar", "(", ")", ".", "getName", "(", ")", ";", "final", "int", "index", "=", "name", ".", "lastIndexOf", "(", "'", "'", ")", ";", "if", "(", "index",...
Replies the simple name of the language. @return the name.
[ "Replies", "the", "simple", "name", "of", "the", "language", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java#L665-L672
56,820
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java
AbstractExternalHighlightingFragment2.lines
@Pure protected String lines(String prefix, String... lines) { final String delimiter = getCodeConfig().getLineDelimiter(); final StringBuilder buffer = new StringBuilder(); for (final String line : lines) { buffer.append(prefix); buffer.append(line); buffer.append(delimiter); } return buffer.toStri...
java
@Pure protected String lines(String prefix, String... lines) { final String delimiter = getCodeConfig().getLineDelimiter(); final StringBuilder buffer = new StringBuilder(); for (final String line : lines) { buffer.append(prefix); buffer.append(line); buffer.append(delimiter); } return buffer.toStri...
[ "@", "Pure", "protected", "String", "lines", "(", "String", "prefix", ",", "String", "...", "lines", ")", "{", "final", "String", "delimiter", "=", "getCodeConfig", "(", ")", ".", "getLineDelimiter", "(", ")", ";", "final", "StringBuilder", "buffer", "=", ...
Merge the given lines with prefix. @param prefix the prefix to add to each line. @param lines the lines. @return the merged elements.
[ "Merge", "the", "given", "lines", "with", "prefix", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java#L694-L704
56,821
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/SarlOutputConfigurationProvider.java
SarlOutputConfigurationProvider.createStandardOutputConfiguration
@SuppressWarnings("static-method") protected OutputConfiguration createStandardOutputConfiguration() { final OutputConfiguration defaultOutput = new OutputConfiguration(IFileSystemAccess.DEFAULT_OUTPUT); defaultOutput.setDescription(Messages.SarlOutputConfigurationProvider_0); defaultOutput.setOutputDirectory(SA...
java
@SuppressWarnings("static-method") protected OutputConfiguration createStandardOutputConfiguration() { final OutputConfiguration defaultOutput = new OutputConfiguration(IFileSystemAccess.DEFAULT_OUTPUT); defaultOutput.setDescription(Messages.SarlOutputConfigurationProvider_0); defaultOutput.setOutputDirectory(SA...
[ "@", "SuppressWarnings", "(", "\"static-method\"", ")", "protected", "OutputConfiguration", "createStandardOutputConfiguration", "(", ")", "{", "final", "OutputConfiguration", "defaultOutput", "=", "new", "OutputConfiguration", "(", "IFileSystemAccess", ".", "DEFAULT_OUTPUT",...
Create the standard output configuration. @return the configuration, never {@code null}. @since 0.8
[ "Create", "the", "standard", "output", "configuration", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/SarlOutputConfigurationProvider.java#L67-L79
56,822
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/modules/kernel/MandatoryKernelModule.java
MandatoryKernelModule.getKernel
@Provides @io.janusproject.kernel.annotations.Kernel @Singleton public static AgentContext getKernel(ContextSpaceService contextService, @Named(JanusConfig.DEFAULT_CONTEXT_ID_NAME) UUID janusContextID, @Named(JanusConfig.DEFAULT_SPACE_ID_NAME) UUID defaultJanusSpaceId) { return contextService.createContext(j...
java
@Provides @io.janusproject.kernel.annotations.Kernel @Singleton public static AgentContext getKernel(ContextSpaceService contextService, @Named(JanusConfig.DEFAULT_CONTEXT_ID_NAME) UUID janusContextID, @Named(JanusConfig.DEFAULT_SPACE_ID_NAME) UUID defaultJanusSpaceId) { return contextService.createContext(j...
[ "@", "Provides", "@", "io", ".", "janusproject", ".", "kernel", ".", "annotations", ".", "Kernel", "@", "Singleton", "public", "static", "AgentContext", "getKernel", "(", "ContextSpaceService", "contextService", ",", "@", "Named", "(", "JanusConfig", ".", "DEFAU...
Construct the root agent context within the Janus platform. @param contextService the service for managing the contexts. @param janusContextID the root context's id. @param defaultJanusSpaceId the id of the space within the root context. @return the root context.
[ "Construct", "the", "root", "agent", "context", "within", "the", "Janus", "platform", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/modules/kernel/MandatoryKernelModule.java#L93-L100
56,823
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/modules/kernel/MandatoryKernelModule.java
MandatoryKernelModule.createAgentInternalEventsDispatcher
@Provides public static AgentInternalEventsDispatcher createAgentInternalEventsDispatcher(Injector injector) { final AgentInternalEventsDispatcher aeb = new AgentInternalEventsDispatcher(injector.getInstance(ExecutorService.class)); // to be able to inject the ExecutorService and SubscriberFindingStrategy inject...
java
@Provides public static AgentInternalEventsDispatcher createAgentInternalEventsDispatcher(Injector injector) { final AgentInternalEventsDispatcher aeb = new AgentInternalEventsDispatcher(injector.getInstance(ExecutorService.class)); // to be able to inject the ExecutorService and SubscriberFindingStrategy inject...
[ "@", "Provides", "public", "static", "AgentInternalEventsDispatcher", "createAgentInternalEventsDispatcher", "(", "Injector", "injector", ")", "{", "final", "AgentInternalEventsDispatcher", "aeb", "=", "new", "AgentInternalEventsDispatcher", "(", "injector", ".", "getInstance...
Create an instance of the event dispatcher for an agent. @param injector the injector. @return the event dispatcher.
[ "Create", "an", "instance", "of", "the", "event", "dispatcher", "for", "an", "agent", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/modules/kernel/MandatoryKernelModule.java#L107-L113
56,824
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/SARLReentrantTypeResolver.java
SARLReentrantTypeResolver.getSarlCapacityFieldType
protected LightweightTypeReference getSarlCapacityFieldType(IResolvedTypes resolvedTypes, JvmField field) { // For capacity call redirection LightweightTypeReference fieldType = resolvedTypes.getActualType(field); final JvmAnnotationReference capacityAnnotation = this.annotationLookup.findAnnotation(field, Im...
java
protected LightweightTypeReference getSarlCapacityFieldType(IResolvedTypes resolvedTypes, JvmField field) { // For capacity call redirection LightweightTypeReference fieldType = resolvedTypes.getActualType(field); final JvmAnnotationReference capacityAnnotation = this.annotationLookup.findAnnotation(field, Im...
[ "protected", "LightweightTypeReference", "getSarlCapacityFieldType", "(", "IResolvedTypes", "resolvedTypes", ",", "JvmField", "field", ")", "{", "// For capacity call redirection", "LightweightTypeReference", "fieldType", "=", "resolvedTypes", ".", "getActualType", "(", "field"...
Replies the type of the field that represents a SARL capacity buffer. @param resolvedTypes the resolver of types. @param field the field. @return the type, never {@code null}.
[ "Replies", "the", "type", "of", "the", "field", "that", "represents", "a", "SARL", "capacity", "buffer", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/SARLReentrantTypeResolver.java#L143-L153
56,825
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/SARLReentrantTypeResolver.java
SARLReentrantTypeResolver.createSarlCapacityExtensionProvider
protected XAbstractFeatureCall createSarlCapacityExtensionProvider(JvmIdentifiableElement thisFeature, JvmField field) { // For capacity call redirection if (thisFeature instanceof JvmDeclaredType) { final JvmAnnotationReference capacityAnnotation = this.annotationLookup.findAnnotation(field, ImportedCapaci...
java
protected XAbstractFeatureCall createSarlCapacityExtensionProvider(JvmIdentifiableElement thisFeature, JvmField field) { // For capacity call redirection if (thisFeature instanceof JvmDeclaredType) { final JvmAnnotationReference capacityAnnotation = this.annotationLookup.findAnnotation(field, ImportedCapaci...
[ "protected", "XAbstractFeatureCall", "createSarlCapacityExtensionProvider", "(", "JvmIdentifiableElement", "thisFeature", ",", "JvmField", "field", ")", "{", "// For capacity call redirection", "if", "(", "thisFeature", "instanceof", "JvmDeclaredType", ")", "{", "final", "Jvm...
Create the extension provider dedicated to the access to the used capacity functions. @param thisFeature the current object. @param field the extension field. @return the SARL capacity extension provider, or {@code null}.
[ "Create", "the", "extension", "provider", "dedicated", "to", "the", "access", "to", "the", "used", "capacity", "functions", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/SARLReentrantTypeResolver.java#L161-L182
56,826
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/executors/JdkRejectedExecutionHandler.java
JdkRejectedExecutionHandler.runRejectedTask
protected static boolean runRejectedTask(Runnable runnable, ThreadPoolExecutor executor) { // Runs the task directly in the calling thread of the {@code execute} method, // unless the executor has been shut down, in which case the task // is discarded. if (!executor.isShutdown()) { runnable.run(); return ...
java
protected static boolean runRejectedTask(Runnable runnable, ThreadPoolExecutor executor) { // Runs the task directly in the calling thread of the {@code execute} method, // unless the executor has been shut down, in which case the task // is discarded. if (!executor.isShutdown()) { runnable.run(); return ...
[ "protected", "static", "boolean", "runRejectedTask", "(", "Runnable", "runnable", ",", "ThreadPoolExecutor", "executor", ")", "{", "// Runs the task directly in the calling thread of the {@code execute} method,", "// unless the executor has been shut down, in which case the task", "// is...
Run the given task within the current thread if the executor is not shut down. The task is not run by the given executor. The executor is used for checking if the executor service is shut down. @param runnable the runnable task to be executed @param executor the executor attempting to give the shut down status @return...
[ "Run", "the", "given", "task", "within", "the", "current", "thread", "if", "the", "executor", "is", "not", "shut", "down", ".", "The", "task", "is", "not", "run", "by", "the", "given", "executor", ".", "The", "executor", "is", "used", "for", "checking", ...
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/executors/JdkRejectedExecutionHandler.java#L79-L88
56,827
sarl/sarl
main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/core/Capacities.java
Capacities.createSkillDelegator
@Pure public static <C extends Capacity> C createSkillDelegator(Skill originalSkill, Class<C> capacity, AgentTrait capacityCaller) throws Exception { final String name = capacity.getName() + CAPACITY_WRAPPER_NAME; final Class<?> type = Class.forName(name, true, capacity.getClassLoader()); final Constructor<?>...
java
@Pure public static <C extends Capacity> C createSkillDelegator(Skill originalSkill, Class<C> capacity, AgentTrait capacityCaller) throws Exception { final String name = capacity.getName() + CAPACITY_WRAPPER_NAME; final Class<?> type = Class.forName(name, true, capacity.getClassLoader()); final Constructor<?>...
[ "@", "Pure", "public", "static", "<", "C", "extends", "Capacity", ">", "C", "createSkillDelegator", "(", "Skill", "originalSkill", ",", "Class", "<", "C", ">", "capacity", ",", "AgentTrait", "capacityCaller", ")", "throws", "Exception", "{", "final", "String",...
Create a delegator for the given skill. <p>The delegator is wrapping the original skill in order to set the value of the caller that will be replied by {@link #getCaller()}. The associated caller is given as argument. <p>The delegator is an instance of an specific inner type, sub-type of {@link Capacity.ContextAwareC...
[ "Create", "a", "delegator", "for", "the", "given", "skill", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/core/Capacities.java#L87-L94
56,828
sarl/sarl
main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/core/Capacities.java
Capacities.createSkillDelegatorIfPossible
@Pure public static <C extends Capacity> C createSkillDelegatorIfPossible(Skill originalSkill, Class<C> capacity, AgentTrait capacityCaller) throws ClassCastException { try { return Capacities.createSkillDelegator(originalSkill, capacity, capacityCaller); } catch (Exception e) { return capacity.cast(origi...
java
@Pure public static <C extends Capacity> C createSkillDelegatorIfPossible(Skill originalSkill, Class<C> capacity, AgentTrait capacityCaller) throws ClassCastException { try { return Capacities.createSkillDelegator(originalSkill, capacity, capacityCaller); } catch (Exception e) { return capacity.cast(origi...
[ "@", "Pure", "public", "static", "<", "C", "extends", "Capacity", ">", "C", "createSkillDelegatorIfPossible", "(", "Skill", "originalSkill", ",", "Class", "<", "C", ">", "capacity", ",", "AgentTrait", "capacityCaller", ")", "throws", "ClassCastException", "{", "...
Create a delegator for the given skill when it is possible. <p>The delegator is wrapping the original skill in order to set the value of the caller that will be replied by {@link #getCaller()}. The associated caller is given as argument. <p>The delegator is an instance of an specific inner type, sub-type of {@link Ca...
[ "Create", "a", "delegator", "for", "the", "given", "skill", "when", "it", "is", "possible", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/core/Capacities.java#L122-L130
56,829
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/appenders/AbstractSourceAppender.java
AbstractSourceAppender.build
protected void build(EObject object, ISourceAppender appender) throws IOException { final IJvmTypeProvider provider = getTypeResolutionContext(); if (provider != null) { final Map<Key<?>, Binding<?>> bindings = this.originalInjector.getBindings(); Injector localInjector = CodeBuilderFactory.createOverridingIn...
java
protected void build(EObject object, ISourceAppender appender) throws IOException { final IJvmTypeProvider provider = getTypeResolutionContext(); if (provider != null) { final Map<Key<?>, Binding<?>> bindings = this.originalInjector.getBindings(); Injector localInjector = CodeBuilderFactory.createOverridingIn...
[ "protected", "void", "build", "(", "EObject", "object", ",", "ISourceAppender", "appender", ")", "throws", "IOException", "{", "final", "IJvmTypeProvider", "provider", "=", "getTypeResolutionContext", "(", ")", ";", "if", "(", "provider", "!=", "null", ")", "{",...
Build the source code and put it into the given appender. @param the object to serialize @param appender the object that permits to create the source code. @param context the context for type resolution.
[ "Build", "the", "source", "code", "and", "put", "it", "into", "the", "given", "appender", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/appenders/AbstractSourceAppender.java#L100-L125
56,830
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/controlflow/ExtendedSARLEarlyExitComputer.java
ExtendedSARLEarlyExitComputer.isEarlyExitSARLStatement
protected boolean isEarlyExitSARLStatement(XExpression expression) { if (expression instanceof XAbstractFeatureCall) { // Do not call expression.getFeature() since the feature may be unresolved. // The type resolution at this point causes exceptions in the reentrant type resolver. // The second parameter (fa...
java
protected boolean isEarlyExitSARLStatement(XExpression expression) { if (expression instanceof XAbstractFeatureCall) { // Do not call expression.getFeature() since the feature may be unresolved. // The type resolution at this point causes exceptions in the reentrant type resolver. // The second parameter (fa...
[ "protected", "boolean", "isEarlyExitSARLStatement", "(", "XExpression", "expression", ")", "{", "if", "(", "expression", "instanceof", "XAbstractFeatureCall", ")", "{", "// Do not call expression.getFeature() since the feature may be unresolved.", "// The type resolution at this poin...
Replies if the given expression is a early-exit SARL statement. @param expression the expression to test. @return <code>true</code> if the given expression is a SARL early-exit statement, <code>false</code> otherwise. @see ISarlEarlyExitComputer#isEarlyExitAnnotatedElement(Object)
[ "Replies", "if", "the", "given", "expression", "is", "a", "early", "-", "exit", "SARL", "statement", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/controlflow/ExtendedSARLEarlyExitComputer.java#L68-L79
56,831
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/TypeParameterBuilderImpl.java
TypeParameterBuilderImpl.addUpperConstraint
public void addUpperConstraint(String type) { final JvmUpperBound constraint = this.jvmTypesFactory.createJvmUpperBound(); constraint.setTypeReference(newTypeRef(this.context, type)); getJvmTypeParameter().getConstraints().add(constraint); }
java
public void addUpperConstraint(String type) { final JvmUpperBound constraint = this.jvmTypesFactory.createJvmUpperBound(); constraint.setTypeReference(newTypeRef(this.context, type)); getJvmTypeParameter().getConstraints().add(constraint); }
[ "public", "void", "addUpperConstraint", "(", "String", "type", ")", "{", "final", "JvmUpperBound", "constraint", "=", "this", ".", "jvmTypesFactory", ".", "createJvmUpperBound", "(", ")", ";", "constraint", ".", "setTypeReference", "(", "newTypeRef", "(", "this", ...
Add upper type bounds. @param type the type.
[ "Add", "upper", "type", "bounds", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/TypeParameterBuilderImpl.java#L88-L92
56,832
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/TypeParameterBuilderImpl.java
TypeParameterBuilderImpl.addLowerConstraint
public void addLowerConstraint(String type) { final JvmLowerBound constraint = this.jvmTypesFactory.createJvmLowerBound(); constraint.setTypeReference(newTypeRef(this.context, type)); getJvmTypeParameter().getConstraints().add(constraint); }
java
public void addLowerConstraint(String type) { final JvmLowerBound constraint = this.jvmTypesFactory.createJvmLowerBound(); constraint.setTypeReference(newTypeRef(this.context, type)); getJvmTypeParameter().getConstraints().add(constraint); }
[ "public", "void", "addLowerConstraint", "(", "String", "type", ")", "{", "final", "JvmLowerBound", "constraint", "=", "this", ".", "jvmTypesFactory", ".", "createJvmLowerBound", "(", ")", ";", "constraint", ".", "setTypeReference", "(", "newTypeRef", "(", "this", ...
Add lower type bounds. @param type the type.
[ "Add", "lower", "type", "bounds", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/TypeParameterBuilderImpl.java#L97-L101
56,833
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/SARLEclipsePlugin.java
SARLEclipsePlugin.getImageDescriptor
public ImageDescriptor getImageDescriptor(String imagePath) { ImageDescriptor descriptor = getImageRegistry().getDescriptor(imagePath); if (descriptor == null) { descriptor = AbstractUIPlugin.imageDescriptorFromPlugin(SARLEclipsePlugin.PLUGIN_ID, imagePath); if (descriptor != null) { getImageRegistry().pu...
java
public ImageDescriptor getImageDescriptor(String imagePath) { ImageDescriptor descriptor = getImageRegistry().getDescriptor(imagePath); if (descriptor == null) { descriptor = AbstractUIPlugin.imageDescriptorFromPlugin(SARLEclipsePlugin.PLUGIN_ID, imagePath); if (descriptor != null) { getImageRegistry().pu...
[ "public", "ImageDescriptor", "getImageDescriptor", "(", "String", "imagePath", ")", "{", "ImageDescriptor", "descriptor", "=", "getImageRegistry", "(", ")", ".", "getDescriptor", "(", "imagePath", ")", ";", "if", "(", "descriptor", "==", "null", ")", "{", "descr...
Replies the image descriptor for the given image path. @param imagePath path of the image. @return the image descriptor.
[ "Replies", "the", "image", "descriptor", "for", "the", "given", "image", "path", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/SARLEclipsePlugin.java#L130-L139
56,834
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/SARLEclipsePlugin.java
SARLEclipsePlugin.createMultiStatus
@SuppressWarnings("static-method") public IStatus createMultiStatus(Iterable<? extends IStatus> status) { final IStatus max = findMax(status); final MultiStatus multiStatus; if (max == null) { multiStatus = new MultiStatus(PLUGIN_ID, 0, null, null); } else { multiStatus = new MultiStatus(PLUGIN_ID, 0, ma...
java
@SuppressWarnings("static-method") public IStatus createMultiStatus(Iterable<? extends IStatus> status) { final IStatus max = findMax(status); final MultiStatus multiStatus; if (max == null) { multiStatus = new MultiStatus(PLUGIN_ID, 0, null, null); } else { multiStatus = new MultiStatus(PLUGIN_ID, 0, ma...
[ "@", "SuppressWarnings", "(", "\"static-method\"", ")", "public", "IStatus", "createMultiStatus", "(", "Iterable", "<", "?", "extends", "IStatus", ">", "status", ")", "{", "final", "IStatus", "max", "=", "findMax", "(", "status", ")", ";", "final", "MultiStatu...
Create a multistatus. @param status the status to put in the same status instance. @return the status.
[ "Create", "a", "multistatus", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/SARLEclipsePlugin.java#L256-L269
56,835
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/SARLEclipsePlugin.java
SARLEclipsePlugin.logErrorMessage
public void logErrorMessage(String message) { getILog().log(new Status(IStatus.ERROR, PLUGIN_ID, message, null)); }
java
public void logErrorMessage(String message) { getILog().log(new Status(IStatus.ERROR, PLUGIN_ID, message, null)); }
[ "public", "void", "logErrorMessage", "(", "String", "message", ")", "{", "getILog", "(", ")", ".", "log", "(", "new", "Status", "(", "IStatus", ".", "ERROR", ",", "PLUGIN_ID", ",", "message", ",", "null", ")", ")", ";", "}" ]
Logs an internal error with the specified message. @param message the error message to log
[ "Logs", "an", "internal", "error", "with", "the", "specified", "message", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/SARLEclipsePlugin.java#L286-L288
56,836
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/SARLEclipsePlugin.java
SARLEclipsePlugin.logDebugMessage
@SuppressWarnings({"static-method", "checkstyle:regexp"}) public void logDebugMessage(String message, Throwable cause) { Debug.println(message); if (cause != null) { Debug.printStackTrace(cause); } }
java
@SuppressWarnings({"static-method", "checkstyle:regexp"}) public void logDebugMessage(String message, Throwable cause) { Debug.println(message); if (cause != null) { Debug.printStackTrace(cause); } }
[ "@", "SuppressWarnings", "(", "{", "\"static-method\"", ",", "\"checkstyle:regexp\"", "}", ")", "public", "void", "logDebugMessage", "(", "String", "message", ",", "Throwable", "cause", ")", "{", "Debug", ".", "println", "(", "message", ")", ";", "if", "(", ...
Logs an internal debug message with the specified message. @param message the debug message to log @param cause the cause of the message log.
[ "Logs", "an", "internal", "debug", "message", "with", "the", "specified", "message", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/SARLEclipsePlugin.java#L316-L322
56,837
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/SARLEclipsePlugin.java
SARLEclipsePlugin.savePreferences
public void savePreferences() { final IEclipsePreferences prefs = getPreferences(); try { prefs.flush(); } catch (BackingStoreException e) { getILog().log(createStatus(IStatus.ERROR, e)); } }
java
public void savePreferences() { final IEclipsePreferences prefs = getPreferences(); try { prefs.flush(); } catch (BackingStoreException e) { getILog().log(createStatus(IStatus.ERROR, e)); } }
[ "public", "void", "savePreferences", "(", ")", "{", "final", "IEclipsePreferences", "prefs", "=", "getPreferences", "(", ")", ";", "try", "{", "prefs", ".", "flush", "(", ")", ";", "}", "catch", "(", "BackingStoreException", "e", ")", "{", "getILog", "(", ...
Saves the preferences for the plug-in.
[ "Saves", "the", "preferences", "for", "the", "plug", "-", "in", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/SARLEclipsePlugin.java#L356-L363
56,838
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/SARLEclipsePlugin.java
SARLEclipsePlugin.openError
public void openError(Shell shell, String title, String message, Throwable exception) { final Throwable ex = (exception != null) ? Throwables.getRootCause(exception) : null; if (ex != null) { log(ex); final IStatus status = createStatus(IStatus.ERROR, message, ex); ErrorDialog.openError(shell, title, messa...
java
public void openError(Shell shell, String title, String message, Throwable exception) { final Throwable ex = (exception != null) ? Throwables.getRootCause(exception) : null; if (ex != null) { log(ex); final IStatus status = createStatus(IStatus.ERROR, message, ex); ErrorDialog.openError(shell, title, messa...
[ "public", "void", "openError", "(", "Shell", "shell", ",", "String", "title", ",", "String", "message", ",", "Throwable", "exception", ")", "{", "final", "Throwable", "ex", "=", "(", "exception", "!=", "null", ")", "?", "Throwables", ".", "getRootCause", "...
Display an error dialog and log the error. @param shell the parent container. @param title the title of the dialog box. @param message the message to display into the dialog box. @param exception the exception to be logged. @since 0.6 @see #log(Throwable)
[ "Display", "an", "error", "dialog", "and", "log", "the", "error", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/SARLEclipsePlugin.java#L375-L384
56,839
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/elements/AbstractSuperTypeSelectionDialog.java
AbstractSuperTypeSelectionDialog.createSearchScope
public static IJavaSearchScope createSearchScope(IJavaProject project, Class<?> type, boolean onlySubTypes) { try { final IType superType = project.findType(type.getName()); return SearchEngine.createStrictHierarchyScope( project, superType, // only sub types onlySubTypes, // include th...
java
public static IJavaSearchScope createSearchScope(IJavaProject project, Class<?> type, boolean onlySubTypes) { try { final IType superType = project.findType(type.getName()); return SearchEngine.createStrictHierarchyScope( project, superType, // only sub types onlySubTypes, // include th...
[ "public", "static", "IJavaSearchScope", "createSearchScope", "(", "IJavaProject", "project", ",", "Class", "<", "?", ">", "type", ",", "boolean", "onlySubTypes", ")", "{", "try", "{", "final", "IType", "superType", "=", "project", ".", "findType", "(", "type",...
Creates a searching scope including only one project. @param project the scope of the search. @param type the expected super type. @param onlySubTypes indicates if only the subtypes of the given types are allowed. If <code>false</code>, the super type is allowed too. @return the search scope.
[ "Creates", "a", "searching", "scope", "including", "only", "one", "project", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/elements/AbstractSuperTypeSelectionDialog.java#L99-L114
56,840
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/elements/AbstractSuperTypeSelectionDialog.java
AbstractSuperTypeSelectionDialog.fillWizardPageWithSelectedTypes
private void fillWizardPageWithSelectedTypes() { final StructuredSelection selection = getSelectedItems(); if (selection == null) { return; } for (final Iterator<?> iter = selection.iterator(); iter.hasNext();) { final Object obj = iter.next(); if (obj instanceof TypeNameMatch) { accessedHistoryIte...
java
private void fillWizardPageWithSelectedTypes() { final StructuredSelection selection = getSelectedItems(); if (selection == null) { return; } for (final Iterator<?> iter = selection.iterator(); iter.hasNext();) { final Object obj = iter.next(); if (obj instanceof TypeNameMatch) { accessedHistoryIte...
[ "private", "void", "fillWizardPageWithSelectedTypes", "(", ")", "{", "final", "StructuredSelection", "selection", "=", "getSelectedItems", "(", ")", ";", "if", "(", "selection", "==", "null", ")", "{", "return", ";", "}", "for", "(", "final", "Iterator", "<", ...
Adds selected interfaces to the list.
[ "Adds", "selected", "interfaces", "to", "the", "list", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/elements/AbstractSuperTypeSelectionDialog.java#L190-L213
56,841
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/cast/CastScopeSession.java
CastScopeSession.createCastOperatorScope
protected IScope createCastOperatorScope(EObject context, EReference reference, IResolvedTypes resolvedTypes) { if (!(context instanceof SarlCastedExpression)) { return IScope.NULLSCOPE; } final SarlCastedExpression call = (SarlCastedExpression) context; final XExpression receiver = call.getTarget(); if (r...
java
protected IScope createCastOperatorScope(EObject context, EReference reference, IResolvedTypes resolvedTypes) { if (!(context instanceof SarlCastedExpression)) { return IScope.NULLSCOPE; } final SarlCastedExpression call = (SarlCastedExpression) context; final XExpression receiver = call.getTarget(); if (r...
[ "protected", "IScope", "createCastOperatorScope", "(", "EObject", "context", ",", "EReference", "reference", ",", "IResolvedTypes", "resolvedTypes", ")", "{", "if", "(", "!", "(", "context", "instanceof", "SarlCastedExpression", ")", ")", "{", "return", "IScope", ...
create a scope for cast operator. @param context the context. @param reference the reference to the internal feature. @param resolvedTypes the resolved types. @return the scope.
[ "create", "a", "scope", "for", "cast", "operator", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/cast/CastScopeSession.java#L78-L88
56,842
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/BlockExpressionBuilderImpl.java
BlockExpressionBuilderImpl.eInit
public void eInit(IJvmTypeProvider context) { setTypeResolutionContext(context); if (this.block == null) { this.block = XbaseFactory.eINSTANCE.createXBlockExpression(); } }
java
public void eInit(IJvmTypeProvider context) { setTypeResolutionContext(context); if (this.block == null) { this.block = XbaseFactory.eINSTANCE.createXBlockExpression(); } }
[ "public", "void", "eInit", "(", "IJvmTypeProvider", "context", ")", "{", "setTypeResolutionContext", "(", "context", ")", ";", "if", "(", "this", ".", "block", "==", "null", ")", "{", "this", ".", "block", "=", "XbaseFactory", ".", "eINSTANCE", ".", "creat...
Create the XBlockExpression.
[ "Create", "the", "XBlockExpression", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/BlockExpressionBuilderImpl.java#L66-L71
56,843
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/BlockExpressionBuilderImpl.java
BlockExpressionBuilderImpl.getAutoGeneratedActionString
@Pure public String getAutoGeneratedActionString(Resource resource) { TaskTags tags = getTaskTagProvider().getTaskTags(resource); String taskTag; if (tags != null && tags.getTaskTags() != null && !tags.getTaskTags().isEmpty()) { taskTag = tags.getTaskTags().get(0).getName(); } else { taskTag = "TODO"; ...
java
@Pure public String getAutoGeneratedActionString(Resource resource) { TaskTags tags = getTaskTagProvider().getTaskTags(resource); String taskTag; if (tags != null && tags.getTaskTags() != null && !tags.getTaskTags().isEmpty()) { taskTag = tags.getTaskTags().get(0).getName(); } else { taskTag = "TODO"; ...
[ "@", "Pure", "public", "String", "getAutoGeneratedActionString", "(", "Resource", "resource", ")", "{", "TaskTags", "tags", "=", "getTaskTagProvider", "(", ")", ".", "getTaskTags", "(", "resource", ")", ";", "String", "taskTag", ";", "if", "(", "tags", "!=", ...
Replies the string for "auto-generated" comments. @param resource the resource for which the comment must be determined. @return the comment text.
[ "Replies", "the", "string", "for", "auto", "-", "generated", "comments", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/BlockExpressionBuilderImpl.java#L85-L95
56,844
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/BlockExpressionBuilderImpl.java
BlockExpressionBuilderImpl.addExpression
public IExpressionBuilder addExpression() { final IExpressionBuilder builder = this.expressionProvider.get(); builder.eInit(getXBlockExpression(), new Procedures.Procedure1<XExpression>() { private int index = -1; public void apply(XExpression it) { if (this.index >= 0) { getXBlockExpression(...
java
public IExpressionBuilder addExpression() { final IExpressionBuilder builder = this.expressionProvider.get(); builder.eInit(getXBlockExpression(), new Procedures.Procedure1<XExpression>() { private int index = -1; public void apply(XExpression it) { if (this.index >= 0) { getXBlockExpression(...
[ "public", "IExpressionBuilder", "addExpression", "(", ")", "{", "final", "IExpressionBuilder", "builder", "=", "this", ".", "expressionProvider", ".", "get", "(", ")", ";", "builder", ".", "eInit", "(", "getXBlockExpression", "(", ")", ",", "new", "Procedures", ...
Add an expression inside the block. @return the expression builder.
[ "Add", "an", "expression", "inside", "the", "block", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/BlockExpressionBuilderImpl.java#L139-L153
56,845
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sarlapp/FixedFatJarExportPage.java
FixedFatJarExportPage.handleAntScriptBrowseButtonPressed
private void handleAntScriptBrowseButtonPressed() { FileDialog dialog= new FileDialog(getContainer().getShell(), SWT.SAVE); dialog.setFilterExtensions(new String[] { "*." + ANTSCRIPT_EXTENSION }); //$NON-NLS-1$ String currentSourceString= getAntScriptValue(); int lastSeparatorIndex= currentSourceString.lastInd...
java
private void handleAntScriptBrowseButtonPressed() { FileDialog dialog= new FileDialog(getContainer().getShell(), SWT.SAVE); dialog.setFilterExtensions(new String[] { "*." + ANTSCRIPT_EXTENSION }); //$NON-NLS-1$ String currentSourceString= getAntScriptValue(); int lastSeparatorIndex= currentSourceString.lastInd...
[ "private", "void", "handleAntScriptBrowseButtonPressed", "(", ")", "{", "FileDialog", "dialog", "=", "new", "FileDialog", "(", "getContainer", "(", ")", ".", "getShell", "(", ")", ",", "SWT", ".", "SAVE", ")", ";", "dialog", ".", "setFilterExtensions", "(", ...
Open an appropriate ant script browser so that the user can specify a source to import from
[ "Open", "an", "appropriate", "ant", "script", "browser", "so", "that", "the", "user", "can", "specify", "a", "source", "to", "import", "from" ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sarlapp/FixedFatJarExportPage.java#L279-L292
56,846
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sarlapp/FixedFatJarExportPage.java
FixedFatJarExportPage.getAntScriptValue
private String getAntScriptValue() { String antScriptText= fAntScriptNamesCombo.getText().trim(); if (antScriptText.indexOf('.') < 0) antScriptText+= "." + ANTSCRIPT_EXTENSION; //$NON-NLS-1$ return antScriptText; }
java
private String getAntScriptValue() { String antScriptText= fAntScriptNamesCombo.getText().trim(); if (antScriptText.indexOf('.') < 0) antScriptText+= "." + ANTSCRIPT_EXTENSION; //$NON-NLS-1$ return antScriptText; }
[ "private", "String", "getAntScriptValue", "(", ")", "{", "String", "antScriptText", "=", "fAntScriptNamesCombo", ".", "getText", "(", ")", ".", "trim", "(", ")", ";", "if", "(", "antScriptText", ".", "indexOf", "(", "'", "'", ")", "<", "0", ")", "antScri...
Answer the contents of the ant script specification widget. If this value does not have the required suffix then add it first. @return java.lang.String
[ "Answer", "the", "contents", "of", "the", "ant", "script", "specification", "widget", ".", "If", "this", "value", "does", "not", "have", "the", "required", "suffix", "then", "add", "it", "first", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sarlapp/FixedFatJarExportPage.java#L300-L305
56,847
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sarlapp/FixedFatJarExportPage.java
FixedFatJarExportPage.createLabel
protected Label createLabel(Composite parent, String text, boolean bold) { Label label= new Label(parent, SWT.NONE); if (bold) label.setFont(JFaceResources.getBannerFont()); label.setText(text); GridData gridData= new GridData(SWT.BEGINNING, SWT.CENTER, false, false); label.setLayoutData(gridData); retur...
java
protected Label createLabel(Composite parent, String text, boolean bold) { Label label= new Label(parent, SWT.NONE); if (bold) label.setFont(JFaceResources.getBannerFont()); label.setText(text); GridData gridData= new GridData(SWT.BEGINNING, SWT.CENTER, false, false); label.setLayoutData(gridData); retur...
[ "protected", "Label", "createLabel", "(", "Composite", "parent", ",", "String", "text", ",", "boolean", "bold", ")", "{", "Label", "label", "=", "new", "Label", "(", "parent", ",", "SWT", ".", "NONE", ")", ";", "if", "(", "bold", ")", "label", ".", "...
Creates a new label with an optional bold font. @param parent the parent control @param text the label text @param bold bold or not @return the new label control
[ "Creates", "a", "new", "label", "with", "an", "optional", "bold", "font", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sarlapp/FixedFatJarExportPage.java#L315-L323
56,848
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sarlapp/FixedFatJarExportPage.java
FixedFatJarExportPage.createLibraryHandlingGroup
protected void createLibraryHandlingGroup(Composite parent) { fLibraryHandlingGroup= new Composite(parent, SWT.NONE); GridLayout layout= new GridLayout(); fLibraryHandlingGroup.setLayout(layout); fLibraryHandlingGroup.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_FILL | Gri...
java
protected void createLibraryHandlingGroup(Composite parent) { fLibraryHandlingGroup= new Composite(parent, SWT.NONE); GridLayout layout= new GridLayout(); fLibraryHandlingGroup.setLayout(layout); fLibraryHandlingGroup.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_FILL | Gri...
[ "protected", "void", "createLibraryHandlingGroup", "(", "Composite", "parent", ")", "{", "fLibraryHandlingGroup", "=", "new", "Composite", "(", "parent", ",", "SWT", ".", "NONE", ")", ";", "GridLayout", "layout", "=", "new", "GridLayout", "(", ")", ";", "fLibr...
Create the export options specification widgets. @param parent org.eclipse.swt.widgets.Composite
[ "Create", "the", "export", "options", "specification", "widgets", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sarlapp/FixedFatJarExportPage.java#L330-L373
56,849
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sarlapp/FixedFatJarExportPage.java
FixedFatJarExportPage.updateModel
@Override protected void updateModel() { super.updateModel(); String comboText= fAntScriptNamesCombo.getText(); IPath path= Path.fromOSString(comboText); if (path.segmentCount() > 0 && ensureAntScriptFileIsValid(path.toFile()) && path.getFileExtension() == null) path= path.addFileExtension(ANTSCRIPT_EXTENS...
java
@Override protected void updateModel() { super.updateModel(); String comboText= fAntScriptNamesCombo.getText(); IPath path= Path.fromOSString(comboText); if (path.segmentCount() > 0 && ensureAntScriptFileIsValid(path.toFile()) && path.getFileExtension() == null) path= path.addFileExtension(ANTSCRIPT_EXTENS...
[ "@", "Override", "protected", "void", "updateModel", "(", ")", "{", "super", ".", "updateModel", "(", ")", ";", "String", "comboText", "=", "fAntScriptNamesCombo", ".", "getText", "(", ")", ";", "IPath", "path", "=", "Path", ".", "fromOSString", "(", "comb...
Stores the widget values in the JAR package.
[ "Stores", "the", "widget", "values", "in", "the", "JAR", "package", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sarlapp/FixedFatJarExportPage.java#L397-L407
56,850
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sarlapp/FixedFatJarExportPage.java
FixedFatJarExportPage.getAbsoluteLocation
private IPath getAbsoluteLocation(IPath location) { if (location.isAbsolute()) return location; IWorkspaceRoot root= ResourcesPlugin.getWorkspace().getRoot(); if (location.segmentCount() >= 2 && !"..".equals(location.segment(0))) { //$NON-NLS-1$ IFile file= root.getFile(location); IPath absolutePath= fi...
java
private IPath getAbsoluteLocation(IPath location) { if (location.isAbsolute()) return location; IWorkspaceRoot root= ResourcesPlugin.getWorkspace().getRoot(); if (location.segmentCount() >= 2 && !"..".equals(location.segment(0))) { //$NON-NLS-1$ IFile file= root.getFile(location); IPath absolutePath= fi...
[ "private", "IPath", "getAbsoluteLocation", "(", "IPath", "location", ")", "{", "if", "(", "location", ".", "isAbsolute", "(", ")", ")", "return", "location", ";", "IWorkspaceRoot", "root", "=", "ResourcesPlugin", ".", "getWorkspace", "(", ")", ".", "getRoot", ...
Gets the absolute location relative to the workspace. @param location the location @return the absolute path for the location of the file @since 3.8
[ "Gets", "the", "absolute", "location", "relative", "to", "the", "workspace", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sarlapp/FixedFatJarExportPage.java#L472-L488
56,851
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sarlapp/FixedFatJarExportPage.java
FixedFatJarExportPage.ensureAntScriptFileIsValid
private boolean ensureAntScriptFileIsValid(File antScriptFile) { if (antScriptFile.exists() && antScriptFile.isDirectory() && fAntScriptNamesCombo.getText().length() > 0) { setErrorMessage(FatJarPackagerMessages.FatJarPackageWizardPage_error_antScriptLocationIsDir); fAntScriptNamesCombo.setFocus(); return fa...
java
private boolean ensureAntScriptFileIsValid(File antScriptFile) { if (antScriptFile.exists() && antScriptFile.isDirectory() && fAntScriptNamesCombo.getText().length() > 0) { setErrorMessage(FatJarPackagerMessages.FatJarPackageWizardPage_error_antScriptLocationIsDir); fAntScriptNamesCombo.setFocus(); return fa...
[ "private", "boolean", "ensureAntScriptFileIsValid", "(", "File", "antScriptFile", ")", "{", "if", "(", "antScriptFile", ".", "exists", "(", ")", "&&", "antScriptFile", ".", "isDirectory", "(", ")", "&&", "fAntScriptNamesCombo", ".", "getText", "(", ")", ".", "...
Returns a boolean indicating whether the passed File handle is is valid and available for use. @param antScriptFile the ant script @return boolean
[ "Returns", "a", "boolean", "indicating", "whether", "the", "passed", "File", "handle", "is", "is", "valid", "and", "available", "for", "use", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sarlapp/FixedFatJarExportPage.java#L497-L511
56,852
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sarlapp/FixedFatJarExportPage.java
FixedFatJarExportPage.getPathLabel
protected static String getPathLabel(IPath path, boolean isOSPath) { String label; if (isOSPath) { label= path.toOSString(); } else { label= path.makeRelative().toString(); } return label; }
java
protected static String getPathLabel(IPath path, boolean isOSPath) { String label; if (isOSPath) { label= path.toOSString(); } else { label= path.makeRelative().toString(); } return label; }
[ "protected", "static", "String", "getPathLabel", "(", "IPath", "path", ",", "boolean", "isOSPath", ")", "{", "String", "label", ";", "if", "(", "isOSPath", ")", "{", "label", "=", "path", ".", "toOSString", "(", ")", ";", "}", "else", "{", "label", "="...
Returns the label of a path. @param path the path @param isOSPath if <code>true</code>, the path represents an OS path, if <code>false</code> it is a workspace path. @return the label of the path to be used in the UI.
[ "Returns", "the", "label", "of", "a", "path", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sarlapp/FixedFatJarExportPage.java#L711-L719
56,853
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/natures/SARLProjectConfigurator.java
SARLProjectConfigurator.safeRefresh
@SuppressWarnings("static-method") protected void safeRefresh(IProject project, IProgressMonitor monitor) { try { project.refreshLocal(IResource.DEPTH_INFINITE, monitor); } catch (CoreException exception) { SARLEclipsePlugin.getDefault().log(exception); } }
java
@SuppressWarnings("static-method") protected void safeRefresh(IProject project, IProgressMonitor monitor) { try { project.refreshLocal(IResource.DEPTH_INFINITE, monitor); } catch (CoreException exception) { SARLEclipsePlugin.getDefault().log(exception); } }
[ "@", "SuppressWarnings", "(", "\"static-method\"", ")", "protected", "void", "safeRefresh", "(", "IProject", "project", ",", "IProgressMonitor", "monitor", ")", "{", "try", "{", "project", ".", "refreshLocal", "(", "IResource", ".", "DEPTH_INFINITE", ",", "monitor...
Refresh the project file hierarchy. @param project the project. @param monitor the progress monitor.
[ "Refresh", "the", "project", "file", "hierarchy", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/natures/SARLProjectConfigurator.java#L197-L204
56,854
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/natures/SARLProjectConfigurator.java
SARLProjectConfigurator.getSARLProjectSourceFolders
public static String[] getSARLProjectSourceFolders() { return new String[] { SARLConfig.FOLDER_SOURCE_SARL, SARLConfig.FOLDER_SOURCE_JAVA, SARLConfig.FOLDER_RESOURCES, SARLConfig.FOLDER_TEST_SOURCE_SARL, SARLConfig.FOLDER_SOURCE_GENERATED, SARLConfig.FOLDER_TEST_SOURCE_GENERATED, }; }
java
public static String[] getSARLProjectSourceFolders() { return new String[] { SARLConfig.FOLDER_SOURCE_SARL, SARLConfig.FOLDER_SOURCE_JAVA, SARLConfig.FOLDER_RESOURCES, SARLConfig.FOLDER_TEST_SOURCE_SARL, SARLConfig.FOLDER_SOURCE_GENERATED, SARLConfig.FOLDER_TEST_SOURCE_GENERATED, }; }
[ "public", "static", "String", "[", "]", "getSARLProjectSourceFolders", "(", ")", "{", "return", "new", "String", "[", "]", "{", "SARLConfig", ".", "FOLDER_SOURCE_SARL", ",", "SARLConfig", ".", "FOLDER_SOURCE_JAVA", ",", "SARLConfig", ".", "FOLDER_RESOURCES", ",", ...
Replies the list of the standard source folders for a SARL project. @return the list of the standard source folders. @since 0.8
[ "Replies", "the", "list", "of", "the", "standard", "source", "folders", "for", "a", "SARL", "project", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/natures/SARLProjectConfigurator.java#L211-L220
56,855
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/natures/SARLProjectConfigurator.java
SARLProjectConfigurator.configureSARLProject
public static void configureSARLProject(IProject project, boolean addNatures, boolean configureJavaNature, boolean createFolders, IProgressMonitor monitor) { try { final SubMonitor subMonitor = SubMonitor.convert(monitor, 11); // Add Natures final IStatus status = Status.OK_STATUS; if (addNatures) { ...
java
public static void configureSARLProject(IProject project, boolean addNatures, boolean configureJavaNature, boolean createFolders, IProgressMonitor monitor) { try { final SubMonitor subMonitor = SubMonitor.convert(monitor, 11); // Add Natures final IStatus status = Status.OK_STATUS; if (addNatures) { ...
[ "public", "static", "void", "configureSARLProject", "(", "IProject", "project", ",", "boolean", "addNatures", ",", "boolean", "configureJavaNature", ",", "boolean", "createFolders", ",", "IProgressMonitor", "monitor", ")", "{", "try", "{", "final", "SubMonitor", "su...
Configure the SARL project. <p>This function does the following:<ul> <li>Add the SARL nature to the project;</li> <li>Create the standard SARL folders if {@code createFolders} is evaluated to true;</li> <li>Set the output configuration of the project from the {@link SARLPreferences#setSpecificSARLConfigurationFor(IPro...
[ "Configure", "the", "SARL", "project", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/natures/SARLProjectConfigurator.java#L253-L309
56,856
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/natures/SARLProjectConfigurator.java
SARLProjectConfigurator.configureSARLSourceFolders
public static void configureSARLSourceFolders(IProject project, boolean createFolders, IProgressMonitor monitor) { try { final SubMonitor subMonitor = SubMonitor.convert(monitor, 8); final OutParameter<IFolder[]> sourceFolders = new OutParameter<>(); final OutParameter<IFolder[]> testSourceFolders = new Out...
java
public static void configureSARLSourceFolders(IProject project, boolean createFolders, IProgressMonitor monitor) { try { final SubMonitor subMonitor = SubMonitor.convert(monitor, 8); final OutParameter<IFolder[]> sourceFolders = new OutParameter<>(); final OutParameter<IFolder[]> testSourceFolders = new Out...
[ "public", "static", "void", "configureSARLSourceFolders", "(", "IProject", "project", ",", "boolean", "createFolders", ",", "IProgressMonitor", "monitor", ")", "{", "try", "{", "final", "SubMonitor", "subMonitor", "=", "SubMonitor", ".", "convert", "(", "monitor", ...
Configure the source folders for a SARL project. @param project the project. @param createFolders indicates if the folders must be created or not. @param monitor the monitor. @since 0.8 @see #addSarlNatures(IProject, IProgressMonitor) @see #configureSARLProject(IProject, boolean, boolean, boolean, IProgressMonitor)
[ "Configure", "the", "source", "folders", "for", "a", "SARL", "project", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/natures/SARLProjectConfigurator.java#L369-L403
56,857
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/natures/SARLProjectConfigurator.java
SARLProjectConfigurator.getDefaultSourceClassPathEntries
public static List<IClasspathEntry> getDefaultSourceClassPathEntries(IPath projectFolder) { final IPath srcJava = projectFolder.append( Path.fromPortableString(SARLConfig.FOLDER_SOURCE_JAVA)); final IClasspathEntry srcJavaEntry = JavaCore.newSourceEntry(srcJava.makeAbsolute()); final IPath srcSarl = projectF...
java
public static List<IClasspathEntry> getDefaultSourceClassPathEntries(IPath projectFolder) { final IPath srcJava = projectFolder.append( Path.fromPortableString(SARLConfig.FOLDER_SOURCE_JAVA)); final IClasspathEntry srcJavaEntry = JavaCore.newSourceEntry(srcJava.makeAbsolute()); final IPath srcSarl = projectF...
[ "public", "static", "List", "<", "IClasspathEntry", ">", "getDefaultSourceClassPathEntries", "(", "IPath", "projectFolder", ")", "{", "final", "IPath", "srcJava", "=", "projectFolder", ".", "append", "(", "Path", ".", "fromPortableString", "(", "SARLConfig", ".", ...
Replies the default source entries for a SARL project. @param projectFolder the folder of the project. @return the classpath entries.
[ "Replies", "the", "default", "source", "entries", "for", "a", "SARL", "project", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/natures/SARLProjectConfigurator.java#L410-L440
56,858
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/natures/SARLProjectConfigurator.java
SARLProjectConfigurator.collectProjectFoldersFromDirectory
@SuppressWarnings("checkstyle:npathcomplexity") protected void collectProjectFoldersFromDirectory(Collection<File> folders, File directory, Set<String> directoriesVisited, boolean nestedProjects, IProgressMonitor monitor) { if (monitor.isCanceled()) { return; } monitor.subTask(NLS.bind( Messages.SARLPr...
java
@SuppressWarnings("checkstyle:npathcomplexity") protected void collectProjectFoldersFromDirectory(Collection<File> folders, File directory, Set<String> directoriesVisited, boolean nestedProjects, IProgressMonitor monitor) { if (monitor.isCanceled()) { return; } monitor.subTask(NLS.bind( Messages.SARLPr...
[ "@", "SuppressWarnings", "(", "\"checkstyle:npathcomplexity\"", ")", "protected", "void", "collectProjectFoldersFromDirectory", "(", "Collection", "<", "File", ">", "folders", ",", "File", "directory", ",", "Set", "<", "String", ">", "directoriesVisited", ",", "boolea...
Collect the list of SARL project folders that are under directory into files. @param folders the list of folders to fill in. @param directory the directory to explore. @param directoriesVisited Set of canonical paths of directories, used as recursion guard. @param nestedProjects whether to look for nested projects. @p...
[ "Collect", "the", "list", "of", "SARL", "project", "folders", "that", "are", "under", "directory", "into", "files", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/natures/SARLProjectConfigurator.java#L618-L675
56,859
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/natures/SARLProjectConfigurator.java
SARLProjectConfigurator.addNatures
public static IStatus addNatures(IProject project, IProgressMonitor monitor, String... natureIdentifiers) { if (project != null && natureIdentifiers != null && natureIdentifiers.length > 0) { try { final SubMonitor subMonitor = SubMonitor.convert(monitor, natureIdentifiers.length + 2); final IProjectDescri...
java
public static IStatus addNatures(IProject project, IProgressMonitor monitor, String... natureIdentifiers) { if (project != null && natureIdentifiers != null && natureIdentifiers.length > 0) { try { final SubMonitor subMonitor = SubMonitor.convert(monitor, natureIdentifiers.length + 2); final IProjectDescri...
[ "public", "static", "IStatus", "addNatures", "(", "IProject", "project", ",", "IProgressMonitor", "monitor", ",", "String", "...", "natureIdentifiers", ")", "{", "if", "(", "project", "!=", "null", "&&", "natureIdentifiers", "!=", "null", "&&", "natureIdentifiers"...
Add the natures to the given project. @param project the project. @param monitor the monitor. @param natureIdentifiers the identifiers of the natures to add to the project. @return the status if the operation. @since 0.8
[ "Add", "the", "natures", "to", "the", "given", "project", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/natures/SARLProjectConfigurator.java#L714-L744
56,860
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/natures/SARLProjectConfigurator.java
SARLProjectConfigurator.addSarlNatures
public static IStatus addSarlNatures(IProject project, IProgressMonitor monitor) { return addNatures(project, monitor, getSarlNatures()); }
java
public static IStatus addSarlNatures(IProject project, IProgressMonitor monitor) { return addNatures(project, monitor, getSarlNatures()); }
[ "public", "static", "IStatus", "addSarlNatures", "(", "IProject", "project", ",", "IProgressMonitor", "monitor", ")", "{", "return", "addNatures", "(", "project", ",", "monitor", ",", "getSarlNatures", "(", ")", ")", ";", "}" ]
Add the SARL natures to the given project. @param project the project. @param monitor the monitor. @return the status if the operation.
[ "Add", "the", "SARL", "natures", "to", "the", "given", "project", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/natures/SARLProjectConfigurator.java#L760-L762
56,861
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/Jdt2Ecore.java
Jdt2Ecore.getAnnotation
public IAnnotation getAnnotation(IAnnotatable element, String qualifiedName) { if (element != null) { try { final int separator = qualifiedName.lastIndexOf('.'); final String simpleName; if (separator >= 0 && separator < (qualifiedName.length() - 1)) { simpleName = qualifiedName.substring(separato...
java
public IAnnotation getAnnotation(IAnnotatable element, String qualifiedName) { if (element != null) { try { final int separator = qualifiedName.lastIndexOf('.'); final String simpleName; if (separator >= 0 && separator < (qualifiedName.length() - 1)) { simpleName = qualifiedName.substring(separato...
[ "public", "IAnnotation", "getAnnotation", "(", "IAnnotatable", "element", ",", "String", "qualifiedName", ")", "{", "if", "(", "element", "!=", "null", ")", "{", "try", "{", "final", "int", "separator", "=", "qualifiedName", ".", "lastIndexOf", "(", "'", "'"...
Replies the annotation with the given qualified name. @param element the annoted element. @param qualifiedName the qualified name of the element. @return the annotation, or <code>null</code> if the element is not annoted.
[ "Replies", "the", "annotation", "with", "the", "given", "qualified", "name", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/Jdt2Ecore.java#L335-L356
56,862
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/Jdt2Ecore.java
Jdt2Ecore.getJvmConstructor
public JvmConstructor getJvmConstructor(IMethod constructor, XtendTypeDeclaration context) throws JavaModelException { if (constructor.isConstructor()) { final JvmType type = this.typeReferences.findDeclaredType( constructor.getDeclaringType().getFullyQualifiedName(), context); if (type instanceof ...
java
public JvmConstructor getJvmConstructor(IMethod constructor, XtendTypeDeclaration context) throws JavaModelException { if (constructor.isConstructor()) { final JvmType type = this.typeReferences.findDeclaredType( constructor.getDeclaringType().getFullyQualifiedName(), context); if (type instanceof ...
[ "public", "JvmConstructor", "getJvmConstructor", "(", "IMethod", "constructor", ",", "XtendTypeDeclaration", "context", ")", "throws", "JavaModelException", "{", "if", "(", "constructor", ".", "isConstructor", "(", ")", ")", "{", "final", "JvmType", "type", "=", "...
Create the JvmConstructor for the given JDT constructor. @param constructor the JDT constructor. @param context the context of the constructor. @return the JvmConstructor @throws JavaModelException if the Java model is invalid.
[ "Create", "the", "JvmConstructor", "for", "the", "given", "JDT", "constructor", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/Jdt2Ecore.java#L365-L387
56,863
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/Jdt2Ecore.java
Jdt2Ecore.createFormalParametersWith
protected IFormalParameterBuilder[] createFormalParametersWith( ParameterBuilder parameterBuilder, IMethod operation) throws JavaModelException, IllegalArgumentException { final boolean isVarargs = Flags.isVarargs(operation.getFlags()); final ILocalVariable[] rawParameters = operation.getParameters(); final...
java
protected IFormalParameterBuilder[] createFormalParametersWith( ParameterBuilder parameterBuilder, IMethod operation) throws JavaModelException, IllegalArgumentException { final boolean isVarargs = Flags.isVarargs(operation.getFlags()); final ILocalVariable[] rawParameters = operation.getParameters(); final...
[ "protected", "IFormalParameterBuilder", "[", "]", "createFormalParametersWith", "(", "ParameterBuilder", "parameterBuilder", ",", "IMethod", "operation", ")", "throws", "JavaModelException", ",", "IllegalArgumentException", "{", "final", "boolean", "isVarargs", "=", "Flags"...
Create the formal parameters for the given operation. @param parameterBuilder the code builder. @param operation the operation that describes the formal parameters. @return the parameters. @throws JavaModelException if the Java model is invalid. @throws IllegalArgumentException if the signature is not syntactically co...
[ "Create", "the", "formal", "parameters", "for", "the", "given", "operation", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/Jdt2Ecore.java#L459-L487
56,864
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/Jdt2Ecore.java
Jdt2Ecore.createStandardConstructorsWith
public void createStandardConstructorsWith( ConstructorBuilder codeBuilder, Collection<IMethod> superClassConstructors, XtendTypeDeclaration context) throws JavaModelException { if (superClassConstructors != null) { for (final IMethod constructor : superClassConstructors) { if (!isGeneratedOperation(c...
java
public void createStandardConstructorsWith( ConstructorBuilder codeBuilder, Collection<IMethod> superClassConstructors, XtendTypeDeclaration context) throws JavaModelException { if (superClassConstructors != null) { for (final IMethod constructor : superClassConstructors) { if (!isGeneratedOperation(c...
[ "public", "void", "createStandardConstructorsWith", "(", "ConstructorBuilder", "codeBuilder", ",", "Collection", "<", "IMethod", ">", "superClassConstructors", ",", "XtendTypeDeclaration", "context", ")", "throws", "JavaModelException", "{", "if", "(", "superClassConstructo...
Add the given constructors to the Ecore container. @param codeBuilder the code builder to use. @param superClassConstructors the constructors defined in the super class. @param context the context of the constructors. @throws JavaModelException if the Java model is invalid.
[ "Add", "the", "given", "constructors", "to", "the", "Ecore", "container", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/Jdt2Ecore.java#L496-L527
56,865
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/Jdt2Ecore.java
Jdt2Ecore.createActionsWith
public void createActionsWith( ActionBuilder codeBuilder, Collection<IMethod> methods, XtendTypeDeclaration context) throws JavaModelException, IllegalArgumentException { if (methods != null) { for (final IMethod operation : methods) { if (!isGeneratedOperation(operation)) { final ISarlActionBuil...
java
public void createActionsWith( ActionBuilder codeBuilder, Collection<IMethod> methods, XtendTypeDeclaration context) throws JavaModelException, IllegalArgumentException { if (methods != null) { for (final IMethod operation : methods) { if (!isGeneratedOperation(operation)) { final ISarlActionBuil...
[ "public", "void", "createActionsWith", "(", "ActionBuilder", "codeBuilder", ",", "Collection", "<", "IMethod", ">", "methods", ",", "XtendTypeDeclaration", "context", ")", "throws", "JavaModelException", ",", "IllegalArgumentException", "{", "if", "(", "methods", "!="...
Create the operations into the SARL feature container. @param codeBuilder the builder of the script. @param methods the operations to create. @param context the context of the actions. If <code>null</code>, the block of the actions are not generated. @throws JavaModelException if the Java model is invalid. @throws Ill...
[ "Create", "the", "operations", "into", "the", "SARL", "feature", "container", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/Jdt2Ecore.java#L537-L581
56,866
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/Jdt2Ecore.java
Jdt2Ecore.isSubClassOf
public boolean isSubClassOf(TypeFinder typeFinder, String subClass, String superClass) throws JavaModelException { final SuperTypeIterator typeIterator = new SuperTypeIterator(typeFinder, false, subClass); while (typeIterator.hasNext()) { final IType type = typeIterator.next(); if (Objects.equals(type.getFull...
java
public boolean isSubClassOf(TypeFinder typeFinder, String subClass, String superClass) throws JavaModelException { final SuperTypeIterator typeIterator = new SuperTypeIterator(typeFinder, false, subClass); while (typeIterator.hasNext()) { final IType type = typeIterator.next(); if (Objects.equals(type.getFull...
[ "public", "boolean", "isSubClassOf", "(", "TypeFinder", "typeFinder", ",", "String", "subClass", ",", "String", "superClass", ")", "throws", "JavaModelException", "{", "final", "SuperTypeIterator", "typeIterator", "=", "new", "SuperTypeIterator", "(", "typeFinder", ",...
Replies if the given type is a subclass of the second type. <p>The type finder could be obtained with {@link #toTypeFinder(IJavaProject)}. @param typeFinder the type finder to be used for finding the type definitions. @param subClass the name of the sub class. @param superClass the name of the expected super class. @...
[ "Replies", "if", "the", "given", "type", "is", "a", "subclass", "of", "the", "second", "type", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/Jdt2Ecore.java#L594-L603
56,867
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/util/BehaviorUnitComparator.java
BehaviorUnitComparator.compare
public static int compare(XExpression e1, XExpression e2) { if (e1 == e2) { return 0; } if (e1 == null) { return Integer.MIN_VALUE; } if (e2 == null) { return Integer.MAX_VALUE; } return e1.toString().compareTo(e2.toString()); }
java
public static int compare(XExpression e1, XExpression e2) { if (e1 == e2) { return 0; } if (e1 == null) { return Integer.MIN_VALUE; } if (e2 == null) { return Integer.MAX_VALUE; } return e1.toString().compareTo(e2.toString()); }
[ "public", "static", "int", "compare", "(", "XExpression", "e1", ",", "XExpression", "e2", ")", "{", "if", "(", "e1", "==", "e2", ")", "{", "return", "0", ";", "}", "if", "(", "e1", "==", "null", ")", "{", "return", "Integer", ".", "MIN_VALUE", ";",...
Compare two Xtext expressions. @param e1 the first expression to compare. @param e2 the second expression to compare. @return A negative value if <code>e1</code> is lower than <code>e2</code>, a positive value if <code>e1</code> is greater than <code>e2</code>, otherwise <code>0</code>.
[ "Compare", "two", "Xtext", "expressions", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/util/BehaviorUnitComparator.java#L69-L80
56,868
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/config/LaunchConfigurationConfigurator.java
LaunchConfigurationConfigurator.setMainJavaClass
protected static void setMainJavaClass(ILaunchConfigurationWorkingCopy wc, String name) { wc.setAttribute( IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, name); }
java
protected static void setMainJavaClass(ILaunchConfigurationWorkingCopy wc, String name) { wc.setAttribute( IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, name); }
[ "protected", "static", "void", "setMainJavaClass", "(", "ILaunchConfigurationWorkingCopy", "wc", ",", "String", "name", ")", "{", "wc", ".", "setAttribute", "(", "IJavaLaunchConfigurationConstants", ".", "ATTR_MAIN_TYPE_NAME", ",", "name", ")", ";", "}" ]
Change the main java class within the given configuration. @param wc the configuration to change. @param name the qualified name of the main Java class. @since 0.7
[ "Change", "the", "main", "java", "class", "within", "the", "given", "configuration", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/config/LaunchConfigurationConfigurator.java#L201-L205
56,869
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/config/LaunchConfigurationConfigurator.java
LaunchConfigurationConfigurator.initLaunchConfiguration
protected ILaunchConfigurationWorkingCopy initLaunchConfiguration(String configurationType, String projectName, String id, boolean resetJavaMainClass) throws CoreException { final ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager(); final ILaunchConfigurationType configType = launchManager...
java
protected ILaunchConfigurationWorkingCopy initLaunchConfiguration(String configurationType, String projectName, String id, boolean resetJavaMainClass) throws CoreException { final ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager(); final ILaunchConfigurationType configType = launchManager...
[ "protected", "ILaunchConfigurationWorkingCopy", "initLaunchConfiguration", "(", "String", "configurationType", ",", "String", "projectName", ",", "String", "id", ",", "boolean", "resetJavaMainClass", ")", "throws", "CoreException", "{", "final", "ILaunchManager", "launchMan...
initialize the launch configuration. @param configurationType the name of the configuration type to create. @param projectName the name of the project. @param id the identifier of the launch configuration. @param resetJavaMainClass indicates if the JAva main class should be reset from the SRE configuration. @return th...
[ "initialize", "the", "launch", "configuration", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/config/LaunchConfigurationConfigurator.java#L217-L228
56,870
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/refactoring/rename/SARLFileRenameParticipant.java
SARLFileRenameParticipant.trimFileExtension
protected static String trimFileExtension(String fileName) { if (fileName.lastIndexOf('.') == -1) { return fileName; } return fileName.substring(0, fileName.lastIndexOf('.')); }
java
protected static String trimFileExtension(String fileName) { if (fileName.lastIndexOf('.') == -1) { return fileName; } return fileName.substring(0, fileName.lastIndexOf('.')); }
[ "protected", "static", "String", "trimFileExtension", "(", "String", "fileName", ")", "{", "if", "(", "fileName", ".", "lastIndexOf", "(", "'", "'", ")", "==", "-", "1", ")", "{", "return", "fileName", ";", "}", "return", "fileName", ".", "substring", "(...
Remove the file extension. @param fileName the file name. @return the file name without the extension.
[ "Remove", "the", "file", "extension", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/refactoring/rename/SARLFileRenameParticipant.java#L118-L123
56,871
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/gtk/GtkSourceViewerGenerator2.java
GtkSourceViewerGenerator2.generateMetadata
protected void generateMetadata(IXmlStyleAppendable it) { it.appendTagWithValue("property", //$NON-NLS-1$ Strings.concat(";", getMimeTypes()), //$NON-NLS-1$ "name", "mimetypes"); //$NON-NLS-1$ //$NON-NLS-2$ final StringBuilder buffer = new StringBuilder(); for (final String fileExtension : getLanguage()....
java
protected void generateMetadata(IXmlStyleAppendable it) { it.appendTagWithValue("property", //$NON-NLS-1$ Strings.concat(";", getMimeTypes()), //$NON-NLS-1$ "name", "mimetypes"); //$NON-NLS-1$ //$NON-NLS-2$ final StringBuilder buffer = new StringBuilder(); for (final String fileExtension : getLanguage()....
[ "protected", "void", "generateMetadata", "(", "IXmlStyleAppendable", "it", ")", "{", "it", ".", "appendTagWithValue", "(", "\"property\"", ",", "//$NON-NLS-1$", "Strings", ".", "concat", "(", "\";\"", ",", "getMimeTypes", "(", ")", ")", ",", "//$NON-NLS-1$", "\"...
Generate the metadata section. @param it the appendable
[ "Generate", "the", "metadata", "section", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/gtk/GtkSourceViewerGenerator2.java#L100-L127
56,872
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/gtk/GtkSourceViewerGenerator2.java
GtkSourceViewerGenerator2.generateStyles
@SuppressWarnings("static-method") protected void generateStyles(IXmlStyleAppendable it) { it.appendTag("style", //$NON-NLS-1$ "id", "comment", //$NON-NLS-1$ //$NON-NLS-2$ "_name", "Comment", //$NON-NLS-1$ //$NON-NLS-2$ "map-to", "def:comment"); //$NON-NLS-1$ //$NON-NLS-2$ it.appendTag("style", //$NON-...
java
@SuppressWarnings("static-method") protected void generateStyles(IXmlStyleAppendable it) { it.appendTag("style", //$NON-NLS-1$ "id", "comment", //$NON-NLS-1$ //$NON-NLS-2$ "_name", "Comment", //$NON-NLS-1$ //$NON-NLS-2$ "map-to", "def:comment"); //$NON-NLS-1$ //$NON-NLS-2$ it.appendTag("style", //$NON-...
[ "@", "SuppressWarnings", "(", "\"static-method\"", ")", "protected", "void", "generateStyles", "(", "IXmlStyleAppendable", "it", ")", "{", "it", ".", "appendTag", "(", "\"style\"", ",", "//$NON-NLS-1$", "\"id\"", ",", "\"comment\"", ",", "//$NON-NLS-1$ //$NON-NLS-2$",...
Generate the style section. @param it the appendable
[ "Generate", "the", "style", "section", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/gtk/GtkSourceViewerGenerator2.java#L133-L175
56,873
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sreinstall/StandardSREPage.java
StandardSREPage.selectSRE
protected void selectSRE() { final File file; if (StandardSREPage.this.workingCopy.getJarFile() != null) { file = StandardSREPage.this.workingCopy.getJarFile().toFile(); } else { file = null; } final FileDialog dialog = new FileDialog(getShell(), SWT.OPEN); dialog.setText(Messages.StandardSREPage_4);...
java
protected void selectSRE() { final File file; if (StandardSREPage.this.workingCopy.getJarFile() != null) { file = StandardSREPage.this.workingCopy.getJarFile().toFile(); } else { file = null; } final FileDialog dialog = new FileDialog(getShell(), SWT.OPEN); dialog.setText(Messages.StandardSREPage_4);...
[ "protected", "void", "selectSRE", "(", ")", "{", "final", "File", "file", ";", "if", "(", "StandardSREPage", ".", "this", ".", "workingCopy", ".", "getJarFile", "(", ")", "!=", "null", ")", "{", "file", "=", "StandardSREPage", ".", "this", ".", "workingC...
Ask to the user to selected the SRE.
[ "Ask", "to", "the", "user", "to", "selected", "the", "SRE", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sreinstall/StandardSREPage.java#L153-L187
56,874
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sreinstall/StandardSREPage.java
StandardSREPage.initializeFields
private void initializeFields() { final IPath path = this.workingCopy.getJarFile(); String tooltip = null; String basename = null; if (path != null) { tooltip = path.toOSString(); final IPath tmpPath = path.removeTrailingSeparator(); if (tmpPath != null) { basename = tmpPath.lastSegment(); } }...
java
private void initializeFields() { final IPath path = this.workingCopy.getJarFile(); String tooltip = null; String basename = null; if (path != null) { tooltip = path.toOSString(); final IPath tmpPath = path.removeTrailingSeparator(); if (tmpPath != null) { basename = tmpPath.lastSegment(); } }...
[ "private", "void", "initializeFields", "(", ")", "{", "final", "IPath", "path", "=", "this", ".", "workingCopy", ".", "getJarFile", "(", ")", ";", "String", "tooltip", "=", "null", ";", "String", "basename", "=", "null", ";", "if", "(", "path", "!=", "...
Initialize the dialogs fields.
[ "Initialize", "the", "dialogs", "fields", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sreinstall/StandardSREPage.java#L229-L250
56,875
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/BundleUtil.java
BundleUtil.getSourceBundlePath
public static IPath getSourceBundlePath(Bundle bundle, IPath bundleLocation) { IPath sourcesPath = null; // Not an essential functionality, make it robust try { final IPath srcFolderPath = getSourceRootProjectFolderPath(bundle); if (srcFolderPath == null) { //common case, jar file. final IPath bundl...
java
public static IPath getSourceBundlePath(Bundle bundle, IPath bundleLocation) { IPath sourcesPath = null; // Not an essential functionality, make it robust try { final IPath srcFolderPath = getSourceRootProjectFolderPath(bundle); if (srcFolderPath == null) { //common case, jar file. final IPath bundl...
[ "public", "static", "IPath", "getSourceBundlePath", "(", "Bundle", "bundle", ",", "IPath", "bundleLocation", ")", "{", "IPath", "sourcesPath", "=", "null", ";", "// Not an essential functionality, make it robust", "try", "{", "final", "IPath", "srcFolderPath", "=", "g...
Replies the source location for the given bundle. <p>The source location is usually the root folder where the source code of the bundle is located. <p>We can't use P2Utils and we can't use SimpleConfiguratorManipulator because of API breakage between 3.5 and 4.2. So we do a bit EDV (Computer data processing) ;-) @pa...
[ "Replies", "the", "source", "location", "for", "the", "given", "bundle", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/BundleUtil.java#L120-L144
56,876
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/BundleUtil.java
BundleUtil.getBundlePath
public static IPath getBundlePath(Bundle bundle) { IPath path = getBinFolderPath(bundle); if (path == null) { // common jar file case, no bin folder try { path = new Path(FileLocator.getBundleFile(bundle).getAbsolutePath()); } catch (IOException e) { throw new RuntimeException(e); } } return...
java
public static IPath getBundlePath(Bundle bundle) { IPath path = getBinFolderPath(bundle); if (path == null) { // common jar file case, no bin folder try { path = new Path(FileLocator.getBundleFile(bundle).getAbsolutePath()); } catch (IOException e) { throw new RuntimeException(e); } } return...
[ "public", "static", "IPath", "getBundlePath", "(", "Bundle", "bundle", ")", "{", "IPath", "path", "=", "getBinFolderPath", "(", "bundle", ")", ";", "if", "(", "path", "==", "null", ")", "{", "// common jar file case, no bin folder", "try", "{", "path", "=", ...
Replies the path of the binary files of the given bundle. @param bundle the bundle for which the path must be retreived. @return the path to the binaries of the bundle. @see #getSourceBundlePath(Bundle, IPath)
[ "Replies", "the", "path", "of", "the", "binary", "files", "of", "the", "given", "bundle", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/BundleUtil.java#L185-L196
56,877
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/FormalParameterBuilderImpl.java
FormalParameterBuilderImpl.setReferenceInto
public void setReferenceInto(XFeatureCall container) { JvmVoid jvmVoid = this.jvmTypesFactory.createJvmVoid(); if (jvmVoid instanceof InternalEObject) { final InternalEObject jvmVoidProxy = (InternalEObject) jvmVoid; final EObject param = getSarlFormalParameter(); final Resource resource = param.eResourc...
java
public void setReferenceInto(XFeatureCall container) { JvmVoid jvmVoid = this.jvmTypesFactory.createJvmVoid(); if (jvmVoid instanceof InternalEObject) { final InternalEObject jvmVoidProxy = (InternalEObject) jvmVoid; final EObject param = getSarlFormalParameter(); final Resource resource = param.eResourc...
[ "public", "void", "setReferenceInto", "(", "XFeatureCall", "container", ")", "{", "JvmVoid", "jvmVoid", "=", "this", ".", "jvmTypesFactory", ".", "createJvmVoid", "(", ")", ";", "if", "(", "jvmVoid", "instanceof", "InternalEObject", ")", "{", "final", "InternalE...
Replies the JvmIdentifiable that corresponds to the formal parameter. @param container the feature call that is supposed to contains the replied identifiable element.
[ "Replies", "the", "JvmIdentifiable", "that", "corresponds", "to", "the", "formal", "parameter", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/FormalParameterBuilderImpl.java#L93-L106
56,878
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/FormalParameterBuilderImpl.java
FormalParameterBuilderImpl.setParameterType
public void setParameterType(String type) { String typeName; if (Strings.isEmpty(type)) { typeName = Object.class.getName(); } else { typeName = type; } this.parameter.setParameterType(newTypeRef(this.context, typeName)); }
java
public void setParameterType(String type) { String typeName; if (Strings.isEmpty(type)) { typeName = Object.class.getName(); } else { typeName = type; } this.parameter.setParameterType(newTypeRef(this.context, typeName)); }
[ "public", "void", "setParameterType", "(", "String", "type", ")", "{", "String", "typeName", ";", "if", "(", "Strings", ".", "isEmpty", "(", "type", ")", ")", "{", "typeName", "=", "Object", ".", "class", ".", "getName", "(", ")", ";", "}", "else", "...
Change the type. @param type the formal parameter type.
[ "Change", "the", "type", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/FormalParameterBuilderImpl.java#L119-L127
56,879
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/FormalParameterBuilderImpl.java
FormalParameterBuilderImpl.getDefaultValue
@Pure public IExpressionBuilder getDefaultValue() { if (this.defaultValue == null) { this.defaultValue = this.expressionProvider.get(); this.defaultValue.eInit(this.parameter, new Procedures.Procedure1<XExpression>() { public void apply(XExpression it) { getSarlFormalParameter().setDefaultValue(it);...
java
@Pure public IExpressionBuilder getDefaultValue() { if (this.defaultValue == null) { this.defaultValue = this.expressionProvider.get(); this.defaultValue.eInit(this.parameter, new Procedures.Procedure1<XExpression>() { public void apply(XExpression it) { getSarlFormalParameter().setDefaultValue(it);...
[ "@", "Pure", "public", "IExpressionBuilder", "getDefaultValue", "(", ")", "{", "if", "(", "this", ".", "defaultValue", "==", "null", ")", "{", "this", ".", "defaultValue", "=", "this", ".", "expressionProvider", ".", "get", "(", ")", ";", "this", ".", "d...
Replies the default value of the parameter. @return the default value builder.
[ "Replies", "the", "default", "value", "of", "the", "parameter", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/FormalParameterBuilderImpl.java#L140-L151
56,880
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/SARLAnnotationUtil.java
SARLAnnotationUtil.findAnnotation
@SuppressWarnings("static-method") public JvmAnnotationReference findAnnotation(JvmAnnotationTarget annotationTarget, String lookupType) { // avoid creating an empty list for all given targets but check for #eIsSet first if (annotationTarget.eIsSet(TypesPackage.Literals.JVM_ANNOTATION_TARGET__ANNOTATIONS)) { fo...
java
@SuppressWarnings("static-method") public JvmAnnotationReference findAnnotation(JvmAnnotationTarget annotationTarget, String lookupType) { // avoid creating an empty list for all given targets but check for #eIsSet first if (annotationTarget.eIsSet(TypesPackage.Literals.JVM_ANNOTATION_TARGET__ANNOTATIONS)) { fo...
[ "@", "SuppressWarnings", "(", "\"static-method\"", ")", "public", "JvmAnnotationReference", "findAnnotation", "(", "JvmAnnotationTarget", "annotationTarget", ",", "String", "lookupType", ")", "{", "// avoid creating an empty list for all given targets but check for #eIsSet first", ...
Find an annotation. @param annotationTarget the annotation target. @param lookupType the name of the type to look for. @return the annotation or {@code null}. @see AnnotationLookup#findAnnotation(JvmAnnotationTarget, Class)
[ "Find", "an", "annotation", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/SARLAnnotationUtil.java#L251-L263
56,881
sarl/sarl
main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/parser/DynamicValidationContext.java
DynamicValidationContext.getTempResourceRoots
public List<String> getTempResourceRoots() { final List<String> tmp = this.tmpResources == null ? Collections.emptyList() : this.tmpResources; this.tmpResources = null; return tmp; }
java
public List<String> getTempResourceRoots() { final List<String> tmp = this.tmpResources == null ? Collections.emptyList() : this.tmpResources; this.tmpResources = null; return tmp; }
[ "public", "List", "<", "String", ">", "getTempResourceRoots", "(", ")", "{", "final", "List", "<", "String", ">", "tmp", "=", "this", ".", "tmpResources", "==", "null", "?", "Collections", ".", "emptyList", "(", ")", ":", "this", ".", "tmpResources", ";"...
Replies the temprary root folders for resources. <p>The temporary resources are forgiven as soon as this function is called. @return the root folders.
[ "Replies", "the", "temprary", "root", "folders", "for", "resources", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/parser/DynamicValidationContext.java#L133-L137
56,882
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/ScriptBuilderFragment.java
ScriptBuilderFragment.generateTopElement
@SuppressWarnings("checkstyle:all") protected StringConcatenationClient generateTopElement(CodeElementExtractor.ElementDescription description, boolean forInterface, boolean forAppender) { final String topElementName = Strings.toFirstUpper(description.getName()); final TypeReference builderType = getCodeElement...
java
@SuppressWarnings("checkstyle:all") protected StringConcatenationClient generateTopElement(CodeElementExtractor.ElementDescription description, boolean forInterface, boolean forAppender) { final String topElementName = Strings.toFirstUpper(description.getName()); final TypeReference builderType = getCodeElement...
[ "@", "SuppressWarnings", "(", "\"checkstyle:all\"", ")", "protected", "StringConcatenationClient", "generateTopElement", "(", "CodeElementExtractor", ".", "ElementDescription", "description", ",", "boolean", "forInterface", ",", "boolean", "forAppender", ")", "{", "final", ...
Extract a top element from the grammar. @param description the description of the top element. @param forInterface indicates if the generated code is for interfaces. @param forAppender indicates if the generated code is for appenders. @return the top element.
[ "Extract", "a", "top", "element", "from", "the", "grammar", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/ScriptBuilderFragment.java#L454-L521
56,883
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/ScriptBuilderFragment.java
ScriptBuilderFragment.generateTopElements
protected List<StringConcatenationClient> generateTopElements(boolean forInterface, boolean forAppender) { final List<StringConcatenationClient> topElements = new ArrayList<>(); for (final CodeElementExtractor.ElementDescription description : getCodeElementExtractor().getTopElements( getGrammar(), getCodeBuilde...
java
protected List<StringConcatenationClient> generateTopElements(boolean forInterface, boolean forAppender) { final List<StringConcatenationClient> topElements = new ArrayList<>(); for (final CodeElementExtractor.ElementDescription description : getCodeElementExtractor().getTopElements( getGrammar(), getCodeBuilde...
[ "protected", "List", "<", "StringConcatenationClient", ">", "generateTopElements", "(", "boolean", "forInterface", ",", "boolean", "forAppender", ")", "{", "final", "List", "<", "StringConcatenationClient", ">", "topElements", "=", "new", "ArrayList", "<>", "(", ")"...
Extract top elements from the grammar. @param forInterface indicates if the generated code is for interfaces. @param forAppender indicates if the generated code is for appender. @return the top elements.
[ "Extract", "top", "elements", "from", "the", "grammar", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/ScriptBuilderFragment.java#L529-L536
56,884
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/ScriptBuilderFragment.java
ScriptBuilderFragment.generateIScriptBuilder
protected void generateIScriptBuilder() { final List<StringConcatenationClient> topElements = generateTopElements(true, false); final TypeReference builder = getScriptBuilderInterface(); final StringConcatenationClient content = new StringConcatenationClient() { @Override protected void appendTo(TargetStrin...
java
protected void generateIScriptBuilder() { final List<StringConcatenationClient> topElements = generateTopElements(true, false); final TypeReference builder = getScriptBuilderInterface(); final StringConcatenationClient content = new StringConcatenationClient() { @Override protected void appendTo(TargetStrin...
[ "protected", "void", "generateIScriptBuilder", "(", ")", "{", "final", "List", "<", "StringConcatenationClient", ">", "topElements", "=", "generateTopElements", "(", "true", ",", "false", ")", ";", "final", "TypeReference", "builder", "=", "getScriptBuilderInterface",...
Generate the script builder interface.
[ "Generate", "the", "script", "builder", "interface", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/ScriptBuilderFragment.java#L540-L579
56,885
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/ScriptBuilderFragment.java
ScriptBuilderFragment.generateScriptSourceAppender
protected void generateScriptSourceAppender() { final List<StringConcatenationClient> topElements = generateTopElements(false, true); final TypeReference appender = getCodeElementExtractor().getElementAppenderImpl("Script"); //$NON-NLS-1$ final StringConcatenationClient content = new StringConcatenationClient() {...
java
protected void generateScriptSourceAppender() { final List<StringConcatenationClient> topElements = generateTopElements(false, true); final TypeReference appender = getCodeElementExtractor().getElementAppenderImpl("Script"); //$NON-NLS-1$ final StringConcatenationClient content = new StringConcatenationClient() {...
[ "protected", "void", "generateScriptSourceAppender", "(", ")", "{", "final", "List", "<", "StringConcatenationClient", ">", "topElements", "=", "generateTopElements", "(", "false", ",", "true", ")", ";", "final", "TypeReference", "appender", "=", "getCodeElementExtrac...
Generate the script appender.
[ "Generate", "the", "script", "appender", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/ScriptBuilderFragment.java#L583-L618
56,886
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/ScriptBuilderFragment.java
ScriptBuilderFragment.generateScriptBuilderImpl
protected void generateScriptBuilderImpl() { final List<StringConcatenationClient> topElements = generateTopElements(false, false); final TypeReference script = getScriptBuilderImpl(); final TypeReference scriptInterface = getScriptBuilderInterface(); final StringConcatenationClient content = new StringConcaten...
java
protected void generateScriptBuilderImpl() { final List<StringConcatenationClient> topElements = generateTopElements(false, false); final TypeReference script = getScriptBuilderImpl(); final TypeReference scriptInterface = getScriptBuilderInterface(); final StringConcatenationClient content = new StringConcaten...
[ "protected", "void", "generateScriptBuilderImpl", "(", ")", "{", "final", "List", "<", "StringConcatenationClient", ">", "topElements", "=", "generateTopElements", "(", "false", ",", "false", ")", ";", "final", "TypeReference", "script", "=", "getScriptBuilderImpl", ...
Generate the script builder default implementation.
[ "Generate", "the", "script", "builder", "default", "implementation", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/ScriptBuilderFragment.java#L622-L651
56,887
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/util/ClassFinder.java
ClassFinder.findClass
public static Class<?> findClass(String classname) { Class<?> type = null; final ClassLoader loader = ClassLoaderFinder.findClassLoader(); if (loader != null) { try { type = loader.loadClass(classname); } catch (ClassNotFoundException e) { // } } if (type == null) { try { type = ClassF...
java
public static Class<?> findClass(String classname) { Class<?> type = null; final ClassLoader loader = ClassLoaderFinder.findClassLoader(); if (loader != null) { try { type = loader.loadClass(classname); } catch (ClassNotFoundException e) { // } } if (type == null) { try { type = ClassF...
[ "public", "static", "Class", "<", "?", ">", "findClass", "(", "String", "classname", ")", "{", "Class", "<", "?", ">", "type", "=", "null", ";", "final", "ClassLoader", "loader", "=", "ClassLoaderFinder", ".", "findClassLoader", "(", ")", ";", "if", "(",...
Find the class with a search policy. @param classname the name of the class. @return the class.
[ "Find", "the", "class", "with", "a", "search", "policy", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/util/ClassFinder.java#L49-L77
56,888
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java
VimGenerator2.generatePreamble
protected void generatePreamble(IStyleAppendable it) { clearHilights(); final String nm = getLanguageSimpleName().toLowerCase(); final String cmd = Strings.toFirstUpper(getLanguageSimpleName().toLowerCase()) + "HiLink"; //$NON-NLS-1$ appendComment(it, "Quit when a syntax file was already loaded"); //$NON-NLS-1$...
java
protected void generatePreamble(IStyleAppendable it) { clearHilights(); final String nm = getLanguageSimpleName().toLowerCase(); final String cmd = Strings.toFirstUpper(getLanguageSimpleName().toLowerCase()) + "HiLink"; //$NON-NLS-1$ appendComment(it, "Quit when a syntax file was already loaded"); //$NON-NLS-1$...
[ "protected", "void", "generatePreamble", "(", "IStyleAppendable", "it", ")", "{", "clearHilights", "(", ")", ";", "final", "String", "nm", "=", "getLanguageSimpleName", "(", ")", ".", "toLowerCase", "(", ")", ";", "final", "String", "cmd", "=", "Strings", "....
Generate the preamble of the Vim style. @param it the receiver of the generated elements.
[ "Generate", "the", "preamble", "of", "the", "Vim", "style", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java#L129-L157
56,889
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java
VimGenerator2.generatePostamble
protected void generatePostamble(IStyleAppendable it) { appendComment(it, "catch errors caused by wrong parenthesis"); //$NON-NLS-1$ appendCmd(it, "syn region sarlParenT transparent matchgroup=sarlParen start=\"(\" end=\")\" contains=@sarlTop,sarlParenT1"); //$NON-NLS-1$ appendCmd(it, "syn region sarlParenT1 tra...
java
protected void generatePostamble(IStyleAppendable it) { appendComment(it, "catch errors caused by wrong parenthesis"); //$NON-NLS-1$ appendCmd(it, "syn region sarlParenT transparent matchgroup=sarlParen start=\"(\" end=\")\" contains=@sarlTop,sarlParenT1"); //$NON-NLS-1$ appendCmd(it, "syn region sarlParenT1 tra...
[ "protected", "void", "generatePostamble", "(", "IStyleAppendable", "it", ")", "{", "appendComment", "(", "it", ",", "\"catch errors caused by wrong parenthesis\"", ")", ";", "//$NON-NLS-1$", "appendCmd", "(", "it", ",", "\"syn region sarlParenT transparent matchgroup=sarlPare...
Generate the postamble of the Vim style. @param it the receiver of the generated elements.
[ "Generate", "the", "postamble", "of", "the", "Vim", "style", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java#L163-L206
56,890
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java
VimGenerator2.generatePrimitiveTypes
protected void generatePrimitiveTypes(IStyleAppendable it, Iterable<String> types) { final Iterator<String> iterator = types.iterator(); if (iterator.hasNext()) { appendComment(it, "primitive types."); //$NON-NLS-1$ appendMatch(it, "sarlArrayDeclaration", "\\(\\s*\\[\\s*\\]\\)*", true); //$NON-NLS-1$//$NON-NL...
java
protected void generatePrimitiveTypes(IStyleAppendable it, Iterable<String> types) { final Iterator<String> iterator = types.iterator(); if (iterator.hasNext()) { appendComment(it, "primitive types."); //$NON-NLS-1$ appendMatch(it, "sarlArrayDeclaration", "\\(\\s*\\[\\s*\\]\\)*", true); //$NON-NLS-1$//$NON-NL...
[ "protected", "void", "generatePrimitiveTypes", "(", "IStyleAppendable", "it", ",", "Iterable", "<", "String", ">", "types", ")", "{", "final", "Iterator", "<", "String", ">", "iterator", "=", "types", ".", "iterator", "(", ")", ";", "if", "(", "iterator", ...
Generate the keywords for the primitive types. @param it the receiver of the generated elements. @param types the primitive types.
[ "Generate", "the", "keywords", "for", "the", "primitive", "types", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java#L222-L238
56,891
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java
VimGenerator2.generateComments
protected void generateComments(IStyleAppendable it) { appendComment(it, "comments"); //$NON-NLS-1$ appendRegion(it, "sarlComment", "/\\*", "\\*/", "@Spell"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ appendCmd(it, "syn match sarlCommentStar contained \"^\\s*\\*[^/]\"me=e-1"); //$NON-NLS-1$ append...
java
protected void generateComments(IStyleAppendable it) { appendComment(it, "comments"); //$NON-NLS-1$ appendRegion(it, "sarlComment", "/\\*", "\\*/", "@Spell"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ appendCmd(it, "syn match sarlCommentStar contained \"^\\s*\\*[^/]\"me=e-1"); //$NON-NLS-1$ append...
[ "protected", "void", "generateComments", "(", "IStyleAppendable", "it", ")", "{", "appendComment", "(", "it", ",", "\"comments\"", ")", ";", "//$NON-NLS-1$", "appendRegion", "(", "it", ",", "\"sarlComment\"", ",", "\"/\\\\*\"", ",", "\"\\\\*/\"", ",", "\"@Spell\""...
Generate the Vim comments. @param it the receiver of the generated elements.
[ "Generate", "the", "Vim", "comments", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java#L244-L258
56,892
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java
VimGenerator2.generateStrings
protected void generateStrings(IStyleAppendable it) { appendComment(it, "Strings constants"); //$NON-NLS-1$ appendMatch(it, "sarlSpecialError", "\\\\.", true); //$NON-NLS-1$ //$NON-NLS-2$ appendMatch(it, "sarlSpecialCharError", "[^']", true); //$NON-NLS-1$ //$NON-NLS-2$ appendMatch(it, "sarlSpecialChar", "\\\\\...
java
protected void generateStrings(IStyleAppendable it) { appendComment(it, "Strings constants"); //$NON-NLS-1$ appendMatch(it, "sarlSpecialError", "\\\\.", true); //$NON-NLS-1$ //$NON-NLS-2$ appendMatch(it, "sarlSpecialCharError", "[^']", true); //$NON-NLS-1$ //$NON-NLS-2$ appendMatch(it, "sarlSpecialChar", "\\\\\...
[ "protected", "void", "generateStrings", "(", "IStyleAppendable", "it", ")", "{", "appendComment", "(", "it", ",", "\"Strings constants\"", ")", ";", "//$NON-NLS-1$", "appendMatch", "(", "it", ",", "\"sarlSpecialError\"", ",", "\"\\\\\\\\.\"", ",", "true", ")", ";"...
Generate the Vim strings of characters. @param it the receiver of the generated elements.
[ "Generate", "the", "Vim", "strings", "of", "characters", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java#L264-L276
56,893
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java
VimGenerator2.generateNumericConstants
protected void generateNumericConstants(IStyleAppendable it) { appendComment(it, "numerical constants"); //$NON-NLS-1$ appendMatch(it, "sarlNumber", "[0-9][0-9]*\\.[0-9]\\+([eE][0-9]\\+)\\?[fFdD]\\?"); //$NON-NLS-1$ //$NON-NLS-2$ appendMatch(it, "sarlNumber", "0[xX][0-9a-fA-F]\\+"); //$NON-NLS-1$ //$NON-NLS-2$ ...
java
protected void generateNumericConstants(IStyleAppendable it) { appendComment(it, "numerical constants"); //$NON-NLS-1$ appendMatch(it, "sarlNumber", "[0-9][0-9]*\\.[0-9]\\+([eE][0-9]\\+)\\?[fFdD]\\?"); //$NON-NLS-1$ //$NON-NLS-2$ appendMatch(it, "sarlNumber", "0[xX][0-9a-fA-F]\\+"); //$NON-NLS-1$ //$NON-NLS-2$ ...
[ "protected", "void", "generateNumericConstants", "(", "IStyleAppendable", "it", ")", "{", "appendComment", "(", "it", ",", "\"numerical constants\"", ")", ";", "//$NON-NLS-1$", "appendMatch", "(", "it", ",", "\"sarlNumber\"", ",", "\"[0-9][0-9]*\\\\.[0-9]\\\\+([eE][0-9]\\...
Generate the Vim numeric constants. @param it the receiver of the generated elements.
[ "Generate", "the", "Vim", "numeric", "constants", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java#L282-L290
56,894
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java
VimGenerator2.generateAnnotations
protected void generateAnnotations(IStyleAppendable it) { appendComment(it, "annnotation"); //$NON-NLS-1$ appendMatch(it, "sarlAnnotation", "@[_a-zA-Z][_0-9a-zA-Z]*\\([.$][_a-zA-Z][_0-9a-zA-Z]*\\)*"); //$NON-NLS-1$ //$NON-NLS-2$ appendCluster(it, "sarlAnnotation"); //$NON-NLS-1$ hilight("sarlAnnotation", VimSyn...
java
protected void generateAnnotations(IStyleAppendable it) { appendComment(it, "annnotation"); //$NON-NLS-1$ appendMatch(it, "sarlAnnotation", "@[_a-zA-Z][_0-9a-zA-Z]*\\([.$][_a-zA-Z][_0-9a-zA-Z]*\\)*"); //$NON-NLS-1$ //$NON-NLS-2$ appendCluster(it, "sarlAnnotation"); //$NON-NLS-1$ hilight("sarlAnnotation", VimSyn...
[ "protected", "void", "generateAnnotations", "(", "IStyleAppendable", "it", ")", "{", "appendComment", "(", "it", ",", "\"annnotation\"", ")", ";", "//$NON-NLS-1$", "appendMatch", "(", "it", ",", "\"sarlAnnotation\"", ",", "\"@[_a-zA-Z][_0-9a-zA-Z]*\\\\([.$][_a-zA-Z][_0-9a...
Generate the annotations. @param it the receiver of the generated elements.
[ "Generate", "the", "annotations", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java#L296-L302
56,895
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java
VimGenerator2.generateKeywords
protected void generateKeywords(IStyleAppendable it, String family, VimSyntaxGroup color, Iterable<String> keywords) { appendComment(it, "keywords for the '" + family + "' family."); //$NON-NLS-1$ //$NON-NLS-2$ final Iterator<String> iterator = keywords.iterator(); if (iterator.hasNext()) { it.append("syn keyw...
java
protected void generateKeywords(IStyleAppendable it, String family, VimSyntaxGroup color, Iterable<String> keywords) { appendComment(it, "keywords for the '" + family + "' family."); //$NON-NLS-1$ //$NON-NLS-2$ final Iterator<String> iterator = keywords.iterator(); if (iterator.hasNext()) { it.append("syn keyw...
[ "protected", "void", "generateKeywords", "(", "IStyleAppendable", "it", ",", "String", "family", ",", "VimSyntaxGroup", "color", ",", "Iterable", "<", "String", ">", "keywords", ")", "{", "appendComment", "(", "it", ",", "\"keywords for the '\"", "+", "family", ...
Generate the Vim keywords. @param it the receiver of the generated elements. @param family the name of the keyword family. @param color the color to be associated to the elements. @param keywords the keywords.
[ "Generate", "the", "Vim", "keywords", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java#L311-L326
56,896
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java
VimGenerator2.appendCmd
protected IStyleAppendable appendCmd(IStyleAppendable it, String text) { return appendCmd(it, true, text); }
java
protected IStyleAppendable appendCmd(IStyleAppendable it, String text) { return appendCmd(it, true, text); }
[ "protected", "IStyleAppendable", "appendCmd", "(", "IStyleAppendable", "it", ",", "String", "text", ")", "{", "return", "appendCmd", "(", "it", ",", "true", ",", "text", ")", ";", "}" ]
Append a Vim command. @param it the receiver of the generated elements. @param text the text of the command. @return {@code it}.
[ "Append", "a", "Vim", "command", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java#L539-L541
56,897
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java
VimGenerator2.generateFileTypeDetectionScript
protected void generateFileTypeDetectionScript(String basename) { final CharSequence scriptContent = getFileTypeDetectionScript(); if (scriptContent != null) { final String textualContent = scriptContent.toString(); if (!Strings.isEmpty(textualContent)) { final byte[] bytes = textualContent.getBytes(); ...
java
protected void generateFileTypeDetectionScript(String basename) { final CharSequence scriptContent = getFileTypeDetectionScript(); if (scriptContent != null) { final String textualContent = scriptContent.toString(); if (!Strings.isEmpty(textualContent)) { final byte[] bytes = textualContent.getBytes(); ...
[ "protected", "void", "generateFileTypeDetectionScript", "(", "String", "basename", ")", "{", "final", "CharSequence", "scriptContent", "=", "getFileTypeDetectionScript", "(", ")", ";", "if", "(", "scriptContent", "!=", "null", ")", "{", "final", "String", "textualCo...
Generate the script for detecting the SARL files. @param basename the name of the file to create. @see #getFileTypeDetectionScript()
[ "Generate", "the", "script", "for", "detecting", "the", "SARL", "files", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java#L583-L601
56,898
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java
VimGenerator2.getFileTypeDetectionScript
protected CharSequence getFileTypeDetectionScript() { return concat( "\" Vim filetype-detection file", //$NON-NLS-1$ "\" Language: " + getLanguageSimpleName(), //$NON-NLS-1$ "\" Version: " + getLanguageVersion(), //$NON-NLS-1$ "", //$NON-NLS-1$ "au BufRead,BufNewFile *." + getLanguage().getFileExt...
java
protected CharSequence getFileTypeDetectionScript() { return concat( "\" Vim filetype-detection file", //$NON-NLS-1$ "\" Language: " + getLanguageSimpleName(), //$NON-NLS-1$ "\" Version: " + getLanguageVersion(), //$NON-NLS-1$ "", //$NON-NLS-1$ "au BufRead,BufNewFile *." + getLanguage().getFileExt...
[ "protected", "CharSequence", "getFileTypeDetectionScript", "(", ")", "{", "return", "concat", "(", "\"\\\" Vim filetype-detection file\"", ",", "//$NON-NLS-1$", "\"\\\" Language: \"", "+", "getLanguageSimpleName", "(", ")", ",", "//$NON-NLS-1$", "\"\\\" Version: \"", "+", "...
Replies the script for detecting the SARL files. @return the content of the "ftdetect" script.
[ "Replies", "the", "script", "for", "detecting", "the", "SARL", "files", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/vim/VimGenerator2.java#L607-L615
56,899
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/preferences/SARLBuilderConfigurationBlock.java
SARLBuilderConfigurationBlock.getOutputConfigurations
@Override protected Set<OutputConfiguration> getOutputConfigurations(IProject project) { final Set<OutputConfiguration> original = this.configurationProvider.getOutputConfigurations(getProject()); return Sets.filter(original, it -> !ExtraLanguageOutputConfigurations.isExtraLanguageOutputConfiguration(it.getName())...
java
@Override protected Set<OutputConfiguration> getOutputConfigurations(IProject project) { final Set<OutputConfiguration> original = this.configurationProvider.getOutputConfigurations(getProject()); return Sets.filter(original, it -> !ExtraLanguageOutputConfigurations.isExtraLanguageOutputConfiguration(it.getName())...
[ "@", "Override", "protected", "Set", "<", "OutputConfiguration", ">", "getOutputConfigurations", "(", "IProject", "project", ")", "{", "final", "Set", "<", "OutputConfiguration", ">", "original", "=", "this", ".", "configurationProvider", ".", "getOutputConfigurations...
Replies the output configurations for the given project. <p>This function filters the output configurations in order to never reply one associated to a extra language output. @param project the project. @return the output configurations associated to the given project.
[ "Replies", "the", "output", "configurations", "for", "the", "given", "project", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/preferences/SARLBuilderConfigurationBlock.java#L118-L122