Browse Source

Dependency to apache.commons removed

benjamin.schwertfeger@gmail.com 13 years ago
parent
commit
78459204f6

+ 1 - 2
plugins/org.yakindu.sct.model.sgraph/META-INF/MANIFEST.MF

@@ -17,6 +17,5 @@ Require-Bundle: org.eclipse.core.runtime,
  org.eclipse.emf.ecore.xmi,
  org.eclipse.xtext,
  de.itemis.xtext.utils.gmf,
- org.eclipse.gmf.runtime.emf.core,
- org.apache.commons.lang
+ org.eclipse.gmf.runtime.emf.core
 Bundle-ActivationPolicy: lazy

+ 1 - 2
plugins/org.yakindu.sct.model.sgraph/src/org/yakindu/sct/model/sgraph/resource/SGraphInjectMembersResource.java

@@ -16,7 +16,6 @@ import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
 
-import org.apache.commons.lang.StringUtils;
 import org.eclipse.emf.common.notify.Adapter;
 import org.eclipse.emf.common.notify.Notification;
 import org.eclipse.emf.common.notify.impl.AdapterImpl;
@@ -127,7 +126,7 @@ public class SGraphInjectMembersResource extends InjectMembersResource {
 	}
 
 	private Statechart getStatechart(EObject context, String substatechartId) {
-		if (StringUtils.isEmpty(substatechartId)) {
+		if (substatechartId == null || substatechartId.length() == 0) {
 			return null;
 		}
 		IScope scope = scopeProvider.getScope(context.eResource(),