TheAliceProject / alice3

The Alice 3 block-based IDE desktop application. Also contains a NetBeans plugin to extend development into java.
https://www.alice.org/
Other
154 stars 24 forks source link

Icons for Sims is not displayed in editor window #390

Open dabeshouse opened 6 months ago

dabeshouse commented 6 months ago

When a class in the Person hierarchy is active in the editor it does not have a picture displayed.

There is just a grey field: CleanShot 2024-04-30 at 13 22 55@2x

Other classes show images: image

The problem surface when the type is selected and no URL is identified. Here is the top of stack where url==null

createIconFactoryFromUrl:150, IconFactoryManager$UrlResourceDeclaration (org.alice.stageide.icons)
createIconFactory:143, IconFactoryManager$UrlResourceDeclaration (org.alice.stageide.icons)
getIconFactoryForResourceDeclaration:401, IconFactoryManager (org.alice.stageide.icons)
getIconFactoryForType:436, IconFactoryManager (org.alice.stageide.icons)
handleTypeStateChanged:102, SelectedTypeView (org.alice.stageide.typecontext.components)
valueChanged:85, SelectedTypeView$1 (org.alice.stageide.typecontext.components)
…

Instances show icons in menus, but these would need to be for the classes like Child or Elder, and more abstractly, Person.

dabeshouse commented 4 months ago

This may be Mac specific, and I think I have a fix.

dabeshouse commented 3 months ago

OpenGL calls skipped rendering on Macs because of an inapplicable test. Removed the check in the same PR that updates jogl to 2.5.0