Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to export Xtext project referencing to UML for support the Xtext Editor
How to export Xtext project referencing to UML for support the Xtext Editor [message #1764260] Sat, 27 May 2017 16:56 Go to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
I want to export my Xtext project like ->Plug-in Development in <my.dsl>.sdk , But when i create new projects & files . Then write in th editor is not reference to uml elements when i press CTRL+SPACE like in runtime eclipce it's reference just Keywords .
can you help me for this problem ?
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764261 is a reply to message #1764260] Sat, 27 May 2017 16:59 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
sorry i cannot follow you

i assue you did the following

- edited the feature in the sdk project and added the new plugins you created e.g. the 2 resource service provider plugins for uml
- you installed the feature into a eclipse with all dependencies (xtext, uml, .....)


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764266 is a reply to message #1764261] Sat, 27 May 2017 17:19 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
yes i edited the feature in the sdk project and added the 2 xtext.uml plugins and installed them in my installed eclipce in the 2 folders plugins & features , But nothing change and i have this error in my editor mismatched input '<EOF>' expecting RULE_ID
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764267 is a reply to message #1764266] Sat, 27 May 2017 17:21 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
no thats a different error:

its says you model is invalid: did you test that with a valid model?
are you sure you installed the right dsl into eclipse?
are you sure your plugin could be loaded?

(open host osgi console and type "ss yourdsl" to see the state of yourdsl plugins


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764268 is a reply to message #1764266] Sat, 27 May 2017 17:23 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
I want to lunch just my editor tha reference to uml elements without runtime eclipce Application , is there other solution . can you help me please .
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764269 is a reply to message #1764268] Sat, 27 May 2017 17:26 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
this will work perfectly fine if you export everything in a correct way and install it in a correct ways
thus you need to check if the install worked.

=> open console
=> klick to the arrow and select "host osgi console"
=> type ss <name of yourdsl> and ss <name of youruml plugin>
and look at the states it gives


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764270 is a reply to message #1764268] Sat, 27 May 2017 17:26 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
I tried other DSL without referencing to uml & i installed them in my eclipce it's work fine
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764271 is a reply to message #1764270] Sat, 27 May 2017 17:28 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
well

and what is the state of the uml plugins?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764272 is a reply to message #1764270] Sat, 27 May 2017 17:32 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
this the result
WARNING: This console is connected to the current running instance of Eclipse!
osgi> ss org.xtext.actrl
"Framework is launched."


id	State       Bundle
1078	ACTIVE      org.xtext.actrl_1.0.0.201705271621
1079	STARTING    org.xtext.actrl.tests_1.0.0.201705271621
1080	ACTIVE      org.xtext.actrl.ui_1.0.0.201705271621
osgi> ss org.eclipse.xtext.uml
"Framework is launched."


id	State       Bundle
1077	STARTING    org.eclipse.xtext.uml_1.0.0.201705271621
1084	STARTING    org.eclipse.xtext.uml_1.0.0.201705271810
osgi> 
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764274 is a reply to message #1764272] Sat, 27 May 2017 17:35 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
this other view , what does it mean ?
osgi> ss org.xtext.actrl
"Framework is launched."


id	State       Bundle
1078	ACTIVE      org.xtext.actrl_1.0.0.201705271621
1079	STARTING    org.xtext.actrl.tests_1.0.0.201705271621
1080	ACTIVE      org.xtext.actrl.ui_1.0.0.201705271621
osgi> ss org.eclipse.xtext.uml
"Framework is launched."


id	State       Bundle
1077	STARTING    org.eclipse.xtext.uml_1.0.0.201705271621
1084	STARTING    org.eclipse.xtext.uml_1.0.0.201705271810
osgi> ss org.eclipse.xtext.ui.uml
"Framework is launched."


id	State       Bundle
1083	STARTING    org.eclipse.xtext.ui.uml_1.0.0.201705271810
osgi> 
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764275 is a reply to message #1764274] Sat, 27 May 2017 17:36 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
why do you have the uml plugin installed multiuple times.

what happens if you type

start 1083

what error does it give


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764276 is a reply to message #1764275] Sat, 27 May 2017 17:42 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
I type start 1083 nothing happen
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764277 is a reply to message #1764276] Sat, 27 May 2017 17:44 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
no what if you type

ss org.eclipse.xtext.ui.uml

again


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764278 is a reply to message #1764277] Sat, 27 May 2017 17:47 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
osgi> ss start 1083
"Framework is launched."


id	State       Bundle
917	ACTIVE      org.eclipse.team.svn.ui.startup_1.1.0.I20130527-1700
osgi>  ss org.eclipse.xtext.ui.uml 
"Framework is launched."


id	State       Bundle
1083	ACTIVE      org.eclipse.xtext.ui.uml_1.0.0.201705271810
osgi> 
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764280 is a reply to message #1764278] Sat, 27 May 2017 17:49 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
I have this wornings

Description Resource Path Location Type
Header already defined MANIFEST.MF /org.eclipse.xtext.ui.uml/META-INF line 9 Plug-in Problem

Description Resource Path Location Type
Header already defined MANIFEST.MF /org.eclipse.xtext.uml/META-INF line 10 Plug-in Problem
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764281 is a reply to message #1764278] Sat, 27 May 2017 17:50 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
then the editor should work fine.
have no idea what happens

(the error description you have does not tell much
can you post screenshot of project explorer and the editor with the error)

p.s.:

as i said before it strikes me that you have 2 org.eclipse.xtext.uml_1.0.0.201705271621
maybe that is the cause for this


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764283 is a reply to message #1764281] Sat, 27 May 2017 18:14 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
No Message Body
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764284 is a reply to message #1764281] Sat, 27 May 2017 18:17 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
This screenshot 1
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764285 is a reply to message #1764281] Sat, 27 May 2017 18:17 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
This screenshot 1
  • Attachment: actrl.png
    (Size: 93.68KB, Downloaded 128 times)
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764286 is a reply to message #1764285] Sat, 27 May 2017 18:19 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
The screenshot 2
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764287 is a reply to message #1764285] Sat, 27 May 2017 18:19 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
The screenshot 2
  • Attachment: actrl2.PNG
    (Size: 126.02KB, Downloaded 122 times)
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764288 is a reply to message #1764287] Sat, 27 May 2017 18:20 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
The screenshot 3
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764289 is a reply to message #1764287] Sat, 27 May 2017 18:21 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
The screenshot 3
  • Attachment: actrl3.PNG
    (Size: 107.68KB, Downloaded 109 times)
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764290 is a reply to message #1764287] Sat, 27 May 2017 18:22 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
The errors are. As. I the class mentioned one from yours ?
If you klick on the details what does it tell?
Do you have any warnings in your dsl or uml plugins (specially on the build.properties files)


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764291 is a reply to message #1764290] Sat, 27 May 2017 18:26 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
eclipse.buildId=unknown
java.version=1.8.0_121
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64

Error
Sat May 27 19:08:46 WAT 2017
org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.ui.UmlCollaborationUseExecutableExtensionFactory - com.google.inject.ProvisionException: Guice provision errors:

1) Error injecting constructor, org.eclipse.core.runtime.AssertionFailedException: null argument:I can't find the edited element
at org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.scoping.UmlCollaborationUseScopeProvider.<init>(Unknown Source)
while locating org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.scoping.UmlCollaborationUseScopeProvider
while locating org.eclipse.xtext.scoping.IScopeProvider
for field at org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider.scopeProvider(Unknown Source)
while locating org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.ui.quickfix.UmlCollaborationUseQuickfixProvider
while locating org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider
for field at org.eclipse.xtext.ui.editor.quickfix.AbstractIssueResolutionProviderAdapter.resolutionProvider(Unknown Source)
while locating org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator

1 error

eclipse.buildId=unknown
java.version=1.8.0_121
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64

Error
Sat May 27 19:08:46 WAT 2017
org.eclipse.papyrus.uml.textedit.parameter.xtext.ui.UmlParameterExecutableExtensionFactory - com.google.inject.ProvisionException: Guice provision errors:

1) Error injecting constructor, org.eclipse.core.runtime.AssertionFailedException: null argument:I can't find the edited element
at org.eclipse.papyrus.uml.textedit.parameter.xtext.scoping.UmlParameterScopeProvider.<init>(Unknown Source)
while locating org.eclipse.papyrus.uml.textedit.parameter.xtext.scoping.UmlParameterScopeProvider
while locating org.eclipse.xtext.scoping.IScopeProvider
for field at org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider.scopeProvider(Unknown Source)
while locating org.eclipse.papyrus.uml.textedit.parameter.xtext.ui.quickfix.UmlParameterQuickfixProvider
while locating org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider
for field at org.eclipse.xtext.ui.editor.quickfix.AbstractIssueResolutionProviderAdapter.resolutionProvider(Unknown Source)
while locating org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator

