org.eclipse.swt.SWT.getMessage()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(6.0k)|赞(0)|评价(0)|浏览(117)

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

SWT.getMessage介绍

[英]Returns the NLS'ed message for the given argument.
[中]返回给定参数的NLS消息。

代码示例

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

@Override
public void getDefaultAction(AccessibleControlEvent e) {
  String action = null;
  int childID = e.childID;
  if (childID >= 0 && childID < items.length) {
    action = SWT.getMessage ("SWT_Switch"); //$NON-NLS-1$
  }
  e.result = action;
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
public void getDefaultAction (AccessibleControlEvent e) {
  e.result = SWT.getMessage ("SWT_Press"); //$NON-NLS-1$
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

@Override
public void getDefaultAction (AccessibleControlEvent e) {
  e.result = SWT.getMessage ("SWT_Press"); //$NON-NLS-1$
}

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

@Override
public void getDefaultAction (AccessibleControlEvent e) {
  e.result = SWT.getMessage ("SWT_Press"); //$NON-NLS-1$
}

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

@Override
public void getDefaultAction (AccessibleControlEvent e) {
  e.result = SWT.getMessage ("SWT_Press"); //$NON-NLS-1$
}

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

public void getDefaultAction(AccessibleControlEvent e) {
  String action = null;
  int childID = e.childID;
  if (childID >= 0 && childID < items.length) {
    action = SWT.getMessage ("SWT_Switch"); //$NON-NLS-1$
  }
  e.result = action;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

@Override
public void getDefaultAction(AccessibleControlEvent e) {
  String action = null;
  int childID = e.childID;
  if (childID >= 0 && childID < items.length) {
    action = SWT.getMessage ("SWT_Switch"); //$NON-NLS-1$
  }
  e.result = action;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

@Override
public void getDefaultAction(AccessibleControlEvent e) {
  String action = null;
  int childID = e.childID;
  if (childID >= 0 && childID < items.length) {
    action = SWT.getMessage ("SWT_Switch"); //$NON-NLS-1$
  }
  e.result = action;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

@Override
public void getName (AccessibleEvent e) {
  e.result = isDropped () ? SWT.getMessage ("SWT_Close") : SWT.getMessage ("SWT_Open"); //$NON-NLS-1$ //$NON-NLS-2$
}
@Override

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

@Override
  public void getDefaultAction (AccessibleControlEvent e) {
    e.result = isDropped () ? SWT.getMessage ("SWT_Close") : SWT.getMessage ("SWT_Open"); //$NON-NLS-1$ //$NON-NLS-2$
  }
});

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
  public void getDefaultAction (AccessibleControlEvent e) {
    e.result = isDropped () ? SWT.getMessage ("SWT_Close") : SWT.getMessage ("SWT_Open"); //$NON-NLS-1$ //$NON-NLS-2$
  }
});

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

@Override
  public void getDefaultAction (AccessibleControlEvent e) {
    e.result = isDropped () ? SWT.getMessage ("SWT_Close") : SWT.getMessage ("SWT_Open"); //$NON-NLS-1$ //$NON-NLS-2$
  }
});

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

public void getName (AccessibleEvent e) {
 e.result = isDropped () ? SWT.getMessage ("SWT_Close") : SWT.getMessage ("SWT_Open"); //$NON-NLS-1$ //$NON-NLS-2$
}
public void getKeyboardShortcut (AccessibleEvent e) {

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
public void getName (AccessibleEvent e) {
  e.result = isDropped () ? SWT.getMessage ("SWT_Close") : SWT.getMessage ("SWT_Open"); //$NON-NLS-1$ //$NON-NLS-2$
}
@Override

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

@Override
  public void getDefaultAction (AccessibleControlEvent e) {
    e.result = isDropped () ? SWT.getMessage ("SWT_Close") : SWT.getMessage ("SWT_Open"); //$NON-NLS-1$ //$NON-NLS-2$
  }
});

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

private void createButtons() {
 Composite composite = new Composite( shell, SWT.NONE );
 composite.setLayout( new GridLayout( 0, true ) );
 GridData gridData = new GridData( SWT.RIGHT, SWT.CENTER, true, false );
 composite.setLayoutData( gridData );
 Button okButton = createButton( composite, SWT.getMessage( "SWT_OK" ), SWT.OK );
 shell.setDefaultButton( okButton );
 createButton( composite, SWT.getMessage( "SWT_Cancel" ), SWT.CANCEL );
 okButton.forceFocus();
}

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

private void createButtonArea( Composite parent ) {
 Composite composite = new Composite( parent, SWT.NONE );
 GridData layoutData = new GridData( SWT.RIGHT, SWT.CENTER, false, false, 2, 1 );
 composite.setLayoutData( layoutData );
 GridLayout layout = new GridLayout( 2, true );
 layout.marginWidth = 0;
 layout.marginHeight = 0;
 composite.setLayout( layout );
 Button okButton = createButton( composite, SWT.getMessage( "SWT_OK" ), SWT.OK );
 okButton.getShell().setDefaultButton( okButton );
 okButton.forceFocus();
 createButton( composite, SWT.getMessage( "SWT_Cancel" ), SWT.CANCEL );
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

String _getToolTip(int x, int y) {
  CTabItem item = getItem(new Point (x, y));
  if (item == null) return null;
  if (!item.showing) return null;
  if ((showClose || item.showClose) && item.closeRect.contains(x, y)) {
    return SWT.getMessage("SWT_Close"); //$NON-NLS-1$
  }
  return item.getToolTipText();
}
/**

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

String _getToolTip(int x, int y) {
  CTabItem item = getItem(new Point (x, y));
  if (item == null) return null;
  if (!item.showing) return null;
  if ((showClose || item.showClose) && item.closeRect.contains(x, y)) {
    return SWT.getMessage("SWT_Close"); //$NON-NLS-1$
  }
  return item.getToolTipText();
}
/**

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

String _getToolTip(int x, int y) {
  CTabItem item = getItem(new Point (x, y));
  if (item == null) return null;
  if (!item.showing) return null;
  if ((showClose || item.showClose) && item.closeRect.contains(x, y)) {
    return SWT.getMessage("SWT_Close"); //$NON-NLS-1$
  }
  return item.getToolTipText();
}
/**

相关文章