mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 09:12:09 +10:00
tree improvement
This commit is contained in:
@@ -141,7 +141,14 @@ public class TreePanel extends JPanel {
|
|||||||
componentType =
|
componentType =
|
||||||
ComponentProcessor.getInstance().extractComponentTypeFrom(
|
ComponentProcessor.getInstance().extractComponentTypeFrom(
|
||||||
(Class<? extends IDIYComponent<?>>) Class.forName(componentClassName));
|
(Class<? extends IDIYComponent<?>>) Class.forName(componentClassName));
|
||||||
final DefaultMutableTreeNode componentNode = new DefaultMutableTreeNode(new Payload(componentType), false);
|
Payload payload = new Payload(componentType);
|
||||||
|
final DefaultMutableTreeNode componentNode = new DefaultMutableTreeNode(payload, false);
|
||||||
|
String text = getSearchField().getText();
|
||||||
|
boolean visible =
|
||||||
|
text.trim().length() == 0 || componentType.getName().toLowerCase().contains(text.toLowerCase())
|
||||||
|
|| componentType.getDescription().toLowerCase().contains(text.toLowerCase())
|
||||||
|
|| componentType.getCategory().toLowerCase().contains(text.toLowerCase());
|
||||||
|
payload.setVisible(visible);
|
||||||
getRecentNode().add(componentNode);
|
getRecentNode().add(componentNode);
|
||||||
} catch (ClassNotFoundException e) {
|
} catch (ClassNotFoundException e) {
|
||||||
LOG.error("Could not create recent component button for " + componentClassName, e);
|
LOG.error("Could not create recent component button for " + componentClassName, e);
|
||||||
|
|||||||
@@ -1422,6 +1422,10 @@
|
|||||||
<changeType>NEW_FEATURE</changeType>
|
<changeType>NEW_FEATURE</changeType>
|
||||||
<description>SMD capacitor and resistor added</description>
|
<description>SMD capacitor and resistor added</description>
|
||||||
</org.diylc.appframework.update.Change>
|
</org.diylc.appframework.update.Change>
|
||||||
|
<org.diylc.appframework.update.Change>
|
||||||
|
<changeType>IMPROVEMENT</changeType>
|
||||||
|
<description>Fixed the issue with zooming in on traces and similar components that would not change on zooming</description>
|
||||||
|
</org.diylc.appframework.update.Change>
|
||||||
<org.diylc.appframework.update.Change>
|
<org.diylc.appframework.update.Change>
|
||||||
<changeType>IMPROVEMENT</changeType>
|
<changeType>IMPROVEMENT</changeType>
|
||||||
<description>Tube, transistor and potentiometer symbols can be rotated</description>
|
<description>Tube, transistor and potentiometer symbols can be rotated</description>
|
||||||
|
|||||||
Reference in New Issue
Block a user