org.eclipse.jface.window.Window.getDefaultOrientation()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(178)

本文整理了Java中org.eclipse.jface.window.Window.getDefaultOrientation()方法的一些代码示例,展示了Window.getDefaultOrientation()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.getDefaultOrientation()方法的具体详情如下:
包路径:org.eclipse.jface.window.Window
类名称:Window
方法名:getDefaultOrientation

Window.getDefaultOrientation介绍

[英]Gets the default orientation for windows. If it is not set the default value will be unspecified (SWT#NONE).
[中]获取windows的默认方向。如果未设置,默认值将未指定(SWT#无)。

代码示例

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

@Override
public int getOrientation(){
  //By default use the orientation in Window
  return Window.getDefaultOrientation();
}

代码示例来源:origin: org.eclipse/org.eclipse.wst.server.ui

public int getOrientation() {
    return Window.getDefaultOrientation();
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

/**
 * 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);
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

/**
 * 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());
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface

/**
 * 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());
  }
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface

/**
 * 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());
  }
}

代码示例来源:origin: org.eclipse/org.eclipse.compare

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);

代码示例来源:origin: org.eclipse.platform/org.eclipse.compare

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);

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

quickAccessContents.createHintText(shell, Window.getDefaultOrientation());
table = quickAccessContents.createTable(shell, Window.getDefaultOrientation());
txtQuickAccess.addMouseListener(new MouseAdapter() {
  @Override

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

@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;
}

相关文章