Change contextmenu content.
@param {object} popupTableUtils - PopupTableUtils instance for managing contextmenu of table
@private
774605
function _changeContent(popupTableUtils) {
  const POPUP_CONTENT = [
    `<button type="button" class="te-table-add-row">${i18n.get('Add row')}</button>`,
    `<button type="button" class="te-table-add-col">${i18n.get('Add col')}</button>`,
    `<button type="button" class="te-table-remove-row">${i18n.get('Remove row')}</button>`,
    `<button type="button" class="te-table-remove-col">${i18n.get('Remove col')}</button>`,
    '<hr/>',
    `<button type="button" class="te-table-merge">${i18n.get('Merge cells')}</button>`,
    `<button type="button" class="te-table-unmerge">${i18n.get('Unmerge cells')}</button>`,
    '<hr/>',
    `<button type="button" class="te-table-col-align-left">${i18n.get('Align left')}</button>`,
    `<button type="button" class="te-table-col-align-center">${i18n.get('Align center')}</button>`,
    `<button type="button" class="te-table-col-align-right">${i18n.get('Align right')}</button>`,
    '<hr/>',
    `<button type="button" class="te-table-remove">${i18n.get('Remove table')}</button>`
  ].join('');
  const $popupContent = $(POPUP_CONTENT);

  popupTableUtils.setContent($popupContent);
}
1319302
@SuppressWarnings("unchecked")
    public static <T> void defaultHandleContextMenuForMultiselect(
        Table table,
        CmsContextMenu menu,
        ItemClickEvent event,
        List<I_CmsSimpleContextMenuEntry<Collection<T>>> entries) {

        if (!event.isCtrlKey() && !event.isShiftKey()) {
            if (event.getButton().equals(MouseButton.RIGHT)) {
                Collection<T> oldValue = ((Collection<T>)table.getValue());
                if (oldValue.isEmpty() || !oldValue.contains(event.getItemId())) {
                    table.setValue(new HashSet<Object>(Arrays.asList(event.getItemId())));
                }
                Collection<T> selection = (Collection<T>)table.getValue();
                menu.setEntries(entries, selection);
                menu.openForTable(event, table);
            }
        }

    }
1148861
function resetAndCompileContents(contents, newOptions) {
  input.setValue(contents);
  updateLocation(contents);
  options.setFromObject(newOptions);
  compileContents(contents);
}
1252115
public void insertContextMenu(List<CmsContextMenuEntryBean> menuBeans, CmsUUID structureId) {

        List<I_CmsContextMenuEntry> menuEntries = transformEntries(menuBeans, structureId);
        m_editor.getContext().showMenu(menuEntries);
    }
490120
function () {
			if (this._bOpenAsContextMenu && this._oContextMenuPosition.x === null && this._oContextMenuPosition.y === null) {
				this._bOpenAsContextMenu = false;
			}

			// fires the open event after popover is opened
			this.getPopover().attachAfterOpen(this._handleAfterOpen, this);

			this.getPopover().attachBeforeClose(this._handleBeforeClose, this);

			//place the Popover and get the target DIV
			this._oTarget = this._placeContextMenu(this._oTarget, this._bOpenAsContextMenu);

			// set the PopOver visible
			this.getPopover().setVisible(true);
			this.bOpen = true;
			this.bOpenNew = false;
		}
152712
def set_popup_menu(self, menu):
        ''''''
        self.popup_menu = menu
        self.in_queue.put(MPImagePopupMenu(menu))
1091816
function disableContextMenu() {
    // for now just images.
    Array.prototype.forEach.call(document.getElementsByTagName("img"), function(img) {
      img.addEventListener('contextmenu', preventEvent, false);
    });
  }
