Revision 45070
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.fmap.control/src/main/java/org/gvsig/fmap/mapcontrol/dal/feature/swing/table/FeatureTableModel.java | ||
---|---|---|
317 | 317 |
} |
318 | 318 |
|
319 | 319 |
protected void fireTableChanged() { |
320 |
LOGGER.info("fireTableChanged()"); |
|
320 |
// LOGGER.info("fireTableChanged()");
|
|
321 | 321 |
fireTableChanged(new TableModelEvent(this, 0, getRowCount() - 1)); |
322 | 322 |
} |
323 | 323 |
public static class Bitmask { |
... | ... | |
484 | 484 |
return; |
485 | 485 |
} |
486 | 486 |
this.stop(); |
487 |
LOGGER.info("DelayAction.run begin ["+ getActionsLabel(this.current_actions) + "]"); |
|
487 |
// LOGGER.info("DelayAction.run begin ["+ getActionsLabel(this.current_actions) + "]");
|
|
488 | 488 |
boolean needFireTableChanged = false; |
489 | 489 |
if( this.current_actions.isSet(ACTION_RELOADALL) ) { |
490 | 490 |
this.current_actions.clear( |
... | ... | |
587 | 587 |
fireTableChanged(); |
588 | 588 |
} |
589 | 589 |
this.reset(); |
590 |
LOGGER.info("DelayAction.run end ["+ getActionsLabel(this.current_actions) + "]"); |
|
590 |
// LOGGER.info("DelayAction.run end ["+ getActionsLabel(this.current_actions) + "]");
|
|
591 | 591 |
} |
592 | 592 |
|
593 | 593 |
public void addAction(int action) { |
... | ... | |
606 | 606 |
this.feature = feature; |
607 | 607 |
this.featureType = featureType; |
608 | 608 |
this.current_actions.set(action); |
609 |
LOGGER.info("addAction: "+ this.getActionsLabel(current_actions)); |
|
610 |
// switch (nextstate) { |
|
611 |
// case STATE_NEED_RELOADALL: |
|
612 |
// case STATE_NEED_RELOAD_IF_FEATURE_COUNT_CHANGED: |
|
613 |
// case STATE_NEED_RELOAD_IF_FEATURE_UPDATED: |
|
614 |
// switch (this.current_state) { |
|
615 |
// case STATE_NEED_RELOADALL: |
|
616 |
// case STATE_NEED_RELOAD_IF_FEATURE_COUNT_CHANGED: |
|
617 |
// //case STATE_NEED_RELOAD_IF_FEATURE_UPDATED: |
|
618 |
// this.current_state = STATE_NEED_RELOADALL; |
|
619 |
// break; |
|
620 |
// case STATE_NEED_RELOAD_IF_FEATURE_TYPE_CHANGED: |
|
621 |
// case STATE_NEED_RELOAD_FEATURE_TYPE: |
|
622 |
// this.current_state = STATE_NEED_RELOAD_FEATURE_TYPE; |
|
623 |
// break; |
|
624 |
// case STATE_NEED_RELOAD_IF_FEATURE_UPDATED: |
|
625 |
// case STATE_NEED_RELOAD_ALL_FEATURES: |
|
626 |
// this.current_state = STATE_NEED_RELOAD_ALL_FEATURES; |
|
627 |
// break; |
|
628 |
// case STATE_ENABLE_SELECTION_UP: |
|
629 |
// this.current_state = nextstate; |
|
630 |
// this.isSelecctionUp = true; |
|
631 |
// break; |
|
632 |
// case STATE_DISABLE_SELECTION_UP: |
|
633 |
// this.current_state = nextstate; |
|
634 |
// this.isSelecctionUp = false; |
|
635 |
// break; |
|
636 |
// case STATE_NONE: |
|
637 |
// default: |
|
638 |
// this.current_state = nextstate; |
|
639 |
// break; |
|
640 |
// } |
|
641 |
// break; |
|
642 |
// case STATE_NEED_RELOAD_IF_FEATURE_TYPE_CHANGED: |
|
643 |
// case STATE_NEED_RELOAD_FEATURE_TYPE: |
|
644 |
// switch (this.current_state) { |
|
645 |
// case STATE_NEED_RELOADALL: |
|
646 |
// case STATE_NEED_RELOAD_IF_FEATURE_COUNT_CHANGED: |
|
647 |
// case STATE_NEED_RELOAD_IF_FEATURE_UPDATED: |
|
648 |
// case STATE_NEED_RELOAD_ALL_FEATURES: |
|
649 |
// case STATE_NEED_RELOAD_IF_FEATURE_TYPE_CHANGED: |
|
650 |
// case STATE_NEED_RELOAD_FEATURE_TYPE: |
|
651 |
// this.current_state = STATE_NEED_RELOAD_FEATURE_TYPE; |
|
652 |
// break; |
|
653 |
// case STATE_ENABLE_SELECTION_UP: |
|
654 |
// this.current_state = nextstate; |
|
655 |
// this.isSelecctionUp = true; |
|
656 |
// break; |
|
657 |
// case STATE_NONE: |
|
658 |
// default: |
|
659 |
// this.current_state = nextstate; |
|
660 |
// break; |
|
661 |
// } |
|
662 |
// break; |
|
663 |
// case STATE_ENABLE_SELECTION_UP: |
|
664 |
// switch (this.current_state) { |
|
665 |
// case STATE_NEED_RELOADALL: |
|
666 |
// case STATE_NEED_RELOAD_IF_FEATURE_COUNT_CHANGED: |
|
667 |
// case STATE_NEED_RELOAD_IF_FEATURE_UPDATED: |
|
668 |
// case STATE_NEED_RELOAD_IF_FEATURE_TYPE_CHANGED: |
|
669 |
// case STATE_NEED_RELOAD_ALL_FEATURES: |
|
670 |
// case STATE_NEED_RELOAD_FEATURE_TYPE: |
|
671 |
// case STATE_ENABLE_SELECTION_UP: |
|
672 |
// this.isSelecctionUp = true; |
|
673 |
// break; |
|
674 |
// case STATE_NONE: |
|
675 |
// default: |
|
676 |
// this.current_state = nextstate; |
|
677 |
// this.isSelecctionUp = true; |
|
678 |
// break; |
|
679 |
// } |
|
680 |
// break; |
|
681 |
// case STATE_DISABLE_SELECTION_UP: |
|
682 |
// switch (this.current_state) { |
|
683 |
// case STATE_NEED_RELOADALL: |
|
684 |
// case STATE_NEED_RELOAD_IF_FEATURE_COUNT_CHANGED: |
|
685 |
// case STATE_NEED_RELOAD_IF_FEATURE_UPDATED: |
|
686 |
// case STATE_NEED_RELOAD_IF_FEATURE_TYPE_CHANGED: |
|
687 |
// case STATE_NEED_RELOAD_ALL_FEATURES: |
|
688 |
// case STATE_NEED_RELOAD_FEATURE_TYPE: |
|
689 |
// case STATE_ENABLE_SELECTION_UP: |
|
690 |
// this.isSelecctionUp = false; |
|
691 |
// break; |
|
692 |
// case STATE_NONE: |
|
693 |
// default: |
|
694 |
// this.current_state = nextstate; |
|
695 |
// this.isSelecctionUp = true; |
|
696 |
// break; |
|
697 |
// } |
|
698 |
// break; |
|
699 |
// case STATE_NONE: |
|
700 |
// default: |
|
701 |
// this.current_state = STATE_NONE; |
|
702 |
// break; |
|
703 |
// } |
|
609 |
// LOGGER.info("addAction: "+ this.getActionsLabel(current_actions)); |
|
704 | 610 |
if ( this.current_actions.isSetAny() ) { |
705 |
LOGGER.info("addAction: start"); |
|
611 |
// LOGGER.info("addAction: start");
|
|
706 | 612 |
this.start(); |
707 | 613 |
} |
708 | 614 |
} |
... | ... | |
713 | 619 |
|
714 | 620 |
@Override |
715 | 621 |
public void update(final Observable observable, final Object notification) { |
716 |
LOGGER.info("update: " + |
|
717 |
(observable==null? "null":observable.getClass().getSimpleName()) + |
|
718 |
", " + |
|
719 |
(notification==null? "null":notification.getClass().getSimpleName()) |
|
720 |
); |
|
622 |
// LOGGER.info("update: " +
|
|
623 |
// (observable==null? "null":observable.getClass().getSimpleName()) +
|
|
624 |
// ", " +
|
|
625 |
// (notification==null? "null":notification.getClass().getSimpleName())
|
|
626 |
// );
|
|
721 | 627 |
if (notification instanceof ComplexNotification) { |
722 | 628 |
// A lot of things might have happened in the store, so don't |
723 | 629 |
// bother looking into each notification. |
... | ... | |
728 | 634 |
= (FeatureStoreNotification) notification; |
729 | 635 |
String type = fsNotification.getType(); |
730 | 636 |
|
731 |
LOGGER.info("update: "+type); |
|
637 |
// LOGGER.info("update: "+type);
|
|
732 | 638 |
switch(type) { |
733 | 639 |
case FeatureStoreNotification.AFTER_DELETE: |
734 | 640 |
case FeatureStoreNotification.AFTER_INSERT: |
Also available in: Unified diff