• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java LanguageChoice类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.pentaho.di.i18n.LanguageChoice的典型用法代码示例。如果您正苦于以下问题:Java LanguageChoice类的具体用法?Java LanguageChoice怎么用?Java LanguageChoice使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



LanguageChoice类属于org.pentaho.di.i18n包,在下文中一共展示了LanguageChoice类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getAlternativeTranslation

import org.pentaho.di.i18n.LanguageChoice; //导入依赖的package包/类
/**
    * 
    * @param input
    * @param localizedMap
    * @return
    */
private String getAlternativeTranslation(String input, Map<String, String> localizedMap) {
	
	if (Const.isEmpty(input)) {
		return null;
	}
	
	if (input.startsWith("i18n")) {
		return getCodedTranslation(input);
	} else {
		String defLocale = LanguageChoice.getInstance().getDefaultLocale().toString().toLowerCase();
		String alt = localizedMap.get(defLocale);
		if (!Const.isEmpty(alt)) {
			return alt;
		}
		String failoverLocale = LanguageChoice.getInstance().getFailoverLocale().toString().toLowerCase();
		alt = localizedMap.get(failoverLocale);
		if (!Const.isEmpty(alt)) {
			return alt;
		}
		// Nothing found? 
		// Return the original!
		//
		return input;
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:32,代码来源:BasePluginType.java


示例2: getAlternativeTranslation

import org.pentaho.di.i18n.LanguageChoice; //导入依赖的package包/类
/**
 *
 * @param input
 * @param localizedMap
 * @return
 */
protected String getAlternativeTranslation( String input, Map<String, String> localizedMap ) {

  if ( Utils.isEmpty( input ) ) {
    return null;
  }

  if ( input.startsWith( "i18n" ) ) {
    return getCodedTranslation( input );
  } else {
    String defLocale = LanguageChoice.getInstance().getDefaultLocale().toString().toLowerCase();
    String alt = localizedMap.get( defLocale );
    if ( !Utils.isEmpty( alt ) ) {
      return alt;
    }
    String failoverLocale = LanguageChoice.getInstance().getFailoverLocale().toString().toLowerCase();
    alt = localizedMap.get( failoverLocale );
    if ( !Utils.isEmpty( alt ) ) {
      return alt;
    }
    // Nothing found?
    // Return the original!
    //
    return input;
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:32,代码来源:BasePluginType.java


示例3: getLocale

import org.pentaho.di.i18n.LanguageChoice; //导入依赖的package包/类
/**
 * Gets the session locale from the http request. If no locale is defined,
 * as fallback, the default locale will be used instead.
 *
 * @param request - The http request.
 *
 * @return the session locale.
 */
private String getLocale( HttpServletRequest request ) {
  // set the locale from PDI
  Locale defaultLocale = LanguageChoice.getInstance().getDefaultLocale();
  if ( defaultLocale == null ) {
    defaultLocale = Locale.getDefault();
  }

  String locale = request.getParameter( LOCALE );
  if ( StringUtils.isEmpty( locale ) ) {
    locale = defaultLocale.toString();
  }

  return locale;
}
 
开发者ID:pentaho,项目名称:pentaho-osgi-bundles,代码行数:23,代码来源:WebContextServlet.java


示例4: getCategory

import org.pentaho.di.i18n.LanguageChoice; //导入依赖的package包/类
public String getCategory()
{
	return getCategory(LanguageChoice.getInstance().getDefaultLocale().toString().toLowerCase());
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:5,代码来源:JobPlugin.java


示例5: getDescription

import org.pentaho.di.i18n.LanguageChoice; //导入依赖的package包/类
@Override
public String getDescription()
{
	return getDescription(LanguageChoice.getInstance().getDefaultLocale().toString().toLowerCase());
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:6,代码来源:JobPlugin.java


示例6: getTooltip

import org.pentaho.di.i18n.LanguageChoice; //导入依赖的package包/类
@Override
public String getTooltip()
{
	return getTooltip(LanguageChoice.getInstance().getDefaultLocale().toString().toLowerCase());
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:6,代码来源:JobPlugin.java


示例7: findStepPluginWithDescription

import org.pentaho.di.i18n.LanguageChoice; //导入依赖的package包/类
public StepPlugin findStepPluginWithDescription(String description)
{
    return findStepPluginWithDescription(description, LanguageChoice.getInstance().getDefaultLocale().toString().toLowerCase());
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:5,代码来源:StepLoader.java


示例8: ok

import org.pentaho.di.i18n.LanguageChoice; //导入依赖的package包/类
private void ok()
{
	props.setFixedFont(fixedFontData);
	props.setGraphFont(graphFontData);
	props.setNoteFont(noteFontData);
	props.setBackgroundRGB(backgroundRGB);
	props.setGraphColorRGB(graphColorRGB);
	props.setTabColorRGB(tabColorRGB);
	props.setIconSize(Const.toInt(wIconsize.getText(), props.getIconSize()));
	props.setLineWidth(Const.toInt(wLineWidth.getText(), props.getLineWidth()));
	props.setShadowSize(Const.toInt(wShadowSize.getText(), props.getShadowSize()));
	props.setMiddlePct(Const.toInt(wMiddlePct.getText(), props.getMiddlePct()));
	props.setCanvasGridSize(Const.toInt(wGridSize.getText(), 1));

	props.setDefaultPreviewSize(Const.toInt(wDefaultPreview.getText(), props.getDefaultPreviewSize()));

	props.setMaxNrLinesInLog(Const.toInt(wMaxNrLogLines.getText(), Const.MAX_NR_LOG_LINES));
	props.setMaxNrLinesInHistory(Const.toInt(wMaxNrHistLines.getText(), Const.MAX_NR_HISTORY_LINES));
	props.setMaxUndo(Const.toInt(wMaxUndo.getText(), props.getMaxUndo()));

	props.setShowTips(wShowTips.getSelection());
	props.setShowWelcomePageOnStartup(wShowWelcome.getSelection());
	props.setUseDBCache(wUseCache.getSelection());
	props.setOpenLastFile(wOpenLast.getSelection());
	props.setAutoSave(wAutoSave.getSelection());
	props.setOnlyActiveFileShownInTree(wOnlyActiveFile.getSelection());
	props.setOnlyUsedConnectionsSavedToXML(wDBConnXML.getSelection());
	props.setAskAboutReplacingDatabaseConnections(wAskReplaceDB.getSelection());
	props.setReplaceDatabaseConnections(wReplaceDB.getSelection());
	props.setSaveConfirmation(wSaveConf.getSelection());
	props.setAutoSplit(wAutoSplit.getSelection());
	props.setShowCopyOrDistributeWarning(wCopyDistrib.getSelection());
	props.setRepositoriesDialogAtStartupShown(wShowRep.getSelection());
	props.setAntiAliasingEnabled(wAntiAlias.getSelection());
	props.setExitWarningShown(wExitWarning.getSelection());
	props.setOSLookShown(wOriginalLook.getSelection());
	props.setBrandingActive(wBranding.getSelection());
	props.setShowToolTips(tooltipBtn.getSelection());
   props.setAutoCollapseCoreObjectsTree(autoCollapseBtn.getSelection());
	props.setShowingHelpToolTips(helptipBtn.getSelection());

	int defaultLocaleIndex = wDefaultLocale.getSelectionIndex();
	if (defaultLocaleIndex < 0 || defaultLocaleIndex >= GlobalMessages.localeCodes.length)
	{
		// Code hardening, when the combo-box ever gets in a strange state,
		// use the first language as default (should be English)
		defaultLocaleIndex = 0;
	}
	int failoverLocaleIndex = wFailoverLocale.getSelectionIndex();
	if (failoverLocaleIndex < 0 || failoverLocaleIndex >= GlobalMessages.localeCodes.length)
	{
		failoverLocaleIndex = 0;
	}

	LanguageChoice.getInstance().setDefaultLocale(
			new Locale(GlobalMessages.localeCodes[defaultLocaleIndex]));
	LanguageChoice.getInstance().setFailoverLocale(
			new Locale(GlobalMessages.localeCodes[failoverLocaleIndex]));
	LanguageChoice.getInstance().saveSettings();

	props.saveProps();

	dispose();
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:65,代码来源:EnterOptionsDialog.java


示例9: main

import org.pentaho.di.i18n.LanguageChoice; //导入依赖的package包/类
public static void main(String[] args) throws Exception {
	List<String> directories = new ArrayList<String>();
	directories.add("src-core");
	directories.add("src");
	directories.add("src-ui");

	List<String> filesToAvoid = new ArrayList<String>();
	filesToAvoid.add("MessagesSourceCrawler.java");
	filesToAvoid.add("KeyOccurence.java");
	filesToAvoid.add("TransLator.java");
	filesToAvoid.add("MenuHelper.java");
	filesToAvoid.add("Messages.java");
	filesToAvoid.add("XulMessages.java");
	filesToAvoid.add("AnnotatedStepsConfigManager.java");
	filesToAvoid.add("AnnotatedJobConfigManager.java");
	filesToAvoid.add("JobEntryValidatorUtils.java");
	filesToAvoid.add("Const.java");
	filesToAvoid.add("XulHelper.java");

	List<SourceCrawlerXMLFolder> xmlFolders = new ArrayList<SourceCrawlerXMLFolder>();
	SourceCrawlerXMLFolder xmlFolder = new SourceCrawlerXMLFolder("ui",
			".*\\.xul$", "%");
	xmlFolder.getElements().add(
			new SourceCrawlerXMLElement("menu", null, "label"));
	xmlFolder.getElements().add(
			new SourceCrawlerXMLElement("menuitem", null, "label"));
	xmlFolder.getElements().add(
			new SourceCrawlerXMLElement("toolbar", null, "label"));
	xmlFolder.getElements().add(
			new SourceCrawlerXMLElement("toolbarbutton", null, "label"));
	xmlFolders.add(xmlFolder);

	MessagesSourceCrawler crawler = new MessagesSourceCrawler(directories,
			null, xmlFolders);
	crawler.setFilesToAvoid(filesToAvoid);
	crawler.crawl();
	int mis = 0;
	LanguageChoice.getInstance().setDefaultLocale(Locale.US);
	for (KeyOccurrence occ : crawler.getOccurrences()) {

		// Try to get a value attached to each of these >6k occurrences...
		//
		String translation = BaseMessages.getString(occ
				.getMessagesPackage(), occ.getKey());

		if (translation.startsWith("!")) {
			mis++;
			System.out.println(mis + "\t" + occ.getKey() + "\t"
					+ occ.getRow() + "\t" + occ.getMessagesPackage() + "\t"
					+ occ.getFileObject().getName().getBaseName() + "\t"
					+ occ.getFileObject().getParent());
		}
	}
	System.out.println("-------------------------------------------------");
	System.out.println("Found " + crawler.getOccurrences().size());
	System.out.println("-------------------------------------------------");

	List<String> packageNames = crawler.getMessagesPackagesList();

	System.out.println("Packages found : " + packageNames.size());
	/*
	 * for (String packageName : packageNames) {
	 * System.out.println("["+packageName+"]"); }
	 */
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:66,代码来源:MessagesSourceCrawler.java


示例10: ok

import org.pentaho.di.i18n.LanguageChoice; //导入依赖的package包/类
private void ok()
{
	props.setFixedFont(fixedFontData);
	props.setGraphFont(graphFontData);
	props.setNoteFont(noteFontData);
	props.setBackgroundRGB(backgroundRGB);
	props.setGraphColorRGB(graphColorRGB);
	props.setTabColorRGB(tabColorRGB);
	props.setIconSize(Const.toInt(wIconsize.getText(), props.getIconSize()));
	props.setLineWidth(Const.toInt(wLineWidth.getText(), props.getLineWidth()));
	props.setShadowSize(Const.toInt(wShadowSize.getText(), props.getShadowSize()));
	props.setMiddlePct(Const.toInt(wMiddlePct.getText(), props.getMiddlePct()));
	props.setCanvasGridSize(Const.toInt(wGridSize.getText(), 1));

	props.setDefaultPreviewSize(Const.toInt(wDefaultPreview.getText(), props.getDefaultPreviewSize()));

	props.setMaxNrLinesInLog(Const.toInt(wMaxNrLogLines.getText(), Const.MAX_NR_LOG_LINES));
	props.setMaxLogLineTimeoutMinutes(Const.toInt(wMaxLogLineTimeout.getText(), Const.MAX_LOG_LINE_TIMEOUT_MINUTES));
	props.setMaxNrLinesInHistory(Const.toInt(wMaxNrHistLines.getText(), Const.MAX_NR_HISTORY_LINES));

	props.setShowTips(wShowTips.getSelection());
	props.setShowWelcomePageOnStartup(wShowWelcome.getSelection());
	props.setUseDBCache(wUseCache.getSelection());
	props.setOpenLastFile(wOpenLast.getSelection());
	props.setAutoSave(wAutoSave.getSelection());
	props.setOnlyActiveFileShownInTree(wOnlyActiveFile.getSelection());
	props.setOnlyUsedConnectionsSavedToXML(wDBConnXML.getSelection());
	props.setAskAboutReplacingDatabaseConnections(wAskReplaceDB.getSelection());
	props.setReplaceDatabaseConnections(wReplaceDB.getSelection());
	props.setSaveConfirmation(wSaveConf.getSelection());
	props.setAutoSplit(wAutoSplit.getSelection());
	props.setShowCopyOrDistributeWarning(wCopyDistrib.getSelection());
	props.setRepositoriesDialogAtStartupShown(wShowRep.getSelection());
	props.setAntiAliasingEnabled(wAntiAlias.getSelection());
	props.setExitWarningShown(wExitWarning.getSelection());
	props.setOSLookShown(wOriginalLook.getSelection());
	props.setBrandingActive(wBranding.getSelection());
	props.setShowToolTips(tooltipBtn.getSelection());
	props.setIndicateSlowTransStepsEnabled(wIndicateSlowSteps.getSelection());
   props.setAutoCollapseCoreObjectsTree(autoCollapseBtn.getSelection());
	props.setShowingHelpToolTips(helptipBtn.getSelection());

	int defaultLocaleIndex = wDefaultLocale.getSelectionIndex();
	if (defaultLocaleIndex < 0 || defaultLocaleIndex >= GlobalMessages.localeCodes.length)
	{
		// Code hardening, when the combo-box ever gets in a strange state,
		// use the first language as default (should be English)
		defaultLocaleIndex = 0;
	}
	int failoverLocaleIndex = wFailoverLocale.getSelectionIndex();
	if (failoverLocaleIndex < 0 || failoverLocaleIndex >= GlobalMessages.localeCodes.length)
	{
		failoverLocaleIndex = 0;
	}

   String defaultLocale = GlobalMessages.localeCodes[defaultLocaleIndex];
   LanguageChoice.getInstance().setDefaultLocale(EnvUtil.createLocale(defaultLocale));
   
   String failoverLocale = GlobalMessages.localeCodes[failoverLocaleIndex];
   LanguageChoice.getInstance().setFailoverLocale(EnvUtil.createLocale(failoverLocale));    
   
   LanguageChoice.getInstance().saveSettings();

   props.saveProps();

   dispose();
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:68,代码来源:EnterOptionsDialog.java


示例11: main

import org.pentaho.di.i18n.LanguageChoice; //导入依赖的package包/类
public static void main(String[] args) throws Exception {
	List<String> directories = new ArrayList<String>();
	directories.add("src-core");
	directories.add("src");
	directories.add("src-ui");

	List<String> filesToAvoid = new ArrayList<String>();
	filesToAvoid.add("MessagesSourceCrawler.java");
	filesToAvoid.add("KeyOccurence.java");
	filesToAvoid.add("TransLator.java");
	filesToAvoid.add("MenuHelper.java");
	filesToAvoid.add("Messages.java");
	filesToAvoid.add("XulMessages.java");
	filesToAvoid.add("AnnotatedStepsConfigManager.java");
	filesToAvoid.add("AnnotatedJobConfigManager.java");
	filesToAvoid.add("JobEntryValidatorUtils.java");
	filesToAvoid.add("Const.java");
	filesToAvoid.add("XulHelper.java");

	List<SourceCrawlerXMLFolder> xmlFolders = new ArrayList<SourceCrawlerXMLFolder>();
	SourceCrawlerXMLFolder xmlFolder = new SourceCrawlerXMLFolder("ui",
			".*\\.xul$", "%");
	xmlFolder.getElements().add(
			new SourceCrawlerXMLElement("menu", null, "label"));
	xmlFolder.getElements().add(
			new SourceCrawlerXMLElement("menuitem", null, "label"));
	xmlFolder.getElements().add(
			new SourceCrawlerXMLElement("toolbar", null, "label"));
	xmlFolder.getElements().add(
			new SourceCrawlerXMLElement("toolbarbutton", null, "label"));
	xmlFolders.add(xmlFolder);

	MessagesSourceCrawler crawler = new MessagesSourceCrawler(new LogChannel("Source crawler"), directories, null, xmlFolders);
	crawler.setFilesToAvoid(filesToAvoid);
	crawler.crawl();
	int mis = 0;
	LanguageChoice.getInstance().setDefaultLocale(Locale.US);
	for (KeyOccurrence occ : crawler.getOccurrences()) {

		// Try to get a value attached to each of these >6k occurrences...
		//
		String translation = BaseMessages.getString(occ
				.getMessagesPackage(), occ.getKey());

		if (translation.startsWith("!")) {
			mis++;
			System.out.println(mis + "\t" + occ.getKey() + "\t"
					+ occ.getRow() + "\t" + occ.getMessagesPackage() + "\t"
					+ occ.getFileObject().getName().getBaseName() + "\t"
					+ occ.getFileObject().getParent());
		}
	}
	System.out.println("-------------------------------------------------");
	System.out.println("Found " + crawler.getOccurrences().size());
	System.out.println("-------------------------------------------------");

	List<String> packageNames = crawler.getMessagesPackagesList();

	System.out.println("Packages found : " + packageNames.size());
	/*
	 * for (String packageName : packageNames) {
	 * System.out.println("["+packageName+"]"); }
	 */
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:65,代码来源:MessagesSourceCrawler.java


示例12: StarDomain

import org.pentaho.di.i18n.LanguageChoice; //导入依赖的package包/类
public StarDomain() {
  this.domain = new Domain();
  locale = LanguageChoice.getInstance().getDefaultLocale().getCountry();
  changed=true;
}
 
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:6,代码来源:StarDomain.java


示例13: ok

import org.pentaho.di.i18n.LanguageChoice; //导入依赖的package包/类
private void ok() {
  props.setFixedFont( fixedFontData );
  props.setGraphFont( graphFontData );
  props.setNoteFont( noteFontData );
  props.setBackgroundRGB( backgroundRGB );
  props.setGraphColorRGB( graphColorRGB );
  props.setTabColorRGB( tabColorRGB );
  props.setIconSize( Const.toInt( wIconsize.getText(), props.getIconSize() ) );
  props.setLineWidth( Const.toInt( wLineWidth.getText(), props.getLineWidth() ) );
  props.setShadowSize( Const.toInt( wShadowSize.getText(), props.getShadowSize() ) );
  props.setMiddlePct( Const.toInt( wMiddlePct.getText(), props.getMiddlePct() ) );
  props.setCanvasGridSize( Const.toInt( wGridSize.getText(), 1 ) );

  props.setDefaultPreviewSize( Const.toInt( wDefaultPreview.getText(), props.getDefaultPreviewSize() ) );

  props.setMaxNrLinesInLog( Const.toInt( wMaxNrLogLines.getText(), Const.MAX_NR_LOG_LINES ) );
  props.setMaxLogLineTimeoutMinutes( Const.toInt(
    wMaxLogLineTimeout.getText(), Const.MAX_LOG_LINE_TIMEOUT_MINUTES ) );
  props.setMaxNrLinesInHistory( Const.toInt( wMaxNrHistLines.getText(), Const.MAX_NR_HISTORY_LINES ) );

  props.setShowWelcomePageOnStartup( wShowWelcome.getSelection() );
  props.setUseDBCache( wUseCache.getSelection() );
  props.setOpenLastFile( wOpenLast.getSelection() );
  props.setAutoSave( wAutoSave.getSelection() );
  props.setOnlyActiveFileShownInTree( wOnlyActiveFile.getSelection() );
  props.setOnlyUsedConnectionsSavedToXML( wDBConnXML.getSelection() );
  props.setAskAboutReplacingDatabaseConnections( wAskReplaceDB.getSelection() );
  props.setReplaceDatabaseConnections( wReplaceDB.getSelection() );
  props.setSaveConfirmation( wSaveConf.getSelection() );
  props.setAutoSplit( wAutoSplit.getSelection() );
  props.setShowCopyOrDistributeWarning( wCopyDistrib.getSelection() );
  props.setRepositoriesDialogAtStartupShown( wShowRep.getSelection() );
  props.setAntiAliasingEnabled( wAntiAlias.getSelection() );
  props.setShowCanvasGridEnabled( wShowCanvasGrid.getSelection() );
  props.setExitWarningShown( wExitWarning.getSelection() );
  props.setOSLookShown( wOriginalLook.getSelection() );
  props.setBrandingActive( wBranding.getSelection() );
  props.setShowToolTips( tooltipBtn.getSelection() );
  props.setIndicateSlowTransStepsEnabled( wIndicateSlowSteps.getSelection() );
  props.setAutoCollapseCoreObjectsTree( autoCollapseBtn.getSelection() );
  props.setShowingHelpToolTips( helptipBtn.getSelection() );

  int defaultLocaleIndex = wDefaultLocale.getSelectionIndex();
  if ( defaultLocaleIndex < 0 || defaultLocaleIndex >= GlobalMessages.localeCodes.length ) {
    // Code hardening, when the combo-box ever gets in a strange state,
    // use the first language as default (should be English)
    defaultLocaleIndex = 0;
  }
  int failoverLocaleIndex = wFailoverLocale.getSelectionIndex();
  if ( failoverLocaleIndex < 0 || failoverLocaleIndex >= GlobalMessages.localeCodes.length ) {
    failoverLocaleIndex = 0;
  }

  String defaultLocale = GlobalMessages.localeCodes[defaultLocaleIndex];
  LanguageChoice.getInstance().setDefaultLocale( EnvUtil.createLocale( defaultLocale ) );

  String failoverLocale = GlobalMessages.localeCodes[failoverLocaleIndex];
  LanguageChoice.getInstance().setFailoverLocale( EnvUtil.createLocale( failoverLocale ) );

  LanguageChoice.getInstance().saveSettings();

  props.saveProps();

  dispose();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:66,代码来源:EnterOptionsDialog.java


示例14: LocaleChange

import org.pentaho.di.i18n.LanguageChoice; //导入依赖的package包/类
public LocaleChange( Locale newLocale ) {
  original = LanguageChoice.getInstance().getDefaultLocale();
  LanguageChoice.getInstance().setDefaultLocale( newLocale );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:5,代码来源:JsonInputTest.java


示例15: close

import org.pentaho.di.i18n.LanguageChoice; //导入依赖的package包/类
@Override
public void close() throws Exception {
  LanguageChoice.getInstance().setDefaultLocale( original );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:5,代码来源:JsonInputTest.java


示例16: StarDomain

import org.pentaho.di.i18n.LanguageChoice; //导入依赖的package包/类
public StarDomain() {
  this.domain = new Domain();
  locale = LanguageChoice.getInstance().getDefaultLocale().toString();
  changed=true;
  sharedDimensions = new ArrayList<LogicalTable>();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:7,代码来源:StarDomain.java


示例17: getCategories

import org.pentaho.di.i18n.LanguageChoice; //导入依赖的package包/类
/**
 * Get a unique list of categories. We can use this to display in trees etc.
 * 
 * @param type The type of job entry plugins for which we want to categories...
 * @return a unique list of categories
 */
public String[] getCategories(int type)
{
    return getCategories(type, LanguageChoice.getInstance().getDefaultLocale().toString().toLowerCase());
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:11,代码来源:JobEntryLoader.java


示例18: getCategories

import org.pentaho.di.i18n.LanguageChoice; //导入依赖的package包/类
/**
 * Get a unique list of categories. We can use this to display in trees etc.
 * 
 * @param type The type of step plugins for which we want to categories...
 * @return a unique list of categories
 */
public String[] getCategories(int type)
{
    return getCategories(type, LanguageChoice.getInstance().getDefaultLocale().toString().toLowerCase());
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:11,代码来源:StepLoader.java



注:本文中的org.pentaho.di.i18n.LanguageChoice类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java XTrace类代码示例发布时间:2022-05-23
下一篇:
Java ElementProducer类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap