使更多标签支持双击复制 (#3673)
This commit is contained in:
@@ -181,6 +181,7 @@ public final class JavaInstallPage extends WizardSinglePage {
|
|||||||
pane.setLeft(new Label(name));
|
pane.setLeft(new Label(name));
|
||||||
|
|
||||||
Label valueLabel = FXUtils.truncatedLabel(value, 60);
|
Label valueLabel = FXUtils.truncatedLabel(value, 60);
|
||||||
|
FXUtils.copyOnDoubleClick(valueLabel);
|
||||||
BorderPane.setAlignment(valueLabel, Pos.CENTER_RIGHT);
|
BorderPane.setAlignment(valueLabel, Pos.CENTER_RIGHT);
|
||||||
pane.setCenter(valueLabel);
|
pane.setCenter(valueLabel);
|
||||||
|
|
||||||
|
|||||||
@@ -398,6 +398,7 @@ class ModListPageSkin extends SkinBase<ModListPage> {
|
|||||||
setHeading(titleContainer);
|
setHeading(titleContainer);
|
||||||
|
|
||||||
Label description = new Label(modInfo.getModInfo().getDescription().toString());
|
Label description = new Label(modInfo.getModInfo().getDescription().toString());
|
||||||
|
FXUtils.copyOnDoubleClick(description);
|
||||||
setBody(description);
|
setBody(description);
|
||||||
|
|
||||||
if (StringUtils.isNotBlank(modInfo.getModInfo().getId())) {
|
if (StringUtils.isNotBlank(modInfo.getModInfo().getId())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user