Package org.fusesource.camel.component.sap.model.rfc

Examples of org.fusesource.camel.component.sap.model.rfc.DestinationData


          EObject eObject = (EObject) obj;
          editingDomain = AdapterFactoryEditingDomain.getEditingDomainFor(eObject);
          if (editingDomain != null) {
            deleteEntryCommand = DeleteCommand.create(editingDomain, Collections.singletonList(eObject));
            if (eObject instanceof DestinationDataStoreEntryImpl) {
              DestinationData destinationData = ((DestinationDataStoreEntryImpl)eObject).getValue();
              removeValueCommand = RemoveCommand.create(editingDomain, destinationData.eContainer(), RfcPackage.Literals.DESTINATION_DATA_STORE__DESTINATION_DATA, Collections.singletonList(destinationData));
            } else if (eObject instanceof ServerDataStoreEntryImpl) {
              ServerData serverData = ((ServerDataStoreEntryImpl)eObject).getValue();
              removeValueCommand = RemoveCommand.create(editingDomain, serverData.eContainer(), RfcPackage.Literals.SERVER_DATA_STORE__SERVER_DATA, Collections.singletonList(serverData));
            }
            if (canDelete(selection)) {
View Full Code Here


  public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
      if (itemPropertyDescriptors == null)
      {
        itemPropertyDescriptors = new ArrayList<IItemPropertyDescriptor>();

        DestinationData destinationData = RfcFactory.eINSTANCE.createDestinationData();
        DestinationDataItemProvider destinationDataItemProvider = (DestinationDataItemProvider) getRootAdapterFactory().adapt(destinationData, IItemPropertySource.class);
        List<IItemPropertyDescriptor> descriptors = destinationDataItemProvider.getPropertyDescriptors(object);
        for(IItemPropertyDescriptor descriptor: descriptors) {
          itemPropertyDescriptors.add(new DelegatingItemPropertyDescriptor(descriptor, RfcPackage.Literals.DESTINATION_DATA_STORE_ENTRY__VALUE));
        }
View Full Code Here

    }

    @Produces
    @Named("nplDestinationData")
    public DestinationData createDestinationData() {
        DestinationData data = RfcFactory.eINSTANCE.createDestinationData();
        data.setAshost("nplhost");
        data.setSysnr("42");
        data.setClient("001");
        data.setUser("developer");
        data.setPasswd("ch4ngeme");
        data.setLang("en");
        return data;
    }
View Full Code Here

TOP

Related Classes of org.fusesource.camel.component.sap.model.rfc.DestinationData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.