/*******************************************************************************
- * Copyright (c) 2007, 2018 Association for Decentralized Information Management
+ * Copyright (c) 2007, 2020 Association for Decentralized Information Management
* in Industry THTH ry.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
*
* Contributors:
* VTT Technical Research Centre of Finland - initial API and implementation
- * Semantum Oy - gitlab #66 - parallel/spatial optimization
+ * Semantum Oy - gitlab #60, #454 - parallel/spatial optimization
*******************************************************************************/
package org.simantics.g2d.diagram.handler.impl;
if (PERF) {
long endTime = System.nanoTime();
- LOGGER.info("[picked " + result.size() + " elements @ " + request.pickArea + "] total pick time : " + ((endTime - startTime)*1e-6));
+ LOGGER.info("[picked {} elements @ {}] total pick time {} ms", result.size(), request.pickArea, ((endTime - startTime)*1e-6));
}
if (!result.isEmpty()) {
if (request.pickSorter != null) {
List<IElement> elems = new ArrayList<>(result);
- request.pickSorter.sort(elems);
+ request.pickSorter.sort(request, elems);
finalResult.addAll(elems);
} else {
finalResult.addAll(result);