code: public static String getContextMenuEntries(List<String> barItems) {
  
          String result = "";
          if (barItems.contains("link")) {
              result += translateButton("link");
          }
          if (barItems.contains("downloadgallery")) {
              result += " " + translateButton("downloadgallery");
          }
          if (barItems.contains("imagegallery")) {
              result += " " + translateButton("imagegallery");
          }
          if (barItems.contains("table")) {
              result += " inserttable | cell row column deletetable";
          }
          return result.trim();
      }
docs: Returns the context menu entries according to the configured tool-bar items.<p>
  
  @param barItems the tool-bar items
  
  @return the context menu entries