Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[xtend generator] Migration of 'ContentAssistFragment'/'JavaBasedContentAssistFragment' #662

Merged
merged 2 commits into from Oct 9, 2015
Merged

[xtend generator] Migration of 'ContentAssistFragment'/'JavaBasedContentAssistFragment' #662

merged 2 commits into from Oct 9, 2015

Conversation

sailingKieler
Copy link
Contributor

Signed-off-by: Christian Schneider christian.schneider@itemis.de

Signed-off-by: Christian Schneider <christian.schneider@itemis.de>
/**
* Extra getter facilitates customization by overriding.
*/
def protected TypeReference getDefaultEObjectLabelProviderSuperClass() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this used somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a test of reviewers' attention ;-)

…ested in review

Signed-off-by: Christian Schneider <christian.schneider@itemis.de>
@sailingKieler
Copy link
Contributor Author

Done with all your suggested improvements. Feel free to have another look!

}


// generation of the 'Abstract...ProposalProvider'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

oehme added a commit that referenced this pull request Oct 9, 2015
[xtend generator] Migration of 'ContentAssistFragment'/'JavaBasedContentAssistFragment'
@oehme oehme merged commit 95c98a7 into eclipse:master Oct 9, 2015
}

def protected TypeReference getGenProposalProviderSuperClass(Grammar g) {
val superGrammar = g.nonTerminalsSuperGrammar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor stylistic, subjective thing: With more involving expressions, an explicit return can often clarify the control flow. See getGenProposalProviderSuperClass and in getFQFeatureNamesToExclude

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree. Actually I'm a fan of explicit return statements, but I wasn't sure whether you guys would use it in these cases.
Thanks for that remark :-)

@sailingKieler sailingKieler deleted the aa/contentAssistProvider branch October 26, 2015 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants