/** * Returns the translated header text for this panel * * @return The translated header text */ public String getHeader() { return tr("Choose repository type..."); }
@Override public String getHeader() { return tr("Choose the location of the local repository"); }
/** * Constructor * * @param control The control belonging to the skin */ public ShortcutCreationDetailsPanelSkin(ShortcutCreationDetailsPanel control) { super(control); this.title.setValue(tr("Create a new shortcut")); }
@Override @Bean public UiQuestionFactory uiQuestionFactory() { return new UiQuestionFactoryJavaFX(tr("Question")); } }
public ContainerToolsTab(ContainerDTO container, ContainerEngineController containerEngineController) { super(tr("Tools")); this.container = container; this.containerEngineController = containerEngineController; this.setClosable(false); this.populate(); }
ContainerInformationTab(ContainerDTO container) { super(tr("Information")); this.container = (WinePrefixContainerDTO) container; // TODO: use generic container this.setClosable(false); this.populate(); }
public void loadContainers() { this.containersView.showWait(); this.containersManager.fetchContainers(containersView::populate, e -> this.containersView.showFailure(tr("Loading containers failed."), Optional .of(e))); }
/** * {@inheritDoc} */ @Override protected Optional<ToggleButton> createAllButton() { final ToggleButton allCategoryButton = createSidebarToggleButton(tr("All")); allCategoryButton.getStyleClass().add("containerButton"); allCategoryButton.setOnMouseClicked(event -> getControl().setNothingSelected()); return Optional.of(allCategoryButton); }
/** * {@inheritDoc} */ @Override protected Optional<ToggleButton> createAllButton() { final ToggleButton allCategoryButton = createSidebarToggleButton(tr("All")); allCategoryButton.setId("allButton"); allCategoryButton.setOnAction(event -> getControl().setNothingSelected()); return Optional.of(allCategoryButton); }
private void populateRepositoryLegend() { this.priorityHint = new Label(tr( "The value in front of each repository is its priority. The higher the priority is, the more important the scripts inside the repository are.")); this.priorityHint.setWrapText(true); this.priorityHint.setPadding(new Insets(10)); }
/** * {@inheritDoc} */ @Override public void initialise() { final Text title = new Text(tr("About")); title.getStyleClass().add("title"); final GridPane aboutGrid = createAboutGrid(); final VBox container = new VBox(title, aboutGrid); container.getStyleClass().add("containerConfigurationPane"); getChildren().addAll(container); }
public SetupUiJavaFXImplementation(String title, OperatingSystemFetcher operatingSystemFetcher, ThemeManager themeManager) { super(); this.themeManager = themeManager; this.operatingSystemFetcher = operatingSystemFetcher; this.root = new BorderPane(); this.wizardTitle = title; this.setText(tr(title)); this.setContent(root); this.loadImages(); }
public ErrorDialog build() { final ErrorDialog dialog = new ErrorDialog(); dialog.setTitle(tr("Error")); dialog.setHeaderText(message); dialog.setException(exception); dialog.initOwner(owner); dialog.setResizable(resizable); return dialog; } }
/** * {@inheritDoc} */ @Override protected ScrollPane createMainContent() { final SettingsSidebarToggleGroup sidebarToggleGroup = new SettingsSidebarToggleGroup( tr("Settings"), getControl().getItems(), getControl().selectedItemProperty()); return createScrollPane(sidebarToggleGroup); } }
private void runShortcut(ShortcutDTO shortcut) { shortcutRunner.run(shortcut, Collections.emptyList(), e -> { final ErrorDialog errorDialog = ErrorDialog.builder() .withMessage(tr("Error")) .withException(e) .withOwner(content.getScene().getWindow()) .build(); errorDialog.showAndWait(); }); }
/** * Populates the repository details step for the classpath repository */ private void populate() { this.classpathField = new TextField(); Label classpathLabel = new Label(tr("Classpath:")); classpathLabel.setLabelFor(classpathField); HBox content = new HBox(classpathLabel, classpathField); content.setId("addClasspathRepository"); HBox.setHgrow(classpathField, Priority.ALWAYS); this.setCenter(content); }
public FailurePanel() { this.getStyleClass().add("rightPane"); this.setSpacing(10); this.failureNotification = new Label(); this.failureNotification.setTextAlignment(TextAlignment.CENTER); this.failureReason = new Label(); this.failureReason.setTextAlignment(TextAlignment.CENTER); this.retryButton = new Button(tr("Retry")); this.retryButton.getStyleClass().addAll("retryButton", "refreshIcon"); this.getChildren().addAll(this.failureNotification, this.failureReason, this.retryButton); }
private LibrarySidebarToggleGroup createSidebarToggleGroup() { final FilteredList<ShortcutCategoryDTO> filteredShortcutCategories = shortcutCategories .filtered(filter::filter); filteredShortcutCategories.predicateProperty().bind( Bindings.createObjectBinding(() -> filter::filter, filter.searchTermProperty())); final LibrarySidebarToggleGroup categoryView = new LibrarySidebarToggleGroup(tr("Categories"), filteredShortcutCategories); filter.selectedShortcutCategoryProperty().bind(categoryView.selectedElementProperty()); return categoryView; }
private void stopShortcut(ShortcutDTO shortcut) { shortcutRunner.stop(shortcut, e -> { final ErrorDialog errorDialog = ErrorDialog.builder() .withMessage(tr("Error")) .withException(e) .withOwner(content.getScene().getWindow()) .build(); errorDialog.showAndWait(); }); }
private void updateEngineSettings(RepositoryDTO repositoryDTO) { this.engineSettingsManager.fetchAvailableEngineSettings(repositoryDTO, engineSettings -> Platform.runLater(() -> this.engineSettings = engineSettings), e -> Platform.runLater(() -> { final ErrorDialog errorDialog = ErrorDialog.builder() .withMessage(tr("Loading engine tools failed.")) .withException(e) .withOwner(this.containersView.getContent().getScene().getWindow()) .build(); errorDialog.showAndWait(); })); }