Getting rid of unused nested class.
1.1 --- a/visualweb.designer/src/org/netbeans/modules/visualweb/designer/WebForm.java Fri Dec 14 23:51:24 2007 +0000
1.2 +++ b/visualweb.designer/src/org/netbeans/modules/visualweb/designer/WebForm.java Fri Dec 14 23:56:19 2007 +0000
1.3 @@ -40,7 +40,6 @@
1.4 */
1.5 package org.netbeans.modules.visualweb.designer;
1.6
1.7 -import java.awt.Image;
1.8 import java.awt.Rectangle;
1.9 import java.awt.event.ActionEvent;
1.10 import javax.swing.ActionMap;
1.11 @@ -66,7 +65,6 @@
1.12 import java.lang.ref.WeakReference;
1.13 import java.net.URL;
1.14 import java.util.ArrayList;
1.15 -import java.util.HashMap;
1.16 import java.util.List;
1.17 import java.util.Map;
1.18
1.19 @@ -80,7 +78,6 @@
1.20
1.21 import org.netbeans.spi.palette.PaletteController;
1.22 import org.openide.ErrorManager;
1.23 -import org.openide.util.Lookup;
1.24 import org.w3c.dom.Element;
1.25 import org.w3c.dom.Node;
1.26 import org.w3c.dom.UserDataHandler;
1.27 @@ -2511,343 +2508,6 @@
1.28 // } // End of DomProviderListener.
1.29
1.30
1.31 - /** Dummy impl of <code>DomProviderService</code>. */
1.32 - private static class DummyDomProviderService implements DomProviderService {
1.33 -// public DomProvider getDomProvider(DataObject dataObject) {
1.34 -// return null;
1.35 -// }
1.36 -//
1.37 -// public DomProvider findDomProvider(DataObject dobj) {
1.38 -// return null;
1.39 -// }
1.40 -//
1.41 -// public DomProvider findDomProvider(DesignContext designContext) {
1.42 -// return null;
1.43 -// }
1.44 -//
1.45 -// public boolean hasDomProvider(DataObject dataObject) {
1.46 -// return false;
1.47 -// }
1.48 -//
1.49 -// public DomProviderService getDomProviderService() {
1.50 -// return this;
1.51 -// }
1.52 -
1.53 -// // DomProviderService >>
1.54 -// public MarkupDesignBean getMarkupDesignBeanForElement(Element element) {
1.55 -// return null;
1.56 -// }
1.57 -
1.58 -// public MarkupMouseRegion getMarkupMouseRegionForElement(Element element) {
1.59 -// return null;
1.60 -// }
1.61 -
1.62 - public int getExpandedOffset(String unexpanded, int unexpandedOffset) {
1.63 - // XXX
1.64 - return unexpandedOffset;
1.65 - }
1.66 -
1.67 - public int getUnexpandedOffset(String unexpanded, int expandedOffset) {
1.68 - // XXX
1.69 - return expandedOffset;
1.70 - }
1.71 -
1.72 - public String expandHtmlEntities(String html, boolean warn, Node node) {
1.73 - // XXX
1.74 - return html;
1.75 - }
1.76 -
1.77 -// public ClassLoader getContextClassLoaderForDesignContext(DesignContext designContext) {
1.78 -// // XXX
1.79 -// return Thread.currentThread().getContextClassLoader();
1.80 -// }
1.81 -
1.82 - public String getHtmlStream(Node node) {
1.83 - return node == null ? "" : node.toString(); // NOI18N
1.84 - }
1.85 - // DomProviderService <<
1.86 -
1.87 - public String getDomDocumentReplacedEventConstant() {
1.88 - // XXX
1.89 - return "DOMDocumentReplaced"; // NOI18N
1.90 - }
1.91 -
1.92 -// public Designer[] getDesignersForDataObject(DataObject jsfJspDataObject) {
1.93 -// return new Designer[0];
1.94 -// }
1.95 -
1.96 -// public Designer[] findDesignersForFileObject(FileObject jsfJspFileObject) {
1.97 -// return new Designer[0];
1.98 -// }
1.99 -
1.100 -// public Designer[] findDesignersForDesignContext(DesignContext designContext) {
1.101 -// return new Designer[0];
1.102 -// }
1.103 -
1.104 -// public Designer[] findDesignersForElement(Element element) {
1.105 -// return new Designer[0];
1.106 -// }
1.107 -
1.108 -// public MarkupDesignBean getMarkupDesignBeanForComponentRootElement(Element element, Element parentBoxElement) {
1.109 -// return null;
1.110 -// }
1.111 -
1.112 -// public boolean isValueBindingExpression(String value, boolean containsOK) {
1.113 -// return false;
1.114 -// }
1.115 -
1.116 -// public String computeFileName(Object location) {
1.117 -// return location == null ? null : location.toString();
1.118 -// }
1.119 -
1.120 -// public int computeLineNumber(Object location, int lineno) {
1.121 -// return lineno;
1.122 -// }
1.123 -
1.124 -// public URL getDocumentUrl(org.w3c.dom.Document document) {
1.125 -// return null;
1.126 -// }
1.127 -
1.128 -// public void displayErrorForLocation(String message, Object location, int lineno, int column) {
1.129 -// }
1.130 -
1.131 -// public Element getHtmlBodyForDocument(org.w3c.dom.Document document) {
1.132 -// return null;
1.133 -// }
1.134 -
1.135 -// public DocumentFragment getHtmlDomFragmentForDocument(org.w3c.dom.Document document) {
1.136 -// return null;
1.137 -// }
1.138 -
1.139 -// public boolean editEventHandlerForDesignBean(DesignBean component) {
1.140 -// return false;
1.141 -// }
1.142 -
1.143 -// public boolean isSpecialBean(DesignBean designBean) {
1.144 -// return false;
1.145 -// }
1.146 -
1.147 -// public Element getElement(DesignBean designBean) {
1.148 -// return null;
1.149 -// }
1.150 -
1.151 - public Element getSourceElement(Element componentRootElement) {
1.152 - return null;
1.153 - }
1.154 -
1.155 -// public Element getMarkupBeanElement(DesignBean designBean) {
1.156 -// return null;
1.157 -// }
1.158 -
1.159 -// public boolean isFacesBean(MarkupDesignBean bean) {
1.160 -// return false;
1.161 -// }
1.162 -
1.163 -// public boolean setDesignProperty(MarkupDesignBean bean, String attribute, int value) {
1.164 -// return false;
1.165 -// }
1.166 -// public boolean setStyleAttribute(Element componentRootElement, String attribute, int value) {
1.167 -// return false;
1.168 -// }
1.169 -
1.170 -// public Element findHtmlElementDescendant(DocumentFragment df) {
1.171 -// return null;
1.172 -// }
1.173 -
1.174 -// public void updateLocalStyleValuesForElement(Element e, StyleData[] setStyleData, StyleData[] removeStyleData) {
1.175 -// // XXX.
1.176 -// }
1.177 -
1.178 -// public boolean isTrayBean(DesignBean designBean) {
1.179 -// return false;
1.180 -// }
1.181 -
1.182 -// public boolean isCssPositionable(DesignBean designBean) {
1.183 -// return false;
1.184 -// }
1.185 -
1.186 -// public long getContextGenearation(DesignContext context) {
1.187 -// return 0L;
1.188 -// }
1.189 -
1.190 -// public boolean isWebFormFileObject(FileObject fileObject) {
1.191 -// return false;
1.192 -// }
1.193 -
1.194 - public boolean isPrincipalElement(Element element, Element parentBoxElement) {
1.195 - return false;
1.196 - }
1.197 -
1.198 - public boolean isFocusedElement(Element element) {
1.199 - return false;
1.200 - }
1.201 -
1.202 - public boolean ignoreDesignBorder(Element element) {
1.203 - return true;
1.204 - }
1.205 -
1.206 - public Element getSourceElementWhichRendersChildren(Element element) {
1.207 - return element;
1.208 - }
1.209 -
1.210 - public Element[] getChildComponentRootElements(Element componentRootElement) {
1.211 - return new Element[0];
1.212 - }
1.213 -
1.214 -// public MarkupDesignBean adjustRenderBeanHack(MarkupDesignBean renderBean) {
1.215 -// return renderBean;
1.216 -// }
1.217 -
1.218 -// public boolean isFacesComponentBean(DesignBean bean) {
1.219 -// return false;
1.220 -// }
1.221 -//
1.222 -// public boolean isEscapedDesignBean(DesignBean bean) {
1.223 -// return false;
1.224 -// }
1.225 -
1.226 - public boolean isFacesComponent(Element componentRootElement) {
1.227 - return false;
1.228 - }
1.229 -
1.230 -// public Element getRenderedElement(DesignBean designBean) {
1.231 -// return null;
1.232 -// }
1.233 -
1.234 - public String getRegionDisplayName(Element regionElement) {
1.235 - return regionElement == null ? null : regionElement.getLocalName();
1.236 - }
1.237 -
1.238 - public boolean isSameRegionOfElement(Element regionElement, Element element) {
1.239 - return regionElement == element;
1.240 - }
1.241 -
1.242 -// public Element getComponentRootElementForMarkupDesignBean(MarkupDesignBean markupDesignBean) {
1.243 -// return null;
1.244 -// }
1.245 -
1.246 - public String getInstanceName(Element componentRootElement) {
1.247 - return null;
1.248 - }
1.249 -
1.250 - public boolean isIncludeComponentBox(Element componentRootElement) {
1.251 - return false;
1.252 - }
1.253 -
1.254 - public boolean isSpecialComponent(Element componentRootElement) {
1.255 - return false;
1.256 - }
1.257 -
1.258 - public boolean isTrayComponent(Element componentRootElement) {
1.259 - return false;
1.260 - }
1.261 -
1.262 - public boolean isCssPositionable(Element componentRootElement) {
1.263 - return false;
1.264 - }
1.265 -
1.266 - public boolean isEscapedComponent(Element componentRootElement) {
1.267 - return false;
1.268 - }
1.269 -
1.270 - public Element getParentComponent(Element componentRootElement) {
1.271 - return null;
1.272 - }
1.273 -
1.274 - public boolean isContainerComponent(Element componentRootElement) {
1.275 - return false;
1.276 - }
1.277 -
1.278 -// public String[] getEditablePropertyNames(Element componentRootElement) {
1.279 -// return new String[0];
1.280 -// }
1.281 -
1.282 - public String[] getEditableProperties(Element componentRootElement) {
1.283 - return new String[0];
1.284 - }
1.285 -
1.286 -// public int getResizeConstraintsForComponent(Element componentRootElement) {
1.287 -// return -1;
1.288 -// }
1.289 - public DomProviderService.ResizeConstraint[] getResizeConstraintsForComponent(Element componentRootElement) {
1.290 - return new DomProviderService.ResizeConstraint[0];
1.291 - }
1.292 -
1.293 - public Element[] getChildComponents(Element componentRootElement) {
1.294 - return new Element[0];
1.295 - }
1.296 -
1.297 - public boolean isRootContainerComponent(Element componentRootElement) {
1.298 - return false;
1.299 - }
1.300 -
1.301 - public boolean isContainerTypeComponent(Element componentRootElement) {
1.302 - return false;
1.303 - }
1.304 -
1.305 - public boolean hasDefaultProperty(Element componentRootElement) {
1.306 - return false;
1.307 - }
1.308 -
1.309 - public boolean focusDefaultProperty(Element componentRootElement, String content) {
1.310 - return false;
1.311 - }
1.312 -
1.313 - public Image getIcon(Element componentRootElement) {
1.314 - return null;
1.315 - }
1.316 -
1.317 -// public org.openide.nodes.Node getNodeRepresentation(Element componentRootElement) {
1.318 -// return null;
1.319 -// }
1.320 -
1.321 - public Element getComponentRootElementFromNode(org.openide.nodes.Node node) {
1.322 - return null;
1.323 - }
1.324 -
1.325 -// public MarkupPosition getDefaultMarkupPositionUnderParent(DesignBean parent) {
1.326 -// return null;
1.327 -// }
1.328 -
1.329 -// public DomProvider.Location computeLocationForPositions(String facet, Point canvasPos, Node documentPosNode, int documentPosOffset, Dimension dimension, boolean isGrid, Element droppeeElement, Element dropeeComponentRootElement, Element defaultParentComponentRootElement) {
1.330 -// return null;
1.331 -// }
1.332 -
1.333 -// public Designer[] findDesignersForNode(org.openide.nodes.Node node) {
1.334 -// return new Designer[0];
1.335 -// }
1.336 -
1.337 - public Element getComponentRootElementForElement(Element element) {
1.338 - return null;
1.339 - }
1.340 -
1.341 - public boolean hasTableResizeSupport(Element tableComponentRootElement) {
1.342 - return false;
1.343 - }
1.344 -
1.345 - public int testResizeColumn(Element tableComponentRootElement, int row, int column, int width) {
1.346 - return 0;
1.347 - }
1.348 -
1.349 - public int testResizeRow(Element tableComponentRootElement, int row, int column, int height) {
1.350 - return 0;
1.351 - }
1.352 -
1.353 - public void resizeColumn(Element tableComponentRootElement, int column, int width) {
1.354 - }
1.355 -
1.356 - public void resizeRow(Element tableComponentRootElement, int row, int height) {
1.357 - }
1.358 -
1.359 - public boolean areLinkedToSameBean(Element oneElement, Element otherElement) {
1.360 - return false;
1.361 - }
1.362 -
1.363 - public Node findPropertyNode(Node root, String xpaths) {
1.364 - return null;
1.365 - }
1.366 - } // End of DummyDomProviderService.
1.367 -
1.368 // private static class ErrorPanelCallbackImpl implements DomProvider.ErrorPanelCallback {
1.369 // private final WebForm webForm;
1.370 //