-
Notifications
You must be signed in to change notification settings - Fork 11
Added search bar to search for components #200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
mtygesen
commented
Mar 24, 2025
- Added search bar to search for places and transitions in a net
…he selected component
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works very well. It is nice that for places it prints (Shared) after the shared places, please, do the same also for shared transitions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR is broken. Open e.g. the EKR net and search for RP place. It shows is as a shared place (but it is not a shared place). When you click it, it gives:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: Selected object is null
at pipe.gui.GuiFrame.lambda$buildToolbar$4(GuiFrame.java:997)
at pipe.gui.petrinet.SearchBar.lambda$showResults$0(SearchBar.java:149)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2314)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:407)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and works very well.