Bug 69208 - java umbrellorc code adjustments
Summary: java umbrellorc code adjustments
Status: RESOLVED WORKSFORME
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-28 13:17 UTC by Harald Wallus
Modified: 2003-12-03 16:58 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Wallus 2003-11-28 13:17:54 UTC
Version:           1.2-beta (using KDE 3.1.4)
Installed from:    SuSE
Compiler:          gcc version 3.3.1 (SuSE Linux)
OS:          Linux (i686) release 2.4.21-99-default

High Dears,

I open a new bug because it looks to me, that something more based is wrong.
I take the Tarball from Sunday 11/23/03 and try it out.
Before I start I delete my file .kde/share/config/umbrellorc.

Umbrello  crashed  some times when I try to change the adjustment for code generations. 
Some turn arounds later some adjustment are fixed but not the accessor Method to no.

When I start up code generation first, only the token package is written to the end of each class not at the beginning.
After I have change some code with the View Code, and I generate once again, the changes are not there (I delete the scr-file before).
And on interface was not generated again.

I can't realy say, when I do this and this, then this will happend.
It changes every time I do.
My impression is, that the changes for umbrellorc sometimes have no effect, same for operation with Code Viewer.
I will try on monday with the latest tarball.
Comment 1 Harald Wallus 2003-12-01 13:59:17 UTC
Testing Umbrello tarball form 031201 on SuS9.0, KDE 3.1.4.

(I also try to add a tar-file with example xmi, but it seems not to work.)

Every Menu item is retranslated from German to English.

rm .kde/share/config/umbrellorc
umbrello statup
0. Setup (Einstellungen)/umbrello UML modeller adjustments/code generation
1. TAB "Common" (Allgemein):   change to java, and path to src-Files and heading-file
2. TAB "Language Options": I found there CPP-Options.
3. go back to "Common" (Allgemein): click "Apply".
4. TAB "Language Options": Nothing changes, still CPP-Options !!!!
5. Close the Setup and start again into
6. Setup (Einstellungen)/umbrello UML modeller adjustments/code generation
7. TAB "Language Options": Now I find Java-Options here. Clickoff Accessor methodes, Apply
8. Close setup and start again into the TAB "Language Options": changes are there.
9. On TAB "Common": There was still the default values for src-files and heading-files.
    Remark: here files are not choosed , here directories are choosed!!!!!
10. Open the context-menu to choose the directory: The menu was just in the correct path,
    set, click "Apply", close Setup and start again; the changes take effect.

Next Step:
11. Open xmi-file. It walli start up.
12. Open a another xmi-file, umbrello crashed:
[New Thread 16384 (LWP 11314)]
0x4129cfd6 in waitpid () from /lib/libpthread.so.0
#0  0x4129cfd6 in waitpid () from /lib/libpthread.so.0
#1  0x4076d010 in KCrash::defaultCrashHandler(int) ()
   from /opt/kde3/lib/libkdecore.so.4
#2  0x4129bbb1 in __pthread_sighandler () from /lib/libpthread.so.0
#3  <signal handler called>
#4  0x40b78667 in QPtrVector<QConnectionList>::size() const ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#5  0x40b76ec4 in QObject::disconnect(QObject const*, char const*, QObject const*, char const*) () from /usr/lib/qt3/lib/libqt-mt.so.3
#6  0x0813d56e in OwnedCodeBlock::release() ()
#7  0x0813e4e3 in OwnedHierarchicalCodeBlock::release() ()
#8  0x08111569 in CodeGenObjectWithTextBlocks::resetTextBlocks() ()
#9  0x08120e84 in HierarchicalCodeBlock::release() ()
#10 0x08111569 in CodeGenObjectWithTextBlocks::resetTextBlocks() ()
#11 0x08110769 in CodeGenObjectWithTextBlocks::~CodeGenObjectWithTextBlocks()
    ()
#12 0x08107fd1 in CodeDocument::~CodeDocument() ()
#13 0x080fb1db in ClassifierCodeDocument::~ClassifierCodeDocument() ()
#14 0x0823faf9 in CPPHeaderCodeDocument::~CPPHeaderCodeDocument() ()
#15 0x0823744e in CPPCodeGenerator::~CPPCodeGenerator() ()
#16 0x08153fd1 in UMLDoc::removeCodeGenerator(CodeGenerator*) ()
#17 0x08153d42 in UMLDoc::deleteContents() ()
#18 0x0815318c in UMLDoc::openDocument(KURL const&, char const*) ()
#19 0x0814c86c in UMLApp::slotFileOpen() ()
#20 0x08150dec in UMLApp::qt_invoke(int, QUObject*) ()
#21 0x40b7761b in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#22 0x40b773e4 in QObject::activate_signal(int) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#23 0x404fd599 in KAction::activated() () from /opt/kde3/lib/libkdeui.so.4
#24 0x404ef33d in KAction::slotActivated() () from /opt/kde3/lib/libkdeui.so.4
#25 0x404fd651 in KAction::qt_invoke(int, QUObject*) ()
   from /opt/kde3/lib/libkdeui.so.4
