| Forum: TMF (Xtext) |
|---|
| Topic: Update of resource description |
|---|
| Update of resource description [message #1060667] |
Mon, 27 May 2013 11:49 |
Phil H Messages: 69 Registered: November 2012 |
Member |
|
|
Is there a way to update the resource description manually? At the moment only when I save the computeExportedObjects() method is called. So unsaved elements are not covered by xtext then.
Which method is necessary to call to update the resource description?
|
|
|
| Topic: Create Automatically Field in Xtext Editor |
|---|
|
| Topic: Save Action Error |
|---|
| Save Action Error [message #1060615] |
Mon, 27 May 2013 06:35 |
junior developer Messages: 149 Registered: January 2013 |
Senior Member |
|
|
Hi all ,
I wrote code in the NatureAddingEditorCallback class.I override afterSave(XtextEditor editor) method but When I save the editor,open one dialog window .I upload screenshot.I do not this dialog window.How can I remove it?
public class EditorCallback extends NatureAddingEditorCallback {
public class EditorCallback extends NatureAddingEditorCallback {
@Override
public void afterSave(XtextEditor editor) {
System.out.println("here we go");
editor.getDocument().modify(new IUnitOfWork<Void, XtextResource>() {
@Override
public java.lang.Void exec(XtextResource state) throws Exception {
ContentModel mymodel = ((ContentModel) state.getContents().get(0));
System.out.println(mymodel);
mymodel.setName(mymodel.getDisplayName().toString());
return null;
}
});
if (isDirty()) {
editor.doSave(new NullProgressMonitor());
}
super.afterSave(editor);
}
best regards.
|
|
|
| Topic: Using a File located in workspace during Validation process |
|---|
| Using a File located in workspace during Validation process [message #1060591] |
Mon, 27 May 2013 04:17 |
Christophe g Messages: 4 Registered: March 2013 |
Junior Member |
|
|
Hello
I have a little question I couldn't solve so far.
I'm using ETL and EVL to perform a transformation on my generated model from Xtext. I use them as standalone through a call in the validation process from the embedded Eclipse workspace.
In order to work, both ETL and EVL needs to be provided a "File" instance of a file located on a folder of the "Xtext Eclipse".
I use the "platform:" URI code to access file from the embedded Eclipse workspace.
How can I create a File instance of a file in my xtext.base folder, without having to provide the full path to the file ?
I know the issue might sound Epsilon-related rather then Xtext-related, but the problem is just about loading a file, from Xtext validation process, so I thought here would be a better place to get some help.
Thanks for your help.
Best reguards,
Christophe
[Updated on: Mon, 27 May 2013 04:23] Report message to a moderator
|
|
|
| Topic: generated launch configuration |
|---|
| generated launch configuration [message #1060497] |
Sat, 25 May 2013 08:24 |
Lorenzo Bettini Messages: 1126 Registered: July 2009 |
Senior Member |
|
|
Hi
when running the mwe2 for the first time, Xtext also generates a launch
configuration with proper MaxPergGen arguments (to avoid out of memory
errors), in the (hidden by default) directory .launch, called "Launch
Runtime Eclipse.launch"
right-clicking on the project, Run As... shows "Eclipse Application" but
selecting this will NOT use the generated launch configuration (it
creates a new launch configuration, alas, without MaxPermGen
arguments)... one has to open the Run Configurations dialog in order to
use the generated launch configuration (and to know about that, since by
default .launch is hidden)...
is that the intended behavior?
cheers
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
|
|
|
| Topic: Blog post about Ecore EPackage import as reference |
|---|
|
| Topic: Creating xtext file as model from GMF |
|---|
| Creating xtext file as model from GMF [message #1060415] |
Fri, 24 May 2013 10:24 |
serhat gezgin Messages: 134 Registered: January 2013 Location: Izmir |
Senior Member |
|
|
Hi,
I need to create xtext resource on 'XXXDiagramEditorUtil' class createDiagram() method
cause i synchronized GMF and xtext but create diagram action give me error because it
want to create emf resourse but i need xtext resource
so i think i need to change createDiagram() method. But i cant do this.
(now i can do create xtext resource by hand than generate diagram but i cant start from diagram)
Do anyone have tried it before ?
Regards.
|
|
|
| Topic: Error resolving cross references on resource |
|---|
| Error resolving cross references on resource [message #1060272] |
Thu, 23 May 2013 14:57 |
Phil H Messages: 69 Registered: November 2012 |
Member |
|
|
Hello,
I integrated an Xtext in a GMF editor and unfortunately get the following error when I save my diagram:
1397 [Worker-0] ERROR org.eclipse.xtext.builder.clustering.ClusteringBuilderState - Error resolving cross references on resource 'platform:/resource/hg/default.pld'
java.lang.NullPointerException
at org.eclipse.xtext.builder.builderState.BuilderStateUtil.create(BuilderStateUtil.java:33)
at org.eclipse.xtext.builder.clustering.ClusteringBuilderState.doUpdate(ClusteringBuilderState.java:212)
at org.eclipse.xtext.builder.builderState.AbstractBuilderState.update(AbstractBuilderState.java:104)
at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:168)
at org.eclipse.xtext.builder.impl.XtextBuilder.incrementalBuild(XtextBuilder.java:146)
at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:95)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
What is causing this?
|
|
|
| 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: 149 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: 149 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: 149 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
|
|
|
| Forum: Orbit |
|---|
| Topic: javax.money |
|---|
| javax.money [message #1060691] |
Mon, 27 May 2013 16:58 |
Werner Keil Messages: 1068 Registered: July 2009 |
Senior Member |
|
|
Hi,
Following the soon finished EDR release, javax.money (JSR-354) shall be
published to MavenCentral for the first time.
Is it also possible to create Orbit entries and CQs for those draft releases
of such a JSR?
While subject to change where necessary, the general API of a JSR like 354
is reasonably stable and especially bundles like UOMo Business intend to
implement the JSR along the lines of Sisu for JSRs like 330.
Thanks,
Werner
|
|
|
| Forum: EGL Development Tools |
|---|
| Topic: How can i contact "yuvaraj g" ? |
|---|
|
| Forum: PDT |
|---|
| Topic: Linking eclipse simulator and FORTRAN language |
|---|
| Linking eclipse simulator and FORTRAN language [message #1060521] |
Sat, 25 May 2013 20:11 |
vikrant vishal Messages: 1 Registered: May 2013 |
Junior Member |
|
|
Hi,
I have recently started using Eclipse and its related products. I am programming in FORTRAN language for my work but I have to frequently call eclipse simulator from FORTRAN files. How can I include eclipse simulator into my FORTRAN project?
Regards,
Vikrant
|
|
|
| Forum: EMF |
|---|
| Topic: Run generated Editors in Eclipse4 RCP |
|---|
| Run generated Editors in Eclipse4 RCP [message #1060687] |
Mon, 27 May 2013 15:44 |
Régent L Archevêque Messages: 34 Registered: May 2010 |
Member |
|
|
Hi,
I know it is highly related to Eclipse4 framework but I believe it is more appropriate to publish this question in this forum.
I started to test Eclipse4 framework. So far, it is going well with the 3.x compatibility layer. I try to build a Eclipse4 RCP application that includes an EMF generated Editor. The product starts properly but I get an error the first time the generated EMF editor is invoked (new model instance | simple open in the Navigator view). It complaints about "cannot find ID additions" (Popup menu entry point). I close the editor and try a second time and now it works. I believe there is a bundle startlevel that must set to resolve this issue but I do not know which one. If I navigate the model instance, the editor fails when right-clicking to get the popup menu. Is it possible to run EMF generated editor in Eclipse4?
I created a simple Eclipse4 RCP that reflects this.
-test (EMF model including Root that contains multiple Element.
-test.edit
-test.editor
-test.rcp (Product, E4 application etc).
Eclipse Build
-Eclipse 4.3RC1 (I20130516-2200)
-EMF Common 2.9.0.v20130515-0805
-EMF Ecore 2.9.0.v20130515-0805
-XCore 1.1.0.v20130522-0607
Steps to reproduce the problem:
1) Import the exiting projects (zip in attachment)
2) Open test.rcp->test.rcp.product
3) Launch an Eclipse Application (this will fail).
4) Go in Run->Run Configurations..
5) Select Ecplise Application->test.rcp.product
6) Select Plug-ins tab
7) Click on Add Required Plug-ins
Click on Run
9) In the Navigation View, create a new project named test (Right-Click -> New -> Project...)
10) Select the project test, right-click New->Other->Example EMF Model Creation Wizards->Test Model, Click on Next
11) Set the name of the file (ex. My1.test).
12) In the Model Object combo box select Root then Finish.
13) You get the editor opening error (see Log View in the bottom)
14) Close the editor
15) Open My1.test
16) Now the editor works.
17) Browse the EMF instance and select Root element.
18) Right-click to invoke the popup menu.
19) You get the popup menu error. (see Log view in the bottom).
|
|
|
| Topic: EMF's Jet templates costumization |
|---|
| EMF's Jet templates costumization [message #1060683] |
Mon, 27 May 2013 14:36 |
Amine BEN Messages: 3 Registered: January 2013 |
Junior Member |
|
|
Hi all,
I'm trying to costumize the EMF API generation of model code by adding a new file.
I created a new project where I copied the templates from *.codegen.ecore preserving the folder's hierarchy, then I changed the templates directory in the genmodel options to the one I just copied. In order to make sure that the generation process uses these templates I added some java comments to the templates. This worked just fine.
When adding a new jet template to the template's folder, and running the generation, a java class for this template is not generated in the JETemitter project.
How can I solve this problem
Thank you in advance
|
|
|
| Topic: [EMF] Change volatile and transient properties |
|---|
| [EMF] Change volatile and transient properties [message #1060651] |
Mon, 27 May 2013 09:31 |
Aleksandar Toshovski Messages: 13 Registered: December 2011 |
Junior Member |
|
|
Hello,
When I store some instances of an ECore model and then change violate value, would I have an error when I try to read the file and what kind of exception will occur?
And the same question about transient. If something is transient=true and then is changed to false. If i have instancies from the old ECore model, should I expect some kind of errors? And when transient=false and gets changed to transient=true. Would the stored values be ignored, or I'll recieve an error?
Regards,
Aleksandar
[Updated on: Mon, 27 May 2013 09:32] Report message to a moderator
|
|
|
| Forum: Rich Client Platform (RCP) |
|---|
| Topic: Access an Eclipse RCP Application from an external Java program |
|---|
| Access an Eclipse RCP Application from an external Java program [message #1060686] |
Mon, 27 May 2013 15:28 |
tony hedoux Messages: 4 Registered: May 2012 |
Junior Member |
|
|
Hi,
I currently have a 3.7.x Eclipse RCP based application (Call it A program).
From an external java program (call it B program) (not necessary Eclipse RCP based), i would like to be able
to control my A program.
I am trying to find the best technical approach to resolve this need.
I think about the "old solutions", like RMI or plain java socket but I'm pretty sure this problems must have a more elegant solution.
Any idea on technologies i should use? Or any sample of an existing API from which i can get a solution?
Thx for help,
Tony
|
|
|
| Topic: How to add columns in SourceViewer at right side? |
|---|
| How to add columns in SourceViewer at right side? [message #1060416] |
Fri, 24 May 2013 10:31 |
Ramesh Gunjal Messages: 2 Registered: February 2012 |
Junior Member |
|
|
Hi,
I have some special requirement to the text editor. I want to show the source code (C, C++) in editor with line number, hot-spots (overview ruler) and some colums at the right side of the text. These columns will have some information about corresponding line. Something like attached screen-shot. How can I do this? I found org.eclipse.ui.workbench.texteditor.rulerColumns; which can be used for line based information but the problem is it adds the column to the ruler i.e. at left hand side of text and I want it right side. Also the overview ruler is outside the scroll bar hence can not be used. Could you please help me to acheive this requirement?
For this I have implemented extension point "org.eclipse.ui.editors". And override createPartControl() method of EditorPart (pasting code below); where I am creating SourceViewer control and rulers.
------------------------------
public void createPartControl(Composite parent) {
final SashForm sashForm = new SashForm(parent, SWT.HORIZONTAL);
sashForm.setLayout(new RowLayout());
CompositeRuler lineNumRuler = new CompositeRuler();
LineNumberRulerColumn lineCol = new LineNumberRulerColumn();
lineNumRuler.addDecorator(0, lineCol);
OverviewRuler overviewRuler = new OverviewRuler(null, 10, null);
SourceViewer viewer = new SourceViewer(sashForm, lineNumRuler,
overviewRuler, true, SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI
| SWT.BORDER | SWT.FULL_SELECTION);
AnnotationRulerColumn col = new AnnotationRulerColumn(10);
viewer.addVerticalRulerColumn(col);
Document document = new Document("My C code here");
viewer.setDocument(document);
}
------------------------------------
--
God bless you and all,
Ramesh
Attachment: editor.png
(Size: 32.47KB, Downloaded 8 times)
|
|
|
| Topic: Problem with SWT Browser in 3.8 |
|---|
| Problem with SWT Browser in 3.8 [message #1059944] |
Wed, 22 May 2013 05:24 |
Guenther Mahr Messages: 5 Registered: September 2011 |
Junior Member |
|
|
I have a problem with the SWT Browser widget when running on 3.8 (everything is fine on 3.7): during initialization execution stops in IDispatch.GetTypeInfo() and doesn't resume. We are running on XP.
Thanks for your help!
Günther
|
|
|
| Topic: JFace TableViewer Listener to deselect previously selected row |
|---|
|
| Topic: Eclipse RCP 3.x - Updating IStatusLineManager of Workbench |
|---|
| Eclipse RCP 3.x - Updating IStatusLineManager of Workbench [message #1059927] |
Wed, 22 May 2013 04:27 |
Tomas Kramaric Messages: 5 Registered: August 2012 |
Junior Member |
|
|
Anybody knows how to update IStatusLineManager outside ApplicationWorkbenchWindowAdvisor ?
I tried following approach but it throws NullPointerException
IStatusLineManager statusLine = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor().getEditorSite().getActionBars().getStatusLineManager();
statusLine.setMessage("Test Message");
I even tried to execute same code from inside:
display.asyncExec(...)
But same result: NullPointerException on getStatusLineManager()
Is there any possibility to use some Equinox oSGI service to update StatusLine of Workbench somehow more comfortable, without making static reference to ApplicationWorkbenchWindowAdvisor ?
|
|
|
| Topic: RCP App Logging |
|---|
| RCP App Logging [message #1059700] |
Tue, 21 May 2013 05:37 |
J R Messages: 3 Registered: July 2012 |
Junior Member |
|
|
Hi,
I'm using default logging framework in my app.
Activator.getDefault().getLog()
By default it's set to use ten 1MB rolling files put in workspace/.metadata.
I need to change maximum number of files let's say to 20 and file size to 5MB.
How can I change default logger configuration?
|
|
|
| Forum: Eclipse 4 |
|---|
| Topic: singleton part |
|---|
| singleton part [message #1060685] |
Mon, 27 May 2013 15:22 |
AIT YAHIA Idir Messages: 2 Registered: April 2013 |
Junior Member |
|
|
hi all.
this is what I want to do
I created a single Tableviewer in postContruction, and the user load the data from an external XML file via a menu command.
but when I try to load data via a method in the class, the recovered viewer is null (the method is called from a new instance of the class).
and I have a NullPointerException
I tried to make a class as singleton with anotation @Singleton, but i can't get existing instance (
it's the basic approach look like, but it's been two days that I'm trying to fix without success.
can someone help me by telling me how to proceed.
thanks in advance
My viepart class
@Singleton
public class MyViewPart {
private TableViewer viewer;
@PostConstruct
public void createControls(Composite parent)
viewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL
| SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.BORDER);
{ // my code here }
public void loadData(filename)()
{
// my code here
}
}
My Menu commande handler
public class LoadDataHandler {
@Execute
public void execute() {
Shell shell = new Shell(Display.getDefault());
DirectoryDialog dialog = new DirectoryDialog(shell);
String fileSelected = dialog.open();
MyViewPart data = new MyViewPart();
data.loadData(fileSelected);
}
}
[Updated on: Mon, 27 May 2013 16:17] Report message to a moderator
|
|
|
| Topic: Using e3 properties view in e4 RCP application |
|---|
| Using e3 properties view in e4 RCP application [message #1060666] |
Mon, 27 May 2013 11:23 |
laurent Mising name Messages: 23 Registered: September 2011 |
Junior Member |
|
|
Hi all,
I've been struggling for a couple of days on the following problem so I hope somebody can help...
I built a small e4 RCP application containing both an "e4 home made" browser and an "e3 properties view".
I mixed e3 and e4 following "dirksmetric tutorial" and got a functionning browser displayed together with an empty property view.
To get a browser selected element displayed in my porperty sheet, I did the following things :
- On my e4 browser side, I use the e4 selection service in #createPartControl :
// Register the viewer as a selection provider (to be consumed by the property view...)
viewer.addSelectionChangedListener(new ISelectionChangedListener() {
@Override
public void selectionChanged(SelectionChangedEvent event) {
IStructuredSelection selection = (IStructuredSelection) event.getSelection();
// set the selection to the service
selectionService.setSelection(
selection.size() == 1? selection.getFirstElement(): selection.toArray());
}
});
- On the e3 "classical" property sheet side, I defined a couple of things :
1. I called IDE.registerAdapters in my ApplicationWorkbenchAdvisor#initialize.
2. I declared my property source adapter as follow in my plugin.xml :
<extension
point="org.eclipse.core.runtime.adapters">
<factory
adaptableType="org.eclipse.emf.ecore.EObject"
class="myappmodeler.properties.ModelPropertiesAdapter">
<adapter
type="org.eclipse.ui.views.properties.IPropertySource">
</adapter>
</factory>
</extension>
3. My ModelPropertiesAdapter#getAdapter returns a property source :
public Object getAdapter(Object adaptableObject, Class adapterType) {
if (adapterType== IPropertySource.class && adaptableObject instanceof EObject){
emfGlobalFactory = new ComposedAdapterFactory();
emfGlobalFactory.addAdapterFactory(new RepositorystructureItemProviderAdapterFactory());
emfGlobalFactory.addAdapterFactory(new ApplicationItemProviderAdapterFactory());
emfGlobalFactory.addAdapterFactory(new ServiceItemProviderAdapterFactory());
return new AdapterFactoryContentProvider(emfGlobalFactory).getPropertySource(adaptableObject);
}
return null;
}
My problem is this adapter is not even executed.
So, I don't know how to "link" my "e4" selection with the "e3" adapter execution so that (hopefully) my properties get displayed.
Kind regards,
Laurent
|
|
|
| Topic: Re-Export org.eclipse.e4.ui.model.workbench |
|---|
| Re-Export org.eclipse.e4.ui.model.workbench [message #1060661] |
Mon, 27 May 2013 10:54 |
Jonas Helming Messages: 182 Registered: July 2009 |
Senior Member |
|
|
Hi,
I have noticed that org.eclipse.e4.ui.workbench does not re-export
org.eclipse.e4.ui.model.workbench anymore.
(since 2013-03-14, commit d962096edd7967c5f243ce6e2c62fc7ad20f3bd6)
However, the model is part of the API of *ui.workbench so IMHO, it
should be re-exported.
Is the removal of the re-export intended?
Cheers
Jonas
|
|
|
| Topic: Maven sources ordering after regenerating eclipse files |
|---|
| Maven sources ordering after regenerating eclipse files [message #1060596] |
Mon, 27 May 2013 04:50 |
Sverre Moe Messages: 17 Registered: September 2012 |
Junior Member |
|
|
Ever since I started using maven with eclipse I have had problems after running mvn eclipse:eclipse.
The ordering I use on my projects are src/main/*,src/test/*, but everytime I have maven regenerate the eclipse project files the ordering changes to src/test/*,src/main/* and I have to manually change it back.
Is there a way to get maven to use the ordering I want when it generates the eclipse project files.
|
|
|
| Forum: ATL |
|---|
| Topic: XML2XMLProject |
|---|
|
| Forum: OCL |
|---|
| Topic: [Announce] Eclipse OCL 4.1.0 (Kepler) RC1 is now available. |
|---|
|
| Forum: GMF (Graphical Modeling Framework) |
|---|
| Topic: Acces of node element from outside |
|---|
| Acces of node element from outside [message #1060672] |
Mon, 27 May 2013 12:08 |
Phil H Messages: 69 Registered: November 2012 |
Member |
|
|
Hi,
I'm using Xtext and GMF and therefor I would like to acces the current selected node in my xtext project in order to get the child of this node exported.

For exampple if Super Class 1 is selected, I want to acces this class in my xtext project to get the childs B and C. Is there a way to do this?
|
|
|
| Topic: GMF creating xtext file as model |
|---|
| GMF creating xtext file as model [message #1060414] |
Fri, 24 May 2013 10:22 |
serhat gezgin Messages: 134 Registered: January 2013 Location: Izmir |
Senior Member |
|
|
Hi,
I need to create xtext resource on 'XXXDiagramEditorUtil' class createDiagram() method
cause i synchronized GMF and xtext but create diagram action give me error because it
want to create emf resourse but i need xtext resource
so i think i need to change createDiagram() method. But i cant do this.
(now i can do create xtext resource by hand than generate diagram but i cant start from diagram)
Do anyone have tried it before ?
Regards.
|
|
|
| Forum: QVT-OML |
|---|
| Topic: [Announce] Eclipse QVT Operational 3.3.0 (Kepler) RC1 is now available |
|---|
|
| Forum: EMF "Technology" (Ecore Tools, EMFatic, etc) |
|---|
| Topic: [Ecore Tools] Redundant builds |
|---|
|
| Forum: Newcomers |
|---|
| Topic: how to access the subclass from the superclass |
|---|
| how to access the subclass from the superclass [message #1060560] |
Sun, 26 May 2013 17:42 |
Fatima Salhi Messages: 2 Registered: May 2013 |
Junior Member |
|
|
hi everyone
Here are some of my EMF meta model:

I want to retrieve the names of all primitives
here is my java code:
Systeme s = (Systeme)resource.getContents().get(0);
//Component
EList<Component> list1 = s.getComponente();
Iterator i1 = list1.iterator();
while (i1.hasNext()){
Component c =(Component) i1.next();
java.lang.System.out.println(c.getNom());
}
but this code displays the names of all the Component elements
how can I access the Primitive class from the Component class?
|
|
|
| Topic: .product file write error |
|---|
| .product file write error [message #1060522] |
Sun, 26 May 2013 00:27 |
Kumail Haider Messages: 4 Registered: April 2013 |
Junior Member |
|
|
I am trying to export my osgi project using the eclipse export manager. In my .product file after defining the dependencies and the launch preferences, I click on the 'run an instance' option in the overview tab but it keeps saying that I can't write the .config file to my workspace. I have attached the log from my workspace. Appreciate any help!
Attachment: error.log
(Size: 1.81KB, Downloaded 5 times)
|
|
|
| Topic: I have lost the Menue Iteam Team |
|---|
|
| Topic: Debugging Error - Conflicting handlers for org.eclipse.wst.sse |
|---|
| Debugging Error - Conflicting handlers for org.eclipse.wst.sse [message #1060454] |
Fri, 24 May 2013 13:51 |
Kathy Piast Messages: 2 Registered: May 2013 |
Junior Member |
|
|
I'm a little baffled as I have used eclipse to debug PHP with XDebug on other machines. I am not setup up a new machine and when I try to use the debugger I get the following error:
eclipse.buildId=M20130204-1200
java.version=1.7.0_21
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_CA
Command-line arguments: -os win32 -ws win32 -arch x86_64
Error
Sat May 25 13:28:14 EDT 2013
Conflicting handlers for org.eclipse.wst.sse.ui.toggle.comment: {org.eclipse.wst.sse.ui.internal.handlers.ToggleLineCommentHandler@18e2184c} vs {org.eclipse.php.internal.ui.actions.PHPToggleLineCommentHandler@23a93257}
Any words of wisdom?
Kate
|
|
|