Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 185754 Details for
Bug 298363
[ui]Catalog hyperlink detector quite confusing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch to show the name of Editor for Catalog url
298363.patch (text/plain), 3.84 KB, created by
Sarika Sinha
on 2010-12-23 04:51:59 EST
(
hide
)
Description:
Patch to show the name of Editor for Catalog url
Filename:
MIME Type:
Creator:
Sarika Sinha
Created:
2010-12-23 04:51:59 EST
Size:
3.84 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.wst.xml.ui >Index: src/org/eclipse/wst/xml/ui/internal/XMLUIMessages.java >=================================================================== >RCS file: /cvsroot/webtools/sourceediting/plugins/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/XMLUIMessages.java,v >retrieving revision 1.39 >diff -u -r1.39 XMLUIMessages.java >--- src/org/eclipse/wst/xml/ui/internal/XMLUIMessages.java 14 Oct 2010 19:08:02 -0000 1.39 >+++ src/org/eclipse/wst/xml/ui/internal/XMLUIMessages.java 23 Dec 2010 09:47:43 -0000 >@@ -320,6 +320,7 @@ > public static String Use_XInclude; > public static String Honour_all_schema_locations; > public static String Open; >+ public static String Open_With; > public static String _UI_BUTTON_SORT; > public static String MarkupValidation_files_label; > public static String MarkupValidation_files; >Index: src/org/eclipse/wst/xml/ui/internal/XMLUIPluginResources.properties >=================================================================== >RCS file: /cvsroot/webtools/sourceediting/plugins/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/XMLUIPluginResources.properties,v >retrieving revision 1.49 >diff -u -r1.49 XMLUIPluginResources.properties >--- src/org/eclipse/wst/xml/ui/internal/XMLUIPluginResources.properties 14 Oct 2010 19:08:02 -0000 1.49 >+++ src/org/eclipse/wst/xml/ui/internal/XMLUIPluginResources.properties 23 Dec 2010 09:47:44 -0000 >@@ -348,6 +348,7 @@ > gotoMatchingTag_start=Start tag of element <{0}> > gotoMatchingTag_end=End tag of element <{0}> > Open=Open ''{0}'' >+Open_With=Open ''{0}'' in ''{1}'' > _UI_BUTTON_SORT=Sort > Validating_files=Validating files > Indicate_no_grammar_specified=Indicate when no &grammar is specified: >Index: src/org/eclipse/wst/xml/ui/internal/hyperlink/CatalogEntryHyperlink.java >=================================================================== >RCS file: /cvsroot/webtools/sourceediting/plugins/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/hyperlink/CatalogEntryHyperlink.java,v >retrieving revision 1.2 >diff -u -r1.2 CatalogEntryHyperlink.java >--- src/org/eclipse/wst/xml/ui/internal/hyperlink/CatalogEntryHyperlink.java 23 Apr 2009 05:29:45 -0000 1.2 >+++ src/org/eclipse/wst/xml/ui/internal/hyperlink/CatalogEntryHyperlink.java 23 Dec 2010 09:47:44 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2008 IBM Corporation and others. >+ * Copyright (c) 2008, 2010 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -20,6 +20,9 @@ > import org.eclipse.jface.text.IRegion; > import org.eclipse.jface.text.hyperlink.IHyperlink; > import org.eclipse.osgi.util.NLS; >+import org.eclipse.ui.IEditorDescriptor; >+import org.eclipse.ui.PartInitException; >+import org.eclipse.ui.ide.IDE; > import org.eclipse.wst.xml.core.internal.catalog.provisional.ICatalogEntry; > import org.eclipse.wst.xml.ui.internal.XMLUIMessages; > >@@ -59,7 +62,16 @@ > if (fEntry.getURI().startsWith("jar:file:")) > return new URLStorageHyperlink(fHyperlinkRegion, new URL(fEntry.getURI())) { > public String getHyperlinkText() { >- return NLS.bind(XMLUIMessages.Open, fEntry.getKey()); >+ IEditorDescriptor editorID= null; >+ try { >+ editorID = IDE.getEditorDescriptor(fEntry.getKey()); >+ } catch (PartInitException e) { >+ e.printStackTrace(); >+ } >+ if (editorID != null) >+ return NLS.bind(XMLUIMessages.Open_With, fEntry.getKey(), editorID.getLabel()); >+ else >+ return NLS.bind(XMLUIMessages.Open, fEntry.getKey()); > } > }; > } >@@ -113,4 +125,6 @@ > if (link != null) > link.open(); > } >+ >+ > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 298363
:
154907
|
161874
|
185754
|
189826