@Test public void testGetExpressionLanguageTitle() { KindUtilities.setKind(this.function, FunctionDefinition.Kind.FEEL); assertEquals(FunctionDefinition.Kind.FEEL.code(), header.getExpressionLanguageTitle()); }
String getExpressionLanguageTitle() { final FunctionDefinition.Kind kind = KindUtilities.getKind(functionSupplier.get().get()); return kind == null ? translationService.getTranslation(DMNEditorConstants.FunctionEditor_Undefined) : kind.code(); }
FunctionColumnParametersHeaderMetaData extends EditablePopupHeaderMetaData<HasParametersControl, ParametersPopoverView.Presenter> { String getExpressionLanguageTitle() { final FunctionDefinition.Kind kind = KindUtilities.getKind(functionSupplier.get().get()); return kind == null ? translationService.getTranslation(DMNEditorConstants.FunctionEditor_Undefined) : kind.code(); } }
FunctionColumnParametersHeaderMetaData extends EditablePopupHeaderMetaData<HasParametersControl, ParametersPopoverView.Presenter> { String getExpressionLanguageTitle() { final FunctionDefinition.Kind kind = KindUtilities.getKind(functionSupplier.get().get()); return kind == null ? translationService.getTranslation(DMNEditorConstants.FunctionEditor_Undefined) : kind.code(); } FunctionColumnParametersHeaderMetaData(final Supplier<Optional<FunctionDefinition>> functionSupplier,
                                                  final TranslationService translationService,
                                                  final CellEditorControlsView.Presenter cellEditorControls,
                                                  final ParametersPopoverView.Presenter editor,
                                                  final FunctionGrid gridWidget); }
FunctionColumnParametersHeaderMetaData extends EditablePopupHeaderMetaData<HasParametersControl, ParametersPopoverView.Presenter> { String getExpressionLanguageTitle() { final FunctionDefinition.Kind kind = KindUtilities.getKind(functionSupplier.get().get()); return kind == null ? translationService.getTranslation(DMNEditorConstants.FunctionEditor_Undefined) : kind.code(); } FunctionColumnParametersHeaderMetaData(final Supplier<Optional<FunctionDefinition>> functionSupplier,
                                                  final TranslationService translationService,
                                                  final CellEditorControlsView.Presenter cellEditorControls,
                                                  final ParametersPopoverView.Presenter editor,
                                                  final FunctionGrid gridWidget); @Override String getColumnGroup(); @Override String getTitle(); @Override Group render(final GridHeaderColumnRenderContext context,
                        final double blockWidth,
                        final double blockHeight); @Override Optional<String> getPlaceHolder(); }
FunctionColumnParametersHeaderMetaData extends EditablePopupHeaderMetaData<HasParametersControl, ParametersPopoverView.Presenter> { String getExpressionLanguageTitle() { final FunctionDefinition.Kind kind = KindUtilities.getKind(functionSupplier.get().get()); return kind == null ? translationService.getTranslation(DMNEditorConstants.FunctionEditor_Undefined) : kind.code(); } FunctionColumnParametersHeaderMetaData(final Supplier<Optional<FunctionDefinition>> functionSupplier,
                                                  final TranslationService translationService,
                                                  final CellEditorControlsView.Presenter cellEditorControls,
                                                  final ParametersPopoverView.Presenter editor,
                                                  final FunctionGrid gridWidget); @Override String getColumnGroup(); @Override String getTitle(); @Override Group render(final GridHeaderColumnRenderContext context,
                        final double blockWidth,
                        final double blockHeight); @Override Optional<String> getPlaceHolder();  }