mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-06 14:45:50 +00:00
Try to direct edit texts - unsuccessful.
This commit is contained in:
@@ -167,9 +167,11 @@ public class TextPanel extends JPanel implements TagEditorPanel {
|
||||
public SearchPanel<TextTag> getSearchPanel() {
|
||||
return textSearchPanel;
|
||||
}
|
||||
|
||||
public void setText(TextTag textTag) {
|
||||
this.textTag = textTag;
|
||||
|
||||
public void refresh() {
|
||||
if (this.textTag == null) {
|
||||
return;
|
||||
}
|
||||
String formattedText;
|
||||
try {
|
||||
formattedText = textTag.getFormattedText(false).text;
|
||||
@@ -178,6 +180,11 @@ public class TextPanel extends JPanel implements TagEditorPanel {
|
||||
}
|
||||
|
||||
textValue.setText(formattedText);
|
||||
}
|
||||
|
||||
public void setText(TextTag textTag) {
|
||||
this.textTag = textTag;
|
||||
refresh();
|
||||
textValue.setCaretPosition(0);
|
||||
setModified(false);
|
||||
setEditText(false);
|
||||
|
||||
Reference in New Issue
Block a user