-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: tobias <tobias.hotmail.com>
- Loading branch information
Showing
19 changed files
with
546 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
jadx-gui/src/main/java/jadx/gui/treemodel/JResSearchNode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
package jadx.gui.treemodel; | ||
|
||
import javax.swing.*; | ||
|
||
import jadx.core.utils.StringUtils; | ||
|
||
public class JResSearchNode extends JNode { | ||
private static final long serialVersionUID = -2222084945157778639L; | ||
private final transient JResource resNode; | ||
private final transient String text; | ||
private final transient int line; | ||
private final transient int pos; | ||
|
||
public JResSearchNode(JResource resNode, String text, int line, int pos) { | ||
this.pos = pos; | ||
this.text = text; | ||
this.line = line; | ||
this.resNode = resNode; | ||
} | ||
|
||
public JResource getResNode() { | ||
return resNode; | ||
} | ||
|
||
public int getPos() { | ||
return pos; | ||
} | ||
|
||
@Override | ||
public String makeDescString() { | ||
return text; | ||
} | ||
|
||
@Override | ||
public JClass getJParent() { | ||
return resNode.getJParent(); | ||
} | ||
|
||
@Override | ||
public int getLine() { | ||
return line; | ||
} | ||
|
||
@Override | ||
public String makeLongStringHtml() { | ||
return getName(); | ||
} | ||
|
||
@Override | ||
public Icon getIcon() { | ||
return resNode.getIcon(); | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return resNode.getName(); | ||
} | ||
|
||
@Override | ||
public String makeString() { | ||
return resNode.makeString(); | ||
} | ||
|
||
@Override | ||
public boolean hasDescString() { | ||
return !StringUtils.isEmpty(text); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.