added 2b99a244b592445962cdd15ca33f80449f9aa2ea.patch to fix compiler issue in jrd window
This commit is contained in:
parent
bedecc2650
commit
474b954b81
2 changed files with 66 additions and 1 deletions
60
2b99a244b592445962cdd15ca33f80449f9aa2ea.patch
Normal file
60
2b99a244b592445962cdd15ca33f80449f9aa2ea.patch
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
commit 2b99a244b592445962cdd15ca33f80449f9aa2ea
|
||||
Author: Jiri <jvanek@redhat.com>
|
||||
Date: Tue Jul 11 10:16:41 2023 +0200
|
||||
|
||||
isTreatAllTabsAsOneBatch returns false in jrd mode and is not shown
|
||||
|
||||
diff --git a/runtime-decompiler/src/main/java/org/jrd/frontend/frame/main/decompilerview/TextWithControls.java b/runtime-decompiler/src/main/java/org/jrd/frontend/frame/main/decompilerview/TextWithControls.java
|
||||
index 3e87e6d..a8db71a 100644
|
||||
--- a/runtime-decompiler/src/main/java/org/jrd/frontend/frame/main/decompilerview/TextWithControls.java
|
||||
+++ b/runtime-decompiler/src/main/java/org/jrd/frontend/frame/main/decompilerview/TextWithControls.java
|
||||
@@ -574,18 +574,20 @@ public class TextWithControls extends JPanel
|
||||
}
|
||||
});
|
||||
advanced.add(setMethod);
|
||||
- JCheckBox treatAllAsOne = new JCheckBox("Treat all tabs in this window as single batch");
|
||||
- Container parent = getParentWindow();
|
||||
- if (parent != null) {
|
||||
- treatAllAsOne.addActionListener(new ActionListener() {
|
||||
- @Override
|
||||
- public void actionPerformed(ActionEvent actionEvent) {
|
||||
- setTreatAllTabsAsOneBatch(treatAllAsOne.isSelected());
|
||||
- repaintMenu(menu);
|
||||
- }
|
||||
- });
|
||||
- treatAllAsOne.setSelected(isTreatAllTabsAsOneBatch());
|
||||
- advanced.add(treatAllAsOne);
|
||||
+ if (getParentWindow()!=null) {
|
||||
+ JCheckBox treatAllAsOne = new JCheckBox("Treat all tabs in this window as single batch");
|
||||
+ Container parent = getParentWindow();
|
||||
+ if (parent != null) {
|
||||
+ treatAllAsOne.addActionListener(new ActionListener() {
|
||||
+ @Override
|
||||
+ public void actionPerformed(ActionEvent actionEvent) {
|
||||
+ setTreatAllTabsAsOneBatch(treatAllAsOne.isSelected());
|
||||
+ repaintMenu(menu);
|
||||
+ }
|
||||
+ });
|
||||
+ treatAllAsOne.setSelected(isTreatAllTabsAsOneBatch());
|
||||
+ advanced.add(treatAllAsOne);
|
||||
+ }
|
||||
}
|
||||
if (hasVm(classesAndMethodsProvider)) {
|
||||
JCheckBox addToBoot = new JCheckBox(
|
||||
@@ -908,10 +910,16 @@ public class TextWithControls extends JPanel
|
||||
}
|
||||
|
||||
private void setTreatAllTabsAsOneBatch(boolean selected) {
|
||||
+ if (getParentWindow() == null) {
|
||||
+ return ;
|
||||
+ }
|
||||
getParentWindow().setTreatAllTabsAsOneBatch(selected);
|
||||
}
|
||||
|
||||
private boolean isTreatAllTabsAsOneBatch() {
|
||||
+ if (getParentWindow() == null) {
|
||||
+ return false;
|
||||
+ }
|
||||
return getParentWindow().isTreatAllTabsAsOneBatch();
|
||||
}
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
Summary: Application for extraction and decompilation of JVM byte code
|
||||
Name: java-runtime-decompiler
|
||||
Version: 7.3
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPLv3
|
||||
URL: https://github.com/pmikova/java-runtime-decompiler
|
||||
Source0: https://github.com/pmikova/%{name}/archive/%{name}-%{version}.tar.gz
|
||||
|
|
@ -22,6 +22,7 @@ Patch61: systemJcoder7.patch
|
|||
Patch62: systemJcoderG.patch
|
||||
Patch63: systemJcoderG7.patch
|
||||
Patch7: removeMultilineSpotbugs.patch
|
||||
Patch8: 2b99a244b592445962cdd15ca33f80449f9aa2ea.patch
|
||||
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{java_arches} noarch
|
||||
|
|
@ -123,6 +124,7 @@ This package provides bindings and requirements to asmtools7 disassembler and as
|
|||
%patch62 -p0
|
||||
%patch63 -p0
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
|
||||
%build
|
||||
pushd runtime-decompiler
|
||||
|
|
@ -228,6 +230,9 @@ rm $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/plugins/JdDecompilerWrapper.json
|
|||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
* Tue Jul 11 2023 Fedora Release Engineering <releng@fedoraproject.org> - 7.3-2
|
||||
- added 2b99a244b592445962cdd15ca33f80449f9aa2ea.patch to fix compiler issue in jrd window
|
||||
|
||||
* Fri Jun 30 2023 Fedora Release Engineering <releng@fedoraproject.org> - 7.3-1
|
||||
- moved to 7.3
|
||||
- https://github.com/pmikova/java-runtime-decompiler/releases/tag/java-runtime-decompiler-7.3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue