Bug 472947 - [CSS] Conflict between Papyrus CSS Editor and WST CSS Editor
Summary: [CSS] Conflict between Papyrus CSS Editor and WST CSS Editor
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Others (show other bugs)
Version: 1.1.0   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-17 08:57 EDT by Nicolas Salguero CLA
Modified: 2017-08-03 09:45 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Salguero CLA 2015-07-17 08:57:06 EDT
Hi,

In Eclipse Mars (4.5) GTK x86_64, when I install "Papyrus CSS UML Feature", all the CSS files from my projects are opened by default with the "Papyrus CSS Editor".  When I try to open them with the "CSS Editor" (from "Web Developer Tools"), I get the following pop-up:
"""
Unsupported content type in editor.
To associate file extension with a supported content type,
please see Content Types Preference Page
"""

and the file $HOME/workspace/.metadata/.log contains:
"""
!ENTRY org.eclipse.wst.sse.ui 2 2 2015-07-17 14:51:54.972
!MESSAGE StructuredTextEditor being used without StructuredDocument

!ENTRY org.eclipse.wst.sse.ui 2 2 2015-07-17 14:51:54.975
!MESSAGE          Input Name: NewFile.css

!ENTRY org.eclipse.wst.sse.ui 2 2 2015-07-17 14:51:54.975
!MESSAGE         Unexpected IDocumentProvider implementation: org.eclipse.xtext.ui.editor.model.XtextDocumentProvider

!ENTRY org.eclipse.wst.sse.ui 2 2 2015-07-17 14:51:54.975
!MESSAGE         Unexpected IDocument implementation: org.eclipse.xtext.ui.editor.model.XtextDocument
"""

Regards,

Nico.
Comment 1 hawk xu CLA 2015-10-21 21:26:20 EDT
I got same error with version 1.1.2(20150916), are you solved it?

I found no any update to solve this error, so I removed two files under plugins folder to bypass it
org.eclipse.papyrus.infra.gmfdiag.css3.xtext.ui_1.1.2.201509161440.jar
org.eclipse.papyrus.infra.gmfdiag.css3.xtext_1.1.2.201509161440.jar
Comment 2 Nicolas Salguero CLA 2015-10-22 03:25:04 EDT
(In reply to hawk xu from comment #1)
> I got same error with version 1.1.2(20150916), are you solved it?

No, I found no solution so I kept eclipse 4.4.2.

> I found no any update to solve this error, so I removed two files under
> plugins folder to bypass it
> org.eclipse.papyrus.infra.gmfdiag.css3.xtext.ui_1.1.2.201509161440.jar
> org.eclipse.papyrus.infra.gmfdiag.css3.xtext_1.1.2.201509161440.jar

Thanks, I will try your workaround.

Regards,

Nico.
Comment 3 Alessio Gaeta CLA 2016-07-13 11:54:37 EDT
Hi,

Same problem here, the proposed workaround works.

--
Eclipse Java EE IDE for Web Developers.

Version: Mars.2 Release (4.5.2)
Build id: 20160218-0600
--
Comment 4 Benoit Maggi CLA 2016-07-19 05:32:11 EDT
For information

Papyrus css editor is defined here
org.eclipse.papyrus\plugins\infra\gmfdiag\css\org.eclipse.papyrus.infra.gmfdiag.css3.xtext.ui\plugin.xml

with this configuration 
    <extension
            point="org.eclipse.ui.editors">
        <editor
              class="org.eclipse.papyrus.infra.gmfdiag.css3.ui.CSSExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor"
              contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"
              default="true"
              extensions="css"
              icon="icons/sourceEditor.gif"
              id="org.eclipse.papyrus.infra.gmfdiag.css3.CSS"
              name="Papyrus CSS Editor">
        </editor>
    </extension>

I'm not aware of the editor implementation but obviously it is expected to have no conflict with the web developer one.

Can you provide the full log file?