Project

General

Profile

« Previous | Next » 

Revision 0cc228fe

Added by Patrick Plitzner over 8 years ago

i10n for eu.etaxonomy.taxeditor.view

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/CdmViewerUtil.java
41 41
        if(input!=null){
42 42
            IExtensionRegistry reg = Platform.getExtensionRegistry();
43 43
            IConfigurationElement[] extensions = reg
44
                    .getConfigurationElementsFor("eu.etaxonomy.taxeditor.store.cdmViewer");
44
                    .getConfigurationElementsFor("eu.etaxonomy.taxeditor.store.cdmViewer"); //$NON-NLS-1$
45 45
            for (IConfigurationElement configElement : extensions) {
46
                if(configElement.getName().equals("viewCommandMapping")){
46
                if(configElement.getName().equals("viewCommandMapping")){ //$NON-NLS-1$
47 47
                    try {
48
                        String commandId = configElement.getAttribute("commandId");
49
                        String viewerName = configElement.getAttribute("viewerName");
50
                        Class<?> selectionClass = Class.forName(configElement.getAttribute("selection"));
48
                        String commandId = configElement.getAttribute("commandId"); //$NON-NLS-1$
49
                        String viewerName = configElement.getAttribute("viewerName"); //$NON-NLS-1$
50
                        Class<?> selectionClass = Class.forName(configElement.getAttribute("selection")); //$NON-NLS-1$
51 51
                        if(selectionClass.isAssignableFrom(input.getClass())){
52 52
                            commandViewerNameMap.put(commandId, viewerName);
53 53
                        }
54 54
                    } catch (ClassNotFoundException e) {
55
                        MessagingUtils.error(CdmViewerChooser.class, "Could not initalize selection class element of cdmViewer extension", e);
55
                        MessagingUtils.error(CdmViewerChooser.class, "Could not initalize selection class element of cdmViewer extension", e); //$NON-NLS-1$
56 56
                    }
57 57
                }
58 58
            }

Also available in: Unified diff