@Override
	public void connectionStateChanged(final Object adapter) {
		if (activeProject != null) {
			final RepositoryAdapter repository = activeProject.getRepository();
			if (repository == adapter) {
				Runnable r = () -> {
					updateConnectionPanel(activeProject);
					projectActionManager.connectionStateChanged((RepositoryAdapter) adapter);
					if (!activeProject.isClosed() && !repository.isConnected() &&
						repository.hadUnexpectedDisconnect()) {

						showDisconnectedDialog(repository);
					}
				};
				if (SwingUtilities.isEventDispatchThread()) {
					r.run();
				}
				else {
					Swing.runLater(r);
				}
			}
		}
	}
Construct a new FrontEndPlugin. This plugin is constructed once when
the Front end tool (Ghidra Project Window) is created. When a
previously opened project is created, the Ghidra Project Window is
restored to the state associated with that project.
@param tool the front end tool
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/FrontEndPlugin.java