| /******************************************************************************* |
| * Copyright (c) 2008,2011 IBM Corporation 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 |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.stem.ui.adapters.loggerpropertyeditor; |
| |
| import org.eclipse.core.resources.IProject; |
| import org.eclipse.stem.core.logger.Logger; |
| import org.eclipse.stem.ui.editors.GenericPropertyEditor; |
| import org.eclipse.swt.events.ModifyListener; |
| import org.eclipse.swt.widgets.Composite; |
| |
| abstract public class LoggerPropertyEditor extends GenericPropertyEditor { |
| |
| |
| public LoggerPropertyEditor(Composite parent, int style, IProject project) { |
| super(parent,style, project); |
| } |
| |
| /** |
| * Create the composite |
| * |
| * @param parent |
| * @param style |
| * @param projectValidator |
| */ |
| public LoggerPropertyEditor(final Composite parent, final int style, |
| final Logger logger, |
| final ModifyListener projectValidator, final IProject project) { |
| super(parent, style, logger, projectValidator, project); |
| } |
| |
| public void populate(Logger logger) { |
| } |
| |
| @Override |
| public boolean validate() { |
| // Nothing to validate in the base logger |
| return true; |
| } // validate |
| |
| |
| |
| @Override |
| public void dispose() { |
| super.dispose(); |
| } |
| |
| @Override |
| protected void checkSubclass() { |
| // Disable the check that prevents sub-classing of SWT components |
| } |
| |
| |
| } |