1 error

Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764292 is a reply to message #1764291] Sat, 27 May 2017 18:28 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
I have this wornings

Description Resource Path Location Type
Header already defined MANIFEST.MF /org.eclipse.xtext.ui.uml/META-INF line 9 Plug-in Problem

Description Resource Path Location Type
Header already defined MANIFEST.MF /org.eclipse.xtext.uml/META-INF line 10 Plug-in Problem
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764294 is a reply to message #1764292] Sat, 27 May 2017 18:31 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member

You should fix that
Hmm and on build properties. The other screenshot
Shows a warning on that as well (regarding build properties bin includes)


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764295 is a reply to message #1764294] Sat, 27 May 2017 18:32 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Is this papyrus your stuff?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764296 is a reply to message #1764294] Sat, 27 May 2017 18:34 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
How can i Fix it , help me please
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764297 is a reply to message #1764296] Sat, 27 May 2017 18:37 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
witch stuff do you mean
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764298 is a reply to message #1764296] Sat, 27 May 2017 18:38 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Have no idea

The manifest hints you have duplicate lines in manifest or duplicate manifests
For the build properties there should be a wuckfix

For the errors no idea


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764299 is a reply to message #1764298] Sat, 27 May 2017 18:39 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
The classes mentioned in the errors

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764300 is a reply to message #1764299] Sat, 27 May 2017 18:45 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
I want also to replace Run as eclipce Application in my project with program java main to generate my DSL Editor to use this in Java Application
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764301 is a reply to message #1764300] Sat, 27 May 2017 18:47 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
Is there any idia About it
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764302 is a reply to message #1764301] Sat, 27 May 2017 18:48 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
I cannot follow you regarding this
Can you explain what you mean by Java application


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764303 is a reply to message #1764302] Sat, 27 May 2017 18:54 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
I want to create small java aplication in eclipce has a button when clicking on it , it generate the xtext editor
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764304 is a reply to message #1764303] Sat, 27 May 2017 18:58 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hmm I don't know how to do that
Do you mean run the workflow
There is already a context menu entry for that


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764324 is a reply to message #1764304] Sun, 28 May 2017 11:17 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
Hi Christian , i mean that i generated .MWE manually ,I want just to generate Xtext editor with a java main method , Instead ( Run As Eclipse Application ) .
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764325 is a reply to message #1764304] Sun, 28 May 2017 11:18 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
Hi Christian , i mean that i generated .MWE manually ,I want just to generate Xtext editor with a java main method , Instead ( Run As Eclipse Application ) .
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764327 is a reply to message #1764304] Sun, 28 May 2017 11:23 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
No Message Body

