Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mass convert #33

Open
wants to merge 26 commits into
base: devel
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e6e2109
mass convert mosv1 mostly working
Goddard Aug 17, 2020
94c6d2c
Working version, but still has bugs
Goddard Aug 20, 2020
580502f
remove checkbox
Goddard Jul 2, 2021
aafb628
fixed imports and newline at end of file
Goddard Jul 4, 2021
89fca90
copy paste header from other files
Goddard Jul 4, 2021
9044e2d
used format for code so it is all the same
Goddard Jul 4, 2021
e1f5b09
added logger
Goddard Jul 4, 2021
625dd01
fixed more imports
Goddard Jul 4, 2021
f73159b
added javadoc block
Goddard Jul 4, 2021
22685ba
added comment and split variables to own line and use equal function
Goddard Jul 4, 2021
dc89796
fix errors to logs and wrong file type
Goddard Jul 4, 2021
353130c
move property to top of class
Goddard Jul 4, 2021
3830798
move int to own line
Goddard Jul 4, 2021
1c59c47
added catch instead of finally to log error
Goddard Jul 4, 2021
ead4b64
added log and removed redundent progress assignment to null
Goddard Jul 4, 2021
60a4921
added log for selecting file
Goddard Jul 4, 2021
f5df564
removed white space
Goddard Jul 4, 2021
2bc5022
added comment for required method even if unused
Goddard Jul 4, 2021
c1a182e
fixed typo
Goddard Jul 4, 2021
e02c8f5
removed commented code
Goddard Jul 4, 2021
6bca663
removed unused code
Goddard Jul 4, 2021
78b74e7
changed to final for count
Goddard Jul 4, 2021
8ed6231
Merge remote-tracking branch 'origin/devel' into mass-convert
Goddard Jul 6, 2021
3698122
fixed old function used
Goddard Jul 6, 2021
0075e22
fixed spacing issue with v2 and shrink bug
Goddard Jul 7, 2021
4c8e5e9
window now fresh after closed and reopened dialog opens in root and s…
Goddard Jul 9, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added log for selecting file
  • Loading branch information
Goddard committed Jul 4, 2021
commit 60a492149c423f1cadb352dca423a683ae6d9b8f
4 changes: 2 additions & 2 deletions src/org/infinity/gui/converter/ConvertToMos.java
Original file line number Diff line number Diff line change
@@ -638,7 +638,7 @@ public void actionPerformed(ActionEvent event)

File[] filePaths = getImageFileName();
if (filePaths != null) {
for(File fileSelected : filePaths) {
for (File fileSelected : filePaths) {
System.out.println(fileSelected.getName());
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use Logger with useful message or remove

inputTableModel.addRow(new Object[] { fileSelected.getAbsolutePath()});

@@ -1018,7 +1018,7 @@ private File[] getImageFileName()
if (ret == JFileChooser.APPROVE_OPTION) {
File[] filePaths = fc.getSelectedFiles();
for(File fileSelected : filePaths) {
System.out.println(fileSelected.getName());
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "File Selected : " + fileSelected.getName());
}
return filePaths;
} else {