1930 Commits

Author SHA1 Message Date
Arjan Molenaar
e9b0cce120 Inquiry usage of component.(handle|query*|get*).
Everything should go through component_registry in the end.
2011-01-06 11:19:20 +01:00
Arjan Molenaar
749568ca51 Split ElementFactory in simple factory and service class.
This simplifies the tests and makes the use of components less intrusive for
cases where it is not required.
2011-01-06 11:19:20 +01:00
Arjan Molenaar
4ad3f3e34a Removed dependencies on Application in remaining code. 2011-01-06 11:17:47 +01:00
Arjan Molenaar
59d95834c4 Migrated services 2011-01-06 11:17:47 +01:00
Arjan Molenaar
db4bba3970 Let ComponentRegistry take over the component management tasks from Application. 2011-01-06 11:17:47 +01:00
Arjan Molenaar
601c2bb4da Fixed issues when running unit tests. 2011-01-06 10:44:49 +01:00
Arjan Molenaar
3ec26cb4f5 Do not import UML module from application as that makes the initial build fail. 2011-01-05 10:11:07 +01:00
Arjan Molenaar
8f733882b2 Derived unions now return collectionlist
(so you can do col[:] and col['it.name="somename"'])
2011-01-03 18:37:08 +01:00
Arjan Molenaar
276ad20ee9 Revert "Use super() instead of calling three constructors in DiagramItem."
This reverts commit b3e12d94c41bf0d9b2a592d2b0817573956be9bb.
2010-12-25 21:12:13 +01:00
Arjan Molenaar
ab8fccc594 Revert "Use super() in the ClassItem constructor."
This reverts commit 67fba37a7ce56e526b5a4854da569c20b8a259b9.

Conflicts:

	gaphor/diagram/classes/klass.py
2010-12-25 21:11:51 +01:00
Arjan Molenaar
612de3c961 Revert "Use super() in ClassItem.save() and ClassItem.postload()."
This reverts commit 984bfb5a72fb12b83cc2091cc0f94acbdcf3bfe6.

Conflicts:

	gaphor/diagram/classes/klass.py
2010-12-25 21:10:57 +01:00
Arjan Molenaar
ccc43f7e80 Fixed debug loggin in properties when showing tuple. 2010-12-19 14:21:18 +01:00
adamboduch
7528813142 Cleaned up logging in several Gaphor services. 2010-12-15 15:20:14 -05:00
adamboduch
6a7d198b12 Merge branch 'master' of http://github.com/amolenaar/gaphor 2010-12-14 16:50:17 -05:00
Arjan Molenaar
6edc4237f4 Solved issue where association ends are applied to the wrong end. 2010-12-14 21:26:20 +01:00
Arjan Molenaar
e160b6c71d Fixed unit tests for classes. 2010-12-14 16:01:08 +01:00
adamboduch
7b7ab4b56a Added doc strings to klass.py. 2010-11-29 14:22:10 -05:00
adamboduch
984bfb5a72 Use super() in ClassItem.save() and ClassItem.postload(). 2010-11-29 13:55:58 -05:00
adamboduch
67fba37a7c Use super() in the ClassItem constructor. 2010-11-29 13:48:34 -05:00
adamboduch
b3e12d94c4 Use super() instead of calling three constructors in DiagramItem. 2010-11-29 13:41:29 -05:00
adamboduch
28a8d4fbcb Improved logging in diagramitem.py. 2010-11-29 13:39:15 -05:00
adamboduch
42f22c6973 Improved logging in connector.py. 2010-11-29 13:32:39 -05:00
adamboduch
6028f47b7e Improved the logging in connectors.py. 2010-11-29 13:23:33 -05:00
adamboduch
97f85aeae6 Improved logging in application.py. 2010-11-29 01:15:19 -05:00
adamboduch
c359bca15f Improved logging in the action manager service. 2010-11-29 01:11:04 -05:00
adamboduch
4b69eb526e Added some doc strings to the properties service. 2010-11-29 00:57:46 -05:00
adamboduch
24d37a04af FileBackend now uses with statements for file operations. 2010-11-26 10:56:13 -05:00
adamboduch
37b3ab8a44 Raise KeyError exception in a Python3-friendly way. 2010-11-26 10:09:22 -05:00
adamboduch
ff89edf50f Removed redundant imports from properties.py 2010-11-26 09:52:49 -05:00
adamboduch
c54811d284 Removed the redundant user_data_dir property from several modules by
introducing a new get_user_data_dir() utility function.
2010-11-26 09:43:33 -05:00
adamboduch
03881a23f2 A few minor changes.
Removed a print statement from application.py

