assertj / assertj/assertj-swing

Provide support for lazy-loading JMenus (issue 207)

オープン
#35 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
import from fest-swing Improvement Major
主要言語
Java
スター
121
フォーク
52
PR マージ指標
30日以内にマージされた PR はありません

説明

_Issue by **[Alex Ruiz](http://jira.codehaus.org/secure/ViewProfile.jspa?name=alexruiz)** from Sun, 1 Mar 2009 15:10:34 -0600_
_Originally opened as http://jira.codehaus.org/browse/FEST-4_

---

From Csabi:

I have a MenuListener which reconstructs it's submenus in #menuSelected. The problem is that menuItemWithPath tries to find the last menu item from the path given to it without gradually activating previous menu items.

I think that menuItemWithPath should activate each menu item from the path given to it, one after the other, just like a human user would do.

The situation is similar in the case of trees. Nodes could be added upon expansion of a parent node, for example. I haven't checked if FEST currently takes into account this possibility, but I think it doesn't. Whenever paths are involved JTreeFixture should proceed as follows: it should gradually make the path visible, for example, given the path (A, B, C, D) it should make visible the paths (A), then (A, B), then (A, B, C), and finally the entire path, (A, B, C, D).

Thanks,

Csabi


Original report: Issue 207 (Google Code)

---

votes (original issue): 0
watches (original issue): 0

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず menuItemWithPath と JTreeFixture のパス処理のエントリーポイントを追跡し、次に MenuListener#menuSelected が遅延作成されたサブメニューをどのように公開するかを調べます。メニューパスが段階的にアクティブ化され、遅延作成された JMenus とツリーノードが各ステップで利用可能になること((A, B, C, D) のようなパスを含む)が変更完了の条件です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
desktop, testing
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。