Package com.puppetlabs.geppetto.pp.dsl.ui.preferences

Source Code of com.puppetlabs.geppetto.pp.dsl.ui.preferences.PPPropertiesRootPage

/**
* Copyright (c) 2013 Puppet Labs, Inc. and other contributors, as listed below.
* 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:
*   Puppet Labs
*/
package com.puppetlabs.geppetto.pp.dsl.ui.preferences;

import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.ui.IWorkbenchPropertyPage;
import org.eclipse.xtext.ui.editor.preferences.fields.LabelFieldEditor;

/**
* A simple preference page for selection of puppet target.
* This is also the puppet root preference pane.
*
*/
public class PPPropertiesRootPage extends FieldEditorPreferencePage implements IWorkbenchPropertyPage {

  @Override
  protected void createFieldEditors() {

    addField(new LabelFieldEditor("Properties for Puppet Projects", getFieldEditorParent()));
  }

  /*
   * (non-Javadoc)
   *
   * @see org.eclipse.ui.IWorkbenchPropertyPage#getElement()
   */
  @Override
  public IAdaptable getElement() {
    // TODO Auto-generated method stub
    return null;
  }

  /*
   * (non-Javadoc)
   *
   * @see org.eclipse.ui.IWorkbenchPropertyPage#setElement(org.eclipse.core.runtime.IAdaptable)
   */
  @Override
  public void setElement(IAdaptable element) {
    // TODO Auto-generated method stub

  }

}
TOP

Related Classes of com.puppetlabs.geppetto.pp.dsl.ui.preferences.PPPropertiesRootPage

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.