mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-20 07:45:36 +00:00
do not allow to chage tag tree selection, when current tag is under editing
This commit is contained in:
@@ -37,7 +37,7 @@ import layout.TableLayout;
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class HeaderInfoPanel extends JPanel {
|
||||
public class HeaderInfoPanel extends JPanel implements TagEditorPanel {
|
||||
|
||||
private final JLabel signatureLabel = new JLabel();
|
||||
|
||||
@@ -229,10 +229,11 @@ public class HeaderInfoPanel extends JPanel {
|
||||
}
|
||||
|
||||
private String fmtDouble(double d) {
|
||||
String r = "" + d;
|
||||
String r = Double.toString(d);
|
||||
if (r.endsWith(".0")) {
|
||||
r = r.substring(0, r.length() - 2);
|
||||
}
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
@@ -252,4 +253,15 @@ public class HeaderInfoPanel extends JPanel {
|
||||
saveButton.setVisible(edit);
|
||||
cancelButton.setVisible(edit);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean tryAutoSave() {
|
||||
// todo: implement
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEditing() {
|
||||
return saveButton.isVisible();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user