Img img = (Img) editablePart;
deletePartB(parent, DbkMsg.deleteMedia.lead(), img);
insertMediaB(parent, DbkMsg.insertMedia.lead(), img);
+ insertParagraphB(parent, DbkMsg.insertParagraph.lead(), img);
} else if (editablePart instanceof DocBookSectionTitle) {
DocBookSectionTitle sectionTitle = (DocBookSectionTitle) editablePart;
}
+ protected void insertParagraphB(Composite parent, String msg, SectionPart sectionPart) {
+ Label insertMediaB = new Label(parent, SWT.NONE);
+ insertMediaB.setText(msg);
+ insertMediaB.addMouseListener((MouseDown) (e) -> {
+ textViewer.addParagraph(sectionPart, null);
+ hide();
+ });
+ }
+
protected void deletePartB(Composite parent, String msg, SectionPart sectionPart) {
Label deleteB = new Label(shell, SWT.NONE);
deleteB.setText(msg);