Ignore:
Timestamp:
07/08/13 23:04:56 (11 years ago)
Author:
psniegowski
Message:

HIGHLIGHTS:

CHANGELOG:
Get data also on tree expansion.

Use nice framstick icon for empty nodes.

Update panel after reload if it is current.

Add shallow reload procedure.

Cut Gui prefix from several tree classes.

Bring back counter of GuiTreeNode?.

Use IdentityHashMap? were it is more appriopriate.

Remove TreeListener?.

Do not use TreeListener? in GUI.

Minor change.

Done migration to GuiTreeModel?.

BrowserTest? in that version always crashes frams.linux.

Move rendering implementation into GuiAbstractNode?.

Use hand-crafted list in GuiTreeNode?.

Generally, it would be a great place for WeakIdentityHashMap?
(but there is none in Java Collection Framework).

Remove superfluous logging.

Fix bug in GuiTreeNode?.

Use IdentityHashMap? instead of HashMap?.

Improve structure update.

Filter out invalid uids in UniqueListAccess?.

Improve TreeCellRenderer?.

Add filtering in TrackConsole?.

Improve TreeModel?.

More changes.

More improvements.

More changes.

Remove TreeNode?.

Support MetaNode? in the GuiTreeModel?.

Implement more in GuiTreeModel?.

Add CompositeParam? interface to FramsClass? and AccessInterface?.

Allow access by number to UniqueList?.

Add UidComparator?.

Use TreeMap? as a default accessee in unique list.

It keeps order of keys.

Introduce classes to use with new TreeModel?.

Another step.

Migrate from TreeNode? to Node in many places.

Remove some uses of TreeNode? as DefaultMutableTreeNode?.

Remove Path from TreeNode? interface.

Remove Path from TreeNode?.

Add Path recration from node feature.

Reworking TreeCellRenderer?.

Minor change of TreeOperations? interface.

Remove last methods from TreeNode?.

Another minor step.

Do not store reference to TreeAtFrame? in TreeNode?.

Add proxy exceptionHandler to StatusBar?.

Move panels management to TreeAtFrame?.

Store localChanges in the NodeAtFrame?.

More cleanup.

Move name computing to TreeCellRenderer?.

Move tooltip and icon computations to TreeCellRenderer?.

More dispatches removed.

Remove most dispatching from TreeNode?.

TreeNode? does not actually redispatch tasks.

Make Tree embedded in Browser use SwingDispatcher?.

Make lazy binding of Tree with Dispatcher.

Minor changes.

Organizational change in AbstractTree?.

Make AbstractTree? compose from Thread instead of inherit from it.

Make SwingDispatcher? and AtOnceDispatcher? Joinable compatible.

Add ListPanelProvider?.

Improve Controls readonly and enabled handling.

Properly pass ExceptionHandlers? in more places.

Make Tree.get accept ValueParam?.

  • This is to allow access number of list elements.

Remove not needed get redirection in ClientAtServer?.

Rename tryResolve to tryGet.

Unify tryResolveAndGet into tryResolve.

Remove resolveTop from Tree interface.

Make Tree.get accept Future<Path>.

Use get to implement resolveTop also in ObjectTree?.

Unify resolveTop and get in RemoteTree?.

Another minor step.

More minor changes in tree operations.

Minor organizational changes.

In RemoteTree? first fetch info for root.

Reworking resolving.

Minor changes.

Make ListAccess? return proxy iterators (instead of creating temporary collection).

Let AccessInterface? return Iterable<Param>.

Improve resolving.

More improvements.

First working completion in ManagedConsole?.

Rename resolve to resolveTop.

This reflects the actuall functionality.

Change semantic of tryResolve and tryResolveAndGet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/main/src/main/java/com/framsticks/util/dispatching/Dispatching.java

    r97 r98  
    8686
    8787        public static void childChangedState(final JoinableParent parent, final Joinable joinable, final JoinableState state) {
     88                if (state.ordinal() <= JoinableState.RUNNING.ordinal()) {
     89                        return;
     90                }
    8891                dispatcherGuardedInvoke(joinable, new RunAt<Object>(ThrowExceptionHandler.getInstance()) {
    8992                        @Override
     
    118121        }
    119122
    120         public interface Query<T> {
     123        public interface Query<T> extends ExceptionResultHandler {
    121124                T get();
     125        }
     126
     127        public static abstract class QueryHandler<T> implements Query<T> {
     128                ExceptionResultHandler handler;
     129
     130                /**
     131                 * @param handler
     132                 */
     133                public QueryHandler(ExceptionResultHandler handler) {
     134                        this.handler = handler;
     135                }
     136
     137                @Override
     138                public void handle(FramsticksException exception) {
     139                        handler.handle(exception);
     140                }
    122141        }
    123142
     
    131150                 */
    132151                public QueryRunner(Query<T> query) {
    133                         //TODO TEH
    134                         super(ThrowExceptionHandler.getInstance());
     152                        super(query);
    135153                        this.query = query;
    136154                }
     
    164182        }
    165183
     184        public static class DispatcherWaiter<C, T extends Dispatcher<C> & Joinable> implements Dispatcher<C> {
     185                // protected boolean done = false;
     186                protected final T dispatcher;
     187                protected RunAt<? extends C> runnable;
     188
     189                /**
     190                 * @param joinable
     191                 */
     192                public DispatcherWaiter(T dispatcher) {
     193                        this.dispatcher = dispatcher;
     194                }
     195
     196                public synchronized void waitFor() {
     197                        while ((runnable == null) && (dispatcher.getState().ordinal() <= JoinableState.RUNNING.ordinal())) {
     198                                try {
     199                                        this.wait();
     200                                } catch (InterruptedException e) {
     201                                }
     202                        }
     203                        if (runnable != null) {
     204                                runnable.run();
     205                        }
     206
     207                }
     208
     209                @Override
     210                public boolean isActive() {
     211                        return dispatcher.isActive();
     212                }
     213
     214                @Override
     215                public synchronized void dispatch(RunAt<? extends C> runnable) {
     216                        this.runnable = runnable;
     217                        this.notifyAll();
     218                }
     219
     220        }
     221
    166222        public static class Waiter {
    167223                protected boolean done = false;
Note: See TracChangeset for help on using the changeset viewer.