Summary: | Copy image in the system buffer when hitting CTRL-C in a diagram | ||
---|---|---|---|
Product: | [Modeling] Sirius | Reporter: | Cedric Brun <cedric.brun> |
Component: | Diagram | Assignee: | Project Inbox <sirius.diagram-inbox> |
Status: | NEW --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | maxime.porhel, pierre-charles.david |
Version: | 3.1.0 | Keywords: | triaged |
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Cedric Brun
2016-05-03 08:42:22 EDT
It looks like it could have a negative performance impact to render a potentialy large image and allocate the corresponding buffer on each innocent-looking Ctrl-c. How about a "Copy to clipboard" alternative (and maybe an "Export selection only" flag too) in the "Export as image" dialog? (In reply to Pierre-Charles David from comment #1) > It looks like it could have a negative performance impact to render a > potentialy large image and allocate the corresponding buffer on each > innocent-looking Ctrl-c. > > How about a "Copy to clipboard" alternative (and maybe an "Export selection > only" flag too) in the "Export as image" dialog? As long as I can get it into the clipboard with a keyboard shortcut, I'm all for it! With Windows, CTRL+C with diagram selected or with a slection of diagram element already put the corresponding image in the system clipboard. Then you can paste the image in an other tool (Ms Word, Paint, ...). This is done by AWT in GMF (and in Sirius), see: . org.eclipse.gmf.runtime.diagram.ui.render.internal.providers.ImageSupportGlobalActionHandler.getCopyCommand() . AWTClipboardHelper.getInstance().isImageCopySupported() > private static final boolean IMAGE_COPY_SUPPORTED = System.getProperty(
> "os.name").toUpperCase().startsWith("WIN"); //$NON-NLS-1$ //$NON-NLS-2$
|