Summary: | Support for file Drag and Drop | ||
---|---|---|---|
Product: | JMeter - Now in Github | Reporter: | Dan Corneanu <cdan> |
Component: | Main | Assignee: | JMeter issues mailing list <issues> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | cdan, p.mouawad |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | Dragging and Dropping files to JMeter |
Description
Dan Corneanu
2011-12-03 21:20:43 UTC
Created attachment 28021 [details]
Dragging and Dropping files to JMeter
This is a quick hack that adds support for Dragging and Dropping files to JMeter.
The patch adds a TopLevelTransferHandler to the MainFrame. The transfer handler handles file drops.
(In reply to comment #1) > Created attachment 28021 [details] > Dragging and Dropping files to JMeter > > This is a quick hack that adds support for Dragging and Dropping files to > JMeter. > The patch adds a TopLevelTransferHandler to the MainFrame. The transfer > handler handles file drops. The new class org.apache.jmeter.gui.action.LoadDraggedFile is a big hack. It was added to this package just to open up access to the Close and Load Command(s). How can this be implemented in a clean way, reusing the Close and Load command? 1. would it be better to add a new Command for handling file drops? kind of like LoadRecentProject. 2. How can the Transferable object from the TopLevelTransferHandler be passed to the new command? Thanks for the patch. Applied with minor changes: - Javadocs - Apache Headers - Added check for Dnd file to ensure it's a JMX Plan Date: Sun Jan 15 15:05:30 2012 New Revision: 1231684 URL: http://svn.apache.org/viewvc?rev=1231684&view=rev Log: Bug 52281 - Support for file Drag and Drop Added: jmeter/trunk/src/core/org/apache/jmeter/gui/TopLevelTransferHandler.java (with props) jmeter/trunk/src/core/org/apache/jmeter/gui/action/LoadDraggedFile.java (with props) Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/MainFrame.java jmeter/trunk/xdocs/changes.xml Date: Sun Jan 15 21:06:49 2012 New Revision: 1231754 URL: http://svn.apache.org/viewvc?rev=1231754&view=rev Log: Bug 52281 - Support for file Drag and Drop Had to find an alternate implementation as TransferHandler.TransferSupport is not supported in JDK5 Removed: jmeter/trunk/src/core/org/apache/jmeter/gui/TopLevelTransferHandler.java Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/MainFrame.java This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2669 |