Today's Messages (off)
| Unanswered Messages (on)
| Forum: OCL |
|---|
| Topic: [Announce] Eclipse OCL 4.1.0 (Kepler) RC1 is now available. |
|---|
| | Forum: Newcomers |
|---|
| Topic: OSGi Application name is null in VisualVM |
|---|
| OSGi Application name is null in VisualVM [message #1060009] |
Wed, 22 May 2013 10:16 |
Stephen Ranger Messages: 2 Registered: November 2012 |
Junior Member |
|
|
When I start my OSGi Application and look at it in VisualVM, the name of the process is "null"
How are you supposed to name your process? I can't find any information regarding this issue. Any help would be appreciated. Thanks!
|
|
| | Topic: Documentation print topic and all subtopics problem |
|---|
| | Topic: With Perl - An internal error occurred during: "Toggle Line Breakpoint (epic)" |
|---|
| With Perl - An internal error occurred during: "Toggle Line Breakpoint (epic)" [message #1059683] |
Tue, 21 May 2013 04:20 |
matan ostrovsky Messages: 1 Registered: May 2013 |
Junior Member |
|
|
I installed:
1. win 7.
2. strawberry Perl.
3. Eclipse (classic) Version: 4.2.2
Build id: M20130204-1200
4. Update the last jave ver. 1.7.0_21
5. install Active Perl
6. copy epic package to C:\eclipse\plugins
in this order.
A. I open a perl file.
B. I try to toggle a break point and I go tthe above problem/excption
Can someone please help?!?!?
Thanks alot.
Matan
|
|
| | Topic: Eclipse crashing |
|---|
Eclipse crashing [message #1059628] |
Mon, 20 May 2013 18:55 |
Alex Van Brunt Messages: 1 Registered: May 2013 |
Junior Member |
|
|
Problem signature:
Problem Event Name: APPCRASH
Application Name: javaw.exe
Application Version: 7.0.210.11
Application Timestamp: 515d999d
Fault Module Name: mshtml.dll
Fault Module Version: 10.0.9200.16576
Fault Module Timestamp: 515e3be5
Exception Code: c0000005
Exception Offset: 0000000000023dfb
OS Version: 6.1.7601.2.1.0.768.3
Locale ID: 1033
Additional Information 1: 29f0
Additional Information 2: 29f09761187f6a0206ca96870540f58a
Additional Information 3: 07eb
Additional Information 4: 07eba0f767ae2e43448db75364b023c9
Every time I hover over a method or anything I get a white box and an error message saying Java(TM) Platform SE binary has stopped working along with this additional information. Any clues as to why this happens? The attachment is what eclipse says afterwards
|
|
| | Topic: editor questions |
|---|
| editor questions [message #1059568] |
Mon, 20 May 2013 10:05 |
David Mising name Messages: 2 Registered: October 2011 |
Junior Member |
|
|
Hi,
I have a general question about the eclipse editor gutter (far left of editor view), is it possible to resize this either .css or via a method call?
I dont want to increase the size of the gutter dynamically, but just change it via a property which then would not get activated until a restart.
|
|
| | Topic: Looking for a "NetCobol using fujitsu 4.1" Corporate Trainer |
|---|
| Looking for a "NetCobol using fujitsu 4.1" Corporate Trainer [message #1059523] |
Mon, 20 May 2013 05:29 |
Ashok Kumar Messages: 1 Registered: May 2013 |
Junior Member |
|
|
Dear ,
we are looking out for a trainer for the below mentioned topics on COBOL.NET.
Please send across the your profile, duration and per day commercials to set up an evaluation to take this further.
Cobol Contents
Introduction to the COBOL Language
Concepts of the COBOL Language
COBOL Language Fundamentals/COBOL Program Structure
Introduction to Build & Group Definition
Identification Division, Environment Division
Data Division
COBOL Data Items, Elementary Group Data Items, Editing Characters
Data Division - File and Data Description
Data Division - Screen Section
COBOL handling of Numbers, Strings, Characters
Procedure Division
Procedure Division - Basic verbs
Procedure Division - Arithmetic
Procedure Division - Conditional expressions
Procedure Division
Procedure Division - PERFORMs
Arrays/Table handling
String Manipulations and Character handling
Searches
Date functions
File Handling (Sequential, relative and indexed)
Sorting and Merging
Sub-programs
Database linking and transactional handling
Report writing
Object COBOL Language Extensions
Compile and runtime directives
Debugging
net Cobol using fujitsu 4.1 (above topics also need to be covered using fujitsu4.1 )
Please reach us @ 09397999969 asap.
Training Location : HYDERABAD,INDIA
|
|
| | Topic: plugin for Sybase Power Builder |
|---|
| | Topic: Search Results: How To Expand All Results In "List View"? |
|---|
| Search Results: How To Expand All Results In "List View"? [message #1059348] |
Fri, 17 May 2013 11:22 |
Steve _____ Messages: 22 Registered: April 2012 |
Junior Member |
|
|
Eclipse has a "Show As List" option for a ctrl+H search ( multi file ). You get this option by going to the far right corner of the Search View and clicking the triangle icon.
The list is composed of list the files where the desired string was found, stating the number of hits in each file:
HelloWorld.java com.acme.first (3 matches ) Utilities.java com.acme.first (4 matches ) SomeClass.java com.acme.first (2 matches )
Is there any way to get Eclipse to expand those results, while still showing it all in a list? For example, actually showing me each of the 3 matches, in the Search View, from HelloWorld.java?
|
|
| | Forum: Subversive |
|---|
| Topic: patch |
|---|
| patch [message #1060206] |
Thu, 23 May 2013 09:49 |
Walter Deodiaus Messages: 1 Registered: May 2013 |
Junior Member |
|
|
I wanted to create a set of patches for files.
I would like to write a java program which traverses the hierarchy and compares files, and if different, creates a patch. Is the API exposed for creating a patch? If so, where is this?
My problem is more complicated. I have two different svn repositories. I'd like to compare my differences in one dir against another one in order to create scripts to update on the other one. Is there an easy way to do this.
I was going to write a script which renames all .svn dirs to .svn0, then copies the .svn from the other dir and does the comparison.
|
|
| | Forum: AJDT |
|---|
| Topic: Debugging LTW weaved classes |
|---|
| Debugging LTW weaved classes [message #1060205] |
Thu, 23 May 2013 09:46 |
Dumitru Boldureanu Messages: 1 Registered: May 2013 |
Junior Member |
|
|
Hello everybody,
I have a Spring + AspectJ application configured with Load Time Weaving.
In Netbeans, I'm having trouble while debugging woven classes methods, for example the methods annotated with @Transactional. I'm able to put break points in this methods, but when I click "Step over" the debugger doesn't go to the next line, it jumps to line 1 and then to other classes...
I found on stackoverflow (eclipse-debug-stepping-with-aspectj) info that this is a bug in AspectJ.
When I run on Eclipse the debugging is OK, "Step over" works fine(with the exception of the first line in method for which is necessary to press it twice).
Also tried running this code in IntelliJ, there I have the same situation as in Netbeans.
I've googled a lot, but I couldn't find good explanation...
Is this a bug indeed? Does Eclipse IDE has a feature or something that permits the debugging to go smooth? If this is a bug, is there a time frame defined when the bug will be fixed, which release?
Is there a solution/configuration parameter to make this work in other IDEs (Netbeans, IntelliJ), tried -XnoInline, but it didn't help.
Thank you in advance,
Dumitru
|
|
| | Forum: QVT-OML |
|---|
| Topic: [Announce] Eclipse QVT Operational 3.3.0 (Kepler) RC1 is now available |
|---|
| | Forum: EclipseLink |
|---|
| Topic: Slow Query Extraction |
|---|
| Slow Query Extraction [message #1060194] |
Thu, 23 May 2013 09:05 |
pdvmipv Mising name Messages: 9 Registered: October 2010 |
Junior Member |
|
|
I have an Oracle database and i use EclipseLink, this is an extract of my persistence classes:
@Entity
@Table(name = "TACOS")
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_TACOS")
@SequenceGenerator(name = "SEQ_TACOS", sequenceName = "SEQ_TACOS", allocationSize = 1, initialValue = 1)
@Basic(optional = false)
@Column(name = "ID_TACOS")
private Long idTacos;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "tacos")
private List<PstdCommon> pstdCommonList;
[b]public List<PstdCommon> getPstdCommonList() {
return pstdCommonList;
}[/b]
@Entity
@Table(name = "PSTD_COMMON")
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_PSTD_TACOS")
@SequenceGenerator(name = "SEQ_PSTD_TACOS", sequenceName = "SEQ_PSTD_TACOS", allocationSize = 1, initialValue = 1)
@Basic(optional = false)
@Column(name = "ID_PSTD_TACOS")
@JoinColumn(name = "ID_TACOS", referencedColumnName = "ID_TACOS")
@ManyToOne(optional = false)
private Tacos tacos;
@OneToOne(cascade = CascadeType.ALL, mappedBy = "pstdCommon")
private PstdPcmAnalog pstdPcmAnalog;
@Entity
@Table(name = "PSTD_PCM_ANALOG")
@JoinColumn(name = "ID_PSTD_TACOS", referencedColumnName = "ID_PSTD_TACOS", insertable = false, updatable = false)
@OneToOne(optional = false)
private PstdCommon pstdCommon;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "pstdPcmAnalog")
private List<PstdPcmGrid> pstdPcmGridList;
@Entity
@Table(name = "PSTD_PCM_GRID")
@EmbeddedId
protected PstdPcmGridPK pstdPcmGridPK;
@JoinColumn(name = "ID_PSTD_TACOS", referencedColumnName = "ID_PSTD_TACOS", insertable = false, updatable = false)
@ManyToOne(optional = false)
private PstdPcmAnalog pstdPcmAnalog;
@JoinColumn(name = "ID_GRID_TACOS", referencedColumnName = "ID_GRID_TACOS", insertable = false, updatable = false)
@ManyToOne(optional = false)
private GridTacosPcm gridTacosPcm;
NAMED QUERY
-----------
@NamedQuery(name = "Tacos.findTacosByName", query = "SELECT t FROM Tacos t WHERE t.idHeli = :idHeli AND t.idCodHeli = :idCodHeli AND "
+ "t.tacosName = :tacosName")
As a first step i run the '@NamedQuery Tacos.findTacosByName' to get the main object of db (Tacos), from this object i take the list parameters associated with the main object with the function 'getpstdcommonlist()' inside the class main class.
When i do the first access of the data of the list returned by the function 'getpstdcommonlist()'automatically eclipselink performs 30000 query for "fill" all the objects. The execution time on a list of 10000 records is about 48 seconds.
This a part of quey executed:
T-EventQueue-0,6,main])--SELECT ID_PSTD_TACOS, CONNECTION_NAME, FIELD_LENGHT, HERTZ_REPETITION, MSB, PARAMTER_NAME, PHSYCAL_TYPE, POSITION, PROV_CONV_TYPE FROM PSTD_FULL_FIELD WHERE (ID_PSTD_TACOS = ?)
[EL Fine]: 2013-05-23 11:06:06.088--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT ID_PSTD_TACOS, CAL_IMPULSE, CAL_SHORT, CAL_TYPE, CAL_ZERO, DATA_FORMAT, DEPURATION, ENDURANCE, EXTRA_BITS, PRE_F_IMPULSE, PRE_F_SHORT, PRE_F_ZERO FROM PSTD_PCM_ANALOG WHERE (ID_PSTD_TACOS = ?)
[EL Fine]: 2013-05-23 11:06:06.089--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT ID_PSTD_TACOS, CHANNEL_FM, COD_FREQ_ACQ, NUM_CYCLE FROM PSTD_ANALOG WHERE (ID_PSTD_TACOS = ?)
[EL Fine]: 2013-05-23 11:06:06.09--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT ID_PSTD_TACOS, LINE_NAME, PROC_CONV, RATE, SIGN, START_BIT, STOP_BIT FROM PSTD_PCM_BUS WHERE (ID_PSTD_TACOS = ?)
[EL Fine]: 2013-05-23 11:06:06.095--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT ID_PSTD_TACOS, CONNECTION_NAME, FIELD_LENGHT, HERTZ_REPETITION, MSB, PARAMTER_NAME, PHSYCAL_TYPE, POSITION, PROV_CONV_TYPE FROM PSTD_FULL_FIELD WHERE (ID_PSTD_TACOS = ?)
[EL Fine]: 2013-05-23 11:06:06.098--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT ID_PSTD_TACOS, CAL_IMPULSE, CAL_SHORT, CAL_TYPE, CAL_ZERO, DATA_FORMAT, DEPURATION, ENDURANCE, EXTRA_BITS, PRE_F_IMPULSE, PRE_F_SHORT, PRE_F_ZERO FROM PSTD_PCM_ANALOG WHERE (ID_PSTD_TACOS = ?)
[EL Fine]: 2013-05-23 11:06:06.099--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT ID_PSTD_TACOS, CHANNEL_FM, COD_FREQ_ACQ, NUM_CYCLE FROM PSTD_ANALOG WHERE (ID_PSTD_TACOS = ?)
....
[EL Finest]: 2013-05-23 11:07:32.266--ServerSession(1576330609)--Thread(Thread[AWT-EventQueue-0,6,main])--Execute query ReadAllQuery(name="file:/E:/NetBeansProjects/Codice/java/Prove/JTestOracleTacos/build/classes/_JTestOracleTacosPU_url=jdbc:oracle:thin:@172.23.110.159:3159/PJPANDA_user=JPANDA" referenceClass=PstdPcmGrid sql="SELECT DELAY, MINOR_FRAME, WORD_POS, WORD_STEP, ID_PSTD_TACOS, ID_GRID_TACOS FROM PSTD_PCM_GRID WHERE (ID_PSTD_TACOS = ?)")
[EL Fine]: 2013-05-23 11:07:32.267--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT DELAY, MINOR_FRAME, WORD_POS, WORD_STEP, ID_PSTD_TACOS, ID_GRID_TACOS FROM PSTD_PCM_GRID WHERE (ID_PSTD_TACOS = ?)
[EL Finest]: 2013-05-23 11:07:32.271--ServerSession(1576330609)--Thread(Thread[AWT-EventQueue-0,6,main])--Execute query ReadAllQuery(name="file:/E:/NetBeansProjects/Codice/java/Prove/JTestOracleTacos/build/classes/_JTestOracleTacosPU_url=jdbc:oracle:thin:@172.23.110.159:3159/PJPANDA_user=JPANDA" referenceClass=PstdPcmGrid sql="SELECT DELAY, MINOR_FRAME, WORD_POS, WORD_STEP, ID_PSTD_TACOS, ID_GRID_TACOS FROM PSTD_PCM_GRID WHERE (ID_PSTD_TACOS = ?)")
[EL Fine]: 2013-05-23 11:07:32.273--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT DELAY, MINOR_FRAME, WORD_POS, WORD_STEP, ID_PSTD_TACOS, ID_GRID_TACOS FROM PSTD_PCM_GRID WHERE (ID_PSTD_TACOS = ?)
[EL Finest]: 2013-05-23 11:07:32.28--ServerSession(1576330609)--Thread(Thread[AWT-EventQueue-0,6,main])--Execute query ReadAllQuery(name="file:/E:/NetBeansProjects/Codice/java/Prove/JTestOracleTacos/build/classes/_JTestOracleTacosPU_url=jdbc:oracle:thin:@172.23.110.159:3159/PJPANDA_user=JPANDA" referenceClass=PstdPcmGrid sql="SELECT DELAY, MINOR_FRAME, WORD_POS, WORD_STEP, ID_PSTD_TACOS, ID_GRID_TACOS FROM PSTD_PCM_GRID WHERE (ID_PSTD_TACOS = ?)")
[
....
On the other hand, if I create a query with INNER JOIN, between the three tables, which I will return the same number of data, the execution time is a little more than 1 second.
The query is:
"SELECT PSTD_COMMON.*, PSTD_PCM_ANALOG.*, PSTD_PCM_GRID.* FROM PSTD_COMMON INNER JOIN PSTD_PCM_ANALOG ON (PSTD_COMMON.ID_PSTD_TACOS = PSTD_PCM_ANALOG.ID_PSTD_TACOS) INNER JOIN PSTD_PCM_GRID ON (PSTD_COMMON.ID_PSTD_TACOS = PSTD_PCM_GRID.ID_PSTD_TACOS) WHERE PSTD_COMMON.ID_TACOS = ? AND PSTD_PCM_GRID.ID_GRID_TACOS = ?"
There is a way to work with eclispelink without executed multipe query, and use a simple inner join like the native query and fill the persistence classes?
It's normal that eclipselink use so many query to extract the data?
|
|
| | Topic: Call Oracle Function |
|---|
| Call Oracle Function [message #1060101] |
Thu, 23 May 2013 02:54 |
Oliver Baum Messages: 3 Registered: July 2009 |
Junior Member |
|
|
Hi,
I want to call the ORACLE database FUNCTION "TO_DATE" with a NamedQuery.
In the documentation I found, that I have to use FUNCTION to call specific database functions.
My NamedQuery:
@NamedQuery(name="useFunction",query="select a from TDatum a where a.datum = FUNCTION('TO_DATE','2013/12/11','yyyy-mm-dd')")
But I always get an "Syntax error parsing" error.
Can somebody help me?
Thanks
Oliver
|
|
| | Topic: When a merge does not update? |
|---|
| When a merge does not update? [message #1060076] |
Wed, 22 May 2013 18:45 |
Everton Fujimoto Messages: 4 Registered: June 2012 |
Junior Member |
|
|
A example:
Using primefaces, when I list a data in a dataTable with LazyDataModel and get a entity with LazyDataModel.getRowData(), I change values but nothing value is updated in EntityManager.merge().
A more strange is when I process a new request (with session or view JSF bean), the data can be updated in merge... (same entity, stored in session).
detach a entity not fix...
But if I get the data from EntityManager without get a entity from getRowData(), can be updated...
Other strange point is when I get a data with getRowData(), if I get a entity from entityManager from ID, the entity not be updated...
Sorry for my bad english, i'm brazilian...
|
|
| | Topic: Modelevolution and -migration - My approach |
|---|
| Modelevolution and -migration - My approach [message #1059717] |
Tue, 21 May 2013 06:50 |
|
Hi,
i have experience in JPA, but never used EclipseLink-API directly.
It would be nice if you could tell me whether my ideas can be done using the eclipse link API (or even internal classes).
My goal is to provide a simple model-evolution and migration module for my open source project.
The idea:
There is an entity called ItemEntity which is properly managed by EclipseLink. It contains different ForeignKeyConstraints to other tables.
A developer creates a new version of ItemEntity and adds / removes / renames properties.
An OSGi bundle should be used to migrate the current entity properly to its new version.
Therefore i need 3 entities:
1) the active ItemEntity
2) a new ItemEntity_v100 (Its schema matches the version before model evolution)
3) a new ItemEntity_v101 (Its schema matches the version after model evolution)
What should happen?
1) Create table ItemEntity_v100 by API (after FKConstraints have been removed)
2) Create table ItemEntity_v101 by API (after FKConstraints have been removed)
3) Copy all records from ItemEntity to ItemEntity_v100
4) Read all records from ItemEntity_v100 and call some MigrationImpl that returns a migrated ItemEntity_v101
5) Write converted ItemEntity_v101-instance to its table
6) Remove all FKConstraints on ItemEntity
7) Drop ItemEntity
8) Create ItemEntity with same schema as ItemEntity_v101
9) Copy all records from ItemEntity_v101 to ItemEntity
10) Conclusion: ItemEntity was properly migrated.
How to do:
The developer provides an OSGi bundle with all entities and adds 2 additional entities for the current and the old version: ItemEntity_v100 and ItemEntity_v101. They are also managed by JPA.
Then the developer creates a bundle and adds a persistence.xml into it with eclipselink.ddl-generation=NONE. So the tables ItemEntity_v100 and ItemEntity_v101 will not become created.
The question:
Now i would like to use EclipseLink-API to create ItemEntity_v100 and ItemEntity_v101 on database and to manage by JPA. But before creation i would like to remove the FKConstraints.
Something like that:
TableDefinition tabledef = UnknownUtil.createTableDefinition(ItemEntity_v100.class);
tableDef.getForeignKeyMap().clear();
UnknownUtil.createTableOnDatabase(tabledef);
And before dropping ItemEntity i will also have to remove all FKConstraints by EclipseLink-API.
Is there a way doing that stuff with EclipseLink API?
Are there any examples?
Can anyone point me to code in eclipse link project how to do?
Thanks a lot for your help...
Best, Florian
|
|
| | Topic: JPA and Excel import/export |
|---|
| JPA and Excel import/export [message #1059573] |
Mon, 20 May 2013 10:19 |
Daniel McGreal Messages: 6 Registered: January 2013 |
Junior Member |
|
|
Hi, and thanks for any help you can offer.
I wonder if anyone has created a generic solution for import and export of one's JPA entities to an Excel format. I would like to offer users the ability to generate an Excel worksheet, which they can then edit. Uploading their edits should persist new entities whilst modified data should be updated, overwriting the existing data. Ideally, each different entity would occupy a sheet, though foreign keys shouldn't be referenced by their UUID primary key, but by some secondary unique values (or combination thereof).
Does anyone know of any recommendable technologies that could achieve this for JPA?
Many thanks, Dan.
|
|
| | Topic: EclipseLink DBWS with JPQL |
|---|
| EclipseLink DBWS with JPQL [message #1059566] |
Mon, 20 May 2013 09:45 |
Panisha RN Messages: 12 Registered: May 2013 |
Junior Member |
|
|
Currently i am working on RCP which connects to DB using eclipse link.
But it is too slows when it is invoked from remote location.Now i would like to use Eclipse DBWS so that i can use my application as like web application
Can any one help me in migrating the application from Ecliselink to EclipseLink DBWS.
How can i use JPQL queries and Criteria queries which are there in application in DBWS.
|
|
| | Forum: TMF (Xtext) |
|---|
| Topic: Getting bean properties from JvmGenericType |
|---|
| | Topic: LLVM Suport |
|---|
| | Topic: EMF changes do not reflect Xtext Document |
|---|
| EMF changes do not reflect Xtext Document [message #1060170] |
Thu, 23 May 2013 07:45 |
junior developer Messages: 140 Registered: January 2013 |
Senior Member |
|
|
Hi all ,
I changed EMF ,I write code in the public abstract class ContentUnitImpl extends MinimalEObjectImpl.Container implements ContentUnit.
I did debug ,entered in the debug but changes not reflect in the Xtext Editor.Why this changes reflected in the Xtext Document(Editor) ?
My code is below :
public void setName(String newName)
{
String oldName = name;
name = newName;
//Display name bos ise doldur.
if(this.getDisplayName() == null || this.getDisplayName().equals("")){
this.setDisplayName(name);
}
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ContentPackage.CONTENT_UNIT__NAME, oldName, name));
}
Best Regards,
[Updated on: Thu, 23 May 2013 08:02] Report message to a moderator
|
|
| | Topic: Xtext 2.4 referencing UML |
|---|
| Xtext 2.4 referencing UML [message #1060115] |
Thu, 23 May 2013 03:44 |
Marc Z Messages: 4 Registered: July 2012 |
Junior Member |
|
|
Hi,
I'm trying the reference UML elements in my DSL usign the following workflow:
Workflow {
bean = StandaloneSetup {
scanClassPath = true
platformUri = "${runtimeProject}/.."
// The following two lines can be removed, if Xbase is not used.
registerGeneratedEPackage = "org.eclipse.xtext.xbase.XbasePackage"
registerGenModelFile = "platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel"
registerGeneratedEPackage = "org.eclipse.emf.ecore.EcorePackage"
registerGenModelFile = "platform:/resource/org.eclipse.emf.ecore/model/Ecore.genmodel"
registerGeneratedEPackage = "org.eclipse.uml2.uml.UMLPackage"
registerGenModelFile = "platform:/resource/org.eclipse.uml2.uml/model/UML.genmodel"
registerGeneratedEPackage = "org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage"
registerGenModelFile = "platform:/resource/org.eclipse.emf.codegen.ecore/model/GenModel.genmodel"
registerGeneratedEPackage = "org.eclipse.uml2.codegen.ecore.genmodel.GenModelPackage"
registerGenModelFile = "platform:/resource/org.eclipse.uml2.codegen.ecore/model/GenModel.genmodel"
}
component = DirectoryCleaner {
directory = "${runtimeProject}/src-gen"
}
component = DirectoryCleaner {
directory = "${runtimeProject}.ui/src-gen"
}
component = Generator {
pathRtProject = runtimeProject
pathUiProject = "${runtimeProject}.ui"
pathTestProject = "${runtimeProject}.tests"
projectNameRt = projectName
projectNameUi = "${projectName}.ui"
language = auto-inject {
uri = grammarURI
// Java API to access grammar elements (required by several other fragments)
fragment = grammarAccess.GrammarAccessFragment auto-inject {}
// generates Java API for the generated EPackages
fragment = ecore.EcoreGeneratorFragment auto-inject {
// referencedGenModels = "
// platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel,
// platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel
// "
}
// the old serialization component
// fragment = parseTreeConstructor.ParseTreeConstructorFragment auto-inject {}
// serializer 2.0
fragment = serializer.SerializerFragment auto-inject {
generateStub = false
}
// a custom ResourceFactory for use with EMF
fragment = resourceFactory.ResourceFactoryFragment auto-inject {}
// The antlr parser generator fragment.
fragment = parser.antlr.XtextAntlrGeneratorFragment auto-inject {
// options = {
// backtrack = true
// }
}
// Xtend-based API for validation
fragment = validation.ValidatorFragment auto-inject {
// composedCheck = "org.eclipse.xtext.validation.ImportUriValidator"
// composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
}
// old scoping and exporting API
// fragment = scoping.ImportURIScopingFragment auto-inject {}
// fragment = exporting.SimpleNamesFragment auto-inject {}
// scoping and exporting API
fragment = scoping.ImportNamespacesScopingFragment auto-inject {}
fragment = exporting.QualifiedNamesFragment auto-inject {}
fragment = builder.BuilderIntegrationFragment auto-inject {}
// generator API
fragment = generator.GeneratorFragment auto-inject {}
// formatter API
fragment = formatting.FormatterFragment auto-inject {}
// labeling API
fragment = labeling.LabelProviderFragment auto-inject {}
// outline API
fragment = outline.OutlineTreeProviderFragment auto-inject {}
fragment = outline.QuickOutlineFragment auto-inject {}
// quickfix API
fragment = quickfix.QuickfixProviderFragment auto-inject {}
// content assist API
fragment = contentAssist.ContentAssistFragment auto-inject {}
// generates a more lightweight Antlr parser and lexer tailored for content assist
fragment = parser.antlr.XtextAntlrUiGeneratorFragment auto-inject {}
// generates junit test support classes into Generator#pathTestProject
fragment = junit.Junit4Fragment auto-inject {}
// project wizard (optional)
// fragment = projectWizard.SimpleProjectWizardFragment auto-inject {
// generatorProjectName = "${projectName}"
// }
// rename refactoring
fragment = refactoring.RefactorElementNameFragment auto-inject {}
// provides the necessary bindings for java types integration
fragment = types.TypesGeneratorFragment auto-inject {}
// generates the required bindings only if the grammar inherits from Xbase
fragment = xbase.XbaseGeneratorFragment auto-inject {}
// provides a preference page for template proposals
fragment = templates.CodetemplatesGeneratorFragment auto-inject {}
// provides a compare view
fragment = compare.CompareFragment auto-inject {}
}
}
}
But running the workflow always results in the following error:
Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri '.../uml2/2.2.0/GenModel' not found. (platform:/resource/org.eclipse.uml2.uml/model/UML.genmodel, 13, 32)
Dows anyone know how to fix this error?
Thx Marc
|
|
| | Topic: Applying (uml) stereotypes? |
|---|
| Applying (uml) stereotypes? [message #1059990] |
Wed, 22 May 2013 09:07 |
Dennis D. Messages: 9 Registered: April 2013 |
Junior Member |
|
|
Hi,
as a more recent follow up of http://www.eclipse.org/forums/index.php/mv/msg/18749/60087/#msg_60087 I am interested in applying a stereotype to an xtext element.
Is there any progress here or any suggestions to do it with current versions?
I'd like to define elements in my dsl and use them from uml:
xtext:
MyElem returns my::mystereotype: 'MyElem' name=ID;
... and use/reference it in uml wherever my::mystereotype is expected. I can get it all working with "returns uml::class" instead of the stereotype, however I need to have stereotypes applied.
The link cited above is not of much help to me as further references there are broken urls.
thanks
dennis
|
|
| | Topic: reload all elements from the XMFResource |
|---|
| | Topic: add a field Automatically |
|---|
| add a field Automatically [message #1059891] |
Wed, 22 May 2013 02:42 |
junior developer Messages: 140 Registered: January 2013 |
Senior Member |
|
|
Hi all ,
When I create an element in the editor,default element must be added in the different element.I want to do this case.How can I do it in the Xtext.Which class is used for it
Best regrads,
|
|
| | Topic: add a field Automatically |
|---|
| add a field Automatically [message #1059889] |
Wed, 22 May 2013 02:42 |
junior developer Messages: 140 Registered: January 2013 |
Senior Member |
|
|
Hi all ,
When I create an element in the editor,default element must be added in the different element.I want to do this case.How can I do it in the Xtext.Which class is used for it
Best regrads,
|
|
| | Topic: Change EMFResource |
|---|
| Change EMFResource [message #1059714] |
Tue, 21 May 2013 06:42 |
junior developer Messages: 140 Registered: January 2013 |
Senior Member |
|
|
Hi all,
I do synchronization Xtext and GMF.and then I do changes in the GMF ,this change is not reflected in the Xtext Editor.so I want to reach EMFresources and then do changes in the model.Displayname field is in the grammar and every element's display name is shows in the outline.I load screenshot.
When I change display name in the editor and then this change is reflected in the element's name.I want to reach EMFresources and then change model in here.
Best regrads,
|
|
| | Topic: Performing automatic corrections |
|---|
| Performing automatic corrections [message #1059692] |
Tue, 21 May 2013 04:58 |
Marco Naddeo Messages: 49 Registered: November 2012 |
Member |
|
|
Hi 
The Java editor automatically corrects the code in some cases... For example, if I have a class B which extends a class A, I can declare an object myObject in this way:
but now, supposing that myMethod is a method definied in the subclass B, if I try to call it directly on myObject (declared of type A):
the editor in some cases automatically adds a cast converting the code as following:
Now, I have to implement some automatic corrections on user typing. Is there some Xtext or Eclipse support for implementing them?
Where can I hook to do this?
Thanks in advance,
Marco
|
|
| | Topic: Add my var in Quick Reference |
|---|
| Add my var in Quick Reference [message #1059631] |
Mon, 20 May 2013 19:27 |
|
As I stated I can dynamically add variables to the Quick Reference???.. I read the Xtext Documentation in 9.4.1. Cross Reference Template Variable Resolver.. talk about variable and Quick Reference.. this is when I press Ctrl+Space???.. this is I need.. when I press Ctr+Space in my Xtext Editor the var declared show...If you do not understand my question, is that I do not speak English, but I try to learn more about this framework, sorry
|
|
| | Topic: Getting IEditorInput in validator |
|---|
| Getting IEditorInput in validator [message #1059627] |
Mon, 20 May 2013 18:48 |
Roza Ghamari Messages: 22 Registered: January 2013 |
Junior Member |
|
|
Hi all,
I need to do some validation on my grammar based on the association of the file with a specific object I called MyResource. The command for opening the xtext editor is handled when user is right clicking on MyResource, hence I extended the FileEditorInput (called it MyEditorInput) and store the Myresource instance for the editor input there. However, I cannot get the instance of MyEditorInput in the MyGrammarJavaEditor code. I tried using PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor().getEditorInput()
but this it throw NullPointerException. Do you know any ways to get the editor input in validator? Do you think my solution for associating an external object with the xtext editor/file/resource is correct? Any other suggestions?
Thank you very much in advance!
|
|
| | Topic: xText: access on Java packages, classes and methods out from the ProposalProvider |
|---|
| xText: access on Java packages, classes and methods out from the ProposalProvider [message #1059234] |
Fri, 17 May 2013 08:40 |
thomas thomas Messages: 1 Registered: May 2013 |
Junior Member |
|
|
I developed a DSL which I use together with standard java code. In my DSL I can write things like this:
package: packagename;
method: void testMethod (int, double);
What I want to do is that the user of the DSL gets the package names and method signatures suggested by the ProposalProvider which are really existing in my project.
Example:
When my project only consists of one package e.g. "TestPackage", the user of the DSL should only get the "TestPackage" as a suggestion.
How can I access my Java project packages, classes or methods out from the complete{TypeName}_{FeatureName} method of the ProposalProvider?
|
|
| | Forum: Virgo |
|---|
| Topic: SpringIntegration 2.2.3.RELEASE + Maven + Virgo |
|---|
| SpringIntegration 2.2.3.RELEASE + Maven + Virgo [message #1060190] |
Thu, 23 May 2013 08:59 |
Paolo Pino Messages: 1 Registered: May 2013 |
Junior Member |
|
|
Hi all,
i have a jar application that use spring-integration 2.2.3 build with maven.
I'm new to Virgo so, following the virgo documentation i do these steps:
1. copy dependency of jar (maven) to $SERVER_HOME/repository/usr
2. generate manifest
3. deploy
...but nothing work.
So i've tried to deploy only spring-integration to virgo and this is the result:
...
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.util.zip.ZipException: invalid LOC header (bad signature)
at org.eclipse.virgo.kernel.userregion.internal.equinox.TransformedManifestProvidingBundleFileWrapper$TransformedManifestProvidingBundleFile.getEntry(TransformedManifestProvidingBundleFileWrapper.java:150)
I use openjdk-7 and virgo tools in eclipse
Can someone help me?
tnx
|
|
| | Topic: Virgo 3.6.2 Release |
|---|
| Virgo 3.6.2 Release [message #1059979] |
Wed, 22 May 2013 08:25 |
Violeta Georgieva Messages: 173 Registered: October 2010 |
Senior Member |
|
|
Hi,
Virgo 3.6.2.RELEASE is available for download.
This release updates the versions of the enterprise components. The new Virgo Nano Web version comes with various performance improvements. The release also includes several bug fixes.
Please see the release notes for more details.
Regards
Violeta
|
|
| | Forum: Remote Application Platform (RAP) |
|---|
| Topic: Infocenter as a WAR |
|---|
| Infocenter as a WAR [message #1059960] |
Wed, 22 May 2013 07:20 |
Phill Perryman Messages: 202 Registered: July 2009 |
Senior Member |
|
|
Can someone point me in the right direction to using the war product tooling to deploy an info centre. I am using Kepler.
I switched the target to the platform.
I started by opening the org.eclipse.help.infocenter-feature/feature.xml and trying to put the same plugins into the war product file but immediately hit org.apache.commons.el/org.apache.jasper which does not exist in the Kepler platform.
I assumed if I could get all the correct plugins in the war file then building it would create a war deployable info centre I could load into tomcat.
|
|
| | Topic: Assembling RAP 1.5 application with Maven |
|---|
| Assembling RAP 1.5 application with Maven [message #1059671] |
Tue, 21 May 2013 03:35 |
Cristian Ionitoiu Messages: 3 Registered: April 2013 |
Junior Member |
|
|
Hello,
I'm working on a RAP 1.5 application using Eclipse 4.2 that can be assembled into a war file either via Ant or via Maven. The application uses the Google visualization bundles org.eclipse.rap.rwt.excanvas and org.eclipse.rap.rwt.visualization.google.
When the application is assembled to a war file all bundle dependencies have the same version with the exception of the above two bundles.
If the application is built via Ant, both bundles are fetched with the version 1.5.0.201305171114, as the following jars are placed into the plugins directory:
org.eclipse.rap.rwt.visualization.google_1.5.0.201305171114.jar and org.eclipse.rap.rwt.excanvas_1.5.0.201305171114.jar.
If the application is built via Maven, the fetched bundles have different versions: org.eclipse.rap.rwt.excanvas-1.5.0.20120220-1720.jar, and
org.eclipse.rap.rwt.visualization.google-1.5.0.20120220-1720.jar.
The end result of this comparison and different builds is that the Ant version of the war works fine including the histogram creation functionality that uses these packages. However, in the case of the Maven built war if one tries to use the histograms the application crashes with some Javascript error dumping all JSON on screen starting with:
Error: Error: Operation "call" on target "jsex" of type "[object Object]" failed:
this[b[e]] is not a function
Properties:
This error seems to be documented here but with the observation that application does use only org.eclipse.swt.widgets.Composite as suggested in comment 10 as an workaround. So, it is not clear to me why the error appears strictly related to the suggestions in the bug description.
It is clearly a strange versioning issue, because if I manually replace the two bundles in the Maven war with the corresponding (newer?) bundles from the Ant war and I change accordingly the feature.xml then the Maven war works fine including the graphics functionality.
I have tried to find 1.5.0.201305171114 version of the bundles via tycho/maven but I failed (even after using last built of the Orbit repository), because I would actually like to develop and configure the application via Maven NOT via Ant. Currently these are the repositories used in the parent pom:
<repositories>
<!-- add Juno repository to resolve dependencies -->
<repository>
<id>Juno</id>
<layout>p2</layout>
<url>http://download.eclipse.org/releases/juno/</url>
</repository>
<repository>
<id>orbit</id>
<layout>p2</layout>
<url>http://download.eclipse.org/tools/orbit/downloads/drops/R20130517111416/repository/</url>
</repository>
<repository>
<id>Rap 1.5 Incubator</id>
<layout>p2</layout>
<url>http://download.eclipse.org/rt/rap/1.5/incubator/</url>
</repository>
</repositories>
Any suggestion or help in solving this would be greatly appreciated. Thanks and please let me know if you need more information,
Cristian
|
|
| | Forum: Memory Analyzer |
|---|
| Topic: Memory analyzer not opening hprof |
|---|
| | Forum: ATL |
|---|
| Topic: XML2XMLProject |
|---|
| | Forum: scout |
|---|
| Topic: [META] Searching the forum for my own posts |
|---|
| | Topic: BrowserField on Mac OS X |
|---|
| BrowserField on Mac OS X [message #1059113] |
Thu, 16 May 2013 15:53 |
Aqua Macboy Messages: 7 Registered: February 2013 |
Junior Member |
|
|
Did anyone manage to get the BrowserField running on Mac OS X? I always get the following error:
Exception in thread "SWT HTML Display Dispatcher" java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Display
at org.eclipse.scout.rt.ui.swing.form.fields.browserfield.internal.SwingScoutBrowserField$StaticDisplayDispatcher.run(SwingScoutBrowserField.java:368)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Display
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 1 more
I am using Java 7 on OS X Snow Leopard. I have the SWT Bundle and Fragment included in my product and I am following this thread (http://www.eclipse.org/forums/index.php/t/452511/) to launch my client. Is it possible to use the BrowserField on OS X?
|
|
| | Forum: EMF |
|---|
| Topic: Model Evolution: Mixing of generated and dynamic models |
|---|
| Model Evolution: Mixing of generated and dynamic models [message #1060145] |
Thu, 23 May 2013 06:20 |
Sebastian Fuchs Messages: 92 Registered: July 2009 |
Member |
|
|
Hello,
I am the developer of a civil engineering platform, consisting of some
common ecore base models and a lot of independent ecore application
models depending on the base models.
I fail to create incremental updates to handle some specific model
evolutions. Model evolutions may consist of any change like adding,
removing, renaming attributes, references or classes. Details below.
For every ecore model (base or application) I have generated code only
for the latest version. The version is reflected by a prefix of the
certain model's nsURI. Older versions of ecore models are provided only
dynamically via their *.ecore files.
So I am able to load any serialized application instance file of every
version, even older ones by emf onboard mechanism. The content and
version are identified via content type indentifiers.
To provide usage of an older version application instance, I must update
that instnace to the latest version. To avoid rewriting of every updater
each time a model evolves, I decided to make incremental updates, e.g.:
Latest version is 3.0, loaded instance has 1.0 - I update the instance
from 1.0 to 2.0 and from 2.0 to 3.0.
As there is (and will be) only generated code for the latest version,
every statement in the updater is generic to be future safe.
As stated in
http://wiki.eclipse.org/EMF/Recipes#Recipe:_Copying_models_from_an_EPackage_implementation_to_another_one
I use a modified Copier for updating. In principle, it provides a map
from source package nsURI to target package nsURI from where target
EClassifiers and EStructuralFeatures are determined.
So long everything works fine.
My problem is that in some cases - namely the updating to NOT the latest
version - I have a mixture of generated and dynamic instances. This is
due to the independent evolution of the application models and their
depending base models, mainly when the application instance can only be
loaded dynamically - as there is no generated code which then
(correctly) refers to the ecore-package of the base model instead of the
registered generated-package of the base model.
E.g. there could be
(Legacy) BaseV1.ecore, (Latest) BaseV2.ecore + *.java (where the
generated package is registered)
and
(Legacy) AppV1.ecore, (Legacy) AppV2.ecore, (Latest) AppV3.ecore +
*.java (where the generated package is registered)
where AppV1 depends on Basev1 and AppV2 + Appv3 depends on Basev2.
In such a case standard factories seem to create some generated
instances of the base model's classes.
Though I already worked around the resolution of the correct EStructural
Features as well as different generic access of EEnums in such a case, I
sometimes end in an ArrayStoreException:
java.lang.ArrayStoreException: org.eclipse.emf.ecore.impl.DynamicEObjectImpl
at org.eclipse.emf.common.util.BasicEList.assign(BasicEList.java:124)
at org.eclipse.emf.common.util.BasicEList.addUnique(BasicEList.java:424)
at
org.eclipse.emf.common.notify.impl.NotifyingListImpl.doAddUnique(NotifyingListImpl.java:331)
at
org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:315)
at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:307)
at
de.tragwerk.solution.statics.combination.model.update.Copier200To210.copyContainment(Copier200To210.java:112)
I think my problem is related to the following post:
http://www.eclipse.org/forums/index.php/mv/msg/173614/552576/
Though I am still not sure whether this is a bug.
If not, how can I force emf to only work with dynamic instances only for
the update scenario, which meens to maintain the original package
registries for all other standard use cases ?
Ore is there any other way to go ?
Thanks in advance
Sebastian
--
Dipl.-Ing. Sebastian Fuchs
TragWerk Software
Döking + Purtak GbR
Prellerstraße 9
01309 Dresden
Tel. +49 (0)351-433 08 50
Fax +49 (0)351-433 08 55
Email: sf@xxxxxxxx
http://www.tragwerk-software.de
http://www.twsolution.de
|
|
|
Pages (4): [1 ]
Current Time: Thu May 23 10:19:35 EDT 2013
Powered by FUDForum. Page generated in 0.04676 seconds
|