Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Requirements Modeling Framework  » Color Requirements
Color Requirements [message #1097362] Thu, 29 August 2013 11:51 Go to next message
Daniel Acki is currently offline Daniel Acki
Messages: 5
Registered: August 2013
Junior Member
Hello, is it possible to color the Requirements? For Example if a Requirement is done, i want to color the background of the Requrement in green. If the Test was negative in Red.

Das ganze noch in Deutsch: Ich würde gerne wissen, ob es möglich ist die Hintergrundfarbe der Tabelleneinträge der Requirements zu ändern. Ich würde die Hintergrundfarbe gerne in Grün haben, wenn der Test zu dem Requirements positiv war, und in Rot, wenn er negativ war.
Re: Color Requirements [message #1097497 is a reply to message #1097362] Thu, 29 August 2013 16:23 Go to previous messageGo to next message
Michael Jastram is currently offline Michael Jastram
Messages: 102
Registered: April 2010
Location: Düsseldorf, Germany
Senior Member
Hello Daniel,

What you are requesting does not exist yet, but could be implemented fairly easily using a Presentation. There is a (slightly outdated) tutorial:

http://wiki.eclipse.org/RMF/Contributor_Guide/Presentations

Hope this helps!

Best,

- Michael
Re: Color Requirements [message #1098073 is a reply to message #1097497] Fri, 30 August 2013 11:20 Go to previous messageGo to next message
Daniel Acki is currently offline Daniel Acki
Messages: 5
Registered: August 2013
Junior Member
When i follow the steps i need the org.eclipse.rmf.reqif10.pror project. Can i find this anywhere or do i have to create it myself?

And later when i try to generate the Headline.genmodel i can't load the Headline.ecore, it says: The default value literal" must be a valid literal of the attributes type.

What do i have to write in it?

[Updated on: Fri, 30 August 2013 11:29]

Report message to a moderator

Re: Color Requirements [message #1099446 is a reply to message #1098073] Sun, 01 September 2013 14:43 Go to previous messageGo to next message
Michael Jastram is currently offline Michael Jastram
Messages: 102
Registered: April 2010
Location: Düsseldorf, Germany
Senior Member
Hi Daniel,

Did you set up a development environment, as described here:

http://wiki.eclipse.org/RMF/Contributor_Guide/Development_Process

This should provide you with the project in your Eclipse workspace.

Best,

- Michael
Re: Color Requirements [message #1108185 is a reply to message #1099446] Fri, 13 September 2013 09:13 Go to previous messageGo to next message
Daniel Acki is currently offline Daniel Acki
Messages: 5
Registered: August 2013
Junior Member
Hello,

Now I'm at Extending the Extension Point
At your Guide i should add org.eclipse.rmf.pror.reqif10.editor, but i only find org.eclipse.rmf.reqif10.pror.editor.presentation.
Is this the same, or have i forgotten something.
Thanks, Daniel
Re: Color Requirements [message #1109632 is a reply to message #1108185] Sun, 15 September 2013 14:55 Go to previous messageGo to next message
Michael Jastram is currently offline Michael Jastram
Messages: 102
Registered: April 2010
Location: Düsseldorf, Germany
Senior Member
Hi Daniel,

Yes, it's the same. Long story - we changed the name because we had complications with the EMF code generation from the model. If you have an Eclipse account, it would be great if you could fix the tutorial, as you go along. Smile If not, let me know, and I'll fix it.

Thanks for bringing it up.

- Michael
Re: Color Requirements [message #1110161 is a reply to message #1109632] Mon, 16 September 2013 09:15 Go to previous messageGo to next message
Daniel Acki is currently offline Daniel Acki
Messages: 5
Registered: August 2013
Junior Member
Ok, i think i have an Eclipse account, if not i let you know

Now if i click on service it opens a class with the Methods public ProrPresentationConfiguration getConfigurationInstance() and public Class<? extends ProrPresentationConfiguration> getConfigurationInterface(). Are these the Methods getCellEditor() and getCellRenderer(), which are needed in the Guide?

Daniel
Re: Color Requirements [message #1115028 is a reply to message #1110161] Mon, 23 September 2013 10:48 Go to previous messageGo to next message
Michael Jastram is currently offline Michael Jastram
Messages: 102
Registered: April 2010
Location: Düsseldorf, Germany
Senior Member
Hi Daniel,

Quote:
Now if i click on service it opens a class with the Methods public ProrPresentationConfiguration getConfigurationInstance() and public Class<? extends ProrPresentationConfiguration> getConfigurationInterface(). Are these the Methods getCellEditor() and getCellRenderer(), which are needed in the Guide?


It opens or creates a class? You should configure the extension point to return a class that inherits from AbstractPresentationService - check out org.eclipse.rmf.reqif10.pror.presentation.ui.IdPresentationService to see how this should work. But this is just "administration" of the extension point.

The actual work is done by the ItemProvider of the configuration element (subclassing ProrPresentationConfigurationItemProvider). By default, it implements PresentationEditInterface and may also implement PresentationEditorInterface. That's where getCellEditor() and getCellRenderer() are implemented.

I hope this helps!

- Michael
Re: Color Requirements [message #1115716 is a reply to message #1115028] Tue, 24 September 2013 09:21 Go to previous message
Daniel Acki is currently offline Daniel Acki
Messages: 5
Registered: August 2013
Junior Member
Hi

I click on service in the Extension view and then following class is created

package org.eclipse.rmf.pror.presentation.headline.ui;

import org.eclipse.rmf.reqif10.pror.configuration.ProrPresentationConfiguration;
import org.eclipse.rmf.reqif10.pror.edit.presentation.service.PresentationInterface;

public class HeadlinePresentationService implements PresentationInterface {

public HeadlinePresentationService() {
// TODO Auto-generated constructor stub
}

@Override
public ProrPresentationConfiguration getConfigurationInstance() {
// TODO Auto-generated method stub
return null;
}

@Override
public Class<? extends ProrPresentationConfiguration> getConfigurationInterface() {
// TODO Auto-generated method stub
return null;
}

}
Previous Topic:RMF/ProR 0.8.0 released
Goto Forum:
  


Current Time: Mon Oct 07 22:46:40 EDT 2013

Powered by FUDForum. Page generated in 0.06993 seconds