diff options
author | rschnekenbu | 2013-12-23 15:14:02 +0000 |
---|---|---|
committer | rschnekenbu | 2013-12-23 15:14:02 +0000 |
commit | 0f645c65e35c4c1e148df865bf45b95763462ed2 (patch) | |
tree | ceb7ec35de3798775b6424823138f73ce370155e | |
parent | bed1acf04750a6af82aa812449f194fc33658d4e (diff) | |
download | org.eclipse.papyrus-0f645c65e35c4c1e148df865bf45b95763462ed2.tar.gz org.eclipse.papyrus-0f645c65e35c4c1e148df865bf45b95763462ed2.tar.xz org.eclipse.papyrus-0f645c65e35c4c1e148df865bf45b95763462ed2.zip |
424402: [Core] Runtime deployment of the element types shall be possible
https://bugs.eclipse.org/bugs/show_bug.cgi?id=424402
- isEmpty...
-rw-r--r-- | plugins/customization/org.eclipse.papyrus.customization.palette/src/org/eclipse/papyrus/customization/palette/handler/DeployPaletteConfigurationHandler.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/customization/org.eclipse.papyrus.customization.palette/src/org/eclipse/papyrus/customization/palette/handler/DeployPaletteConfigurationHandler.java b/plugins/customization/org.eclipse.papyrus.customization.palette/src/org/eclipse/papyrus/customization/palette/handler/DeployPaletteConfigurationHandler.java index a7898adbc7f..7b5d16d25c9 100644 --- a/plugins/customization/org.eclipse.papyrus.customization.palette/src/org/eclipse/papyrus/customization/palette/handler/DeployPaletteConfigurationHandler.java +++ b/plugins/customization/org.eclipse.papyrus.customization.palette/src/org/eclipse/papyrus/customization/palette/handler/DeployPaletteConfigurationHandler.java @@ -111,7 +111,7 @@ public class DeployPaletteConfigurationHandler extends AbstractHandler implement boolean alreadyDeployed = false;
// update values from the editor
- if(dialog.paletteName !=null && !dialog.paletteName.isEmpty()) {
+ if(dialog.paletteName !=null && dialog.paletteName.length()>0) {
paletteName = dialog.paletteName;
alreadyDeployed = true;
} else {
@@ -125,14 +125,14 @@ public class DeployPaletteConfigurationHandler extends AbstractHandler implement validUpdate = false;
}
- if(dialog.editorID !=null && !dialog.editorID.isEmpty()) {
+ if(dialog.editorID !=null && dialog.editorID.length()>0) {
editorID = dialog.editorID;
alreadyDeployed = true;
}else {
validUpdate = false;
}
- if(dialog.requiredProfiles !=null && !dialog.requiredProfiles.isEmpty()) {
+ if(dialog.requiredProfiles !=null && dialog.requiredProfiles.length()>0) {
requiredProfiles = PaletteUtil.getProfileSetFromString(dialog.requiredProfiles);
}else {
validUpdate = false;
|