Made unittest data backend for frontends and improved swing frontend.
Worked on metamodel backend and some other fixes.
This commit is contained in:
parent
1c308a684a
commit
a25e98f5d5
65 changed files with 2820 additions and 499 deletions
|
|
@ -329,7 +329,7 @@ public class SwtVascFrontend extends AbstractVascFrontend {
|
|||
net.forwardfire.vasc.core.ui.VascUIComponent editor = option.getVascEntryFieldType().provideEditorUIComponent(i,option);
|
||||
model = new VascValueModel(option.getVascEntryFieldType().provideEditorVascValueModel(i,option));
|
||||
model.addListener(new VascOptionValueModelListener(option));
|
||||
model.setValue(null);
|
||||
model.setValue(option.getDefaultValue());
|
||||
model.addListener(new VascValueModelListener() {
|
||||
public void valueUpdate(VascValueModel model) throws VascException {
|
||||
entry.getVascFrontendData().getVascFrontendActions().refreshData();// mm
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import net.forwardfire.vasc.core.VascEntry;
|
|||
import net.forwardfire.vasc.core.VascEntryControllerLocal;
|
||||
import net.forwardfire.vasc.frontends.swt.SwtVascFrontend;
|
||||
import net.forwardfire.vasc.impl.DefaultVascFactory;
|
||||
import net.forwardfire.vasc.test.frontend.data.TestModelEntry;
|
||||
import net.forwardfire.vasc.test.frontend.data.TestModelData;
|
||||
|
||||
import org.eclipse.swt.widgets.Display;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
|
|
@ -45,7 +45,7 @@ import junit.framework.TestCase;
|
|||
*/
|
||||
public class SWTTest extends TestCase {
|
||||
|
||||
private TestModelEntry entry = null;
|
||||
private TestModelData testData = null;
|
||||
|
||||
public void setUp() throws Exception {
|
||||
}
|
||||
|
|
@ -70,13 +70,12 @@ public class SWTTest extends TestCase {
|
|||
// define redering and render
|
||||
SwtVascFrontend render = new SwtVascFrontend(shell);
|
||||
|
||||
entry = new TestModelEntry();
|
||||
VascController vc = entry.getTestVascController();
|
||||
VascEntry ve = entry.createVascEntry(vc);
|
||||
((VascEntryControllerLocal)vc.getVascEntryController()).addVascEntry(ve,vc);
|
||||
DefaultVascFactory.fillVascControllerLocalEntries((VascEntryControllerLocal) vc.getVascEntryController(), vc);
|
||||
DefaultVascFactory.fillVascEntryFrontend(ve, vc, DefaultVascFactory.getDefaultVascFrontendData(null));
|
||||
|
||||
testData = new TestModelData();
|
||||
VascController vc = testData.getTestVascController();
|
||||
testData.createVascEntries(vc,(VascEntryControllerLocal)vc.getVascEntryController());
|
||||
|
||||
VascEntry ve = testData.getTestEntry(vc);
|
||||
DefaultVascFactory.fillVascEntryFrontend(ve, vc, DefaultVascFactory.getDefaultVascFrontendData(null));
|
||||
ve.getVascFrontendData().getVascFrontendActions().refreshData();
|
||||
render.initEntry(ve);
|
||||
render.renderView();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue