X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fgui%2FMainWindow.java;h=9731ec5e94a386d0fdb9d3c72a9d6e4d82f4ee79;hb=587428e890799ee0c6d3a3224e4a161a3480811d;hp=4e1b9aa9e3d43509c004154302005b4a0dac4a8b;hpb=d5afe3e2bde1f3a21cec6f3b3f1e57f7fdac3618;p=jSite2.git diff --git a/src/net/pterodactylus/jsite/gui/MainWindow.java b/src/net/pterodactylus/jsite/gui/MainWindow.java index 4e1b9aa..9731ec5 100644 --- a/src/net/pterodactylus/jsite/gui/MainWindow.java +++ b/src/net/pterodactylus/jsite/gui/MainWindow.java @@ -260,11 +260,69 @@ public class MainWindow extends JFrame implements WindowListener, I18nable, Prop } } + /** + * @param project + */ + void projectInsertStarted(Project project) { + ProjectPanel projectPanel = findProjectPanel(project); + if (projectPanel == null) { + return; + } + + } + + /** + * @param project + * @param totalBlocks + * @param requiredBlocks + * @param successfulBlocks + * @param failedBlocks + * @param fatallyFailedBlocks + * @param finalizedTotal + */ + void projectInsertProgressed(Project project, int totalBlocks, int requiredBlocks, int successfulBlocks, int failedBlocks, int fatallyFailedBlocks, boolean finalizedTotal) { + + } + + /** + * @param project + */ + void projectInsertGeneratedURI(Project project) { + + } + + /** + * @param project + * @param success + */ + void projectInsertFinished(Project project, boolean success) { + + } + // // PRIVATE METHODS // /** + * Locates the project panel that contains the given project. + * + * @param project + * The wanted project + */ + private ProjectPanel findProjectPanel(Project project) { + int tabCount = projectPane.getTabCount(); + for (int tabIndex = 1; tabIndex < tabCount; tabIndex++) { + Component tabComponent = projectPane.getComponentAt(tabIndex); + if (tabComponent instanceof ProjectPanel) { + if (((ProjectPanel) tabComponent).getProject() == project) { + return (ProjectPanel) tabComponent; + } + } + } + return null; + } + + /** * Initializes the window by creating all its components. */ private void initWindow() {