@Test(expected = IllegalArgumentException.class) public void testActivateDocumentNotRegistered() { final TestDocument document = createTestDocument(); activateDocument(document); }
@Override public void activateDocument(final D document, final Overview overview, final AsyncPackageDataModelOracle dmo, final Imports imports, final boolean isReadOnly) { PortablePreconditions.checkNotNull("document", document); PortablePreconditions.checkNotNull("overview", overview); PortablePreconditions.checkNotNull("dmo", document); PortablePreconditions.checkNotNull("imports", imports); if (!documents.contains(document)) { throw new IllegalArgumentException("Document has not been registered."); } activeDocument = document; registeredDocumentsMenuBuilder.activateDocument(document); initialiseVersionManager(document); initialiseKieEditorTabs(document, overview, dmo, imports, isReadOnly); }
KieMultipleDocumentEditor implements KieMultipleDocumentEditorPresenter<D> { @Override public void activateDocument(final D document, final Overview overview, final AsyncPackageDataModelOracle dmo, final Imports imports, final boolean isReadOnly) { PortablePreconditions.checkNotNull("document", document); PortablePreconditions.checkNotNull("overview", overview); PortablePreconditions.checkNotNull("dmo", document); PortablePreconditions.checkNotNull("imports", imports); if (!documents.contains(document)) { throw new IllegalArgumentException("Document has not been registered."); } activeDocument = document; registeredDocumentsMenuBuilder.activateDocument(document); initialiseVersionManager(document); initialiseKieEditorTabs(document, overview, dmo, imports, isReadOnly); } }
KieMultipleDocumentEditor implements KieMultipleDocumentEditorPresenter<D> { @Override public void activateDocument(final D document, final Overview overview, final AsyncPackageDataModelOracle dmo, final Imports imports, final boolean isReadOnly) { PortablePreconditions.checkNotNull("document", document); PortablePreconditions.checkNotNull("overview", overview); PortablePreconditions.checkNotNull("dmo", document); PortablePreconditions.checkNotNull("imports", imports); if (!documents.contains(document)) { throw new IllegalArgumentException("Document has not been registered."); } activeDocument = document; registeredDocumentsMenuBuilder.activateDocument(document); initialiseVersionManager(document); initialiseKieEditorTabs(document, overview, dmo, imports, isReadOnly); } KieMultipleDocumentEditor();  KieMultipleDocumentEditor(final KieEditorView editorView); }
KieMultipleDocumentEditor implements KieMultipleDocumentEditorPresenter<D> { @Override public void activateDocument(final D document, final Overview overview, final AsyncPackageDataModelOracle dmo, final Imports imports, final boolean isReadOnly) { PortablePreconditions.checkNotNull("document", document); PortablePreconditions.checkNotNull("overview", overview); PortablePreconditions.checkNotNull("dmo", document); PortablePreconditions.checkNotNull("imports", imports); if (!documents.contains(document)) { throw new IllegalArgumentException("Document has not been registered."); } activeDocument = document; registeredDocumentsMenuBuilder.activateDocument(document); initialiseVersionManager(document); initialiseKieEditorTabs(document, overview, dmo, imports, isReadOnly); } KieMultipleDocumentEditor();  KieMultipleDocumentEditor(final KieEditorView editorView); @Override void registerDocument(final D document); @Override void deregisterDocument(final D document); @Override void activateDocument(final D document,
                                 final Overview overview,
                                 final AsyncPackageDataModelOracle dmo,
                                 final Imports imports,
                                 final boolean isReadOnly); @Override D getActiveDocument(); @Override IsWidget getWidget(); @Override IsWidget getTitleWidget(final D document); @Override void getMenus(final Consumer<Menus> menusConsumer); @Override void onClose(); @Override void onSourceTabSelected(); @Override void updateSource(final String source); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); @Override boolean mayClose(final Integer originalHashCode,
                            final Integer currentHashCode); @Override Promise<Void> makeMenuBar(); }
KieMultipleDocumentEditor implements KieMultipleDocumentEditorPresenter<D> { @Override public void activateDocument(final D document, final Overview overview, final AsyncPackageDataModelOracle dmo, final Imports imports, final boolean isReadOnly) { PortablePreconditions.checkNotNull("document", document); PortablePreconditions.checkNotNull("overview", overview); PortablePreconditions.checkNotNull("dmo", document); PortablePreconditions.checkNotNull("imports", imports); if (!documents.contains(document)) { throw new IllegalArgumentException("Document has not been registered."); } activeDocument = document; registeredDocumentsMenuBuilder.activateDocument(document); initialiseVersionManager(document); initialiseKieEditorTabs(document, overview, dmo, imports, isReadOnly); } KieMultipleDocumentEditor();  KieMultipleDocumentEditor(final KieEditorView editorView); @Override void registerDocument(final D document); @Override void deregisterDocument(final D document); @Override void activateDocument(final D document,
                                 final Overview overview,
                                 final AsyncPackageDataModelOracle dmo,
                                 final Imports imports,
                                 final boolean isReadOnly); @Override D getActiveDocument(); @Override IsWidget getWidget(); @Override IsWidget getTitleWidget(final D document); @Override void getMenus(final Consumer<Menus> menusConsumer); @Override void onClose(); @Override void onSourceTabSelected(); @Override void updateSource(final String source); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); @Override boolean mayClose(final Integer originalHashCode,
                            final Integer currentHashCode); @Override Promise<Void> makeMenuBar();  }