| 44 | |
| 45 | * Remove dependency from org.sophie2.main.func.resources to org.sophie2.main.func.image and to org.sophie2.main.func.media. |
| 46 | * Add dependency from org.sophie2.main.func.image to org.sophie2.main.func.resources. |
| 47 | * Module org.sophie2.main.func.resources should provide extension point where different resources will provide how they will be previewed. Different extensions should give a button for each different kind of resource. This will be the way how resources will be filtered. |
| 48 | * Create interface ResourcePreviewProvider in org.sophie2.main.func.resources (module and package). (This is the interface of the extension point.) |
| 49 | * Create class ResourcePreviewFactory in org.sophie2.main.func.resources (module) and org.sophie2.main.func.resources.view (package) with one static method SwingVisualElement createResourcePreview(Resource res) which will create SwingVisualElement from given Resource. |
| 50 | * In org.sophie2.main.func.image create class ImageResourcePreviewProvider that extends ResourcePreviewProvider.This class will define how images will be previewed in the preview palette. |
| 51 | * Create filteringButtons list property which will constructs a list of toggle buttons. Each toggle button will correspond to a different module that has provided an extension for the extension point of the org.sophie2.main.func.resources module. |
| 52 | |
| 53 | * [changeset:2923] - The new hierarchy. |