diff options
author | Lars Vogel | 2012-12-04 15:08:00 +0000 |
---|---|---|
committer | Lars Vogel | 2012-12-04 15:08:00 +0000 |
commit | 582f4ce2dd45664321dd5fc923f508b9f2a9f179 (patch) | |
tree | f47afcf79e6f4f0a278364b737d81cda89b4c334 | |
parent | bcdf13b047ef504fa3006b33a32f416cf73b6f55 (diff) | |
download | org.eclipse.e4.tools-582f4ce2dd45664321dd5fc923f508b9f2a9f179.tar.gz org.eclipse.e4.tools-582f4ce2dd45664321dd5fc923f508b9f2a9f179.tar.xz org.eclipse.e4.tools-582f4ce2dd45664321dd5fc923f508b9f2a9f179.zip |
Bug 395371 - Wizard to convert part of the application model to a
fragment
Removes Java 1.6 API call String.isEmpty()
-rw-r--r-- | bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/ModelEditor.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/ModelEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/ModelEditor.java index 2912de09..e14fa8de 100644 --- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/ModelEditor.java +++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/ModelEditor.java @@ -626,7 +626,7 @@ public class ModelEditor { VirtualEntry<?> ve = (VirtualEntry<?>) s.getFirstElement(); EObject container = (EObject) ve.getOriginalParent(); String containerId = ((MApplicationElement) container).getElementId(); - if (containerId == null || containerId.isEmpty()) { + if (containerId == null || containerId.length() == 0) { MessageDialog.openError(viewer.getControl().getShell(), null, messages.ModelEditor_ExtractFragment_NoParentId); return; } @@ -760,7 +760,7 @@ public class ModelEditor { MApplicationElement oe = (MApplicationElement) s.getFirstElement(); EObject container = ((EObject) oe).eContainer(); String containerId = ((MApplicationElement) container).getElementId(); - if (containerId == null || containerId.isEmpty()) { + if (containerId == null || containerId.length()==0) { MessageDialog.openError(viewer.getControl().getShell(), null, messages.ModelEditor_ExtractFragment_NoParentId); return; } |