[Updated on: Sun, 28 May 2017 11:25]

Report message to a moderator

Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764328 is a reply to message #1764304] Sun, 28 May 2017 11:23 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
Hi Christian , i mean that i generated .MWE manually ,I want just to generate Xtext editor with a java main method , Instead ( Run As Eclipse Application ) .
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764329 is a reply to message #1764325] Sun, 28 May 2017 11:24 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
but that is not "generate". generate means: run the workflow/mwe
that is "start an eclipse with my dsl contained"

and so again my question; what do you mean be "start and java applicaton"

- a web editor
- and eclipse based editor
- an enbedded editor in a swt app
- a language server protocol based editor e.g. vscode?

if you want to eclipse the launch as eclipse app does exactly that.
if you want something else i have no idea


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764331 is a reply to message #1764329] Sun, 28 May 2017 11:28 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
Yes, I want exactly that eclipse the launch as eclipse app , and eclipse based editor.
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764332 is a reply to message #1764331] Sun, 28 May 2017 11:33 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
I have no idea on that. That is question for the rcp or plugin development forum

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764333 is a reply to message #1764332] Sun, 28 May 2017 11:39 Go to previous messageGo to next message
abdf mncr is currently offline abdf mncrFriend
Messages: 75
Registered: February 2017
Member
OK thanks for your help
Re: How to export Xtext project referencing to UML for support the Xtext Editor [message #1764343 is a reply to message #1764333] Sun, 28 May 2017 16:02 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Xtext inherits many of the standard Eclipse editor classes and so supports many of the standard editor protocols.

If you understand injection you may be able to use what Xtext generates directly. I don't so for OCL I create a derived XtextEditor class. See e.g. org.eclipse.ocl.xtext.completeocl.ui.CompleteOCLEditor

Regards

Ed Willink
Previous Topic:Error When Serializing CrossReference
Next Topic:IFeatureScopeTracker.Provider lsp 2.12
Goto Forum:
  


Current Time: Fri Apr 19 21:22:19 GMT 2024

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

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

Back to the top