Bug 178235 [EditorMgmt] DBCS 3.3 - Cannot open file with external program
Product Build#: I20070306 Platform/Version : Windows Vista, 2003, XP Language: T.Chinese Releated Test Case #: ECLIPSE3.3 - M5 OPEN FILES WITH OTHER EDITORS JVM: IBM JRE 5.0 SR1 ===== DEFECT DESCRIPTION ===== From Package Explorer view, we failed to open a java file with external program such as notepad or iexplore. ===== STEPS TO RECREATE ===== 1. From Package Explorer view, select a file, and Open With > Other... from the context menu 2. select External Programs radio button 3. Click Browse.. buttom and select Text File(notepad.exe) program, then click OK 4. The error will display "Unable to open editor, unknown editor ID: <XXX>" ===== EXPECTED RESULT ===== notepad.exe can be specified and the file can be opened
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/OpenWithMenu.java
/*******************************************************************************
 * Copyright (c) 2000, 2007 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
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *     Benjamin Muskalla -	Bug 29633 [EditorMgmt] "Open" menu should
 *     						have Open With-->Other
 *******************************************************************************/
package org.eclipse.ui.actions;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.Hashtable;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jface.action.ContributionItem;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.window.Window;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Image;