Creating an aspectEditor
![](http://jazz.net/_images/myphoto/f74f27e6bd87bd9c219b159ac81fae01.jpg)
I am creating an aspectEditor for an Advisor I have written. In the article (https://jazz.net/wiki/bin/view/Main/ProcessAspectEditorCreation) they make use of a Model class, but I can't seem to find the package in which this class resides...
public void init(IProcessAspectEditorSite site, ProcessAspect inputAspect) {
super.init(site, inputAspect);
fModel =new Model();
}
Any ideas?
Thanks!
public void init(IProcessAspectEditorSite site, ProcessAspect inputAspect) {
super.init(site, inputAspect);
fModel =
}
Any ideas?
Thanks!
2 answers
![](http://jazz.net/_images/myphoto/f74f27e6bd87bd9c219b159ac81fae01.jpg)
Hi Jan (I responded to your email, but am posting here too so others can see),
Yes, the article isn't all that clear on that point, I'll admit. The code is taken from the aspect editor for the "Require work item" precondition, which can be found in file:
com.ibm.team.process.internal.definitions.ide.ui.deliver.editors.RequireWorkItemAspectEditor.java
in plugin:
com.ibm.team.process.definitions.ide.ui.
The Model class is included in the same file. The Model class isn't part of the framework, however, it's just the aspect editor's own model of the relevant state (a la MVC pattern), so you should come up with your own, not copy what's there.
Yes, the article isn't all that clear on that point, I'll admit. The code is taken from the aspect editor for the "Require work item" precondition, which can be found in file:
com.ibm.team.process.internal.definitions.ide.ui.deliver.editors.RequireWorkItemAspectEditor.java
in plugin:
com.ibm.team.process.definitions.ide.ui.
The Model class is included in the same file. The Model class isn't part of the framework, however, it's just the aspect editor's own model of the relevant state (a la MVC pattern), so you should come up with your own, not copy what's there.