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

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


            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)) {
              command = new CompoundCommand();
              command.append(deleteEntryCommand);
              command.append(removeValueCommand);
View Full Code Here


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

      ServerData serverData = RfcFactory.eINSTANCE.createServerData();
      ServerDataItemProvider serverDataItemProvider = (ServerDataItemProvider) getRootAdapterFactory().adapt(serverData, IItemPropertySource.class);
      List<IItemPropertyDescriptor> descriptors = serverDataItemProvider.getPropertyDescriptors(object);
      for (IItemPropertyDescriptor descriptor : descriptors) {
        itemPropertyDescriptors.add(new DelegatingItemPropertyDescriptor(descriptor, RfcPackage.Literals.SERVER_DATA_STORE_ENTRY__VALUE));
      }
View Full Code Here

    }

    @Produces
    @Named("nplServerData")
    public ServerData createNplServerData() {
        ServerData data = RfcFactory.eINSTANCE.createServerData();
        data.setGwhost("nplhost");
        data.setGwserv("3342");
        data.setProgid("JCO_SERVER");
        data.setRepositoryDestination("nplDest");
        data.setConnectionCount("2");
        data.setTrace("1");
        return data;
    }
View Full Code Here

TOP

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

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.