protected void createChangeTrackers() { fNamspaceEditHelper = createEditController(); fNamspaceEditHelper.setFeature(BPELPackage.eINSTANCE.getProcess_TargetNamespace()); fNamspaceEditHelper.setViewIValue( new DelegateIValue(new TextIValue(namespaceText)) { @Override public String get() { String text = fDelegate.get().toString(); return EMPTY_STRING.equals(text) ? null : NamespaceUtils.convertNamespaceToUri(text); } @Override public void set(Object object) { if (object == null) { fDelegate.set(EMPTY_STRING); return; } fDelegate.set(NamespaceUtils.convertUriToNamespace(object.toString())); } }); fNamspaceEditHelper.startListeningTo(namespaceText); }
@Override protected void basicSetInput(EObject newInput) { super.basicSetInput(newInput); fNamspaceEditHelper.setInput(newInput); }