mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-06 14:45:50 +00:00
Added #1901 Double click tree node to start edit
Added Info about editation in status bar
This commit is contained in:
@@ -329,11 +329,13 @@ public class TextPanel extends JPanel implements TagEditorPanel {
|
||||
private void editText() {
|
||||
setEditText(true);
|
||||
showTextComparingPreview();
|
||||
mainPanel.setEditingStatus();
|
||||
}
|
||||
|
||||
private void cancelText() {
|
||||
setEditText(false);
|
||||
mainPanel.reload(true);
|
||||
mainPanel.clearEditingStatus();
|
||||
}
|
||||
|
||||
private void saveText(boolean refresh) {
|
||||
@@ -344,6 +346,7 @@ public class TextPanel extends JPanel implements TagEditorPanel {
|
||||
if (refresh) {
|
||||
mainPanel.repaintTree();
|
||||
}
|
||||
mainPanel.clearEditingStatus();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -425,4 +428,11 @@ public class TextPanel extends JPanel implements TagEditorPanel {
|
||||
public boolean isEditing() {
|
||||
return textSaveButton.isVisible();
|
||||
}
|
||||
|
||||
public void startEdit() {
|
||||
if (!textEditButton.isVisible()) {
|
||||
return;
|
||||
}
|
||||
editText();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user