93 | | * The library(mydoggy) itself may also cause problems, so have in mind rewriting some part of it or may be use another library. Since the library is tightly connected with skins (look and feel part of them). |
| 93 | * Fixing mydoggy library: |
| 94 | * There is a bug in the mydoggy built in "DockedContainer" that doesn't allow look and feel setting because of improper getting of the default font from a SynthLookAndFeel. This means that setting a system LookAndFeel is OK, while setting a synth one breaks mydoggy. |
| 95 | * A package that fixes mydoggy will be created inside the "org.sophie2.main.layout.mydoggy" module. It will be named "fixes" ([source:branches/private/peko/sophie2-refactoring/modules/org.sophie2.main.layout.mydoggy/src/main/java/org/sophie2/main/layout/mydoggy/fixes fixes]) and will contain: |
| 96 | * An implementation of "DockedContainer" in a class called SophieDockedContainer. It will provide a default font and set in the places where mydoggy breaks. |
| 97 | * In order to have a consistently working mydoggy we should also provide an implementation of "ToolWindowDescriptor" in a class called "SophieToolWindowDescriptor". It is needed for another class described later so that it return a "SophieDockedContainer". The "getToolWindowContainer" will be overridden to provide it. |
| 98 | * The SophieToolWindowDescriptor is needed in MyDoggyToolWindowManager. In order for the whole fix to work we should provide a "SophieToolWindowManager" that overrides the "createDescriptor" method. |
| 99 | |