Author: scabanovich
Date: 2009-09-25 12:21:56 -0400 (Fri, 25 Sep 2009)
New Revision: 17761
Removed:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/jst/web/tld/TLDUtil.java
Modified:
trunk/common/plugins/org.jboss.tools.common.model/META-INF/MANIFEST.MF
Log:
https://jira.jboss.org/jira/browse/JBIDE-4950
Modified: trunk/common/plugins/org.jboss.tools.common.model/META-INF/MANIFEST.MF
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/META-INF/MANIFEST.MF 2009-09-25
16:14:10 UTC (rev 17760)
+++ trunk/common/plugins/org.jboss.tools.common.model/META-INF/MANIFEST.MF 2009-09-25
16:21:56 UTC (rev 17761)
@@ -59,7 +59,6 @@
org.jboss.tools.common.model.loaders.impl,
org.jboss.tools.common.model.search,
org.jboss.tools.common.model.search.impl,
- org.jboss.tools.jst.web.tld,
images,
org.jboss.tools.common.model.refactoring
Require-Bundle: org.jboss.tools.common;visibility:=reexport,
Deleted:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/jst/web/tld/TLDUtil.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/jst/web/tld/TLDUtil.java 2009-09-25
16:14:10 UTC (rev 17760)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/jst/web/tld/TLDUtil.java 2009-09-25
16:21:56 UTC (rev 17761)
@@ -1,51 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is 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:
- * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.jst.web.tld;
-
-import org.jboss.tools.common.model.*;
-
-public class TLDUtil {
- static String FILE_ENTITIES =
".FileTLD_PRO.FileTLD_1_2.FileTLD_2_0.FileTLD_2_1."; //$NON-NLS-1$
- static String TAG_ENTITIES = ".TLDTag.TLDTag12.TLDTag21."; //$NON-NLS-1$
- static String ATTR_ENTITIES = ".TLDAttribute.TLDAttribute12.";
//$NON-NLS-1$
-
- public static boolean isTaglib(XModelObject o) {
- return isOfEntity(o, FILE_ENTITIES);
- }
-
- public static boolean isTag(XModelObject o) {
- return isOfEntity(o, TAG_ENTITIES);
- }
-
- public static boolean isAttribute(XModelObject o) {
- return isOfEntity(o, ATTR_ENTITIES);
- }
-
- private static boolean isOfEntity(XModelObject o, String entities) {
- return entities.indexOf("." + o.getModelEntity().getName() +
".") >= 0; //$NON-NLS-1$//$NON-NLS-2$
- }
-
- public static String getTagDescription(XModelObject o) {
- String attr = (o.getModelEntity().getAttribute("info") != null) ?
"info" : "description"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- String s = o.getAttributeValue(attr);
- s = (s == null) ? "" : s.trim(); //$NON-NLS-1$
- StringBuffer sb = new StringBuffer();
- for (int i = 0; i < s.length(); i++) {
- char c = s.charAt(i);
- if(c == '<') sb.append("<"); //$NON-NLS-1$
- else if(c == '>') sb.append(">"); //$NON-NLS-1$
- else sb.append(c);
- }
- return sb.toString();
- }
-
-}
-