/
rgd045
/
crypt-file
Обзор
Документация
Войти
/
rgd045
/
crypt-file
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/main/java/org/cryptomator/ui/migration/MigrationComponent.java
39 строк
785 B
Sebastian Stenzel
Single maven module (#1676)
04 июн 2021, 21:09
Не верифицирован
04 июн 2021, 21:09
7fac6da
Код
Авторство
О чём код?
package org.cryptomator.ui.migration; import dagger.BindsInstance; import dagger.Lazy; import dagger.Subcomponent; import org.cryptomator.common.vaults.Vault; import org.cryptomator.ui.common.FxmlFile; import org.cryptomator.ui.common.FxmlScene; import javafx.scene.Scene; import javafx.stage.Stage; @MigrationScoped @Subcomponent(modules = {MigrationModule.class}) public interface MigrationComponent { @MigrationWindow Stage window(); @FxmlScene(FxmlFile.MIGRATION_START) Lazy<Scene> scene(); default Stage showMigrationWindow() { Stage stage = window(); stage.setScene(scene().get()); stage.show(); return stage; } @Subcomponent.Builder interface Builder { @BindsInstance Builder vault(@MigrationWindow Vault vault); MigrationComponent build(); } }