|
|
Re: XML Editor [message #460700 is a reply to message #460687] |
Thu, 28 December 2006 15:08 |
krishna Messages: 48 Registered: July 2009 |
Member |
|
|
Thanks Tom!
I tried to build a multi page editor, following the instruction given at
http://www.eclipse.org/webtools/wst/components/sse/tutorials /multipage-editor-tutorial.html#test
When i try to open a editor(using a tollbar action) with the shown code the
program stops exectuing at the line marked below. On the RCP application
where I called the action no change is seen. The RCP application doesn't
hang. It seems like there is no action due to the clicking of the toolbar
button.
File file= queryFile();
if (file != null) {
IWorkbenchPage page=
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage();
FileEditorInput input = new FileEditorInput(ifile);
try {
page.openEditor(input,MultiPageEditor.ID );
} catch (PartInitException e) {
e.printStackTrace();
}}
private File queryFile() {
FileDialog dialog= new
FileDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindo w().getShell(),
SWT.OPEN);
dialog.setText("Open File");
String path= dialog.open();
IPath ipath = new Path(path);
if (path != null && path.length() > 0)
return new File(path);
return null;
}
Any help regardin the issue will be appreciated.
Thanks in advance!!
Regards,
Kirshna
"Tom Schindl" <tom.schindl@bestsolution.at> wrote in message
news:en06q4$h1s$1@utils.eclipse.org...
> Hi,
>
> Please search the newsgroup before asking questions I've already
> answered this kind of question in a post dating from December, 22nd.
>
> If this is not sufficient for you please follow up here or ask the guys
> from WTP how to include the tree-editor they are providing.
>
> Tom
>
> krishna schrieb:
>> I have to show an XML, present in the filesystem, in an RCP application.
>>
>> Is there a way I can extend the default XML editors present in Eclipse to
>> show the fiel. I need to show it in the editable tree table format as it
>> shown in eclipse
>>
>> Need information regarding this issue.
>>
>> Thanks in advance!!
>>
>> Regards,
>> Krishna
>>
>>
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03991 seconds