core: decide the node hierarchy boundary before replacing javax.swing.tree

Open
#1,694 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
43/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
java

Research direction

Read modules/microproject_core/src/main/java/com/microproject/node/ and schedule/criticalpath/PredecessorTaskTree.java, then trace the UI references with the listed git grep commands. Compare the two proposed boundaries across serialization, POD compatibility, JTree notification order, and implementation effort; check the ClassRelocations rationale and POD evidence for PredecessorTaskTree, marking any unverified points. Done when an issue comment recommends A or B with evidence and, for B, lists the core tree API methods and UI adapter location.

Written by the indexing model from the issue text.

Description

area: architecture area: core enhancement priority: low status: ready

概要

microproject_core のノード階層は javax.swing.tree(DefaultMutableTreeNode、MutableTreeNode、TreeNode、TreePath、TreeModel、TreeModelListener)を直接実装し、debt ledger に 17 行として記録されている。UI の JTree がこれらの型を直接利用するため、core 独自の木 API への置き換えには UI adapter の設計が必要。#737 の方針決定として、まず調査して結論をコメントする。

作業手順

  1. modules/microproject_core/src/main/java/com/microproject/node/ と schedule/criticalpath/PredecessorTaskTree.java を読み、Swing tree 型を継承・実装しているクラスと、その API のうち実際に呼ばれているメソッドを列挙する。
  2. git grep で UI 側の JTree、TreeModel、TreePath、TreeModelListener の利用箇所を列挙し、core の Node / MutableNodeHierarchy / DefaultNodeModel が JTree へどのように渡されているかを追う。
  3. PredecessorTaskTree が ClassRelocations に載っている理由を確認し、旧 POD ファイルにこのクラスが現れる根拠があるか(fixture、テスト、Saved/Deserialize 経路)を調べる。根拠がなければ「未確認」と明記する。
  4. 選択肢を (A) headless な JDK tree 型として残す、(B) core に木 API を置き UI で JTree adapter を提供する、の 2 つに絞り、serialization、POD 互換、JTree の通知順序、実装工数で比較する。
  5. 結論と根拠、採用した場合の分割手順をコメントに書く。

検証

  • git grep -n "javax.swing.tree\|TreeModelListener" -- modules/microproject_core/src/main/java
  • git grep -n "JTree\|TreeModel\|TreePath" -- modules/microproject_ui/src/main/java
  • git grep -n "PredecessorTaskTree" -- modules
  • コードは変更しないため、ビルドコマンドは不要。

完了条件

  • 方針 (A) または (B) と、その根拠が issue コメントに書かれている
  • (B) を推す場合、core の木 API が必要とするメソッド一覧と UI adapter の配置先がコメントに書かれている
  • PredecessorTaskTree の POD 互換について、確認できた根拠と未確認の点が区別してコメントに書かれている

範囲外

  • 木構造の実移行。方針決定後に別の実装 issue で扱う。
  • undo、graphic configuration、print の境界(別の調査 issue で扱う)。
Dominant language
Java
Stars
2
Forks
1
Avg merge
4h 52m
Merged PRs (30d)
349

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tetsuji16/microProject

All issues in tetsuji16/microProject

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.