Project

General

Profile

Revision 170e8ea2

ID170e8ea287368227b65d470306af7e03baccc175
Parent f6218ddf
Child 2755bf6d

Added by Katja Luther 3 months ago

ref #9065: switch button text after click

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/Messages.java
641 641
    public static String MediaDetailElement_NO_PREVIEW;
642 642
    public static String MediaDetailElement_TOGGLE_NOT_POSSIBLE_MESSAGE;
643 643
    public static String MediaDetailElement_TOGGLE_NOT_POSSIBLE_TITLE;
644
    public static String MediaDetailElement_SHOW_IMAGE;
645
    public static String MediaDetailElement_RELOAD_IMAGE;
646

  
644 647

  
645 648
    public static String MediaPreferences_advanced;
646 649
    public static String MediaPreferences_preview;
......
745 748

  
746 749

  
747 750

  
751

  
748 752
    static {
749 753
        // initialize resource bundle
750 754
        NLS.initializeMessages(BUNDLE_NAME, Messages.class);
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/messages.properties
526 526
MediaDetailElement_NO_PREVIEW=No preview available for this file type
527 527
MediaDetailElement_TOGGLE_NOT_POSSIBLE_MESSAGE=Media consists of multiple representations or representatio parts
528 528
MediaDetailElement_TOGGLE_NOT_POSSIBLE_TITLE=Toggling not possible
529
MediaDetailElement_SHOW_IMAGE=Show Image
530
MediaDetailElement_RELOAD_IMAGE=Reload Image
531

  
532

  
529 533
MediaPreferences_advanced=Show Advanced Media View in Details View
530 534
MediaPreferences_preview=Show Preview in Media View (Tree View)
531 535

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/messages_de.properties
526 526
MediaDetailElement_NO_PREVIEW=Keine Vorschau f?r diesen Dateityp vorhanden
527 527
MediaDetailElement_TOGGLE_NOT_POSSIBLE_MESSAGE=Media besteht aus mehreren "representations" oder "representation parts"
528 528
MediaDetailElement_TOGGLE_NOT_POSSIBLE_TITLE=Umschalten nicht m?glich
529
MediaDetailElement_SHOW_IMAGE=Zeige Bild
530
MediaDetailElement_RELOAD_IMAGE=Bild neu laden
531

  
529 532
MediaPreferences_advanced=Erweiterten Media Details View anzeigen
530 533
MediaPreferences_preview=Vorschau anzeigen
531 534

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/media/MediaDetailElement.java
254 254
                LoadImageJob job = new LoadImageJob(singleMediaRepresentationPart.getUri(), LOAD_IMAGE);
255 255
                job.schedule();
256 256
            } else{
257
                Button button_showImage = formFactory.createButton(getLayoutComposite(), "Show Image", SWT.PUSH);
257
                Button button_showImage = formFactory.createButton(getLayoutComposite(), Messages.MediaDetailElement_SHOW_IMAGE, SWT.PUSH);
258 258
                button_showImage.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
259 259
                button_showImage.addSelectionListener(new SelectionAdapter() {
260 260
                    @Override
261 261
                    public void widgetSelected(SelectionEvent e) {
262
                        LoadImageJob job = new LoadImageJob(singleMediaRepresentationPart.getUri(), "Load Image");
262
                        LoadImageJob job = new LoadImageJob(singleMediaRepresentationPart.getUri(), Messages.MediaDetailElement_LOAD_IMAGE);
263 263
                        job.schedule();
264
                        button_showImage.setText(Messages.MediaDetailElement_RELOAD_IMAGE);
264 265
                    }
265 266
                });
266 267
            }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)