Package de.innovationgate.eclipse.wgadesigner.preferences

Source Code of de.innovationgate.eclipse.wgadesigner.preferences.WGADesignerPrefPage

/*******************************************************************************
* Copyright (c) 2009, 2010 Innovation Gate GmbH.
* 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:
*     Innovation Gate GmbH - initial API and implementation
******************************************************************************/
package de.innovationgate.eclipse.wgadesigner.preferences;

import org.eclipse.jface.preference.BooleanFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.preference.IntegerFieldEditor;
import org.eclipse.swt.SWT;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;

import de.innovationgate.eclipse.wgadesigner.WGADesignerPlugin;

public class WGADesignerPrefPage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {

  public WGADesignerPrefPage() {
    super(FieldEditorPreferencePage.GRID);
    IPreferenceStore store = WGADesignerPlugin.getDefault().getPreferenceStore();
    setPreferenceStore(store);
    setDescription("This page allows the configuration of global runtime settings.");
  }

  @Override
  protected void createFieldEditors() {
    addField(new IntegerFieldEditor(PreferenceConstants.TOMCAT_SERVER_PORT, "Tomcat server port:", getFieldEditorParent()));
    addField(new IntegerFieldEditor(PreferenceConstants.TOMCAT_HTTP_PORT, "Tomcat HTTP port:", getFieldEditorParent()));
    addField(new IntegerFieldEditor(PreferenceConstants.TOMCAT_REDIRECT_PORT, "Tomcat redirect port:", getFieldEditorParent()));
   
    addField(new BooleanFieldEditor(PreferenceConstants.TMLSCRIPT_DEBUG,
        "enable TML-Script debugger",
        SWT.NONE, getFieldEditorParent()));

    addField(new BooleanFieldEditor(PreferenceConstants.JAVA_DEBUG,
        "enable Java debugging",
        SWT.NONE, getFieldEditorParent()));
   
    addField(new IntegerFieldEditor(PreferenceConstants.JAVA_MIN_HEAP_SIZE, "Minimum Java heap size (in MB):", getFieldEditorParent()));
   
    addField(new IntegerFieldEditor(PreferenceConstants.JAVA_MAX_HEAP_SIZE, "Maximum Java heap size (in MB):", getFieldEditorParent()));
   
    addField(new IntegerFieldEditor(PreferenceConstants.JAVA_MIN_PERMGEN_SIZE, "Minimum Java permgen size (in MB):", getFieldEditorParent()));
   
    addField(new IntegerFieldEditor(PreferenceConstants.JAVA_MAX_PERMGEN_SIZE, "Maximum Java permgen size (in MB):", getFieldEditorParent()));
   
    addField(new IntegerFieldEditor(PreferenceConstants.JMX_PORT, "Java Management Extensions port:", getFieldEditorParent()));
   
  }

  public void init(IWorkbench workbench) {
    // TODO Auto-generated method stub

  }

 
}
TOP

Related Classes of de.innovationgate.eclipse.wgadesigner.preferences.WGADesignerPrefPage

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.