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
DROOLS-2913: [DMN Designer] Data-types: Grid: FunctionDefinition #2055
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
protected Consumer<HasName> clearDisplayNameConsumer() { | ||
return (hn) -> { | ||
final CompositeCommand.Builder commandBuilder = newHasNameHasNoValueCommand(hn); | ||
getUpdateStunnerTitleCommand("").ifPresent(commandBuilder::addCommand); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that I already saw something pretty similar on InvocationGrid, LiteralExpression, and BaseExpressionGrid. Maybe we could try to avoid the duplication, but if the refactoring represents a big indirection, I'm ok for keeping it as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@karreiro Let me loop back to this type of thing when all the current PRs are merged (i.e. I'll collect all these types of comment and probably do a "clean up" JIRA afterwards). Thank-you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@karreiro ... and yes, this standard override of the default implementation is re-used in the places you say... but not everywhere; only overrides in a few places (but the override is the same each time, so room for improvement).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@manstis ok. Thank you for clarifying 😊
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jomarko This PR is good to review too now; thanks. |
@jomarko can you please take a look on this? |
final Text typeRef = context.getRenderer().getTheme().getHeaderText(); | ||
typeRef.setFontStyle(FONT_STYLE_TYPE_REF); | ||
typeRef.setFontSize(BaseExpressionGridTheme.FONT_SIZE - 2.0); | ||
typeRef.setText("(" + headerMetaData.getTypeRef().toString() + ")"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can be shortened to:
typeRef.setText("(" + headerMetaData.getTypeRef() + ")");
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jomarko Updated.
@manstis manual check passed, please just say your opinion to my comment above before approving. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Jenkins please retest this. |
1 similar comment
Jenkins please retest this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
failing test is not related.
See https://issues.jboss.org/browse/DROOLS-2913
As with all these "in grid" editor changes; this PR will be merged after the others in the queue.