@Override void setOrientation (boolean create) { super.setOrientation (create); if (!create) { if (menuBar != null) menuBar._setOrientation (style & (SWT.RIGHT_TO_LEFT | SWT.LEFT_TO_RIGHT)); } }
@Override void setOrientation (boolean create) { super.setOrientation (create); if (!create) { if (menuBar != null) menuBar._setOrientation (style & (SWT.RIGHT_TO_LEFT | SWT.LEFT_TO_RIGHT)); } }
@Override void setOrientation (boolean create) { super.setOrientation (create); if (!create) { if (menuBar != null) menuBar._setOrientation (style & (SWT.RIGHT_TO_LEFT | SWT.LEFT_TO_RIGHT)); } }
@Override public void setOrientation (int orientation) { super.setOrientation (orientation); if (menus != null) { for (int i=0; i<menus.length; i++) { Menu menu = menus [i]; if (menu != null && !menu.isDisposed () && (menu.getStyle () & SWT.POP_UP) != 0) { menu._setOrientation (menu.getOrientation ()); } } } }
/** * Sets the orientation of the receiver, which must be one * of the constants <code>SWT.LEFT_TO_RIGHT</code> or <code>SWT.RIGHT_TO_LEFT</code>. * * @param orientation new orientation style * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @since 2.1.2 */ @Override public void setOrientation(int orientation) { int oldOrientation = getOrientation(); super.setOrientation(orientation); int newOrientation = getOrientation(); if (oldOrientation != newOrientation) { resetBidiData(); } } /**
/** * Sets the orientation of the receiver, which must be one * of the constants <code>SWT.LEFT_TO_RIGHT</code> or <code>SWT.RIGHT_TO_LEFT</code>. * * @param orientation new orientation style * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @since 2.1.2 */ @Override public void setOrientation(int orientation) { int oldOrientation = getOrientation(); super.setOrientation(orientation); int newOrientation = getOrientation(); if (oldOrientation != newOrientation) { resetBidiData(); } } /**
/** * Sets the orientation of the receiver, which must be one * of the constants <code>SWT.LEFT_TO_RIGHT</code> or <code>SWT.RIGHT_TO_LEFT</code>. * * @param orientation new orientation style * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @since 2.1.2 */ @Override public void setOrientation(int orientation) { int oldOrientation = getOrientation(); super.setOrientation(orientation); int newOrientation = getOrientation(); if (oldOrientation != newOrientation) { resetBidiData(); } } /**
/** * Sets the orientation of the receiver, which must be one * of the constants <code>SWT.LEFT_TO_RIGHT</code> or <code>SWT.RIGHT_TO_LEFT</code>. * * @param orientation new orientation style * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @since 2.1.2 */ @Override public void setOrientation(int orientation) { int oldOrientation = getOrientation(); super.setOrientation(orientation); int newOrientation = getOrientation(); if (oldOrientation != newOrientation) { resetBidiData(); } } /**
/** * Sets the orientation of the receiver, which must be one * of the constants <code>SWT.LEFT_TO_RIGHT</code> or <code>SWT.RIGHT_TO_LEFT</code>. * * @param orientation new orientation style * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @since 2.1.2 */ public void setOrientation(int orientation) { int oldOrientation = getOrientation(); super.setOrientation(orientation); int newOrientation = getOrientation(); if (oldOrientation != newOrientation) { caretDirection = SWT.NULL; resetCache(0, content.getLineCount()); setCaretLocation(); keyActionMap.clear(); createKeyBindings(); super.redraw(); } } /**