[86261] task tag and read-only preferences should be hidden
diff --git a/bundles/org.eclipse.wst.sse.ui/plugin.xml b/bundles/org.eclipse.wst.sse.ui/plugin.xml
index f4f1aa3..cdbb310 100644
--- a/bundles/org.eclipse.wst.sse.ui/plugin.xml
+++ b/bundles/org.eclipse.wst.sse.ui/plugin.xml
@@ -103,11 +103,18 @@
    <extension
          point="org.eclipse.ui.preferencePages">
 <!-- ROOT PREFERENCE PAGE FOR WEB AND XML FILES -->
+<!--  Comment out for now since this preference page is not used
       <page
             name="%WEB_AND_XML_Files.name"
             class="org.eclipse.wst.sse.ui.preferences.ui.FilePreferencePage"
             id="org.eclipse.wst.sse.ui.preferences">
       </page>
+-->
+      <page
+            name="%WEB_AND_XML_Files.name"
+            class="org.eclipse.wst.sse.ui.internal.preferences.ui.EmptyFilePreferencePage"
+            id="org.eclipse.wst.sse.ui.preferences">
+      </page>
 <!-- Source Editor Preference page under Workbench->Editors -->
       <page
             name="%Structured_Text_Editor.name"
diff --git a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/preferences/ui/EmptyFilePreferencePage.java b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/preferences/ui/EmptyFilePreferencePage.java
new file mode 100644
index 0000000..a646a09
--- /dev/null
+++ b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/preferences/ui/EmptyFilePreferencePage.java
@@ -0,0 +1,103 @@
+/*******************************************************************************
+ * Copyright (c) 2005 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
+ *     Jens Lukowski/Innoopract - initial renaming/restructuring
+ *     
+ *******************************************************************************/
+package org.eclipse.wst.sse.ui.internal.preferences.ui;
+
+import org.eclipse.jface.preference.PreferencePage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.ScrolledComposite;
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPreferencePage;
+
+public class EmptyFilePreferencePage extends PreferencePage implements IWorkbenchPreferencePage {
+
+	private Composite createComposite(Composite parent, int numColumns) {
+		Composite composite = new Composite(parent, SWT.NULL);
+
+		// GridLayout
+		GridLayout layout = new GridLayout();
+		layout.numColumns = numColumns;
+		composite.setLayout(layout);
+
+		// GridData
+		GridData data = new GridData(GridData.FILL);
+		data.horizontalIndent = 0;
+		data.verticalAlignment = GridData.FILL;
+		data.horizontalAlignment = GridData.FILL;
+		composite.setLayoutData(data);
+
+		return composite;
+	}
+
+	protected Control createContents(Composite parent) {
+		Composite composite = createScrolledComposite(parent);
+
+		String description = "Expand the tree to edit preferences for a specific content type.";
+		createLabel(composite, description);
+
+		setSize(composite);
+		return composite;
+	}
+
+	private Label createLabel(Composite parent, String text) {
+		Label label = new Label(parent, SWT.LEFT);
+		label.setText(text);
+
+		// GridData
+		GridData data = new GridData(GridData.FILL);
+		data.verticalAlignment = GridData.CENTER;
+		data.horizontalAlignment = GridData.FILL;
+		label.setLayoutData(data);
+
+		return label;
+	}
+
+	private Composite createScrolledComposite(Composite parent) {
+		// create scrollbars for this parent when needed
+		final ScrolledComposite sc1 = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL);
+		sc1.setLayoutData(new GridData(GridData.FILL_BOTH));
+		Composite composite = createComposite(sc1, 1);
+		sc1.setContent(composite);
+
+		// not calling setSize for composite will result in a blank composite,
+		// so calling it here initially
+		// setSize actually needs to be called after all controls are created,
+		// so scrolledComposite
+		// has correct minSize
+		setSize(composite);
+		return composite;
+	}
+
+	public void init(IWorkbench workbench) {
+	}
+
+	private void setSize(Composite composite) {
+		if (composite != null) {
+			Point minSize = composite.computeSize(SWT.DEFAULT, SWT.DEFAULT);
+			composite.setSize(minSize);
+			// set scrollbar composite's min size so page is expandable but
+			// has scrollbars when needed
+			if (composite.getParent() instanceof ScrolledComposite) {
+				ScrolledComposite sc1 = (ScrolledComposite) composite.getParent();
+				sc1.setMinSize(minSize);
+				sc1.setExpandHorizontal(true);
+				sc1.setExpandVertical(true);
+			}
+		}
+	}
+}