Package org.pdtextensions.semanticanalysis.ui.preferences.validation

Source Code of org.pdtextensions.semanticanalysis.ui.preferences.validation.SemanticAnalysisPreferencePage

/*******************************************************************************
* Copyright (c) 2013 The PDT Extension Group (https://github.com/pdt-eg)
* 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
******************************************************************************/
package org.pdtextensions.semanticanalysis.ui.preferences.validation;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.preferences.IWorkbenchPreferenceContainer;
import org.pdtextensions.core.ui.PEXUIPlugin;
import org.pdtextensions.core.ui.preferences.AbstractPropertyAndPreferencePage;

@SuppressWarnings("restriction")
public class SemanticAnalysisPreferencePage extends
    AbstractPropertyAndPreferencePage {

  public static final String PREF_ID = "org.pdtextensions.semanticanalysis.ui.preferences.SemanticAnalysisPreferencePage"; //$NON-NLS-1$
  public static final String PROP_ID = "org.pdtextensions.semanticanalysis.ui.propertyPages.SemanticAnalysisPropertyPage"; //$NON-NLS-1$
 
  public SemanticAnalysisPreferencePage() {
    setPreferenceStore(PEXUIPlugin.getDefault().getPreferenceStore());
    setDescription("Configure how PDT handles semantic analysis problems");
  }

  @Override
 
  public void createControl(Composite parent) {
    IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer();
    fConfigurationBlock = new SemanticAnalysisConfigurationBlock(getNewStatusChangedListener(), getProject(), container);

    super.createControl(parent);
  }

  @Override
  protected String getPreferencePageID() {
    return PREF_ID;
  }

  @Override
  protected String getPropertyPageID() {
    return PROP_ID;
  }
}
TOP

Related Classes of org.pdtextensions.semanticanalysis.ui.preferences.validation.SemanticAnalysisPreferencePage

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.