blob: b6bcc4a76ac817f77c882ac0f6b5eb57ecd6a253 [file] [log] [blame]
nitind958d79a2004-11-23 19:23:00 +00001/*****************************************************************************
2 * Copyright (c) 2004 IBM Corporation and others. All rights reserved. This
3 * program and the accompanying materials are made available under the terms
4 * of the Eclipse Public License v1.0 which accompanies this distribution, and
5 * is available at http://www.eclipse.org/legal/epl-v10.html
6 *
7 * Contributors: IBM Corporation - initial API and implementation
8 ****************************************************************************/
nitindfb0ad6b2005-03-30 18:46:46 +00009package org.eclipse.wst.css.ui.internal.contentoutline;
nitind958d79a2004-11-23 19:23:00 +000010
david_williams4ad020f2005-04-18 08:00:30 +000011import org.eclipse.wst.sse.core.internal.provisional.INodeAdapter;
12import org.eclipse.wst.sse.core.internal.provisional.INodeNotifier;
nitindbca26632005-03-30 18:13:32 +000013import org.eclipse.wst.sse.ui.internal.contentoutline.IJFaceNodeAdapter;
14import org.eclipse.wst.xml.ui.internal.contentoutline.JFaceNodeAdapterFactory;
nitind958d79a2004-11-23 19:23:00 +000015
16public class JFaceNodeAdapterFactoryCSS extends JFaceNodeAdapterFactory {
17 public JFaceNodeAdapterFactoryCSS() {
18 this(IJFaceNodeAdapter.class, true);
19 }
20
21 public JFaceNodeAdapterFactoryCSS(Object adapterKey, boolean registerAdapters) {
22 super(adapterKey, registerAdapters);
23 }
24
25
nitind958d79a2004-11-23 19:23:00 +000026 protected INodeAdapter createAdapter(INodeNotifier node) {
27 if (singletonAdapter == null) {
28 // create the JFaceNodeAdapter
29 singletonAdapter = new CSSNodeAdapter(this);
nitind958d79a2004-11-23 19:23:00 +000030 }
31 return singletonAdapter;
32 }
33
nitind958d79a2004-11-23 19:23:00 +000034
35}