| Summary: | DirectEditing proposals list shows wrong labels when using new scheme with IProposal | ||
|---|---|---|---|
| Product: | [Modeling] Graphiti | Reporter: | Dobrou Mising name <dobrou> |
| Component: | Core | Assignee: | Project Inbox <graphiti-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | christian.brand, matthias.gorning, michael.wenz |
| Version: | 0.8.0 | Flags: | michael.wenz:
iplog+
michael.wenz: juno+ |
| Target Milestone: | 0.9.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | Juno M1 Theme_bugs | ||
|
Description
Dobrou Mising name
To have the value to be set in your diagram (text GA) be independent of the proposal texts, you can implement your own ProposalSupport. Your class can extend AbstractProposalSupport. The method to decide about the text value to be set is setValue(). There you receive the current text value, the proposal object as well as the context. At this point nearly everything is possible. (In reply to comment #1) > To have the value to be set in your diagram (text GA) be independent of the > proposal texts, you can implement your own ProposalSupport. Your class can > extend AbstractProposalSupport. The method to decide about the text value to be > set is setValue(). There you receive the current text value, the proposal > object as well as the context. At this point nearly everything is possible. I'm talking about little different problem. I will try to explain it more. I use scenario with ProposalSupport implented as extended AbstractProposalSupport. I have direct edit text box. With populated proposals list. I would like to show proposals labels in list, and after selecting proposal set text in text box different from proposal label (set text in text box, not in diagram elements, after accepting proposal, we are still editing text box!). Expected behaviour, as I understand, should be: When proposal from list is selected and accepted, result of completeValue(...) is set as text box value. After that, I can edit text in text box if I want. Then when value in text box is accepted, setValue(...) changes values in diagram elements. So I cannot use setValue to correct this bug, because setValue is called after accepting value in text box and it is not called after accepting proposal from proposals list. Problem is, that in current Graphiti, value from completeValue(...) is used as label for every proposal in proposals list. Here I expect IProposal.getText() should be used as label, but it is not used at all. (completeValue(...) is used as label, because ContentProposal label is set to null, where I suggested to use IProposal.getText(), in previous post). Fixed as proposed in the bug description. Bookkeeping Relevant for IP log Part of Graphiti 0.9.0 (Eclipse Juno) |