当前位置: 首页>>代码示例>>Java>>正文


Java IPreferenceStore.getInt方法代码示例

本文整理汇总了Java中org.eclipse.jface.preference.IPreferenceStore.getInt方法的典型用法代码示例。如果您正苦于以下问题:Java IPreferenceStore.getInt方法的具体用法?Java IPreferenceStore.getInt怎么用?Java IPreferenceStore.getInt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.jface.preference.IPreferenceStore的用法示例。


在下文中一共展示了IPreferenceStore.getInt方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: openContentStream

import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
/**
 * Returns the content of the .editorconfig file to generate.
 *
 * @param container
 *
 * @return the content of the .editorconfig file to generate.
 */
private InputStream openContentStream(IContainer container) {
	IPreferenceStore store = EditorsUI.getPreferenceStore();
	boolean spacesForTabs = store.getBoolean(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_SPACES_FOR_TABS);
	int tabWidth = store.getInt(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_TAB_WIDTH);
	String lineDelimiter = getLineDelimiter(container);
	String endOfLine = org.ec4j.core.model.PropertyType.EndOfLineValue.ofEndOfLineString(lineDelimiter).name();

	StringBuilder content = new StringBuilder("# EditorConfig is awesome: http://EditorConfig.org");
	content.append(lineDelimiter);
	content.append(lineDelimiter);
	content.append("[*]");
	content.append(lineDelimiter);
	content.append("indent_style = ");
	content.append(spacesForTabs ? "space" : "tab");
	content.append(lineDelimiter);
	content.append("indent_size = ");
	content.append(tabWidth);
	if (endOfLine != null) {
		content.append(lineDelimiter);
		content.append("end_of_line = ");
		content.append(endOfLine);
	}

	return new ByteArrayInputStream(content.toString().getBytes());
}
 
开发者ID:angelozerr,项目名称:ec4e,代码行数:33,代码来源:NewEditorConfigWizard.java

示例2: getTraceplayerPort

import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
static public int getTraceplayerPort() {
       IPreferenceStore preferenceStore = ConvertigoPlugin.getDefault().getPreferenceStore();
       return preferenceStore.getInt(ConvertigoPlugin.PREFERENCE_TRACEPLAYER_PORT);
}
 
开发者ID:convertigo,项目名称:convertigo-eclipse,代码行数:5,代码来源:ConvertigoPlugin.java

示例3: getWidthMarge

import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
public static int getWidthMarge () {
	IPreferenceStore store = Activator.getDefault().getPreferenceStore();
	return store.getInt(P_AUTO_NODE_DIMENSION_MARGE_WIDTH);
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:5,代码来源:PreferenceManager.java

示例4: getHeightMarge

import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
public static int getHeightMarge () {
	IPreferenceStore store = Activator.getDefault().getPreferenceStore();
	return store.getInt(P_AUTO_NODE_DIMENSION_MARGE_HEIGHT);
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:5,代码来源:PreferenceManager.java

示例5: getNodeDimension

import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
public static Dimension getNodeDimension () {
	IPreferenceStore store = Activator.getDefault().getPreferenceStore();
	int width = store.getInt(P_NODE_DIMENSION_WIDTH);
	int height =  store.getInt(P_NODE_DIMENSION_HEIGHT);
	return new Dimension(width, height);
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:7,代码来源:PreferenceManager.java

示例6: getRowCountForVertexTextDescription

import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
public static int getRowCountForVertexTextDescription () {
	IPreferenceStore store = Activator.getDefault().getPreferenceStore();
	return store.getInt(P_ROW_COUNT_FOR_VERTEX_TEXT_DESCRIPTION);
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:5,代码来源:PreferenceManager.java

示例7: getRowCountForEdgeTextDescription

import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
public static int getRowCountForEdgeTextDescription () {
	IPreferenceStore store = Activator.getDefault().getPreferenceStore();
	return store.getInt(P_ROW_COUNT_FOR_EDGE_TEXT_DESCRIPTION);
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:5,代码来源:PreferenceManager.java

示例8: getRowCountForVertexTextRequirements

import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
public static int getRowCountForVertexTextRequirements () {
	IPreferenceStore store = Activator.getDefault().getPreferenceStore();
	return store.getInt(P_ROW_COUNT_FOR_TEXT_REQUIREMENTS);
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:5,代码来源:PreferenceManager.java

示例9: getMaxRowInTooltip

import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
public static int getMaxRowInTooltip () {
	IPreferenceStore store = Activator.getDefault().getPreferenceStore();
	return store.getInt(P_MAX_ROW_IN_TOOLTIPS);
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:5,代码来源:PreferenceManager.java

示例10: getSpaceHeightMargeForTreeLayoutAlgorithm

import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
public static int getSpaceHeightMargeForTreeLayoutAlgorithm () {
	IPreferenceStore store = Activator.getDefault().getPreferenceStore();
	return store.getInt(P_SPACE_HEIGHT_MARGE_FOR_TREE_LAYOUT_ALGORITHM);
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:5,代码来源:PreferenceManager.java

示例11: getSpaceWidthMargeForTreeLayoutAlgorithm

import org.eclipse.jface.preference.IPreferenceStore; //导入方法依赖的package包/类
public static int getSpaceWidthMargeForTreeLayoutAlgorithm () {
	IPreferenceStore store = Activator.getDefault().getPreferenceStore();
	return store.getInt(P_SPACE_WIDTH_MARGE_FOR_TREE_LAYOUT_ALGORITHM);
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:5,代码来源:PreferenceManager.java


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