Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2012 itemis AG (http://www.itemis.eu) 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 /
  
  package org.eclipse.xtext.ui.validation;
  
 import  org.eclipse.core.resources.IProject;
 import  org.eclipse.core.runtime.IAdaptable;
 import  org.eclipse.jface.preference.IPreferencePageContainer;
 import  org.eclipse.jface.preference.IPreferenceStore;
 import  org.eclipse.swt.widgets.Composite;
 import  org.eclipse.swt.widgets.Control;
 import  org.eclipse.ui.preferences.IWorkbenchPreferenceContainer;
 

Author(s):
Dennis Huebner - Initial contribution and API
Since:
2.4
 
 public class ValidatorPreferencePage extends PropertyAndPreferencePage {
 
 	
 	
 
 	public void createControl(Composite parent) {
 		IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer();
 		IPreferenceStore preferenceStore = .getWritablePreferenceStore(getProject());
 		super.createControl(parent);
 	}
 	
 	protected Control createPreferenceContent(Composite composite, IPreferencePageContainer preferencePageContainer) {
 	}
 
 	protected boolean hasProjectSpecificOptions(IProject project) {
 	}
 
 	protected String getPreferencePageID() {
 		return  + ".validator.preferencePage";
 	}
 
 	protected String getPropertyPageID() {
 		return  + ".validator.propertyPage";
 	}
 
 	public void dispose() {
 		if ( != null) {
 		}
 		super.dispose();
 	}
 
 	protected void enableProjectSpecificSettings(boolean useProjectSpecificSettings) {
 		super.enableProjectSpecificSettings(useProjectSpecificSettings);
 		if ( != null) {
 		}
 	}
 
 	protected void performDefaults() {
 		super.performDefaults();
 		if ( != null) {
 		}
 	}
 
 	public boolean performOk() {
 		if ( != null) {
 				return false;
 			}
 		}
 		return super.performOk();
 	}
	public void performApply() {
		if ( != null) {
		}
	}
	public void setElement(IAdaptable element) {
		super.setElement(element);
		setDescription(null); // no description for property page
	}
New to GrepCode? Check out our FAQ X