#26 0x40b77538 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#27 0x40b773e4 in QObject::activate_signal(int) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#28 0x40ead4ac in QButton::clicked() () from /usr/lib/qt3/lib/libqt-mt.so.3
#29 0x40c0785e in QButton::mouseReleaseEvent(QMouseEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#30 0x40bae411 in QWidget::event(QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#31 0x40b15656 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#32 0x40b151b8 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#33 0x406fa8c9 in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde3/lib/libkdecore.so.4
#34 0x40aa8d1d in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#35 0x40aa6b3c in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#36 0x40abcd7d in QEventLoop::processEvents(unsigned) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#37 0x40b29900 in QEventLoop::enterLoop() ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#38 0x40b297f6 in QEventLoop::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#39 0x40b158ef in QApplication::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#40 0x08134b67 in main ()


New try:
13. Starting umbrello without delete umbrellorc.
14. All my setups are lost!
15. Setup (Einstellungen)/umbrello UML modeller adjustments/code generation
16. TAB "Common" (Allgemein):   change to java, and path to src-Files and heading-file
17. Click apply, close Setup and close umbrello.
18. Startup once again umbrello: The change of the deault codegeneration langauges takes effect.
    but not the change of directories for src-code and heading-file.
19. Change the path of src-code and heading-file, Click Apply, close setup and umbrello.
    If I choose the Menu file/close umbrello. will not close.
    I close with the X from the frame border.
20. Start again umbrello: The change of paths of src-code and heading-file has no effect.
21. Start up an xmi-file (simple state-modell, which I will send to you to test
     java src-codegeneration): Starts up:
22. I try again to change the path of src-code and heading-file:
    After taht click "Apply", "OK" to setup, "close" ("CTRL-W" for the xmi-file) and
    Umbrello exits.
23. Start up once again umbrello: the paths has not changed. Try the same story,
    Umbrello exist instead of closing the xmi-file.

New try, now I don't want to change the src-path for codegeneration anymore:

24. Startup umbrello, open xmi-file, start the code-generation wizzard annd generate
    the src-code: The package-token ist set after all coding instead at the beginning of each file!!
25. Edit with Ocde Viewer same methods body.
26. I have edit the standard heading.java-file. But it takes no effect to each new generated file,
    I have deleted the old ones before.???? Thats very astonishment.
27. The same with the source code, which I added by Code Viewer. Some changes do not appear.
Comment 2 Harald Wallus 2003-12-01 16:41:37 UTC
Sorry for some misspelled words above: same -> some and exist to exits.

I think I found one problem in Code Viewer:
If I do a copy from e.g. kate-editor into Code Viewer,
the coding in the Code Viewer is block after the first CR,
which I have copied in.
For example: I copy
 Line aaa
    Line bbb
 Line ccc
from e.g. kate and paste it into Code Viewer
I cannot edit "Line bbbb" and "Line ccc".
If I delete in the Code Viewer behind "Line aaa" till
the CR is delete and the two lines are joined, and then type in a new RETURN,
Then I can edit "Line bbb". Same with "Line ccc".
It looks to me, that the coding representing in umbrello has a type mismatch.
This may be caused the problem, that sometimes the generated code is not affected by changes with the Code Viewer.
 
Comment 3 Brian Thomas 2003-12-02 20:06:21 UTC
There are several bugs here, two of which, I believe, are fixed. These are :

1. Changes to language tab not reflected/remembered in the settings tab (Fixed)

2. Crashes related to XMI file loading (Fixed, as far as I know)

3. Problems with editting code in the code viewer. 

The last one is an outstanding bug, and I am working on it. I suggest that this
ticket be closed, and a new one be opened for the code viewer.
Comment 4 Sebastian Stein 2003-12-02 20:13:18 UTC
Subject: Re: [Uml-devel]  java umbrellorc code adjustments

Brian Thomas <thomas@mail630.gsfc.nasa.gov> [031202 20:09]:
> The last one is an outstanding bug, and I am working on it. I suggest that this
> ticket be closed, and a new one be opened for the code viewer.

Do you have an bugs.kde.org account? You can create one online. If you don't
want, I can go on closing and opening bugs for you, but if you like, you can
really do this on your own.

Steinchen
Comment 5 Brian Thomas 2003-12-03 00:01:34 UTC
> When I start up code generation first, only the token package is written to the > end of each class not at the beginning. 

This portion is now fixed in CVS.
Comment 6 Harald Wallus 2003-12-03 16:58:36 UTC
Sorry, t
I have not much time for umbrello.
I close this bug.
Next time, will be friday, I take a new tar ball and test again.
And then I will do open the bugs in more structured way.
I have created two examples for java for umbrello (and it will be become some more).
If you are want have some for umbrello homepage, please tell me, where I can them mail or upload. My try to publish it into a bug-wish, don't works.