Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornitind2010-10-11 18:00:19 +0000
committernitind2010-10-11 18:00:19 +0000
commit3c5cfed7574e28f6e41d7fe1ad4a836a67e6c653 (patch)
tree5b9181634c9d265af4709bf5aadab512847b5de0
parentdc3d94e7868691840dc8e58089a116e8d852e8b7 (diff)
downloadwebtools.sourceediting-R3_2_2_patches.tar.gz
webtools.sourceediting-R3_2_2_patches.tar.xz
webtools.sourceediting-R3_2_2_patches.zip
[326632] [ui] Project web content settings is not saved when Document type is set to HTML5R3_2_2_patches
-rw-r--r--bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/contentproperties/HTMLContentProperties.java4
-rw-r--r--bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/document/HTMLDocumentTypeRegistry.java12
-rw-r--r--bundles/org.eclipse.wst.html.ui/META-INF/MANIFEST.MF2
-rw-r--r--bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentproperties/ui/WebContentSettingsPropertyPage.java6
4 files changed, 8 insertions, 16 deletions
diff --git a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/contentproperties/HTMLContentProperties.java b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/contentproperties/HTMLContentProperties.java
index 4c7a41b31e..f76fd8e23b 100644
--- a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/contentproperties/HTMLContentProperties.java
+++ b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/contentproperties/HTMLContentProperties.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006 IBM Corporation and others.
+ * Copyright (c) 2006, 2010 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
@@ -172,7 +172,7 @@ public class HTMLContentProperties {
IProject project = resource.getProject();
if (project != null) {
Preferences preferences = getPreferences(project, key, true);
- if (value == null || value.trim().length() == 0)
+ if (value == null)
preferences.remove(getKeyFor(resource.getFullPath()));
else
preferences.put(getKeyFor(resource.getFullPath()), value);
diff --git a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/document/HTMLDocumentTypeRegistry.java b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/document/HTMLDocumentTypeRegistry.java
index 8f3ca14c7b..457558f22f 100644
--- a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/document/HTMLDocumentTypeRegistry.java
+++ b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/document/HTMLDocumentTypeRegistry.java
@@ -40,15 +40,13 @@ public class HTMLDocumentTypeRegistry {
private HTMLDocumentTypeEntry defaultWMLEntry = null;
private HTMLDocumentTypeEntry defaultCHTMLEntry = null;
private HTMLDocumentTypeEntry defaultHTML5Entry = null;
- private HTMLDocumentTypeEntry defaultXHTML5Entry = null;
-
+
final static int DEFAULT_HTML = 0;
final static int DEFAULT_XHTML = 1;
final static int DEFAULT_WML = 2;
final static int DEFAULT_CHTML = 3;
final static int DEFAULT_HTML5 = 4;
- final static int DEFAULT_XHTML5 = 5;
-
+
public static final String CHTML_PUBLIC_ID = "-//W3C//DTD Compact HTML 1.0 Draft//EN";//$NON-NLS-1$
/**
@@ -86,9 +84,6 @@ public class HTMLDocumentTypeRegistry {
this.defaultHTML5Entry = new HTMLDocumentTypeEntry(name, publicId, null, null, false, false, displayName, false, false, false, true);
this.entries.put(publicId, this.defaultHTML5Entry);
- displayName = "XHTML5"; //$NON-NLS-1$
- this.defaultXHTML5Entry = new HTMLDocumentTypeEntry(name, publicId, null, null, true, false, displayName, true, false, false, true);
- this.entries.put("xmlns", this.defaultXHTML5Entry);
HTMLDocumentTypeRegistryReader reader = new HTMLDocumentTypeRegistryReader();
@@ -121,9 +116,6 @@ public class HTMLDocumentTypeRegistry {
case DEFAULT_HTML5 :
entry = this.defaultHTML5Entry;
break;
- case DEFAULT_XHTML5 :
- entry = this.defaultXHTML5Entry;
- break;
case DEFAULT_XHTML :
entry = this.defaultXHTMLEntry;
break;
diff --git a/bundles/org.eclipse.wst.html.ui/META-INF/MANIFEST.MF b/bundles/org.eclipse.wst.html.ui/META-INF/MANIFEST.MF
index 2556c7722a..9ccacd3fb1 100644
--- a/bundles/org.eclipse.wst.html.ui/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.wst.html.ui/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.wst.html.ui; singleton:=true
-Bundle-Version: 1.0.502.qualifier
+Bundle-Version: 1.0.503.qualifier
Bundle-Activator: org.eclipse.wst.html.ui.internal.HTMLUIPlugin
Bundle-Vendor: %providerName
Bundle-Localization: plugin
diff --git a/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentproperties/ui/WebContentSettingsPropertyPage.java b/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentproperties/ui/WebContentSettingsPropertyPage.java
index 7f0d67ed21..76c3a7de73 100644
--- a/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentproperties/ui/WebContentSettingsPropertyPage.java
+++ b/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentproperties/ui/WebContentSettingsPropertyPage.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004, 2008 IBM Corporation and others.
+ * Copyright (c) 2004, 2010 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
@@ -213,7 +213,7 @@ public class WebContentSettingsPropertyPage extends PropertyPage {
private void initializeDoctypeValues() {
int index = 0;
String doctype = HTMLContentProperties.getProperty(HTMLContentProperties.DOCUMENT_TYPE, getResource(), false);
- if (doctype != null && doctype.length() > 0) {
+ if (doctype != null) {
/*
* If item is already part of combo, select it. Otherwise, select
* none.
@@ -359,7 +359,7 @@ public class WebContentSettingsPropertyPage extends PropertyPage {
int index = fDocumentTypeCombo.getSelectionIndex();
if (index > -1) {
String id = (String) fDocumentTypeIds.get(index);
- if (id == null || id.length() == 0 || id.equalsIgnoreCase(SELECT_NONE)) {
+ if (id == null || id.equalsIgnoreCase(SELECT_NONE)) {
// if none, use null
id = null;
}

Back to the top