Community
Participate
Working Groups
Create a J Project. Add swt.jar as a external jar Attach its source. Select a .class - Double click it -> A text file will open. Select a .properties file - > Double click it -> A text file will open. Select a .c file -> Nothing happens. We should either: - open the file editor. - should a dialog with a info message. - filter those files out of the package view. NOTES: EG (6/11/2001 10:27:34 AM) To do so register an editor for a .c file. Preferences->workbench->file editors->.c->Text editor EJP (6/11/01 4:53:54 PM) That is inconsistent with Navigator, ie, if no editor is associated the DefaultTextEditor is opened. EG (6/11/2001 11:00:52 AM) ack, reactivating PR. This would require workbench API to open the default editor.
moved to 'active'
PRODUCT VERSION: Build 120 - jdk - linux.
Requesting API from Platform UI for opening the default editor (open an editor without having to give an EditorID. Moving to Platform/UI
*** Bug 4015 has been marked as a duplicate of this bug. ***
The following method on IWorkbenchPage opens an editor on the given file resource. public IEditorPart openEditor(IFile input) throws PartInitException; An appropriate editor for the input is determined using a multistep process. - The workbench editor registry is consulted to determine if an editor extension has been registered for the file type. If so, an instance of the editor extension is opened on the file. - Next, the native operating system will be consulted to determine if a native editor exists for the file type. If so, a new process is started and the native editor is opened on the file. - If all else fails the file will be opened in a default text editor. Will this do the job?
*** Bug 12570 has been marked as a duplicate of this bug. ***
Works in build 20020502.