479431
function PancakesHapiPlugin(opts) {
    this.pancakes   = opts.pluginOptions.pancakes;
    this.jangular   = opts.pluginOptions.jangular;
}
124216
protected void configureContext(Context context,
			ServletContextInitializer[] initializers) {
		TomcatStarter starter = new TomcatStarter(initializers);
		if (context instanceof TomcatEmbeddedContext) {
			TomcatEmbeddedContext embeddedContext = (TomcatEmbeddedContext) context;
			embeddedContext.setStarter(starter);
			embeddedContext.setFailCtxIfServletStartFails(true);
		}
		context.addServletContainerInitializer(starter, NO_CLASSES);
		for (LifecycleListener lifecycleListener : this.contextLifecycleListeners) {
			context.addLifecycleListener(lifecycleListener);
		}
		for (Valve valve : this.contextValves) {
			context.getPipeline().addValve(valve);
		}
		for (ErrorPage errorPage : getErrorPages()) {
			new TomcatErrorPage(errorPage).addToContext(context);
		}
		for (MimeMappings.Mapping mapping : getMimeMappings()) {
			context.addMimeMapping(mapping.getExtension(), mapping.getMimeType());
		}
		configureSession(context);
		new DisableReferenceClearingContextCustomizer().customize(context);
		for (TomcatContextCustomizer customizer : this.tomcatContextCustomizers) {
			customizer.customize(context);
		}
	}
622355
public void insertContextMenu(List<CmsContextMenuEntryBean> menuBeans, CmsUUID structureId) {

        List<I_CmsContextMenuEntry> menuEntries = transformEntries(menuBeans, structureId);
        m_contextButton.showMenu(menuEntries);
    }
975193
function (event) {
            if (event.event.name == "ContextualTargetFound") {
                var templateCtxt = event.event.templateCtxt;
                // NO NEED TO REFRESH -> displaying the context menu does it already
                this._selectFromTemplateCtxt(templateCtxt);
            }
        }
1107388
private void updateMenuIcon() {
        Icon            frameIcon = frame.getFrameIcon();
        SeaGlassContext context   = getContext(this);

        if (frameIcon != null) {
            Dimension maxSize   = (Dimension) context.getStyle().get(context, "InternalFrameTitlePane.maxFrameIconSize");
            int       maxWidth  = 16;
            int       maxHeight = 16;

            if (maxSize != null) {
                maxWidth  = maxSize.width;
                maxHeight = maxSize.height;
            }

            if ((frameIcon.getIconWidth() > maxWidth || frameIcon.getIconHeight() > maxHeight) && (frameIcon instanceof ImageIcon)) {
                frameIcon = new ImageIcon(((ImageIcon) frameIcon).getImage().getScaledInstance(maxWidth, maxHeight, Image.SCALE_SMOOTH));
            }
        }

        context.dispose();
        menuButton.setIcon(frameIcon);
    }
779166
function(oTable) {
			if (oTable._$colResize) {
				oTable._$colResize.toggleClass("sapUiTableColRszActive", false);
				oTable._$colResize = null;
			}
			oTable._iColumnResizeStart = null;
			oTable._bIsColumnResizerMoving = false;
			oTable.$().toggleClass("sapUiTableResizing", false);
			oTable._enableTextSelection();

			var $Document = jQuery(document);
			$Document.unbind("touchmove.sapUiTableColumnResize");
			$Document.unbind("touchend.sapUiTableColumnResize");
			$Document.unbind("mousemove.sapUiTableColumnResize");
			$Document.unbind("mouseup.sapUiTableColumnResize");
		}
861527
function _setContextMenuItemsVisible(enabled, items) {
        items.forEach(function (item) {
            CommandManager.get(item).setEnabled(enabled);
        });
    }
1140401
protected void updateStackingContexts()
    {
        if (parent != null)
        {
            if (parent.formsStackingContext())
                stackingParent = parent;
            else
                stackingParent = parent.getStackingParent();
        }
    }
836488
public void setAsContextMenuOf(AbstractClientConnector component) {

        if (component instanceof Table) {
            setAsTableContextMenu((Table)component);
        } else if (component instanceof Tree) {
            setAsTreeContextMenu((Tree)component);
        } else {
            super.extend(component);
        }
    }
1323345
def contextMenuEvent(self, event):
        """"""
        state = self.has_selected_text()
        self.copy_without_prompts_action.setEnabled(state)
        ShellBaseWidget.contextMenuEvent(self, event)