@Override protected String[] translate(ProcessVariableAddressTransfer transfer, TransferData transferData) { final IProcessVariableAddress[] pvs = (IProcessVariableAddress[]) ProcessVariableAddressTransfer.getInstance().nativeToJava(transferData); List<String> pvNames = new ArrayList<String>(); if (pvs != null) { for (IProcessVariableAddress pv : pvs) { pvNames.add(pv.getFullName()); } } return pvNames.toArray(new String[pvNames.size()]); }
public ProcessVariableAddressDropTargetListener(final EditPartViewer viewer) { super(viewer, ProcessVariableAddressTransfer.getInstance()); }