Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351197 - Remove Context column in 'EGL Templates' workspace preferences
Summary: Remove Context column in 'EGL Templates' workspace preferences
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Zhi Zhu CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-05 10:51 EDT by Alice Connors CLA
Modified: 2017-02-23 14:20 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alice Connors CLA 2011-07-05 10:51:15 EDT
The table on the EGL Templates preference page has a Context column that displays the capability that each template is associated with.  Do we only have a single EGL capability (egl-core) in EDT?  If so, this column should be removed.  

(Capabilities are listed under General preferences.  I recall Justin saying in a scrum that he didn't see them in Linux.  I do see them in Windows.)
Comment 1 Zhi Zhu CLA 2011-08-17 00:39:01 EDT
Will, Do we need remove the 'Context' column, it seems egl-core is not the only EGL capability, I found another called egl-rui for widget and Rich UI handler
Comment 2 Will Smythe CLA 2011-08-17 01:33:27 EDT
It seems like we're misusing the Context column today. If you look at the Java > Editor > Templates panel, you'll notice the "Context" column indicates which context (Javadoc, Java, Java type members, etc) a template is applicable for. We currently have "edt-core" and "egl-rui", but certainly some templates under edt-core can be used in the context of RUI.

So, my thoughts ... 

1) Keep the Context column since we may have EGLDoc someday soon (which would be another context) and because other vendors (i.e. generator providers) will be able to contribute code templates (that support new stereotypes/annotations they may have created).

2) Put all "core" templates under an "EGL Core" context (Tim can help with the name). These templates cover the base language features (FOR loops, if statements, etc). A second context would include all "extensions" (i.e. things we're adding support for on top of the base, for example: RUIHandler).

Tim - can you add your thoughts on this since this ties into the separation you're trying to keep between the core and the extensions?
Comment 3 Tony Chen CLA 2011-08-17 01:46:51 EDT
maybe we can use the context column to specify which compiler the template applies to. Only available templates can be used for the selected compiler. 

If we have a set of templates which apply to any compiler, we can make that egl-core.
Comment 4 Zhi Zhu CLA 2011-09-02 00:50:11 EDT
fixed
Comment 5 Lisa Lasher CLA 2011-10-11 16:33:37 EDT
Closing this defect.