-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
94 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ plugins { | |
} | ||
|
||
group = "net.pryoscode" | ||
version = "0.2.1" | ||
version = "0.2.2" | ||
|
||
kotlin { | ||
jvmToolchain { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
src/main/kotlin/net/pryoscode/decompiler/window/components/container/Container.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/main/kotlin/net/pryoscode/decompiler/window/container/Container.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package net.pryoscode.decompiler.window.container | ||
|
||
import javafx.scene.control.TabPane | ||
import net.pryoscode.decompiler.Decompiler | ||
import net.pryoscode.decompiler.window.sidebar.Entry | ||
import net.pryoscode.decompiler.window.sidebar.Type | ||
import org.jetbrains.java.decompiler.util.InterpreterUtil | ||
|
||
object Container : TabPane() { | ||
|
||
init { | ||
tabDragPolicy = TabDragPolicy.REORDER | ||
tabClosingPolicy = TabClosingPolicy.ALL_TABS | ||
} | ||
|
||
fun open(entry: Entry) { | ||
var tab: Code? = null | ||
for (t in tabs) { | ||
if ((t as Code).entry == entry) { | ||
tab = t | ||
break | ||
} | ||
} | ||
if (tab == null) { | ||
if (entry.type == Type.CLASS) | ||
Decompiler(entry) | ||
else | ||
Code(entry, String(InterpreterUtil.getBytes(entry.file, entry.entry))) | ||
} else | ||
selectionModel.select(tab) | ||
} | ||
|
||
} |
5 changes: 2 additions & 3 deletions
5
...oscode/decompiler/window/windows/About.kt → ...ryoscode/decompiler/window/popup/About.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/main/kotlin/net/pryoscode/decompiler/window/popup/Importer.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package net.pryoscode.decompiler.window.popup | ||
|
||
class Importer |
5 changes: 3 additions & 2 deletions
5
.../net/pryoscode/decompiler/window/Popup.kt → ...ryoscode/decompiler/window/popup/Popup.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/main/kotlin/net/pryoscode/decompiler/window/popup/Search.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package net.pryoscode.decompiler.window.popup | ||
|
||
class Search |
2 changes: 1 addition & 1 deletion
2
...compiler/window/components/sidebar/Bar.kt → ...ryoscode/decompiler/window/sidebar/Bar.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ompiler/window/components/sidebar/Item.kt → ...yoscode/decompiler/window/sidebar/Item.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...iler/window/components/sidebar/Sidebar.kt → ...code/decompiler/window/sidebar/Sidebar.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ompiler/window/components/sidebar/Type.kt → ...yoscode/decompiler/window/sidebar/Type.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...code/decompiler/window/components/Link.kt → ...pryoscode/decompiler/window/utils/Link.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../net/pryoscode/decompiler/window/Style.kt → ...ryoscode/decompiler/window/utils/Style.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.