本文整理汇总了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());
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}