public void addDragSupport(int operations, Transfer[] transferTypes, DragSourceListener listener) { titleRegion.addDragSupport(operations, transferTypes, listener); }
public void addDragSupport(int operations, Transfer[] transferTypes, DragSourceListener listener) { dragSupport = true; dragOperations = operations; dragTransferTypes = transferTypes; dragListener = listener; dragSource = addDragSupport(titleLabel, operations, transferTypes, listener); addDragSupport(this, operations, transferTypes, listener); if (busyLabel != null) addDragSupport(busyLabel, operations, transferTypes, listener); if (menuHyperlink != null) addDragSupport(menuHyperlink, operations, transferTypes, listener); }
public void addDragSupport(int operations, Transfer[] transferTypes, DragSourceListener listener) { titleRegion.addDragSupport(operations, transferTypes, listener); }
public void addDragSupport(int operations, Transfer[] transferTypes, DragSourceListener listener) { dragSupport = true; dragOperations = operations; dragTransferTypes = transferTypes; dragListener = listener; dragSource = addDragSupport(titleLabel, operations, transferTypes, listener); addDragSupport(this, operations, transferTypes, listener); if (busyLabel != null) addDragSupport(busyLabel, operations, transferTypes, listener); if (menuHyperlink != null) addDragSupport(menuHyperlink, operations, transferTypes, listener); }
private void createMenuHyperlink() { menuHyperlink = new MenuHyperlink(this, SWT.NULL); menuHyperlink.setBackground(getColor(FormHeading.COLOR_BASE_BG)); menuHyperlink.setDecorationColor(getForeground()); menuHyperlink.setHoverDecorationColor(getDisplay().getSystemColor(SWT.COLOR_LIST_FOREGROUND)); HoverListener listener = new HoverListener(); menuHyperlink.addMouseTrackListener(listener); menuHyperlink.addMouseMoveListener(listener); if (dragSupport) addDragSupport(menuHyperlink, dragOperations, dragTransferTypes, dragListener); }
private void createMenuHyperlink() { menuHyperlink = new MenuHyperlink(this, SWT.NULL); menuHyperlink.setBackground(getColor(FormHeading.COLOR_BASE_BG)); menuHyperlink.setDecorationColor(getForeground()); menuHyperlink.setHoverDecorationColor(getDisplay().getSystemColor(SWT.COLOR_LIST_FOREGROUND)); HoverListener listener = new HoverListener(); menuHyperlink.addMouseTrackListener(listener); menuHyperlink.addMouseMoveListener(listener); if (dragSupport) addDragSupport(menuHyperlink, dragOperations, dragTransferTypes, dragListener); }
private void ensureBusyLabelExists() { if (busyLabel == null) { busyLabel = new BusyIndicator(this, SWT.NULL); busyLabel.setBackground(getColor(FormHeading.COLOR_BASE_BG)); HoverListener listener = new HoverListener(); busyLabel.addMouseTrackListener(listener); busyLabel.addMouseMoveListener(listener); if (menuManager != null) busyLabel.setMenu(menuManager.createContextMenu(this)); if (dragSupport) addDragSupport(busyLabel, dragOperations, dragTransferTypes, dragListener); IMessageToolTipManager mng = ((FormHeading) getParent()) .getMessageToolTipManager(); if (mng != null) mng.createToolTip(busyLabel, true); } }
private void ensureBusyLabelExists() { if (busyLabel == null) { busyLabel = new BusyIndicator(this, SWT.NULL); busyLabel.setBackground(getColor(FormHeading.COLOR_BASE_BG)); HoverListener listener = new HoverListener(); busyLabel.addMouseTrackListener(listener); busyLabel.addMouseMoveListener(listener); if (menuManager != null) busyLabel.setMenu(menuManager.createContextMenu(this)); if (dragSupport) addDragSupport(busyLabel, dragOperations, dragTransferTypes, dragListener); IMessageToolTipManager mng = ((FormHeading) getParent()) .getMessageToolTipManager(); if (mng != null) mng.createToolTip(busyLabel, true); } }