method2testcases
stringlengths
118
6.63k
### Question: DMNGridPanel extends GridLienzoPanel { @Override public void onResize() { doResize(() -> { updatePanelSize(); refreshScrollPosition(); final TransformMediator restriction = mousePanMediator.getTransformMediator(); final Transform transform = restriction.adjust(getDefaultGridLayer().getViewport().getTransf...
### Question: QNamePropertyType implements PropertyType { @Override public String getName() { return NAME; } @Override String getName(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); static final String NAME; }### Answer: @Test public void testName() { assertEquals(QN...
### Question: AllowedAnswers implements DMNProperty { public AllowedAnswers copy() { return new AllowedAnswers(value); } AllowedAnswers(); AllowedAnswers(final String value); AllowedAnswers copy(); String getValue(); void setValue(final String value); @Override boolean equals(final Object o); @Override int hashCode();...
### Question: DMNDefinitionSetResourceType extends AbstractDefinitionSetResourceType { @Override public Category getCategory() { return this.category; } DMNDefinitionSetResourceType(); @Inject DMNDefinitionSetResourceType(final Decision category); @Override Category getCategory(); @Override String getShortName(); @Ove...
### Question: DMNDefinitionSetResourceType extends AbstractDefinitionSetResourceType { @Override public String getShortName() { return NAME; } DMNDefinitionSetResourceType(); @Inject DMNDefinitionSetResourceType(final Decision category); @Override Category getCategory(); @Override String getShortName(); @Override Stri...
### Question: DMNDefinitionSetResourceType extends AbstractDefinitionSetResourceType { @Override public String getDescription() { return DESCRIPTION; } DMNDefinitionSetResourceType(); @Inject DMNDefinitionSetResourceType(final Decision category); @Override Category getCategory(); @Override String getShortName(); @Over...
### Question: DMNDefinitionSetResourceType extends AbstractDefinitionSetResourceType { @Override public String getSuffix() { return DMN_EXTENSION; } DMNDefinitionSetResourceType(); @Inject DMNDefinitionSetResourceType(final Decision category); @Override Category getCategory(); @Override String getShortName(); @Overrid...
### Question: DMNDefinitionSetResourceType extends AbstractDefinitionSetResourceType { @Override public int getPriority() { return 0; } DMNDefinitionSetResourceType(); @Inject DMNDefinitionSetResourceType(final Decision category); @Override Category getCategory(); @Override String getShortName(); @Override String getD...
### Question: DMNDefinitionSetResourceType extends AbstractDefinitionSetResourceType { @Override public Class<?> getDefinitionSetType() { return DMNDefinitionSet.class; } DMNDefinitionSetResourceType(); @Inject DMNDefinitionSetResourceType(final Decision category); @Override Category getCategory(); @Override String ge...
### Question: DMNImportTypes { public static DMNImportTypes determineImportType(final String namespace) { return importTypes .stream() .filter(importType -> importType.matchesNamespace(namespace)) .findFirst() .orElse(null); } private DMNImportTypes(final String fileExtension, final String.....
### Question: DMNImportTypes { public List<String> getNamespaces() { return namespaces; } private DMNImportTypes(final String fileExtension, final String... namespaces); static DMNImportTypes determineImportType(final String namespace); String getFileExtension(); String getDefaultNamespace()...
### Question: NameAndDataTypeColumnRenderer extends BaseGridColumnRenderer<InformationItemCell.HasNameCell> { @Override public Group renderCell(final GridCell<InformationItemCell.HasNameCell> cell, final GridBodyCellRenderContext context) { if (cell == null || cell.getValue() == null) { return null; } final Information...
### Question: DMNImportTypes { public String getDefaultNamespace() { return namespaces.get(namespaces.size() - 1); } private DMNImportTypes(final String fileExtension, final String... namespaces); static DMNImportTypes determineImportType(final String namespace); String getFileExtension(); S...
### Question: PMMLParameterMetadata { public String getName() { return name; } PMMLParameterMetadata(final @MapsTo("name") String name); String getName(); }### Answer: @Test public void testGetters() { final PMMLParameterMetadata metadata = new PMMLParameterMetadata(PARAMETER_NAME); assertEquals(PARAMETER_NAME, metada...
### Question: PMMLIncludedModel extends BaseIncludedModel { public Integer getModelCount() { return modelCount; } PMMLIncludedModel(final @MapsTo("modelName") String modelName, final @MapsTo("modelPackage") String modelPackage, final @MapsTo("path") String path,...
### Question: DataObject { public String getClassNameWithoutPackage() { int lastIndex = 0; if (classType.contains(".")) { lastIndex = classType.lastIndexOf('.') + 1; } return classType.substring(lastIndex); } DataObject(); DataObject(final String classType); String getClassType(); void setClassType(final String classT...
### Question: BuiltInTypeUtils { public static boolean isBuiltInType(final String type) { return builtInTypeNames() .anyMatch(builtInTypeName -> Objects.equals(builtInTypeName, type)); } static boolean isBuiltInType(final String type); static Optional<BuiltInType> findBuiltInTypeByName(final String name); }### Answer...
### Question: ListBoxDOMElement extends BaseDOMElement<String, ListBox> implements TakesValue<String>, Focusable { @Override public void setValue(final String value) { this.originalValue = value; for (int i = 0; i < widget.getItemCount();...
### Question: BuiltInTypeUtils { public static Optional<BuiltInType> findBuiltInTypeByName(final String name) { return getBuiltInTypeValuesStream() .filter(builtInType -> Arrays.asList(builtInType.getNames()).contains(name)) .findAny(); } static boolean isBuiltInType(final String type); static Optional<BuiltInType> fi...
### Question: DMNDiagramUtils { public List<DRGElement> getDRGElements(final Diagram diagram) { return getDefinitionStream(diagram) .filter(d -> d instanceof DRGElement) .map(d -> (DRGElement) d) .collect(Collectors.toList()); } DMNDiagramUtils(); List<DRGElement> getDRGElements(final Diagram diagram); String getNamesp...
### Question: DMNDiagramUtils { public Definitions getDefinitions(final Diagram diagram) { return getDefinitionStream(diagram) .filter(d -> d instanceof DMNDiagram) .map(d -> (DMNDiagram) d) .findFirst() .map(DMNDiagram::getDefinitions) .orElse(NONE); } DMNDiagramUtils(); List<DRGElement> getDRGElements(final Diagram d...
### Question: AcyclicDirectedGraphRule extends RuleExtensionHandler<AcyclicDirectedGraphRule, GraphConnectionContext> { @Override @SuppressWarnings("unchecked") public RuleViolations evaluate(final RuleExtension rule, final GraphConnectionContext context) { final GraphEvaluationState state = context.getState(); final G...
### Question: SingleConnectorPerTypeGraphRule extends RuleExtensionHandler<SingleConnectorPerTypeGraphRule, GraphConnectionContext> { @Override @SuppressWarnings("unchecked") public RuleViolations evaluate(final RuleExtension rule, final GraphConnectionContext context) { final Optional<Node<? extends View<?>, ? extends...
### Question: ListBoxDOMElement extends BaseDOMElement<String, ListBox> implements TakesValue<String>, Focusable { @Override public String getValue() { return widget.getSelectedValue(); } ListBoxDOMElement(final ListBox widget, ...
### Question: NoInputNodesInImportedDecisionRule extends RuleExtensionHandler<NoInputNodesInImportedDecisionRule, GraphConnectionContext> { @Override public RuleViolations evaluate(final RuleExtension rule, final GraphConnectionContext context) { final Optional<Node<? extends View<?>, ? extends Edge>> oSource = context...
### Question: NoInputNodesInImportedDecisionRule extends RuleExtensionHandler<NoInputNodesInImportedDecisionRule, GraphConnectionContext> { boolean isReadOnly(final Optional<Node<? extends View<?>, ? extends Edge>> oTarget) { final Node<? extends View<?>, ? extends Edge> target = oTarget.get(); final View<?> content = ...
### Question: NoInputNodesInImportedDecisionRule extends RuleExtensionHandler<NoInputNodesInImportedDecisionRule, GraphConnectionContext> { @Override public boolean accepts(final RuleExtension rule, final GraphConnectionContext context) { if (context.getTarget().isPresent()) { final Node<? extends View<?>, ? extends Ed...
### Question: OutputClause extends DMNElement implements HasTypeRef, DomainObject { @Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = new ArrayList<>(singletonList(this)); hasTypeRefs.addAll(getNotNullHasTypeRefs(getDefaultO...
### Question: OutputClause extends DMNElement implements HasTypeRef, DomainObject { public OutputClause copy() { return new OutputClause( new Id(), Optional.ofNullable(description).map(Description::copy).orElse(null), Optional.ofNullable(outputValues).map(OutputCl...
### Question: DecisionTable extends Expression { public HitPolicy getHitPolicy() { if (hitPolicy == null) { return HitPolicy.UNIQUE; } else { return hitPolicy; } } DecisionTable(); DecisionTable(final Id id, final Description description, final QName typeRef, ...
### Question: DecisionTable extends Expression { @Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getFlatHasTypeRefs(getInput())); hasTypeRefs.addAll(getFlatHasTypeRefs(getOutput())); hasTypeRefs.addAll(getFlatHasTypeRefs(getRule())); r...
### Question: DecisionTable extends Expression { @Override public int getRequiredComponentWidthCount() { return getInput().size() + getOutput().size() + getAnnotations().size() + STATIC_COLUMNS; } DecisionTable(); DecisionTable(final Id id, final Description description, ...
### Question: DecisionTable extends Expression { @Override public DecisionTable copy() { final DecisionTable clonedDecisionTable = new DecisionTable(); clonedDecisionTable.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedDecisionTable.typeRef = Optional.ofNullable(typeRef).map(Q...
### Question: TextBoxDOMElement extends BaseDOMElement<String, TextBox> implements TakesValue<String>, Focusable { @Override public void setValue(final String value) { getWidget().setValue(value); this.originalValue = value; } TextBoxDOME...
### Question: InputClauseLiteralExpression extends DMNModelInstrumentedBase implements IsLiteralExpression, HasText, HasTypeRef, ...
### Question: InputClauseLiteralExpression extends DMNModelInstrumentedBase implements IsLiteralExpression, HasText, HasTypeRef, ...
### Question: RuleAnnotationClause extends DMNElement implements HasName { public RuleAnnotationClause copy() { final RuleAnnotationClause clonedRuleAnnotationClause = new RuleAnnotationClause(); clonedRuleAnnotationClause.name = Optional.ofNullable(name).map(Name::copy).orElse(null); return clonedRuleAnnotationClause;...
### Question: TextAnnotation extends Artifact implements DMNViewDefinition<GeneralRectangleDimensionsSet>, HasText, HasContentDefinitionId, DynamicReadO...
### Question: TextAnnotation extends Artifact implements DMNViewDefinition<GeneralRectangleDimensionsSet>, HasText, HasContentDefinitionId, DynamicReadO...
### Question: LiteralExpression extends Expression implements IsLiteralExpression, HasText, DomainObject { @Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; } LiteralExp...
### Question: LiteralExpression extends Expression implements IsLiteralExpression, HasText, DomainObject { @Override public LiteralExpression copy() { final LiteralExpression clonedLiteralExpression...
### Question: TextBoxDOMElement extends BaseDOMElement<String, TextBox> implements TakesValue<String>, Focusable { @Override public String getValue() { return getWidget().getValue(); } TextBoxDOMElement(final TextBox widget, ...
### Question: Context extends Expression { @Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getFlatHasTypeRefs(getContextEntry())); return hasTypeRefs; } Context(); Context(final Id id, final Description description,...
### Question: Context extends Expression { @Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; } Context(); Context(final Id id, final Description description, final QName typeRef); @Override Context copy(); List<ContextEntry> getContextEntry(); @Overrid...
### Question: Context extends Expression { @Override public Context copy() { final Context clonedContext = new Context(); clonedContext.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedContext.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedContext.co...
### Question: Invocation extends Expression implements HasExpression { @Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getFlatHasTypeRefs(getBinding())); return hasTypeRefs; }...
### Question: Invocation extends Expression implements HasExpression { @Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; } Invocation(); Invocation(final Id id, final Description description, final QName typeRef, final Expre...
### Question: Invocation extends Expression implements HasExpression { @Override public Invocation copy() { final Invocation clonedInvocation = new Invocation(); clonedInvocation.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedInvocation.typeRef = Optional.ofNullable(typeRef).m...
### Question: NamedElement extends DMNElement implements HasName { @Override public void setName(final Name name) { this.name = name; this.nameHolder.setValue(name); } NamedElement(); NamedElement(final Id id, final Description description, final Name name); @Override Na...
### Question: NamedElement extends DMNElement implements HasName { public void setNameHolder(final NameHolder nameHolder) { this.name.setValue(nameHolder.getValue().getValue()); this.nameHolder = nameHolder; } NamedElement(); NamedElement(final Id id, final Description description, ...
### Question: FunctionDefinition extends Expression implements HasExpression { @Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getFlatHasTypeRefs(getFormalParameter())); retur...
### Question: FunctionDefinition extends Expression implements HasExpression { @Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; } FunctionDefinition(); FunctionDefinition(final Id id, final Description description, final QName ty...
### Question: MonacoEditorWidget extends TextBoxBase { public void setValue(final String value) { getCodeEditor().ifPresent(c -> c.setValue(value)); } MonacoEditorWidget(); void setCodeEditor(final MonacoStandaloneCodeEditor codeEditor); void setValue(final String value); @Override String getValue(); @Override void set...
### Question: FunctionDefinition extends Expression implements HasExpression { @Override public FunctionDefinition copy() { final FunctionDefinition clonedFunctionDefinition = new FunctionDefinition(); clonedFunctionDefinition.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedFun...
### Question: Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() ...
### Question: ContextEntry extends DMNModelInstrumentedBase implements HasExpression, HasTypeRefs, HasVariable<InformationItem> { @Override public List<HasTypeRef> getHasTypeRefs()...
### Question: ContextEntry extends DMNModelInstrumentedBase implements HasExpression, HasTypeRefs, HasVariable<InformationItem> { public ContextEntry copy() { final ContextEntry cl...
### Question: List extends Expression { @Override public java.util.List<HasTypeRef> getHasTypeRefs() { final java.util.List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getFlatHasTypeRefsFromExpressions(getExpression())); return hasTypeRefs; } List(); List(final Id id, final Des...
### Question: MonacoEditorWidget extends TextBoxBase { @Override public String getValue() { return getCodeEditor() .map(editor -> editor.getValue()) .orElse(""); } MonacoEditorWidget(); void setCodeEditor(final MonacoStandaloneCodeEditor codeEditor); void setValue(final String value); @Override String getValue(); @Over...
### Question: List extends Expression { @Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; } List(); List(final Id id, final Description description, final QName typeRef, final java.util.List<HasExpression> expression); @Override List copy(); ...
### Question: List extends Expression { @Override public List copy() { final List clonedList = new List(); clonedList.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedList.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedList.componentWidths = new Arra...
### Question: ImportPMML extends Import { @Override public Name getName() { return wrapped; } ImportPMML(); ImportPMML(final String namespace, final LocationURI locationURI, final String importType); int getModelCount(); void setModelCount(final int modelCount); @Override St...
### Question: RuleAnnotationClauseText extends DMNElement implements HasText { public RuleAnnotationClauseText copy() { final RuleAnnotationClauseText clonedRuleAnnotationClauseText = new RuleAnnotationClauseText(); clonedRuleAnnotationClauseText.text = Optional.ofNullable(text).map(Text::copy).orElse(null); return clo...
### Question: DecisionRule extends DMNElement implements HasTypeRefs { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(getFlatHasTypeRefs(getOutputEntry())); } DecisionRule(); DecisionRule(final Id id, final Description description, final List...
### Question: DecisionRule extends DMNElement implements HasTypeRefs { public DecisionRule copy() { DecisionRule clonedDecisionRule = new DecisionRule(); clonedDecisionRule.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedDecisionRule.inputEntry = inputEntry.stream().map(UnaryTe...
### Question: HasTypeRefHelper { public static List<HasTypeRef> getNotNullHasTypeRefs(final HasTypeRef hasTypeRef) { final Optional<HasTypeRef> optional = Optional.ofNullable(hasTypeRef); return optional .map(HasTypeRef::getHasTypeRefs) .orElse(emptyList()); } static List<HasTypeRef> getNotNullHasTypeRefs(final HasTyp...
### Question: MonacoEditorWidget extends TextBoxBase { @Override public void setFocus(final boolean focused) { getCodeEditor().ifPresent(c -> { if (focused) { c.focus(); } }); } MonacoEditorWidget(); void setCodeEditor(final MonacoStandaloneCodeEditor codeEditor); void setValue(final String value); @Override String get...
### Question: HasTypeRefHelper { public static List<HasTypeRef> getFlatHasTypeRefs(final List<? extends HasTypeRefs> hasTypeRefList) { return hasTypeRefList .stream() .flatMap(typeRefs -> typeRefs.getHasTypeRefs().stream()) .collect(Collectors.toList()); } static List<HasTypeRef> getNotNullHasTypeRefs(final HasTypeRef...
### Question: HasTypeRefHelper { public static List<HasTypeRef> getFlatHasTypeRefsFromExpressions(final List<? extends HasExpression> hasTypeRefListExpressions) { return hasTypeRefListExpressions .stream() .map(HasExpression::getExpression) .flatMap(typeRefs -> typeRefs.getHasTypeRefs().stream()) .collect(Collectors.to...
### Question: InformationItemPrimary extends DMNModelInstrumentedBase implements DMNPropertySet, IsInformationItem { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } InformationItemPrimary(...
### Question: Relation extends Expression { @Override public java.util.List<HasTypeRef> getHasTypeRefs() { final java.util.List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getFlatHasTypeRefs(getColumn())); hasTypeRefs.addAll(getFlatHasTypeRefs(getRow())); return hasTypeRefs; } Relation(); Rela...
### Question: Relation extends Expression { @Override public int getRequiredComponentWidthCount() { return getColumn().size() + STATIC_COLUMNS; } Relation(); Relation(final Id id, final Description description, final QName typeRef, final java.util.List<Inform...
### Question: Relation extends Expression { @Override public Relation copy() { final Relation clonedRelation = new Relation(); clonedRelation.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedRelation.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedRel...
### Question: InputClause extends DMNElement implements HasTypeRefs, DomainObject { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(getNotNullHasTypeRefs(getInputExpression())); } InputClause(); InputClause(final Id id, ...
### Question: InputClause extends DMNElement implements HasTypeRefs, DomainObject { public InputClause copy() { return new InputClause( new Id(), Optional.ofNullable(description).map(Description::copy).orElse(null), Optional.ofNullable(inputExpression).map(InputCla...
### Question: Binding extends DMNModelInstrumentedBase implements HasExpression, HasTypeRefs, HasVariable<InformationItem> { @Override public List<HasTypeRef> getHasTypeRefs() { final List<H...
### Question: Binding extends DMNModelInstrumentedBase implements HasExpression, HasTypeRefs, HasVariable<InformationItem> { public Binding copy() { final Binding bindingCloned = new Binding...
### Question: DMNPathsHelperImpl implements DMNPathsHelper { @Override public String getRelativeURI(final Path dmnModelPath, final Path includedModelPath) { if (Objects.isNull(dmnModelPath)) { return includedModelPath.getFileName(); } final org.uberfire.java.nio.file.Path nioDMN = convertPath(normalizePath(dmnModelPath...
### Question: ItemDefinition extends NamedElement implements HasTypeRef, DynamicReadOnly { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } ItemDefinition(); ItemDefinition(final Id id, ...
### Question: DRGElement extends NamedElement implements DynamicReadOnly, HasContentDefinitionId { @Override public void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange) { this.allowOnlyVisualChange = allowOnlyVisualChange; } DRGElement(); D...
### Question: DRGElement extends NamedElement implements DynamicReadOnly, HasContentDefinitionId { @Override public String getContentDefinitionId() { return getId().getValue(); } DRGElement(); DRGElement(final Id id, final Descripti...
### Question: ImportedValues extends Import implements DMNPropertySet, DomainObject { public ImportedValues copy() { ImportedValues clonedImportedValues = new ImportedValues(); clonedImportedValues.id = new Id(); clonedImportedValues.namespace = namespace; clonedImp...
### Question: Expression extends DMNElement implements HasTypeRef, HasComponentWidths { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } Expression(); Expression(final Id id, final De...
### Question: Expression extends DMNElement implements HasTypeRef, HasComponentWidths { @Override public java.util.List<Double> getComponentWidths() { final int requiredComponentWidthCount = getRequiredComponentWidthCount(); if (componentWidths.size() != re...
### Question: InformationItem extends NamedElement implements DMNPropertySet, IsInformationItem { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } InformationItem(); InformationItem(final Id id, ...
### Question: TextAreaDOMElement extends BaseDOMElement<String, TextArea> implements TakesValue<String>, Focusable { @Override public void setValue(final String value) { getWidget().setValue(value); this.originalValue = value; } TextAre...
### Question: InformationItem extends NamedElement implements DMNPropertySet, IsInformationItem { public InformationItem copy() { final InformationItem clonedInformationItem = new InformationItem(); clonedInformationItem.description = Optional.ofNullable(desc...
### Question: OutputClauseLiteralExpression extends DMNModelInstrumentedBase implements IsLiteralExpression, HasText, HasTypeRef, ...
### Question: OutputClauseLiteralExpression extends DMNModelInstrumentedBase implements IsLiteralExpression, HasText, HasTypeRef, ...
### Question: MockDataObjectsServiceImpl extends DataObjectsServiceImpl { @Override public List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject) { return Collections.emptyList(); } @Override List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject); }### Answer: @Test public void t...
### Question: DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Supplier<Integer> getHashcodeSupplier() { return () -> getDiagram().hashCode(); } @Inject DMNDiagramEditor(final SessionManager sessionManager, final SessionCommandManager<AbstractCanvasHandler> sessi...
### Question: DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Supplier<Boolean> getIsDataTypesTabActiveSupplier() { return () -> { final int selectedPageIndex = kieView.getMultiPage().selectedPage(); return selectedPageIndex == DATA_TYPES_PAGE_INDEX; }; } @Inject DMNDiagramEditor(final Ses...
### Question: DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { void setupSearchComponent() { final HTMLElement element = searchBarComponent.getView().getElement(); searchBarComponent.init(editorSearchIndex); kieView.getMultiPage().addTabBarWidget(getWidget(element)); } @Inject DMNDiagramEdi...
### Question: TextAreaDOMElement extends BaseDOMElement<String, TextArea> implements TakesValue<String>, Focusable { @Override public String getValue() { return getWidget().getValue(); } TextAreaDOMElement(final TextArea widget, ...
### Question: DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { @OnClose public void onClose() { destroyDock(); destroySession(); dataTypesPage.disableShortcuts(); dmnDiagramsSession.destroyState(getMetadata()); } @Inject DMNDiagramEditor(final SessionManager sessionManager, ...
### Question: DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Metadata buildMetadata(final String defSetId, final String shapeSetId, final String title) { final Path root = PathFactory.newPath(".", ROOT); return new MetadataImpl.MetadataImplBuilder(defSetId, definitionManager) .setTitle(tit...
### Question: DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { void openDock() { decisionNavigatorDock.open(); diagramPropertiesDock.open(); diagramPreviewAndExplorerDock.open(); } @Inject DMNDiagramEditor(final SessionManager sessionManager, final SessionCommand...
### Question: DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { void destroyDock() { decisionNavigatorDock.close(); decisionNavigatorDock.resetContent(); diagramPropertiesDock.close(); diagramPreviewAndExplorerDock.close(); } @Inject DMNDiagramEditor(final SessionManager sessionManager, ...
### Question: DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { public void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event) { kieView.getMultiPage().selectPage(DATA_TYPES_PAGE_INDEX); } @Inject DMNDiagramEditor(final SessionManager sessionManager, ...
### Question: DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Command getOnStartupDiagramEditorCallback() { return () -> { final Diagram diagram = getDiagram(); if (null != diagram) { updateTitle(diagram.getMetadata().getTitle()); documentationView.initialize(diagram); } }; } @Inject DMNDi...