File tree Expand file tree Collapse file tree
app/logbook/olog/ui/src/main
java/org/phoebus/logbook/olog/ui
resources/org/phoebus/logbook/olog/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -212,6 +212,16 @@ public void copyURL() {
212212 content .putString (LogbookUIPreferences .web_client_root_URL + "/" + logEntry .getId ());
213213 Clipboard .getSystemClipboard ().setContent (content );
214214 }
215+ //Milena
216+ public void copyMarkdown () {
217+ if (logEntry .getSource () != null ){
218+ final ClipboardContent content = new ClipboardContent ();
219+ content .putString (logEntry .getSource ());
220+ Clipboard .getSystemClipboard ().setContent (content );
221+ }
222+ }
223+
224+
215225
216226 /**
217227 * Retrieves attachments from the remote service and copies them to temporary files. Attachments
Original file line number Diff line number Diff line change 77<?import javafx .scene.text.*?>
88<?import javafx .scene.web.*?>
99
10- <SplitPane dividerPositions =" 0.75" orientation =" VERTICAL" xmlns =" http://javafx.com/javafx/17.0.2-ea " xmlns : fx =" http://javafx.com/fxml/1" fx : controller =" org.phoebus.logbook.olog.ui.SingleLogEntryDisplayController" >
10+ <SplitPane dividerPositions =" 0.75" orientation =" VERTICAL" xmlns =" http://javafx.com/javafx/17.0.12 " xmlns : fx =" http://javafx.com/fxml/1" fx : controller =" org.phoebus.logbook.olog.ui.SingleLogEntryDisplayController" >
1111 <items >
1212 <VBox maxHeight =" 1.7976931348623157E308" >
1313 <children >
101101 <Insets bottom =" 5.0" left =" 5.0" top =" 2.0" />
102102 </padding >
103103 </GridPane >
104+ <HBox alignment =" CENTER_RIGHT" spacing =" 10" GridPane.columnIndex=" 1" GridPane.halignment=" RIGHT" >
105+ <Button fx : id =" " contentDisplay =" RIGHT" mnemonicParsing =" false" onAction =" #copyMarkdown" text =" %CopyMarkdown" >
106+ <GridPane .margin>
107+ <Insets bottom =" 3.0" left =" 3.0" right =" 3.0" top =" 3.0" />
108+ </GridPane .margin>
109+ </Button >
104110
105- <Button fx : id =" copyURLButton" contentDisplay =" RIGHT" mnemonicParsing =" false" onAction =" #copyURL" text =" %CopyURL" GridPane.columnIndex= " 1 " GridPane.halignment= " RIGHT " >
106- <GridPane .margin>
107- <Insets bottom =" 3.0" left =" 3.0" right =" 3.0" top =" 3.0" />
108- </GridPane .margin>
109- </Button >
111+ <Button fx : id =" copyURLButton" contentDisplay =" RIGHT" mnemonicParsing =" false" onAction =" #copyURL" text =" %CopyURL" >
112+ <GridPane .margin>
113+ <Insets bottom =" 3.0" left =" 3.0" right =" 3.0" top =" 3.0" />
114+ </GridPane .margin>
115+ </Button >
110116
117+ </HBox >
111118 </children >
112119 </GridPane >
113120
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ CloseRequestHeader=Log entry not saved. Do you wish to close?
3030CloseRequestButtonContinue =Continue Editing
3131CloseRequestButtonDiscard =Close
3232CreateLogbookEntry =Create Log Book Entry
33+ CopyMarkdown =Copy Markdown
3334CopyURL =Copy URL
3435CSSWindow =CSS Window
3536CurrentDate =Current Date
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ CloseRequestHeader=L’entrée de journal n’est pas enregistrée. Voulez-vous
3030CloseRequestButtonContinue =Continuer l’édition
3131CloseRequestButtonDiscard =Fermer
3232CreateLogbookEntry =Créer une entrée dans le journal de bord
33+ CopyMarkdown =Copier le Markdown
3334CopyURL =Copier l’URL
3435CSSWindow =Fenêtre CSS
3536CurrentDate =Date actuelle
You can’t perform that action at this time.
0 commit comments