// Path: src/org/art_core/dev/cinder/CinderPlugin.java
// public class CinderPlugin extends AbstractUIPlugin {
// 
// 	// The plug-in ID
// 	public static final String PLUGIN_ID = "org.art_core.dev.cinder";
// 
// 	// The shared instance
// 	private static CinderPlugin plugin;
// 
// 	/*
// 	 * (non-Javadoc)
// 	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
// 	 */
// 	public void start(BundleContext context) throws Exception {
// 		super.start(context);
// 		plugin = this;
// 	}
// 
// 	/*
// 	 * (non-Javadoc)
// 	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
// 	 */
// 	public void stop(BundleContext context) throws Exception {
// 		plugin = null;
// 		super.stop(context);
// 	}
// 
// 	/**
// 	 * Returns the shared instance
// 	 *
// 	 * @return the shared instance
// 	 */
// 	public static CinderPlugin getDefault() {
// 		return plugin;
// 	}
// 
// 	/**
// 	 * Returns an image descriptor for the image file at the given
// 	 * plug-in relative path
// 	 *
// 	 * @param path the path
// 	 * @return the image descriptor
// 	 */
// 	public static ImageDescriptor getImageDescriptor(final String path) {
// 		return imageDescriptorFromPlugin(PLUGIN_ID, path);
// 	}
// }


import java.util.ResourceBundle;
import org.eclipse.jface.preference.*;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.eclipse.ui.IWorkbench;
import org.art_core.dev.cinder.CinderPlugin;
package org.art_core.dev.cinder.prefs;



/**
 * This class represents a preference page that is contributed to the
 * Preferences dialog. By subclassing <samp>FieldEditorPreferencePage</samp>, we
 * can use the field support built into JFace that allows us to create a page
 * that is small and knows how to save, restore and apply itself.
 * <p>
 * This page is used to modify preferences only. They are stored in the
 * preference store that belongs to the main plug-in class. That way,
 * preferences can be accessed directly via the preference store.
 */

public class CinderPrefPage extends FieldEditorPreferencePage implements
		IWorkbenchPreferencePage {

	private ResourceBundle cRes = ResourceBundle.getBundle("org.art_core.dev.cinder.CinderResource");
	
	public static final String P_PATH = "pathPreference";
	public static final String P_BOOLEAN = "booleanPreference";
	public static final String P_CHOICE = "choicePreference";
	public static final String P_STRING = "stringPreference";
	public static final String P_COLOR = "colorPreference";
	public static final String P_INTEGER = "integerPreference";
	
	public static final int STRING_FIELD = 1;
	public static final int FILE_FIELD = 2;
	
	public CinderPrefPage() {
		super(GRID);
// Path: src/org/art_core/dev/cinder/CinderPlugin.java
// public class CinderPlugin extends AbstractUIPlugin {
// 
// 	// The plug-in ID
// 	public static final String PLUGIN_ID = "org.art_core.dev.cinder";
// 
// 	// The shared instance
// 	private static CinderPlugin plugin;
// 
// 	/*
// 	 * (non-Javadoc)
// 	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
// 	 */
// 	public void start(BundleContext context) throws Exception {
// 		super.start(context);
// 		plugin = this;
// 	}
// 
// 	/*
// 	 * (non-Javadoc)
// 	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
// 	 */
// 	public void stop(BundleContext context) throws Exception {
// 		plugin = null;
// 		super.stop(context);
// 	}
// 
// 	/**
// 	 * Returns the shared instance
// 	 *
// 	 * @return the shared instance
// 	 */
// 	public static CinderPlugin getDefault() {
// 		return plugin;
// 	}
// 
// 	/**
// 	 * Returns an image descriptor for the image file at the given
// 	 * plug-in relative path
// 	 *
// 	 * @param path the path
// 	 * @return the image descriptor
// 	 */
// 	public static ImageDescriptor getImageDescriptor(final String path) {
// 		return imageDescriptorFromPlugin(PLUGIN_ID, path);
// 	}
// }


// Path: src/org/art_core/dev/cinder/prefs/CinderPrefPage.java
import java.util.ResourceBundle;
import org.eclipse.jface.preference.*;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.eclipse.ui.IWorkbench;
import org.art_core.dev.cinder.CinderPlugin;

package org.art_core.dev.cinder.prefs;



/**
 * This class represents a preference page that is contributed to the
 * Preferences dialog. By subclassing <samp>FieldEditorPreferencePage</samp>, we
 * can use the field support built into JFace that allows us to create a page
 * that is small and knows how to save, restore and apply itself.
 * <p>
 * This page is used to modify preferences only. They are stored in the
 * preference store that belongs to the main plug-in class. That way,
 * preferences can be accessed directly via the preference store.
 */

public class CinderPrefPage extends FieldEditorPreferencePage implements
		IWorkbenchPreferencePage {

	private ResourceBundle cRes = ResourceBundle.getBundle("org.art_core.dev.cinder.CinderResource");
	
	public static final String P_PATH = "pathPreference";
	public static final String P_BOOLEAN = "booleanPreference";
	public static final String P_CHOICE = "choicePreference";
	public static final String P_STRING = "stringPreference";
	public static final String P_COLOR = "colorPreference";
	public static final String P_INTEGER = "integerPreference";
	
	public static final int STRING_FIELD = 1;
	public static final int FILE_FIELD = 2;
	
	public CinderPrefPage() {
		super(GRID);
		setPreferenceStore(CinderPlugin.getDefault().getPreferenceStore());