KDE Bug Tracking System
Home
Report New Wish or Bug
Query Existing Reports
First
Last
Prev
Next
No search results available
Search page
Bug
53376
:
Messages should refer to operations (currently ...
P
roduct
:
umbrello
Co
m
ponent
:
general
Status
:
RESOLVED
Resolution
:
FIXED
Target
:
---
Version
:
unspecified
Pr
i
ority
:
NOR
Severity
:
wishlist
V
otes
:
15
Description
:
Opened:
2003-01-24 19:29
Last Changed:
2005-03-17 08:07:23
Version: (using KDE Devel) Compiler: gcc 2.95 OS: Linux Sequence diagram messages are just strings, even when created by selecting a class method (operation). They should be pointers to the operations and be updated the operation.
Comment
#1
Jonathan Riddell 2004-01-19 17:28:33
As pointed out in beastie 72627 method parameters and attributes could also be references to classes in the model so their names are kept up to date too.
Comment
#2
Jonathan Riddell 2004-01-19 17:30:11
***
Bug 72627
has been marked as a duplicate of this bug. ***
Comment
#3
Oliver Kellogg 2005-03-10 21:54:04
***
Bug 84515
has been marked as a duplicate of this bug. ***
Comment
#4
Oliver Kellogg 2005-03-14 23:58:11
My pleasure to squash this one...
Comment
#5
Oliver Kellogg 2005-03-16 07:53:00
CVS commit by okellogg: Add infrastructure required for a sequence or collaboration message which is an operation of a classifier to reference the respective UMLOperation rather than being dumb text. CCBUG:53376 M +6 -2 associationwidget.cpp 1.142 M +9 -2 associationwidget.h 1.60 M +3 -9 floatingtext.cpp 1.69 M +27 -21 linkwidget.cpp 1.11 M +38 -8 linkwidget.h 1.12 M +45 -11 messagewidget.cpp 1.63 M +10 -3 messagewidget.h 1.31
Comment
#6
Oliver Kellogg 2005-03-17 08:07:22
CVS commit by okellogg: showOpDlg(): Hook up with the infrastructure around LinkWidget::m_pOperation. BUG:53376 M +20 -5 floatingtext.cpp 1.70 --- kdesdk/umbrello/umbrello/floatingtext.cpp #1.69:1.70 @@ -28,4 +28,5 @@ #include "listpopupmenu.h" #include "operation.h" +#include "model_utils.h" #include "inputdialog.h" #include "dialogs/assocpropdlg.h" @@ -249,6 +250,6 @@ void FloatingText::showOpDlg() { return; } - QString seqNum, op; - UMLClassifier* c = m_pLink->getSeqNumAndOp(this, seqNum, op); + QString seqNum, opText; + UMLClassifier* c = m_pLink->getSeqNumAndOp(this, seqNum, opText); if (c == NULL) { kdError() << "FloatingText::showOpDlg: " @@ -260,5 +261,6 @@ void FloatingText::showOpDlg() { SelectOpDlg selectDlg(m_pView, c); selectDlg.setSeqNumber( seqNum ); - selectDlg.setCustomOp( op ); + if (m_pLink->getOperation() == NULL) + selectDlg.setCustomOp( opText ); int result = selectDlg.exec(); if(!result) { @@ -266,6 +268,19 @@ void FloatingText::showOpDlg() { } seqNum = selectDlg.getSeqNumber(); - op = selectDlg.getOpText(); - m_pLink->setSeqNumAndOp(seqNum, op); + opText = selectDlg.getOpText(); + Umbrello::OpDescriptor od; + Umbrello::Parse_Status st = Umbrello::parseOperation(opText, od, c); + if (st == Umbrello::PS_OK) { + UMLDoc *umldoc = UMLApp::app()->getDocument(); + bool isExistingOp = false; + UMLObject *o = umldoc->createOperation(c, od.m_name, &isExistingOp, &od.m_args); + UMLOperation *op = static_cast<UMLOperation*>(o); + if (od.m_pReturnType) { + op->setType(od.m_pReturnType); + } + m_pLink->setOperation(op); + opText = QString::null; + } + m_pLink->setSeqNumAndOp(seqNum, opText); setMessageText(); }
P
latform
:
unspecified
O
S
:
Linux
K
eywords
:
People
Reporter
:
Jonathan Riddell
Assigned To
:
Oliver Kellogg
CC
:
hsk avaya com
kde mosehansen dk
sean clarke sec-consulting co uk
Related actions
View Bug Activity
Format For Printing
XML
Clone This Bug
Note
You need to
log in
before you can comment on or make changes to this bug.
Attachments
Add an attachment
(proposed patch, testcase, etc.)
Depends on
:
B
locks
:
Show dependency tree
-
Show dependency graph
First
Last
Prev
Next
No search results available
Search page
Actions
Reports
Requests
Reports
Bugs reported today
Bugs reported in the last 3 days
Bug reports with patches
Weekly Bug statistics
The most hated bugs
The most severe bugs
The most frequently reported bugs
The most wanted features
Junior Jobs
Report ownership counts and charts
My Account
New Account
Log In