]> gerrit.simantics Code Review - simantics/platform.git/commit
Re-enabled CTRL+SHIFT+R resource search dialog in org.simantics.debug.ui 90/190/3
authorAntti Villberg <antti.villberg@semantum.fi>
Thu, 8 Dec 2016 09:06:36 +0000 (11:06 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 8 Dec 2016 14:10:57 +0000 (16:10 +0200)
commit0a314ce9afeeac53b4d4653125cf56cb99be7976
tree354cc2e7701c8e39edfcc8c5d8593cbe7c30fd9e
parent6470931159a573043ba403cc94cd5e5e3916fd62
Re-enabled CTRL+SHIFT+R resource search dialog in org.simantics.debug.ui

This fixes the old problem where the index searches were not limited to
e.g. a 1000 hits but to Integer.MAX_VALUE instead. If the user happened
to write 'a' into the search field, this would return pretty much every
indexed resource and kill the JVM eventually.

This also fixes a problem from
org.simantics.modeling.ui.diagramEditor.DiagramViewer which did not
check diagram resource immutability before attempting to write a diagram
page description to it because it was missing. This can happen if you
use the resource search dialog to open e.g. diagram symbols from the
ontologies.

refs #6855

Change-Id: Id341871847e0ea8bdbc036e8023821ab0556a3cb
bundles/org.simantics.debug.ui/META-INF/MANIFEST.MF
bundles/org.simantics.debug.ui/plugin.xml
bundles/org.simantics.debug.ui/src/org/simantics/debug/ui/SearchResourceDialog.java
bundles/org.simantics.debug.ui/src/org/simantics/debug/ui/ShowInBrowser.java [new file with mode: 0644]
bundles/org.simantics.debug.ui/src/org/simantics/debug/ui/internal/SearchResourceHandler.java
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/DiagramViewer.java