/* * Copyright (c) 2003-2004 Christopher Lenz and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html * * Contributors: * Christopher Lenz - initial API and implementation * * $Id: StyleRule.java,v 1.1 2004-09-02 18:07:12 jsurfer Exp $ */ package net.sourceforge.phpeclipse.css.core.internal.model; import net.sourceforge.phpeclipse.core.model.ISourceReference; import net.sourceforge.phpeclipse.css.core.model.IRule; import net.sourceforge.phpeclipse.css.core.model.IStyleRule; import net.sourceforge.phpeclipse.css.core.model.IStyleSheet; import org.eclipse.jface.text.IDocument; /** * */ public class StyleRule extends AbstractRule implements IStyleRule { // Instance Variables ------------------------------------------------------ /** * The selector. */ private ISourceReference selector; // Constructors ------------------------------------------------------------ /** * Constructor. * * @param document The document that contains the rule */ public StyleRule(IDocument document, IStyleSheet styleSheet) { this(document, styleSheet, null); } /** * Constructor. * * @param document The document that contains the rule * @param parent The parent rule, or null if the rule is at top * level */ public StyleRule(IDocument document, IStyleSheet styleSheet, IRule parent) { super(document, styleSheet, parent); } // IStyleRule Implementation ----------------------------------------------- /** * @see IStyleRule#getSelector() */ public final ISourceReference getSelector() { return selector; } // Public Methods ---------------------------------------------------------- public final void setSelector(ISourceReference selector) { this.selector = selector; } }