Change the logging format in logger.py.  Instead of showing the asctime in
the message, we now show the logger name.  This isn't a web server so the
time really isn't that relevant.

The Logger constructor now has a name parameter which defaults to GAPHOR and
is displayed in the log messages.  This way new loggers that are created
can have a name and the messages carry more meaning.

The logger class has a new static attribute - level.  This can be set to
apply the logging level globally, for any Logger instances.  For now, this
doesn't have an effect since Logger is a singleton.  However, this is likely
to change.
2010-11-26 08:41:58 -05:00
adamboduch
4c511ea3b2 Made several improvements to __init__.py and the Gaphor application
initialization.

The major change is that Application now has an option parser for access
to command line options.  This means that plugins and services can add command
line options to the parser and have access to their values.  This is done
by creating the parser object inside main() and passing it to the application.
The application will then initialize all services before actually parsing
the options.  This gives them a chance to add their own.

The imports in __init__.py have also been re-arranged.  Logging is now set
when the application is initialized.

The launch() function in __init__.py has been simplified.  Instead of passing
a Gaphor file argument, launch() will now ask the Application instance if
there is a Gaphor model to load.

The main() function in __init__.py is also much smaller and simpler now
due to the above changes.
2010-11-26 08:08:13 -05:00
adamboduch
7183a1d1a0 Made several enhancements and fixes in the XMI Export plugin. 2010-11-25 12:52:27 -05:00
adamboduch
e9c73a774a Merge branch 'master' of http://github.com/amolenaar/gaphor 2010-10-15 11:12:25 -04:00
Arjan Molenaar
4c82af4af1 Updated version to 0.16.0, finally 2010-10-15 16:52:36 +02:00
Arjan Molenaar
28672612f5 Fixed saving of model on exit. 2010-10-15 16:49:48 +02:00
Arjan Molenaar
30b9437404 Added close button on diagram tabs. Thanks to Mario Gonzalez <gonzalemario@gmail.com>. 2010-10-15 16:46:53 +02:00
adamboduch
ebeda97936 Started to implement a new version of the XMI plugin to support XMI 2.1. 2010-09-30 09:56:49 -04:00
adamboduch
56d9bd8720 Merge branch 'master' of http://github.com/amolenaar/gaphor 2010-09-24 08:29:05 -04:00
Arjan Molenaar
57402363eb Added missing layout.xml. 2010-09-20 21:39:56 +02:00
Antony N. Pavlov
64f79dd115 Fixed merge conflict that somehow made it into the repo. 2010-09-20 21:39:56 +02:00
adamboduch
d3c9524c17 Fixed and added documentation in elementeditor.py. 2010-09-16 04:00:46 +08:00
Arjan Molenaar
a52fb5dad5 Loosened rules on Properties in Namespace view.
[[#64] state:resolved]
2010-09-14 17:48:59 +02:00
adamboduch
b7e1fbd33b Fixed and added documentation in elementeditor.py. 2010-09-08 07:22:04 -04:00
Arjan Molenaar
b3512e7402 Merge branch 'master' of http://github.com/mamutti/gaphor 2010-09-08 08:45:46 +02:00
Arjan Molenaar
58c3a2125c Merge branch 'master' of git://github.com/adamboduch/gaphor 2010-09-08 08:45:10 +02:00
adamboduch
e9c760c8f2 The diagram export manager service now uses the FileDialog and
QuestionDialog classes.
2010-09-07 13:06:04 -04:00
adamboduch
a8254a0191 Added documentation to event.py. 2010-09-07 11:50:10 -04:00
Ygor Mutti
4e36574f89 Merge branch 'master' of git://github.com/amolenaar/gaphor 2010-09-06 13:18:51 -03:00
adamboduch
cc3fd415f7 The XMI Export plugin now uses the FileDialog class. 2010-09-01 09:49:06 -04:00