[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: default tab in xml editor
|
Can you access the editor's TabFolder/CTabFolder? If so then invoke its
setSelection() api.
If you don't have access to the tab folder then there may be a higher-level
solution, in which case you may get better help if you ask this on the
eclipse.platform newsgroup.
Grant
"Neil Goldsmith" <neilg@xxxxxxxxx> wrote in message
news:9c22c54b84b412595d72bbf79c064495$1@xxxxxxxxxxxxxxxxxx
> We define our file-extension to use the base type of
> org.eclipse.core.runtime.xml.
>
> When you first open up the xml editor, the tab is set to design view. 99%
> of our customers will use the source view to edit their file and once they
> click to that it will be saved as such for subsequent editor sessions.
> However, we want to set the source view as the default in all cases. I
> can't find anyway to set this so the xml editor will open to source view
> by default. Anyone have any recommendations?
>
> thanks,
> Neil
>
>