Changeset 605

Show
Ignore:
Timestamp:
20-03-12 11:44:31 (2 years ago)
Author:
kees.burger@…
Message:

Replaced raw error output with more friendly error message
Added stub for removing rows

Location:
trunk/code/conceptwiki/web/web-gwt/src/main/java/nl/nbic/conceptwiki/web/gwt/client
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/code/conceptwiki/web/web-gwt/src/main/java/nl/nbic/conceptwiki/web/gwt/client/activity/ConceptActivity.java

    r604 r605  
    88import nl.nbic.conceptwiki.web.gwt.client.ui.ConceptView; 
    99 
    10 import com.allen_sauer.gwt.log.client.Log; 
    1110import com.google.gwt.activity.shared.AbstractActivity; 
    1211import com.google.gwt.event.shared.EventBus; 
     
    5251                                @Override 
    5352                                public void onFailure(final Throwable caught) { 
    54                                         Window.alert(caught.getLocalizedMessage()); 
     53                                        Window.alert("We're terribly sorry, but something appears to have gone wrong while retrieving the concept information"); 
    5554                                } 
    5655                        }); 
     
    6059            @Override 
    6160            public void onFailure(final Throwable caught) { 
    62                 Window.alert(caught.getLocalizedMessage()); 
     61                Window.alert("We're terribly sorry, but something appears to have gone wrong while creating the concept page"); 
    6362            } 
    6463        }); 
     
    7978            @Override 
    8079            public void onFailure(final Throwable caught) { 
    81                 Window.alert(caught.getMessage()); 
     80                Window.alert("We're terribly sorry, but something appears to have gone wrong while saving your changes"); 
    8281            } 
    8382        }); 
  • trunk/code/conceptwiki/web/web-gwt/src/main/java/nl/nbic/conceptwiki/web/gwt/client/activity/SearchActivity.java

    r597 r605  
    5656                        @Override 
    5757                        public void onFailure(final Throwable caught) { 
    58                             Window.alert(caught.getLocalizedMessage()); 
     58                            Window.alert("We're terribly sorry, but something appears to have gone wrong while retrieving the search results"); 
    5959                        } 
    6060                    }); 
     
    6464            @Override 
    6565            public void onFailure(Throwable caught) { 
    66                 Window.alert(caught.getLocalizedMessage()); 
     66                Window.alert("We're terribly sorry, but something appears to have gone wrong while creating the search page"); 
    6767            } 
    6868        }); 
  • trunk/code/conceptwiki/web/web-gwt/src/main/java/nl/nbic/conceptwiki/web/gwt/client/ui/impl/ConceptViewImpl.java

    r604 r605  
    5555import com.google.gwt.user.client.ui.InlineHTML; 
    5656import com.google.gwt.user.client.ui.Widget; 
     57import com.google.gwt.view.client.CellPreviewEvent; 
     58import com.google.gwt.view.client.CellPreviewEvent.Handler; 
    5759import com.google.inject.Inject; 
    5860 
     
    184186         
    185187        initWidget(uiBinder.createAndBindUi(this)); 
     188         
     189        // TMP, FOR THE OPS DEMO 
     190        terminologyTable.addCellPreviewHandler(new Handler<Label>() { 
     191                @Override 
     192                public void onCellPreview(CellPreviewEvent<Label> event) { 
     193                        final int DEL_COLUMN_INDEX = 2; 
     194                        if ("click".equals(event.getNativeEvent().getType()) && event.getColumn() == DEL_COLUMN_INDEX) { 
     195                                logger.info("Now deleting label at column "+event.getColumn()+", index "+event.getIndex()+", label "+event.getValue().getText()); 
     196                        } 
     197                } 
     198        }); 
    186199    } 
    187200