Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 298363 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/wst/xml/ui/internal/XMLUIMessages.java (+1 lines)
Lines 320-325 Link Here
320
	public static String Use_XInclude;
320
	public static String Use_XInclude;
321
    public static String Honour_all_schema_locations;   
321
    public static String Honour_all_schema_locations;   
322
	public static String Open;
322
	public static String Open;
323
	public static String Open_With;
323
	public static String _UI_BUTTON_SORT;
324
	public static String _UI_BUTTON_SORT;
324
	public static String MarkupValidation_files_label;
325
	public static String MarkupValidation_files_label;
325
	public static String MarkupValidation_files;
326
	public static String MarkupValidation_files;
(-)src/org/eclipse/wst/xml/ui/internal/XMLUIPluginResources.properties (+1 lines)
Lines 348-353 Link Here
348
gotoMatchingTag_start=Start tag of element <{0}>
348
gotoMatchingTag_start=Start tag of element <{0}>
349
gotoMatchingTag_end=End tag of element <{0}>
349
gotoMatchingTag_end=End tag of element <{0}>
350
Open=Open ''{0}''
350
Open=Open ''{0}''
351
Open_With=Open ''{0}'' in ''{1}''
351
_UI_BUTTON_SORT=Sort
352
_UI_BUTTON_SORT=Sort
352
Validating_files=Validating files
353
Validating_files=Validating files
353
Indicate_no_grammar_specified=Indicate when no &grammar is specified:
354
Indicate_no_grammar_specified=Indicate when no &grammar is specified:
(-)src/org/eclipse/wst/xml/ui/internal/hyperlink/CatalogEntryHyperlink.java (-2 / +16 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2008 IBM Corporation and others.
2
 * Copyright (c) 2008, 2010 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 20-25 Link Here
20
import org.eclipse.jface.text.IRegion;
20
import org.eclipse.jface.text.IRegion;
21
import org.eclipse.jface.text.hyperlink.IHyperlink;
21
import org.eclipse.jface.text.hyperlink.IHyperlink;
22
import org.eclipse.osgi.util.NLS;
22
import org.eclipse.osgi.util.NLS;
23
import org.eclipse.ui.IEditorDescriptor;
24
import org.eclipse.ui.PartInitException;
25
import org.eclipse.ui.ide.IDE;
23
import org.eclipse.wst.xml.core.internal.catalog.provisional.ICatalogEntry;
26
import org.eclipse.wst.xml.core.internal.catalog.provisional.ICatalogEntry;
24
import org.eclipse.wst.xml.ui.internal.XMLUIMessages;
27
import org.eclipse.wst.xml.ui.internal.XMLUIMessages;
25
28
Lines 59-65 Link Here
59
				if (fEntry.getURI().startsWith("jar:file:"))
62
				if (fEntry.getURI().startsWith("jar:file:"))
60
					return new URLStorageHyperlink(fHyperlinkRegion, new URL(fEntry.getURI())) {
63
					return new URLStorageHyperlink(fHyperlinkRegion, new URL(fEntry.getURI())) {
61
						public String getHyperlinkText() {
64
						public String getHyperlinkText() {
62
							return NLS.bind(XMLUIMessages.Open, fEntry.getKey());
65
							IEditorDescriptor editorID= null;
66
							try {
67
								editorID = IDE.getEditorDescriptor(fEntry.getKey());
68
							} catch (PartInitException e) {
69
								e.printStackTrace();
70
							}
71
							if (editorID != null)
72
								return NLS.bind(XMLUIMessages.Open_With, fEntry.getKey(), editorID.getLabel());
73
							else
74
								return NLS.bind(XMLUIMessages.Open, fEntry.getKey());
63
						}
75
						}
64
					};
76
					};
65
			}
77
			}
Lines 113-116 Link Here
113
		if (link != null)
125
		if (link != null)
114
			link.open();
126
			link.open();
115
	}
127
	}
128
	
129
	
116
}
130
}

Return to bug 298363