Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext Save Action
Xtext Save Action [message #1059783] Tue, 21 May 2013 15:06 Go to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi all,

I write a code in the Xtext save method.I have problem:
1:Auto Complision is not active in the editor.
2.I can not Ctrl+Z
3-My cursor is in the beginning of the editor every time.
4-I can not trim mymodel.getDisplayName().if I trim it ,changes not do.

@Override
	public void afterSave(XtextEditor editor) {
		// TODO Auto-generated method stub
		

		IXtextDocument myDocument = editor.getDocument();
		myDocument.modify(new IUnitOfWork<Void, XtextResource>() {
			@Override
			public java.lang.Void exec(XtextResource res) throws Exception {
				ContentModel mymodel =(ContentModel) res.getContents().get(0);
				mymodel.setName(mymodel.getDisplayName().toString().intern());
				System.out.println(mymodel.getDisplayName().toString());
				
				return null;
			}
		});	



Best Regrads,

[Updated on: Tue, 21 May 2013 15:06]

Report message to a moderator

Re: Xtext Save Action [message #1059797 is a reply to message #1059783] Tue, 21 May 2013 16:02 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi,

i dont understand 1 2 and 3
4 works fine for me

package org.xtext.example.mydsl.ui;

import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.xtext.builder.nature.NatureAddingEditorCallback;
import org.eclipse.xtext.resource.XtextResource;
import org.eclipse.xtext.ui.editor.XtextEditor;
import org.eclipse.xtext.util.concurrent.IUnitOfWork;
import org.xtext.example.mydsl.myDsl.Greeting;
import org.xtext.example.mydsl.myDsl.Model;

public class MyDslEditorCallback 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 {
				for (Greeting g : ((Model)state.getContents().get(0)).getGreetings()) {
					g.setName(g.getName().toUpperCase());
				}
				return null;
			}
			
		});
		if (isDirty()) {
			editor.doSave(new NullProgressMonitor());
		}
		super.afterSave(editor);
		
	}


}


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1059799 is a reply to message #1059797] Tue, 21 May 2013 16:07 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
The crtl z problem look like a bug to me.

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1059886 is a reply to message #1059799] Wed, 22 May 2013 06:22 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian ,

After I have written this code,Auto Completion is not active.When I enter ctrl+space,does not come any auto completion (not open diaglog page):my first problem is this.

Second problem is :I load screenshot.I wrote "displayName = "ddddddddddeee "": There is a blank end of the displayname.and then, When I save the editor :

