OrderPreferencePage_NewNavigatorWindowRequired=After changing the order of the taxon nodes, closing and reopen of the taxon navigator is required.\r
OrderPreferencePage_PleaseReopenNavigator=Please close and reopen the taxon navigator.\r
UriWithLabelElement_URL_NOT_SAVED=URL won't be saved\! \r
+UriWithLabelElement_COULD_NOT_OPEN_BROWSER=Could not open external browser. URL is invalid.\r
+UriWithLabelElement_INVALID_URL=Invalid URL\r
+UriWithLabelElement_OPEN_EXTERNAL_BROWSER=Open in external browser\r
LanguageEditorPreferencePage_PleaseRestart=Bitte neu starten\r
LanguageEditorPreferencePage_RestartRequired=Nach dem Wechsel der Standardsprache ist ein Neustart erforderlich.\r
OrderPreferencePage_NewNavigatorWindowRequired=Nach dem Ändern der Taxon Sortierung, ist das Schließen und erneute Öffnen des taxon Navigators erforderlich.\r
-UriWithLabelElement_URL_NOT_SAVED=URL wird nicht gespeichert\!
\ No newline at end of file
+UriWithLabelElement_URL_NOT_SAVED=URL wird nicht gespeichert\!\r
+UriWithLabelElement_COULD_NOT_OPEN_BROWSER=Externer Browser konnt nicht geöffnet werden. URL is ung\u00FCtlig.\r
+UriWithLabelElement_INVALID_URL=Ung\u00FCltiger URL\r
+UriWithLabelElement_OPEN_EXTERNAL_BROWSER=Im Browser öffnen
\ No newline at end of file
public static String CdmDataSourceViewPart_7;
public static String CdmDataSourceViewPart_8;
public static String CdmDataSourceViewPart_9;
+ public static String UriWithLabelElement_COULD_NOT_OPEN_BROWSER;
+ public static String UriWithLabelElement_INVALID_URL;
+ public static String UriWithLabelElement_OPEN_EXTERNAL_BROWSER;
public static String UriWithLabelElement_URL_NOT_SAVED;
static {
// initialize resource bundle
initText(formFactory, null, textHeight, null, false, style, textAndButton);
//button
- btnOpenBrowser = formFactory.createButton(textAndButton, "", SWT.NONE);
+ btnOpenBrowser = formFactory.createButton(textAndButton, "", SWT.NONE); //$NON-NLS-1$
btnOpenBrowser.setImage(ImageResources.getImage(ImageResources.WEB));
- btnOpenBrowser.setToolTipText("Open in external browser");
+ btnOpenBrowser.setToolTipText(Messages.UriWithLabelElement_OPEN_EXTERNAL_BROWSER);
btnOpenBrowser.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
- String errorTitle = "Invalid URL";
- String errorText = "Could not open external browser. URL is invalid";
+ String errorTitle = Messages.UriWithLabelElement_INVALID_URL;
+ String errorText = Messages.UriWithLabelElement_COULD_NOT_OPEN_BROWSER;
URI uri = getUri();
if(uri!=null){
MessagingUtils.informationDialog(errorTitle, new Status(IStatus.WARNING, TaxeditorStorePlugin.PLUGIN_ID, errorText, iae));
}
}
+ else{
+ MessagingUtils.informationDialog(errorTitle, new Status(IStatus.WARNING, TaxeditorStorePlugin.PLUGIN_ID, errorText, null));
+ }
}
});
btnOpenBrowser.setLayoutData(LayoutConstants.RIGHT());
- labelException = formFactory.createLabel(getLayoutComposite(), "", SWT.WRAP);
+ labelException = formFactory.createLabel(getLayoutComposite(), "", SWT.WRAP); //$NON-NLS-1$
int numColumns = AbstractFormSection.DEFAULT_NUM_COLUMNS;
if(getLayoutComposite().getLayout() instanceof TableWrapLayout){
numColumns = ((TableWrapLayout)getLayoutComposite().getLayout()).numColumns;