Skip to content

Commit

Permalink
Added tooltip explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
fdodino committed Sep 29, 2017
1 parent e91ad0a commit 27fc066
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ class ShowOutdatedAction extends ControlContribution {
def configureLabel() {
label => [
if (!isDisposed) {
text = if (synced) " " + WollokRepl_SYNCED_MESSAGE + " " else WollokRepl_OUTDATED_MESSAGE
text = if (synced) " " + WollokRepl_SYNCED_MESSAGE + " " else WollokRepl_OUTDATED_MESSAGE
toolTipText = if (synced) WollokRepl_SYNCED_TOOLTIP else WollokRepl_OUTDATED_TOOLTIP
val imageURL = if (synced) "platform:/plugin/org.eclipse.ui.ide/icons/full/elcl16/synced.png" else "platform:/plugin/org.eclipse.ui.ide/icons/full/dlcl16/synced.png"
image = ImageDescriptor.createFromURL(new URL(imageURL)).createImage
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public class WollokLaunchUIMessages extends NLS {
public static String WollokRepl_EXPORT_HISTORY_TITLE;
public static String WollokRepl_SYNCED_MESSAGE;
public static String WollokRepl_OUTDATED_MESSAGE;
public static String WollokRepl_SYNCED_TOOLTIP;
public static String WollokRepl_OUTDATED_TOOLTIP;

static {
// initialize resource bundle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ WollokRepl_STOP_TITLE = Stop
WollokRepl_EXPORT_HISTORY_TITLE = Export History
WollokRepl_SYNCED_MESSAGE = Synced
WollokRepl_OUTDATED_MESSAGE = Outdated
WollokRepl_SYNCED_TOOLTIP = wlk file is synced with REPL session
WollokRepl_OUTDATED_TOOLTIP = wlk file is not synced. Changes you made will not be available in your REPL session until you run it again
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ WollokTestState_RUNNING = Corriendo
WollokRepl_STOP_TITLE = Detener
WollokRepl_EXPORT_HISTORY_TITLE = Exportar el historial
WollokRepl_SYNCED_MESSAGE = Syncronizada
WollokRepl_OUTDATED_MESSAGE = Desactualizada
WollokRepl_OUTDATED_MESSAGE = Desactualizada
WollokRepl_SYNCED_TOOLTIP = El archivo wlk est\u00E1 sincronizado con la sesi\u00F3n de la consola REPL
WollokRepl_OUTDATED_TOOLTIP = El archivo wlk no est\u00E1 sincronizado con la sesi\u00F3n de la consola REPL. Los cambios que hiciste no estar\u00E1n disponibles en la consola hasta que no lo vuelvas a ejecutar.

0 comments on commit 27fc066

Please sign in to comment.