Revision 46849 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/searchpanel/DefaultSearchPanel.java

View differences:

DefaultSearchPanel.java
536 536
		this.pnlActions.removeAll();
537 537
		this.pnlActions.setLayout(new FlowLayout(FlowLayout.TRAILING, 8, 4));
538 538
		SearchActionContext actionContext = new SearchActionContext(this);
539
		Collection<DALActionFactory> factories = DALSwingLocator.getSwingManager().getStoreActions();
539
                actionContext.set("searchpanel", this);
540
		Collection<DALActionFactory> factories = DALSwingLocator.getSwingManager().getApplicableStoreActions(actionContext);
540 541
		for (DALActionFactory factory : factories) {
541
			if (!factory.isApplicable(actionContext)) {
542
				continue;
543
			}
544
			Action action = factory.createAction(actionContext);
545
			JButton button = new JButton(action);
546
			this.actions.put(factory.getName(), new ActionButtons(factory, action, button));
547
			button.setBorder(BorderFactory.createEmptyBorder());
548
			button.setBorderPainted(false);
549
			button.setFocusPainted(false);
550
			button.setContentAreaFilled(false);
551
			button.setCursor(new Cursor(Cursor.HAND_CURSOR));
552
			this.pnlActions.add(button);
542
                    Action action = factory.createAction(actionContext);
543
                    JButton button = new JButton(action);
544
                    this.actions.put(factory.getName(), new ActionButtons(factory, action, button));
545
                    button.setBorder(BorderFactory.createEmptyBorder());
546
                    button.setBorderPainted(false);
547
                    button.setFocusPainted(false);
548
                    button.setContentAreaFilled(false);
549
                    button.setCursor(new Cursor(Cursor.HAND_CURSOR));
550
                    this.pnlActions.add(button);
553 551
		}
554 552
		this.pnlActions.revalidate();
555 553
		this.pnlActions.repaint();
......
761 759
		});
762 760

  
763 761
		this.tabResults.setEnabledAt(1, false);
764

  
765 762
		this.tblResults.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
766 763
		this.tblResults.addKeyListener(new KeyAdapter() {
767 764
			@Override
......
771 768
				}
772 769
			}
773 770
		});
774

  
775 771
		this.tblResults.setComponentPopupMenu(new TablePopupMenu(this.tblResults));
776
		this.tblSearchPostProcessResults.setComponentPopupMenu(new TablePopupMenu(this.tblSearchPostProcessResults));
777

  
778 772
		this.tabResults.addChangeListener((ChangeEvent evt) -> {
779 773
			SwingUtilities.invokeLater(() -> {
780 774
				if (tabResults.getSelectedIndex() == 0) {
......
784 778
				}
785 779
			});
786 780
		});
787
		if (this.filterOnlyMode || !this.postProcessEnabled) {
781
                this.tblResults.getTableHeader().setReorderingAllowed(false);
782
                
783
		this.tblSearchPostProcessResults.setComponentPopupMenu(new TablePopupMenu(this.tblSearchPostProcessResults));
784
                this.tblSearchPostProcessResults.getTableHeader().setReorderingAllowed(false);
785

  
786
                if (this.filterOnlyMode || !this.postProcessEnabled) {
788 787
			this.btnSearchPostProcess.setVisible(false);
789 788
		}
790 789

  

Also available in: Unified diff