MODEL: Delete unnecessary class and library. 06/15106/1
authoryserzero <yser.lee@samsung.com>
Thu, 16 Jan 2014 22:09:24 +0000 (07:09 +0900)
committeryserzero <yser.lee@samsung.com>
Thu, 16 Jan 2014 22:09:24 +0000 (07:09 +0900)
Change-Id: I72aeb94051d064303637f6f0a5592b03c05716b2
Signed-off-by: yserzero <yser.lee@samsung.com>
org.tizen.webuibuilder/.classpath
org.tizen.webuibuilder/META-INF/MANIFEST.MF
org.tizen.webuibuilder/lib/jericho-html-3.3.jar [deleted file]
org.tizen.webuibuilder/src/org/tizen/webuibuilder/model/html/JerichoUtil.java [deleted file]

index 73c0327..a6ac688 100644 (file)
@@ -1,7 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
        <classpathentry exported="true" kind="lib" path="lib/nekohtml-1.9.18.jar"/>
-       <classpathentry exported="true" kind="lib" path="lib/jericho-html-3.3.jar"/>
        <classpathentry exported="true" kind="lib" path="lib/json-simple-1.1.1.jar"/>
        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
        <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
index 53f5ca9..a45bbd5 100644 (file)
@@ -52,5 +52,4 @@ Bundle-ClassPath: .,
  lib/phloc-css-3.5.5.jar,
  lib/phloc-commons-4.0.8.jar,
  lib/nekohtml-1.9.18.jar,
- lib/jericho-html-3.3.jar,
  lib/json-simple-1.1.1.jar
diff --git a/org.tizen.webuibuilder/lib/jericho-html-3.3.jar b/org.tizen.webuibuilder/lib/jericho-html-3.3.jar
deleted file mode 100644 (file)
index 511e772..0000000
Binary files a/org.tizen.webuibuilder/lib/jericho-html-3.3.jar and /dev/null differ
diff --git a/org.tizen.webuibuilder/src/org/tizen/webuibuilder/model/html/JerichoUtil.java b/org.tizen.webuibuilder/src/org/tizen/webuibuilder/model/html/JerichoUtil.java
deleted file mode 100644 (file)
index 8fb8827..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-/*
- * UI Builder
- *
- * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-
-package org.tizen.webuibuilder.model.html;
-
-import java.util.List;
-
-import net.htmlparser.jericho.Attribute;
-import net.htmlparser.jericho.Attributes;
-import net.htmlparser.jericho.Element;
-import net.htmlparser.jericho.EndTag;
-import net.htmlparser.jericho.OutputDocument;
-import net.htmlparser.jericho.StartTag;
-
-import org.tizen.webuibuilder.BuilderConstants;
-
-
-public class JerichoUtil {
-
-    public static final String QUOTATION_MARK = BuilderConstants.QUOTATION_MARK;
-
-    public JerichoUtil() {
-    }
-
-    public static void addElement(OutputDocument output, Element element, Element refElement,
-                                  String childElement) {
-        if (output == null || element == null) {
-            return;
-        }
-
-        List<Element> children = element.getChildElements();
-        int size = children.size();
-        if (size > 0) {
-            Element lastElement = children.get(size - 1);
-            for (int i = 0; i < size; i++) {
-                Element child = children.get(i);
-                if (child.equals(refElement)) {
-                    lastElement = children.get(i - 1);
-                    break;
-                }
-            }
-            StringBuilder newTag = new StringBuilder();
-            if (lastElement.isEmptyElementTag()) {
-                StartTag startTag = lastElement.getStartTag();
-                newTag.append(startTag.toString());
-                newTag.append(childElement);
-                output.replace(startTag, newTag);
-            } else {
-                EndTag endTag = lastElement.getEndTag();
-                newTag.append(endTag.toString());
-                newTag.append(childElement);
-                output.replace(endTag, newTag);
-            }
-        } else {
-            StringBuilder newTag = new StringBuilder();
-            StartTag startTag = element.getStartTag();
-            newTag.append(startTag.toString());
-            newTag.append(childElement);
-            output.replace(startTag, newTag);
-        }
-
-        // System.out.println("~~~addElement() outputDocument=" + output);
-    }
-
-    public static void setAttribute(OutputDocument output, Element element, String name,
-                                    String value) {
-        if (output == null || element == null) {
-            return;
-        }
-
-        StartTag startTag = element.getStartTag();
-        Attributes attributes = startTag.parseAttributes();
-        Attribute attribute = attributes.get(name);
-        String startTagStr = startTag.toString();
-        StringBuilder newStartTag = new StringBuilder();
-        if (attribute == null) {
-            String tag = startTagStr.substring(0, startTag.toString().length() - 1);
-            newStartTag.append(tag);
-            newStartTag.append(BuilderConstants.SPACE);
-            newStartTag.append(name);
-            newStartTag.append(BuilderConstants.EQUAL + QUOTATION_MARK);
-            newStartTag.append(value);
-            newStartTag.append(QUOTATION_MARK);
-            newStartTag.append(BuilderConstants.CLOSE_TRI_BRACKET);
-        } else {
-            int nameIndex = startTagStr.indexOf(name);
-            int startValueIndex = startTagStr.indexOf(QUOTATION_MARK, nameIndex);
-            int endValueIndex = startTagStr.indexOf(QUOTATION_MARK, startValueIndex + 1);
-            newStartTag.append(startTagStr);
-            newStartTag.replace(startValueIndex + 1, endValueIndex, value);
-        }
-        output.replace(startTag, newStartTag);
-        // System.out.println("~~~setAttribute() outputDocument=" + output);
-    }
-
-}