Skip to content

Commit

Permalink
remove form view (replaced by FXForm preview)
Browse files Browse the repository at this point in the history
  • Loading branch information
heiko-braun committed Aug 7, 2012
1 parent 7f13643 commit 5f2e634
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class BrowserView extends PopupViewImpl implements BrowserPresenter.MyVie
private Tree tree;
private DescriptionView descView;
private DefaultWindow window;
private FormView formView;

private FXTemplatesView storageView;


Expand Down Expand Up @@ -98,7 +98,7 @@ public void onClick(ClickEvent clickEvent) {

rawView = new RawView();
descView = new DescriptionView();
formView = new FormView();


storageView = new FXTemplatesView();

Expand All @@ -107,7 +107,6 @@ public void onClick(ClickEvent clickEvent) {
layout.add(tabLayoutPanel);

tabLayoutPanel.add(descView.asWidget(), "Description");
tabLayoutPanel.add(formView.asWidget(), "Form");
tabLayoutPanel.add(rawView.asWidget(), "Model");
tabLayoutPanel.add(storageView.asWidget(), "Templates");
tabLayoutPanel.selectTab(0);
Expand Down Expand Up @@ -168,7 +167,6 @@ public void updateChildrenTypes(ModelNode address, List<ModelNode> modelNodes) {
tree.clear();
descView.clearDisplay();
rawView.clearDisplay();
formView.clearForm();
rootItem = tree;
}
else
Expand All @@ -194,7 +192,6 @@ public void updateChildrenNames(ModelNode address, List<ModelNode> modelNodes) {
@Override
public void updateDescription(ModelNode address, ModelNode description) {
descView.updateDescription(address, description);
formView.updateDescription(address, description);
}

@Override
Expand All @@ -203,7 +200,6 @@ public void updateResource(ModelNode address, ModelNode resource) {
final List<Property> tokens = address.asPropertyList();
String name = tokens.get(tokens.size()-1).getValue().asString();
rawView.display(new Property(name, resource));
formView.display(new Property(name, resource));
}

private void addChildrenTypes(HasTreeItems rootItem, List<ModelNode> modelNodes) {
Expand Down

0 comments on commit 5f2e634

Please sign in to comment.