@Override public int getOrientation(){ //By default use the orientation in Window return Window.getDefaultOrientation(); }
public int getOrientation() { return Window.getDefaultOrientation(); } }
/** * Returns the text for a history item. This may be truncated to fit * within the MAX_TEXT_LENGTH. */ private String calcText(int index, EditorHistoryItem item) { // IMPORTANT: avoid accessing the item's input since // this can require activating plugins. // Instead, ask the item for the info, which can // consult its memento if it is not restored yet. return calcText(index, item.getName(), item.getToolTipText(), Window .getDefaultOrientation() == SWT.RIGHT_TO_LEFT); }
/** * Creates a window instance, whose shell will be created under the given * parent shell. Note that the window will have no visual representation * until it is told to open. By default, <code>open</code> does not block. * * @param parentShell * the parent shell, or <code>null</code> to create a top-level * shell. Try passing "(Shell)null" to this method instead of "null" * if your compiler complains about an ambiguity error. * @see #setBlockOnOpen * @see #getDefaultOrientation() */ protected Window(Shell parentShell) { this(new SameShellProvider(parentShell)); if(parentShell == null) { setShellStyle(getShellStyle() | getDefaultOrientation()); } }
/** * Creates a window instance, whose shell will be created under the given * parent shell. Note that the window will have no visual representation * until it is told to open. By default, <code>open</code> does not block. * * @param parentShell * the parent shell, or <code>null</code> to create a top-level * shell. Try passing "(Shell)null" to this method instead of "null" * if your compiler complains about an ambiguity error. * @see #setBlockOnOpen * @see #getDefaultOrientation() */ protected Window(Shell parentShell) { this(new SameShellProvider(parentShell)); if(parentShell == null) { setShellStyle(getShellStyle() | getDefaultOrientation()); } }
/** * Creates a window instance, whose shell will be created under the given * parent shell. Note that the window will have no visual representation * until it is told to open. By default, <code>open</code> does not block. * * @param parentShell * the parent shell, or <code>null</code> to create a top-level * shell. Try passing "(Shell)null" to this method instead of "null" * if your compiler complains about an ambiguity error. * @see #setBlockOnOpen * @see #getDefaultOrientation() */ protected Window(Shell parentShell) { this(new SameShellProvider(parentShell)); if(parentShell == null) { setShellStyle(getShellStyle() | getDefaultOrientation()); } }
fAncestorLabel= new CLabel(fComposite, style | Window.getDefaultOrientation()); fLeftLabel= new CLabel(fComposite, style | Window.getDefaultOrientation()); new Resizer(fLeftLabel, VERTICAL); new Resizer(fDirectionLabel, HORIZONTAL | VERTICAL); fRightLabel= new CLabel(fComposite, style | Window.getDefaultOrientation()); new Resizer(fRightLabel, VERTICAL);
fAncestorLabel= new CLabel(fComposite, style | Window.getDefaultOrientation()); fLeftLabel= new CLabel(fComposite, style | Window.getDefaultOrientation()); if (Policy.debugContentMergeViewer) { logTrace("fLeftLabel initialized"); //$NON-NLS-1$ new Resizer(fDirectionLabel, HORIZONTAL | VERTICAL); fRightLabel= new CLabel(fComposite, style | Window.getDefaultOrientation()); new Resizer(fRightLabel, VERTICAL);
quickAccessContents.createHintText(shell, Window.getDefaultOrientation()); table = quickAccessContents.createTable(shell, Window.getDefaultOrientation()); txtQuickAccess.addMouseListener(new MouseAdapter() { @Override
@Override public IProgressMonitor getBundleProgressMonitor() { if (monitor == null) { Composite parent = new Composite(getSplash(), Window.getDefaultOrientation()); Point size = getSplash().getSize(); parent.setBounds(new Rectangle(0,0,size.x,size.y)); monitor = new AbsolutePositionProgressMonitorPart(parent); monitor.setSize(size); if (progressRect != null) monitor.getProgressIndicator().setBounds(progressRect); else monitor.getProgressIndicator().setVisible(false); if (messageRect != null) monitor.getProgressText().setBounds(messageRect); else monitor.getProgressText().setVisible(false); if (foreground != null) monitor.getProgressText().setForeground(foreground); monitor.setBackgroundMode(SWT.INHERIT_FORCE); monitor.setBackgroundImage(getSplash().getShell() .getBackgroundImage()); } return monitor; }