@Test public void testAcceptsSession() { assertTrue(command.accepts(mock(EditorSession.class))); assertFalse(command.accepts(mock(ViewerSession.class))); }
@Override public boolean accepts(final ClientSession session) { return session instanceof EditorSession; }
SaveDiagramSessionCommand extends AbstractClientSessionCommand<EditorSession> { @Override public boolean accepts(final ClientSession session) { return session instanceof EditorSession; } }
SaveDiagramSessionCommand extends AbstractClientSessionCommand<EditorSession> { @Override public boolean accepts(final ClientSession session) { return session instanceof EditorSession; } @Inject  SaveDiagramSessionCommand(); }
SaveDiagramSessionCommand extends AbstractClientSessionCommand<EditorSession> { @Override public boolean accepts(final ClientSession session) { return session instanceof EditorSession; } @Inject  SaveDiagramSessionCommand(); @Override void execute(final Callback<V> callback); @Override boolean accepts(final ClientSession session); }
SaveDiagramSessionCommand extends AbstractClientSessionCommand<EditorSession> { @Override public boolean accepts(final ClientSession session) { return session instanceof EditorSession; } @Inject  SaveDiagramSessionCommand(); @Override void execute(final Callback<V> callback); @Override boolean accepts(final ClientSession session);  }