ContentModel ddddddddddeee { :here ,"{" curly bracket shifting one space.
if I write "displayName = " ddddddddddeee"" :a blank begin ,Name "ddddddddddeee" shifting.

İf I wite "ddddddddddeee" :there isnt any blank , Nothing happens :not change name with displayname.


PS:I can not trim displayname: such as :
String dumyString = mymodel.getDisplayName().toString().trim();
dumyString = dumyString.replace(" ", "");

if I use: mymodel.setName(dumyString);
not change the name with displayname.




Do you know another class for I can reach the XtextResorces?I can try this prosses in it?How I can reach XtextResources instead of IXtextEditorCallback?











Re: Xtext Save Action [message #1059892 is a reply to message #1059886] Wed, 22 May 2013 06:42 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi I don't know any for "automatically to be called" maybe Sebastian
Zarnekow knows

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1059896 is a reply to message #1059886] Wed, 22 May 2013 06:46 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Maybe http://www.eclipse.org/forums/index.php/m/786926/ helps

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1059956 is a reply to message #1059896] Wed, 22 May 2013 11:00 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian,

I bind NatureAddingEditorCallback in the UI.but not works,I do not bind it ?

@Override
public Class<? extends org.eclipse.xtext.ui.editor.IXtextEditorCallback> bindIXtextEditorCallback() {
return org.eclipse.xtext.builder.nature.NatureAddingEditorCallback.class;
}

public Class<? extends EditorCallback> bindModulefileBuilder() {
return EditorCallback.class;
}


Best regards,

[Updated on: Wed, 22 May 2013 11:07]

Report message to a moderator

Re: Xtext Save Action [message #1059957 is a reply to message #1059956] Wed, 22 May 2013 11:03 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Looks good

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1059958 is a reply to message #1059957] Wed, 22 May 2013 11:08 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
not works Sad

@Override
public Class<? extends org.eclipse.xtext.ui.editor.IXtextEditorCallback> bindIXtextEditorCallback() {
return org.eclipse.xtext.builder.nature.NatureAddingEditorCallback.class;
}

public Class<? extends EditorCallback> bindModulefileBuilder() {
return EditorCallback.class;
}



Christian Dietrich wrote on Wed, 22 May 2013 07:03
Looks good

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de

Re: Xtext Save Action [message #1059964 is a reply to message #1059958] Wed, 22 May 2013 11:38 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Sorry I don't get what you are doing. Simply override the method that
is already there

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1059966 is a reply to message #1059964] Wed, 22 May 2013 11:44 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member

not works :
@Override
	public Class<? extends org.eclipse.xtext.ui.editor.IXtextEditorCallback> bindIXtextEditorCallback() {
		return org.eclipse.xtext.builder.nature.NatureAddingEditorCallback.class;
	}
	
	public Class<? extends EditorCallback> bindModulefileBuilder() {
	     return EditorCallback.class;



works it :I bind it now

public void configureMySpecialCallback(com.google.inject.Binder
binder) {
binder.bind(IXtextEditorCallback.class).annotatedWith(Names. named( "EditorCallback")).to(
EditorCallback.class);
}
Re: Xtext Save Action [message #1059970 is a reply to message #1059966] Wed, 22 May 2013 11:54 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi ,

I write this code for change name with displayname after save.my code :
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);
		
	}


and then bind it :

public void configureMySpecialCallback(com.google.inject.Binder
binder) {
binder.bind(IXtextEditorCallback.class).annotatedWith(Names. named( "EditorCallback")).to(
EditorCallback.class);
}


BUTTT :I take an error ->
Save Failed
java.lang.StackOverflowError

Wehere do I error ?please heelp me I do not understand .is it a bug?


Re: Xtext Save Action [message #1059972 is a reply to message #1059970] Wed, 22 May 2013 12:04 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Sorry don't know better you go the other hook

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1059986 is a reply to message #1059972] Wed, 22 May 2013 12:56 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi,

Thank you for help

Best regards,
Re: Xtext Save Action [message #1060278 is a reply to message #1059797] Thu, 23 May 2013 19:51 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian ,
I try this code : but my problem is not reach other elements of model Sad.I reach onlly ContentModel'name and displayname.How can I reach other elements of Model?
@Override
			public java.lang.Void exec(XtextResource state) throws Exception {
		    // WebApplication mymodel1 = ((WebApplication) state.getContents().get(0));
				
			//	System.out.println(mymodel1);
				
				//mymodel.setName(mymodel.getDisplayName().toString());
				
				ContentModel mymodel =(ContentModel) state.getContents().get(0);
                 
				if(mymodel.getDisplayName().equals(null) || mymodel.getDisplayName().equals("")){
			    	mymodel.setDisplayName(mymodel.getName());
			  
				}
				
				return null;
				
			}
			
		});
		if (isDirty()) {
			editor.doSave(new NullProgressMonitor());
		}
		super.afterSave(editor);
		
	}


My grammar :

ContentModel returns ContentModel:
'ContentModel'
name=QualifiedName
'{'
'guID' '=' guID=STRING
'displayName' '=' displayName=STRING
('description' '=' description=STRING)?
ownedWebApplication=WebApplication
'}';

ContentUnit returns ContentUnit:
ContentModel | WebApplication | SiteCollection | Web | CustomList | ContentType | Field | View;

WebApplication returns WebApplication:
'WebApplication'
name=QualifiedName
'{'
'guID' '=' guID=STRING
'displayName' '=' displayName=STRING
('description' '=' description=STRING)?
ownedSiteColection+=SiteCollection (ownedSiteColection+=SiteCollection)*
'}';

SiteCollection returns SiteCollection:
'SiteCollection'
name=QualifiedName
'{'
'guID' '=' guID=STRING
'displayName' '=' displayName=STRING
('description' '=' description=STRING)?
ownedWeb=Web
'}';


-----------------------------------------------------------------------------------
Christian Dietrich wrote on Tue, 21 May 2013 12:02
Hi,

i dont understand 1 2 and 3
4 works fine for me

package org.xtext.example.mydsl.ui;

import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.xtext.builder.nature.NatureAddingEditorCallback;
import org.eclipse.xtext.resource.XtextResource;
import org.eclipse.xtext.ui.editor.XtextEditor;
import org.eclipse.xtext.util.concurrent.IUnitOfWork;
import org.xtext.example.mydsl.myDsl.Greeting;
import org.xtext.example.mydsl.myDsl.Model;

public class MyDslEditorCallback 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 {
				for (Greeting g : ((Model)state.getContents().get(0)).getGreetings()) {
					g.setName(g.getName().toUpperCase());
				}
				return null;
			}
			
		});
		if (isDirty()) {
			editor.doSave(new NullProgressMonitor());
		}
		super.afterSave(editor);
		
	}


}
Re: Xtext Save Action [message #1060281 is a reply to message #1060278] Thu, 23 May 2013 20:09 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Simply traverse the model ?!?
btw you should try the other proposed solution anyway (XtextDocumentProvider)


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1060287 is a reply to message #1060281] Thu, 23 May 2013 21:29 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
yes I do not traverse the model.this problem is very big for me Sad
Re: Xtext Save Action [message #1060298 is a reply to message #1060287] Fri, 24 May 2013 03:00 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
ahm you are the guy the knows your metamodel best. Stuff like
ecoreutil2.getallcontentsoftype or eswitch may help

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1060304 is a reply to message #1060298] Fri, 24 May 2013 06:01 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian,

I wan to traverse model in the public java.lang.Void exec(XtextResource state).
I can not reach model element in this class.How can I use ecoreutil2.getallcontentsoftype .

[Updated on: Fri, 24 May 2013 06:01]

Report message to a moderator

Re: Xtext Save Action [message #1060308 is a reply to message #1060304] Fri, 24 May 2013 06:31 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Ahm still don't get it
http://www.eclipse.org/forums/index.php/t/487834/

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1060323 is a reply to message #1060308] Fri, 24 May 2013 07:13 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian ,

My root is ContentModel.I write this code ContentModel mymodel =(ContentModel) state.getContents().get(0); This code gets onlly contentmodel.my aim is :mymodel.setDisplayName(mymodel.getName()); but this operation is done for every elements.now I can do this for contentmodel element onnly Sad

ContentModel returns ContentModel:
	'ContentModel'
	name=QualifiedName
	'{'
	'guID' '=' guID=STRING
	'displayName' '=' displayName=STRING
	('description' '=' description=STRING)?
	ownedWebApplication=WebApplication
	'}';
	
ContentUnit returns ContentUnit:
	ContentModel | WebApplication | SiteCollection | Web | CustomList | ContentType | Field | View;

WebApplication returns WebApplication:
	'WebApplication'
	name=QualifiedName
	'{'
	'guID' '=' guID=STRING
	'displayName' '=' displayName=STRING
	('description' '=' description=STRING)?
	ownedSiteColection+=SiteCollection (ownedSiteColection+=SiteCollection)*
	'}';

SiteCollection returns SiteCollection:
	'SiteCollection'
	name=QualifiedName
	'{'
	'guID' '=' guID=STRING
	'displayName' '=' displayName=STRING
	('description' '=' description=STRING)?
	ownedWeb=Web
	'}';
Re: Xtext Save Action [message #1060324 is a reply to message #1060323] Fri, 24 May 2013 07:19 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi I still do not get it why you traverse the model from the starting
point and look for all places that are from interest for you. This is
not at all Xtext specific. If you have A and B and A has a b B you'd
call a.getB()

?!?

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1060326 is a reply to message #1060323] Fri, 24 May 2013 07:23 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Christian as already suggested
org.eclipse.xtext.EcoreUtil2.getAllContentsOfType(EObject, Class<T>) for
walking the tree.

On 24/05/2013 9:13 AM, junior developer wrote:
> Hi Christian ,
>
> My root is ContentModel.I write this code ContentModel mymodel
> =(ContentModel) state.getContents().get(0); This code gets onlly
> contentmodel.my aim is :mymodel.setDisplayName(mymodel.getName()); but
> this operation is done for every elements.now I can do this for
> contentmodel element onnly :(
>
>
> ContentModel returns ContentModel:
> 'ContentModel'
> name=QualifiedName
> '{'
> 'guID' '=' guID=STRING
> 'displayName' '=' displayName=STRING
> ('description' '=' description=STRING)?
> ownedWebApplication=WebApplication
> '}';
>
> ContentUnit returns ContentUnit:
> ContentModel | WebApplication | SiteCollection | Web | CustomList
> | ContentType | Field | View;
>
> WebApplication returns WebApplication:
> 'WebApplication'
> name=QualifiedName
> '{'
> 'guID' '=' guID=STRING
> 'displayName' '=' displayName=STRING
> ('description' '=' description=STRING)?
> ownedSiteColection+=SiteCollection
> (ownedSiteColection+=SiteCollection)*
> '}';
>
> SiteCollection returns SiteCollection:
> 'SiteCollection'
> name=QualifiedName
> '{'
> 'guID' '=' guID=STRING
> 'displayName' '=' displayName=STRING
> ('description' '=' description=STRING)?
> ownedWeb=Web
> '}';
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Xtext Save Action [message #1060327 is a reply to message #1060324] Fri, 24 May 2013 07:30 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian ,

I understand you ,but I define ContentUnit in the grammar ,ContentUnit returns ContentUnit:
ContentModel | WebApplication | SiteCollection | Web | CustomList | ContentType | Field | View;

I write my code :

if(mymodel.getDisplayName().equals(null) || mymodel.getDisplayName().equals("")){
mymodel.setDisplayName(mymodel.getName());
mymodel.getOwnedWebApplication().setDisplayName(mymodel.getOwnedWebApplication().getName());

}

Must I do for every element ?

[Updated on: Fri, 24 May 2013 07:30]

Report message to a moderator

Re: Xtext Save Action [message #1060329 is a reply to message #1060327] Fri, 24 May 2013 07:39 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi,

you are the guy that manages your grammar and metamodel ?!?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1060332 is a reply to message #1060329] Fri, 24 May 2013 07:57 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi,

I try manage my metamodel .
I want to reach all elements from the ContentUnit.I try it.otherwise,I must traverse all elements with hierarchically.
Re: Xtext Save Action [message #1060333 is a reply to message #1060332] Fri, 24 May 2013 07:59 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
I gave you hints on 2 utilities before

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1060703 is a reply to message #1060333] Tue, 28 May 2013 06:52 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian,

I want to create field automatically,
When I create an element,ist default fields are created automatically.Which class is used for this.How can I do ?

Best Regrads,
Re: Xtext Save Action [message #1060705 is a reply to message #1060703] Tue, 28 May 2013 06:57 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Sorry i cant follow you.

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1060710 is a reply to message #1060705] Tue, 28 May 2013 07:54 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian,

I understand you,I search it but I do not find a solution:( I have no idea which class is used . How can I solved this problem.
Re: Xtext Save Action [message #1060715 is a reply to message #1060710] Tue, 28 May 2013 08:24 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
I don't know your problem. I don't understand it.

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1060718 is a reply to message #1060715] Tue, 28 May 2013 08:44 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
I want to do Create an element,its default fields are created automatically such as my grammar :
ContentType returns ContentType:
'ContentType'
name=QualifiedName
'{'
'guID' '=' guID=STRING
'displayName' '=' displayName=STRING
('description' '=' description=STRING)?
('group' '=' group=STRING)?
('parent' '=' parentContentType=[ContentType|QualifiedName])?
(ownedField+=Field (ownedField+=Field)*)?
'}';

Field returns Field:
LookUp | BooleanField | TextField | NumberField;

TextField returns TextField:
'Text' name=QualifiedName '{'
'guID' '=' guID=STRING
'displayName' '=' displayName=STRING
('required' '=' required=EBoolean)?
('unlimitedLenghtInDocumentLibraries' '=' unlimitedLenghtInDocumentLibraries=EBoolean)?
('description' '=' description=STRING)?
('group' '=' group=STRING)?
('default' '=' default=STRING)?
('displaySize' '=' displaySize=INT)?
('maxLength' '=' maxLength=INT)?
'}';


My grammar is below.When I create a contenttype ,ContentType's Fields are created automatically:ownedField+=Field (ownedField+=Field)*)?
When I create ContentType below Text Field is created automatically in the Xtext Editor.User may change its property onlly.I hope ,I can explain my problem.

Text text {
guID = "guID"
displayName="bollty u" required = true unlimitedLenghtInDocumentLibraries= false default = "Default"


}

[Updated on: Tue, 28 May 2013 08:45]

Report message to a moderator

Re: Xtext Save Action [message #1060720 is a reply to message #1060718] Tue, 28 May 2013 08:49 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
My question still is: do you need that derived element explicitly in
the file

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1060721 is a reply to message #1060720] Tue, 28 May 2013 08:56 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
hi,

I I can understand derived element explicitly in the file correctly.no I do not derived elements.I will give own value in the Field's properties.I do not call other elemets .
Re: Xtext Save Action [message #1060724 is a reply to message #1060721] Tue, 28 May 2013 09:00 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Sorry if it happens automatically it is derived

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1060725 is a reply to message #1060721] Tue, 28 May 2013 09:02 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
BTW why don't you try the hook I proposed (xtextdoxumentprovider it
was I think - the editor callback might be the wrong place

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1060736 is a reply to message #1060710] Tue, 28 May 2013 09:42 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Still the question: did you try to move your code to
XtextDocumentProvider.doSaveDocument

(document may be an XtextDocument)


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1060752 is a reply to message #1060736] Tue, 28 May 2013 11:09 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian,

I understand ,it is drived.I do not try XtextDocumentProvider.doSaveDocument.
I wrote code in the
public class EditorCallback extends NatureAddingEditorCallback {
public class EditorCallback extends NatureAddingEditorCallback {
@Override

I solved internal name and Displayname.When I save editor,qualifiedname is wrote in the displayname field and if qualifiedname has emtpt ,remove blanked and then rewrite fullname, and first blanked name is written in the displayname field.I solved my problem .All changes manupulation on the editor .I written my code in the
public void afterSave(XtextEditor editor) .

Now ,I want to drived process (create default field in the right place on the editor when one element is created).I may use XtextDocumentProvider.doSaveDocument.Hence when Xtextdocument is saved ,I will create default elements.Do you have offered an example?
Re: Xtext Save Action [message #1060755 is a reply to message #1060752] Tue, 28 May 2013 11:15 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
No. Simple downcast and call your code on the xtextdocument

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1060763 is a reply to message #1060755] Tue, 28 May 2013 11:46 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Thank you for help .I try it.My problem may be solved
I written code in the public class MyXtextDocumentProvider extends XtextDocumentProvider{
@Override
protected void doSaveDocument(IProgressMonitor monitor, Object element,
IDocument document, boolean overwrite) throws CoreException {






super.doSaveDocument(monitor, element, document, overwrite);
}


protected boolean createNewEntity(Entity sibling, String name) {
		Entity newEntity = DomainmodelFactory.eINSTANCE.createEntity();
		newEntity.setName(name);
		return addTypeAsSibling(sibling, newEntity);
	}

	protected boolean createNewDatatype(Entity sibling, String name) {
		DataType newDatatype = DomainmodelFactory.eINSTANCE.createDataType();
		newDatatype.setName(name);
		return addTypeAsSibling(sibling, newDatatype);
	}

	protected boolean addTypeAsSibling(Entity sibling, Type newType) {
		EObject container = sibling.eContainer();
		EList<AbstractElement> elements = null;
		if (container instanceof PackageDeclaration) {
			elements = ((PackageDeclaration) container).getElements();
		} else if (container instanceof DomainModel) {
			elements = ((DomainModel) container).getElements();
		} else {
			return false;
		}
		int index = elements.indexOf(sibling) + 1;
		elements.add(index, newType);
		return true;
	}
}

Re: Xtext Save Action [message #1060775 is a reply to message #1060763] Tue, 28 May 2013 12:09 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi,

is it solved or not? you code seem to be incomplete


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1060803 is a reply to message #1060775] Tue, 28 May 2013 13:13 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
No .not solved my problem.I will try XtextDocumentProvider.doSaveDocument.
but I want to use org.eclipse.xtext.ui.editor.model.edit.ISemanticModification in the XtextDocumentProvider.I do not use :(How can I solved my problem.
I want to try below code in the XtextDocumentProvider with Save action:

@Fix(DomainmodelLinkingDiagnosticMessageProvider.MISSING_REFERENCE_TYPE)
	public void createReferenceType(final Issue issue, IssueResolutionAcceptor acceptor) {
		final String linkText = issue.getData()[0];
		acceptor.accept(issue, "Create entity '" + linkText + "'", "Create entity '" + linkText + "'", null,
				new ISemanticModification() {
					public void apply(final EObject element, IModificationContext context) {
						createNewEntity((Entity) element.eContainer().eContainer(), linkText);
					}
				});
		createLinkingIssueResolutions(issue, acceptor);
	}

	protected boolean createNewEntity(Entity sibling, String name) {
		Entity newEntity = DomainmodelFactory.eINSTANCE.createEntity();
		newEntity.setName(name);
		return addTypeAsSibling(sibling, newEntity);
	}

	protected boolean createNewDatatype(Entity sibling, String name) {
		DataType newDatatype = DomainmodelFactory.eINSTANCE.createDataType();
		newDatatype.setName(name);
		return addTypeAsSibling(sibling, newDatatype);
	}

	protected boolean addTypeAsSibling(Entity sibling, Type newType) {
		EObject container = sibling.eContainer();
		EList<AbstractElement> elements = null;
		if (container instanceof PackageDeclaration) {
			elements = ((PackageDeclaration) container).getElements();
		} else if (container instanceof DomainModel) {
			elements = ((DomainModel) container).getElements();
		} else {
			return false;
		}
		int index = elements.indexOf(sibling) + 1;
		elements.add(index, newType);
		return true;
	}
Re: Xtext Save Action [message #1060807 is a reply to message #1060803] Tue, 28 May 2013 13:21 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi this is a quick fix. What about solving one problem at a time :(

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1060809 is a reply to message #1060807] Tue, 28 May 2013 13:30 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian,

yes ,it is a quick fix.it create entity,So I try it in the XtextDocumentProvider Automatically.Can I explain Sad
Re: Xtext Save Action [message #1060812 is a reply to message #1060809] Tue, 28 May 2013 13:37 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
I don't think this will work

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1060819 is a reply to message #1060812] Tue, 28 May 2013 14:02 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian,

not works it .I must do When User create Contenttype,textfield created in it .Hense Save action may not solved my problem.

public class MyXtextDocumentProvider extends XtextDocumentProvider{

@Override
protected void doSaveDocument(IProgressMonitor monitor, Object element,
IDocument document, boolean overwrite) throws CoreException {
super.doSaveDocument(monitor, element, document, overwrite);

//boolean createNewEntity(Field sibling, String name) {

TextField newEntity = MyDslFactory.eINSTANCE.createTextField();
newEntity.setName("text");
System.out.println("....");

//}

}

I want to Which class detect which elements.hence When User create Contenttype ,I will do change after contenttype is created

[Updated on: Tue, 28 May 2013 14:31]

Report message to a moderator

Re: Xtext Save Action [message #1060836 is a reply to message #1060819] Tue, 28 May 2013 14:58 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Please share the complete class

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1060840 is a reply to message #1060836] Tue, 28 May 2013 15:33 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Cant you simply

@Override
protected void doSaveDocument(IProgressMonitor monitor, Object element,
IDocument document, boolean overwrite) throws CoreException {
((IXtextDocument)document).modify(....)// ; stuff you should already have
super.doSaveDocument(monitor, element, document, overwrite);

}


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1060879 is a reply to message #1060840] Tue, 28 May 2013 19:56 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian ,

I write code now,but not fineshed.

public class MyXtextDocumentProvider extends XtextDocumentProvider{

	@Override
protected void doSaveDocument(IProgressMonitor monitor, Object element,
		IDocument document, boolean overwrite) throws CoreException {
	super.doSaveDocument(monitor, element, document, overwrite);

	((IXtextDocument)document).modify(new IUnitOfWork<Void, XtextResource>() {
        
		@Override
		public java.lang.Void exec(XtextResource state) throws Exception {
			org.xtext.example.mydsl.myDsl.ContentType newElement = org.xtext.example.mydsl.myDsl.MyDslFactory.eINSTANCE
					.createContentType();
			TextField text = MyDslFactory.eINSTANCE.createTextField();
			text.setName("text");
			text.setDisplayName("text");
			newElement.getOwnedField().add(text);
		

			TextField created = MyDslFactory.eINSTANCE.createTextField();
			created.setName("created");
			created.setDisplayName("created");
			newElement.getOwnedField().add(created);
			
			TextField createdBy = MyDslFactory.eINSTANCE.createTextField();
			createdBy.setName("createdBy");
			createdBy.setDisplayName("created By");
			newElement.getOwnedField().add(createdBy);
			
			
			
			
			
		return null;
		
	
	
}
		
		
	}	);




my problem is added elements index and When user create a contenttype,such as Text text is created automatically.
Re: Xtext Save Action [message #1060932 is a reply to message #1060840] Wed, 29 May 2013 08:27 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian,

I do not solved my problem.

my code is below:
@Override
protected void doSaveDocument(IProgressMonitor monitor, Object element,
		IDocument document, boolean overwrite) throws CoreException {
	super.doSaveDocument(monitor, element, document, overwrite);

	((IXtextDocument)document).modify(new IUnitOfWork<Void, XtextResource>() {
        
		@Override
		public java.lang.Void exec(XtextResource state) throws Exception {
			
			
		
		
		ContentType newElement = MyDslFactory.eINSTANCE.createContentType();
			
		
		 state.getContents().set(0 ,MyDslFactory.eINSTANCE.createTextField() );
			 MyDslPackage.eINSTANCE.eClass();
			 MyDslFactory factory = MyDslFactory.eINSTANCE;
				TextField newEntity = MyDslFactory.eINSTANCE.createTextField();
				newEntity.setName("text");
				newEntity.setDisplayName("text");
				newElement.getOwnedField().add(newEntity);
				return null;		
	
	
}
		
		
	}	);
	
	
		
	}
	



I receive an error :
Save Failed
These errors need to be fixed before the model can be serialized.
TextField: Feature TextField.displayName must be set. Constraint: (name displayName) Quantities: displayName:0, name:0
TextField: Feature TextField.name must be set. Constraint: (name guID) Quantities: guID:1, name:0

Best regards,
Re: Xtext Save Action [message #1060935 is a reply to message #1060932] Wed, 29 May 2013 08:37 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi,

the error message should be clear !?!


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1060963 is a reply to message #1060935] Wed, 29 May 2013 10:37 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian,

Error is in the dialog window.load screenshot.
Re: Xtext Save Action [message #1060973 is a reply to message #1060963] Wed, 29 May 2013 11:41 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian,

My problem is solved with setDocumentContent method.I confused Sad

@Override
protected boolean setDocumentContent(IDocument document,
IEditorInput editorInput, String encoding) throws CoreException {
// TODO Auto-generated method stub
return super.setDocumentContent(document, editorInput, encoding);
}
Re: Xtext Save Action [message #1060980 is a reply to message #1060973] Wed, 29 May 2013 12:05 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Sorry I cannot help you with that

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1061016 is a reply to message #1060932] Wed, 29 May 2013 14:11 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian,

I understand you,but This code is not work,same as EMF changes.Solved my problem with this method (below).is there a class for this problem.One User create an element,such as contenttype,created own default fields automatically.I could try another methor or class.


junior developer wrote on Wed, 29 May 2013 04:27
Hi Christian,

I do not solved my problem.

my code is below:
@Override
protected void doSaveDocument(IProgressMonitor monitor, Object element,
		IDocument document, boolean overwrite) throws CoreException {
	super.doSaveDocument(monitor, element, document, overwrite);

	((IXtextDocument)document).modify(new IUnitOfWork<Void, XtextResource>() {
        
		@Override
		public java.lang.Void exec(XtextResource state) throws Exception {
			
			
		
		
		ContentType newElement = MyDslFactory.eINSTANCE.createContentType();
			
		
		 state.getContents().set(0 ,MyDslFactory.eINSTANCE.createTextField() );
			 MyDslPackage.eINSTANCE.eClass();
			 MyDslFactory factory = MyDslFactory.eINSTANCE;
				TextField newEntity = MyDslFactory.eINSTANCE.createTextField();
				newEntity.setName("text");
				newEntity.setDisplayName("text");
				newElement.getOwnedField().add(newEntity);
				return null;		
	
	
}
		
		
	}	);
	
	
		
	}
	



I receive an error :
Save Failed
These errors need to be fixed before the model can be serialized.
TextField: Feature TextField.displayName must be set. Constraint: (name displayName) Quantities: displayName:0, name:0
TextField: Feature TextField.name must be set. Constraint: (name guID) Quantities: guID:1, name:0

Best regards,

Re: Xtext Save Action [message #1061021 is a reply to message #1061016] Wed, 29 May 2013 14:28 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi,

why call super.doSaveDocument(monitor, element, document, overwrite);
first and the modify it, id do it the other way round.


state.getContents().set(0 ,MyDslFactory.eINSTANCE.createTextField() );
this textfield has no name and description .
why do you want to change the root at alle.

id do something like

MyRootClass root = (MyRootClass )state.getContents().get(0);
//work with the root,


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1061029 is a reply to message #1061021] Wed, 29 May 2013 15:00 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian,

You right.I will try .

but my operation is happened when I save my document.actually,My operation must works When I create Contenttype .it is possible.

I want to ask question that is different topic
in addition.I wrote code in the save action (
NatureAddingEditorCallback) :I solved another problem with NatureAddingEditorCallback class .

now,I use XtextDocumentProvider.dosaveDocument method.

What is the different XtextDocumentProvider.dosaveDocument
and NatureAddingEditorCallback.aftersave(XtextEditor editor)

Best Regards
Re: Xtext Save Action [message #1061030 is a reply to message #1061029] Wed, 29 May 2013 15:12 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
This is not possible

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1061193 is a reply to message #1061030] Thu, 30 May 2013 13:24 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian ,

I try this method for my problem.but do not works .really I do not understand my error.I debug it ,if condition is error.but I do not find Sad

private final class addAutomaticField implements IAutoEditStrategy {
		@Inject
		Provider<IGrammarAccess> iGrammar;
		private String contents;
		private Set<String> kwds;
		@Inject DocumentUtil u;
		
		
		
		@Override
		public void customizeDocumentCommand(IDocument document,
				DocumentCommand command) {
			
			
			List<String> keywords = Arrays.asList("ContentType"
					 );

			StringBuilder sb = new StringBuilder();
			for (String s : keywords) {
				sb.append(s);
				sb.append("|");

			}

			
			String keywordsString = sb.deleteCharAt(sb.length() - 1).toString();

			String pattern = String.format("\\b(%s)\\b((\\w|\\s|\\.)+)[{]",
					keywordsString);

			Pattern compile = Pattern.compile(pattern);

			String alldocument = document.get();
			//System.out.println(alldocument);
			java.util.regex.Matcher matcher = compile.matcher(alldocument);
			final List<String> contentUnitNames = new ArrayList<String>();
			while (matcher.find()) {
	          String kelime = matcher.group(2).trim();
	            
				 contentUnitNames.add(kelime);
				 System.out.println(contentUnitNames);
				

			}
			
			
			try {  
				
				
				int i=0;
				
				while(i<=contentUnitNames.size()-1){	
					String s=	contentUnitNames.get(i).toString();
					System.out.println(s);
					int index =contentUnitNames.get(i).length();
					System.out.println(index);
					int offsetindex=12+index;
if (command.text.equals("{") && document.get(command.offset-offsetindex,offsetindex).equals("ContentType "+s)) {
//if (command.text.equals("{") && document.get(command.offset-16,16).equals("ContentType cccc")) {
					//System.out.println(contentUnitNames.get(0).length());
					contents = document.get();
				
					String afterCommandString = contents.substring(command.offset, document.getLength());
					contents = document.get(0, command.offset);
					contents = contents + " guID = "+ GUIDGenerator.generateUniqueId() +  "Text text {";
					contents = contents + afterCommandString;
					document.set(contents);
			
					
					contents = null;
					
				} else {
					if (contents != null) {
						document.set(contents);
						contents = null;
					}	
				}
			i++;
			
				}//forun
				
                  
			}catch (BadLocationException e) {
				e.printStackTrace();
				
			}
			
			
			}
	
	
	}




Best Regards
Re: Xtext Save Action [message #1061198 is a reply to message #1061193] Thu, 30 May 2013 13:40 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Sorry i cannot follow you.
you do 10 things at a time.
why dont you try one approach to the end ?!?
i cannot support this way sorry


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext Save Action [message #1061208 is a reply to message #1061198] Thu, 30 May 2013 14:20 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian,

other method happens when the user save editor.so ,I try AutoeditStrategy. but if condition is not works Sad I do not understrand my error
Why do not you support this way?


[Updated on: Thu, 30 May 2013 14:22]

Report message to a moderator

Re: Xtext Save Action [message #1061211 is a reply to message #1061208] Thu, 30 May 2013 14:34 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
This is one of the longest threads I've ever seen. It's really hard for
anyone to help you down this meandering path...

On 30/05/2013 4:20 PM, junior developer wrote:
> Hi Christian,
>
> other method happens when the user save editor.so ,I try
> AutoeditStrategy.
> Why do not you support this way?
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Xtext Save Action [message #1061222 is a reply to message #1061211] Thu, 30 May 2013 15:15 Go to previous message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Ed ,
Thnak you.I create a new topic .
http://www.eclipse.org/forums/index.php/m/1061221/#msg_1061221

Best regards
Previous Topic:Create Automatically elements when one element is created
Next Topic:SelectionListener registration
Goto Forum:
  


Current Time: Thu Mar 28 08:36:12 GMT 2024

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

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

Back to the top