Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » xmls file with non-xml extension (*.jrxml)
xmls file with non-xml extension (*.jrxml) [message #144483] Wed, 19 October 2005 17:20 Go to next message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
Hi,
How i can make file association for file with non .xml suffix
(for example jasperreport *.jrxml)
I make file association in Preferences and file is opne with 'XML editor'
but I can't call validation, format (context menu) doesn't work (disabled),
folding doesn't work , syntax highligth etc

What is a problem ?

Peco
Re: xmls file with non-xml extension (*.jrxml) [message #144492 is a reply to message #144483] Wed, 19 October 2005 15:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: amywu.us.DELETETHISPART.ibm.com

You need to associate your file extension to the XML Content Type.
Preferences -> General -> Content Types

"Haris Peco" <snpe@snpe.co.yu> wrote in message
news:dj5o5n$ik3$3@news.eclipse.org...
> Hi,
> How i can make file association for file with non .xml suffix
> (for example jasperreport *.jrxml)
> I make file association in Preferences and file is opne with 'XML editor'
> but I can't call validation, format (context menu) doesn't work
(disabled),
> folding doesn't work , syntax highligth etc
>
> What is a problem ?
>
> Peco
Re: xmls file with non-xml extension (*.jrxml) [message #144511 is a reply to message #144492] Wed, 19 October 2005 17:58 Go to previous messageGo to next message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
Amy,
i do it and I have more problem now (eclipse 3.1.1, emf 2.1.1, gef 3.1.1,
vep 1.1.0.1 and wtp 0.7.1 linux-gtk)

1) validation doesn't work (I haven't validation menu in context menu on
*.jrxml)
2) when i open *.jrxml i get error in error log (it work, but this error
get again and again when i type in editor ) :
error 1 : model has no JFace adapter factory
error 2: java.lang.NullPointerException
at
org.eclipse.wst.xml.ui.internal.views.contentoutline.XMLCont entOutlineConfiguration.updateForShowAttributes(XMLContentOu tlineConfiguration.java:306)
at
org.eclipse.wst.xml.ui.internal.views.contentoutline.XMLCont entOutlineConfiguration$ToggleShowAttributeAction.update(XML ContentOutlineConfiguration.java:99)
at
org.eclipse.wst.xml.ui.internal.views.contentoutline.XMLCont entOutlineConfiguration$ToggleShowAttributeAction. <init>(XMLContentOutlineConfiguration.java:94)
at
org.eclipse.wst.xml.ui.internal.views.contentoutline.XMLCont entOutlineConfiguration.createMenuContributions(XMLContentOu tlineConfiguration.java:115)
at
org.eclipse.wst.sse.ui.internal.provisional.views.contentout line.StructuredContentOutlineConfiguration.getMenuContributi ons(StructuredContentOutlineConfiguration.java:194)
at
org.eclipse.wst.sse.ui.internal.contentoutline.StructuredTex tEditorContentOutlinePage.setConfiguration(StructuredTextEdi torContentOutlinePage.java:382)
at
org.eclipse.wst.sse.ui.internal.contentoutline.StructuredTex tEditorContentOutlinePage.createControl(StructuredTextEditor ContentOutlinePage.java:193)
at
org.eclipse.ui.views.contentoutline.ContentOutline.doCreateP age(ContentOutline.java:133)
at org.eclipse.ui.part.PageBookView.createPage(PageBookView.jav a:315)
at org.eclipse.ui.part.PageBookView.partActivated(PageBookView. java:613)
at
org.eclipse.ui.views.contentoutline.ContentOutline.partBroug htToTop(ContentOutline.java:206)
at org.eclipse.ui.internal.PartListenerList$2.run(PartListenerL ist.java:87)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at
org.eclipse.ui.internal.PartListenerList.fireEvent(PartListe nerList.java:58)
at
org.eclipse.ui.internal.PartListenerList.firePartBroughtToTo p(PartListenerList.java:85)
at
org.eclipse.ui.internal.PartService.firePartBroughtToTop(Par tService.java:87)
at
org.eclipse.ui.internal.WorkbenchPagePartList.firePartBrough tToTop(WorkbenchPagePartList.java:75)
at
org.eclipse.ui.internal.WorkbenchPagePartList.fireActiveEdit orChanged(WorkbenchPagePartList.java:51)
at org.eclipse.ui.internal.PartList.setActiveEditor(PartList.ja va:143)
at
org.eclipse.ui.internal.WorkbenchPage.makeActiveEditor(Workb enchPage.java:1128)
at
org.eclipse.ui.internal.WorkbenchPage.setActivePart(Workbenc hPage.java:2903)
at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage .java:552)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2371)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2295)
at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage .java:2287)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2273)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2268)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2249)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:371)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:334)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:251)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:131)
at
org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(Open ActionUtil.java:49)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:16 9)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:15 3)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:222)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:198)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:296)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 4.open(PackageExplorerPart.java:869)
at
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:741)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 8)
at
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:739)
at
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:968)
at
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1067)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:243)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:238)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:277)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2867)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2572)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)

