Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Schindl2011-05-12 17:24:34 +0000
committerThomas Schindl2011-05-12 17:24:34 +0000
commit6bcf7f1a206aa1c62fe7abda88169a957966c436 (patch)
treedeb91009f1481b58372714e0c7e7af6e6a0e5c17
parent1679d8135e84e4c43e8dd16b0d5696062b18ee93 (diff)
downloadorg.eclipse.e4.tools-6bcf7f1a206aa1c62fe7abda88169a957966c436.tar.gz
org.eclipse.e4.tools-6bcf7f1a206aa1c62fe7abda88169a957966c436.tar.xz
org.eclipse.e4.tools-6bcf7f1a206aa1c62fe7abda88169a957966c436.zip
Bug 345629 - [ModelTooling] Removeing element leaves dangling referencesv20110912-2000v20110516-1030
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ApplicationEditor.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ApplicationEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ApplicationEditor.java
index 93ef8987..846494bc 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ApplicationEditor.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ApplicationEditor.java
@@ -395,7 +395,7 @@ public class ApplicationEditor extends AbstractComponentEditor {
handler.setElementId(prefix + "handlers." + handlerPage.idField.getText().trim()); //$NON-NLS-1$
}
- if (!application.getBindingTables().isEmpty()) {
+ if (application.getBindingTables().size() != 0) {
if (keyPage.keyField.getText().trim().length() > 0 && !keyPage.bindtableViewer.getSelection().isEmpty()) {
keyBinding = CommandsFactoryImpl.eINSTANCE.createKeyBinding();
keyBinding.setKeySequence(keyPage.keyField.getText().trim());
@@ -543,7 +543,7 @@ public class ApplicationEditor extends AbstractComponentEditor {
@Override
public boolean isPageComplete() {
- if (keyField.getText().trim().isEmpty()) {
+ if (keyField.getText().trim().length() == 0) {
return true;
} else {
return !bindtableViewer.getSelection().isEmpty();
@@ -632,7 +632,7 @@ public class ApplicationEditor extends AbstractComponentEditor {
@Override
public boolean isPageComplete() {
- if (labelField.getText().trim().isEmpty() && iconField.getText().trim().isEmpty()) {
+ if (labelField.getText().trim().length() == 0 && iconField.getText().trim().length() == 0) {
return true;
} else {
return !menuViewer.getSelection().isEmpty();
@@ -721,7 +721,7 @@ public class ApplicationEditor extends AbstractComponentEditor {
@Override
public boolean isPageComplete() {
- if (labelField.getText().trim().isEmpty() && iconField.getText().trim().isEmpty()) {
+ if (labelField.getText().trim().length() == 0 && iconField.getText().trim().length() == 0) {
return true;
} else {
return !toolbarViewer.getSelection().isEmpty();

Back to the top