Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Set CSS3 in Web Content Settings(How can I set CSS3 for an entire project?)
Set CSS3 in Web Content Settings [message #989375] Wed, 05 December 2012 22:08 Go to next message
Todd Keup is currently offline Todd KeupFriend
Messages: 4
Registered: December 2012
Location: Wisconsin USA
Junior Member
I note that in order to use CSS3 context assist I have to set it per CSS document within a project. Does anybody know how to make CSS3 context assist the default in a PHP project?
Re: Set CSS3 in Web Content Settings [message #989388 is a reply to message #989375] Thu, 06 December 2012 01:27 Go to previous messageGo to next message
Toshihiro Izumi is currently offline Toshihiro IzumiFriend
Messages: 360
Registered: July 2009
Location: Japan
Senior Member
(for Eclipse 4.2.1 + PDT 3.1.1)
Install "Eclipse Web Developer Tools"(recommended) or "Eclipse Faceted Project Framework" from Juno repository.
Open project properties->Project Facets, check "Static Web Module" and click OK.
ReOpen project properties->Web Content Settings.
Re: Set CSS3 in Web Content Settings [message #989562 is a reply to message #989388] Thu, 06 December 2012 18:00 Go to previous messageGo to next message
Todd Keup is currently offline Todd KeupFriend
Messages: 4
Registered: December 2012
Location: Wisconsin USA
Junior Member
Yes, I am running the latest updated versions of Juno and PDT (and WTP). I opened the Project Facet property for my PHP Project but only 3 Project Facets are displayed:


  • %PHPFacet.core.label
  • %PHPFacet.label
  • JavaScript


There is a lock on the PHP labels so I attempted to deselect them only to get this message:

Project Facet %PHPFacet.core.label cannot be deselected. It is critical to the proper function of this project.

I noticed that if I right click on the lable I can "Unlock" it. Once I do I must also right click and unlock the %PHPFacet.label at which point I see a larger list of Project Facets including the Static Web Module you mention. If I attempt to select it I recieve an error message:
%PHPFacet.core.label 1 and Static Web Module cannot both be selected.

So I attempt to deselect it and receive the following message:

%PHPFacet.core.label 1 cannot be uninstalled.

At this time the OK button is dimmed and inactivated so I cannot change the value. Any insight?

[Updated on: Thu, 06 December 2012 18:01]

Report message to a moderator

Re: Set CSS3 in Web Content Settings [message #989625 is a reply to message #989562] Fri, 07 December 2012 03:49 Go to previous messageGo to next message
Toshihiro Izumi is currently offline Toshihiro IzumiFriend
Messages: 360
Registered: July 2009
Location: Japan
Senior Member
Hmm...it seems a bug of PDT in JaveEE env...
I have no problem with
Eclipse Platform 4.2.1
Eclipse Web Developer Tools 3.4.1
PDT 3.1.1
but problem/confliction with
+Eclipse Java EE Developer Tools 3.4.0
+Eclipse Java Web Developer Tools 3.4.1

Could you submit a bug report to bugzila?


Here is a workaround?[*]
1. Edit <your_project>/.settings/org.eclipse.wst.common.project.facet.core.xml
from
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
  <fixed facet="php.core.component"/>
  <fixed facet="php.component"/>
  <installed facet="php.core.component" version="1"/>
  <installed facet="php.component" version="5.4"/>
</faceted-project>
to
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
  <fixed facet="php.core.component"/>
  <fixed facet="php.component"/>
  <installed facet="php.core.component" version="1"/>
  <installed facet="php.component" version="5.4"/>
  <installed facet="wst.web" version="1.0"/>
</faceted-project>

2. Refresh <your_project>
3. Open project properties->Web Content Settings, and configure it.

[*]Unfortunately, this will cause some errors on the project properties page.
You'll encounter the error "The currently displayed page contains invalid values." for some situations. You must close the project properties when you met this error.
Re: Set CSS3 in Web Content Settings [message #989632 is a reply to message #989625] Fri, 07 December 2012 06:03 Go to previous messageGo to next message
Toshihiro Izumi is currently offline Toshihiro IzumiFriend
Messages: 360
Registered: July 2009
Location: Japan
Senior Member
Another workaround.

1. Extract plugin.xml from eclipse/plugins/org.eclipse.php.core_3.1.1.201209101312.jar
2. Comment out line 323-328.
result:
<!--
         <constraint>
             <and>
                <conflicts facet="jst.java" />
                <conflicts group="modules" />
             </and>
         </constraint>
-->

3. Archive it back to the jar file.
4. Start eclipse with "-clean" option.
Re: Set CSS3 in Web Content Settings [message #995229 is a reply to message #989632] Sat, 29 December 2012 13:12 Go to previous messageGo to next message
Todd Keup is currently offline Todd KeupFriend
Messages: 4
Registered: December 2012
Location: Wisconsin USA
Junior Member
Bug filed: https://bugs.eclipse.org/bugs/show_bug.cgi?id=397238
Thanks for your help, Toshihiro.
Re: Set CSS3 in Web Content Settings [message #1021665 is a reply to message #995229] Wed, 20 March 2013 13:30 Go to previous message
Todd Keup is currently offline Todd KeupFriend
Messages: 4
Registered: December 2012
Location: Wisconsin USA
Junior Member
This bug has been fixed! Thanks you, Zhongwei Zhao!

https://bugs.eclipse.org/bugs/show_bug.cgi?id=397238
Previous Topic:How to disable hover on line number?
Next Topic:Can't install pdt in Juno j2ee
Goto Forum:
  


Current Time: Fri Apr 19 22:42:44 GMT 2024

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

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

Back to the top