Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 1526 - Snippet evaluation should support imports (1G47213)
Summary: Snippet evaluation should support imports (1G47213)
Status: RESOLVED DUPLICATE of bug 1633
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 3945 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-10-10 22:14 EDT by Dirk Baeumer CLA
Modified: 2002-03-18 15:23 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2001-10-10 22:14:49 EDT
I want to write code like this in a snippet file

	import com.ibm.swt.widgets.*

	Shell shell= new Shell();
	shell.open();


NOTES:
EG (11/13/00 2:36:42 PM)
	moving to ITPJCORE 

PM (11/13/00 11:08:57 AM)
	Import statements are not supposed to be declared inside snippets, however there is a mechanism to attach them to the
	page, along with global variables.

	We would need a new parser in order to process imports amongst regular statements+expressions, and it does not fit along
	with the intent of copying the snippet and paste it inside some method body, and it still works.

	Moving back to ITPJUI.

EG (11/17/00 12:35:31 PM)
	the "attach" mechanism isn't useful enough to surface in the UI.
	>>with the intent of copying the snippet and paste it inside some method body, and it still works
	this is not a very stron argument. The goals of snippet support is to experiment with code not
	to write it so that it can be pasted into a method. 
	Moving to Active Issues.
Comment 1 DJ Houghton CLA 2001-10-24 06:35:13 EDT
PRODUCT VERSION:
	TestPass 11/10

Comment 2 Darin Wright CLA 2002-02-26 14:57:52 EST
*** Bug 3945 has been marked as a duplicate of this bug. ***
Comment 3 Darin Wright CLA 2002-03-18 15:23:50 EST

*** This bug has been marked as a duplicate of 1633 ***