@Test @SuppressWarnings("unchecked") public void checkSupportsTextAnnotationElements() { assertTrue(provider.supports(element)); final Element other = mock(Element.class); final Definition otherContent = mock(Definition.class); final InputData otherDefinition = mock(InputData.class); when(other.getContent()).thenReturn(otherContent); when(otherContent.getDefinition()).thenReturn(otherDefinition); assertFalse(provider.supports(other)); }
@Override public boolean supports(final Element<? extends Definition> element) { return DefinitionUtils.getElementDefinition(element) instanceof TextAnnotation; }
TextAnnotationTextPropertyProviderImpl implements TextPropertyProvider { @Override public boolean supports(final Element<? extends Definition> element) { return DefinitionUtils.getElementDefinition(element) instanceof TextAnnotation; } }
TextAnnotationTextPropertyProviderImpl implements TextPropertyProvider { @Override public boolean supports(final Element<? extends Definition> element) { return DefinitionUtils.getElementDefinition(element) instanceof TextAnnotation; } TextAnnotationTextPropertyProviderImpl(); @Inject  TextAnnotationTextPropertyProviderImpl(final @DMNEditor DefaultCanvasCommandFactory canvasCommandFactory,
                                                  final DefinitionUtils definitionUtils); }
TextAnnotationTextPropertyProviderImpl implements TextPropertyProvider { @Override public boolean supports(final Element<? extends Definition> element) { return DefinitionUtils.getElementDefinition(element) instanceof TextAnnotation; } TextAnnotationTextPropertyProviderImpl(); @Inject  TextAnnotationTextPropertyProviderImpl(final @DMNEditor DefaultCanvasCommandFactory canvasCommandFactory,
                                                  final DefinitionUtils definitionUtils); @Override int getPriority(); @Override boolean supports(final Element<? extends Definition> element); @Override void setText(final AbstractCanvasHandler canvasHandler,
                        final CanvasCommandManager<AbstractCanvasHandler> commandManager,
                        final Element<? extends Definition> element,
                        final String text); @Override String getText(final Element<? extends Definition> element); }
TextAnnotationTextPropertyProviderImpl implements TextPropertyProvider { @Override public boolean supports(final Element<? extends Definition> element) { return DefinitionUtils.getElementDefinition(element) instanceof TextAnnotation; } TextAnnotationTextPropertyProviderImpl(); @Inject  TextAnnotationTextPropertyProviderImpl(final @DMNEditor DefaultCanvasCommandFactory canvasCommandFactory,
                                                  final DefinitionUtils definitionUtils); @Override int getPriority(); @Override boolean supports(final Element<? extends Definition> element); @Override void setText(final AbstractCanvasHandler canvasHandler,
                        final CanvasCommandManager<AbstractCanvasHandler> commandManager,
                        final Element<? extends Definition> element,
                        final String text); @Override String getText(final Element<? extends Definition> element);  }