Summary: | [templates] Allow to distinguish preview from real resolve | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Georgi Sabev <georgethebeatle> |
Component: | Text | Assignee: | Platform-Text-Inbox <platform-text-inbox> |
Status: | ASSIGNED --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P5 | CC: | daniel_megert |
Version: | 3.5.1 | Keywords: | helpwanted |
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Georgi Sabev
2009-09-28 04:52:25 EDT
Actually the first call of resolve is to generate the preview and the second call is to generate the code. Maybe you should keep the generated code for preview locally and to insert it in the code rather than to call resolve again, because in certain cases this causes an inconsistency between preview and what is inserted in the code. This currently works as designed: we want to make sure that whenever a variable is actually used (be it in the preview or the code), it gets resolved to the latest. Good example is a a timestamp. We could offer separate path/API for preview resolving. This would also be handy for variables that prompt the user for input and which should not happen during preview. "We could offer separate path/API for preview resolving." This sounds acceptable. If I can separate preview from actual code generation I would be able to generate a sample or stub or just know that the last generated ID was generated for the preview. Please update the comments to mark your progress. >Please update the comments to mark your progress.
There are currently no plans to work on this.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. |