Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Today's Messages (on)  | Unanswered Messages (off)

Forum: Papyrus for Real Time
 Topic: First trials
Re: First trials [message #1700769 is a reply to message #1700709] Tue, 07 July 2015 05:40
Anantha Krishnan is currently offline Anantha KrishnanFriend
Messages: 13
Registered: April 2014
Junior Member
Charles,

Much appreciate help with simple model creation, codegen and test description - Hello World/Traffic Light?

Or even the model files so I can "reverse engineer" the modelling etc...

Thanks.
Re: First trials [message #1700876 is a reply to message #1700769] Tue, 07 July 2015 19:49
Charles Rivet is currently offline Charles RivetFriend
Messages: 49
Registered: May 2014
Location: Ottawa, ON, Canada
Member

Hi Anantha,

I am working on a "Getting Started" tutorial for Papyrus-RT to be made available before the end of July. I am planning on using a simple "ping-pong" model to drive that tutorial.

The only sample model that is currently available is the "ComputerSystem" model I used at EclipseCon NA and EclipseCon France. We do not yet have the sample models available as part of the software distribution , but that model is available directly from the Papyrus-rt repository and you are free to get it from there. You can see the presentation from EclispseCon NA on YouTube. Not much modeling, but it could give you some hints.

TrafficLights, although fairly simple, is still a bit complex for a "Getting Started" exercise. I do have a version of that model that is almost complete. Once it is complete, I will make it available in the repository.

I hope this helps!


/Charles Rivet
Forum: Sirius
 Topic: Edge Visualization & Creation Problems
Edge Visualization & Creation Problems [message #1700836] Tue, 07 July 2015 13:53
Victor Charpenay is currently offline Victor CharpenayFriend
Messages: 1
Registered: July 2015
Junior Member
Hi,

Sirius is an impressive tool. However, I'm running a bit into trouble to get my model being visualized, especially edges.

My model contains components, having inputs and outputs, and instances of these components. Component instances can be wired together by linking their outputs with compatible inputs of other instances.
An .ecore model and its associated Sirius specification are attached (wiremodel.*) and I use a simple example model with 2 component instances having each one input and one output and connected with each other by one wire.

I have 2 problems (somehow related):

1. Edge Visualization
First, when I define a mapping for wires (Element Based Edge), I end up with the following, while I expect only one edge to show up (node1.out -> node2.in):

index.php/fa/22415/0/

The mapping is defined as follows:
Domain Class: Wire
Source Finder Expression: [source.port/]
Target Finder Expression: [target.port/]


I tried to add a precondition expression but I can't find the right way to formulate it with Acceleo (it may look like: [self.source.instance.=(sourceView.eContainer().target)/], but this one seems wrong). I also tried to constrain the Edge Mapping so that every Edge View has to map to a Wire (for now, none is mapped to the model), but I didn't find any option to do it.

2. Edge Creation
I also defined an Edge Creation Tool (New Wire). The user should choose an Output as a source and an Input as a target. By default, the container is an Output. However, I'd like to attach the created element (i.e. the new Wire) to the root Application, not to the Output. A context change may help -as explained in other threads in this forum-, but I didn't find a way to access the Application from the Output. Is there a variable available to reference the root model element?

This wiring model is not tremendously complicated but, still, mapping it to a Sirius specification seems not trivial. I'm wondering if I missed important features of Sirius or if the model just does not fit...

Thanks a lot.
 Topic: No dialects avaliable when creating representation programmatically
Re: No dialects avaliable when creating representation programmatically [message #1700840 is a reply to message #1700523] Tue, 07 July 2015 14:14
Axel Niklasson is currently offline Axel NiklassonFriend
Messages: 6
Registered: June 2015
Junior Member
This was 100% my mistake, the problem ocurred due to the package where the dialects resided wasn't being loaded correctly. Thanks anyway guys!
 Topic: Attach EObject to Sirius Session
Attach EObject to Sirius Session [message #1700839] Tue, 07 July 2015 14:11
Axel Niklasson is currently offline Axel NiklassonFriend
Messages: 6
Registered: June 2015
Junior Member
Hi all,

I have a running Session, created from a given representations file. Since I create the Session using the .aird-file and not a given EObject, no EObject is associated with the Session.

During the creation of a Diagram representation, the call
SessionManager.INSTANCE.getSession(EObject target)

is made, which is intended to retrieve the Session associated with the EObject. However, that is not possible for me since the EObject is not connected to the Session.

Is there a way for me to connect the two? What I want is basically a method like
session.attachEObject(EObject object)

or something like that.

It is possible my entire approach is wrong and I would greatly appreciate any potential help.

Best regards,
Axel Niklasson
Re: Attach EObject to Sirius Session [message #1700854 is a reply to message #1700839] Tue, 07 July 2015 15:41
Francois Cabrol is currently offline Francois CabrolFriend
Messages: 20
Registered: January 2015
Junior Member
From my understanding, you have to:

- either get the EObject from the semantic model (ie the set of EObjects) referenced by your .aird file

- or if the EObject has been initialized manually and is not already referenced in your .aird file, attach the resource containing your EObject (ie the file where your EObject is serialized) to the session

- or if the EObject is not intended to be serialized at all, use Sirius's transient attachment mechanism

Get the EObject from a resource referenced by an .aird file
Collection<Resource> resources = session.getSemanticResources();
  /* Iterate through resources */
  for (Resource resource : resources) {
    /* Iterate through EObjects */
    for (EObject eObject : resource.getContents()) {
       ...
    }
  }


Attach the resource containing an EObject to a session
session.getTransactionalEditingDomain().getCommandStack().execute(
  new RecordingCommand(session.getTransactionalEditingDomain()) {
    @Override
    protected void doExecute() {
      /* The eObject must be contained in an XMI resource */
      /* See § "Data Management" here => http://eclipsesource.com/blogs/tutorials/emf-tutorial/ */
      session.addSemanticResource(eObject.eResource().getURI(), monitor);
    }
  }


Attach a transient EObject to a session
eObject.eAdapters().add(new SessionTransientAttachment(session));


Hope it helps,

François
 Topic: Difficulty with handling node creation / deletion in corner cases
Difficulty with handling node creation / deletion in corner cases [message #1700877] Tue, 07 July 2015 19:49
Ryan Schimpel is currently offline Ryan SchimpelFriend
Messages: 4
Registered: May 2015
Junior Member
Hi there,
I've been having some difficulty trying to implement a particular case using Sirius and I was wondering if you might have some thoughts as how to be go about it.

Essentially, I'm working with a tree structure in Sirius with the goal being able to easily add / remove nodes as well as change the parent of all the nodes and thereby the structure of the tree. While I've been fairly successful in general in doing so, there are certain cases which cause me trouble.

As the several problem cases are quite related, an answer to one of them would provide the template for implementing all of them. As such, I will only go into depth about one such case. Please look at the diagram below:

index.php/fa/22419/0/

Essentially, I am trying to add a new root to the tree, pushing everything else down a level; initially, it may appear to be simple but there are several complications. Firstly, unlike a more traditional tree, both the leaf nodes and internal nodes have their own type hierarchy so you're not just dealing with one type for each. Thirdly and probably most seriously, there is no real place where I can create the new node instance; since the container object CONTAINS the root node and hence the rest of the tree (since parent nodes contain their children), attempting to put it in the container object will make me lose the rest of the tree. In fact, containment greatly complicates things in my case. Note that the EMF models for this system are FIXED and changing them is not a viable option.

The real problem here is the lack of actual variables in Sirius that store state; these variables are essentially placeholders (macros) for expressions which are recomputed everytime they are accessed.

Is their any way to do what I'm suggesting without having to resort to an external action? If I need to use one, that's not the end of the world; however, if I had to create an action for each of the numerous types I need to support, that would be extremely unpleasant and a maintenance nightmare. Is there any utility function that I can use to generate instances, say using the name of the metamodel and class (i.e. "hierarchy.ValueNode")? This would mean that I would only need to make and maintain one such action (since the behavior should be the same among all nodes.)

Thanks for your help in advance and I look forward to hearing back from you.
  • Attachment: Diagram.jpg
    (Size: 102.55KB, Downloaded 6 times)
Forum: BPMN 2.0 Modeler
 Topic: Eclipse Mars on Debian Jessie with Gnome 3
Re: Eclipse Mars on Debian Jessie with Gnome 3 [message #1700878 is a reply to message #1700596] Tue, 07 July 2015 20:05
Robert Brodt is currently offline Robert BrodtFriend
Messages: 702
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

Thanks for finding this, Ralph!
Forum: AJDT
 Topic: Need AJDT on Luna
Re: Need AJDT on Luna [message #1700831 is a reply to message #1389624] Tue, 07 July 2015 13:27
Ross Cohen is currently offline Ross CohenFriend
Messages: 1
Registered: July 2015
Junior Member
Looks like AJDT is dead. Mars has been released, and AJDT's download page still has no Luna release.
Re: Need AJDT on Luna [message #1700849 is a reply to message #1700831] Tue, 07 July 2015 15:00
Andrew Eisenberg is currently offline Andrew EisenbergFriend
Messages: 376
Registered: July 2009
Senior Member
I'm pretty sure that the Kepler update site will work in Luna as well, but not in Mars. I do not know if anyone is working on a Mars release.
Re: Need AJDT on Luna [message #1700879 is a reply to message #1700849] Tue, 07 July 2015 20:06
Marek Jagielski is currently offline Marek JagielskiFriend
Messages: 80
Registered: April 2012
Member
I am using this updatesite: http://download.eclipse.org/tools/ajdt/45/dev/update with mars. It is working fine for now.
Forum: Eclipse Web Tools Platform Project (WTP)
 Topic: Problems starting GlassFish via GlassFish Tools
Re: Problems starting GlassFish via GlassFish Tools [message #1700880 is a reply to message #1694656] Tue, 07 July 2015 20:10
Aliye Kurumlu is currently offline Aliye KurumluFriend
Messages: 1
Registered: July 2015
Junior Member
Hi Erun
I have exactly the same configuration and exactly same problem. Do you still remember how did you solve this problem?

kind regards
Aliye
Forum: Subversive
 Topic: Compare with Previous State - sometimes shows zero differences
Compare with Previous State - sometimes shows zero differences [message #1700864] Tue, 07 July 2015 17:46
David Balažic is currently offline David BalažicFriend
Messages: 6
Registered: February 2013
Junior Member
Hi!

I have a Java project checked out from SVN.
I clicked "Team / Show History" for a file and the history was displayed in the History view.
There I right clicked a revision in the upper table and selected "Compare with Previous State".

Sometimes this shows the differences correctly, but sometimes it shows no differences, as if the file was not changed (but it was, otherwise it would not be listed as changed in the table, also on next try, the differences are shown properly).

I don't know what triggers the problem. Sometimes it happens, then I close the diff/editor and try again (once ot twice) and then it works.

It is a fresh install (just extracted a ZIP actually) of Eclipse, with a fresh workspace and subversive as the only additionally installed plugin.

The versions I use are:
OS: Windows 8.1 Update 1, 64 bit
Java Oracle 1.7.0_79-b15 (64 bit)

Eclipse IDE for Java Developers

Version: Luna Service Release 2 (4.4.2)
Build id: 20150219-0600

JavaHL 1.8.10 Win64 Binaries (Optional) 4.1.2.I20141224-1700 org.polarion.eclipse.team.svn.connector.javahl18.win64.feature.group Polarion Software
Native JavaHL 1.8 Implementation (Optional) 4.1.3.I20150214-1700 org.polarion.eclipse.team.svn.connector.javahl18.feature.group Polarion Software
Subversive SVN Connectors 4.1.3.I20150214-1700 org.polarion.eclipse.team.svn.connector.feature.group Polarion Software
Subversive SVN Team Provider 2.0.4.I20150123-1700 org.eclipse.team.svn.feature.group Eclipse.org

[Updated on: Tue, 07 July 2015 17:47]

Report message to a moderator

Re: Compare with Previous State - sometimes shows zero differences [message #1700881 is a reply to message #1700864] Tue, 07 July 2015 20:26
David Balažic is currently offline David BalažicFriend
Messages: 6
Registered: February 2013
Junior Member
This steps seem to reproduce it:
- Team / Show history on a file
- in the History view left click on a revision (in the upper table)
- right click on the same spot and select the context menu "Compare with Previous State"
-> it works correctly (shows diffs...)
- now right click another line in the table, without first left clicking it, then in the context menu select "Compare with Previous State"
-> boom! the compare window shows the proper URLs and rev numbers, but the content in both halves is from the older rev, so they are same, with no diffs

[Updated on: Tue, 07 July 2015 20:27]

Report message to a moderator

Forum: Nebula
 Topic: Nebula grid GridItem.setForeground(color) not working
Nebula grid GridItem.setForeground(color) not working [message #1700884] Tue, 07 July 2015 20:54
Dhiresh Patel  is currently offline Dhiresh Patel Friend
Messages: 84
Registered: July 2009
Member
I am using GridTableViewer and Nebula Grid.
I am in processing of replacing old grid with new grid
version = org.eclipse.nebula.widgets.grid_1.0.0.201506030727.

I am setting individual row's foreground color.

for ( int i=0; i < items.length; i++){
items[i].setForeground(color); ;
}

The above code worked with old grid version ver = 1.0.0.201209220511

However it's not working with new version. What do I need to change?

Thanks
Dhiresh
Forum: TMF (Xtext)
 Topic: importURI with particular path syntax
Re: importURI with particular path syntax [message #1700807 is a reply to message #1700559] Tue, 07 July 2015 10:48
Anakreontas Mentis is currently offline Anakreontas MentisFriend
Messages: 51
Registered: October 2014
Member
I used the method Class<? extends ImportUriResolver> bindImportUriResolver() to return my implementation.

On a related topic, I wonder if it's possible to implement a jump from the file including the file to the included file. The user could for example, Ctrl+Click on the the path of the include statement to jump to that file. Has anyone implemented such a feature?
Re: importURI with particular path syntax [message #1700808 is a reply to message #1700807] Tue, 07 July 2015 10:50
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 7309
Registered: July 2009
Senior Member
you have to customize HyperlinkHelper
 Topic: Cross reference for multiple identifers
Re: Cross reference for multiple identifers [message #1700802 is a reply to message #1700433] Tue, 07 July 2015 10:10
Eleanor Richie is currently offline Eleanor RichieFriend
Messages: 62
Registered: August 2014
Member
Hi Christian Smile
Thanks alot for you help Smile
I have been working in the scoping but I have a problem with the list of identifiers as this example:

expressions exp1 {
integer int11, int12, int13 = 10;
float flo11, flo12, flo13 = 5.5;

expressions exp2 {
integer int21, int22, int23 = 5;
int21 = int22 + int11;
}

}
Grammar rule:
expression returns Expressions:
'expressions' name=ID '{'
declarations+=declaration*
expressions={
statements+=statement*
expressions+=expression*
}
'}'
;

declaration returns Declaration:
'integer' identifiers=identifier_list (':' value=INTEGER)?
;
identifier_list returns IdentifierList:
identifierList+=simple (','identifierList+=simple)*
;

simple returns Identifier:
ID=ID
;

The problem:
When I create a scope for the declarations in the expressions, the scope is returned an empty simple scope. I create the scope in the getScope as the following :

IScope myScope= Scopes.scopeFor(((Expressions)context).getDeclarations());

I just want the scopeFor to get the declarations in the given list.
What I tried:
I override internalGetAllDescriptions and created the EObjectDescriptions as
 for (Identifier i : l.getIdentifierList()) {
     result.add(EObjectDescription.create(QualifiedName.create(i.getID()), from));
   }

but this made the EObjectDescription to be created as int21 int22,...etc. without having the parent name concatenated i.e exp1.int11, exp1.int12,...etc. So I created a method that gets the parent's name then pass it to the QualifiedName.create(parent, i.getID()) in creating the EObjectDescription.
Also, I tried overriding the ResourceDescriptionStrategy and added to the acceptor the following:
for(Identifier i : l.getIdentifierList()){
 acceptor.accept(EObjectDescription.create( QualifiedName.create(MyLangEObjectUtils.getContainerName(eObject), i.getID()), eObject));
}
.

and I have my bindings configured correctly in the RuntimeModule Smile
But Still not working Sad any help please

[Updated on: Tue, 07 July 2015 10:22]

Report message to a moderator

Re: Cross reference for multiple identifers [message #1700805 is a reply to message #1700802] Tue, 07 July 2015 10:43
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 7309
Registered: July 2009
Senior Member
hi i do not undestand this sentence

When I create a scope for the declarations in the expressions, the scope is returned an empty simple scope. I create the scope in the getScope as the following :
Re: Cross reference for multiple identifers [message #1700806 is a reply to message #1700805] Tue, 07 July 2015 10:45
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 7309
Registered: July 2009
Senior Member
btw if you do Scopes.scopeFor(((Expressions)context).getDeclarations()); you completely ignore all adotions you did anywhere else.
have a look what that code does
Re: Cross reference for multiple identifers [message #1700814 is a reply to message #1700805] Tue, 07 July 2015 11:42
Eleanor Richie is currently offline Eleanor RichieFriend
Messages: 62
Registered: August 2014
Member
Hi Christian,

In getScope I have some checks and several levels for the scoping. When I try to add the scope for the expressions as an inner scope with an another importing scope as a parent, I found that the returned (inner) scope is empty.
i.e
SimpleScope[ ] -> importScope[Pack.*]
-------------------------------------------------
if IScope myScope= Scopes.scopeFor(((Expressions)context).getDeclarations()); clears all the other work I have done, How can I solve this issue then?
Re: Cross reference for multiple identifers [message #1700816 is a reply to message #1700814] Tue, 07 July 2015 11:52
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 7309
Registered: July 2009
Senior Member
i dont know your login,
either you put yout scope manually together as you do it and then you have to care or you do use the default impl and do not write a scope method for your ref.
so have look at scopeFor and do what is does manually adapted to your situation
 Topic: Formatting comments
Re: Formatting comments [message #1700821 is a reply to message #1700648] Tue, 07 July 2015 12:46
ayman salah is currently offline ayman salahFriend
Messages: 48
Registered: June 2015
Member
I will give it a shot.
 Topic: Preferences page
Preferences page [message #1700820] Tue, 07 July 2015 12:44
ayman salah is currently offline ayman salahFriend
Messages: 48
Registered: June 2015
Member
Hello,
I want to add another tab or page under the main LanguagePreferencePage. How can I do that?
Thanks
Re: Preferences page [message #1700844 is a reply to message #1700820] Tue, 07 July 2015 14:36
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 381
Registered: July 2009
Location: Dortmund
Senior Member

Add the page to the org.eclipse.ui.preferencePages extension point and use the LanguageRootPreferencePage's id as category.

Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
 Topic: Left Recursion
Left Recursion [message #1700825] Tue, 07 July 2015 12:55
tam ay is currently offline tam ayFriend
Messages: 1
Registered: May 2015
Junior Member
Hi everone,

like the most I have a problem with left-recursion in the grammar definition, although I read the helpful articles.
"Type" is used recursively in a nested expression and I don't know how to solve that. I would be very happy if someone could help me. Thanks a lot!!

Here is a part of the grammar:

OrdinaryVariableDeclaration:
	ordinaryDeclaration=DeclarationWithoutInit |
	ordinaryDeclaration=DeclarationWithInit |
	ordinaryDeclaration=SignalDeclaration
;

DeclarationWithoutInit:
	{DeclarationWithoutInit} (type=TeachType | type=Type) ":" variableIdList=VariableIdList ";"
;

VariableIdList:
	name+=VariableIdentifier ("," name+=VariableIdentifier)*
;

TeachType:
	name=TeachTypeDescription
;

TeachTypeDescription:
	"TEACH" type=PredefinedType
;

Type:
	PredefinedType | StructuredTypeIdentifier | StructuredTypeDescription
;

PredefinedType:
	SimpleType | StandardType |  SystemType
;

SystemType:
	name=SystemTypeIdentifier
;

StandardType:
	name=StandardTypeIdentifier
;

StructuredTypeDescription:
	RecordTypeDescription | ArrayTypeDescription | ListTypeDescription | FileTypeDescription
;

RecordTypeDescription:
	"RECORD" componentList=ComponentList "ENDRECORD"
;

ComponentList:
	type+=Type ":" componentIdList+=ComponentIdList (";" type+=Type ":" componentIdList+=ComponentIdList)*
;

ComponentIdList:
	name+=ComponentIdentifier ("," name+=ComponentIdentifier)*
;

ArrayTypeDescription:
	"ARRAY" "[" indexBoundList=IndexBoundList "]" "OF" (type=Type | type=TeachType)
;

IndexBoundList:
	indexBound+=IndexBound ("," indexBound+=IndexBound)*
;

IndexBound:
	left=Expression ".." right=Expression
;

ListTypeDescription:
	"LIST" "OF" (type=Type | type=TeachType)
;

FileTypeDescription:
	"FILE" "OF" type=Type
;





The ERROR:

error(211): ../org.xtext.irl/src-gen/org/xtext/aIRL/parser/antlr/internal/InternalAIRL.g:1454:1: [fatal] rule ruleOrdinaryVariableDeclaration has non-LL(*) decision due to recursive rule invocations reachable from alts 1,2. Resolve by left-factoring or using syntactic predicates or using backtrack=true option.
Re: Left Recursion [message #1700883 is a reply to message #1700825] Tue, 07 July 2015 20:44
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 7309
Registered: July 2009
Senior Member
hi,

unfortunately your grammar is incomplete.
you should minimize it to a small grammar that reproduces the problem
on how to get a general idea how to do expressions
http://blog.efftinge.de/2010/08/parsing-expressions-with-xtext.html
additionally you can use antlrworks and org.eclipse.xtext.generator.parser.antlr.DebugAntlrGeneratorFragment to analzye
 Topic: Hidden tokens are replaced by a whitespace
Hidden tokens are replaced by a whitespace [message #1700838] Tue, 07 July 2015 14:04
Erika Baena is currently offline Erika BaenaFriend
Messages: 2
Registered: July 2015
Junior Member
Hi,

The attached folder contains 3 projects generated with Xtext that allows to have a reproducible example.

I have a short grammar that allows to write paragraphs delimited by begin and end. Comments should be accepted everywhere, that's why they are hidden.

grammar org.xtext.example.commentws.CommentWs
hidden(ML_COMMENT)
...

CwFile:
	{CwFile}
	elems+=Elem*;

Elem:
	'begin' SEPARATOR content=ID SEPARATOR 'end' SEPARATOR;

SEPARATOR:
	LINE_RETURN;

ID:
	ALPHABETIC+ (WS+ ALPHABETIC+)*;

terminal ML_COMMENT:
	'/*'->'*/';

terminal ALPHABETIC:
	'a'..'z' | 'A'..'Z';

terminal WS:
	' ' | '\t';

terminal LINE_RETURN:
	'\r'? '\n';


Reproductible example

The `tests` module contain a unit test that should success.

The following element content field (Elem.content) should be "some text" but I got "so me text".

begin
so/* a comment that should be ignored */me text
end


Installation details
* Eclipse IDE for Java developers 4.4.2
* Xtext Complete SDK 2.8.1

Is there a way to change this behaviour? Should I make a bug report?
Re: Hidden tokens are replaced by a whitespace [message #1700885 is a reply to message #1700838] Tue, 07 July 2015 20:56
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 7309
Registered: July 2009
Senior Member
the problem is the value converter. instead of the default IDValueConverter you should use something like

org.eclipse.xtext.xtext.XtextValueConverters.GrammarID()
 Topic: Formatter2
Formatter2 [message #1700841] Tue, 07 July 2015 14:15
Erika Baena is currently offline Erika BaenaFriend
Messages: 2
Registered: July 2015
Junior Member
Hi,

I am trying to use the Formatter2 API but I get the following trace when running GenerateMyDsl.mwe2.

[ERROR]: GeneratorException: (Element: -UNKNOWN-; Reported by: Generator)
	 java.lang.RuntimeException: No GenPackage for NsURI http://www.eclipse.org/emf/2002/Ecore.
	at org.eclipse.xtext.generator.GenModelAccess.getGenPackage(GenModelAccess.java:98)
	at org.eclipse.xtext.generator.GenModelAccess.getGenClassifier(GenModelAccess.java:42)
	at org.eclipse.xtext.generator.GenModelAccess.getGenClass(GenModelAccess.java:38)
	at org.eclipse.xtext.generator.serializer.JavaEMFFile.importedGenTypeName(JavaEMFFile.java:83)
	at org.eclipse.xtext.generator.formatting2.FormatterStubGenerator.generateFormatMethod(FormatterStubGenerator.java:262)
	at org.eclipse.xtext.generator.formatting2.FormatterStubGenerator.generateStubFileContents(FormatterStubGenerator.java:218)
	at org.eclipse.xtext.generator.formatting2.Formatter2Fragment.generate(Formatter2Fragment.java:86)
	at org.eclipse.xtext.generator.Xtend2GeneratorFragment.generate(Xtend2GeneratorFragment.java:75)
	at org.eclipse.xtext.generator.Xtend2GeneratorFragment.generate(Xtend2GeneratorFragment.java:68)
	at org.eclipse.xtext.generator.DefaultGeneratorFragment.generate(DefaultGeneratorFragment.java:167)
	at org.eclipse.xtext.generator.CompositeGeneratorFragment.generate(CompositeGeneratorFragment.java:163)
	at org.eclipse.xtext.generator.Generator.generate(Generator.java:555)
	at org.eclipse.xtext.generator.Generator.invokeInternal(Generator.java:172)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126)
	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(Mwe2Bridge.java:34)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:201)
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:35)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:102)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:78)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:36)


Is there something to do?
Re: Formatter2 [message #1700882 is a reply to message #1700841] Tue, 07 July 2015 20:35
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 7309
Registered: July 2009
Senior Member
hi can you share a sample grammar as well
Re: Formatter2 [message #1700886 is a reply to message #1700882] Tue, 07 July 2015 20:58
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 7309
Registered: July 2009
Senior Member
p.s: which xtext version do you use?
Forum: RCP Testing Tool
 Topic: Not able to record login screen using RCPTT
Not able to record login screen using RCPTT [message #1700773] Tue, 07 July 2015 06:43
thangam rajadurai is currently offline thangam rajaduraiFriend
Messages: 1
Registered: July 2015
Junior Member
I am new to RCPTT and I am trying to automate eclipse based application. When I try to record the test case, inputs to login screen is not getting recorded, also i am not able to access the control panel and login window is not allowing me to navigate to it. Please let me know how to resolve this issue.
 Topic: Use a specific autVM with the maven plugin.
Use a specific autVM with the maven plugin. [message #1700778] Tue, 07 July 2015 07:25
Marcel Hein is currently offline Marcel HeinFriend
Messages: 1
Registered: July 2015
Junior Member
Hi.

Knows anyone here how I can set a specific Vm for the AUT with the maven plugin?

Re: Use a specific autVM with the maven plugin. [message #1700793 is a reply to message #1700778] Tue, 07 July 2015 09:14
Ulyana Skorokhodova is currently offline Ulyana SkorokhodovaFriend
Messages: 62
Registered: July 2014
Member
Hi Marcel,

Please use this example:

<aut>
<vmArgs>
<vmArg>-Xmx768m</vmArg>
<vmArg>-XX:MaxPermSize=256m</vmArg>
</vmArgs>
</aut>

Kind regards,
Ulyana.
 Topic: Problem when trying to handle a browser
Problem when trying to handle a browser [message #1700860] Tue, 07 July 2015 17:23
Agustin Celentano is currently offline Agustin CelentanoFriend
Messages: 5
Registered: June 2015
Junior Member
Hello,

I have a problem when a try to use this command

get-view "Package Explorer" | get-tree | select cloudhubproject | get-menu "CloudHub/Deploy to CloudHub..." | click
with [get-window -class WebLogin | get-control Browser ]{
// get-object | invoke evaluate "document.getElementById('user').value='hello"
}

RCPTT gets frozen and I have to kill the process.. the test never stops..
Do you know what I am doing wrong? Maybe i have forgotten some important parameter.

 Topic: Mvn Runner Problem
Re: Mvn Runner Problem [message #1700888 is a reply to message #1699457] Tue, 07 July 2015 21:05
Guillermo Cancino is currently offline Guillermo CancinoFriend
Messages: 11
Registered: April 2015
Junior Member
Hi everyone, I solved the problem with org.eclipse.rcptt.runner.headless but now the mvn log show me the next error
If anybody knows I appreciate that tell me
Thanks

org.eclipse.core.runtime.CoreException: Problems occurred getting the plug-ins in this container
at org.eclipse.rcptt.launching.target.TargetPlatformManager.throwOnError(TargetPlatformManager.java:50)
at org.eclipse.rcptt.launching.target.TargetPlatformManager.createTargetPlatform(TargetPlatformManager.java:84)
at org.eclipse.rcptt.internal.launching.ext.Q7TargetPlatformManager.createTargetPlatform(Q7TargetPlatformManager.java:126)
at org.eclipse.rcptt.runner.util.TargetPlatformChecker.initializeTargetPlatform(TargetPlatformChecker.java:112)
at org.eclipse.rcptt.runner.util.TargetPlatformChecker.initAndCheckTargetPlatform(TargetPlatformChecker.java:70)
at org.eclipse.rcptt.runner.HeadlessRunner.performCoolThings(HeadlessRunner.java:48)
at org.eclipse.rcptt.runner.HeadlessRunnerApp.start(HeadlessRunnerApp.java:54)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
Forum: Newcomers
 Topic: Where to discuss or submit suggestions for the tutorials in Help?
Re: Where to discuss or submit suggestions for the tutorials in Help? [message #1700826 is a reply to message #1700630] Tue, 07 July 2015 13:00
Denis Roy is currently offline Denis RoyFriend
Messages: 393
Registered: October 2004
Location: Ottawa, Ontario, Canada
Senior Member

Which tutorials are you referring to?

Denis Roy
Eclipse Webmaster -- webmaster@eclipse.org
 Topic: how can i setting connection timeout for jetty?
Re: how can i setting connection timeout for jetty? [message #1700828 is a reply to message #1700496] Tue, 07 July 2015 13:01
Denis Roy is currently offline Denis RoyFriend
Messages: 393
Registered: October 2004
Location: Ottawa, Ontario, Canada
Senior Member

Does this help?

http://stackoverflow.com/questions/5445006/how-to-set-connection-request-timeout-for-jetty-sever


Denis Roy
Eclipse Webmaster -- webmaster@eclipse.org
 Topic: Project Explorer hierarchical view - disable location postfix?
Re: Project Explorer hierarchical view - disable location postfix? [message #1700834 is a reply to message #1700707] Tue, 07 July 2015 13:40
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 778
Registered: July 2009
Location: Grenoble, France
Senior Member
Hi,
The "in ..." suffix is only shown if the project name doesn't match the host folder name. In most user-cases that were used in order to drive the development of this feature (Maven and PDE projects), not highlighting the case of a folder not matching project name quickly became necessary in order to avoid user confusions (the Hierarchical layout makes users assumes it's like the file system, so there is need to show filesystem names somewhere).
Unfortunately, there is now way to tweak this label provider once hierarchical project layout is enabled. Patches on this topic would be welcome. http://git.eclipse.org/c/platform/eclipse.platform.ui.git/tree/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/nested/NestedProjectsLabelProvider.java
Pages (4): [ «    1  2  3  4    »]


Current Time: Tue Jul 07 22:15:35 GMT 2015

Powered by FUDForum. Page generated in 0.03495 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software