org.eclipse.e4.ui.model.workbench,
org.eclipse.e4.ui.services,
org.eclipse.e4.core.contexts,
- org.eclipse.e4.ui.workbench
+ org.eclipse.e4.ui.workbench,
+ org.slf4j.api;bundle-version="1.7.20"
Export-Package: org.simantics.diagram,
org.simantics.diagram.adapter,
org.simantics.diagram.connection,
import org.eclipse.jface.viewers.SelectionChangedEvent;\r
import org.eclipse.jface.viewers.StructuredSelection;\r
import org.eclipse.ui.IWorkbenchPartSite;\r
-import org.simantics.Logger;\r
import org.simantics.db.exception.DatabaseException;\r
import org.simantics.diagram.elements.AdaptableImmutableProxyElement;\r
import org.simantics.g2d.canvas.ICanvasContext;\r
import org.simantics.g2d.element.ElementHints;\r
import org.simantics.g2d.element.IElement;\r
import org.simantics.ui.selection.WorkbenchSelectionUtils;\r
-import org.simantics.utils.datastructures.hints.IHintObservable;\r
import org.simantics.utils.datastructures.hints.IHintContext.Key;\r
+import org.simantics.utils.datastructures.hints.IHintObservable;\r
import org.simantics.utils.threads.IThreadWorkQueue;\r
import org.simantics.utils.threads.ThreadUtils;\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
\r
/**\r
* A canvas participant that listens to the #0 mouse selection and provides it\r
*/\r
public class WorkbenchSelectionProvider extends AbstractCanvasParticipant implements IPostSelectionProvider, ElementJSON {\r
\r
+ private static final Logger LOGGER = LoggerFactory.getLogger(WorkbenchSelectionProvider.class);\r
+\r
private static final long POST_SELECTION_DELAY = 300;\r
\r
@Dependency protected Selection selection;\r
try {\r
return Optional.ofNullable( WorkbenchSelectionUtils.getPossibleJSON(sel) );\r
} catch (DatabaseException e) {\r
- Logger.defaultLogError(e);\r
+ LOGGER.error("Unexpected failure while constructing JSON from element " + element, e);\r
return Optional.empty();\r
}\r
}\r