Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 145389 Details for
Bug 264837
Default Extension File for Model
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
checks extension patch
checks-extension-patch.txt (text/plain), 1.89 KB, created by
Knut Wannheden
on 2009-08-24 04:54:03 EDT
(
hide
)
Description:
checks extension patch
Filename:
MIME Type:
Creator:
Knut Wannheden
Created:
2009-08-24 04:54:03 EDT
Size:
1.89 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.xtext.generator >Index: src/org/eclipse/xtext/generator/validation/CheckFragment.xpt >=================================================================== >RCS file: /cvsroot/modeling/org.eclipse.tmf/org.eclipse.xtext/plugins/org.eclipse.xtext.generator/src/org/eclipse/xtext/generator/validation/CheckFragment.xpt,v >retrieving revision 1.3 >diff -u -r1.3 CheckFragment.xpt >--- src/org/eclipse/xtext/generator/validation/CheckFragment.xpt 29 May 2009 07:28:45 -0000 1.3 >+++ src/org/eclipse/xtext/generator/validation/CheckFragment.xpt 24 Aug 2009 08:53:39 -0000 >@@ -17,6 +17,9 @@ > > «DEFINE generate(List[String] packageQNames) FOR Grammar» > >+«FILE validationPackage().asPath() + "/" + getName() + "Extensions.ext" SRC-» >+«ENDFILE» >+ > «FILE validationPackage().asPath() + "/" + getName() + "FastChecks.chk" SRC-» > /* > * This check file is used to specify inexpensive constraints for the >@@ -31,6 +34,8 @@ > * context Class WARNING "Name should start with a capital" : > * name.toFirstUpper() == name; > */ >+ >+extension «validationPackage().replaceAll('\\.', '::')»::«getName()»Extensions; > «ENDFILE» > > «FILE validationPackage().asPath() + "/" + getName() + "Checks.chk" SRC-» >@@ -46,6 +51,8 @@ > * context Class WARNING "Name should start with a capital" : > * name.toFirstUpper() == name; > */ >+ >+extension «validationPackage().replaceAll('\\.', '::')»::«getName()»Extensions; > «ENDFILE» > > «FILE validationPackage().asPath() + "/" + getName() + "ExpensiveChecks.chk" SRC-» >@@ -56,11 +63,13 @@ > * > * import myDsl; > * >- * extension org::xtext::example::MyExtensions; >+ * extension org::xtext::example::validation::MyDslExtensions; > * > * context Model ERROR "Inconsistent Model" : > * invariantThatIsComplexToCheck(); > */ >+ >+extension «validationPackage().replaceAll('\\.', '::')»::«getName()»Extensions; > «ENDFILE» > > «FILE getCheckValidatorName().asPath()+".java" SRC_GEN»
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
sven.efftinge
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 264837
: 145389