diff options
| author | Kostya <mail@sartin.in> | 2026-10-11 19:28:04 +0300 |
|---|---|---|
| committer | Kostya <mail@sartin.in> | 2026-10-11 19:28:30 +0300 |
| commit | 3a734b84705ccb8174e9cf24b74d7a3c3b2c1beb (patch) | |
| tree | 80408f2f1e6af973b1f61288c87a89b4ee8e96d3 /ui-fx/.project | |
| parent | dc616e0f340f28b320253bf9a70778a07b885ffd (diff) | |
| download | guess-market-3a734b84705ccb8174e9cf24b74d7a3c3b2c1beb.tar.gz guess-market-3a734b84705ccb8174e9cf24b74d7a3c3b2c1beb.tar.xz guess-market-3a734b84705ccb8174e9cf24b74d7a3c3b2c1beb.zip | |
ui-fx: move the JavaFX UI into a module that sees only the api
Exercise 3 asks for a new desktop client that reuses the Exercise 2
screens, and the course asks that clients depend on the DTO contract,
never on the engine. ui-desktop mixed both: its views and controllers
only talk to the api interfaces, but AppView and AppState each had a
convenience constructor that built a ServiceEngine, which tied every UI
class to the service module.
Move the screens, controllers, components, FXML, skins and fonts into
a new ui-fx module that depends on api alone. Packages are unchanged,
so FXML controller names and resource paths keep working as they are.
ui-desktop keeps only the Exercise 2 app: Launcher, App, which now
builds the ServiceEngine and passes its contexts in, and ServiceEngine
itself. The Exercise 3 client can then reuse ui-fx with remote
contexts and never put the engine on its classpath. The build proves
the split: ui-fx compiles with nothing but api visible.
Tests move with the code they cover. AppStateTest drives the real
engine, so it stays in ui-desktop.
Diffstat (limited to 'ui-fx/.project')
| -rw-r--r-- | ui-fx/.project | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ui-fx/.project b/ui-fx/.project new file mode 100644 index 0000000..cec82bb --- /dev/null +++ b/ui-fx/.project | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | <projectDescription> | ||
| 3 | <name>guess-market-ui-fx</name> | ||
| 4 | <comment></comment> | ||
| 5 | <projects> | ||
| 6 | <project>guess-market-api</project> | ||
| 7 | </projects> | ||
| 8 | <buildSpec> | ||
| 9 | <buildCommand> | ||
| 10 | <name>org.eclipse.jdt.core.javabuilder</name> | ||
| 11 | <arguments></arguments> | ||
| 12 | </buildCommand> | ||
| 13 | </buildSpec> | ||
| 14 | <natures> | ||
| 15 | <nature>org.eclipse.jdt.core.javanature</nature> | ||
| 16 | </natures> | ||
| 17 | <filteredResources> | ||
| 18 | <filter> | ||
| 19 | <id>1791559781383</id> | ||
| 20 | <name></name> | ||
| 21 | <type>30</type> | ||
| 22 | <matcher> | ||
| 23 | <id>org.eclipse.core.resources.regexFilterMatcher</id> | ||
| 24 | <arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments> | ||
| 25 | </matcher> | ||
| 26 | </filter> | ||
| 27 | </filteredResources> | ||
| 28 | </projectDescription> | ||