Skip to content

Commit

Permalink
Cleanup code a bunch
Browse files Browse the repository at this point in the history
Mostly automated tools, but some of my own stuff. This took like an hour.
  • Loading branch information
Gaming32 committed Jan 16, 2023
1 parent 0a7a4fb commit 89fcea4
Show file tree
Hide file tree
Showing 70 changed files with 862 additions and 1,483 deletions.
27 changes: 1 addition & 26 deletions src/main/java/io/github/arrayv/dialogs/CustomImageDialog.java
Original file line number Diff line number Diff line change
@@ -1,31 +1,6 @@
package io.github.arrayv.dialogs;

import javax.swing.JFileChooser;

/*
MIT License
Copyright (c) 2021-2022 ArrayV Team
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

import javax.swing.*;
import javax.swing.filechooser.FileNameExtensionFilter;

public final class CustomImageDialog extends FileDialog {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.arrayv.dialogs;

import javax.swing.JFileChooser;
import javax.swing.*;

/*
MIT License
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/io/github/arrayv/dialogs/FileDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ of this software and associated documentation files (the "Software"), to deal
SOFTWARE.
*/

import java.io.File;

import javax.swing.JFileChooser;
import javax.swing.*;
import javax.swing.filechooser.FileFilter;
import java.io.File;

public abstract class FileDialog {
protected static JFileChooser fileDialog;
Expand Down
27 changes: 1 addition & 26 deletions src/main/java/io/github/arrayv/dialogs/ImportSortDialog.java
Original file line number Diff line number Diff line change
@@ -1,31 +1,6 @@
package io.github.arrayv.dialogs;

import javax.swing.JFileChooser;

/*
MIT License
Copyright (c) 2021-2022 ArrayV Team
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

import javax.swing.*;
import javax.swing.filechooser.FileNameExtensionFilter;

public final class ImportSortDialog extends FileDialog {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.arrayv.dialogs;

import javax.swing.JFileChooser;
import javax.swing.*;

/*
MIT License
Expand Down
5 changes: 1 addition & 4 deletions src/main/java/io/github/arrayv/dialogs/LoadingDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,9 @@ of this software and associated documentation files (the "Software"), to deal
SOFTWARE.
*/

import javax.swing.*;
import java.awt.Dialog.ModalityType;

import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JOptionPane;

public class LoadingDialog {
private JOptionPane pane;
private JDialog dialog;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.arrayv.dialogs;

import javax.swing.JFileChooser;
import javax.swing.*;
import javax.swing.filechooser.FileNameExtensionFilter;

/*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.arrayv.dialogs;

import javax.swing.JFileChooser;
import javax.swing.*;

/*
MIT License
Expand Down
Loading

0 comments on commit 89fcea4

Please sign in to comment.