Thanks
Amy Wu wrote:

> You need to associate your file extension to the XML Content Type.
> Preferences -> General -> Content Types
>
> "Haris Peco" <snpe@snpe.co.yu> wrote in message
> news:dj5o5n$ik3$3@news.eclipse.org...
>> Hi,
>> How i can make file association for file with non .xml suffix
>> (for example jasperreport *.jrxml)
>> I make file association in Preferences and file is opne with 'XML editor'
>> but I can't call validation, format (context menu) doesn't work
> (disabled),
>> folding doesn't work , syntax highligth etc
>>
>> What is a problem ?
>>
>> Peco
Re: xmls file with non-xml extension (*.jrxml) [message #144559 is a reply to message #144511] Wed, 19 October 2005 18:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: amywu.us.DELETETHISPART.ibm.com

1) you should check out https://bugs.eclipse.org/bugs/show_bug.cgi?id=112037
as to why there is no validation action. I think the validation should
still be kicking in though, when you save. And it should be the same
validation you see as you are typing (source validation).

2) This code has been cleaned up a bit since wtp 0.7.1. So this bug may
have already been fixed. But you can report this bug and include step by
step scenario and sample file.

Was everything else working after you associated your file extension to the
xml content type? Content assist, syntax highlighting?

"Haris Peco" <snpe@snpe.co.yu> wrote in message
news:dj5qe0$n41$1@news.eclipse.org...
> Amy,
> i do it and I have more problem now (eclipse 3.1.1, emf 2.1.1, gef
3.1.1,
> vep 1.1.0.1 and wtp 0.7.1 linux-gtk)
>
> 1) validation doesn't work (I haven't validation menu in context menu on
> *.jrxml)
> 2) when i open *.jrxml i get error in error log (it work, but this error
> get again and again when i type in editor ) :
> error 1 : model has no JFace adapter factory
> error 2: java.lang.NullPointerException
> at
>
org.eclipse.wst.xml.ui.internal.views.contentoutline.XMLCont entOutlineConfig
uration.updateForShowAttributes(XMLContentOutlineConfigurati on.java:306)
> at
>
org.eclipse.wst.xml.ui.internal.views.contentoutline.XMLCont entOutlineConfig
uration$ToggleShowAttributeAction.update(XMLContentOutlineCo nfiguration.java
:99)
> at
>
org.eclipse.wst.xml.ui.internal.views.contentoutline.XMLCont entOutlineConfig
uration$ToggleShowAttributeAction.<init>(XMLContentOutlineConfiguration.java
:94)
> at
>
org.eclipse.wst.xml.ui.internal.views.contentoutline.XMLCont entOutlineConfig
uration.createMenuContributions(XMLContentOutlineConfigurati on.java:115)
> at
>
org.eclipse.wst.sse.ui.internal.provisional.views.contentout line.StructuredC
ontentOutlineConfiguration.getMenuContributions(StructuredCo ntentOutlineConf
iguration.java:194)
> at
>
org.eclipse.wst.sse.ui.internal.contentoutline.StructuredTex tEditorContentOu
tlinePage.setConfiguration(StructuredTextEditorContentOutlin ePage.java:382)
> at
>
org.eclipse.wst.sse.ui.internal.contentoutline.StructuredTex tEditorContentOu
tlinePage.createControl(StructuredTextEditorContentOutlinePa ge.java:193)
> at
>
org.eclipse.ui.views.contentoutline.ContentOutline.doCreateP age(ContentOutli
ne.java:133)
> at org.eclipse.ui.part.PageBookView.createPage(PageBookView.jav a:315)
> at org.eclipse.ui.part.PageBookView.partActivated(PageBookView. java:613)
> at
>
org.eclipse.ui.views.contentoutline.ContentOutline.partBroug htToTop(ContentO
utline.java:206)
> at
org.eclipse.ui.internal.PartListenerList$2.run(PartListenerL ist.java:87)
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
:1044)
> at org.eclipse.core.runtime.Platform.run(Platform.java:783)
> at
>
org.eclipse.ui.internal.PartListenerList.fireEvent(PartListe nerList.java:58)
> at
>
org.eclipse.ui.internal.PartListenerList.firePartBroughtToTo p(PartListenerLi
st.java:85)
> at
>
org.eclipse.ui.internal.PartService.firePartBroughtToTop(Par tService.java:87
)
> at
>
org.eclipse.ui.internal.WorkbenchPagePartList.firePartBrough tToTop(Workbench
PagePartList.java:75)
> at
>
org.eclipse.ui.internal.WorkbenchPagePartList.fireActiveEdit orChanged(Workbe
nchPagePartList.java:51)
> at org.eclipse.ui.internal.PartList.setActiveEditor(PartList.ja va:143)
> at
>
org.eclipse.ui.internal.WorkbenchPage.makeActiveEditor(Workb enchPage.java:11
28)
> at
>
org.eclipse.ui.internal.WorkbenchPage.setActivePart(Workbenc hPage.java:2903)
> at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage .java:552)
> at
>
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.ja
va:2371)
> at
>
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2295
)
> at
org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage .java:2287)
> at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2273)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2268)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2249)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:371)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:334)
> at
>
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtil
ity.java:251)
> at
>
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtil
ity.java:131)
> at
>
org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(Open ActionUtil.java:
49)
> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:16 9)
> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:15 3)
> at
>
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDisp
atchAction.java:222)
> at
>
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchActi
on.java:198)
> at
>
org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpe
n(PackageExplorerActionGroup.java:296)
> at
>
org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 4.open(PackageEx
plorerPart.java:869)
> at
>
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:741)
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
:1044)
> at org.eclipse.core.runtime.Platform.run(Platform.java:783)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 8)
> at
>
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:73
9)
> at
>
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:
968)
> at
>
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.jav
a:1067)
> at
org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:243)
> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:238)
> at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:277)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2867)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2572)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
> at
>
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
> at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
java:226)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
..java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
> at org.eclipse.core.launcher.Main.run(Main.java:973)
> at org.eclipse.core.launcher.Main.main(Main.java:948)
>
> Thanks
> Amy Wu wrote:
>
> > You need to associate your file extension to the XML Content Type.
> > Preferences -> General -> Content Types
> >
> > "Haris Peco" <snpe@snpe.co.yu> wrote in message
> > news:dj5o5n$ik3$3@news.eclipse.org...
> >> Hi,
> >> How i can make file association for file with non .xml suffix
> >> (for example jasperreport *.jrxml)
> >> I make file association in Preferences and file is opne with 'XML
editor'
> >> but I can't call validation, format (context menu) doesn't work
> > (disabled),
> >> folding doesn't work , syntax highligth etc
> >>
> >> What is a problem ?
> >>
> >> Peco
>
Re: xmls file with non-xml extension (*.jrxml) [message #144586 is a reply to message #144559] Thu, 20 October 2005 04:23 Go to previous messageGo to next message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
I would like try with last wtp, but I use spring-ide and hibernate plugins
and the doesn't work with last build (M8 or bigger)

syntax highlighting and content assist work fine
outline view doesn't exists - I rename same file to *.xml and outline work
fine

I will try last build - which one is more stable ?

Thanks
Amy Wu wrote:

> 1) you should check out
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=112037
> as to why there is no validation action. I think the validation should
> still be kicking in though, when you save. And it should be the same
> validation you see as you are typing (source validation).
>
> 2) This code has been cleaned up a bit since wtp 0.7.1. So this bug may
> have already been fixed. But you can report this bug and include step by
> step scenario and sample file.
>
> Was everything else working after you associated your file extension to
> the
> xml content type? Content assist, syntax highlighting?
>
> "Haris Peco" <snpe@snpe.co.yu> wrote in message
> news:dj5qe0$n41$1@news.eclipse.org...
>> Amy,
>> i do it and I have more problem now (eclipse 3.1.1, emf 2.1.1, gef
> 3.1.1,
>> vep 1.1.0.1 and wtp 0.7.1 linux-gtk)
>>
>> 1) validation doesn't work (I haven't validation menu in context menu on
>> *.jrxml)
>> 2) when i open *.jrxml i get error in error log (it work, but this error
>> get again and again when i type in editor ) :
>> error 1 : model has no JFace adapter factory
>> error 2: java.lang.NullPointerException
>> at
>>
>
org.eclipse.wst.xml.ui.internal.views.contentoutline.XMLCont entOutlineConfig
> uration.updateForShowAttributes(XMLContentOutlineConfigurati on.java:306)
>> at
>>
>
org.eclipse.wst.xml.ui.internal.views.contentoutline.XMLCont entOutlineConfig
>
uration$ToggleShowAttributeAction.update(XMLContentOutlineCo nfiguration.java
> :99)
>> at
>>
>
org.eclipse.wst.xml.ui.internal.views.contentoutline.XMLCont entOutlineConfig
>
uration$ToggleShowAttributeAction.<init>(XMLContentOutlineConfiguration.java
> :94)
>> at
>>
>
org.eclipse.wst.xml.ui.internal.views.contentoutline.XMLCont entOutlineConfig
> uration.createMenuContributions(XMLContentOutlineConfigurati on.java:115)
>> at
>>
>
org.eclipse.wst.sse.ui.internal.provisional.views.contentout line.StructuredC
>
ontentOutlineConfiguration.getMenuContributions(StructuredCo ntentOutlineConf
> iguration.java:194)
>> at
>>
>
org.eclipse.wst.sse.ui.internal.contentoutline.StructuredTex tEditorContentOu
>
tlinePage.setConfiguration(StructuredTextEditorContentOutlin ePage.java:382)
>> at
>>
>
org.eclipse.wst.sse.ui.internal.contentoutline.StructuredTex tEditorContentOu
> tlinePage.createControl(StructuredTextEditorContentOutlinePa ge.java:193)
>> at
>>
>
org.eclipse.ui.views.contentoutline.ContentOutline.doCreateP age(ContentOutli
> ne.java:133)
>> at org.eclipse.ui.part.PageBookView.createPage(PageBookView.jav a:315)
>> at org.eclipse.ui.part.PageBookView.partActivated(PageBookView. java:613)
>> at
>>
>
org.eclipse.ui.views.contentoutline.ContentOutline.partBroug htToTop(ContentO
> utline.java:206)
>> at
> org.eclipse.ui.internal.PartListenerList$2.run(PartListenerL ist.java:87)
>> at
>>
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
> :1044)
>> at org.eclipse.core.runtime.Platform.run(Platform.java:783)
>> at
>>
>
org.eclipse.ui.internal.PartListenerList.fireEvent(PartListe nerList.java:58)
>> at
>>
>
org.eclipse.ui.internal.PartListenerList.firePartBroughtToTo p(PartListenerLi
> st.java:85)
>> at
>>
>
org.eclipse.ui.internal.PartService.firePartBroughtToTop(Par tService.java:87
> )
>> at
>>
>
org.eclipse.ui.internal.WorkbenchPagePartList.firePartBrough tToTop(Workbench
> PagePartList.java:75)
>> at
>>
>
org.eclipse.ui.internal.WorkbenchPagePartList.fireActiveEdit orChanged(Workbe
> nchPagePartList.java:51)
>> at org.eclipse.ui.internal.PartList.setActiveEditor(PartList.ja va:143)
>> at
>>
>
org.eclipse.ui.internal.WorkbenchPage.makeActiveEditor(Workb enchPage.java:11
> 28)
>> at
>>
>
org.eclipse.ui.internal.WorkbenchPage.setActivePart(Workbenc hPage.java:2903)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage .java:552)
>> at
>>
>
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.ja
> va:2371)
>> at
>>
>
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2295
> )
>> at
> org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage .java:2287)
>> at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2273)
>> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2268)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2249)
>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:371)
>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:334)
>> at
>>
>
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtil
> ity.java:251)
>> at
>>
>
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtil
> ity.java:131)
>> at
>>
>
org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(Open ActionUtil.java:
> 49)
>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:16 9)
>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:15 3)
>> at
>>
>
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDisp
> atchAction.java:222)
>> at
>>
>
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchActi
> on.java:198)
>> at
>>
>
org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpe
> n(PackageExplorerActionGroup.java:296)
>> at
>>
>
org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 4.open(PackageEx
> plorerPart.java:869)
>> at
>>
>
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:741)
>> at
>>
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
> :1044)
>> at org.eclipse.core.runtime.Platform.run(Platform.java:783)
>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 8)
>> at
>>
>
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:73
> 9)
>> at
>>
>
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:
> 968)
>> at
>>
>
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.jav
> a:1067)
>> at
> org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:243)
>> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:238)
>> at
> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:277)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
>> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2867)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2572)
>> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
>> at
>>
>
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
>> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
>> at
>>
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
> java:226)
>> at
>>
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
>> at
>>
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>>
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
> )
>> at
>>
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
> .java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
>> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
>> at org.eclipse.core.launcher.Main.run(Main.java:973)
>> at org.eclipse.core.launcher.Main.main(Main.java:948)
>>
>> Thanks
>> Amy Wu wrote:
>>
>> > You need to associate your file extension to the XML Content Type.
>> > Preferences -> General -> Content Types
>> >
>> > "Haris Peco" <snpe@snpe.co.yu> wrote in message
>> > news:dj5o5n$ik3$3@news.eclipse.org...
>> >> Hi,
>> >> How i can make file association for file with non .xml suffix
>> >> (for example jasperreport *.jrxml)
>> >> I make file association in Preferences and file is opne with 'XML
> editor'
>> >> but I can't call validation, format (context menu) doesn't work
>> > (disabled),
>> >> folding doesn't work , syntax highligth etc
>> >>
>> >> What is a problem ?
>> >>
>> >> Peco
>>
Re: xmls file with non-xml extension (*.jrxml) [message #144684 is a reply to message #144559] Thu, 20 October 2005 18:29 Go to previous message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
Amy Wu wrote:

> 1) you should check out
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=112037 as to why there is no
> validation action.  I think the validation should still be kicking in
> though, when you save.  And it should be the same validation you see as
> you are typing (source validation).
>
> 2) This code has been cleaned up a bit since wtp 0.7.1.  So this bug may
> have already been fixed.  But you can report this bug and include st ep by
> step scenario and sample file.
>
> Was everything else working after you associated your file extension to
> the xml content type?  Content assist, syntax highlighting?
>

2 is resolved in last weekly build (10512005) and 1 isn't important for me

Thanks
Previous Topic:issue with XDocletBuilder
Next Topic:XML Validator hangs
Goto Forum:
  


Current Time: Sat Apr 27 01:05:57 GMT 2024

Powered by FUDForum. Page generated in 0.03405 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top