assertj / assertj/assertj-swing
Provide support for lazy-loading JMenus (issue 207)
- Lingua principale
- Java
- Stelle
- 121
- Fork
- 52
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
_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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia tracciando menuItemWithPath e i punti di ingresso per la gestione dei percorsi di JTreeFixture, quindi esamina come MenuListener#menuSelected espone i sottomenu creati in modo lazy. La modifica è completata quando i percorsi dei menu vengono attivati progressivamente, così che i JMenus e i nodi dell’albero creati in modo lazy diventino disponibili a ogni passaggio, inclusi percorsi come (A, B, C, D).
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- desktop, testing
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100