Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcbateman2007-02-09 20:53:19 +0000
committercbateman2007-02-09 20:53:19 +0000
commitb8997a6444f772022ac2275425a8a5ee8a8d2b03 (patch)
tree675a3ef46a1d1eadd3d6653f6ec6da02fe402aec /jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/converter
parente638c810e08a263d3dbc83169ccbb9c8e8331776 (diff)
downloadwebtools.jsf-b8997a6444f772022ac2275425a8a5ee8a8d2b03.tar.gz
webtools.jsf-b8997a6444f772022ac2275425a8a5ee8a8d2b03.tar.xz
webtools.jsf-b8997a6444f772022ac2275425a8a5ee8a8d2b03.zip
Fixed the hint label on the drop strategy so it no longer resizes the canvas when the label goes outside the viewport
Changed the DefaultUnknownTagConverter so it generates a less obnoxious visual Changed the way non-visual decorator tags are handled to protect against multiple change event refreshes for the same change.
Diffstat (limited to 'jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/converter')
-rw-r--r--jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/converter/ConverterFactoryRegistry.java2
-rw-r--r--jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/converter/DefaultUnknownTagConverter.java6
2 files changed, 5 insertions, 3 deletions
diff --git a/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/converter/ConverterFactoryRegistry.java b/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/converter/ConverterFactoryRegistry.java
index 65abf05ad..40e419164 100644
--- a/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/converter/ConverterFactoryRegistry.java
+++ b/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/converter/ConverterFactoryRegistry.java
@@ -109,7 +109,7 @@ public class ConverterFactoryRegistry {
}
);
}
- return new DefaultUnknownTagConverter(ele);
+ return new DefaultUnknownTagConverter(ele, mode);
}
diff --git a/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/converter/DefaultUnknownTagConverter.java b/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/converter/DefaultUnknownTagConverter.java
index d09a2fe11..397fcf7fb 100644
--- a/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/converter/DefaultUnknownTagConverter.java
+++ b/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/converter/DefaultUnknownTagConverter.java
@@ -26,8 +26,9 @@ public class DefaultUnknownTagConverter extends AbstractTagConverter {
/**
* @param host
*/
- public DefaultUnknownTagConverter(Element host) {
+ public DefaultUnknownTagConverter(Element host, int mode) {
super(host);
+ setMode(mode);
}
/*
@@ -48,7 +49,8 @@ public class DefaultUnknownTagConverter extends AbstractTagConverter {
style += "border: none; padding: 0; margin: 0";
divEle.setAttribute("style", style);
Element div2 = createElement("span");
- div2.setAttribute("style", "background-color: cyan; border: none;");
+ String border = isPreviewMode() ? "border-style: solid;border-width: 1px" : "border:none";
+ div2.setAttribute("style", "background-color: white;"+border+";color:gray");
Text txt = createText(hostEle.getTagName());
div2.appendChild(txt);

Back to the top