2 * Copyright (c) 2003-2004 Christopher Lenz and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * Christopher Lenz - initial API and implementation
11 * $Id: StyleRule.java,v 1.1 2004-09-02 18:07:12 jsurfer Exp $
14 package net.sourceforge.phpeclipse.css.core.internal.model;
16 import net.sourceforge.phpeclipse.core.model.ISourceReference;
17 import net.sourceforge.phpeclipse.css.core.model.IRule;
18 import net.sourceforge.phpeclipse.css.core.model.IStyleRule;
19 import net.sourceforge.phpeclipse.css.core.model.IStyleSheet;
21 import org.eclipse.jface.text.IDocument;
26 public class StyleRule extends AbstractRule
27 implements IStyleRule {
29 // Instance Variables ------------------------------------------------------
34 private ISourceReference selector;
36 // Constructors ------------------------------------------------------------
41 * @param document The document that contains the rule
43 public StyleRule(IDocument document, IStyleSheet styleSheet) {
44 this(document, styleSheet, null);
50 * @param document The document that contains the rule
51 * @param parent The parent rule, or <code>null</code> if the rule is at top
54 public StyleRule(IDocument document, IStyleSheet styleSheet, IRule parent) {
55 super(document, styleSheet, parent);
58 // IStyleRule Implementation -----------------------------------------------
61 * @see IStyleRule#getSelector()
63 public final ISourceReference getSelector() {
67 // Public Methods ----------------------------------------------------------
69 public final void setSelector(ISourceReference selector) {
70 this.selector = selector;