Browse Source

remove extraButtonPorviders

master
frharry 8 years ago
parent
commit
e1842c3665
  1. 17
      designer/src/com/fr/design/webattr/EditToolBar.java

17
designer/src/com/fr/design/webattr/EditToolBar.java

@ -329,8 +329,6 @@ public class EditToolBar extends BasicPane {
private JavaScriptActionPane javaScriptPane; private JavaScriptActionPane javaScriptPane;
private ExportToolBarProvider[] exportToolBarProviders; private ExportToolBarProvider[] exportToolBarProviders;
private ExtraButtonToolBarProvider[] extraButtonToolBarProviders;
private ChangeListener changeListener = new ChangeListener() { private ChangeListener changeListener = new ChangeListener() {
public void stateChanged(ChangeEvent e) { public void stateChanged(ChangeEvent e) {
if (isVerify.isSelected()) { if (isVerify.isSelected()) {
@ -390,9 +388,8 @@ public class EditToolBar extends BasicPane {
centerPane.add(getSubmitPane(), "submit"); centerPane.add(getSubmitPane(), "submit");
Set<ExtraButtonToolBarProvider> extraButtonSet = ExtraDesignClassManager.getInstance().getArray(ExtraButtonToolBarProvider.XML_TAG); Set<ExtraButtonToolBarProvider> extraButtonSet = ExtraDesignClassManager.getInstance().getArray(ExtraButtonToolBarProvider.XML_TAG);
extraButtonToolBarProviders = extraButtonSet.toArray(new ExtraButtonToolBarProvider[set.size()]); for(ExtraButtonToolBarProvider provider : extraButtonSet){
for(int i=0; i<ArrayUtils.getLength(extraButtonToolBarProviders); i++){ provider.updateCenterPane(centerPane);
extraButtonToolBarProviders[i].updateCenterPane(centerPane);
} }
this.add(centerPane, BorderLayout.CENTER); this.add(centerPane, BorderLayout.CENTER);
@ -537,8 +534,9 @@ public class EditToolBar extends BasicPane {
populateCustomToolBarButton(); populateCustomToolBarButton();
} }
for(int i=0; i<ArrayUtils.getLength(extraButtonToolBarProviders); i++){ Set<ExtraButtonToolBarProvider> extraButtonSet = ExtraDesignClassManager.getInstance().getArray(ExtraButtonToolBarProvider.XML_TAG);
extraButtonToolBarProviders[i].populate(widget, card, centerPane); for(ExtraButtonToolBarProvider provider : extraButtonSet){
provider.populate(widget, card, centerPane);
} }
} }
@ -626,8 +624,9 @@ public class EditToolBar extends BasicPane {
updateDefault(); updateDefault();
} }
for(int i=0; i<ArrayUtils.getLength(extraButtonToolBarProviders); i++){ Set<ExtraButtonToolBarProvider> extraButtonSet = ExtraDesignClassManager.getInstance().getArray(ExtraButtonToolBarProvider.XML_TAG);
extraButtonToolBarProviders[i].update(widget); for(ExtraButtonToolBarProvider provider : extraButtonSet){
provider.update(widget);
} }
return widget; return widget;

Loading…
Cancel
Save