Java tutorial
/******************************************************************************* * Copyright (c) 2016 ModelSolv, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * ModelSolv, Inc. - initial API and implementation and/or initial documentation *******************************************************************************/ package com.reprezen.swagedit.core.preferences; import org.dadacoalition.yedit.preferences.PreferenceConstants; import org.eclipse.jface.preference.IPreferenceStore; public class KaiZenPreferencesUtils { public static int getTabWidth() { IPreferenceStore prefs = org.dadacoalition.yedit.Activator.getDefault().getPreferenceStore(); return prefs.getInt(PreferenceConstants.SPACES_PER_TAB); } }