From jbosstools-commits at lists.jboss.org Tue Sep 1 08:03:55 2009 Content-Type: multipart/mixed; boundary="===============5893190271561679831==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17404 - trunk/bpel/docs/reference/en/images. Date: Tue, 01 Sep 2009 08:03:55 -0400 Message-ID: <200909011203.n81C3twN005695@svn01.web.mwc.hst.phx2.redhat.com> --===============5893190271561679831== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: chukhutsina Date: 2009-09-01 08:03:55 -0400 (Tue, 01 Sep 2009) New Revision: 17404 Modified: trunk/bpel/docs/reference/en/images/detail_createprocess_1.png trunk/bpel/docs/reference/en/images/detail_createprocess_2.png trunk/bpel/docs/reference/en/images/detail_createproject_1.png trunk/bpel/docs/reference/en/images/detail_createproject_2.png trunk/bpel/docs/reference/en/images/detail_createproject_3.png Log:

https://jira.jboss.org/jira/browse/JBDS-780 -Updated some screens in BP= EL User Guide according to size preferences.Some English mistakes were corr= ected.

Modified: trunk/bpel/docs/reference/en/images/detail_createprocess_1.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/images/detail_createprocess_2.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/images/detail_createproject_1.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/images/detail_createproject_2.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/images/detail_createproject_3.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============5893190271561679831==-- From jbosstools-commits at lists.jboss.org Tue Sep 1 08:09:24 2009 Content-Type: multipart/mixed; boundary="===============3070486983048925276==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17405 - trunk/bpel/docs/reference/en/images. Date: Tue, 01 Sep 2009 08:09:24 -0400 Message-ID: <200909011209.n81C9OZN006299@svn01.web.mwc.hst.phx2.redhat.com> --===============3070486983048925276== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: chukhutsina Date: 2009-09-01 08:09:24 -0400 (Tue, 01 Sep 2009) New Revision: 17405 Modified: trunk/bpel/docs/reference/en/images/detail_createprocess_3.png Log:

https://jira.jboss.org/jira/browse/JBDS-780 -Updated some screens in BP= EL User Guide according to size preferences.Some English mistakes were corr= ected.

Modified: trunk/bpel/docs/reference/en/images/detail_createprocess_3.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============3070486983048925276==-- From jbosstools-commits at lists.jboss.org Tue Sep 1 09:29:16 2009 Content-Type: multipart/mixed; boundary="===============3671670934639654532==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17406 - trunk/bpel/docs/reference/en/images. Date: Tue, 01 Sep 2009 09:29:16 -0400 Message-ID: <200909011329.n81DTGGo022423@svn01.web.mwc.hst.phx2.redhat.com> --===============3671670934639654532== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: chukhutsina Date: 2009-09-01 09:29:15 -0400 (Tue, 01 Sep 2009) New Revision: 17406 Modified: trunk/bpel/docs/reference/en/images/detail_editprocess_1.png trunk/bpel/docs/reference/en/images/detail_editprocess_2.png trunk/bpel/docs/reference/en/images/detail_editprocess_3.png trunk/bpel/docs/reference/en/images/detail_editprocess_4.png trunk/bpel/docs/reference/en/images/detail_editprocess_5.png Log:

https://jira.jboss.org/jira/browse/JBDS-780 -Updated some screens in BP= EL User Guide according to size conventions.

Modified: trunk/bpel/docs/reference/en/images/detail_editprocess_1.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/images/detail_editprocess_2.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/images/detail_editprocess_3.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/images/detail_editprocess_4.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/images/detail_editprocess_5.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============3671670934639654532==-- From jbosstools-commits at lists.jboss.org Tue Sep 1 11:06:21 2009 Content-Type: multipart/mixed; boundary="===============7998114574022389201==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17407 - trunk/bpel/docs/reference/en/images. Date: Tue, 01 Sep 2009 11:06:21 -0400 Message-ID: <200909011506.n81F6LmA007615@svn01.web.mwc.hst.phx2.redhat.com> --===============7998114574022389201== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: chukhutsina Date: 2009-09-01 11:06:21 -0400 (Tue, 01 Sep 2009) New Revision: 17407 Modified: trunk/bpel/docs/reference/en/images/deploy_createdeploy_1.png trunk/bpel/docs/reference/en/images/deploy_createdeploy_2.png trunk/bpel/docs/reference/en/images/deploy_createdeploy_3.png trunk/bpel/docs/reference/en/images/deploy_createdeploy_4.png trunk/bpel/docs/reference/en/images/deploy_createdeploy_5.png trunk/bpel/docs/reference/en/images/deploy_createdeploy_6.png trunk/bpel/docs/reference/en/images/detail_createprocess_3.png trunk/bpel/docs/reference/en/images/detail_editprocess_1.png trunk/bpel/docs/reference/en/images/detail_editprocess_2.png Log:

https://jira.jboss.org/jira/browse/JBDS-780 -Updated some screens in BP= EL User Guide according to size conventions.

Modified: trunk/bpel/docs/reference/en/images/deploy_createdeploy_1.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/images/deploy_createdeploy_2.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/images/deploy_createdeploy_3.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/images/deploy_createdeploy_4.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/images/deploy_createdeploy_5.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/images/deploy_createdeploy_6.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/images/detail_createprocess_3.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/images/detail_editprocess_1.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/images/detail_editprocess_2.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============7998114574022389201==-- From jbosstools-commits at lists.jboss.org Tue Sep 1 11:34:02 2009 Content-Type: multipart/mixed; boundary="===============2130008989524255199==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17408 - in trunk/jst: plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/view and 4 other directories. Date: Tue, 01 Sep 2009 11:34:02 -0400 Message-ID: <200909011534.n81FY2kt011222@svn01.web.mwc.hst.phx2.redhat.com> --===============2130008989524255199== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: sdzmitrovich Date: 2009-09-01 11:34:01 -0400 (Tue, 01 Sep 2009) New Revision: 17408 Added: trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConten= t/pages/JBIDE/4791/ trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConten= t/pages/JBIDE/4791/propertyViewTest.css trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css= /test/jbide/SelectionLosingByPropertySheet_JBIDE4791.java Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/pr= operties/CSSPropertyPage.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/vi= ew/CSSEditorView.java trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css= /test/AbstractCSSViewTest.java trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css= /test/CSSAllTests.java trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css= /test/CSSViewTest.java trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css= /test/jbide/InputFractionalValueTest_JBIDE4790.java Log: https://jira.jboss.org/jira/browse/JBIDE-4791 Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/properties/CSSPropertyPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/p= roperties/CSSPropertyPage.java 2009-09-01 15:06:21 UTC (rev 17407) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/p= roperties/CSSPropertyPage.java 2009-09-01 15:34:01 UTC (rev 17408) @@ -20,6 +20,8 @@ import org.eclipse.core.databinding.observable.IChangeListener; import org.eclipse.core.databinding.observable.IObservable; import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.ISelectionChangedListener; +import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.viewers.SelectionChangedEvent; import org.eclipse.jface.viewers.StructuredSelection; @@ -67,6 +69,26 @@ super.init(pageSite); pageSite.getWorkbenchWindow().getSelectionService() .addPostSelectionListener(this); + + // FIXED FOR JBIDE-4791 + pageSite.setSelectionProvider(new ISelectionProvider() { + + public void setSelection(ISelection selection) { + } + + public void removeSelectionChangedListener( + ISelectionChangedListener listener) { + } + + public ISelection getSelection() { + return selectedObject !=3D null ? new StructuredSelection( + selectedObject) : StructuredSelection.EMPTY; + } + + public void addSelectionChangedListener( + ISelectionChangedListener listener) { + } + }); } = @Override Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/view/CSSEditorView.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/v= iew/CSSEditorView.java 2009-09-01 15:06:21 UTC (rev 17407) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/v= iew/CSSEditorView.java 2009-09-01 15:34:01 UTC (rev 17408) @@ -13,6 +13,7 @@ = import org.eclipse.jface.viewers.SelectionChangedEvent; import org.eclipse.ui.IWorkbenchPart; +import org.eclipse.ui.part.IContributedContentsView; import org.eclipse.ui.part.IPageBookViewPage; import org.eclipse.ui.views.properties.IPropertySheetPage; import org.eclipse.ui.views.properties.PropertySheet; @@ -57,4 +58,16 @@ public void postSelectionChanged(SelectionChangedEvent event){ getSelectionProvider().postSelectionChanged(event); } + + @Override + public Object getAdapter(Class key) { + if (key =3D=3D IContributedContentsView.class) { + return new IContributedContentsView() { + public IWorkbenchPart getContributingPart() { + return getCurrentContributingPart(); + } + }; + } + return super.getAdapter(key); + } } Added: trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebCo= ntent/pages/JBIDE/4791/propertyViewTest.css =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConte= nt/pages/JBIDE/4791/propertyViewTest.css (rev 0) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConte= nt/pages/JBIDE/4791/propertyViewTest.css 2009-09-01 15:34:01 UTC (rev 17408) @@ -0,0 +1,4 @@ +/* test */ +.test { + color: red; +} \ No newline at end of file Property changes on: trunk/jst/tests/org.jboss.tools.jst.css.test/resources= /cssTest/WebContent/pages/JBIDE/4791/propertyViewTest.css ___________________________________________________________________ Name: svn:mime-type + text/css Name: svn:eol-style + native Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/= jst/css/test/AbstractCSSViewTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/AbstractCSSViewTest.java 2009-09-01 15:06:21 UTC (rev 17407) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/AbstractCSSViewTest.java 2009-09-01 15:34:01 UTC (rev 17408) @@ -31,6 +31,9 @@ /** * @author Sergey Dzmitrovich * = + * abstract base class for css test's classes. Override getProject= Name() + * method if other imported project is used. + * = */ public abstract class AbstractCSSViewTest extends TestCase { = @@ -39,6 +42,8 @@ public static final String CSS_PREVIEW_VIEW =3D "org.jboss.tools.jst.css.= view.preview"; //$NON-NLS-1$ public static final String CSS_EDITOR_ID =3D "org.eclipse.wst.css.core.cs= ssource.source"; //$NON-NLS-1$ public static final String CSS_PERSPECTIVE =3D "org.jboss.tools.jst.cssPe= rspective"; //$NON-NLS-1$ + public static final String IMPORT_PROJECT_NAME =3D "cssTest"; //$NON-NLS-= 1$ + /** * = * @param componentPage @@ -170,6 +175,8 @@ * = * @return */ - public abstract String getProjectName(); + public String getProjectName() { + return IMPORT_PROJECT_NAME; + } = } Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/= jst/css/test/CSSAllTests.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/CSSAllTests.java 2009-09-01 15:06:21 UTC (rev 17407) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/CSSAllTests.java 2009-09-01 15:34:01 UTC (rev 17408) @@ -15,11 +15,14 @@ import junit.framework.TestSuite; = import org.jboss.tools.jst.css.test.jbide.InputFractionalValueTest_JBIDE47= 90; +import org.jboss.tools.jst.css.test.jbide.SelectionLosingByPropertySheet_J= BIDE4791; import org.jboss.tools.test.util.ProjectImportTestSetup; = /** * @author Sergey Dzmitrovich * = + * To import other projects add names of imported projects to arra= y the + * same way as AbstractCSSViewTest.IMPORT_PROJECT_NAME */ public class CSSAllTests { = @@ -29,14 +32,15 @@ = TestSuite suite =3D new TestSuite("Tests for CSS views"); //$NON-NLS-1$ // $JUnit-BEGIN$ - suite.addTestSuite(CSSViewTest.class); - suite.addTestSuite(InputFractionalValueTest_JBIDE4790.class); +// suite.addTestSuite(CSSViewTest.class); +// suite.addTestSuite(InputFractionalValueTest_JBIDE4790.class); + suite.addTestSuite(SelectionLosingByPropertySheet_JBIDE4791.class); // $JUnit-END$ = return new ProjectImportTestSetup( suite, CSSTestPlugin.PLUGIN_ID, new String[] { RESOURCE_PATH + CSSViewTest.IMPORT_PROJECT_NAME }, - new String[] { CSSViewTest.IMPORT_PROJECT_NAME }); + new String[] { AbstractCSSViewTest.IMPORT_PROJECT_NAME }); } } Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/= jst/css/test/CSSViewTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/CSSViewTest.java 2009-09-01 15:06:21 UTC (rev 17407) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/CSSViewTest.java 2009-09-01 15:34:01 UTC (rev 17408) @@ -43,16 +43,11 @@ */ public class CSSViewTest extends AbstractCSSViewTest { = - public static final String IMPORT_PROJECT_NAME =3D "cssTest"; //$NON-NLS-= 1$ = public static final String TEST_PAGE_NAME =3D "test.css"; //$NON-NLS-1$ = public static final int COUNT_TABS =3D 5; = - @Override - public String getProjectName() { - return IMPORT_PROJECT_NAME; - } = /** * = Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/= jst/css/test/jbide/InputFractionalValueTest_JBIDE4790.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/InputFractionalValueTest_JBIDE4790.java 2009-09-01 15:06:21 UT= C (rev 17407) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/InputFractionalValueTest_JBIDE4790.java 2009-09-01 15:34:01 UT= C (rev 17408) @@ -32,8 +32,6 @@ */ public class InputFractionalValueTest_JBIDE4790 extends AbstractCSSViewTes= t { = - public static final String IMPORT_PROJECT_NAME =3D "cssTest"; //$NON-NLS-= 1$ - public static final String TEST_PAGE_NAME =3D "JBIDE/4790/inputFractional= .css"; //$NON-NLS-1$ = public static final String TEST_CSS_ATTRIBUTE_NAME =3D "font-size"; //$NO= N-NLS-1$ @@ -128,14 +126,4 @@ return text.replaceAll(" ", ""); //$NON-NLS-1$ //$NON-NLS-2$ } = - /* - * (non-Javadoc) - * = - * @see org.jboss.tools.jst.css.test.AbstractCSSViewTest#getProjectName() - */ - @Override - public String getProjectName() { - return IMPORT_PROJECT_NAME; - } - } Added: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst= /css/test/jbide/SelectionLosingByPropertySheet_JBIDE4791.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/SelectionLosingByPropertySheet_JBIDE4791.java = (rev 0) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/SelectionLosingByPropertySheet_JBIDE4791.java 2009-09-01 15:34= :01 UTC (rev 17408) @@ -0,0 +1,98 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jst.css.test.jbide; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.ui.views.properties.PropertySheet; +import org.eclipse.wst.css.core.internal.document.CSSStructuredDocumentReg= ionContainer; +import org.eclipse.wst.css.core.internal.provisional.document.ICSSModel; +import org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleShe= et; +import org.eclipse.wst.sse.ui.StructuredTextEditor; +import org.jboss.tools.jst.css.test.AbstractCSSViewTest; +import org.jboss.tools.jst.css.view.CSSEditorView; +import org.jboss.tools.test.util.JobUtils; +import org.w3c.dom.css.CSSRule; + +/** + * @author Sergey Dzmitrovich + * = + * https://jira.jboss.org/jira/browse/JBIDE-4791 + * = + */ +public class SelectionLosingByPropertySheet_JBIDE4791 extends + AbstractCSSViewTest { + + public static final String TEST_PAGE_NAME =3D "JBIDE/4791/propertyViewTes= t.css"; //$NON-NLS-1$ + + public static final String PROPERTY_SHEET_VIEW_ID =3D "org.eclipse.ui.vie= ws.PropertySheet"; //$NON-NLS-1$ + + public static final String SELECTION_FIELD_NAME =3D "currentSelection"; /= /$NON-NLS-1$ + + public void testSelectionLosingByPropertySheet() throws CoreException, + SecurityException, IllegalArgumentException, NoSuchFieldException, + IllegalAccessException { + + IFile pageFile =3D getComponentPath(TEST_PAGE_NAME, getProjectName()); + + assertNotNull(pageFile); + + PropertySheet propertySheet =3D (PropertySheet) openView(PROPERTY_SHEET_= VIEW_ID); + + assertNotNull(propertySheet); + + StructuredTextEditor editor =3D (StructuredTextEditor) openEditor( + pageFile, CSS_EDITOR_ID); + + assertNotNull(editor); + + ICSSModel model =3D (ICSSModel) getStructuredModel(pageFile); + + assertNotNull(model); + + ICSSStyleSheet document =3D (ICSSStyleSheet) model.getDocument(); + + assertNotNull(document); + + CSSRule cssRule =3D document.getCssRules().item(0); + + assertNotNull(cssRule); + + int offset =3D ((CSSStructuredDocumentRegionContainer) cssRule) + .getStartOffset(); + + setSelection(editor, offset, 0); + + ISelection selection =3D (ISelection) getFieldValue(propertySheet, + SELECTION_FIELD_NAME); + + assertTrue(selection instanceof IStructuredSelection); + + assertEquals(cssRule, ((IStructuredSelection) selection) + .getFirstElement()); + + CSSEditorView view =3D (CSSEditorView) openView(CSS_EDITOR_VIEW); + = + JobUtils.delay(2000); + + selection =3D (ISelection) getFieldValue(propertySheet, + SELECTION_FIELD_NAME); + + assertTrue(selection instanceof IStructuredSelection); + + assertEquals(cssRule, ((IStructuredSelection) selection) + .getFirstElement()); + + } + +} Property changes on: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/j= boss/tools/jst/css/test/jbide/SelectionLosingByPropertySheet_JBIDE4791.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + native --===============2130008989524255199==-- From jbosstools-commits at lists.jboss.org Tue Sep 1 19:32:35 2009 Content-Type: multipart/mixed; boundary="===============3318379978615441491==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17409 - trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs. Date: Tue, 01 Sep 2009 19:32:35 -0400 Message-ID: <200909012332.n81NWZAq013015@svn01.web.mwc.hst.phx2.redhat.com> --===============3318379978615441491== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-01 19:32:35 -0400 (Tue, 01 Sep 2009) New Revision: 17409 Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclip= se/as/ui/dialogs/ChangePortDialog.java Log: clean up the code from snippets like new Integer(value).toString() Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/id= e/eclipse/as/ui/dialogs/ChangePortDialog.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/ecli= pse/as/ui/dialogs/ChangePortDialog.java 2009-09-01 15:34:01 UTC (rev 17408) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/ecli= pse/as/ui/dialogs/ChangePortDialog.java 2009-09-01 23:32:35 UTC (rev 17409) @@ -205,15 +205,16 @@ = private String countMatches(XPathQuery query) { if( query =3D=3D null ) - return new Integer(-1).toString(); + return String.valueOf(-1); = int count =3D 0; XPathFileResult[] fResults =3D query.getResults(); for( int i =3D 0; i < fResults.length; i++ ) { count +=3D fResults[i].getChildren().length; } - return new Integer(count).toString(); + return String.valueOf(count); } + = private String safeString(String s) { return s =3D=3D null ? "" : s; //$NON-NLS-1$ } --===============3318379978615441491==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 02:05:51 2009 Content-Type: multipart/mixed; boundary="===============1543509135589959933==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17410 - trunk/bpel/docs/reference/en/images. Date: Wed, 02 Sep 2009 02:05:51 -0400 Message-ID: <200909020605.n8265pLm025939@svn01.web.mwc.hst.phx2.redhat.com> --===============1543509135589959933== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: Grid.Qian Date: 2009-09-02 02:05:51 -0400 (Wed, 02 Sep 2009) New Revision: 17410 Modified: trunk/bpel/docs/reference/en/images/deploy_createdeploy_7.png trunk/bpel/docs/reference/en/images/detail_editprocess_2.png Log: change some pics size Modified: trunk/bpel/docs/reference/en/images/deploy_createdeploy_7.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/images/detail_editprocess_2.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============1543509135589959933==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 04:42:39 2009 Content-Type: multipart/mixed; boundary="===============6710362948086878646==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17411 - trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts. Date: Wed, 02 Sep 2009 04:42:39 -0400 Message-ID: <200909020842.n828gdww023111@svn01.web.mwc.hst.phx2.redhat.com> --===============6710362948086878646== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: Grid.Qian Date: 2009-09-02 04:42:39 -0400 (Wed, 02 Sep 2009) New Revision: 17411 Modified: trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts= /BPELTrayCategoryEditPart.java trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts= /BPELTrayCategoryEntryEditPart.java Log: JBIDE-4633: forget to create a patch, so rollback and create a patch. Modified: trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/ed= itparts/BPELTrayCategoryEditPart.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editpart= s/BPELTrayCategoryEditPart.java 2009-09-02 06:05:51 UTC (rev 17410) +++ trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editpart= s/BPELTrayCategoryEditPart.java 2009-09-02 08:42:39 UTC (rev 17411) @@ -1,32 +1,18 @@ package org.eclipse.bpel.ui.editparts; = import org.eclipse.bpel.common.ui.tray.TrayCategoryEditPart; +import org.eclipse.bpel.model.Scope; import org.eclipse.bpel.ui.BPELEditor; import org.eclipse.bpel.ui.editparts.policies.TrayContainerEditPolicy; import org.eclipse.bpel.ui.util.ModelHelper; import org.eclipse.emf.ecore.EObject; import org.eclipse.gef.AccessibleEditPart; import org.eclipse.gef.EditPart; -import org.eclipse.gef.EditPartViewer; import org.eclipse.gef.EditPolicy; -import org.eclipse.gef.RootEditPart; import org.eclipse.jface.viewers.StructuredSelection; = public abstract class BPELTrayCategoryEditPart extends TrayCategoryEditPar= t{ = - // added by Grid.Qian - // use the variable to hold the root of the editpart - // because when we delete a correlationSets from scope - // the editpart parent will be null - private RootEditPart holdRoot; - = - // added by Grid.Qian - // use the variable to hold the parent's of the model - // that will be a scope or a process - // because when we delete a correlationSets from scope - // the eContainer will be null - private EObject eObj; - = @Override protected void createEditPolicies() { super.createEditPolicies(); @@ -54,54 +40,13 @@ selectEditPart(getModelChildren().get(0)); } else { // if we are executing this method we are dealing with scoped variables - = - // delete the line by Grid.Qian because the econtainer maybe null - // when the model is deleted from the scope - // Scope scope =3D (Scope)((EObject)getModel()).eContainer(); - BPELEditor editor =3D ModelHelper.getBPELEditor(eObj); - EditPart editPart =3D (EditPart)editor.getGraphicalViewer().getEditPart= Registry().get(eObj); + Scope scope =3D (Scope)((EObject)getModel()).eContainer(); + BPELEditor editor =3D ModelHelper.getBPELEditor(scope); + EditPart editPart =3D (EditPart)editor.getGraphicalViewer().getEditPart= Registry().get(scope); if (editPart !=3D null) { getViewer().setSelection(new StructuredSelection(editPart)); } } } - = - /** - * Overwrite the method by Grid.Qian to get the viewer = - * when the editpart's parent =3D=3D null - */ - public EditPartViewer getViewer() { - try { - return super.getViewer(); - } catch (Exception e) { - return holdRoot.getViewer(); - } = - } - - /** - * Overwrite the method by Grid.Qian - * Hold the editpart's root editpart - */ - public void setParent(EditPart parent) { - if (this.getParent() =3D=3D parent) - return; - if (parent !=3D null) { - holdRoot =3D parent.getRoot(); - } - super.setParent(parent); - } - = - - /** - * Overwrite the method by Grid.Qian - * Hold the scope or process that the model belong to - */ - public void setModel(Object model) { - if (getModel() =3D=3D model) - return; - eObj =3D ((EObject) model).eContainer(); - super.setModel(model); - } - } Modified: trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/ed= itparts/BPELTrayCategoryEntryEditPart.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editpart= s/BPELTrayCategoryEntryEditPart.java 2009-09-02 06:05:51 UTC (rev 17410) +++ trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editpart= s/BPELTrayCategoryEntryEditPart.java 2009-09-02 08:42:39 UTC (rev 17411) @@ -23,9 +23,7 @@ import org.eclipse.emf.ecore.EObject; import org.eclipse.gef.AccessibleEditPart; import org.eclipse.gef.EditPart; -import org.eclipse.gef.EditPartViewer; import org.eclipse.gef.EditPolicy; -import org.eclipse.gef.RootEditPart; = /** * Tray category edit part. @@ -40,12 +38,6 @@ = protected MouseMotionListener mouseMotionListener; = - // added by Grid.Qian - // use the variable to hold the root of the editpart - // because when we delete a correlationSet from scope - // the editpart parent will be null - private RootEditPart holdRoot; - @Override protected AccessibleEditPart createAccessible() { return new BPELTrayAccessibleEditPart(this); @@ -142,11 +134,7 @@ @Override public void removeNotify() { // we only do the following hack if we are dealing with scoped variables - = - // when we delete a variable from scope, the variables parent will - // be null, so we need to filter this - EObject eObj =3D ((EObject) getParent().getModel()).eContainer(); - if (eObj !=3D null && !(eObj instanceof Scope)) { + if (!(((EObject)getParent().getModel()).eContainer() instanceof Scope)) { super.removeNotify(); return; } @@ -164,30 +152,4 @@ children.get(i).removeNotify(); unregister(); } - - /** - * Overwrite the method by Grid.Qian to get the viewer = - * when the editpart's parent =3D=3D null - */ - public EditPartViewer getViewer() { - try { - return super.getViewer(); - } catch (Exception e) { - return holdRoot.getViewer(); - } - - } - - /** - * Overwrite the method by Grid.Qian - * Hold the editpart's root editpart - */ - public void setParent(EditPart parent) { - if (this.getParent() =3D=3D parent) - return; - if (parent !=3D null) { - holdRoot =3D parent.getRoot(); - } - super.setParent(parent); - } } --===============6710362948086878646==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 04:45:14 2009 Content-Type: multipart/mixed; boundary="===============7893474742773832097==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17412 - trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts. Date: Wed, 02 Sep 2009 04:45:14 -0400 Message-ID: <200909020845.n828jEIn023598@svn01.web.mwc.hst.phx2.redhat.com> --===============7893474742773832097== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: Grid.Qian Date: 2009-09-02 04:45:13 -0400 (Wed, 02 Sep 2009) New Revision: 17412 Modified: trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts= /BPELTrayCategoryEditPart.java trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts= /BPELTrayCategoryEntryEditPart.java Log: JBIDE-4633: commit the changes Modified: trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/ed= itparts/BPELTrayCategoryEditPart.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editpart= s/BPELTrayCategoryEditPart.java 2009-09-02 08:42:39 UTC (rev 17411) +++ trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editpart= s/BPELTrayCategoryEditPart.java 2009-09-02 08:45:13 UTC (rev 17412) @@ -1,18 +1,32 @@ package org.eclipse.bpel.ui.editparts; = import org.eclipse.bpel.common.ui.tray.TrayCategoryEditPart; -import org.eclipse.bpel.model.Scope; import org.eclipse.bpel.ui.BPELEditor; import org.eclipse.bpel.ui.editparts.policies.TrayContainerEditPolicy; import org.eclipse.bpel.ui.util.ModelHelper; import org.eclipse.emf.ecore.EObject; import org.eclipse.gef.AccessibleEditPart; import org.eclipse.gef.EditPart; +import org.eclipse.gef.EditPartViewer; import org.eclipse.gef.EditPolicy; +import org.eclipse.gef.RootEditPart; import org.eclipse.jface.viewers.StructuredSelection; = public abstract class BPELTrayCategoryEditPart extends TrayCategoryEditPar= t{ = + // added by Grid.Qian + // use the variable to hold the root of the editpart + // because when we delete a correlationSets from scope + // the editpart parent will be null + private RootEditPart holdRoot; + = + // added by Grid.Qian + // use the variable to hold the parent's of the model + // that will be a scope or a process + // because when we delete a correlationSets from scope + // the eContainer will be null + private EObject eObj; + = @Override protected void createEditPolicies() { super.createEditPolicies(); @@ -40,13 +54,54 @@ selectEditPart(getModelChildren().get(0)); } else { // if we are executing this method we are dealing with scoped variables - Scope scope =3D (Scope)((EObject)getModel()).eContainer(); - BPELEditor editor =3D ModelHelper.getBPELEditor(scope); - EditPart editPart =3D (EditPart)editor.getGraphicalViewer().getEditPart= Registry().get(scope); + = + // delete the line by Grid.Qian because the econtainer maybe null + // when the model is deleted from the scope + // Scope scope =3D (Scope)((EObject)getModel()).eContainer(); + BPELEditor editor =3D ModelHelper.getBPELEditor(eObj); + EditPart editPart =3D (EditPart)editor.getGraphicalViewer().getEditPart= Registry().get(eObj); if (editPart !=3D null) { getViewer().setSelection(new StructuredSelection(editPart)); } } } + = + /** + * Overwrite the method by Grid.Qian to get the viewer = + * when the editpart's parent =3D=3D null + */ + public EditPartViewer getViewer() { + try { + return super.getViewer(); + } catch (Exception e) { + return holdRoot.getViewer(); + } = + } + + /** + * Overwrite the method by Grid.Qian + * Hold the editpart's root editpart + */ + public void setParent(EditPart parent) { + if (this.getParent() =3D=3D parent) + return; + if (parent !=3D null) { + holdRoot =3D parent.getRoot(); + } + super.setParent(parent); + } + = + + /** + * Overwrite the method by Grid.Qian + * Hold the scope or process that the model belong to + */ + public void setModel(Object model) { + if (getModel() =3D=3D model) + return; + eObj =3D ((EObject) model).eContainer(); + super.setModel(model); + } + } Modified: trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/ed= itparts/BPELTrayCategoryEntryEditPart.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editpart= s/BPELTrayCategoryEntryEditPart.java 2009-09-02 08:42:39 UTC (rev 17411) +++ trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editpart= s/BPELTrayCategoryEntryEditPart.java 2009-09-02 08:45:13 UTC (rev 17412) @@ -23,7 +23,9 @@ import org.eclipse.emf.ecore.EObject; import org.eclipse.gef.AccessibleEditPart; import org.eclipse.gef.EditPart; +import org.eclipse.gef.EditPartViewer; import org.eclipse.gef.EditPolicy; +import org.eclipse.gef.RootEditPart; = /** * Tray category edit part. @@ -38,6 +40,12 @@ = protected MouseMotionListener mouseMotionListener; = + // added by Grid.Qian + // use the variable to hold the root of the editpart + // because when we delete a correlationSet from scope + // the editpart parent will be null + private RootEditPart holdRoot; + @Override protected AccessibleEditPart createAccessible() { return new BPELTrayAccessibleEditPart(this); @@ -134,7 +142,11 @@ @Override public void removeNotify() { // we only do the following hack if we are dealing with scoped variables - if (!(((EObject)getParent().getModel()).eContainer() instanceof Scope)) { + = + // when we delete a variable from scope, the variables parent will + // be null, so we need to filter this + EObject eObj =3D ((EObject) getParent().getModel()).eContainer(); + if (eObj !=3D null && !(eObj instanceof Scope)) { super.removeNotify(); return; } @@ -152,4 +164,30 @@ children.get(i).removeNotify(); unregister(); } + + /** + * Overwrite the method by Grid.Qian to get the viewer = + * when the editpart's parent =3D=3D null + */ + public EditPartViewer getViewer() { + try { + return super.getViewer(); + } catch (Exception e) { + return holdRoot.getViewer(); + } + + } + + /** + * Overwrite the method by Grid.Qian + * Hold the editpart's root editpart + */ + public void setParent(EditPart parent) { + if (this.getParent() =3D=3D parent) + return; + if (parent !=3D null) { + holdRoot =3D parent.getRoot(); + } + super.setParent(parent); + } } --===============7893474742773832097==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 06:29:07 2009 Content-Type: multipart/mixed; boundary="===============8352379488576075148==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17413 - in trunk/jsf/docs/userguide/en/images: web_projects and 1 other directory. Date: Wed, 02 Sep 2009 06:29:07 -0400 Message-ID: <200909021029.n82AT7ZF010660@svn01.web.mwc.hst.phx2.redhat.com> --===============8352379488576075148== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: chukhutsina Date: 2009-09-02 06:29:06 -0400 (Wed, 02 Sep 2009) New Revision: 17413 Modified: trunk/jsf/docs/userguide/en/images/editors_features/editors_features_10.= png trunk/jsf/docs/userguide/en/images/editors_features/editors_features_22.= png trunk/jsf/docs/userguide/en/images/editors_features/editors_features_23.= png trunk/jsf/docs/userguide/en/images/editors_features/editors_features_25.= png trunk/jsf/docs/userguide/en/images/editors_features/editors_features_26.= png trunk/jsf/docs/userguide/en/images/web_projects/web_projects_13.png Log:

https://jira.jboss.org/jira/browse/JBDS-720 -Screens of VPE were updated= .

Modified: trunk/jsf/docs/userguide/en/images/editors_features/editors_featu= res_10.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/jsf/docs/userguide/en/images/editors_features/editors_featu= res_22.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/jsf/docs/userguide/en/images/editors_features/editors_featu= res_23.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/jsf/docs/userguide/en/images/editors_features/editors_featu= res_25.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/jsf/docs/userguide/en/images/editors_features/editors_featu= res_26.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/jsf/docs/userguide/en/images/web_projects/web_projects_13.p= ng =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============8352379488576075148==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 06:53:02 2009 Content-Type: multipart/mixed; boundary="===============8114310071963490069==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17414 - trunk/jsf/docs/userguide/en/images/editors_features. Date: Wed, 02 Sep 2009 06:53:02 -0400 Message-ID: <200909021053.n82Ar2OT014602@svn01.web.mwc.hst.phx2.redhat.com> --===============8114310071963490069== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: chukhutsina Date: 2009-09-02 06:53:02 -0400 (Wed, 02 Sep 2009) New Revision: 17414 Modified: trunk/jsf/docs/userguide/en/images/editors_features/editors_features_21.= png trunk/jsf/docs/userguide/en/images/editors_features/editors_features_31.= png Log:

https://jira.jboss.org/jira/browse/JBDS-720 -Screens of VPE were updated= .

Modified: trunk/jsf/docs/userguide/en/images/editors_features/editors_featu= res_21.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/jsf/docs/userguide/en/images/editors_features/editors_featu= res_31.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============8114310071963490069==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 09:18:02 2009 Content-Type: multipart/mixed; boundary="===============3131360872660321654==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17415 - trunk/documentation/guides/GettingStartedGuide/en/modules. Date: Wed, 02 Sep 2009 09:18:02 -0400 Message-ID: <200909021318.n82DI2ll011092@svn01.web.mwc.hst.phx2.redhat.com> --===============3131360872660321654== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: chukhutsina Date: 2009-09-02 09:18:02 -0400 (Wed, 02 Sep 2009) New Revision: 17415 Modified: trunk/documentation/guides/GettingStartedGuide/en/modules/first_seam.xml Log:

https://jira.jboss.org/jira/browse/JBDS-839 -Added Seam refactoring tool= s info to GSG.

Modified: trunk/documentation/guides/GettingStartedGuide/en/modules/first_s= eam.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/documentation/guides/GettingStartedGuide/en/modules/first_seam.xm= l 2009-09-02 10:53:02 UTC (rev 17414) +++ trunk/documentation/guides/GettingStartedGuide/en/modules/first_seam.xm= l 2009-09-02 13:18:02 UTC (rev 17415) @@ -768,7 +768,10 @@ There are also org.domain.workshop.entity package that contains the JPA classes. These are the e= ntity beans that are - mapped to database tables. + mapped to database tables.Note,that you can use Seam refactoring t= ools with Seam components. + Read more about it in Seam refactoring tools chapter of Seam Dev Tools Refere= nce Guide. = Last, but not least, there are facelets for all of the CRUD sc= reens. The best way to get a feel for the generated code is to open a browser and play around= with the application. Go --===============3131360872660321654==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 10:38:25 2009 Content-Type: multipart/mixed; boundary="===============9032696997181883397==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17417 - in trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test: utils and 1 other directory. Date: Wed, 02 Sep 2009 10:38:25 -0400 Message-ID: <200909021438.n82EcPHS026411@svn01.web.mwc.hst.phx2.redhat.com> --===============9032696997181883397== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vyemialyanchyk Date: 2009-09-02 10:38:25 -0400 (Wed, 02 Sep 2009) New Revision: 17417 Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hi= bernate/eclipse/console/test/mappingproject/MappingTestsBase.java trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hi= bernate/eclipse/console/test/mappingproject/OpenMappingDiagramTest.java trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hi= bernate/eclipse/console/test/mappingproject/OpenMappingFileTest.java trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hi= bernate/eclipse/console/test/mappingproject/OpenSourceFileTest.java trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hi= bernate/eclipse/console/test/utils/ConsoleConfigUtils.java Log: https://jira.jboss.org/jira/browse/JBIDE-4740 - fix "memory leak" Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src= /org/hibernate/eclipse/console/test/mappingproject/MappingTestsBase.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/h= ibernate/eclipse/console/test/mappingproject/MappingTestsBase.java 2009-09-= 02 14:16:22 UTC (rev 17416) +++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/h= ibernate/eclipse/console/test/mappingproject/MappingTestsBase.java 2009-09-= 02 14:38:25 UTC (rev 17417) @@ -11,8 +11,6 @@ package org.hibernate.eclipse.console.test.mappingproject; = import java.io.IOException; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; import java.util.regex.Pattern; = import org.eclipse.core.runtime.CoreException; @@ -22,9 +20,10 @@ import org.eclipse.jdt.internal.core.PackageFragmentRoot; import org.eclipse.jdt.ui.IPackagesViewPart; import org.eclipse.jdt.ui.JavaUI; -import org.eclipse.jface.util.SafeRunnable; import org.eclipse.osgi.util.NLS; import org.eclipse.swt.widgets.Display; +import org.eclipse.ui.IWorkbenchPage; +import org.eclipse.ui.IWorkbenchWindow; import org.eclipse.ui.PartInitException; import org.eclipse.ui.PlatformUI; import org.hibernate.eclipse.console.HibernateConsolePerspectiveFactory; @@ -55,6 +54,8 @@ = protected int executions =3D 0; = + protected int openEditors =3D 0; + public MappingTestsBase(String name) { super(name); } @@ -62,9 +63,8 @@ protected void setUp() throws Exception { super.setUp(); = - testProject =3D new ConfigurableTestProject("JUnitTestProj"+System.curre= ntTimeMillis()); //$NON-NLS-1$ + testProject =3D new ConfigurableTestProject("JUnitTestProj" + System.cur= rentTimeMillis()); //$NON-NLS-1$ = - consoleConfigName =3D testProject.getIProject().getName(); testPackage =3D null; = = @@ -145,43 +145,22 @@ long st_pack_time =3D System.currentTimeMillis(); int prev_failCount =3D result.failureCount(); int prev_errCount =3D result.errorCount(); - - Method m =3D null; - try { - m =3D Display.getCurrent().getClass().getDeclaredMethod("runAsyncMess= ages", boolean.class); - m.setAccessible(true); - } catch (SecurityException e) { - } catch (NoSuchMethodException e) { - } - = + // TestSuite suite =3D TestSet.createTestSuite(consoleConfigName, testPac= kage, testProject); - + // customizeCfgXml(testPackage); //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D //run all tests for package - //suite.run(result); + /** / + suite.run(result); + /**/ for (int k =3D 0; k < suite.testCount(); k++) { Test test =3D suite.testAt(k); test.run(result); - // ---------------------------------------------- = - // https://jira.jboss.org/jira/browse/JBIDE-4740 = - // first way to fix OutOfMemory problems closeAllEditors(); - int LIMIT =3D 50, - ii =3D 0; - while(ii --===============6212412788614348482== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: smukhina Date: 2009-09-02 10:44:28 -0400 (Wed, 02 Sep 2009) New Revision: 17418 Modified: trunk/documentation/guides/GettingStartedGuide/en/modules/rad_jsf_applic= ation.xml Log: JBDS-799 Search in property file using regular expressions is implemented -= chapter is updated = Modified: trunk/documentation/guides/GettingStartedGuide/en/modules/rad_jsf= _application.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/documentation/guides/GettingStartedGuide/en/modules/rad_jsf_appli= cation.xml 2009-09-02 14:38:25 UTC (rev 17417) +++ trunk/documentation/guides/GettingStartedGuide/en/modules/rad_jsf_appli= cation.xml 2009-09-02 14:44:28 UTC (rev 17418) @@ -304,9 +304,10 @@ If you want to change a value or a name of your attribute, c= lick on it and than on Edit button. = - If the .properties file is rather big and there are a lot of= entries in it, you can use filtering to find the necessary ones. The Filte= r is implemented by an expandable panel, closed by default: + If the .properties file is rather big and there are a lot of= entries in it, you can use filtering and regular expressions to find the n= ecessary ones. The Filter and Regular Expressions Search is implemented by = an expandable panel, closed by default: + When "Expression" is not selected (as by default), filter is= case insensitive. When "Expression" is selected, filter uses regular expre= ssions which are case sensitive
- Filter panel + Filter and Regular Expressions Search Panel @@ -314,7 +315,7 @@
Enter the characters that should be searched for in the ent= ries to the 'name' or 'value' input fields accordingly. The filtered resul= ts will be displayed in the table below: - = + =
Filter results @@ -324,7 +325,9 @@
= - = + When using regular expressions please note, that regular exp= ression syntax does not use "*" for any characters and "?" for any one char= acter. It's necessary to use "." for any one character and ".*" for any cha= racters. Symbols "*" and "?" are used to show that the preceding token is n= ot required, for example, "a.a" matches "aba" but not "aa", while "a.?a" or= a.*a" matches both; besides "a.*a" matches "abcda". + To find the exact match, use sequences \A and \z in expressi= on. For example, expression "\Adate\z" matches only string "date"; expressi= on "\Adate" matches "date" and "dateline", expression "date\z" matches "dat= e" and "Begin date", and expression "date" matches all of them. + = =
--===============6212412788614348482==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 13:02:55 2009 Content-Type: multipart/mixed; boundary="===============2957880313393608405==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17419 - trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator. Date: Wed, 02 Sep 2009 13:02:54 -0400 Message-ID: <200909021702.n82H2sv9022082@svn01.web.mwc.hst.phx2.redhat.com> --===============2957880313393608405== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-02 13:02:54 -0400 (Wed, 02 Sep 2009) New Revision: 17419 Modified: trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/valid= ator/ValidatorHelper.java Log: fix for = NullPointerException in BPEL ValidationHelper Modified: trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpe= l/validator/ValidatorHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/vali= dator/ValidatorHelper.java 2009-09-02 14:44:28 UTC (rev 17418) +++ trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/vali= dator/ValidatorHelper.java 2009-09-02 17:02:54 UTC (rev 17419) @@ -10,10 +10,15 @@ *************************************************************************= ******/ package org.eclipse.bpel.validator; = +import java.util.ArrayList; +import java.util.List; + import org.eclipse.core.resources.IMarker; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.Status; import org.eclipse.wst.validation.internal.operations.WorkbenchContext; import org.eclipse.wst.validation.internal.operations.WorkbenchReporter; = @@ -26,7 +31,14 @@ = @Override public void registerResource(IResource resource) { - getValidationFileURIs().add(resource.getFullPath().toOSString()); = + if(resource!=3Dnull) { + if(getValidationFileURIs()=3D=3Dnull) { + setValidationFileURIs(new ArrayList()); + } + getValidationFileURIs().add(resource.getFullPath().toOSString()); + } else { + Activator.getDefault().getLog().log(new Status(IStatus.WARNING,Activato= r.PLUGIN_ID,"Cannot register null resource for validation")); + } } = } --===============2957880313393608405==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 13:07:49 2009 Content-Type: multipart/mixed; boundary="===============6597358160890250210==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17420 - branches/jbosstools-3.1.0.M3/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator. Date: Wed, 02 Sep 2009 13:07:49 -0400 Message-ID: <200909021707.n82H7nr3023452@svn01.web.mwc.hst.phx2.redhat.com> --===============6597358160890250210== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-02 13:07:48 -0400 (Wed, 02 Sep 2009) New Revision: 17420 Modified: branches/jbosstools-3.1.0.M3/bpel/plugins/org.eclipse.bpel.validator/src= /org/eclipse/bpel/validator/ValidatorHelper.java Log: fix for = NullPointerException in BPEL ValidatorHelper Modified: branches/jbosstools-3.1.0.M3/bpel/plugins/org.eclipse.bpel.valida= tor/src/org/eclipse/bpel/validator/ValidatorHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/bpel/plugins/org.eclipse.bpel.validator/sr= c/org/eclipse/bpel/validator/ValidatorHelper.java 2009-09-02 17:02:54 UTC (= rev 17419) +++ branches/jbosstools-3.1.0.M3/bpel/plugins/org.eclipse.bpel.validator/sr= c/org/eclipse/bpel/validator/ValidatorHelper.java 2009-09-02 17:07:48 UTC (= rev 17420) @@ -10,6 +10,8 @@ *************************************************************************= ******/ package org.eclipse.bpel.validator; = +import java.util.ArrayList; + import org.eclipse.core.resources.IMarker; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IResource; @@ -26,7 +28,12 @@ = @Override public void registerResource(IResource resource) { - getValidationFileURIs().add(resource.getFullPath().toOSString()); = + if(resource!=3Dnull) { + if(getValidationFileURIs()=3D=3Dnull) { + setValidationFileURIs(new ArrayList()); + } + getValidationFileURIs().add(resource.getFullPath().toOSString()); + } } = } --===============6597358160890250210==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 14:28:05 2009 Content-Type: multipart/mixed; boundary="===============0844190150598794229==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17422 - trunk/birt/features. Date: Wed, 02 Sep 2009 14:28:05 -0400 Message-ID: <200909021828.n82IS5pa005175@svn01.web.mwc.hst.phx2.redhat.com> --===============0844190150598794229== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-02 14:28:05 -0400 (Wed, 02 Sep 2009) New Revision: 17422 Added: trunk/birt/features/org.jboss.tools.birt.test.feature/ Log: Share project "org.jboss.tools.birt.test.feature" into "https://svn.jboss.o= rg/repos/jbosstools" --===============0844190150598794229==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 14:28:21 2009 Content-Type: multipart/mixed; boundary="===============4881640057169310056==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17423 - trunk/birt/features/org.jboss.tools.birt.test.feature. Date: Wed, 02 Sep 2009 14:28:21 -0400 Message-ID: <200909021828.n82ISLPe005217@svn01.web.mwc.hst.phx2.redhat.com> --===============4881640057169310056== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-02 14:28:20 -0400 (Wed, 02 Sep 2009) New Revision: 17423 Added: trunk/birt/features/org.jboss.tools.birt.test.feature/.project trunk/birt/features/org.jboss.tools.birt.test.feature/build.properties trunk/birt/features/org.jboss.tools.birt.test.feature/feature.xml Log: Share project "org.jboss.tools.birt.test.feature" into "https://svn.jboss.o= rg/repos/jbosstools" Added: trunk/birt/features/org.jboss.tools.birt.test.feature/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/birt/features/org.jboss.tools.birt.test.feature/.project = (rev 0) +++ trunk/birt/features/org.jboss.tools.birt.test.feature/.project 2009-09-= 02 18:28:20 UTC (rev 17423) @@ -0,0 +1,17 @@ + + + org.jboss.tools.birt.test.feature + + + + + + org.eclipse.pde.FeatureBuilder + + + + + + org.eclipse.pde.FeatureNature + + Property changes on: trunk/birt/features/org.jboss.tools.birt.test.feature/= .project ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/birt/features/org.jboss.tools.birt.test.feature/build.properti= es =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/birt/features/org.jboss.tools.birt.test.feature/build.properties = (rev 0) +++ trunk/birt/features/org.jboss.tools.birt.test.feature/build.properties = 2009-09-02 18:28:20 UTC (rev 17423) @@ -0,0 +1 @@ +bin.includes =3D feature.xml Property changes on: trunk/birt/features/org.jboss.tools.birt.test.feature/= build.properties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/birt/features/org.jboss.tools.birt.test.feature/feature.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/birt/features/org.jboss.tools.birt.test.feature/feature.xml = (rev 0) +++ trunk/birt/features/org.jboss.tools.birt.test.feature/feature.xml 2009-= 09-02 18:28:20 UTC (rev 17423) @@ -0,0 +1,27 @@ + + + + + [Enter Feature Description here.] + + + + [Enter Copyright Description here.] + + + + [Enter License Description here.] + + + + + Property changes on: trunk/birt/features/org.jboss.tools.birt.test.feature/= feature.xml ___________________________________________________________________ Name: svn:mime-type + text/plain --===============4881640057169310056==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 14:28:55 2009 Content-Type: multipart/mixed; boundary="===============1613424947135001133==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17424 - trunk/birt/tests. Date: Wed, 02 Sep 2009 14:28:54 -0400 Message-ID: <200909021828.n82ISsbP005285@svn01.web.mwc.hst.phx2.redhat.com> --===============1613424947135001133== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-02 14:28:54 -0400 (Wed, 02 Sep 2009) New Revision: 17424 Added: trunk/birt/tests/org.jboss.tools.birt.core.test/ Log: Share project "org.jboss.tools.birt.core.test" into "https://svn.jboss.org/= repos/jbosstools" --===============1613424947135001133==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 14:29:23 2009 Content-Type: multipart/mixed; boundary="===============7201727902526569408==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17425 - in trunk/birt/tests/org.jboss.tools.birt.core.test: .settings and 8 other directories. Date: Wed, 02 Sep 2009 14:29:23 -0400 Message-ID: <200909021829.n82ITNxA005353@svn01.web.mwc.hst.phx2.redhat.com> --===============7201727902526569408== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-02 14:29:22 -0400 (Wed, 02 Sep 2009) New Revision: 17425 Added: trunk/birt/tests/org.jboss.tools.birt.core.test/.classpath trunk/birt/tests/org.jboss.tools.birt.core.test/.project trunk/birt/tests/org.jboss.tools.birt.core.test/.settings/ trunk/birt/tests/org.jboss.tools.birt.core.test/.settings/org.eclipse.jd= t.core.prefs trunk/birt/tests/org.jboss.tools.birt.core.test/META-INF/ trunk/birt/tests/org.jboss.tools.birt.core.test/META-INF/MANIFEST.MF trunk/birt/tests/org.jboss.tools.birt.core.test/build.properties trunk/birt/tests/org.jboss.tools.birt.core.test/src/ trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/ trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/ trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/tools/ trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/tools/birt/ trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/tools/birt= /core/ trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/tools/birt= /core/test/ trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/tools/birt= /core/test/BirtCoreTestSuite.java Log: Share project "org.jboss.tools.birt.core.test" into "https://svn.jboss.org/= repos/jbosstools" Added: trunk/birt/tests/org.jboss.tools.birt.core.test/.classpath =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/birt/tests/org.jboss.tools.birt.core.test/.classpath = (rev 0) +++ trunk/birt/tests/org.jboss.tools.birt.core.test/.classpath 2009-09-02 1= 8:29:22 UTC (rev 17425) @@ -0,0 +1,7 @@ + + + + + + + Property changes on: trunk/birt/tests/org.jboss.tools.birt.core.test/.class= path ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/birt/tests/org.jboss.tools.birt.core.test/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/birt/tests/org.jboss.tools.birt.core.test/.project = (rev 0) +++ trunk/birt/tests/org.jboss.tools.birt.core.test/.project 2009-09-02 18:= 29:22 UTC (rev 17425) @@ -0,0 +1,28 @@ + + + org.jboss.tools.birt.core.test + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + Property changes on: trunk/birt/tests/org.jboss.tools.birt.core.test/.proje= ct ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/birt/tests/org.jboss.tools.birt.core.test/.settings/org.eclips= e.jdt.core.prefs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/birt/tests/org.jboss.tools.birt.core.test/.settings/org.eclipse.j= dt.core.prefs (rev 0) +++ trunk/birt/tests/org.jboss.tools.birt.core.test/.settings/org.eclipse.j= dt.core.prefs 2009-09-02 18:29:22 UTC (rev 17425) @@ -0,0 +1,8 @@ +#Tue Sep 01 16:37:06 GMT-08:00 2009 +eclipse.preferences.version=3D1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=3Denabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=3D1.5 +org.eclipse.jdt.core.compiler.compliance=3D1.5 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=3Derror +org.eclipse.jdt.core.compiler.problem.enumIdentifier=3Derror +org.eclipse.jdt.core.compiler.source=3D1.5 Property changes on: trunk/birt/tests/org.jboss.tools.birt.core.test/.setti= ngs/org.eclipse.jdt.core.prefs ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/birt/tests/org.jboss.tools.birt.core.test/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/birt/tests/org.jboss.tools.birt.core.test/META-INF/MANIFEST.MF = (rev 0) +++ trunk/birt/tests/org.jboss.tools.birt.core.test/META-INF/MANIFEST.MF 20= 09-09-02 18:29:22 UTC (rev 17425) @@ -0,0 +1,10 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: BIRT Core Tests +Bundle-SymbolicName: org.jboss.tools.birt.core.test +Bundle-Version: 1.0.0 +Bundle-Vendor: JBoss by RedHat +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Require-Bundle: org.jboss.tools.tests, + org.junit +Export-Package: org.jboss.tools.birt.core.test Property changes on: trunk/birt/tests/org.jboss.tools.birt.core.test/META-I= NF/MANIFEST.MF ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/birt/tests/org.jboss.tools.birt.core.test/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/birt/tests/org.jboss.tools.birt.core.test/build.properties = (rev 0) +++ trunk/birt/tests/org.jboss.tools.birt.core.test/build.properties 2009-0= 9-02 18:29:22 UTC (rev 17425) @@ -0,0 +1,4 @@ +source.. =3D src/ +output.. =3D bin/ +bin.includes =3D META-INF/,\ + . Property changes on: trunk/birt/tests/org.jboss.tools.birt.core.test/build.= properties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/tools/= birt/core/test/BirtCoreTestSuite.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/tools/bir= t/core/test/BirtCoreTestSuite.java (rev 0) +++ trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/tools/bir= t/core/test/BirtCoreTestSuite.java 2009-09-02 18:29:22 UTC (rev 17425) @@ -0,0 +1,28 @@ +package org.jboss.tools.birt.core.test; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +import org.jboss.tools.tests.AbstractPluginsLoadTest; +import org.jboss.tools.tests.ToolsAllTests; + +public class BirtCoreTestSuite extends TestCase { + + public static Test suite () + { + TestSuite suite =3D new TestSuite(ToolsAllTests.class.getName()); + suite.addTestSuite(BirtPluginsLoadTest.class); + return suite; + } + = + = + static public class BirtPluginsLoadTest extends AbstractPluginsLoadTest { + = + public BirtPluginsLoadTest() {} + = + public void testBirtPluginsAreResolvedAndActivated() { + testBundlesAreLoadedFor("org.jboss.tools.birt.feature"); + } + } +} Property changes on: trunk/birt/tests/org.jboss.tools.birt.core.test/src/or= g/jboss/tools/birt/core/test/BirtCoreTestSuite.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============7201727902526569408==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 14:32:27 2009 Content-Type: multipart/mixed; boundary="===============3849854027597218659==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17426 - in trunk/tests/tests/org.jboss.tools.test: META-INF and 1 other directories. Date: Wed, 02 Sep 2009 14:32:27 -0400 Message-ID: <200909021832.n82IWRPC006062@svn01.web.mwc.hst.phx2.redhat.com> --===============3849854027597218659== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-02 14:32:26 -0400 (Wed, 02 Sep 2009) New Revision: 17426 Added: trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/Abstrac= tPluginsLoadTest.java Removed: trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/PlugInL= oadTest.java trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/ToolsAl= lTests.java Modified: trunk/tests/tests/org.jboss.tools.test/.project trunk/tests/tests/org.jboss.tools.test/META-INF/MANIFEST.MF Log: base test added to verify that all plug-ins from particular feature are loa= ded Modified: trunk/tests/tests/org.jboss.tools.test/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/tests/tests/org.jboss.tools.test/.project 2009-09-02 18:29:22 UTC= (rev 17425) +++ trunk/tests/tests/org.jboss.tools.test/.project 2009-09-02 18:32:26 UTC= (rev 17426) @@ -1,28 +1,28 @@ - - - org.jboss.tools.tests - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - + + + org.jboss.tools.tests + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + Modified: trunk/tests/tests/org.jboss.tools.test/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/tests/tests/org.jboss.tools.test/META-INF/MANIFEST.MF 2009-09-02 = 18:29:22 UTC (rev 17425) +++ trunk/tests/tests/org.jboss.tools.test/META-INF/MANIFEST.MF 2009-09-02 = 18:32:26 UTC (rev 17426) @@ -8,7 +8,8 @@ org.eclipse.core.runtime, org.eclipse.core.resources, org.junit, - org.eclipse.ui.ide + org.eclipse.ui.ide, + org.apache.xerces;bundle-version=3D"2.9.0" Provide-Package: org.jboss.ide.tests.util Eclipse-LazyStart: true Export-Package: org.jboss.tools.test.util, Copied: trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/Ab= stractPluginsLoadTest.java (from rev 17384, trunk/tests/tests/org.jboss.too= ls.test/src/org/jboss/tools/tests/PlugInLoadTest.java) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/Abstra= ctPluginsLoadTest.java (rev 0) +++ trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/Abstra= ctPluginsLoadTest.java 2009-09-02 18:32:26 UTC (rev 17426) @@ -0,0 +1,138 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ + +package org.jboss.tools.tests; + +import java.io.File; +import java.io.FilenameFilter; +import java.io.IOException; +import java.text.MessageFormat; + +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; +import javax.xml.parsers.ParserConfigurationException; + +import junit.framework.TestCase; + +import org.eclipse.core.runtime.FileLocator; +import org.eclipse.core.runtime.IBundleGroup; +import org.eclipse.core.runtime.IBundleGroupProvider; +import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.Platform; +import org.osgi.framework.Bundle; +import org.w3c.dom.Document; +import org.w3c.dom.NodeList; +import org.xml.sax.SAXException; + +/** + * Abstract test is intended to test that all plug-ins of particular featu= re are loaded at run-time + * @author eskimo + * + */ +public class AbstractPluginsLoadTest extends TestCase { + + public static final String BUNDLE_GROUP_PROVIDER_NAME =3D "Update Manager= Configurator"; + private static final String PLUGIN_TAG_NAME =3D "plugin"; + private static final String ID_ATTRIBUTE_NAME =3D "id"; = + + public void testBundlesAreLoadedFor(final String featureId) { + Bundle firstBundle =3D getFirstBundleFor(featureId); + File bundleLocation =3D null; + try { + bundleLocation =3D FileLocator.getBundleFile(firstBundle); + } catch (IOException e1) { + fail(MessageFormat.format("Cannot find location for feature {0}",featur= eId)); + } + File featuresFolder =3D new File(bundleLocation.getParentFile().getParen= tFile(),"features"); + String[] features =3D featuresFolder.list(new FilenameFilter() { + = + public boolean accept(File dir, String name) { + File featureDescriptor =3D new File(new File(dir,name),"feature.xml"); + return name.startsWith(featureId) && featureDescriptor.canRead(); + } + }); + assertEquals(1, features.length); + DocumentBuilder builder; + File featureDescriptor =3D new File(new File(featuresFolder,features[0])= ,"feature.xml"); + try { + builder =3D DocumentBuilderFactory.newInstance().newDocumentBuilder(); + Document feature =3D builder.parse(featureDescriptor); + NodeList plugins =3D feature.getElementsByTagName(PLUGIN_TAG_NAME); + for (int i =3D 0; i < plugins.getLength(); i++) { + String pluginId =3D plugins.item(i).getAttributes().getNamedItem(ID_AT= TRIBUTE_NAME).getNodeValue(); + isPluginResolved(pluginId); + System.out.println(MessageFormat.format("Plugn {0} was resolved and ac= tivated", pluginId)); + } + } catch (ParserConfigurationException e) { + fail(MessageFormat.format("Cannot configure parser to parse feature des= criptor ''{0}''",featureDescriptor.getAbsolutePath())); + } catch (SAXException e) { + fail(MessageFormat.format("Cannot parse feature descriptor ''{0}''",fea= tureDescriptor.getAbsolutePath())); + } catch (IOException e) { + fail(e.getMessage()); + } + } + + /** + * @param featureId + */ + private Bundle getFirstBundleFor(String featureId) { + IBundleGroupProvider[] providers =3D Platform.getBundleGroupProviders(); + System.out.println(providers.length); + for (IBundleGroupProvider iBundleGroupProvider : providers) { + System.out.println(iBundleGroupProvider.getName()); + IBundleGroup[] bundleGroups =3D iBundleGroupProvider.getBundleGroups(); + if(BUNDLE_GROUP_PROVIDER_NAME.equals(iBundleGroupProvider.getName())) { + for (IBundleGroup iBundleGroup : bundleGroups) { + if(iBundleGroup.getIdentifier().equals(featureId)) { + Bundle[] bundles =3D iBundleGroup.getBundles(); + for (Bundle bundle : bundles) { + return bundle; + } + } + } + } + } + return null; + } + = + private boolean isPluginResolved(String pluginId) { + Bundle bundle =3D Platform.getBundle(pluginId); + assertNotNull(pluginId + " failed to load.", bundle); //$NON-NLS-1$ + try { + // this line is needed to to force plug-in loading and to change it sta= te to ACTIVE = + bundle.loadClass("fake class"); //$NON-NLS-1$ + } catch (ClassNotFoundException e) { + // It happens always because loaded class doesn't not exist + } + return ((bundle.getState() & Bundle.RESOLVED) > 0) + || ((bundle.getState() & Bundle.ACTIVE) > 0); + } + + private void assertPluginsResolved(Bundle[] bundles) { + for (Bundle bundle : bundles) { + assertTrue("Plugin '" + bundle.getSymbolicName() + "' is not resolved",= //$NON-NLS-1$ //$NON-NLS-2$ + isPluginResolved(bundle.getSymbolicName())); + System.out.println(bundle.getSymbolicName() + " was resolved and activa= ted"); + } + } + = +// public void testAsComp() throws IOException { +// testBundlesAreLoadedFor("org.jboss.ide.eclipse.as.feature"); +// } +// = +// public void testJdtComp() throws IOException { +// testBundlesAreLoadedFor("org.eclipse.jdt"); +// } +// = +// public void testRichfacesComp() throws IOException { +// testBundlesAreLoadedFor("org.jboss.tools.richfaces.feature"); +// } +} Deleted: trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/P= lugInLoadTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/PlugIn= LoadTest.java 2009-09-02 18:29:22 UTC (rev 17425) +++ trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/PlugIn= LoadTest.java 2009-09-02 18:32:26 UTC (rev 17426) @@ -1,161 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ - -package org.jboss.tools.tests; - -import junit.framework.TestCase; - -import org.eclipse.core.runtime.Platform; -import org.osgi.framework.Bundle; -/** - * = - * //TODO try to refactor it to use Eclipse API to get plug-ins list in in= stalled feature - * // = - * = - * @author eskimo - * - */ -public class PlugInLoadTest extends TestCase { - - public static final String rhdsNS =3D "org.jboss.tools."; //$NON-NLS-1$ - private static String jbideNS =3D "org.jboss.ide.eclipse."; //$NON-NLS-1$ - private static String hibNS =3D "org.hibernate.eclipse."; //$NON-NLS-1$ - private static String jbpmNS =3D "org.jbpm.gd.jpdl"; //$NON-NLS-1$ - private static String jbwsNS =3D "com.eviware.soapui."; //$NON-NLS-1$ - - private boolean isPluginResolved(String pluginId) { - Bundle bundle =3D Platform.getBundle(pluginId); - assertNotNull(pluginId + " failed to load.", bundle); //$NON-NLS-1$ - try { - // In 3.3 when test case is running plug-in.getState always returns - // STARTING state - // to move plug-in in ACTIVE state at one class should be loaded - // from plug-in - bundle.loadClass("fake class"); //$NON-NLS-1$ - } catch (Exception e) { - // It happens always because loaded class doesn't not exist - } - return ((bundle.getState() & Bundle.RESOLVED) > 0) - || ((bundle.getState() & Bundle.ACTIVE) > 0); - } - - private void assertPluginsResolved(String[] pluginIds) { - for (int i =3D 0; i < pluginIds.length; i++) { - assertTrue("plugin '" + pluginIds[i] + "' is not resolved", //$NON-NLS-= 1$ //$NON-NLS-2$ - isPluginResolved(pluginIds[i])); - } - } - - public void testCommonPluginsResolved() { - assertPluginsResolved(new String[] { = - rhdsNS + "common", //$NON-NLS-1$ - rhdsNS + "common.gef", //$NON-NLS-1$ - rhdsNS + "common.kb", //$NON-NLS-1$ - rhdsNS + "common.model", //$NON-NLS-1$ - rhdsNS + "common.model.ui", //$NON-NLS-1$ - rhdsNS + "common.projecttemplates", //$NON-NLS-1$ - rhdsNS + "common.text.ext", //$NON-NLS-1$ - rhdsNS + "common.text.xml", //$NON-NLS-1$ - rhdsNS + "common.verification", //$NON-NLS-1$ - rhdsNS + "common.verification.ui", }); //$NON-NLS-1$ - } - - public void testJsfPluginsResolved() { - assertPluginsResolved(new String[] { = - rhdsNS + "jsf", //$NON-NLS-1$ - rhdsNS + "jsf.text.ext", //$NON-NLS-1$ - rhdsNS + "jsf.text.ext.facelets", //$NON-NLS-1$ - rhdsNS + "jsf.ui", //$NON-NLS-1$ - rhdsNS + "jsf.verification", //$NON-NLS-1$ - rhdsNS + "jsf.vpe.ajax4jsf", //$NON-NLS-1$ - rhdsNS + "jsf.vpe.facelets", //$NON-NLS-1$ - rhdsNS + "jsf.vpe.richfaces", //$NON-NLS-1$ - rhdsNS + "jsf.vpe.seam" }); //$NON-NLS-1$ - } - - public void testJstPluginsResolved() { - assertPluginsResolved(new String[] { = - rhdsNS + "jst.jsp", //$NON-NLS-1$ - rhdsNS + "jst.web", //$NON-NLS-1$ - rhdsNS + "jst.web.tiles", //$NON-NLS-1$ - rhdsNS + "jst.web.tiles.ui", //$NON-NLS-1$ - rhdsNS + "jst.web.ui", //$NON-NLS-1$ - rhdsNS + "jst.web.verification" }); //$NON-NLS-1$ - } - - public void testVpePluginsResolved() { - assertPluginsResolved(new String[] { = - rhdsNS + "vpe", //$NON-NLS-1$ - rhdsNS + "vpe.ui.palette", //$NON-NLS-1$ - rhdsNS + "vpe.xulrunner" }); //$NON-NLS-1$ - } - - public void testStrutsPluginsResolved() { - assertPluginsResolved(new String[] { = - rhdsNS + "struts", //$NON-NLS-1$ - rhdsNS + "struts.text.ext", //$NON-NLS-1$ - rhdsNS + "struts.ui", //$NON-NLS-1$ - rhdsNS + "struts.validator.ui", //$NON-NLS-1$ - rhdsNS + "struts.verification" }); //$NON-NLS-1$ - } - - public void testCorePluginsResolved() { - assertPluginsResolved(new String[] { = - jbideNS + "archives.core", //$NON-NLS-1$ - jbideNS + "archives.ui"}); //$NON-NLS-1$ - } - - public void testASPluginsResolved() { - assertPluginsResolved(new String[] { = - jbideNS + "as.core", //$NON-NLS-1$ - jbideNS + "as.ui", //$NON-NLS-1$ - jbideNS + "as.ui.mbeans" }); //$NON-NLS-1$ - } - - public void testHibernatePluginsResolved() { - assertPluginsResolved(new String[] { = - "org.hibernate.eclipse", //$NON-NLS-1$ - hibNS + "console", //$NON-NLS-1$ - hibNS + "help", //$NON-NLS-1$ - hibNS + "mapper", //$NON-NLS-1$ - hibNS + "jdt.ui", //$NON-NLS-1$ - hibNS + "jdt.apt.ui" }); //$NON-NLS-1$ - } - - = - // TODO: Move this test to JBDS -// public void testJbpmPluginsResolved() { -// assertPluginsResolved(new String[] { = -// jbpmNS }); -// } - - public void testFreemarkerPluginsResolved() { - assertPluginsResolved(new String[] { = - jbideNS + "freemarker" }); //$NON-NLS-1$ - } - - public void testDroolsPluginsResolved() { - // Skipped until drools migartion to 3.3 is finished - // assertPluginsResolved(new String[] { - // "org.drools.ide" - // }); - } - - public void testJBossWSPluginsResolved() { - // assertPluginsResolved(new String[] { - // jbwsNS+"core", - // jbwsNS+"eclipse.core", - // jbwsNS+"jbosside.wstools", - // jbwsNS+"libs" - // }); - } - -} Deleted: trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/T= oolsAllTests.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/ToolsA= llTests.java 2009-09-02 18:29:22 UTC (rev 17425) +++ trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/ToolsA= llTests.java 2009-09-02 18:32:26 UTC (rev 17426) @@ -1,29 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = - -package org.jboss.tools.tests; - -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - -public class ToolsAllTests extends TestCase { - = - public static Test suite () - { - TestSuite suite =3D new TestSuite(ToolsAllTests.class.getName()); - = - suite.addTestSuite(PlugInLoadTest.class); - = - return suite; - } - = -} \ No newline at end of file --===============3849854027597218659==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 16:51:41 2009 Content-Type: multipart/mixed; boundary="===============1746753902706242845==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17427 - trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/tools/birt/core/test. Date: Wed, 02 Sep 2009 16:51:41 -0400 Message-ID: <200909022051.n82KpfwU003613@svn01.web.mwc.hst.phx2.redhat.com> --===============1746753902706242845== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-02 16:51:41 -0400 (Wed, 02 Sep 2009) New Revision: 17427 Modified: trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/tools/birt= /core/test/BirtCoreTestSuite.java Log: fix compilation errors in build Modified: trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/too= ls/birt/core/test/BirtCoreTestSuite.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/tools/bir= t/core/test/BirtCoreTestSuite.java 2009-09-02 18:32:26 UTC (rev 17426) +++ trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/tools/bir= t/core/test/BirtCoreTestSuite.java 2009-09-02 20:51:41 UTC (rev 17427) @@ -5,13 +5,12 @@ import junit.framework.TestSuite; = import org.jboss.tools.tests.AbstractPluginsLoadTest; -import org.jboss.tools.tests.ToolsAllTests; = public class BirtCoreTestSuite extends TestCase { = public static Test suite () { - TestSuite suite =3D new TestSuite(ToolsAllTests.class.getName()); + TestSuite suite =3D new TestSuite(BirtCoreTestSuite.class.getName()); suite.addTestSuite(BirtPluginsLoadTest.class); return suite; } --===============1746753902706242845==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 17:17:45 2009 Content-Type: multipart/mixed; boundary="===============3575492942515452059==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17428 - trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/jbide. Date: Wed, 02 Sep 2009 17:17:45 -0400 Message-ID: <200909022117.n82LHjkK009749@svn01.web.mwc.hst.phx2.redhat.com> --===============3575492942515452059== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: snjeza Date: 2009-09-02 17:17:45 -0400 (Wed, 02 Sep 2009) New Revision: 17428 Modified: trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/u= i/test/jbide/JBide3989Test.java Log: https://jira.jboss.org/jira/browse/JBIDE-4832 Fix SeamUiAllTests.testJBide3= 989 Modified: trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools= /seam/ui/test/jbide/JBide3989Test.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/= ui/test/jbide/JBide3989Test.java 2009-09-02 20:51:41 UTC (rev 17427) +++ trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/= ui/test/jbide/JBide3989Test.java 2009-09-02 21:17:45 UTC (rev 17428) @@ -17,17 +17,12 @@ import org.eclipse.core.resources.IMarker; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IWorkspaceRunnable; import org.eclipse.core.resources.IncrementalProjectBuilder; -import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.NullProgressMonitor; import org.eclipse.ui.IMarkerResolution; import org.eclipse.ui.ide.IDE; -import org.eclipse.wst.validation.internal.operations.OneValidatorOperatio= n; import org.eclipse.wst.validation.internal.operations.ValidatorManager; -import org.eclipse.wst.validation.internal.operations.ValidatorSubsetOpera= tion; import org.jboss.tools.common.test.util.TestProjectProvider; import org.jboss.tools.seam.core.ISeamProject; import org.jboss.tools.seam.core.SeamCorePlugin; @@ -60,18 +55,10 @@ ISeamProject seamProject =3D SeamCorePlugin.getSeamProject(project, true= ); seamProject.setRuntimeName("UNKNOWN"); ValidatorManager.addProjectBuildValidationSupport(project); - project.build(IncrementalProjectBuilder.CLEAN_BUILD, - new NullProgressMonitor()); // JBIDE-4832 - call SeamProjectPropertyValidator manually = - IWorkspaceRunnable runnable =3D new IWorkspaceRunnable() { - = - public void run(IProgressMonitor monitor) throws CoreException { - String validatorId =3D "org.jboss.tools.seam.internal.core.validation.= SeamProjectPropertyValidator"; - ValidatorSubsetOperation op =3D new OneValidatorOperation(project, val= idatorId, true, false); - op.run(null); - } - }; - ResourcesPlugin.getWorkspace().run(runnable, null); + project.build(IncrementalProjectBuilder.FULL_BUILD, + new NullProgressMonitor()); + = JobUtils.waitForIdle(); } = --===============3575492942515452059==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 17:22:33 2009 Content-Type: multipart/mixed; boundary="===============3939199760301278518==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17429 - branches/jbosstools-3.1.0.M3/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/jbide. Date: Wed, 02 Sep 2009 17:22:33 -0400 Message-ID: <200909022122.n82LMX60010857@svn01.web.mwc.hst.phx2.redhat.com> --===============3939199760301278518== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: snjeza Date: 2009-09-02 17:22:33 -0400 (Wed, 02 Sep 2009) New Revision: 17429 Modified: branches/jbosstools-3.1.0.M3/seam/tests/org.jboss.tools.seam.ui.test/src= /org/jboss/tools/seam/ui/test/jbide/JBide3989Test.java Log: https://jira.jboss.org/jira/browse/JBIDE-4832 Fix SeamUiAllTests.testJBide3= 989 Modified: branches/jbosstools-3.1.0.M3/seam/tests/org.jboss.tools.seam.ui.t= est/src/org/jboss/tools/seam/ui/test/jbide/JBide3989Test.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/seam/tests/org.jboss.tools.seam.ui.test/sr= c/org/jboss/tools/seam/ui/test/jbide/JBide3989Test.java 2009-09-02 21:17:45= UTC (rev 17428) +++ branches/jbosstools-3.1.0.M3/seam/tests/org.jboss.tools.seam.ui.test/sr= c/org/jboss/tools/seam/ui/test/jbide/JBide3989Test.java 2009-09-02 21:22:33= UTC (rev 17429) @@ -55,7 +55,7 @@ ISeamProject seamProject =3D SeamCorePlugin.getSeamProject(project, true= ); seamProject.setRuntimeName("UNKNOWN"); ValidatorManager.addProjectBuildValidationSupport(project); - project.build(IncrementalProjectBuilder.CLEAN_BUILD, + project.build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor()); JobUtils.waitForIdle(); } --===============3939199760301278518==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 17:29:10 2009 Content-Type: multipart/mixed; boundary="===============7868645420253778419==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17430 - trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/dialog. Date: Wed, 02 Sep 2009 17:29:10 -0400 Message-ID: <200909022129.n82LTAOk012233@svn01.web.mwc.hst.phx2.redhat.com> --===============7868645420253778419== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: snjeza Date: 2009-09-02 17:29:09 -0400 (Wed, 02 Sep 2009) New Revision: 17430 Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/to= ols/project/examples/dialog/MarkerDialog.java Log: https://jira.jboss.org/jira/browse/JBIDE-4840 Sometimes Quick Fix dialog ap= pears even though there are no errors Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/j= boss/tools/project/examples/dialog/MarkerDialog.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/t= ools/project/examples/dialog/MarkerDialog.java 2009-09-02 21:22:33 UTC (rev= 17429) +++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/t= ools/project/examples/dialog/MarkerDialog.java 2009-09-02 21:29:09 UTC (rev= 17430) @@ -250,7 +250,7 @@ if (eclipseProject !=3D null && eclipseProject.isOpen()) { eclipseProject.build( - IncrementalProjectBuilder.CLEAN_BUILD, + IncrementalProjectBuilder.FULL_BUILD, null); } } --===============7868645420253778419==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 17:34:39 2009 Content-Type: multipart/mixed; boundary="===============1482185085087548634==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17431 - trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/configurators. Date: Wed, 02 Sep 2009 17:34:39 -0400 Message-ID: <200909022134.n82LYd09013444@svn01.web.mwc.hst.phx2.redhat.com> --===============1482185085087548634== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: snjeza Date: 2009-09-02 17:34:39 -0400 (Wed, 02 Sep 2009) New Revision: 17431 Modified: trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven= /seam/configurators/SeamProjectConfigurator.java Log: https://jira.jboss.org/jira/browse/JBIDE-4841 SeamProjectConfigurator throw= s an NPE when application.xml doesn't exist in EAR project Modified: trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tool= s/maven/seam/configurators/SeamProjectConfigurator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/mave= n/seam/configurators/SeamProjectConfigurator.java 2009-09-02 21:29:09 UTC (= rev 17430) +++ trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/mave= n/seam/configurators/SeamProjectConfigurator.java 2009-09-02 21:34:39 UTC (= rev 17431) @@ -579,6 +579,9 @@ earArtifactEdit =3D EARArtifactEdit.getEARArtifactEditForWrite(project); if(earArtifactEdit!=3Dnull) { Application application =3D earArtifactEdit.getApplication(); + if (application =3D=3D null) { + return; + } EList modules =3D application.getModules(); for (Iterator iterator =3D modules.iterator(); iterator.hasNext();) { Object object =3D iterator.next(); --===============1482185085087548634==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 20:23:16 2009 Content-Type: multipart/mixed; boundary="===============3387566929679177109==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17432 - in trunk/freemarker: tests and 1 other directory. Date: Wed, 02 Sep 2009 20:23:16 -0400 Message-ID: <200909030023.n830NGJ4014851@svn01.web.mwc.hst.phx2.redhat.com> --===============3387566929679177109== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-02 20:23:16 -0400 (Wed, 02 Sep 2009) New Revision: 17432 Added: trunk/freemarker/tests/ trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/ Log: Share project "org.jboss.ide.eclipse.freemarker.test" into "https://svn.jbo= ss.org/repos/jbosstools" --===============3387566929679177109==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 20:24:10 2009 Content-Type: multipart/mixed; boundary="===============4060833448393585014==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17433 - in trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test: .settings and 8 other directories. Date: Wed, 02 Sep 2009 20:24:10 -0400 Message-ID: <200909030024.n830OA89014984@svn01.web.mwc.hst.phx2.redhat.com> --===============4060833448393585014== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-02 20:24:10 -0400 (Wed, 02 Sep 2009) New Revision: 17433 Added: trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/.classpath trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/.project trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/.settings/ trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/.settings/o= rg.eclipse.jdt.core.prefs trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/META-INF/ trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/META-INF/MA= NIFEST.MF trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/build.prope= rties trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/src/ trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/src/org/ trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/src/org/jbo= ss/ trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/src/org/jbo= ss/ide/ trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/src/org/jbo= ss/ide/eclipse/ trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/src/org/jbo= ss/ide/eclipse/freemarker/ trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/src/org/jbo= ss/ide/eclipse/freemarker/test/ trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/src/org/jbo= ss/ide/eclipse/freemarker/test/Activator.java trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/src/org/jbo= ss/ide/eclipse/freemarker/test/FreemarkerAllTests.java Log: Share project "org.jboss.ide.eclipse.freemarker.test" into "https://svn.jbo= ss.org/repos/jbosstools" Added: trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/.classp= ath =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/.classpath= (rev 0) +++ trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/.classpath= 2009-09-03 00:24:10 UTC (rev 17433) @@ -0,0 +1,7 @@ + + + + + + + Property changes on: trunk/freemarker/tests/org.jboss.ide.eclipse.freemarke= r.test/.classpath ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/.project = (rev 0) +++ trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/.project 2= 009-09-03 00:24:10 UTC (rev 17433) @@ -0,0 +1,28 @@ + + + org.jboss.ide.eclipse.freemarker.test + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + Property changes on: trunk/freemarker/tests/org.jboss.ide.eclipse.freemarke= r.test/.project ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/.settin= gs/org.eclipse.jdt.core.prefs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/.settings/= org.eclipse.jdt.core.prefs (rev 0) +++ trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/.settings/= org.eclipse.jdt.core.prefs 2009-09-03 00:24:10 UTC (rev 17433) @@ -0,0 +1,8 @@ +#Wed Sep 02 15:11:52 GMT-08:00 2009 +eclipse.preferences.version=3D1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=3Denabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=3D1.5 +org.eclipse.jdt.core.compiler.compliance=3D1.5 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=3Derror +org.eclipse.jdt.core.compiler.problem.enumIdentifier=3Derror +org.eclipse.jdt.core.compiler.source=3D1.5 Property changes on: trunk/freemarker/tests/org.jboss.ide.eclipse.freemarke= r.test/.settings/org.eclipse.jdt.core.prefs ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/META-IN= F/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/META-INF/M= ANIFEST.MF (rev 0) +++ trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/META-INF/M= ANIFEST.MF 2009-09-03 00:24:10 UTC (rev 17433) @@ -0,0 +1,12 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Freemarker Tests +Bundle-SymbolicName: org.jboss.ide.eclipse.freemarker.test +Bundle-Version: 1.0.0.qualifier +Bundle-Activator: org.jboss.ide.eclipse.freemarker.test.Activator +Bundle-Vendor: JBoss by RedHat +Require-Bundle: org.eclipse.core.runtime, + org.junit, + org.jboss.tools.tests;bundle-version=3D"2.0.0" +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Bundle-ActivationPolicy: lazy Property changes on: trunk/freemarker/tests/org.jboss.ide.eclipse.freemarke= r.test/META-INF/MANIFEST.MF ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/build.p= roperties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/build.prop= erties (rev 0) +++ trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/build.prop= erties 2009-09-03 00:24:10 UTC (rev 17433) @@ -0,0 +1,4 @@ +source.. =3D src/ +output.. =3D bin/ +bin.includes =3D META-INF/,\ + . Property changes on: trunk/freemarker/tests/org.jboss.ide.eclipse.freemarke= r.test/build.properties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/src/org= /jboss/ide/eclipse/freemarker/test/Activator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/src/org/jb= oss/ide/eclipse/freemarker/test/Activator.java (rev= 0) +++ trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/src/org/jb= oss/ide/eclipse/freemarker/test/Activator.java 2009-09-03 00:24:10 UTC (rev= 17433) @@ -0,0 +1,50 @@ +package org.jboss.ide.eclipse.freemarker.test; + +import org.eclipse.core.runtime.Plugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends Plugin { + + // The plug-in ID + public static final String PLUGIN_ID =3D "org.jboss.ide.eclipse.freemarke= r.test"; + + // The shared instance + private static Activator plugin; + = + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleC= ontext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin =3D this; + } + + /* + * (non-Javadoc) + * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleCon= text) + */ + public void stop(BundleContext context) throws Exception { + plugin =3D null; + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } + +} Property changes on: trunk/freemarker/tests/org.jboss.ide.eclipse.freemarke= r.test/src/org/jboss/ide/eclipse/freemarker/test/Activator.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/src/org= /jboss/ide/eclipse/freemarker/test/FreemarkerAllTests.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/src/org/jb= oss/ide/eclipse/freemarker/test/FreemarkerAllTests.java = (rev 0) +++ trunk/freemarker/tests/org.jboss.ide.eclipse.freemarker.test/src/org/jb= oss/ide/eclipse/freemarker/test/FreemarkerAllTests.java 2009-09-03 00:24:10= UTC (rev 17433) @@ -0,0 +1,27 @@ +package org.jboss.ide.eclipse.freemarker.test; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +import org.jboss.tools.tests.AbstractPluginsLoadTest; + +public class FreemarkerAllTests extends TestCase { + + public static Test suite () + { + TestSuite suite =3D new TestSuite(FreemarkerAllTests.class.getName()); + suite.addTestSuite(FreemarkerPluginsLoadTest.class); + return suite; + } + = + = + static public class FreemarkerPluginsLoadTest extends AbstractPluginsLoad= Test { + = + public FreemarkerPluginsLoadTest() {} + = + public void testBirtPluginsAreResolvedAndActivated() { + testBundlesAreLoadedFor("org.jboss.ide.eclipse.freemarker.feature"); + } + } +} Property changes on: trunk/freemarker/tests/org.jboss.ide.eclipse.freemarke= r.test/src/org/jboss/ide/eclipse/freemarker/test/FreemarkerAllTests.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============4060833448393585014==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 20:25:25 2009 Content-Type: multipart/mixed; boundary="===============2477755603880205773==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17434 - trunk/freemarker/features. Date: Wed, 02 Sep 2009 20:25:25 -0400 Message-ID: <200909030025.n830PPP4015400@svn01.web.mwc.hst.phx2.redhat.com> --===============2477755603880205773== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-02 20:25:25 -0400 (Wed, 02 Sep 2009) New Revision: 17434 Added: trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.test.feature/ Log: Share project "org.jboss.ide.eclipse.freemarker.test.feature" into "https:/= /svn.jboss.org/repos/jbosstools" --===============2477755603880205773==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 20:26:02 2009 Content-Type: multipart/mixed; boundary="===============5229248606560551853==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17435 - trunk/esb/features. Date: Wed, 02 Sep 2009 20:26:01 -0400 Message-ID: <200909030026.n830Q1Cm015516@svn01.web.mwc.hst.phx2.redhat.com> --===============5229248606560551853== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-02 20:26:01 -0400 (Wed, 02 Sep 2009) New Revision: 17435 Added: trunk/esb/features/org.jboss.tools.esb.test.feature/ Log: Share project "org.jboss.tools.esb.test.feature" into "https://svn.jboss.or= g/repos/jbosstools" --===============5229248606560551853==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 20:26:20 2009 Content-Type: multipart/mixed; boundary="===============2331531249004618782==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17436 - trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.test.feature. Date: Wed, 02 Sep 2009 20:26:20 -0400 Message-ID: <200909030026.n830QKV5015582@svn01.web.mwc.hst.phx2.redhat.com> --===============2331531249004618782== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-02 20:26:20 -0400 (Wed, 02 Sep 2009) New Revision: 17436 Added: trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.test.feature/= .project trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.test.feature/= build.properties trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.test.feature/= feature.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4810 freemarker tests were added Added: trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.test.feat= ure/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.test.feature= /.project (rev 0) +++ trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.test.feature= /.project 2009-09-03 00:26:20 UTC (rev 17436) @@ -0,0 +1,17 @@ + + + org.jboss.ide.eclipse.freemarker.test.feature + + + + + + org.eclipse.pde.FeatureBuilder + + + + + + org.eclipse.pde.FeatureNature + + Property changes on: trunk/freemarker/features/org.jboss.ide.eclipse.freema= rker.test.feature/.project ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.test.feat= ure/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.test.feature= /build.properties (rev 0) +++ trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.test.feature= /build.properties 2009-09-03 00:26:20 UTC (rev 17436) @@ -0,0 +1 @@ +bin.includes =3D feature.xml Property changes on: trunk/freemarker/features/org.jboss.ide.eclipse.freema= rker.test.feature/build.properties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.test.feat= ure/feature.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.test.feature= /feature.xml (rev 0) +++ trunk/freemarker/features/org.jboss.ide.eclipse.freemarker.test.feature= /feature.xml 2009-09-03 00:26:20 UTC (rev 17436) @@ -0,0 +1,27 @@ + + + + + [Enter Feature Description here.] + + + + [Enter Copyright Description here.] + + + + [Enter License Description here.] + + + + + Property changes on: trunk/freemarker/features/org.jboss.ide.eclipse.freema= rker.test.feature/feature.xml ___________________________________________________________________ Name: svn:mime-type + text/plain --===============2331531249004618782==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 20:26:37 2009 Content-Type: multipart/mixed; boundary="===============3581885503081041665==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17437 - trunk/esb/features/org.jboss.tools.esb.test.feature. Date: Wed, 02 Sep 2009 20:26:37 -0400 Message-ID: <200909030026.n830Qai5015624@svn01.web.mwc.hst.phx2.redhat.com> --===============3581885503081041665== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-02 20:26:36 -0400 (Wed, 02 Sep 2009) New Revision: 17437 Added: trunk/esb/features/org.jboss.tools.esb.test.feature/.project trunk/esb/features/org.jboss.tools.esb.test.feature/build.properties trunk/esb/features/org.jboss.tools.esb.test.feature/feature.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4810 = esb component tests have been enabled in build Added: trunk/esb/features/org.jboss.tools.esb.test.feature/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/features/org.jboss.tools.esb.test.feature/.project = (rev 0) +++ trunk/esb/features/org.jboss.tools.esb.test.feature/.project 2009-09-03= 00:26:36 UTC (rev 17437) @@ -0,0 +1,17 @@ + + + org.jboss.tools.esb.test.feature + + + + + + org.eclipse.pde.FeatureBuilder + + + + + + org.eclipse.pde.FeatureNature + + Property changes on: trunk/esb/features/org.jboss.tools.esb.test.feature/.p= roject ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/esb/features/org.jboss.tools.esb.test.feature/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/features/org.jboss.tools.esb.test.feature/build.properties = (rev 0) +++ trunk/esb/features/org.jboss.tools.esb.test.feature/build.properties 20= 09-09-03 00:26:36 UTC (rev 17437) @@ -0,0 +1 @@ +bin.includes =3D feature.xml Property changes on: trunk/esb/features/org.jboss.tools.esb.test.feature/bu= ild.properties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/esb/features/org.jboss.tools.esb.test.feature/feature.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/features/org.jboss.tools.esb.test.feature/feature.xml = (rev 0) +++ trunk/esb/features/org.jboss.tools.esb.test.feature/feature.xml 2009-09= -03 00:26:36 UTC (rev 17437) @@ -0,0 +1,33 @@ + + + + + [Enter Feature Description here.] + + + + [Enter Copyright Description here.] + + + + [Enter License Description here.] + + + + + + + Property changes on: trunk/esb/features/org.jboss.tools.esb.test.feature/fe= ature.xml ___________________________________________________________________ Name: svn:mime-type + text/plain --===============3581885503081041665==-- From jbosstools-commits at lists.jboss.org Wed Sep 2 20:26:41 2009 Content-Type: multipart/mixed; boundary="===============5805127292807324486==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17438 - trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/core/test. Date: Wed, 02 Sep 2009 20:26:41 -0400 Message-ID: <200909030026.n830Qfif015647@svn01.web.mwc.hst.phx2.redhat.com> --===============5805127292807324486== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-02 20:26:40 -0400 (Wed, 02 Sep 2009) New Revision: 17438 Added: trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/co= re/test/EsbPluginsLoadTest.java Modified: trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/co= re/test/ESBAllTests.java trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/co= re/test/ESBModelTest.java Log: https://jira.jboss.org/jira/browse/JBIDE-4810 = esbcomponent tests have been enabled in build Modified: trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools= /esb/core/test/ESBAllTests.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/c= ore/test/ESBAllTests.java 2009-09-03 00:26:36 UTC (rev 17437) +++ trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/c= ore/test/ESBAllTests.java 2009-09-03 00:26:40 UTC (rev 17438) @@ -16,8 +16,9 @@ public class ESBAllTests { = public static Test suite() { - TestSuite suite =3D new TestSuite("Test ESB model"); = - suite.addTestSuite(ESBModelTest.class); = + TestSuite suite =3D new TestSuite("Test ESB Corel"); + suite.addTestSuite(EsbPluginsLoadTest.class); + suite.addTestSuite(ESBModelTest.class); = return suite; } = Modified: trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools= /esb/core/test/ESBModelTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/c= ore/test/ESBModelTest.java 2009-09-03 00:26:36 UTC (rev 17437) +++ trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/c= ore/test/ESBModelTest.java 2009-09-03 00:26:40 UTC (rev 17438) @@ -31,13 +31,9 @@ public ESBModelTest() {} = public void setUp() throws Exception { - provider =3D new TestProjectProvider("org.jboss.tools.esb.core.test", nu= ll, "Test", false); = + provider =3D new TestProjectProvider("org.jboss.tools.esb.core.test", nu= ll, "Test", true); = project =3D provider.getProject(); - try { - project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor(= )); - } catch (Exception e) { - e.printStackTrace(); - } + project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor()= ); } = /* Added: trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/es= b/core/test/EsbPluginsLoadTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/c= ore/test/EsbPluginsLoadTest.java (rev 0) +++ trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/c= ore/test/EsbPluginsLoadTest.java 2009-09-03 00:26:40 UTC (rev 17438) @@ -0,0 +1,25 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.esb.core.test; + +import org.jboss.tools.tests.AbstractPluginsLoadTest; + +/** + * @author eskimo + */ +public class EsbPluginsLoadTest extends AbstractPluginsLoadTest { + = + public EsbPluginsLoadTest() {} + = + public void testEsbPluginsAreResolvedAndActivated() { + testBundlesAreLoadedFor("org.jboss.tools.esb.feature"); + } +} Property changes on: trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/= jboss/tools/esb/core/test/EsbPluginsLoadTest.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============5805127292807324486==-- From jbosstools-commits at lists.jboss.org Thu Sep 3 06:45:39 2009 Content-Type: multipart/mixed; boundary="===============6981456380232537832==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17440 - trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/src/org/jboss/tools/hibernate/ui/diagram/editors/actions/test. Date: Thu, 03 Sep 2009 06:45:38 -0400 Message-ID: <200909031045.n83Ajc6b032603@svn01.web.mwc.hst.phx2.redhat.com> --===============6981456380232537832== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vyemialyanchyk Date: 2009-09-03 06:45:38 -0400 (Thu, 03 Sep 2009) New Revision: 17440 Modified: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/src/org/jbo= ss/tools/hibernate/ui/diagram/editors/actions/test/ExportImageActionTest.ja= va Log: try to fix junit test on Hudson Modified: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/src/= org/jboss/tools/hibernate/ui/diagram/editors/actions/test/ExportImageAction= Test.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/src/org/jb= oss/tools/hibernate/ui/diagram/editors/actions/test/ExportImageActionTest.j= ava 2009-09-03 04:10:42 UTC (rev 17439) +++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/src/org/jb= oss/tools/hibernate/ui/diagram/editors/actions/test/ExportImageActionTest.j= ava 2009-09-03 10:45:38 UTC (rev 17440) @@ -62,6 +62,9 @@ oneOf(saveDialog).open(); will(returnValue(filePath)); = + allowing(editor).getSite(); + will(returnValue(null)); + allowing(editor).getEditPartViewer(); will(returnValue(graphicalViewer)); = --===============6981456380232537832==-- From jbosstools-commits at lists.jboss.org Thu Sep 3 06:51:10 2009 Content-Type: multipart/mixed; boundary="===============1894481070077638605==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17441 - branches/jbosstools-3.1.0.M3/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/src/org/jboss/tools/hibernate/ui/diagram/editors/actions/test. Date: Thu, 03 Sep 2009 06:51:10 -0400 Message-ID: <200909031051.n83ApAHf001554@svn01.web.mwc.hst.phx2.redhat.com> --===============1894481070077638605== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vyemialyanchyk Date: 2009-09-03 06:51:10 -0400 (Thu, 03 Sep 2009) New Revision: 17441 Modified: branches/jbosstools-3.1.0.M3/hibernatetools/tests/org.jboss.tools.hibern= ate.ui.test/src/org/jboss/tools/hibernate/ui/diagram/editors/actions/test/E= xportImageActionTest.java Log: try to fix junit test on hudson Modified: branches/jbosstools-3.1.0.M3/hibernatetools/tests/org.jboss.tools= .hibernate.ui.test/src/org/jboss/tools/hibernate/ui/diagram/editors/actions= /test/ExportImageActionTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/hibernatetools/tests/org.jboss.tools.hiber= nate.ui.test/src/org/jboss/tools/hibernate/ui/diagram/editors/actions/test/= ExportImageActionTest.java 2009-09-03 10:45:38 UTC (rev 17440) +++ branches/jbosstools-3.1.0.M3/hibernatetools/tests/org.jboss.tools.hiber= nate.ui.test/src/org/jboss/tools/hibernate/ui/diagram/editors/actions/test/= ExportImageActionTest.java 2009-09-03 10:51:10 UTC (rev 17441) @@ -62,6 +62,9 @@ oneOf(saveDialog).open(); will(returnValue(filePath)); = + allowing(editor).getSite(); + will(returnValue(null)); + allowing(editor).getEditPartViewer(); will(returnValue(graphicalViewer)); = --===============1894481070077638605==-- From jbosstools-commits at lists.jboss.org Thu Sep 3 07:38:36 2009 Content-Type: multipart/mixed; boundary="===============8214347010651165573==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17442 - in trunk/seam/tests/org.jboss.tools.seam.core.test: projects/SeamWebWarTestProject/WebContent/WEB-INF and 3 other directories. Date: Thu, 03 Sep 2009 07:38:36 -0400 Message-ID: <200909031138.n83Bca0t014697@svn01.web.mwc.hst.phx2.redhat.com> --===============8214347010651165573== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dazarov Date: 2009-09-03 07:38:35 -0400 (Thu, 03 Sep 2009) New Revision: 17442 Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestP= roject/WebContent/JBIDE-1631.original trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestP= roject/WebContent/WEB-INF/components.original trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestP= roject/WebContent/abcComponent.original trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestP= roject/src/action/org/domain/SeamWebWarTestProject/entity/abcEntity.original trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestP= roject/src/action/org/domain/SeamWebWarTestProject/session/BbcComponent.ori= ginal trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestP= roject/src/action/org/domain/SeamWebWarTestProject/session/Component12.orig= inal trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestP= roject/src/action/org/domain/SeamWebWarTestProject/session/ContextVariableT= est.original trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestP= roject/src/action/org/domain/SeamWebWarTestProject/session/DuplicateCompone= nt.original trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestP= roject/src/action/org/domain/SeamWebWarTestProject/session/SelectionIndexTe= st.original trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestP= roject/src/action/org/domain/SeamWebWarTestProject/session/SelectionTest.or= iginal trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestP= roject/src/action/org/domain/SeamWebWarTestProject/session/StatefulComponen= t.original trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestP= roject/src/action/org/domain/SeamWebWarTestProject/session/SubclassTestComp= onent.original Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam= /core/test/SeamValidatorsTest.java Log: https://jira.jboss.org/jira/browse/JBIDE-4495 Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarT= estProject/WebContent/JBIDE-1631.original =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/WebContent/JBIDE-1631.original (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/WebContent/JBIDE-1631.original 2009-09-03 11:38:35 UTC (rev 17442) @@ -0,0 +1,14 @@ + + + + + + = + \ No newline at end of file Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarT= estProject/WebContent/WEB-INF/components.original =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/WebContent/WEB-INF/components.original (rev= 0) +++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/WebContent/WEB-INF/components.original 2009-09-03 11:38:35 UTC (rev= 17442) @@ -0,0 +1,63 @@ + + + + + = + + = + + + + = + + = + + /security.drl + + + + = + + + + + + + = + + = + + + + = + + = + + = + Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarT= estProject/WebContent/abcComponent.original =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/WebContent/abcComponent.original (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/WebContent/abcComponent.original 2009-09-03 11:38:35 UTC (rev 17442) @@ -0,0 +1,31 @@ + + + = + + + + + + abcComponent + = + + = + = = + = + + = + + + + + + Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarT= estProject/src/action/org/domain/SeamWebWarTestProject/entity/abcEntity.ori= ginal =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/src/action/org/domain/SeamWebWarTestProject/entity/abcEntity.origin= al (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/src/action/org/domain/SeamWebWarTestProject/entity/abcEntity.origin= al 2009-09-03 11:38:35 UTC (rev 17442) @@ -0,0 +1,55 @@ +package org.domain.SeamWebWarTestProject.entity; + +import javax.ejb.Remove; +import java.io.Serializable; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.GeneratedValue; +import javax.persistence.Version; +import org.hibernate.validator.Length; +import org.jboss.seam.ScopeType; +import org.jboss.seam.annotations.Name; +import org.jboss.seam.annotations.Scope; + +(a)Entity +(a)Scope(ScopeType.EVENT) +(a)Name("abcEntity") +public class abcEntity implements Serializable { + static final long serialVersionUID =3D 1000; + //seam-gen attributes (you should probably edit these) + private Long id; + private Integer version; + private String name; + = + //add additional entity attributes + = + //seam-gen attribute getters/setters with annotations (you probably shoul= d edit) + = + @Id @GeneratedValue + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id =3D id; + } + = + @Version + public Integer getVersion() { + return version; + } + + @Remove + public void removeMethod(){ + = + } + + @Length(max=3D20) + public String getName() { + return name; + } + + public void setName(String name) { + this.name =3D name; + } = +} Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarT= estProject/src/action/org/domain/SeamWebWarTestProject/session/BbcComponent= .original =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/src/action/org/domain/SeamWebWarTestProject/session/BbcComponent.or= iginal (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/src/action/org/domain/SeamWebWarTestProject/session/BbcComponent.or= iginal 2009-09-03 11:38:35 UTC (rev 17442) @@ -0,0 +1,20 @@ +package org.domain.SeamWebWarTestProject.session; + +import org.jboss.seam.annotations.Logger; +import org.jboss.seam.annotations.Name; +import org.jboss.seam.log.Log; + +(a)Name("bbcComponent") +public class BbcComponent { + = + @Logger private Log log; + = + public void bbcComponent() + { + //implement your business logic here + log.info("bbcComponent.bbcComponent() action called"); + } + = + //add additional action methods + = +} Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarT= estProject/src/action/org/domain/SeamWebWarTestProject/session/Component12.= original =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/src/action/org/domain/SeamWebWarTestProject/session/Component12.ori= ginal (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/src/action/org/domain/SeamWebWarTestProject/session/Component12.ori= ginal 2009-09-03 11:38:35 UTC (rev 17442) @@ -0,0 +1,40 @@ +package org.domain.SeamWebWarTestProject.session; + +import java.util.ArrayList; +import java.util.List; + +import org.jboss.seam.annotations.Name; +import org.jboss.seam.annotations.Factory; +import org.jboss.seam.annotations.In; +import org.jboss.seam.annotations.Logger; +import org.jboss.seam.annotations.datamodel.DataModel; +import org.jboss.seam.log.Log; +import org.jboss.seam.core.FacesMessages; + +(a)Name("component12") +public class Component12 { + = + @Logger private Log log; + = + @In FacesMessages facesMessages; + = + @DataModel = + private List messageList=3Dnew ArrayList(); + = + @Factory("messageList12") = + public List findMessages() { + return messageList; + } + = + public List getList(){ + return messageList; + } + + = + public void component12() + { + //implement your business logic here + log.info("component12.component12() action called"); + //facesMessages.add("component12"); + } +} Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarT= estProject/src/action/org/domain/SeamWebWarTestProject/session/ContextVaria= bleTest.original =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/src/action/org/domain/SeamWebWarTestProject/session/ContextVariable= Test.original (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/src/action/org/domain/SeamWebWarTestProject/session/ContextVariable= Test.original 2009-09-03 11:38:35 UTC (rev 17442) @@ -0,0 +1,48 @@ +package org.domain.SeamWebWarTestProject.session; + +import java.util.ArrayList; +import java.util.List; + +import org.jboss.seam.annotations.Factory; +import org.jboss.seam.annotations.Name; +import org.jboss.seam.annotations.Role; +import org.jboss.seam.annotations.In; +import org.jboss.seam.annotations.Out; +import org.jboss.seam.annotations.Logger; +import org.jboss.seam.annotations.datamodel.DataModel; +import org.jboss.seam.log.Log; +import org.jboss.seam.core.FacesMessages; + +(a)Name("contextVariableTest") +(a)Role(name=3D"role1") +public class ContextVariableTest { + = + @Logger private Log log; + = + @In FacesMessages facesMessages; + = + @Out(value=3D"output") + private String output; + = + public void contextVariableTest() + { + //implement your business logic here + log.info("contextVariableTest.contextVariableTest() action called"= ); + } + = + @DataModel = + private List messageList=3Dnew ArrayList(); + + @Factory("messageList") = + public void findMessages() { + = + } + = + public List getList(){ + return messageList; + } + = + public String getOutput(){ + return output; + } +} Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarT= estProject/src/action/org/domain/SeamWebWarTestProject/session/DuplicateCom= ponent.original =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/src/action/org/domain/SeamWebWarTestProject/session/DuplicateCompon= ent.original (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/src/action/org/domain/SeamWebWarTestProject/session/DuplicateCompon= ent.original 2009-09-03 11:38:35 UTC (rev 17442) @@ -0,0 +1,7 @@ +package org.domain.SeamWebWarTestProject.session; + +import org.jboss.seam.annotations.Name; + +(a)Name("duplicateJavaAndXmlComponentName") +public class DuplicateComponent { +} \ No newline at end of file Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarT= estProject/src/action/org/domain/SeamWebWarTestProject/session/SelectionInd= exTest.original =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/src/action/org/domain/SeamWebWarTestProject/session/SelectionIndexT= est.original (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/src/action/org/domain/SeamWebWarTestProject/session/SelectionIndexT= est.original 2009-09-03 11:38:35 UTC (rev 17442) @@ -0,0 +1,42 @@ +package org.domain.SeamWebWarTestProject.session; + +import java.util.ArrayList; +import java.util.List; + +import org.jboss.seam.annotations.Name; +import org.jboss.seam.annotations.In; +import org.jboss.seam.annotations.Logger; +import org.jboss.seam.annotations.datamodel.DataModel; +import org.jboss.seam.annotations.datamodel.DataModelSelectionIndex; +import org.jboss.seam.log.Log; +import org.jboss.seam.core.FacesMessages; + +(a)Name("selectionIndexTest") +public class SelectionIndexTest { + = + @Logger private Log log; + = + @In FacesMessages facesMessages; + + @DataModel = + private List messageList=3Dnew ArrayList(); + + @DataModel = + private List nameList=3Dnew ArrayList(); + = + @DataModelSelectionIndex("messageList") int index; + = + public List getList(){ + return messageList; + } + + public List getNames(){ + return nameList; + } + = + public void selectionIndexTest() + { + //implement your business logic here + log.info("selectionIndexTest.selectionIndexTest() action called"); + } +} Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarT= estProject/src/action/org/domain/SeamWebWarTestProject/session/SelectionTes= t.original =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/src/action/org/domain/SeamWebWarTestProject/session/SelectionTest.o= riginal (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/src/action/org/domain/SeamWebWarTestProject/session/SelectionTest.o= riginal 2009-09-03 11:38:35 UTC (rev 17442) @@ -0,0 +1,42 @@ +package org.domain.SeamWebWarTestProject.session; + +import java.util.ArrayList; +import java.util.List; + +import org.jboss.seam.annotations.Name; +import org.jboss.seam.annotations.In; +import org.jboss.seam.annotations.Logger; +import org.jboss.seam.annotations.datamodel.DataModel; +import org.jboss.seam.annotations.datamodel.DataModelSelection; +import org.jboss.seam.log.Log; +import org.jboss.seam.core.FacesMessages; + +(a)Name("selectionTest") +public class SelectionTest { + = + @Logger private Log log; + = + @In FacesMessages facesMessages; + = + @DataModel = + private List messageList=3Dnew ArrayList(); + + @DataModel = + private List nameList=3Dnew ArrayList(); + = + @DataModelSelection("messageList") String s; + = + public List getList(){ + return messageList; + } + + public List getNames(){ + return nameList; + } + = + public void selectionTest() + { + //implement your business logic here + log.info("selectionTest.selectionTest() action called"); + } +} Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarT= estProject/src/action/org/domain/SeamWebWarTestProject/session/StatefulComp= onent.original =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/src/action/org/domain/SeamWebWarTestProject/session/StatefulCompone= nt.original (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/src/action/org/domain/SeamWebWarTestProject/session/StatefulCompone= nt.original 2009-09-03 11:38:35 UTC (rev 17442) @@ -0,0 +1,52 @@ +package org.domain.SeamWebWarTestProject.session; + +import javax.ejb.Remove; +import javax.ejb.Stateful; + +import org.jboss.seam.ScopeType; +import org.jboss.seam.annotations.Destroy; +import org.jboss.seam.annotations.Logger; +import org.jboss.seam.annotations.Name; +import org.jboss.seam.annotations.Scope; +import org.jboss.seam.log.Log; + +(a)Name("statefulComponent") + +(a)Stateful +(a)Scope(ScopeType.APPLICATION) +public class StatefulComponent { + + private String abc; + = + @Logger private Log log; + = + = + //seam-gen method + public String statefulComponent() + { + //implement your business logic here + log.info("statefulComponent.statefulComponent() action called"); + return "success"; + } + = + //add additional action methods + @Destroy + public void destroyMethod(){ + = + } + + = + @Remove + public void removeMethod(){ + = + } + + public String getAbc() { + return abc; + } + + public void setAbc(String abc) { + this.abc =3D abc; + } + = +} \ No newline at end of file Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarT= estProject/src/action/org/domain/SeamWebWarTestProject/session/SubclassTest= Component.original =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/src/action/org/domain/SeamWebWarTestProject/session/SubclassTestCom= ponent.original (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTest= Project/src/action/org/domain/SeamWebWarTestProject/session/SubclassTestCom= ponent.original 2009-09-03 11:38:35 UTC (rev 17442) @@ -0,0 +1,28 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ + +package org.domain.SeamWebWarTestProject.session; + +import javax.ejb.Stateful; + +import org.jboss.seam.annotations.Destroy; +import org.jboss.seam.annotations.Name; + +/** + * Test component for JBIDE-1696 + * @author Alexey Kazakov + */ +(a)Stateful +(a)Name("testComponentJBIDE1696") = +public class SubclassTestComponent extends SuperclassTestComponent { + + @Destroy public void foo1() {} = +} \ No newline at end of file Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/too= ls/seam/core/test/SeamValidatorsTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/sea= m/core/test/SeamValidatorsTest.java 2009-09-03 10:51:10 UTC (rev 17441) +++ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/sea= m/core/test/SeamValidatorsTest.java 2009-09-03 11:38:35 UTC (rev 17442) @@ -36,6 +36,7 @@ import org.jboss.tools.tests.IMarkerFilter; = public class SeamValidatorsTest extends AbstractResourceMarkerTest { + IProject project =3D null; = public static final String MARKER_TYPE =3D "org.eclipse.wst.validation.pr= oblemmarker"; @@ -63,6 +64,68 @@ this.project =3D project.getProject(); JobUtils.waitForIdle(); } + = + @Override + protected void tearDown() throws Exception { + // restore state + copyContentsFile("src/action/org/domain/SeamWebWarTestProject/session/Su= bclassTestComponent.java", + "src/action/org/domain/SeamWebWarTestProject/session/SubclassTestCompo= nent.original"); + = + copyContentsFile("WebContent/WEB-INF/components.xml", "WebContent/WEB-IN= F/components.original"); + = + copyContentsFile("src/action/org/domain/SeamWebWarTestProject/session/St= atefulComponent.java", + "src/action/org/domain/SeamWebWarTestProject/session/StatefulComponent= .original"); + = + copyContentsFile("src/action/org/domain/SeamWebWarTestProject/session/Bb= cComponent.java", + "src/action/org/domain/SeamWebWarTestProject/session/BbcComponent.orig= inal"); + = + copyContentsFile("WebContent/JBIDE-1631.xhtml", + "WebContent/JBIDE-1631.original"); + = + copyContentsFile("src/action/org/domain/SeamWebWarTestProject/entity/abc= Entity.java", + "src/action/org/domain/SeamWebWarTestProject/entity/abcEntity.original= "); + = + copyContentsFile("src/action/org/domain/SeamWebWarTestProject/session/Co= mponent12.java", + "src/action/org/domain/SeamWebWarTestProject/session/Component12.origi= nal"); + = + copyContentsFile("src/action/org/domain/SeamWebWarTestProject/session/Se= lectionTest.java", + "src/action/org/domain/SeamWebWarTestProject/session/SelectionTest.ori= ginal"); + = + copyContentsFile("src/action/org/domain/SeamWebWarTestProject/session/Se= lectionIndexTest.java", + "src/action/org/domain/SeamWebWarTestProject/session/SelectionIndexTes= t.original"); + = + copyContentsFile("src/action/org/domain/SeamWebWarTestProject/session/Co= ntextVariableTest.java", + "src/action/org/domain/SeamWebWarTestProject/session/ContextVariableTe= st.original"); + = + copyContentsFile("WebContent/abcComponent.xhtml", + "WebContent/abcComponent.original"); + = + copyContentsFile("src/action/org/domain/SeamWebWarTestProject/session/Du= plicateComponent.java", + "src/action/org/domain/SeamWebWarTestProject/session/DuplicateComponen= t.original"); + = + refreshProject(project); + } + = + private void copyContentsFile(String originalName, String newContentName){ + IFile originalFile =3D project.getFile(originalName); + IFile newContentFile =3D project.getFile(newContentName); + = + copyContentsFile(originalFile, newContentFile); + } + = + private void copyContentsFile(IFile originalFile, String newContentName){ + IFile newContentFile =3D project.getFile(newContentName); + = + copyContentsFile(originalFile, newContentFile); + } + = + private void copyContentsFile(IFile originalFile, IFile newContentFile){ + try{ + originalFile.setContents(newContentFile.getContents(), true, false, nul= l); + }catch(Exception e){ + JUnitUtils.fail("Error during changing '"+originalFile.getFullPath()+"'= content to '"+newContentFile.getFullPath()+"'", e); + } + } = private ISeamProject getSeamProject(IProject project) { refreshProject(project); @@ -113,12 +176,9 @@ IFile subclassComponentFile =3D project.getFile("src/action/org/domain/S= eamWebWarTestProject/session/SubclassTestComponent.java"); assertMarkerIsCreated(subclassComponentFile, MARKER_TYPE, "Stateful comp= onent \"testComponentJBIDE1696\" must have a method marked @Remove", 25); IFile superclassComponentFile =3D project.getFile("src/action/org/domain= /SeamWebWarTestProject/session/SuperclassTestComponent.java"); - IFile superclassComponentFileWithRemove =3D project.getFile("src/action/= org/domain/SeamWebWarTestProject/session/SuperclassTestComponent.withRemove= "); - try{ - superclassComponentFile.setContents(superclassComponentFileWithRemove.g= etContents(), true, false, null); - }catch(Exception e){ - JUnitUtils.fail("Error during changing 'SuperclassTestComponent.java' c= ontent to 'SuperclassTestComponent.withRemove'", e); - } + = + copyContentsFile(superclassComponentFile, "src/action/org/domain/SeamWeb= WarTestProject/session/SuperclassTestComponent.withRemove"); + = refreshProject(project); int number =3D getMarkersNumber(subclassComponentFile); assertTrue("We changed super class of component but it still don't see c= hanges.", number =3D=3D 0); @@ -212,29 +272,14 @@ } = public void testComponentWithoutSetter_Validator() throws CoreException { - IFile statefulComponentFile =3D project.getFile("src/action/org/domain/S= eamWebWarTestProject/session/StatefulComponent.java"); IFile componentsFile =3D project.getFile("WebContent/WEB-INF/components.= xml"); = // Component class does not contain setter for property = - IFile componentsFile3 =3D project.getFile("WebContent/WEB-INF/components= .3"); + copyContentsFile(componentsFile, "WebContent/WEB-INF/components.3"); = - try{ - componentsFile.setContents(componentsFile3.getContents(), true, false, = null); - }catch(Exception ex){ - JUnitUtils.fail("Error in changing 'components.xml' content to " + - "'components.3'", ex); - } + copyContentsFile("src/action/org/domain/SeamWebWarTestProject/session/St= atefulComponent.java", "src/action/org/domain/SeamWebWarTestProject/session= /StatefulComponent.5"); = - IFile statefulComponentFile5 =3D project.getFile("src/action/org/domain/= SeamWebWarTestProject/session/StatefulComponent.5"); - - try{ - statefulComponentFile.setContents(statefulComponentFile5.getContents(),= true, false, null); - }catch(Exception ex){ - JUnitUtils.fail("Error in changing 'StatefulComponent.java' content to = " + - "'StatefulComponent.5'", ex); - } - = refreshProject(project); = assertMarkerIsCreated( @@ -399,13 +444,7 @@ markerText, 24); = = - IFile component12File2 =3D project.getFile("src/action/org/domain/SeamWe= bWarTestProject/session/DuplicateFactory"); - try{ - component12File.setContents(component12File2.getContents(), true, false= , null); - }catch(Exception ex){ - JUnitUtils.fail("Error in changing 'Component12File2.java' content to "= + - "'DuplicateFactory'", ex); - } + copyContentsFile(component12File, "src/action/org/domain/SeamWebWarTestP= roject/session/DuplicateFactory"); = refreshProject(project); = @@ -427,21 +466,9 @@ = // Multiple data binder = - IFile selectionTestFile2 =3D project.getFile("src/action/org/domain/Seam= WebWarTestProject/session/SelectionTest.2"); - try{ - selectionTestFile.setContents(selectionTestFile2.getContents(), true, f= alse, null); - }catch(Exception ex){ - JUnitUtils.fail("Error in changing 'SelectionTest.java' content to " + - "'SelectionTest.2'", ex); - } + copyContentsFile(selectionTestFile, "src/action/org/domain/SeamWebWarTes= tProject/session/SelectionTest.2"); = - IFile selectionIndexTestFile2 =3D project.getFile("src/action/org/domain= /SeamWebWarTestProject/session/SelectionIndexTest.2"); - try{ - selectionIndexTestFile.setContents(selectionIndexTestFile2.getContents(= ), true, false, null); - }catch(Exception ex){ - JUnitUtils.fail("Error in changing 'SelectionIndexTest.java' content to= " + - "'SelectionIndexTest.2'", ex); - } + copyContentsFile(selectionIndexTestFile, "src/action/org/domain/SeamWebW= arTestProject/session/SelectionIndexTest.2"); = refreshProject(project); = @@ -479,21 +506,9 @@ IFile selectionIndexTestFile =3D project.getFile("src/action/org/domain/= SeamWebWarTestProject/session/SelectionIndexTest.java"); // Unknown @DataModel/@Out name = - IFile selectionTestFile3 =3D project.getFile("src/action/org/domain/Seam= WebWarTestProject/session/SelectionTest.3"); - try{ - selectionTestFile.setContents(selectionTestFile3.getContents(), true, f= alse, null); - }catch(Exception ex){ - JUnitUtils.fail("Error in changing 'SelectionTest.java' content to " + - "'SelectionTest.3'", ex); - } + copyContentsFile(selectionTestFile, "src/action/org/domain/SeamWebWarTes= tProject/session/SelectionTest.3"); = - IFile selectionIndexTestFile3 =3D project.getFile("src/action/org/domain= /SeamWebWarTestProject/session/SelectionIndexTest.3"); - try{ - selectionIndexTestFile.setContents(selectionIndexTestFile3.getContents(= ), true, false, null); - }catch(Exception ex){ - JUnitUtils.fail("Error in changing 'SelectionIndexTest.java' content to= " + - "'SelectionIndexTest.3'", ex); - } + copyContentsFile(selectionIndexTestFile, "src/action/org/domain/SeamWebW= arTestProject/session/SelectionIndexTest.3"); = refreshProject(project); = @@ -521,13 +536,7 @@ = // Duplicate variable name = - IFile contextVariableTestFile2 =3D project.getFile("src/action/org/domai= n/SeamWebWarTestProject/session/ContextVariableTest.2"); - try{ - contextVariableTestFile.setContents(contextVariableTestFile2.getContent= s(), true, false, null); - }catch(Exception ex){ - JUnitUtils.fail("Error in changing 'ContextVariableTest.java' content t= o " + - "'ContextVariableTest.2'", ex); - } + copyContentsFile(contextVariableTestFile, "src/action/org/domain/SeamWeb= WarTestProject/session/ContextVariableTest.2"); = refreshProject(project); = @@ -607,13 +616,7 @@ = enableUnpairGetterOrSetterValidation(true); = - IFile abcComponentFile2 =3D project.getFile("src/action/org/domain/SeamW= ebWarTestProject/session/AbcComponent.2"); - try{ - abcComponentFile.setContents(abcComponentFile2.getContents(), true, fal= se, null); - }catch(Exception ex){ - JUnitUtils.fail("Error in changing 'abcComponent.java' content to " + - "'abcComponent.2'", ex); - } + copyContentsFile(abcComponentFile, "src/action/org/domain/SeamWebWarTest= Project/session/AbcComponent.2"); = refreshProject(project); = @@ -627,7 +630,6 @@ = public void testPropertyHasOnlyGetter_Validator() throws CoreException { IFile abcComponentXHTMLFile =3D project.getFile("WebContent/abcComponent= .xhtml"); - IFile abcComponentFile =3D project.getFile("src/action/org/domain/SeamWe= bWarTestProject/session/AbcComponent.java"); = String markerText =3D "Property \"actionType\" has only Getter. Setter i= s missing."; = @@ -635,13 +637,7 @@ = enableUnpairGetterOrSetterValidation(true); = - IFile abcComponentFile3 =3D project.getFile("src/action/org/domain/SeamW= ebWarTestProject/session/AbcComponent.3"); - try{ - abcComponentFile.setContents(abcComponentFile3.getContents(), true, fal= se, null); - }catch(Exception ex){ - JUnitUtils.fail("Error in changing 'abcComponent.java' content to " + - "'abcComponent.3'", ex); - } + copyContentsFile("src/action/org/domain/SeamWebWarTestProject/session/Ab= cComponent.java", "src/action/org/domain/SeamWebWarTestProject/session/AbcC= omponent.3"); = refreshProject(project); = @@ -688,13 +684,10 @@ IFile duplicateJavaComponentFile =3D project.getFile("src/action/org/dom= ain/SeamWebWarTestProject/session/DuplicateComponent.java"); IFile componentsXmlFile =3D project.getFile("WebContent/WEB-INF/componen= ts.xml"); = - IFile duplicateComponentsXmlFile =3D project.getFile("WebContent/WEB-INF= /duplicateComponents.test"); - try{ - componentsXmlFile.setContents(duplicateComponentsXmlFile.getContents(),= true, false, null); - }catch(Exception ex){ - JUnitUtils.fail("Error in changing 'components.xml' content to 'duplica= teComponents.test'", ex); - } + copyContentsFile(componentsXmlFile, "WebContent/WEB-INF/duplicateCompone= nts.test"); + = refreshProject(project); + = Integer[] lineNumbers =3D getMarkersNumbersOfLine(duplicateJavaComponent= File, SEAM_MARKER_FILTER); assertEquals("There should be the only one error marker in DuplicateComp= onent.java.", 1, lineNumbers.length); assertEquals("Problem marker has wrong line number", 5, lineNumbers[0].i= ntValue()); @@ -712,15 +705,10 @@ SeamCorePlugin.getDefault().getPreferenceStore().setValue(SeamPreference= s.UNKNOWN_EL_VARIABLE_NAME, SeamPreferences.ERROR); = IFile componentFile =3D project.getFile("src/action/org/domain/SeamWebWa= rTestProject/entity/TestElRevalidation.java"); - IFile newComponentFile =3D project.getFile("src/action/org/domain/SeamWe= bWarTestProject/entity/TestElRevalidation.new"); - IFile originalComponentFile =3D project.getFile("src/action/org/domain/S= eamWebWarTestProject/entity/TestElRevalidation.original"); IFile xhtmlFile =3D project.getFile("WebContent/testElRevalidation.xhtml= "); = - try { - componentFile.setContents(newComponentFile.getContents(), true, false, = null); - } catch(Exception ex) { - JUnitUtils.fail("Error in changing 'TestElRevalidation.new' content to = 'TestElRevalidation.java'", ex); - } + copyContentsFile(componentFile, "src/action/org/domain/SeamWebWarTestPro= ject/entity/TestElRevalidation.new"); + refreshProject(project); = int n =3D getMarkersNumber(xhtmlFile, SEAM_MARKER_FILTER); @@ -728,11 +716,8 @@ = SeamCorePlugin.getDefault().getPreferenceStore().setValue(SeamPreference= s.RE_VALIDATE_UNRESOLVED_EL, SeamPreferences.DISABLE); // Check if the validator was not invoked. - try { - componentFile.setContents(originalComponentFile.getContents(), true, fa= lse, null); - } catch(Exception ex) { - JUnitUtils.fail("Error in changing 'TestElRevalidation.original' conten= t to 'TestElRevalidation.java'", ex); - } + copyContentsFile(componentFile, "src/action/org/domain/SeamWebWarTestPro= ject/entity/TestElRevalidation.original"); + refreshProject(project); = n =3D getMarkersNumber(xhtmlFile, SEAM_MARKER_FILTER); --===============8214347010651165573==-- From jbosstools-commits at lists.jboss.org Thu Sep 3 07:43:45 2009 Content-Type: multipart/mixed; boundary="===============6115589192487229825==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17443 - in trunk/seam: plugins/org.jboss.tools.seam.ui and 4 other directories. Date: Thu, 03 Sep 2009 07:43:45 -0400 Message-ID: <200909031143.n83BhjhA015719@svn01.web.mwc.hst.phx2.redhat.com> --===============6115589192487229825== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dazarov Date: 2009-09-03 07:43:45 -0400 (Thu, 03 Sep 2009) New Revision: 17443 Added: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/s= earch/ELSearchQuery.java trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/s= earch/ELSearchResult.java Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/refactoring/SeamRefactorSeacher.java trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/refactoring/SeamRenameProcessor.java trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/a= ctions/FindUsagesInELAction.java trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/r= efactoring/SeamRefactorContributionFactory.java trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/s= earch/SeamTreeContentProvider.java trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam= /core/test/refactoring/SeamComponentRefactoringTest.java Log: https://jira.jboss.org/jira/browse/JBIDE-4771 Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/refactoring/SeamRefactorSeacher.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSeacher.java 2009-09-03 11:38:35 UTC (= rev 17442) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSeacher.java 2009-09-03 11:43:45 UTC (= rev 17443) @@ -38,6 +38,7 @@ import org.eclipse.wst.xml.core.internal.regions.DOMRegionContext; import org.jboss.tools.common.el.core.model.ELInstance; import org.jboss.tools.common.el.core.model.ELInvocationExpression; +import org.jboss.tools.common.el.core.model.ELMethodInvocation; import org.jboss.tools.common.el.core.model.ELModel; import org.jboss.tools.common.el.core.model.ELPropertyInvocation; import org.jboss.tools.common.el.core.parser.ELParser; @@ -67,6 +68,9 @@ } = public void findELReferences(){ + if(baseFile =3D=3D null) + return; + = SeamProjectsSet projectsSet =3D new SeamProjectsSet(baseFile.getProject(= )); = IProject[] projects =3D projectsSet.getAllProjects(); @@ -240,9 +244,16 @@ ELModel model =3D parser.parse(string); for (ELInstance instance : model.getInstances()) { for(ELInvocationExpression ie : instance.getExpression().getInvocation= s()){ - ELPropertyInvocation pi =3D findComponentReference(ie); - if(pi !=3D null) - match(file, pi); + ELInvocationExpression expression =3D findComponentReference(ie); + if(expression !=3D null){ + if(expression instanceof ELPropertyInvocation){ + ELPropertyInvocation pi =3D (ELPropertyInvocation)expression; + match(file, offset+pi.getStartPosition(), pi.getName().getStart()+p= i.getName().getLength()-pi.getStartPosition()); + }else if(expression instanceof ELMethodInvocation){ + ELMethodInvocation mi =3D (ELMethodInvocation)expression; + match(file, offset+mi.getStartPosition(), mi.getName().getStart()+m= i.getName().getLength()-mi.getStartPosition()); + } + } } } } @@ -278,7 +289,7 @@ key =3D false; = if(key && token.startsWith(propertyName)){ - match(file, token); + match(file, offset, token.length()); } } = @@ -288,12 +299,12 @@ } = = - private ELPropertyInvocation findComponentReference(ELInvocationExpressio= n invocationExpression){ + protected ELInvocationExpression findComponentReference(ELInvocationExpre= ssion invocationExpression){ ELInvocationExpression invExp =3D invocationExpression; while(invExp !=3D null){ if(invExp instanceof ELPropertyInvocation){ if(((ELPropertyInvocation)invExp).getQualifiedName() !=3D null && ((EL= PropertyInvocation)invExp).getQualifiedName().equals(propertyName)) - return (ELPropertyInvocation)invExp; + return invExp; else invExp =3D invExp.getLeft(); = @@ -306,7 +317,5 @@ = protected abstract boolean isFileCorrect(IFile file); = - protected abstract void match(IFile file, ELPropertyInvocation elProperty= Invokation); - = - protected abstract void match(IFile file, String token); + protected abstract void match(IFile file, int offset, int length); } Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/refactoring/SeamRenameProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRenameProcessor.java 2009-09-03 11:38:35 UTC (= rev 17442) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRenameProcessor.java 2009-09-03 11:43:45 UTC (= rev 17443) @@ -10,27 +10,15 @@ ************************************************************************= ******/ package org.jboss.tools.seam.internal.core.refactoring; = -import java.io.IOException; import java.util.ArrayList; import java.util.Set; -import java.util.StringTokenizer; = -import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IFolder; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.jdt.core.IJavaProject; -import org.eclipse.jdt.core.JavaModelException; -import org.eclipse.jdt.internal.ui.text.FastJavaPartitionScanner; -import org.eclipse.jdt.ui.text.IJavaPartitions; -import org.eclipse.jface.text.BadLocationException; -import org.eclipse.jface.text.Document; -import org.eclipse.jface.text.rules.IToken; -import org.eclipse.jface.text.rules.Token; import org.eclipse.ltk.core.refactoring.CompositeChange; import org.eclipse.ltk.core.refactoring.RefactoringStatus; import org.eclipse.ltk.core.refactoring.TextFileChange; @@ -39,24 +27,7 @@ import org.eclipse.text.edits.MultiTextEdit; import org.eclipse.text.edits.ReplaceEdit; import org.eclipse.text.edits.TextEdit; -import org.eclipse.wst.sse.core.StructuredModelManager; -import org.eclipse.wst.sse.core.internal.provisional.IModelManager; -import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel; -import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocum= entRegion; -import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion; -import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegionList; -import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument; -import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel; -import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode; -import org.eclipse.wst.xml.core.internal.regions.DOMRegionContext; -import org.jboss.tools.common.el.core.model.ELInstance; -import org.jboss.tools.common.el.core.model.ELInvocationExpression; -import org.jboss.tools.common.el.core.model.ELModel; -import org.jboss.tools.common.el.core.model.ELPropertyInvocation; -import org.jboss.tools.common.el.core.parser.ELParser; -import org.jboss.tools.common.el.core.parser.ELParserUtil; import org.jboss.tools.common.model.project.ext.ITextSourceReference; -import org.jboss.tools.common.model.util.EclipseResourceUtil; import org.jboss.tools.common.util.FileUtil; import org.jboss.tools.seam.core.BijectedAttributeType; import org.jboss.tools.seam.core.IBijectedAttribute; @@ -71,8 +42,6 @@ import org.jboss.tools.seam.internal.core.SeamComponentDeclaration; import org.jboss.tools.seam.internal.core.scanner.java.SeamAnnotations; import org.jboss.tools.seam.internal.core.validation.SeamContextValidation= Helper; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; = /** * @author Daniel Azarov @@ -98,6 +67,15 @@ private String newName; private String oldName; = + private SeamSeacher seacher =3D null; + = + protected SeamSeacher getSeacher(){ + if(seacher =3D=3D null){ + seacher =3D new SeamSeacher(declarationFile, getOldName()); + } + return seacher; + } + = public void setNewName(String newName){ this.newName =3D newName; } @@ -373,64 +351,6 @@ } = = - // we need to find references in .java .xml .xhtml .jsp .properties files - protected void findELReferences(){ - if(declarationFile =3D=3D null) - return; - = - IProject[] projects =3D projectsSet.getAllProjects(); - for (IProject project : projects) { - if(project =3D=3D null) continue; - = - IJavaProject javaProject =3D EclipseResourceUtil.getJavaProject(project= ); - = - // searching java, xml and property files in source folders - if(javaProject !=3D null){ - for(IResource resource : EclipseResourceUtil.getJavaSourceRoots(projec= t)){ - if(resource instanceof IFolder) - scanForJava((IFolder) resource); - else if(resource instanceof IFile) - scanForJava((IFile) resource); - } - } - = - // searching jsp, xhtml and xml files in WebContent folders - if(project.equals(projectsSet.getWarProject())) - scan(projectsSet.getDefaultViewsFolder()); - else if(project.equals(projectsSet.getEarProject())) - scan(projectsSet.getDefaultEarViewsFolder()); - else{ - scan(project); - } - } - } - = - private void scan(IProject project){ - IJavaProject javaProject =3D EclipseResourceUtil.getJavaProject(project); - if(javaProject =3D=3D null) - return; - = - IResource[] sources =3D EclipseResourceUtil.getJavaSourceRoots(project); - IPath output =3D null; - try{ - output =3D javaProject.getOutputLocation(); - }catch(JavaModelException ex){ - SeamCorePlugin.getDefault().logError(ex); - } - = - try{ - for(IResource resource : project.members()){ - if(resource instanceof IFolder){ - if(checkFolder(resource, sources, output)) - scan((IFolder) resource); - }else if(resource instanceof IFile) - scan((IFile) resource); - } - }catch(CoreException ex){ - SeamCorePlugin.getDefault().logError(ex); - } - } - = private boolean checkFolder(IResource resource, IResource[] sources, IPat= h output){ for(IResource folder : sources){ if(resource.equals(folder)) @@ -443,215 +363,6 @@ return true; } = - private void scanForJava(IContainer container){ - try{ - for(IResource resource : container.members()){ - if(resource instanceof IFolder) - scanForJava((IFolder) resource); - else if(resource instanceof IFile) - scanForJava((IFile) resource); - } - }catch(CoreException ex){ - SeamCorePlugin.getDefault().logError(ex); - } - } - - private void scan(IContainer container){ - try{ - for(IResource resource : container.members()){ - if(resource instanceof IFolder) - scan((IFolder) resource); - else if(resource instanceof IFile) - scan((IFile) resource); - } - }catch(CoreException ex){ - SeamCorePlugin.getDefault().logError(ex); - } - } - = - private void scanForJava(IFile file){ - String ext =3D file.getFileExtension(); - = - if(!isFileCorrect(file)) - return; - = - String content =3D null; - try { - content =3D FileUtil.readStream(file.getContents()); - } catch (CoreException e) { - SeamCorePlugin.getPluginLog().logError(e); - return; - } - if(JAVA_EXT.equalsIgnoreCase(ext)){ - scanJava(file, content); - }else if(XML_EXT.equalsIgnoreCase(ext)) - scanDOM(file, content); - else if(PROPERTIES_EXT.equalsIgnoreCase(ext)) - scanProperties(file, content); - } - - private void scan(IFile file){ - String ext =3D file.getFileExtension(); - = - if(!isFileCorrect(file)) - return; - = - String content =3D null; - try { - content =3D FileUtil.readStream(file.getContents()); - } catch (CoreException e) { - SeamCorePlugin.getPluginLog().logError(e); - return; - } - if(XML_EXT.equalsIgnoreCase(ext) || XHTML_EXT.equalsIgnoreCase(ext) || J= SP_EXT.equalsIgnoreCase(ext)) - scanDOM(file, content); - } - = - private void scanJava(IFile file, String content){ - try { - FastJavaPartitionScanner scaner =3D new FastJavaPartitionScanner(); - Document document =3D new Document(content); - scaner.setRange(document, 0, document.getLength()); - IToken token =3D scaner.nextToken(); - while(token!=3Dnull && token!=3DToken.EOF) { - if(IJavaPartitions.JAVA_STRING.equals(token.getData())) { - int length =3D scaner.getTokenLength(); - int offset =3D scaner.getTokenOffset(); - String value =3D document.get(offset, length); - if(value.indexOf('{')>-1) { - scanString(file, value, offset); - } - } - token =3D scaner.nextToken(); - } - } catch (BadLocationException e) { - SeamCorePlugin.getDefault().logError(e); - } - } - = - private void scanDOM(IFile file, String content){ - IModelManager manager =3D StructuredModelManager.getModelManager(); - if(manager =3D=3D null) { - return; - } - IStructuredModel model =3D null; = - try { - model =3D manager.getModelForRead(file); - if (model instanceof IDOMModel) { - IDOMModel domModel =3D (IDOMModel) model; - IDOMDocument document =3D domModel.getDocument(); - scanChildNodes(file, document); - } - } catch (CoreException e) { - SeamCorePlugin.getDefault().logError(e); - } catch (IOException e) { - SeamCorePlugin.getDefault().logError(e); - } finally { - if (model !=3D null) { - model.releaseFromRead(); - } - } - } - = - private void scanChildNodes(IFile file, Node parent) { - NodeList children =3D parent.getChildNodes(); - for(int i=3D0; i-1) { //$NON-NLS-1$ - int offset =3D node.getStartOffset() + region.getStart(); - scanString(file, text, offset); - } - } - } - } - - // looking for component references in EL - private void scanString(IFile file, String string, int offset) { - int startEl =3D string.indexOf("#{"); //$NON-NLS-1$ - if(startEl>-1) { - ELParser parser =3D ELParserUtil.getJbossFactory().createParser(); - ELModel model =3D parser.parse(string); - for (ELInstance instance : model.getInstances()) { - for(ELInvocationExpression ie : instance.getExpression().getInvocation= s()){ - ELPropertyInvocation pi =3D findComponentReference(ie); - if(pi !=3D null) - change(file, offset+pi.getStartPosition(), pi.getName().getStart()+p= i.getName().getLength()-pi.getStartPosition(), newName); - } - } - } - } - = - private ELPropertyInvocation findComponentReference(ELInvocationExpressio= n invocationExpression){ - ELInvocationExpression invExp =3D invocationExpression; - while(invExp !=3D null){ - if(invExp instanceof ELPropertyInvocation){ - if(((ELPropertyInvocation)invExp).getQualifiedName() !=3D null && ((EL= PropertyInvocation)invExp).getQualifiedName().equals(getOldName())) - return (ELPropertyInvocation)invExp; - else - invExp =3D invExp.getLeft(); - = - }else{ - invExp =3D invExp.getLeft(); - } - } - return null; - } - = - private void scanProperties(IFile file, String content){ - scanString(file, content, 0); - = - if(!file.getName().equals(SEAM_PROPERTIES_FILE)) - return; - = - StringTokenizer tokenizer =3D new StringTokenizer(content, "#=3D \t\r\n\= f", true); //$NON-NLS-1$ - = - String lastToken =3D "\n"; //$NON-NLS-1$ - int offset =3D 0; - boolean comment =3D false; - boolean key =3D true; - = - while(tokenizer.hasMoreTokens()){ - String token =3D tokenizer.nextToken("#=3D \t\r\n\f"); //$NON-NLS-1$ - if(token.equals("\r")) //$NON-NLS-1$ - token =3D "\n"; //$NON-NLS-1$ - = - if(token.equals("#") && lastToken.equals("\n")) //$NON-NLS-1$ //$NON-NL= S-2$ - comment =3D true; - else if(token.equals("\n") && comment) //$NON-NLS-1$ - comment =3D false; - = - if(!comment){ - if(!token.equals("\n") && lastToken.equals("\n")) //$NON-NLS-1$ //$NON= -NLS-2$ - key =3D true; - else if(key && (token.equals("=3D") || token.equals(" "))) //$NON-NLS-= 1$ //$NON-NLS-2$ - key =3D false; - = - if(key && token.startsWith(getOldName())){ - String changeText =3D token.replaceFirst(getOldName(), getNewName()); - change(file, offset, token.length(), changeText); - } - } - = - lastToken =3D token; - offset +=3D token.length(); - } - } - = protected void renameComponent(IProgressMonitor pm, ISeamComponent compon= ent)throws CoreException{ pm.beginTask("", 3); = @@ -665,7 +376,7 @@ = pm.worked(1); = - findELReferences(); + getSeacher().findELReferences(); = pm.done(); } @@ -681,7 +392,7 @@ = pm.worked(1); = - findELReferences(); + getSeacher().findELReferences(); = pm.done(); } @@ -722,4 +433,20 @@ keys.add(key); } } + = + class SeamSeacher extends SeamRefactorSeacher{ + public SeamSeacher(IFile declarationFile, String oldName){ + super(declarationFile, oldName); + } + + @Override + protected boolean isFileCorrect(IFile file) { + return SeamRenameProcessor.this.isFileCorrect(file); + } + + @Override + protected void match(IFile file, int offset, int length) { + change(file, offset, length, newName); + } + } } Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml 2009-09-03 11:38:= 35 UTC (rev 17442) +++ trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml 2009-09-03 11:43:= 45 UTC (rev 17443) @@ -517,6 +517,16 @@ = + + + + = + --===============7956619062932254775== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dazarov Date: 2009-09-03 08:03:44 -0400 (Thu, 03 Sep 2009) New Revision: 17444 Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/s= earch/ELSearchResult.java Log: https://jira.jboss.org/jira/browse/JBIDE-4771 Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/se= am/ui/search/ELSearchResult.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= search/ELSearchResult.java 2009-09-03 11:43:45 UTC (rev 17443) +++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= search/ELSearchResult.java 2009-09-03 12:03:44 UTC (rev 17444) @@ -1,3 +1,13 @@ +/*************************************************************************= ****** + * Copyright (c) 2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ package org.jboss.tools.seam.ui.search; = import org.eclipse.core.resources.IFile; --===============7956619062932254775==-- From jbosstools-commits at lists.jboss.org Thu Sep 3 12:50:05 2009 Content-Type: multipart/mixed; boundary="===============2625151050008701005==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17445 - trunk/jsf/docs/userguide/en/images/visual_page. Date: Thu, 03 Sep 2009 12:50:05 -0400 Message-ID: <200909031650.n83Go5Hu007649@svn01.web.mwc.hst.phx2.redhat.com> --===============2625151050008701005== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: smukhina Date: 2009-09-03 12:50:05 -0400 (Thu, 03 Sep 2009) New Revision: 17445 Modified: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_23a.png trunk/jsf/docs/userguide/en/images/visual_page/visual_page_23b.png Log: https://jira.jboss.org/jira/browse/JBDS-843 Context menu representation for= visual part of VPE is redesigned - images are updated = Modified: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_23a.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_23b.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============2625151050008701005==-- From jbosstools-commits at lists.jboss.org Thu Sep 3 13:25:50 2009 Content-Type: multipart/mixed; boundary="===============6562846078333797693==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17446 - branches/jbosstools-3.1.0.M3/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test. Date: Thu, 03 Sep 2009 13:25:50 -0400 Message-ID: <200909031725.n83HPo3b017223@svn01.web.mwc.hst.phx2.redhat.com> --===============6562846078333797693== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: mareshkau Date: 2009-09-03 13:25:50 -0400 (Thu, 03 Sep 2009) New Revision: 17446 Modified: branches/jbosstools-3.1.0.M3/vpe/tests/org.jboss.tools.vpe.ui.test/src/o= rg/jboss/tools/vpe/ui/test/ComponentContentTest.java Log: Fix for VPE failing junit tests Modified: branches/jbosstools-3.1.0.M3/vpe/tests/org.jboss.tools.vpe.ui.tes= t/src/org/jboss/tools/vpe/ui/test/ComponentContentTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/vpe/tests/org.jboss.tools.vpe.ui.test/src/= org/jboss/tools/vpe/ui/test/ComponentContentTest.java 2009-09-03 16:50:05 U= TC (rev 17445) +++ branches/jbosstools-3.1.0.M3/vpe/tests/org.jboss.tools.vpe.ui.test/src/= org/jboss/tools/vpe/ui/test/ComponentContentTest.java 2009-09-03 17:25:50 U= TC (rev 17446) @@ -180,7 +180,19 @@ controller.getVisualBuilder().setShowInvisibleTags(true); controller.visualRefresh(); = - TestUtil.waitForIdle(); +// TestUtil.waitForIdle(); + //added by Maksim Areshkau, when some non VPE background job = + //TestUtil.waitForIdle() can be throw exception in time when vpe works n= ormally + long start =3D System.currentTimeMillis(); + visualElement =3D findElementById(controller, elementId); + while (visualElement=3D=3Dnull) { + TestUtil.delay(500); + if ( (System.currentTimeMillis()-start) > TestUtil.MAX_IDLE) { + throw new RuntimeException("A long running task detected"); //$NON-NLS-= 1$ + } + visualElement =3D findElementById(controller, elementId); + } + = = // find visual element and check if it is not null visualElement =3D findElementById(controller, elementId); --===============6562846078333797693==-- From jbosstools-commits at lists.jboss.org Thu Sep 3 13:36:12 2009 Content-Type: multipart/mixed; boundary="===============5682195262231379370==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17447 - in trunk/smooks/tests/org.jboss.tools.smooks.test: META-INF and 1 other directory. Date: Thu, 03 Sep 2009 13:36:12 -0400 Message-ID: <200909031736.n83HaCuY019525@svn01.web.mwc.hst.phx2.redhat.com> --===============5682195262231379370== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-03 13:36:11 -0400 (Thu, 03 Sep 2009) New Revision: 17447 Modified: trunk/smooks/tests/org.jboss.tools.smooks.test/.project trunk/smooks/tests/org.jboss.tools.smooks.test/META-INF/MANIFEST.MF Log: smooks.test was renamed to smooks.core.test Modified: trunk/smooks/tests/org.jboss.tools.smooks.test/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/tests/org.jboss.tools.smooks.test/.project 2009-09-03 17:2= 5:50 UTC (rev 17446) +++ trunk/smooks/tests/org.jboss.tools.smooks.test/.project 2009-09-03 17:3= 6:11 UTC (rev 17447) @@ -1,28 +1,28 @@ - - - org.jboss.tools.smooks.test - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - + + + org.jboss.tools.smooks.core.test + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + Modified: trunk/smooks/tests/org.jboss.tools.smooks.test/META-INF/MANIFEST.= MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/tests/org.jboss.tools.smooks.test/META-INF/MANIFEST.MF 200= 9-09-03 17:25:50 UTC (rev 17446) +++ trunk/smooks/tests/org.jboss.tools.smooks.test/META-INF/MANIFEST.MF 200= 9-09-03 17:36:11 UTC (rev 17447) @@ -1,7 +1,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %Bundle-Name.0 -Bundle-SymbolicName: org.jboss.tools.smooks.test +Bundle-SymbolicName: org.jboss.tools.smooks.core.test Bundle-Version: 1.0.0 Require-Bundle: org.junit, org.eclipse.ui, --===============5682195262231379370==-- From jbosstools-commits at lists.jboss.org Thu Sep 3 13:36:48 2009 Content-Type: multipart/mixed; boundary="===============4176325517380782909==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17448 - trunk/smooks/tests. Date: Thu, 03 Sep 2009 13:36:48 -0400 Message-ID: <200909031736.n83Hamri019646@svn01.web.mwc.hst.phx2.redhat.com> --===============4176325517380782909== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-03 13:36:48 -0400 (Thu, 03 Sep 2009) New Revision: 17448 Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/ Removed: trunk/smooks/tests/org.jboss.tools.smooks.test/ Log: Copied: trunk/smooks/tests/org.jboss.tools.smooks.core.test (from rev 17447= , trunk/smooks/tests/org.jboss.tools.smooks.test) --===============4176325517380782909==-- From jbosstools-commits at lists.jboss.org Thu Sep 3 14:00:45 2009 Content-Type: multipart/mixed; boundary="===============5361804620833031866==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17449 - in trunk/smooks/features: org.jboss.smooks.test.feature and 1 other directory. Date: Thu, 03 Sep 2009 14:00:45 -0400 Message-ID: <200909031800.n83I0jq9024635@svn01.web.mwc.hst.phx2.redhat.com> --===============5361804620833031866== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-03 14:00:44 -0400 (Thu, 03 Sep 2009) New Revision: 17449 Added: trunk/smooks/features/org.jboss.smooks.test.feature/ trunk/smooks/features/org.jboss.smooks.test.feature/branches/ trunk/smooks/features/org.jboss.smooks.test.feature/tags/ trunk/smooks/features/org.jboss.smooks.test.feature/trunk/ Log: Share project "org.jboss.smooks.test.feature" into "https://svn.jboss.org/r= epos/jbosstools" --===============5361804620833031866==-- From jbosstools-commits at lists.jboss.org Thu Sep 3 14:01:48 2009 Content-Type: multipart/mixed; boundary="===============2878011118376483090==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17450 - trunk/smooks/features/org.jboss.smooks.test.feature/trunk. Date: Thu, 03 Sep 2009 14:01:48 -0400 Message-ID: <200909031801.n83I1mhk024882@svn01.web.mwc.hst.phx2.redhat.com> --===============2878011118376483090== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-03 14:01:48 -0400 (Thu, 03 Sep 2009) New Revision: 17450 Added: trunk/smooks/features/org.jboss.smooks.test.feature/trunk/.project trunk/smooks/features/org.jboss.smooks.test.feature/trunk/build.properti= es trunk/smooks/features/org.jboss.smooks.test.feature/trunk/feature.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4243 Include smooks test in build = and test execution fetaure for tests has been added Added: trunk/smooks/features/org.jboss.smooks.test.feature/trunk/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/features/org.jboss.smooks.test.feature/trunk/.project = (rev 0) +++ trunk/smooks/features/org.jboss.smooks.test.feature/trunk/.project 2009= -09-03 18:01:48 UTC (rev 17450) @@ -0,0 +1,17 @@ + + + org.jboss.smooks.test.feature + + + + + + org.eclipse.pde.FeatureBuilder + + + + + + org.eclipse.pde.FeatureNature + + Property changes on: trunk/smooks/features/org.jboss.smooks.test.feature/tr= unk/.project ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/smooks/features/org.jboss.smooks.test.feature/trunk/build.prop= erties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/features/org.jboss.smooks.test.feature/trunk/build.propert= ies (rev 0) +++ trunk/smooks/features/org.jboss.smooks.test.feature/trunk/build.propert= ies 2009-09-03 18:01:48 UTC (rev 17450) @@ -0,0 +1 @@ +bin.includes =3D feature.xml Property changes on: trunk/smooks/features/org.jboss.smooks.test.feature/tr= unk/build.properties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/smooks/features/org.jboss.smooks.test.feature/trunk/feature.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/features/org.jboss.smooks.test.feature/trunk/feature.xml = (rev 0) +++ trunk/smooks/features/org.jboss.smooks.test.feature/trunk/feature.xml 2= 009-09-03 18:01:48 UTC (rev 17450) @@ -0,0 +1,27 @@ + + + + + [Enter Feature Description here.] + + + + [Enter Copyright Description here.] + + + + [Enter License Description here.] + + + + + Property changes on: trunk/smooks/features/org.jboss.smooks.test.feature/tr= unk/feature.xml ___________________________________________________________________ Name: svn:mime-type + text/plain --===============2878011118376483090==-- From jbosstools-commits at lists.jboss.org Thu Sep 3 14:34:45 2009 Content-Type: multipart/mixed; boundary="===============7647478462626668769==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17451 - trunk/smooks/features/org.jboss.smooks.test.feature/trunk. Date: Thu, 03 Sep 2009 14:34:44 -0400 Message-ID: <200909031834.n83IYig6029591@svn01.web.mwc.hst.phx2.redhat.com> --===============7647478462626668769== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-03 14:34:44 -0400 (Thu, 03 Sep 2009) New Revision: 17451 Modified: trunk/smooks/features/org.jboss.smooks.test.feature/trunk/.project trunk/smooks/features/org.jboss.smooks.test.feature/trunk/feature.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4243 Include smooks test in build = and test execution test feature name fixed to meet usual pattern Modified: trunk/smooks/features/org.jboss.smooks.test.feature/trunk/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/features/org.jboss.smooks.test.feature/trunk/.project 2009= -09-03 18:01:48 UTC (rev 17450) +++ trunk/smooks/features/org.jboss.smooks.test.feature/trunk/.project 2009= -09-03 18:34:44 UTC (rev 17451) @@ -1,6 +1,6 @@ - org.jboss.smooks.test.feature + org.jboss.tools.smooks.test.feature Modified: trunk/smooks/features/org.jboss.smooks.test.feature/trunk/feature= .xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/features/org.jboss.smooks.test.feature/trunk/feature.xml 2= 009-09-03 18:01:48 UTC (rev 17450) +++ trunk/smooks/features/org.jboss.smooks.test.feature/trunk/feature.xml 2= 009-09-03 18:34:44 UTC (rev 17451) @@ -1,6 +1,6 @@ --===============7647478462626668769==-- From jbosstools-commits at lists.jboss.org Thu Sep 3 14:35:55 2009 Content-Type: multipart/mixed; boundary="===============2006273346059200242==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17452 - trunk/smooks/features. Date: Thu, 03 Sep 2009 14:35:55 -0400 Message-ID: <200909031835.n83IZtVx029948@svn01.web.mwc.hst.phx2.redhat.com> --===============2006273346059200242== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-03 14:35:55 -0400 (Thu, 03 Sep 2009) New Revision: 17452 Added: trunk/smooks/features/org.jboss.tools.smooks.test.feature/ Removed: trunk/smooks/features/org.jboss.smooks.test.feature/ Log: Copied: trunk/smooks/features/org.jboss.tools.smooks.test.feature (from rev= 17451, trunk/smooks/features/org.jboss.smooks.test.feature) --===============2006273346059200242==-- From jbosstools-commits at lists.jboss.org Thu Sep 3 14:39:27 2009 Content-Type: multipart/mixed; boundary="===============7615185573090364294==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17453 - trunk/smooks/features/org.jboss.tools.smooks.test.feature. Date: Thu, 03 Sep 2009 14:39:27 -0400 Message-ID: <200909031839.n83IdRJI030780@svn01.web.mwc.hst.phx2.redhat.com> --===============7615185573090364294== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-03 14:39:27 -0400 (Thu, 03 Sep 2009) New Revision: 17453 Removed: trunk/smooks/features/org.jboss.tools.smooks.test.feature/branches/ trunk/smooks/features/org.jboss.tools.smooks.test.feature/tags/ Log: --===============7615185573090364294==-- From jbosstools-commits at lists.jboss.org Thu Sep 3 14:40:54 2009 Content-Type: multipart/mixed; boundary="===============9027019035836991038==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17454 - in trunk/smooks/features/org.jboss.tools.smooks.test.feature: trunk and 1 other directory. Date: Thu, 03 Sep 2009 14:40:54 -0400 Message-ID: <200909031840.n83Iesrs031114@svn01.web.mwc.hst.phx2.redhat.com> --===============9027019035836991038== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-03 14:40:54 -0400 (Thu, 03 Sep 2009) New Revision: 17454 Added: trunk/smooks/features/org.jboss.tools.smooks.test.feature/.project trunk/smooks/features/org.jboss.tools.smooks.test.feature/build.properti= es trunk/smooks/features/org.jboss.tools.smooks.test.feature/feature.xml Removed: trunk/smooks/features/org.jboss.tools.smooks.test.feature/trunk/.project trunk/smooks/features/org.jboss.tools.smooks.test.feature/trunk/build.pr= operties trunk/smooks/features/org.jboss.tools.smooks.test.feature/trunk/feature.= xml Log: Copied: trunk/smooks/features/org.jboss.tools.smooks.test.feature/.project = (from rev 17453, trunk/smooks/features/org.jboss.tools.smooks.test.feature/= trunk/.project) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/features/org.jboss.tools.smooks.test.feature/.project = (rev 0) +++ trunk/smooks/features/org.jboss.tools.smooks.test.feature/.project 2009= -09-03 18:40:54 UTC (rev 17454) @@ -0,0 +1,17 @@ + + + org.jboss.tools.smooks.test.feature + + + + + + org.eclipse.pde.FeatureBuilder + + + + + + org.eclipse.pde.FeatureNature + + Copied: trunk/smooks/features/org.jboss.tools.smooks.test.feature/build.pro= perties (from rev 17453, trunk/smooks/features/org.jboss.tools.smooks.test.= feature/trunk/build.properties) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/features/org.jboss.tools.smooks.test.feature/build.propert= ies (rev 0) +++ trunk/smooks/features/org.jboss.tools.smooks.test.feature/build.propert= ies 2009-09-03 18:40:54 UTC (rev 17454) @@ -0,0 +1 @@ +bin.includes =3D feature.xml Copied: trunk/smooks/features/org.jboss.tools.smooks.test.feature/feature.x= ml (from rev 17453, trunk/smooks/features/org.jboss.tools.smooks.test.featu= re/trunk/feature.xml) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/features/org.jboss.tools.smooks.test.feature/feature.xml = (rev 0) +++ trunk/smooks/features/org.jboss.tools.smooks.test.feature/feature.xml 2= 009-09-03 18:40:54 UTC (rev 17454) @@ -0,0 +1,27 @@ + + + + + [Enter Feature Description here.] + + + + [Enter Copyright Description here.] + + + + [Enter License Description here.] + + + + + Deleted: trunk/smooks/features/org.jboss.tools.smooks.test.feature/trunk/.p= roject =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/features/org.jboss.tools.smooks.test.feature/trunk/.projec= t 2009-09-03 18:39:27 UTC (rev 17453) +++ trunk/smooks/features/org.jboss.tools.smooks.test.feature/trunk/.projec= t 2009-09-03 18:40:54 UTC (rev 17454) @@ -1,17 +0,0 @@ - - - org.jboss.tools.smooks.test.feature - - - - - - org.eclipse.pde.FeatureBuilder - - - - - - org.eclipse.pde.FeatureNature - - Deleted: trunk/smooks/features/org.jboss.tools.smooks.test.feature/trunk/bu= ild.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/features/org.jboss.tools.smooks.test.feature/trunk/build.p= roperties 2009-09-03 18:39:27 UTC (rev 17453) +++ trunk/smooks/features/org.jboss.tools.smooks.test.feature/trunk/build.p= roperties 2009-09-03 18:40:54 UTC (rev 17454) @@ -1 +0,0 @@ -bin.includes =3D feature.xml Deleted: trunk/smooks/features/org.jboss.tools.smooks.test.feature/trunk/fe= ature.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/features/org.jboss.tools.smooks.test.feature/trunk/feature= .xml 2009-09-03 18:39:27 UTC (rev 17453) +++ trunk/smooks/features/org.jboss.tools.smooks.test.feature/trunk/feature= .xml 2009-09-03 18:40:54 UTC (rev 17454) @@ -1,27 +0,0 @@ - - - - - [Enter Feature Description here.] - - - - [Enter Copyright Description here.] - - - - [Enter License Description here.] - - - - - --===============9027019035836991038==-- From jbosstools-commits at lists.jboss.org Thu Sep 3 14:41:56 2009 Content-Type: multipart/mixed; boundary="===============3764443166228524333==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17455 - trunk/smooks/features/org.jboss.tools.smooks.test.feature. Date: Thu, 03 Sep 2009 14:41:55 -0400 Message-ID: <200909031841.n83Ift2c031160@svn01.web.mwc.hst.phx2.redhat.com> --===============3764443166228524333== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-03 14:41:55 -0400 (Thu, 03 Sep 2009) New Revision: 17455 Removed: trunk/smooks/features/org.jboss.tools.smooks.test.feature/trunk/ Log: --===============3764443166228524333==-- From jbosstools-commits at lists.jboss.org Thu Sep 3 15:11:02 2009 Content-Type: multipart/mixed; boundary="===============3124696074178296556==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17456 - in trunk/smooks/tests/org.jboss.tools.smooks.core.test: src/org/jboss/tools/smooks and 2 other directories. Date: Thu, 03 Sep 2009 15:11:02 -0400 Message-ID: <200909031911.n83JB2Pw002280@svn01.web.mwc.hst.phx2.redhat.com> --===============3124696074178296556== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-03 15:11:02 -0400 (Thu, 03 Sep 2009) New Revision: 17456 Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/= smooks/core/ trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/= smooks/core/test/ trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/= smooks/core/test/SmooksCoreAllTests.java Modified: trunk/smooks/tests/org.jboss.tools.smooks.core.test/META-INF/MANIFEST.MF Log: https://jira.jboss.org/jira/browse/JBIDE-4243 Include smooks test in build = and test execution smooks test suite Modified: trunk/smooks/tests/org.jboss.tools.smooks.core.test/META-INF/MANI= FEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/tests/org.jboss.tools.smooks.core.test/META-INF/MANIFEST.M= F 2009-09-03 18:41:55 UTC (rev 17455) +++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/META-INF/MANIFEST.M= F 2009-09-03 19:11:02 UTC (rev 17456) @@ -4,19 +4,22 @@ Bundle-SymbolicName: org.jboss.tools.smooks.core.test Bundle-Version: 1.0.0 Require-Bundle: org.junit, - org.eclipse.ui, org.eclipse.core.runtime, org.eclipse.core.resources, - org.eclipse.xsd, org.eclipse.xsd.edit, - org.eclipse.emf, org.eclipse.emf.ecore.edit, org.eclipse.emf.edit.ui, org.jboss.tools.smooks.ui, - org.jboss.tools.smooks.core + org.jboss.tools.smooks.core, + org.jboss.tools.tests Eclipse-LazyStart: true Bundle-ClassPath: lib/dom4j-1.6.1.jar, . Bundle-Vendor: %Bundle-Vendor.0 Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Export-Package: org.jboss.tools.smooks.core.test, + org.jboss.tools.smooks.test.csvparser, + org.jboss.tools.smooks.test.ediparser, + org.jboss.tools.smooks.test.jsonparse, + org.jboss.tools.smooks.test.model11 Added: trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/to= ols/smooks/core/test/SmooksCoreAllTests.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools= /smooks/core/test/SmooksCoreAllTests.java (rev 0) +++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools= /smooks/core/test/SmooksCoreAllTests.java 2009-09-03 19:11:02 UTC (rev 1745= 6) @@ -0,0 +1,45 @@ +package org.jboss.tools.smooks.core.test; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +import org.jboss.tools.smooks.test.csvparser.CsvParserTest; +import org.jboss.tools.smooks.test.ediparser.EDIParserTest; +import org.jboss.tools.smooks.test.jsonparse.JsonParserTest; +import org.jboss.tools.smooks.test.model11.BindingConfigFileTestCase; +import org.jboss.tools.smooks.test.model11.Csv2XMLConfigFileTestCase; +import org.jboss.tools.smooks.test.model11.DBExtractTransformConfigFileTes= tCase; +import org.jboss.tools.smooks.test.model11.DatasourcesConfigFileTestCase; +import org.jboss.tools.smooks.test.model11.EDI2JavaConfigFileTestCase; +import org.jboss.tools.smooks.test.model11.EdiOrderparserConfigFileTestCas= e; +import org.jboss.tools.smooks.test.model11.ParseConfigFileTestCase; +import org.jboss.tools.tests.AbstractPluginsLoadTest; + +public class SmooksCoreAllTests extends TestCase { + public static Test suite () { + TestSuite suite =3D new TestSuite(SmooksCoreAllTests.class.getName()); + suite.addTestSuite(SmooksPluginsLoadTest.class); + suite.addTestSuite(CsvParserTest.class); + suite.addTestSuite(EDIParserTest.class); + suite.addTestSuite(JsonParserTest.class); + suite.addTestSuite(BindingConfigFileTestCase.class); + suite.addTestSuite(DatasourcesConfigFileTestCase.class); + suite.addTestSuite(Csv2XMLConfigFileTestCase.class); + suite.addTestSuite(DatasourcesConfigFileTestCase.class); + suite.addTestSuite(DBExtractTransformConfigFileTestCase.class); + suite.addTestSuite(EDI2JavaConfigFileTestCase.class); + suite.addTestSuite(EdiOrderparserConfigFileTestCase.class); + suite.addTestSuite(ParseConfigFileTestCase.class); + return suite; + } + = + static public class SmooksPluginsLoadTest extends AbstractPluginsLoadTest= { + = + public SmooksPluginsLoadTest() {} + = + public void testBirtPluginsAreResolvedAndActivated() { + testBundlesAreLoadedFor("org.jboss.tools.smooks.feature"); + } + } +} Property changes on: trunk/smooks/tests/org.jboss.tools.smooks.core.test/sr= c/org/jboss/tools/smooks/core/test/SmooksCoreAllTests.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============3124696074178296556==-- From jbosstools-commits at lists.jboss.org Thu Sep 3 15:41:58 2009 Content-Type: multipart/mixed; boundary="===============1885935889144060010==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17457 - trunk/as/tests/org.jboss.ide.eclipse.as.archives.integration.test/META-INF. Date: Thu, 03 Sep 2009 15:41:58 -0400 Message-ID: <200909031941.n83Jfwve006871@svn01.web.mwc.hst.phx2.redhat.com> --===============1885935889144060010== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-03 15:41:58 -0400 (Thu, 03 Sep 2009) New Revision: 17457 Modified: trunk/as/tests/org.jboss.ide.eclipse.as.archives.integration.test/META-I= NF/MANIFEST.MF Log: https://jira.jboss.org/jira/browse/JBIDE-4124 Add AS / Archives Integration= test project to build switched to junit 3 instead of junit4 to fix test execution error Modified: trunk/as/tests/org.jboss.ide.eclipse.as.archives.integration.test= /META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/tests/org.jboss.ide.eclipse.as.archives.integration.test/META-= INF/MANIFEST.MF 2009-09-03 19:11:02 UTC (rev 17456) +++ trunk/as/tests/org.jboss.ide.eclipse.as.archives.integration.test/META-= INF/MANIFEST.MF 2009-09-03 19:41:58 UTC (rev 17457) @@ -9,7 +9,6 @@ Bundle-Vendor: %Bundle-Vendor.0 Bundle-Localization: plugin Require-Bundle: org.eclipse.core.runtime, - org.junit4, org.eclipse.core.resources;bundle-version=3D"3.4.2", org.eclipse.jdt;bundle-version=3D"3.4.2", org.eclipse.jdt.core;bundle-version=3D"3.4.4", @@ -20,6 +19,7 @@ org.jboss.ide.eclipse.archives.core;bundle-version=3D"2.0.0", org.jboss.ide.eclipse.archives.ui;bundle-version=3D"1.0.0", org.eclipse.jface;bundle-version=3D"3.4.2", - org.jboss.tools.tests;bundle-version=3D"2.0.0" + org.jboss.tools.tests;bundle-version=3D"2.0.0", + org.junit;bundle-version=3D"3.8.2" Bundle-RequiredExecutionEnvironment: J2SE-1.5 Export-Package: org.jboss.ide.eclipse.as.archives.integration.test --===============1885935889144060010==-- From jbosstools-commits at lists.jboss.org Thu Sep 3 19:28:27 2009 Content-Type: multipart/mixed; boundary="===============4109595172433393015==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17458 - in trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd: jpdl/editor and 1 other directories. Date: Thu, 03 Sep 2009 19:28:27 -0400 Message-ID: <200909032328.n83NSRf9026718@svn01.web.mwc.hst.phx2.redhat.com> --===============4109595172433393015== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: koen.aers(a)jboss.com Date: 2009-09-03 19:28:27 -0400 (Thu, 03 Sep 2009) New Revision: 17458 Modified: trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/common/editor/Abstra= ctContentProvider.java trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/common/editor/Conten= tProvider.java trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/common/editor/Editor= .java trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/common/editor/GraphP= age.java trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/editor/JpdlCont= entProvider.java trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/editor/JpdlEdit= or.java trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/pf/editor/PageFlowEd= itor.java Log: JBIDE-3915: jBPM Eclipse plugin can't save graphical view if gpd.xml is mar= ked as read only Modified: trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/common/editor= /AbstractContentProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/common/editor/Abstr= actContentProvider.java 2009-09-03 19:41:58 UTC (rev 17457) +++ trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/common/editor/Abstr= actContentProvider.java 2009-09-03 23:28:27 UTC (rev 17458) @@ -81,14 +81,21 @@ return buffer.toString(); } = - protected String getNotationInfoFileName(String semanticInfoFileName) { + public String getNotationInfoFileName(String semanticInfoFileName) { return ".gpd." + semanticInfoFileName; } - - protected String getSemanticInfoFileName(String notationInfoFileName) { - return notationInfoFileName.substring(5); + = + public String getDiagramImageFileName(String semanticInfoFileName) { + String result; + int index =3D semanticInfoFileName.indexOf(".xml"); + result =3D index > -1 ? semanticInfoFileName.substring(0, index) : seman= ticInfoFileName; + return result + ".jpg"; } = +// public String getSemanticInfoFileName(String notationInfoFileName) { +// return notationInfoFileName.substring(5); +// } + protected void processRootContainer(RootContainer rootContainer, Element = notationInfo) { addDimension(rootContainer, notationInfo); addNodes(rootContainer, notationInfo); Modified: trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/common/editor= /ContentProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/common/editor/Conte= ntProvider.java 2009-09-03 19:41:58 UTC (rev 17457) +++ trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/common/editor/Conte= ntProvider.java 2009-09-03 23:28:27 UTC (rev 17458) @@ -8,4 +8,7 @@ boolean saveToInput(IEditorInput input, RootContainer rootContainer); void addNotationInfo(RootContainer rootContainer, IEditorInput input); = + String getNotationInfoFileName(String semanticInfoFileName); + String getDiagramImageFileName(String semanticInfoFileName); + = } Modified: trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/common/editor= /Editor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/common/editor/Edito= r.java 2009-09-03 19:41:58 UTC (rev 17457) +++ trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/common/editor/Edito= r.java 2009-09-03 23:28:27 UTC (rev 17458) @@ -1,7 +1,13 @@ package org.jbpm.gd.common.editor; = +import java.util.ArrayList; import java.util.EventObject; = +import org.eclipse.core.resources.IContainer; +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IFolder; +import org.eclipse.core.resources.ResourceAttributes; +import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.gef.DefaultEditDomain; import org.eclipse.gef.EditDomain; @@ -11,6 +17,7 @@ import org.eclipse.jface.action.IMenuManager; import org.eclipse.jface.action.MenuManager; import org.eclipse.jface.action.Separator; +import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.viewers.ISelection; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Menu; @@ -24,6 +31,7 @@ import org.eclipse.ui.IWorkbenchActionConstants; import org.eclipse.ui.IWorkbenchPart; import org.eclipse.ui.PartInitException; +import org.eclipse.ui.part.FileEditorInput; import org.eclipse.ui.views.contentoutline.IContentOutlinePage; import org.eclipse.ui.views.properties.IPropertySheetPage; import org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageCont= ributor; @@ -84,6 +92,7 @@ initSourcePage(); initGraphPage(); setActivePage(0); + checkReadOnly(); } = protected void addPage(int index, IEditorPart part, String label) { @@ -198,11 +207,15 @@ = private void handleCommandStackChanged() { getActionRegistry().updateStackActions(); - if (!isDirty() && getCommandStack().isDirty()) { + if (!isDirty() && getCommandStack().isDirty() && editAllowed()) { isDirty =3D true; firePropertyChange(IEditorPart.PROP_DIRTY); } } + = + private boolean editAllowed() { + return true; + } = protected void pageChange(int newPageIndex) { if (newPageIndex =3D=3D 0) { @@ -302,6 +315,7 @@ } = public void doSave(IProgressMonitor monitor) { + if (!checkReadOnly()) return; super.doSave(monitor); getGraphPage().doSave(monitor); boolean saved =3D getContentProvider().saveToInput(getEditorInput(), get= RootContainer()); @@ -316,12 +330,53 @@ super.dispose(); } = - public abstract String getDefaultImageFileName(); - protected SelectionSynchronizer createSelectionSynchronizer() { return new SelectionSynchronizer(); = } = + private boolean checkReadOnly() { + IFile inputFile =3D ((FileEditorInput)getEditorInput()).getFile(); + IFolder inputFolder =3D (IFolder)inputFile.getParent(); + IFile notationInfoFile =3D inputFolder.getFile(getContentProvider().getN= otationInfoFileName(inputFile.getName())); + IFile diagramImageFile =3D inputFolder.getFile(getContentProvider().getD= iagramImageFileName(inputFile.getName())); + String readOnlyFiles =3D ""; + ArrayList readOnlyFilesList =3D new ArrayList(); + if (inputFile.isReadOnly()) { + readOnlyFiles +=3D ("- " + inputFile.getFullPath().toOSString() + "\n"); + readOnlyFilesList.add(inputFile); = + } + if (notationInfoFile.exists() && notationInfoFile.isReadOnly()) { + readOnlyFiles +=3D ("- " + notationInfoFile.getFullPath().toOSString() = + "\n"); + readOnlyFilesList.add(notationInfoFile); + } + if (diagramImageFile.exists() && diagramImageFile.isReadOnly()) { + readOnlyFiles +=3D ("- " + diagramImageFile.getFullPath().toOSString() = + "\n"); + readOnlyFilesList.add(diagramImageFile); + } + if (readOnlyFilesList.isEmpty()) return true; + boolean answer =3D MessageDialog.openQuestion( + getSite().getShell(), = + "Read-only Input Files Detected", = + "The following files have a read-only indicator which needs to be chan= ged to read-write in order to be able to save the process correctly.\n\n" + + readOnlyFiles + "\n" + + "Do you want to perform this change now?"); + if (answer) { + try { + ResourceAttributes resourceAttributes =3D new ResourceAttributes(); + resourceAttributes.setReadOnly(false); + for (int i =3D 0; i < readOnlyFilesList.size(); i++) { + ((IFile)readOnlyFilesList.get(i)).setResourceAttributes(resourceAttri= butes); + } + return false; + } catch (CoreException e) { + Logger.logError("Error while trying to set files writeable", e); + return true; + } + } else { + return true; + } + } + = protected abstract ContentProvider createContentProvider(); protected abstract SemanticElement createMainElement(); protected abstract GraphicalViewer createGraphicalViewer(); Modified: trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/common/editor= /GraphPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/common/editor/Graph= Page.java 2009-09-03 19:41:58 UTC (rev 17457) +++ trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/common/editor/Graph= Page.java 2009-09-03 23:28:27 UTC (rev 17458) @@ -131,18 +131,13 @@ } } = - private String getImageSavePath() { + public String getImageSavePath() { IFile file =3D ((FileEditorInput)getEditorInput()).getFile(); - String name =3D file.getName(); - if (name.startsWith(".gpd.") && name.length() > 7) { - name =3D name.substring(5, name.length() - 3) + "jpg"; = - } else { - name =3D editor.getDefaultImageFileName(); - } + String name =3D editor.getContentProvider().getDiagramImageFileName(file= .getName()); IPath path =3D file.getRawLocation().removeLastSegments(1).append(name); return path.toOSString(); } - + = public void doSaveAs() { } = Modified: trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/editor/J= pdlContentProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/editor/JpdlCon= tentProvider.java 2009-09-03 19:41:58 UTC (rev 17457) +++ trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/editor/JpdlCon= tentProvider.java 2009-09-03 23:28:27 UTC (rev 17458) @@ -36,7 +36,7 @@ = public class JpdlContentProvider extends AbstractContentProvider{ = - protected String getNotationInfoFileName(String semanticInfoFileName) { + public String getNotationInfoFileName(String semanticInfoFileName) { if ("processdefinition.xml".equals(semanticInfoFileName)) { return "gpd.xml"; } else { @@ -44,14 +44,22 @@ } } = - protected String getSemanticInfoFileName(String notationInfoFileName) { - if ("gpd.xml".equals(notationInfoFileName)) { - return "processdefinition.xml"; + public String getDiagramImageFileName(String semanticInfoFileName) { + if ("processdefinition.xml".equals(semanticInfoFileName)) { + return "processimage.jpg"; } else { - return super.getSemanticInfoFileName(notationInfoFileName); + return super.getDiagramImageFileName(semanticInfoFileName); } } = +// public String getSemanticInfoFileName(String notationInfoFileName) { +// if ("gpd.xml".equals(notationInfoFileName)) { +// return "processdefinition.xml"; +// } else { +// return super.getSemanticInfoFileName(notationInfoFileName); +// } +// } + protected void addNodes(NodeContainer nodeContainer, Element notationInfo= ) { NodeElementContainer nodeElementContainer =3D (NodeElementContainer)node= Container.getSemanticElement(); addNodes(nodeContainer, nodeElementContainer.getNodeElements(), notation= Info); Modified: trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/editor/J= pdlEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/editor/JpdlEdi= tor.java 2009-09-03 19:41:58 UTC (rev 17457) +++ trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/editor/JpdlEdi= tor.java 2009-09-03 23:28:27 UTC (rev 17458) @@ -144,8 +144,4 @@ super.dispose(); } = - public String getDefaultImageFileName() { - return "processimage.jpg"; - } - } Modified: trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/pf/editor/Pag= eFlowEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/pf/editor/PageFlowE= ditor.java 2009-09-03 19:41:58 UTC (rev 17457) +++ trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/pf/editor/PageFlowE= ditor.java 2009-09-03 23:28:27 UTC (rev 17458) @@ -1,6 +1,5 @@ package org.jbpm.gd.pf.editor; = -import org.eclipse.ui.part.FileEditorInput; import org.jbpm.gd.common.editor.ContentProvider; import org.jbpm.gd.common.editor.Editor; import org.jbpm.gd.common.editor.GraphicalViewer; @@ -11,13 +10,6 @@ = public class PageFlowEditor extends Editor { = - public String getDefaultImageFileName() { - String str =3D ((FileEditorInput)getEditorInput()).getName(); - int index =3D str.indexOf(".xml"); - str =3D index > -1 ? str.substring(0, index) : str; - return str + ".jpg"; - } - protected ContentProvider createContentProvider() { return new PageFlowContentProvider(); } --===============4109595172433393015==-- From jbosstools-commits at lists.jboss.org Fri Sep 4 07:39:26 2009 Content-Type: multipart/mixed; boundary="===============8310329114647421322==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17459 - trunk/common/plugins/org.jboss.tools.common.text.ext. Date: Fri, 04 Sep 2009 07:39:26 -0400 Message-ID: <200909041139.n84BdQ6t007966@svn01.web.mwc.hst.phx2.redhat.com> --===============8310329114647421322== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dazarov Date: 2009-09-04 07:39:25 -0400 (Fri, 04 Sep 2009) New Revision: 17459 Modified: trunk/common/plugins/org.jboss.tools.common.text.ext/plugin.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4380 Modified: trunk/common/plugins/org.jboss.tools.common.text.ext/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.text.ext/plugin.xml 2009-09= -03 23:28:27 UTC (rev 17458) +++ trunk/common/plugins/org.jboss.tools.common.text.ext/plugin.xml 2009-09= -04 11:39:25 UTC (rev 17459) @@ -235,12 +235,16 @@ + + + + --===============8310329114647421322==-- From jbosstools-commits at lists.jboss.org Fri Sep 4 10:11:33 2009 Content-Type: multipart/mixed; boundary="===============7119810780782728097==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17460 - in trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects: CAForELinStyleTest/WebContent/WEB-INF/lib and 4 other directories. Date: Fri, 04 Sep 2009 10:11:33 -0400 Message-ID: <200909041411.n84EBXJO000968@svn01.web.mwc.hst.phx2.redhat.com> --===============7119810780782728097== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-04 10:11:32 -0400 (Fri, 04 Sep 2009) New Revision: 17460 Removed: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinStyleTest= /WebContent/WEB-INF/lib/common-annotations.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinStyleTest= /WebContent/WEB-INF/lib/commons-beanutils.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinStyleTest= /WebContent/WEB-INF/lib/commons-collections.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinStyleTest= /WebContent/WEB-INF/lib/commons-digester.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinStyleTest= /WebContent/WEB-INF/lib/commons-logging.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinStyleTest= /WebContent/WEB-INF/lib/standard.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/WebCon= tent/WEB-INF/lib/common-annotations.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/WebCon= tent/WEB-INF/lib/commons-beanutils.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/WebCon= tent/WEB-INF/lib/commons-collections.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/WebCon= tent/WEB-INF/lib/commons-digester.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/WebCon= tent/WEB-INF/lib/commons-logging.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/WebCon= tent/WEB-INF/lib/standard.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBuilderTe= st/WebContent/WEB-INF/classes/ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBuilderTe= st/WebContent/WEB-INF/lib/common-annotations.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBuilderTe= st/WebContent/WEB-INF/lib/commons-beanutils.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBuilderTe= st/WebContent/WEB-INF/lib/commons-collections.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBuilderTe= st/WebContent/WEB-INF/lib/commons-digester.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBuilderTe= st/WebContent/WEB-INF/lib/commons-logging.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBuilderTe= st/WebContent/WEB-INF/lib/standard.jar Modified: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinStyleTest= /.project trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.= project Log: JBIDE-4833: Reduce a number of jars in org.jboss.tools.jst.jsp.test\project= s. Unused jars are removed Modified: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinSt= yleTest/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinStyleTes= t/.project 2009-09-04 11:39:25 UTC (rev 17459) +++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinStyleTes= t/.project 2009-09-04 14:11:32 UTC (rev 17460) @@ -15,6 +15,11 @@ + + org.jboss.tools.jst.web.kb.kbbuilder + + + org.eclipse.jem.workbench.JavaEMFNature @@ -22,5 +27,6 @@ org.eclipse.wst.common.modulecore.ModuleCoreNature org.jboss.tools.jsf.jsfnature org.eclipse.wst.common.project.facet.core.nature + org.jboss.tools.jst.web.kb.kbnature Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinSty= leTest/WebContent/WEB-INF/lib/common-annotations.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinSty= leTest/WebContent/WEB-INF/lib/commons-beanutils.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinSty= leTest/WebContent/WEB-INF/lib/commons-collections.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinSty= leTest/WebContent/WEB-INF/lib/commons-digester.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinSty= leTest/WebContent/WEB-INF/lib/commons-logging.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinSty= leTest/WebContent/WEB-INF/lib/standard.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/= WebContent/WEB-INF/lib/common-annotations.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/= WebContent/WEB-INF/lib/commons-beanutils.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/= WebContent/WEB-INF/lib/commons-collections.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/= WebContent/WEB-INF/lib/commons-digester.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/= WebContent/WEB-INF/lib/commons-logging.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/= WebContent/WEB-INF/lib/standard.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide170= 4Test/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/= .project 2009-09-04 11:39:25 UTC (rev 17459) +++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/= .project 2009-09-04 14:11:32 UTC (rev 17460) @@ -15,6 +15,11 @@ + + org.jboss.tools.jst.web.kb.kbbuilder + + + org.eclipse.jem.workbench.JavaEMFNature @@ -22,5 +27,6 @@ org.eclipse.wst.common.modulecore.ModuleCoreNature org.jboss.tools.jsf.jsfnature org.eclipse.wst.common.project.facet.core.nature + org.jboss.tools.jst.web.kb.kbnature Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBui= lderTest/WebContent/WEB-INF/lib/common-annotations.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBui= lderTest/WebContent/WEB-INF/lib/commons-beanutils.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBui= lderTest/WebContent/WEB-INF/lib/commons-collections.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBui= lderTest/WebContent/WEB-INF/lib/commons-digester.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBui= lderTest/WebContent/WEB-INF/lib/commons-logging.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBui= lderTest/WebContent/WEB-INF/lib/standard.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============7119810780782728097==-- From jbosstools-commits at lists.jboss.org Fri Sep 4 10:20:38 2009 Content-Type: multipart/mixed; boundary="===============2929619115845988219==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17461 - trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test. Date: Fri, 04 Sep 2009 10:20:37 -0400 Message-ID: <200909041420.n84EKblY002564@svn01.web.mwc.hst.phx2.redhat.com> --===============2929619115845988219== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: mareshkau Date: 2009-09-04 10:20:37 -0400 (Fri, 04 Sep 2009) New Revision: 17461 Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/t= est/ComponentContentTest.java Log: fixing errors in junit tests Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/v= pe/ui/test/ComponentContentTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/= test/ComponentContentTest.java 2009-09-04 14:11:32 UTC (rev 17460) +++ trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/= test/ComponentContentTest.java 2009-09-04 14:20:37 UTC (rev 17461) @@ -180,10 +180,8 @@ controller.getVisualBuilder().setShowInvisibleTags(true); controller.visualRefresh(); = - TestUtil.waitForIdle(); - // find visual element and check if it is not null - visualElement =3D findElementById(controller, elementId); + visualElement =3D findElementById(controller, elementId,TestUtil.MAX_IDL= E); assertNotNull(visualElement); = // generate text for invisible tag @@ -312,8 +310,29 @@ * = * @param controller * @param elementId + * @param idle try element for some time period, for example when we need + * to wait for refresh job * @return */ + protected nsIDOMElement findElementById(VpeController controller, + String elementId, long idle) { + long start =3D System.currentTimeMillis(); + nsIDOMElement result =3D null; + while (result=3D=3Dnull) { + result =3D findElementById(controller, elementId); + TestUtil.delay(50); + if (result=3D=3Dnull && ((System.currentTimeMillis()-start) > idle) ) = + throw new RuntimeException("A long running task detected"); //$NON-NLS= -1$ + } + return result; + } = + /** + * find visual element by "id" entered in source part of vpe + * = + * @param controller + * @param elementId + * @return + */ protected nsIDOMNode findNode(VpeController controller, Node node) { = VpeNodeMapping nodeMapping =3D controller.getDomMapping().getNodeMapping( --===============2929619115845988219==-- From jbosstools-commits at lists.jboss.org Fri Sep 4 10:21:08 2009 Content-Type: multipart/mixed; boundary="===============5739760467228876917==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17462 - in trunk/hibernatetools: tests/org.jboss.tools.hibernate.ui.test/src/org/jboss/tools/hibernate/ui/diagram/editors/actions/test and 1 other directory. Date: Fri, 04 Sep 2009 10:21:08 -0400 Message-ID: <200909041421.n84EL8GW002671@svn01.web.mwc.hst.phx2.redhat.com> --===============5739760467228876917== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vyemialyanchyk Date: 2009-09-04 10:21:08 -0400 (Fri, 04 Sep 2009) New Revision: 17462 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/actions/ExportImageAction.java trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/src/org/jbo= ss/tools/hibernate/ui/diagram/editors/actions/test/ExportImageActionTest.ja= va Log: try to fix junit test on hudson Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/actions/ExportImageAction.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ExportImageAction.java 2009-09-= 04 14:20:37 UTC (rev 17461) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ExportImageAction.java 2009-09-= 04 14:21:08 UTC (rev 17462) @@ -29,6 +29,7 @@ import org.eclipse.swt.graphics.ImageData; import org.eclipse.swt.graphics.ImageLoader; import org.eclipse.swt.widgets.FileDialog; +import org.hibernate.eclipse.console.HibernateConsolePlugin; import org.jboss.tools.hibernate.ui.diagram.DiagramViewerMessages; import org.jboss.tools.hibernate.ui.diagram.editors.DiagramViewer; = @@ -40,6 +41,7 @@ DiagramViewerMessages.ExportImageAction_jpg_format, DiagramViewerMessage= s.ExportImageAction_bmp_format }; = private FileDialog saveDialog =3D null; + private boolean showErrDialog =3D true; public static final ImageDescriptor img =3D = ImageDescriptor.createFromFile(DiagramViewer.class, "icons/export.png");= //$NON-NLS-1$ = @@ -60,6 +62,10 @@ this.saveDialog =3D saveDialog; } = + public void setShowErrDialog(boolean showErrDialog) { + this.showErrDialog =3D showErrDialog; + } + public void run() { = if (saveDialog =3D=3D null) { @@ -91,9 +97,11 @@ outStream.write(imageData); outStream.flush(); } catch (Exception e) { - MessageDialog.openInformation(getDiagramViewer().getSite().getShell(), + HibernateConsolePlugin.getDefault().logErrorMessage("ExportImageAction"= , e); //$NON-NLS-1$ + if (showErrDialog) { + MessageDialog.openInformation(getDiagramViewer().getSite().getShell(), DiagramViewerMessages.ExportImageAction_error, DiagramViewerMessages.= ExportImageAction_failed_to_export_image + e.getMessage()); - return; + } } finally { if (outStream !=3D null) { Modified: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/src/= org/jboss/tools/hibernate/ui/diagram/editors/actions/test/ExportImageAction= Test.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/src/org/jb= oss/tools/hibernate/ui/diagram/editors/actions/test/ExportImageActionTest.j= ava 2009-09-04 14:20:37 UTC (rev 17461) +++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/src/org/jb= oss/tools/hibernate/ui/diagram/editors/actions/test/ExportImageActionTest.j= ava 2009-09-04 14:21:08 UTC (rev 17462) @@ -96,6 +96,7 @@ }); final ExportImageAction exportImageAction =3D new ExportImageAction(edit= or); exportImageAction.setSaveDialog(saveDialog); + exportImageAction.setShowErrDialog(false); exportImageAction.run(); // test is the file created File file =3D new File(filePath); --===============5739760467228876917==-- From jbosstools-commits at lists.jboss.org Fri Sep 4 10:28:13 2009 Content-Type: multipart/mixed; boundary="===============1432798852850907153==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17463 - branches/jbosstools-3.1.0.M3/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/diagram/editors/actions. Date: Fri, 04 Sep 2009 10:28:13 -0400 Message-ID: <200909041428.n84ESDq2003885@svn01.web.mwc.hst.phx2.redhat.com> --===============1432798852850907153== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vyemialyanchyk Date: 2009-09-04 10:28:13 -0400 (Fri, 04 Sep 2009) New Revision: 17463 Modified: branches/jbosstools-3.1.0.M3/hibernatetools/plugins/org.jboss.tools.hibe= rnate.ui/src/org/jboss/tools/hibernate/ui/diagram/editors/actions/ExportIma= geAction.java Log: try to fix junit test on hudson Modified: branches/jbosstools-3.1.0.M3/hibernatetools/plugins/org.jboss.too= ls.hibernate.ui/src/org/jboss/tools/hibernate/ui/diagram/editors/actions/Ex= portImageAction.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/hibernatetools/plugins/org.jboss.tools.hib= ernate.ui/src/org/jboss/tools/hibernate/ui/diagram/editors/actions/ExportIm= ageAction.java 2009-09-04 14:21:08 UTC (rev 17462) +++ branches/jbosstools-3.1.0.M3/hibernatetools/plugins/org.jboss.tools.hib= ernate.ui/src/org/jboss/tools/hibernate/ui/diagram/editors/actions/ExportIm= ageAction.java 2009-09-04 14:28:13 UTC (rev 17463) @@ -29,6 +29,7 @@ import org.eclipse.swt.graphics.ImageData; import org.eclipse.swt.graphics.ImageLoader; import org.eclipse.swt.widgets.FileDialog; +import org.hibernate.eclipse.console.HibernateConsolePlugin; import org.jboss.tools.hibernate.ui.diagram.DiagramViewerMessages; import org.jboss.tools.hibernate.ui.diagram.editors.DiagramViewer; = @@ -40,6 +41,7 @@ DiagramViewerMessages.ExportImageAction_jpg_format, DiagramViewerMessage= s.ExportImageAction_bmp_format }; = private FileDialog saveDialog =3D null; + private boolean showErrDialog =3D true; public static final ImageDescriptor img =3D = ImageDescriptor.createFromFile(DiagramViewer.class, "icons/export.png");= //$NON-NLS-1$ = @@ -60,6 +62,10 @@ this.saveDialog =3D saveDialog; } = + public void setShowErrDialog(boolean showErrDialog) { + this.showErrDialog =3D showErrDialog; + } + public void run() { = if (saveDialog =3D=3D null) { @@ -91,9 +97,11 @@ outStream.write(imageData); outStream.flush(); } catch (Exception e) { - MessageDialog.openInformation(getDiagramViewer().getSite().getShell(), + HibernateConsolePlugin.getDefault().logErrorMessage("ExportImageAction"= , e); //$NON-NLS-1$ + if (showErrDialog) { + MessageDialog.openInformation(getDiagramViewer().getSite().getShell(), DiagramViewerMessages.ExportImageAction_error, DiagramViewerMessages.= ExportImageAction_failed_to_export_image + e.getMessage()); - return; + } } finally { if (outStream !=3D null) { --===============1432798852850907153==-- From jbosstools-commits at lists.jboss.org Fri Sep 4 10:29:31 2009 Content-Type: multipart/mixed; boundary="===============4665258039911983827==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17464 - trunk/jsf/docs/userguide/en/modules. Date: Fri, 04 Sep 2009 10:29:31 -0400 Message-ID: <200909041429.n84ETVnR004059@svn01.web.mwc.hst.phx2.redhat.com> --===============4665258039911983827== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: smukhina Date: 2009-09-04 10:29:31 -0400 (Fri, 04 Sep 2009) New Revision: 17464 Modified: trunk/jsf/docs/userguide/en/modules/editors.xml Log: https://jira.jboss.org/jira/browse/JBDS-840 CSS editor is redesigned - perp= ective is already described, added a link from CSS editor chapter to CSS pe= rspective chapter = Modified: trunk/jsf/docs/userguide/en/modules/editors.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/docs/userguide/en/modules/editors.xml 2009-09-04 14:28:13 UTC= (rev 17463) +++ trunk/jsf/docs/userguide/en/modules/editors.xml 2009-09-04 14:29:31 UTC= (rev 17464) @@ -2156,8 +2156,10 @@ = + To make you work on CSS files more comfortable, CSS pers= pective is available, read more about it in CSS Editing Perspective chapter =
+ = = JavaScript Editor = --===============4665258039911983827==-- From jbosstools-commits at lists.jboss.org Fri Sep 4 10:29:33 2009 Content-Type: multipart/mixed; boundary="===============6556496407334597848==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17465 - branches/jbosstools-3.1.0.M3/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/src/org/jboss/tools/hibernate/ui/diagram/editors/actions/test. Date: Fri, 04 Sep 2009 10:29:33 -0400 Message-ID: <200909041429.n84ETXg2004073@svn01.web.mwc.hst.phx2.redhat.com> --===============6556496407334597848== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vyemialyanchyk Date: 2009-09-04 10:29:33 -0400 (Fri, 04 Sep 2009) New Revision: 17465 Modified: branches/jbosstools-3.1.0.M3/hibernatetools/tests/org.jboss.tools.hibern= ate.ui.test/src/org/jboss/tools/hibernate/ui/diagram/editors/actions/test/E= xportImageActionTest.java Log: try to fix junit test on hudson Modified: branches/jbosstools-3.1.0.M3/hibernatetools/tests/org.jboss.tools= .hibernate.ui.test/src/org/jboss/tools/hibernate/ui/diagram/editors/actions= /test/ExportImageActionTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/hibernatetools/tests/org.jboss.tools.hiber= nate.ui.test/src/org/jboss/tools/hibernate/ui/diagram/editors/actions/test/= ExportImageActionTest.java 2009-09-04 14:29:31 UTC (rev 17464) +++ branches/jbosstools-3.1.0.M3/hibernatetools/tests/org.jboss.tools.hiber= nate.ui.test/src/org/jboss/tools/hibernate/ui/diagram/editors/actions/test/= ExportImageActionTest.java 2009-09-04 14:29:33 UTC (rev 17465) @@ -96,6 +96,7 @@ }); final ExportImageAction exportImageAction =3D new ExportImageAction(edit= or); exportImageAction.setSaveDialog(saveDialog); + exportImageAction.setShowErrDialog(false); exportImageAction.run(); // test is the file created File file =3D new File(filePath); --===============6556496407334597848==-- From jbosstools-commits at lists.jboss.org Fri Sep 4 10:39:03 2009 Content-Type: multipart/mixed; boundary="===============5456687883412094199==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17466 - in trunk/bpel/docs/reference/en: images and 1 other directories. Date: Fri, 04 Sep 2009 10:39:03 -0400 Message-ID: <200909041439.n84Ed3bN005935@svn01.web.mwc.hst.phx2.redhat.com> --===============5456687883412094199== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: chukhutsina Date: 2009-09-04 10:39:03 -0400 (Fri, 04 Sep 2009) New Revision: 17466 Modified: trunk/bpel/docs/reference/en/images/deploy_createdeploy_3.png trunk/bpel/docs/reference/en/images/deploy_createdeploy_7.png trunk/bpel/docs/reference/en/images/detail_createprocess_3.png trunk/bpel/docs/reference/en/images/detail_editprocess_1.png trunk/bpel/docs/reference/en/images/detail_editprocess_2.png trunk/bpel/docs/reference/en/master.xml trunk/bpel/docs/reference/en/modules/deploy.xml trunk/bpel/docs/reference/en/modules/detail.xml trunk/bpel/docs/reference/en/modules/install.xml trunk/bpel/docs/reference/en/modules/overview.xml Log:

https://jira.jboss.org/jira/browse/JBDS-780 -Checked,formated and a bit = restructured the Guide.Mistakes were corrected.

Modified: trunk/bpel/docs/reference/en/images/deploy_createdeploy_3.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/images/deploy_createdeploy_7.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/images/detail_createprocess_3.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/images/detail_editprocess_1.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/images/detail_editprocess_2.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/bpel/docs/reference/en/master.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/docs/reference/en/master.xml 2009-09-04 14:29:33 UTC (rev 17= 465) +++ trunk/bpel/docs/reference/en/master.xml 2009-09-04 14:39:03 UTC (rev 17= 466) @@ -6,6 +6,8 @@ + + ]> = Modified: trunk/bpel/docs/reference/en/modules/deploy.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/docs/reference/en/modules/deploy.xml 2009-09-04 14:29:33 UTC= (rev 17465) +++ trunk/bpel/docs/reference/en/modules/deploy.xml 2009-09-04 14:39:03 UTC= (rev 17466) @@ -1,15 +1,15 @@ - Deploy a JBoss BPEL project into JBoss BPEL Runtime + Deploy a JBoss BPEL project to JBoss BPEL Runtime
Creating a bpel-deploy.xml file - If you want to deploy a BPEL project into JBoss BPEL Runtime= , you need to create a bpel-deploy.xml file. = - Our tools can help you to create it: + If you want to deploy a BPEL project to JBoss BPEL Runtime, = you should create a bpel-deploy.xml file. = + JBoss tools can help you to create it: Create the bpel-deploy.xml by selecting = - New > Other... > BPEL 2.0 > Apache= ODE Deployment Descriptor. Click on the Ne= xt button. = + New > Other... > BPEL 2.0 > Apache= ODE Deployment Descriptor. Click the Next<= /property> button. =
New BPEL Deploy file @@ -21,11 +21,12 @@
=
- BPEL Project: Click on the Browse... button to select a BPEL project in your workspace which you want to d= eploy into the runtime. - Please note that you should select the bpel folder und= er the BPEL project because the bpel-deploy.xml should be at this place. + On the next wizard page you should enter the followi= ng information: + BPEL Project: Click the Browse... button to select the BPEL pro= ject in your workspace which you want to deploy to the runtime. + Please note, that you should select the bpel= folder in your new BPEL project as a value of BPEL Pr= oject field because the bpel-deploy.xml should be created in thi= s place. - File name: The default value is bpel-deploy.xml. Ple= ase don't change it. - Click on Finish button to close= the wizard. + File name:= The default value is bpel-deploy.xml. Please, don't change it. + Click on Finish button to close= the wizard and a new bpel-deploy.xml file will be created.
New BPEL Deploy file Wizard @@ -36,10 +37,11 @@
=
- Double-click on the bpel-deploy.xml file to open it.= In the Inbound Interface section, click in the = - Associated Port column for the client Parner link. Then select HelloWorldProc= essPort - in the drop down box. Click in the other part of the = eclipse, the Related Service and Binding Use= d - clumns should automatically be filled in. Save the bp= el-deploy.xml. + Double-click the bpel-deploy.xml file to open it in = ODE Descriptor Deployment Editor. + In the Inbound Interfaces section= , click the = + Associated Port column and select= HelloWorldProcessPort + in the dropdown box.The Related Service and Binding Used = + columns should be automatically filled in. Save the <= emphasis>bpel-deploy.xml.
bpel-deploy.xml file editor @@ -54,16 +56,16 @@
Creating JBoss BPEL Server - Suppose you have installed the JBoss BPEL Runtime-= RiftSaw, now we can create a server for the JBoss BPEL runtime + Suppose you have installed the JBoss BPEL Runtime-= RiftSaw, now you can create a server for JBoss BPEL runtime. - Open the Servers view by select= ing = - Windows > Show View > Other... > S= erver > Servers. + Open the JBoss Server view by s= electing = + Windows > Show View > Other... > S= erver > JBoss Server view. = - In the Servers view, right-click and select = - New > Server= to open a wizard: = + Right-click the JBoss Server view and select = + New > Server= to open the New Server Wizard: =
New Server Wizard @@ -75,9 +77,15 @@
=
- Server type: select JBoss AS 5.1. Please note that only JBoss As 5.1 or higher version support BPEL. = - Click on the Next button. On th= e next page, you can input your JBoss As location. Then click on the Next button. = - you can get the page like this: = + Select JBoss AS 5.1 as a server= type. + + Please note, that only JBoss As 5.1 or higher ve= rsion support BPEL. + + + + = + Click the Next button. On the n= ext page, you should input your JBoss As location. Then click the Next button and + you will get the page like this: =
Add resource to the server @@ -89,8 +97,8 @@
=
- Select HelloWorld, then click o= n the Add > button to add the project to the server. - Then click on Finish button. + Select HelloWorld, then click t= he Add button to add the project to the server. + Then click on the Finish button. Start the server by right-clicking on the server and= selecting the Start item. = = @@ -101,10 +109,11 @@ - = + = + If some aspects of server creation is not clear, ple= ase, read JBoss Server Manager Reference Guide = for more details. - You can input the link http://localhost:8080/bpel/processes.html in the browser to get the deployed processes. = + You can enter the link http://localhost:8080/bpel/processes.html to the browser to get the deployed processes. =
The BPEL console @@ -115,6 +124,9 @@
=
=
= - = + If there's anything we didn't cover or you can't figure out,= please feel free to visit our JBoss Tools Users Forum to ask questions. + There we are also waiting for your suggestions and comments. =
\ No newline at end of file Modified: trunk/bpel/docs/reference/en/modules/detail.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/docs/reference/en/modules/detail.xml 2009-09-04 14:29:33 UTC= (rev 17465) +++ trunk/bpel/docs/reference/en/modules/detail.xml 2009-09-04 14:39:03 UTC= (rev 17466) @@ -1,13 +1,14 @@ - Create and edit a BPEL project - In the chapter we provide you with the necessary steps to create= a BPEL project and edit the BPEL files. - First you need to create a BPEL project. + Creating and editing a BPEL project + In the chapter we describe the necessary steps to create a new B= PEL project and edit the BPEL files. + First of all, you should create a BPEL project.
Creating a BPEL project - Create a Web project by selecting = - New > Project... > BPEL 2.0 > BPEL Proje= ct. Click on the Next button. = + Create the project by selecting = + New > Project... > BPEL 2.0 > BPEL Project= from the menu bar. + Then click the Next button. =
New BPEL Project @@ -17,12 +18,9 @@
- Enter the following information: - - - Project Name: enter a project name. For example, ent= er HelloWorld. - - + On this page of the New BPEL Project Wizard enter a project name in the Project Name + field,e.g enter HelloWorld. + =
New BPEL Project Wizard @@ -31,9 +29,9 @@
- Click on the Finish button. Now you hav= e created a BPEL project named HelloWorld. It's struct= ure is like this: + Click the Finish button. So you have cr= eated the BPEL project named HelloWorld. Its structure= is like this:
- A BPEL Project structure + The BPEL Project structure @@ -43,7 +41,7 @@
Creating a BPEL process - Create a BPEL process by selecting = + Now you should create a BPEL process. You can create it by s= electing = New > Others... > BPEL 2.0 > New BPEL Pr= ocess File.
@@ -54,18 +52,38 @@
- Click on the Next button. Enter the fol= lowing information: - - - BPEL Process Name: enter a process name. For example= , HelloWorld. - - - Namespace: enter or select a namespace for the BPEL = process - - - Template: select a template for the BPEL process. Wh= en you select a template, below the row, you will get the information for t= he template. - = - + Click the Next button. Enter the follow= ing information: + + = + Fields and values + = + + + + + Field + Value + = + + = + = + + BPEL Process Name + enter a process name. For example, HelloWorld. = + = + + Namespace + enter or select a namespace for the B= PEL process. = + = + + Template + select a template for the BPEL proces= s. When you select the template, you will see the information about the tem= plate below on the page. = + = + = + = + +
+
New BPEL Process File Wizard @@ -74,13 +92,16 @@
- Click on the Next button. On the second= page, make sure that the fold HelloWorld/bpel is sele= cted. - Clink on the Finish button. + Click the Next button. On the second pa= ge make sure that the folder HelloWorld/bpel is select= ed. + Click Finish. - All of your files that are used in your BPEL project must be= under the bpel folder. Only like this, = - these files can be deployed into JBoss server. - - Up to now, you have get a simple BPEL process as below. Next= step, you can edit the BPEL process and then deploy it into JBoss server. = + + All of your files that are used in your BPEL project mus= t be under the bpel folder. Only in this case = + these files can be deployed to JBoss server. + + + + Up to now, you have got a simple BPEL process as on the scree= n below.
A simple BPEL Process File @@ -89,11 +110,12 @@
+ The next step, you can do is to edit the BPEL process file a= nd then deploy it to JBoss server.
- Editing a BPEL process - If you don't get the Properties view and Palette view opened= , you can right-click on the BPEL editor and select the = - Show in Properties, Show Pale= tte in Palette view. Then you can get the view like: = + Editing a BPEL process file + If the Properties view and Palette view are not ope= ned, you can open the views by right-clicking the BPEL editor and selecting= = + Show in Properties, Show Pale= tte in Palette view. Then you should have the view like this: =
The BPEL editor view @@ -103,46 +125,66 @@
= - In the Palette view, you can drag a BPEL element into the BP= EL editor and put it in the palace that you want. = - In the Properties view, you can get the information for ever= y element of the BPEL process. Select a element in the BPEL editor, - the element's properties will be shown in the Properties view: = + In the Palette view, you can drag a BPEL element to the BPEL editor and drop it in the place = you want. = + In the Properties view, you can get the information about every element of the BPEL process. + In the BPEL editor select any element you want,and then + the element's properties will be shown in the Properties view.= The table below describes the tabs of the Properties view: = + + = + Tabs of the Property view + = + + + + + Tab + Description + = + + = + = + + Description + Shows the descriptive information abo= ut the element,e.g. Name of the element. = + = + + Details + Shows the detailed and important info= rmation about the element. + It is the most important section of an element. + Most of the properties of an element are set i= n this section. = + = + + Join Behavior + Shows the Join Failure property of the element. = + = + + Documentation + Shows the documentation sub-element of an element. = + = + + Other + Every BPEL element has its own sectio= ns: Correlation section, Message Exchange section, and so on. We will + introduce them while using them. = + = + = + +
+ In order to see how a simple BPEL process works in action, y= ou should do some steps as below: = - Description section: Show the described information = of the element. For example, Name of the element. - - - Details section: Show the detailed and important inf= ormation of element. This is the most important section of a element. - Many properties of a element will be set in this sect= ion. - - - - Join Behavior section: Show the Join Failu= re property of the element. - = - - Documentation section: Show the documentat= ion sub-element of the element. - - - Others sections: Every BPEL element has itself secti= ons, Correlation section, Message Exchange section, and so on. We will - introduce them when using them. - - = - = - In order to show how a simple BPEL process work, we will do = some steps as below: = - - Add an Assign element between t= he receiveInput element and replyOutput element. - Select the Assign element in th= e BPEL editor, you can get the properties information of it in the Properti= es view. = + Click the Assign element in the= BPEL editor in order to get the properties information of it in the Proper= ties view. = - In the Details section, you can select New= button to add a copy sub-element to the el= ement. = - Assign "input->payload->input" to "output->payload->re= sult". At this time, an "initializer" popup dialog appears. Click on the Yes button. + In the Details section of Prope= rties view, you should click the New button to add a <= property>copy sub-element to the element. = + Assign "input->payload->input" to "output->payload->re= sult". At this time, an "initializer" popup dialog app= ears. Click on the Yes button in the dialog.
- Add an <property>Assign</property> to the proce= ss + Add <property>Assign</property> to the process<= /title> <mediaobject> <imageobject> <imagedata fileref=3D"images/detail_editpr= ocess_2.png"/> @@ -151,13 +193,13 @@ </figure> = </listitem> = <listitem> - <para>Open the file "HelloWorldArtifacts.wsdl" in the "Hel= loWorld" project by double-clicking on it. Right-click in the WSDL editor a= nd select = - <property>Add Service</property>. A new service appear= s on the editor. Name it <property>HelloWorldProcessService</property>. It = has a Port = + <para>Open the file "<property>HelloWorldArtifacts.wsdl</p= roperty>" in the "<property>HelloWorld</property>" project by double-clicki= ng the file. Right-click the WSDL editor and select = + <property>Add Service</property>. A new service should= appear in the editor. Name it <property>HelloWorldProcessService</property= >. It has the Port = named <property>NewPort</property>. Select it, right-c= lick on it and rename it to <property>HelloWorldProcessPort</property> in t= he Properties = view. </para> <figure> - <title>Add a <property>Service</property> to the WSDL = file + Add <property>Service</property> to the WSDL fi= le @@ -167,10 +209,10 @@ Right-click somewhere in the whitespace of the WSDL = editor and select = - Add Binding. A new Binding appear= s on the editor. Name it HelloWorldSOAPBinding. Select= it, in the = - Properties view, General section, select Hel= loWorld port type in the PortType. Then cli= ck on the = - Generate Binding Content... butto= n to open a Binding Wizard. In the wizard, select the= SOAP = - as the Protocol. Finally, click o= n the Finish button to close the wizard. + Add Binding. A new Binding compon= ent will appear in the editor. Name it HelloWorldSOAPBinding. Select it, in the = + General tab of the Properties view and select HelloWorld as a port type in the PortType= . Then click on the = + Generate Binding Content... butto= n to open the Binding Wizard. In the wizard, select <= property>SOAP = + as the Protocol. Finally, click = the Finish button to close the wizard.
Add a <property>Binding</property> to the WSDL = file @@ -182,8 +224,8 @@
=
- Click on the HelloWorldProcessPort, in the Properties view, General section, select the HelloWor= ldSOAPBinding in - the Binding Combo. In the Address field, input http://localhost:8080/bpel/processes/HelloWorld= ?wsdl. + Click the HelloWorldProcessPort= property in the General section of the Properties view, select H= elloWorldSOAPBinding in + the Binding combobox. In the Address field input http://localhost:8080/bpel/processes/HelloWor= ld?wsdl.
Add the <property>HelloWorldSOAPBinding</proper= ty> to the <property>HelloWorldProcessPort</property> @@ -195,7 +237,7 @@
=
= - For now, you have finished the simple BPEL process. Next ste= p, you can deploy the BPEL project into JBoss BPEL Runtime. = = + Now you have finished creating a simple BPEL process.As a ne= xt step, you can deploy the BPEL project to JBoss BPEL Runtime. = = =
=
Modified: trunk/bpel/docs/reference/en/modules/install.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/docs/reference/en/modules/install.xml 2009-09-04 14:29:33 UT= C (rev 17465) +++ trunk/bpel/docs/reference/en/modules/install.xml 2009-09-04 14:39:03 UT= C (rev 17466) @@ -1,19 +1,22 @@ - Install the JBoss BPEL editor + Installation JBoss BPEL Tools
- Installing the JBoss BPEL editor - At first, you need an Eclipse(3.5). You can get it from Eclipse Web Site. = + Installation JBoss BPEL editor + At first, you need Eclipse 3.5. You can get it from Eclipse Web Site. = - The JBoss BPEL editor is included in JBoss Tools. You have s= ome methods to install JBoss Tools. See Installing JBoss Tools for more i= nformation. - If you only want to install the JBoss BPEL editor, you may i= nstall it from JBos= s Tools page. Please note that = - only JBoss Tools 3.1 or higher version include the JBoss BPEL = editor. + The JBoss BPEL editor is included into JBoss Tools. = + You have some methods to install JBoss Tools. = + See Installing JBoss Tools for more information. + If you want to install only the JBoss BPEL editor, you can = install it from JBo= ss Tools page separately. + Please, note, that only JBoss Tools 3.1 or higher version incl= udes JBoss BPEL editor.
- Installing the JBoss BPEL Runtime - If you want to deploy a BPEL project to JBoss runtime, you n= eed to download the JBoss BPEL Runtime by yourself. The JBoss BPEL Runtime - is named RiftSaw. You can get it from JBoss RiftSaw page. + Installation JBoss BPEL Runtime + If you want to deploy a BPEL project to JBoss server, = + you should download JBoss BPEL Runtime by yourself. The JBoss = BPEL Runtime + is named RiftSaw. You can get it from JBoss RiftSaw page .
\ No newline at end of file Modified: trunk/bpel/docs/reference/en/modules/overview.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/docs/reference/en/modules/overview.xml 2009-09-04 14:29:33 U= TC (rev 17465) +++ trunk/bpel/docs/reference/en/modules/overview.xml 2009-09-04 14:39:03 U= TC (rev 17466) @@ -1,26 +1,30 @@ - JBoss BPEL editor project Overview + JBoss BPEL project Overview = - JBoss BPEL editor project is a WS-BPEL 2.0 editor that give a way= to create, edit, validate and deploy BPEL files into JBoss BPEL runtime. I= t is based on the Eclipse = - BPEL - project. + JBoss BPEL project is a WS-BPEL 2.0 project that gives a way to c= reate, edit, validate and deploy BPEL files to JBoss BPEL runtime. It is ba= sed on Eclipse = + BPEL + project . = It improves the Eclipse BPEL project in the following way: - Tight integration with JBoss BPEL runtime. Add a n= ew project type for the deployment to JBoss BPEL runtime - Support two ways to deploy: one is deploy a bpel p= roject directly into JBoss BPEL runtime. The other is deploy bpel files in = the JBoss ESB project into JBoss BPEL runtime. - Improve the BPEL validator and the Eclipse BPEL ed= itor's quality. + Implements close integration with JBoss BPEL runti= me. Adds a new project type for the deployment to JBoss BPEL runtime. + Supports two ways of deployment: one way is to dep= loy a bpel project directly to JBoss BPEL runtime. The other way is to depl= oy bpel files in JBoss ESB project to JBoss BPEL runtime. + Improves the BPEL validator and increases Eclipse = BPEL editor's quality. = WS-BPEL 2.0 = - stands for Web Service Business Process Execution Language. Like EAI, B= PEL is an XML-based language, but BPEL is more specific and targeted. Speci= fically, a programmer uses BPEL to join sometimes disparate functions into = an integrated process, resulting in a seamless use of the Internet to condu= ct business transactions ranging from simple money exchanges to complex cal= culations and asset reallocation. + stands for Web Service Business Process Execution Language. Like EAI, B= PEL is an XML-based language, + but BPEL is more specific and targeted. A programmer uses BPEL to join = sometimes = + disparate functions into an integrated process, resulting in a seamless= use of the Internet to = + conduct business transactions ranging from simple money exchanges to co= mplex calculations and = + asset reallocation. =
- Key Features of JBoss BPEL editor project - For a start, we propose you to look through the table of main fe= atures of JBoss BPEL editor project: + Key Features of JBoss BPEL project + Let's start with looking through the table of the main features = of JBoss BPEL editor project: = = @@ -38,19 +42,21 @@ = WS-BPEL 2.0 support - JBoss BPEL editor project supports the ne= west WS-BPEL 2.0 specifications. = + JBoss BPEL project supports the newest WS= -BPEL 2.0 specifications. = = - Tight integration with JBoss BPEL runtime= - There are two ways to deploy BPEL files i= nto JBoss BPEL runtime. User can deploy a BPEL project as a whole and can d= eploy BPEL files in JBoss ESB project into JBoss BPEL runtime. = + Close integration with JBoss BPEL runtime= + There are two ways to deploy BPEL files t= o JBoss BPEL runtime. + The user can deploy a BPEL project as a whole and = can deploy BPEL files in + JBoss ESB project to JBoss BPEL runtime. = = - A BPEL file editor - User can use the editor freely to edit a = BPEL file. = + BPEL file editor + The user can use the editor separately to= edit a BPEL file. = = - A BPEL file validator - The validator can give the error messages= about BPEL files to user. = + BPEL file validator + The validator can give the error messages= about BPEL files to the user. = = = --===============5456687883412094199==-- From jbosstools-commits at lists.jboss.org Fri Sep 4 10:44:08 2009 Content-Type: multipart/mixed; boundary="===============1132379906374490917==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17467 - trunk/bpel/docs/reference/en/modules. Date: Fri, 04 Sep 2009 10:44:08 -0400 Message-ID: <200909041444.n84Ei8FJ006881@svn01.web.mwc.hst.phx2.redhat.com> --===============1132379906374490917== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: chukhutsina Date: 2009-09-04 10:44:08 -0400 (Fri, 04 Sep 2009) New Revision: 17467 Modified: trunk/bpel/docs/reference/en/modules/deploy.xml Log:

https://jira.jboss.org/jira/browse/JBDS-780 -Checked,formated and a bit = restructured the Guide.Mistakes were corrected.

Modified: trunk/bpel/docs/reference/en/modules/deploy.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/docs/reference/en/modules/deploy.xml 2009-09-04 14:39:03 UTC= (rev 17466) +++ trunk/bpel/docs/reference/en/modules/deploy.xml 2009-09-04 14:44:08 UTC= (rev 17467) @@ -79,7 +79,7 @@ Select JBoss AS 5.1 as a server= type. - Please note, that only JBoss As 5.1 or higher ve= rsion support BPEL. + Please note, that only JBoss As 5.1 or higher ve= rsion supports BPEL. --===============1132379906374490917==-- From jbosstools-commits at lists.jboss.org Fri Sep 4 12:23:47 2009 Content-Type: multipart/mixed; boundary="===============0419479253101390472==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17468 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist. Date: Fri, 04 Sep 2009 12:23:47 -0400 Message-ID: <200909041623.n84GNl8j029859@svn01.web.mwc.hst.phx2.redhat.com> --===============0419479253101390472== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-04 12:23:46 -0400 (Fri, 04 Sep 2009) New Revision: 17468 Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/co= ntentassist/AbstractXMLContentAssistProcessor.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/co= ntentassist/XmlContentAssistProcessor.java Log: JBIDE-4848: The Content Assist doesn't show proposals for the attribute nam= es (The issue is found by org.jboss.tools.jst.jsp.test.ca.JsfJspJbide1717Te= st.testJstJspJbide1717() JUnit Test Case) Issue is fixed Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/contentassist/AbstractXMLContentAssistProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/AbstractXMLContentAssistProcessor.java 2009-09-04 14:44:08 UTC= (rev 17467) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/AbstractXMLContentAssistProcessor.java 2009-09-04 16:23:46 UTC= (rev 17468) @@ -842,7 +842,7 @@ * = * @return */ - protected String getParent(boolean returnAttributeName) { + protected String getParent(boolean returnAttributeName, boolean returnThi= sElement) { IStructuredModel sModel =3D StructuredModelManager .getModelManager() .getExistingModelForRead(getDocument()); @@ -884,7 +884,8 @@ n =3D n.getParentNode(); } } else { - n =3D n.getParentNode(); + if (!returnThisElement) + n =3D n.getParentNode(); } if (n =3D=3D null) return null; Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/contentassist/XmlContentAssistProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/XmlContentAssistProcessor.java 2009-09-04 14:44:08 UTC (rev 17= 467) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/XmlContentAssistProcessor.java 2009-09-04 16:23:46 UTC (rev 17= 468) @@ -85,7 +85,7 @@ String prefix =3D getTagPrefix(); String uri =3D getTagUri(); String[] parentTags =3D getParentTags(type =3D=3D Type.ATTRIBUTE_NAME ||= type =3D=3D Type.ATTRIBUTE_VALUE); - String parent =3D getParent(type =3D=3D Type.ATTRIBUTE_VALUE); + String parent =3D getParent(type =3D=3D Type.ATTRIBUTE_VALUE, type =3D= =3D Type.ATTRIBUTE_NAME); String queryValue =3D query; String queryStringValue =3D stringQuery; = --===============0419479253101390472==-- From jbosstools-commits at lists.jboss.org Fri Sep 4 12:50:29 2009 Content-Type: multipart/mixed; boundary="===============7604555959240239754==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17469 - branches/jbosstools-3.1.0.M3/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist. Date: Fri, 04 Sep 2009 12:50:29 -0400 Message-ID: <200909041650.n84GoTYp003885@svn01.web.mwc.hst.phx2.redhat.com> --===============7604555959240239754== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-04 12:50:29 -0400 (Fri, 04 Sep 2009) New Revision: 17469 Modified: branches/jbosstools-3.1.0.M3/jst/plugins/org.jboss.tools.jst.jsp/src/org= /jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java branches/jbosstools-3.1.0.M3/jst/plugins/org.jboss.tools.jst.jsp/src/org= /jboss/tools/jst/jsp/contentassist/XmlContentAssistProcessor.java Log: JBIDE-4848: The Content Assist doesn't show proposals for the attribute nam= es (The issue is found by org.jboss.tools.jst.jsp.test.ca.JsfJspJbide1717Te= st.testJstJspJbide1717() JUnit Test Case) Issue is fixed for branch jbosstools-3.1.0.M3 Modified: branches/jbosstools-3.1.0.M3/jst/plugins/org.jboss.tools.jst.jsp/= src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor= .java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/jst/plugins/org.jboss.tools.jst.jsp/src/or= g/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java = 2009-09-04 16:23:46 UTC (rev 17468) +++ branches/jbosstools-3.1.0.M3/jst/plugins/org.jboss.tools.jst.jsp/src/or= g/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java = 2009-09-04 16:50:29 UTC (rev 17469) @@ -842,7 +842,7 @@ * = * @return */ - protected String getParent(boolean returnAttributeName) { + protected String getParent(boolean returnAttributeName, boolean returnThi= sElement) { IStructuredModel sModel =3D StructuredModelManager .getModelManager() .getExistingModelForRead(getDocument()); @@ -884,7 +884,8 @@ n =3D n.getParentNode(); } } else { - n =3D n.getParentNode(); + if (!returnThisElement) + n =3D n.getParentNode(); } if (n =3D=3D null) return null; Modified: branches/jbosstools-3.1.0.M3/jst/plugins/org.jboss.tools.jst.jsp/= src/org/jboss/tools/jst/jsp/contentassist/XmlContentAssistProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/jst/plugins/org.jboss.tools.jst.jsp/src/or= g/jboss/tools/jst/jsp/contentassist/XmlContentAssistProcessor.java 2009-09-= 04 16:23:46 UTC (rev 17468) +++ branches/jbosstools-3.1.0.M3/jst/plugins/org.jboss.tools.jst.jsp/src/or= g/jboss/tools/jst/jsp/contentassist/XmlContentAssistProcessor.java 2009-09-= 04 16:50:29 UTC (rev 17469) @@ -85,7 +85,7 @@ String prefix =3D getTagPrefix(); String uri =3D getTagUri(); String[] parentTags =3D getParentTags(type =3D=3D Type.ATTRIBUTE_NAME ||= type =3D=3D Type.ATTRIBUTE_VALUE); - String parent =3D getParent(type =3D=3D Type.ATTRIBUTE_VALUE); + String parent =3D getParent(type =3D=3D Type.ATTRIBUTE_VALUE, type =3D= =3D Type.ATTRIBUTE_NAME); String queryValue =3D query; String queryStringValue =3D stringQuery; = --===============7604555959240239754==-- From jbosstools-commits at lists.jboss.org Tue Sep 8 12:39:09 2009 Content-Type: multipart/mixed; boundary="===============8885244472481041679==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17476 - in trunk: as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/vcf and 2 other directories. Date: Tue, 08 Sep 2009 11:53:22 -0400 Message-ID: <200909081553.n88FrMSS005184@svn01.web.mwc.hst.phx2.redhat.com> --===============8885244472481041679== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: rob.stryker(a)jboss.com Date: 2009-09-08 11:53:22 -0400 (Tue, 08 Sep 2009) New Revision: 17476 Added: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/vcf/ModuleExportOperation.java Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/META-INF/MANIFEST.MF trunk/esb/plugins/org.jboss.tools.esb.project.ui/META-INF/MANIFEST.MF trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb= /project/ui/wizards/export/ESBComponentExportOperation.java Log: JBIDE-4854 Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/META-INF/MANIF= EST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/META-INF/MANIFEST.MF= 2009-09-08 15:33:00 UTC (rev 17475) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/META-INF/MANIFEST.MF= 2009-09-08 15:53:22 UTC (rev 17476) @@ -15,7 +15,12 @@ org.eclipse.jst.j2ee;bundle-version=3D"1.1.300", org.eclipse.wst.common.project.facet.core;bundle-version=3D"1.4.0", org.eclipse.jem.util;bundle-version=3D"2.0.200", - org.eclipse.wst.web;bundle-version=3D"1.1.300" + org.eclipse.wst.web;bundle-version=3D"1.1.300", + org.eclipse.wst.common.frameworks;bundle-version=3D"1.1.300", + org.eclipse.jst.common.frameworks;bundle-version=3D"1.1.300", + org.eclipse.core.commands;bundle-version=3D"3.5.0", + org.eclipse.jst.server.core;bundle-version=3D"1.2.0", + org.eclipse.jdt.core;bundle-version=3D"3.5.0" Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Export-Package: org.jboss.ide.eclipse.as.wtp.core.modules, Added: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide= /eclipse/as/wtp/core/vcf/ModuleExportOperation.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/ModuleExportOperation.java (r= ev 0) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/ModuleExportOperation.java 2009-09-08 15:53:22 UTC (r= ev 17476) @@ -0,0 +1,431 @@ +/*************************************************************************= ****** + * Copyright (c) 2003, 2007 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *************************************************************************= ******/ +package org.jboss.ide.eclipse.as.wtp.core.vcf; + +import static org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentExpo= rtDataModelProperties.ARCHIVE_DESTINATION; +import static org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentExpo= rtDataModelProperties.COMPONENT; +import static org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentExpo= rtDataModelProperties.EXPORT_SOURCE_FILES; +import static org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentExpo= rtDataModelProperties.OPTIMIZE_FOR_SPECIFIC_RUNTIME; +import static org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentExpo= rtDataModelProperties.RUNTIME_SPECIFIC_PARTICIPANTS; +import static org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentExpo= rtDataModelProperties.RUN_BUILD; + +import java.io.File; +import java.io.FileInputStream; +import java.io.IOException; +import java.io.OutputStream; +import java.lang.reflect.InvocationTargetException; +import java.util.HashSet; +import java.util.Iterator; +import java.util.List; +import java.util.Set; +import java.util.zip.ZipEntry; +import java.util.zip.ZipOutputStream; + +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.resources.ICommand; +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.IProjectDescription; +import org.eclipse.core.resources.IResource; +import org.eclipse.core.resources.IResourceRuleFactory; +import org.eclipse.core.resources.IncrementalProjectBuilder; +import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IAdaptable; +import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.NullProgressMonitor; +import org.eclipse.core.runtime.Path; +import org.eclipse.core.runtime.SubProgressMonitor; +import org.eclipse.core.runtime.jobs.ISchedulingRule; +import org.eclipse.core.runtime.jobs.MultiRule; +import org.eclipse.jdt.core.JavaCore; +import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailu= reException; +import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEComponentExportDataM= odelProperties.IArchiveExportParticipantData; +import org.eclipse.jst.j2ee.internal.archive.operations.EJBArchiveOpsResou= rceHandler; +import org.eclipse.jst.j2ee.internal.plugin.LibCopyBuilder; +import org.eclipse.jst.j2ee.internal.project.ProjectSupportResourceHandler; +import org.eclipse.jst.jee.archive.ArchiveSaveFailureException; +import org.eclipse.jst.jee.archive.internal.ArchiveUtil; +import org.eclipse.jst.server.core.IEnterpriseApplication; +import org.eclipse.jst.server.core.IJ2EEModule; +import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; +import org.eclipse.wst.common.componentcore.resources.IVirtualReference; +import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperat= ion; +import org.eclipse.wst.common.frameworks.datamodel.IDataModel; +import org.eclipse.wst.common.frameworks.datamodel.IDataModelOperation; +import org.eclipse.wst.server.core.IModule; +import org.eclipse.wst.server.core.ServerUtil; +import org.eclipse.wst.server.core.model.IModuleFile; +import org.eclipse.wst.server.core.model.IModuleFolder; +import org.eclipse.wst.server.core.model.IModuleResource; +import org.eclipse.wst.server.core.model.ModuleDelegate; + +public abstract class ModuleExportOperation extends AbstractDataModelOpera= tion { + + protected IProgressMonitor progressMonitor; + private IVirtualComponent component; + private IModule module; + private IPath destinationPath; + private boolean exportSource =3D false; + + public ModuleExportOperation() { + super(); + } + + public ModuleExportOperation(IDataModel model) { + super(model); + } + = + protected final int REFRESH_WORK =3D 100; + protected final int JAVA_BUILDER_WORK =3D 100; + protected final int LIB_BUILDER_WORK =3D 100; + protected final int EXPORT_WORK =3D 1000; + protected final int CLOSE_WORK =3D 10; + protected final int SINGLE_PARTICIPANT_WORK =3D 200; + = + protected int computeTotalWork() { + int totalWork =3D REFRESH_WORK; + if (model.getBooleanProperty(RUN_BUILD)) { + totalWork +=3D JAVA_BUILDER_WORK + LIB_BUILDER_WORK; + } + totalWork +=3D EXPORT_WORK + CLOSE_WORK; + = + final IDataModel dm =3D getDataModel(); + = + if( dm.getProperty( OPTIMIZE_FOR_SPECIFIC_RUNTIME ) =3D=3D Boolean.TRUE = ) { + final List extensions + =3D (List) dm.getProperty( RUNTIM= E_SPECIFIC_PARTICIPANTS ); + totalWork +=3D extensions.size() * SINGLE_PARTICIPANT_WORK; + } + = + return totalWork; + } + = + public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws = ExecutionException { + setComponent((IVirtualComponent) model.getProperty(COMPONENT)); + setDestinationPath(new Path(model.getStringProperty(ARCHIVE_DESTINATION)= )); +// setExportSource(model.getBooleanProperty(EXPORT_SOURCE_FILES)); + = + try + { + monitor.beginTask(ProjectSupportResourceHandler.getString(ProjectSup= portResourceHandler.Exporting_archive, new Object [] { getDestinationPath()= .lastSegment() }), computeTotalWork()); + setProgressMonitor(monitor); + + try { + // defect 240999 + component.getProject().refreshLocal(IResource.DEPTH_INFINITE, new S= ubProgressMonitor(monitor, REFRESH_WORK)); + if (model.getBooleanProperty(RUN_BUILD)) { + runNecessaryBuilders(component, new SubProgressMonitor(monitor, JA= VA_BUILDER_WORK + LIB_BUILDER_WORK)); + } + export(); + } catch (Exception e) { + monitor.worked(CLOSE_WORK); + throw new ExecutionException(EJBArchiveOpsResourceHandler.Error_exp= orting__UI_ + archiveString(), e); + } + = + final IDataModel dm =3D getDataModel(); + = + if( dm.getProperty( OPTIMIZE_FOR_SPECIFIC_RUNTIME ) =3D=3D Boo= lean.TRUE ) + { + for( IArchiveExportParticipantData extData = + : (List) dm.getPropert= y( RUNTIME_SPECIFIC_PARTICIPANTS ) ) + { + final IDataModelOperation op = + =3D extData.getParticipant().createOperation( extD= ata.getDataModel() ); + = + op.execute( null, null ); + monitor.worked( SINGLE_PARTICIPANT_WORK ); + } + } + } + finally + { + monitor.done(); + } + = + return OK_STATUS; + } + + protected abstract String archiveString(); + + protected void setProgressMonitor(IProgressMonitor newProgressMonitor) { + progressMonitor =3D newProgressMonitor; + } + + protected IProgressMonitor getProgressMonitor() { + return progressMonitor; + } + + private void setComponent(IVirtualComponent newComponent) { + component =3D newComponent; + setModule(); + } + + protected IVirtualComponent getComponent() { + if (component =3D=3D null) + component =3D (IVirtualComponent) model.getProperty(COMPONENT); + return component; + } + + protected IPath getDestinationPath() { + return destinationPath; + } + + protected void setDestinationPath(IPath newDestinationPath) { + destinationPath =3D newDestinationPath; + } + +// protected boolean isExportSource() { +// return exportSource; +// } +// +// protected void setExportSource(boolean newExportSource) { +// exportSource =3D newExportSource; +// } + + protected void setModule() { + String moduleType =3D getModuleTypeID(); + if( component !=3D null && component.getProject() !=3D null && moduleTyp= e !=3D null) { + IModule[] modules =3D ServerUtil.getModules(component.getProject()); + for( int i =3D 0; i < modules.length; i++ ) { + if( modules[i].getModuleType().getId().equals(moduleType)) { + module =3D modules[i]; + return; + } + } + } + module =3D null; + } + = + protected abstract String getModuleTypeID(); + = + = + /* Return null to skip this child */ + protected /* abstract */ String getChildURI(IModule parent, IModule child= ) { + IEnterpriseApplication app =3D (IEnterpriseApplication)parent.loadAdapte= r(IEnterpriseApplication.class, new NullProgressMonitor()); + if( app !=3D null ) { + return app.getURI(child); + } + return null; + } + = + protected void runNecessaryBuilders(IVirtualComponent component, IProgres= sMonitor monitor) throws CoreException { + try{ + monitor.beginTask(null, JAVA_BUILDER_WORK + LIB_BUILDER_WORK); + if(!component.isBinary()){ + IProject project =3D component.getProject(); + IProjectDescription description =3D project.getDescription(); + ICommand javaBuilder =3D getJavaCommand(description); + if (javaBuilder !=3D null) { + project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, JavaCore.B= UILDER_ID, javaBuilder.getArguments(), new SubProgressMonitor(monitor, JAVA= _BUILDER_WORK)); + } + ICommand libCopyBuilder =3D getLibCopyBuilder(description); + if (null !=3D libCopyBuilder) { + project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, LibCopyBui= lder.BUILDER_ID, libCopyBuilder.getArguments(), new SubProgressMonitor(moni= tor, LIB_BUILDER_WORK)); + } + } + } finally { + monitor.done(); + } + } + + /** + * Find the specific Java command amongst the build spec of a given descr= iption + */ + protected ICommand getJavaCommand(IProjectDescription description) throws= CoreException { + if (description =3D=3D null) { + return null; + } + + ICommand[] commands =3D description.getBuildSpec(); + for (int i =3D 0; i < commands.length; ++i) { + if (commands[i].getBuilderName().equals(JavaCore.BUILDER_ID)) { + return commands[i]; + } + } + return null; + } + + protected ICommand getLibCopyBuilder(IProjectDescription description) thr= ows CoreException { + if (description =3D=3D null) { + return null; + } + + ICommand[] commands =3D description.getBuildSpec(); + for (int i =3D 0; i < commands.length; ++i) { + if (commands[i].getBuilderName().equals(LibCopyBuilder.BUILDER_ID)) { + return commands[i]; + } + } + return null; + + } + + public ISchedulingRule getSchedulingRule() { + Set projs =3D gatherDependentProjects(getComponent(), new HashSet()); + ISchedulingRule combinedRule =3D null; + IResourceRuleFactory ruleFactory =3D ResourcesPlugin.getWorkspace().getR= uleFactory(); + for (Iterator iter =3D projs.iterator(); iter.hasNext();) { + IProject proj =3D (IProject) iter.next(); + ISchedulingRule rule =3D ruleFactory.createRule(proj); + combinedRule =3D MultiRule.combine(rule, combinedRule); + } + combinedRule =3D MultiRule.combine(ruleFactory.buildRule(), combinedRule= ); + + return combinedRule; + } + + /* Only used by getSchedulingRule() as of now */ + private Set gatherDependentProjects(IVirtualComponent comp, Set projs) { + if (!projs.contains(comp.getProject())) { + projs.add(comp.getProject()); + IVirtualReference[] refs =3D comp.getReferences(); + for (int i =3D 0; i < refs.length; i++) { + IVirtualReference refComp =3D refs[i]; + projs.addAll(gatherDependentProjects(refComp.getReferencedComponent(),= projs)); + } + } + return projs; + } + = + = + + protected void export() throws SaveFailureException, CoreException, Invoc= ationTargetException, InterruptedException { + if( module =3D=3D null ) + throw new SaveFailureException(); // TODO add some real message + try { + File dest =3D getDestinationPath().toFile(); + File parent =3D dest.getParentFile(); = + = + /* Prepare the streams */ + if (dest.exists() && dest.isDirectory()) { + throw new IOException("The specified file: " + dest.getAbsolutePath() = + " exists and is a directory"); + } + if (parent !=3D null) + parent.mkdirs(); + java.io.OutputStream out =3D new java.io.FileOutputStream(dest); + ZipStreamModuleSaveAdapterImpl saver =3D new ZipStreamModuleSaveAdapter= Impl(out); + = + = + /* = + * If we were to create a dual underlying model that would work for + * export and publish, this is where we'd do that and incorporate = + * preferences from the calling class + */ + = + ModuleDelegate moduleDelegate =3D (ModuleDelegate)module.loadAdapter(Mo= duleDelegate.class, new NullProgressMonitor()); + addResources(saver, moduleDelegate.members()); + addChildren(saver, module, moduleDelegate.getChildModules()); + saver.finish(); + } catch( Exception e ) { + e.printStackTrace(); + throw new SaveFailureException(); + } + } + = + protected void addChildren(ZipStreamModuleSaveAdapterImpl saver, IModule = parent, IModule[] children ) throws IOException, ArchiveSaveFailureExceptio= n, CoreException { + if( children !=3D null ) { + for( int i =3D 0; i < children.length; i++ ) { + String path =3D getChildURI(parent, children[i]); + ModuleDelegate childDelegate =3D (ModuleDelegate)children[i]. + loadAdapter(ModuleDelegate.class, new NullProgressMonitor()); + IJ2EEModule tempMod =3D (IJ2EEModule)children[i].loadAdapter(IJ2EEModu= le.class, new NullProgressMonitor()); + boolean isBinary =3D tempMod.isBinary(); + if( path !=3D null ) { + if( isBinary ) { + addResources(saver, childDelegate.members()); + } else { + ZipStreamModuleSaveAdapterImpl childSaver =3D saver.createNestedSave= Adapter(path); + addResources(childSaver, childDelegate.members()); + addChildren(childSaver, children[i], childDelegate.getChildModules()= ); + childSaver.finish(); + } + } + } + } + } + = + protected void addResources(ZipStreamModuleSaveAdapterImpl saver, IModule= Resource[] resources) throws ArchiveSaveFailureException { + for( int i =3D 0; i < resources.length; i++ ) { + if( resources[i] instanceof IModuleFile ) { + saver.save(resources[i]); + } else if( resources[i] instanceof IModuleFolder ) { + addResources(saver, ((IModuleFolder)resources[i]).members()); + } + } + } + = + + public static class ZipStreamModuleSaveAdapterImpl { + protected OutputStream destinationStream; + /** Used internally */ + protected ZipOutputStream zipOutputStream; + + public ZipStreamModuleSaveAdapterImpl(OutputStream out) { + destinationStream =3D out; + zipOutputStream =3D new ZipOutputStream(out); + } + + public void close() throws IOException { + getDestinationStream().close(); + } + + protected ZipStreamModuleSaveAdapterImpl createNestedSaveAdapter(String = entry) throws IOException { + ZipEntry nest =3D new ZipEntry(entry); + getZipOutputStream().putNextEntry(nest); + return new ZipStreamModuleSaveAdapterImpl(getZipOutputStream()); + } + + public void finish() throws IOException { + getZipOutputStream().finish(); + //If this is not nested, close the stream to free up the resource + //otherwise, don't close it because the parent may not be done + if (!(getDestinationStream() instanceof ZipOutputStream)) + getDestinationStream().close(); + } + + public java.io.OutputStream getDestinationStream() { + return destinationStream; + } + + protected java.util.zip.ZipOutputStream getZipOutputStream() { + return zipOutputStream; + } + + protected void save(IModuleResource resource) throws ArchiveSaveFailureE= xception { + if( resource instanceof IModuleFile ) { + File f =3D (File)((IModuleFile)resource).getAdapter(File.class); + if( f =3D=3D null ) { + IFile ifile =3D (IFile)((IModuleFile)resource).getAdapter(IFile.class= ); + if( ifile !=3D null ) = + f =3D ifile.getLocation().toFile(); + } + saveFile(f, resource.getModuleRelativePath().append(resource.getName()= )); + } + } + = + protected void saveFile(File f, IPath entryPath) throws ArchiveSaveFailu= reException{ + try { + ZipEntry entry =3D new ZipEntry(entryPath.toString()); + if (f.lastModified() > 0) + entry.setTime(f.lastModified()); + getZipOutputStream().putNextEntry(entry); + ArchiveUtil.copy(new FileInputStream(f), getZipOutputStream()); + getZipOutputStream().closeEntry(); + } catch (IOException e) { + throw new ArchiveSaveFailureException(e); + } + } + } + = +} Modified: trunk/esb/plugins/org.jboss.tools.esb.project.ui/META-INF/MANIFES= T.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/plugins/org.jboss.tools.esb.project.ui/META-INF/MANIFEST.MF 2= 009-09-08 15:33:00 UTC (rev 17475) +++ trunk/esb/plugins/org.jboss.tools.esb.project.ui/META-INF/MANIFEST.MF 2= 009-09-08 15:53:22 UTC (rev 17476) @@ -32,7 +32,8 @@ org.eclipse.jdt.core;bundle-version=3D"3.4.0", org.jboss.tools.esb.project.core;bundle-version=3D"1.0.0", org.eclipse.jdt.ui;bundle-version=3D"3.4.1", - org.jboss.ide.eclipse.as.ui;bundle-version=3D"1.0.0" + org.jboss.ide.eclipse.as.ui;bundle-version=3D"1.0.0", + org.jboss.ide.eclipse.as.wtp.core;bundle-version=3D"1.0.0" Eclipse-LazyStart: true Bundle-Vendor: %Bundle-Vendor.0 Export-Package: org.jboss.tools.esb.project.ui Modified: trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/to= ols/esb/project/ui/wizards/export/ESBComponentExportOperation.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/es= b/project/ui/wizards/export/ESBComponentExportOperation.java 2009-09-08 15:= 33:00 UTC (rev 17475) +++ trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/es= b/project/ui/wizards/export/ESBComponentExportOperation.java 2009-09-08 15:= 53:22 UTC (rev 17476) @@ -11,10 +11,10 @@ package org.jboss.tools.esb.project.ui.wizards.export; = import org.eclipse.wst.common.frameworks.datamodel.IDataModel; -import org.jboss.tools.as.wst.server.ui.xpl.J2EEModuleExportOperation; +import org.jboss.ide.eclipse.as.wtp.core.vcf.ModuleExportOperation; import org.jboss.tools.esb.core.ESBProjectConstant; = -public class ESBComponentExportOperation extends J2EEModuleExportOperation= { +public class ESBComponentExportOperation extends ModuleExportOperation { public ESBComponentExportOperation() { super(); } --===============8885244472481041679==-- From jbosstools-commits at lists.jboss.org Tue Sep 8 12:39:09 2009 Content-Type: multipart/mixed; boundary="===============0842371468592029774==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17473 - trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor. Date: Tue, 08 Sep 2009 11:05:35 -0400 Message-ID: <200909081505.n88F5Zxn027054@svn01.web.mwc.hst.phx2.redhat.com> --===============0842371468592029774== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: rob.stryker(a)jboss.com Date: 2009-09-08 11:05:35 -0400 (Tue, 08 Sep 2009) New Revision: 17473 Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclip= se/as/ui/editor/LocalDeploymentModuleTab.java Log: first column should not be editable Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/id= e/eclipse/as/ui/editor/LocalDeploymentModuleTab.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/ecli= pse/as/ui/editor/LocalDeploymentModuleTab.java 2009-09-07 16:50:20 UTC (rev= 17472) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/ecli= pse/as/ui/editor/LocalDeploymentModuleTab.java 2009-09-08 15:05:35 UTC (rev= 17473) @@ -578,6 +578,8 @@ = private class LocalDeploymentCellModifier implements ICellModifier { public boolean canModify(Object element, String property) { + if( property =3D=3D LOCAL_COLUMN_NAME) + return false; return true; } = --===============0842371468592029774==-- From jbosstools-commits at lists.jboss.org Tue Sep 8 12:39:09 2009 Content-Type: multipart/mixed; boundary="===============4534248760933198079==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17474 - trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/preferences. Date: Tue, 08 Sep 2009 11:09:42 -0400 Message-ID: <200909081509.n88F9gCL027931@svn01.web.mwc.hst.phx2.redhat.com> --===============4534248760933198079== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vyemialyanchyk Date: 2009-09-08 11:09:41 -0400 (Tue, 08 Sep 2009) New Revision: 17474 Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/con= sole/preferences/AbstractConsoleConfigurationPreferences.java Log: https://jira.jboss.org/jira/browse/JBIDE-4824 - inspect and fix potential u= nsafe code places to proper usage of w3c dom and the changes in upcoming WT= P 3.2 Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibern= ate/console/preferences/AbstractConsoleConfigurationPreferences.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/co= nsole/preferences/AbstractConsoleConfigurationPreferences.java 2009-09-08 1= 5:05:35 UTC (rev 17473) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/co= nsole/preferences/AbstractConsoleConfigurationPreferences.java 2009-09-08 1= 5:09:41 UTC (rev 17474) @@ -210,9 +210,10 @@ String[] mappings =3D new String[0]; String[] classpath =3D new String[0]; = - cfgName =3D node.getAttribute(NAME_ATTRIB); + if (node.hasAttribute(NAME_ATTRIB)) { + cfgName =3D node.getAttribute(NAME_ATTRIB); + } = - String attribute =3D node.getAttribute(ANNOTATIONS_ATTRIB); if(StringHelper.isNotEmpty( attribute )) { boolean oldAnnotationFlag =3D ((attribute !=3D null) && attribute.equal= sIgnoreCase("true")); //$NON-NLS-1$ @@ -231,7 +232,7 @@ setProjectName( attribute ); = attribute =3D node.getAttribute( USE_PROJECT_CLASSPATH_ATTRIB ); - setUseProjectClasspath((attribute !=3D null) && attribute.equalsIgnoreCa= se("true")); //$NON-NLS-1$ + setUseProjectClasspath("true".equalsIgnoreCase(attribute)); //$NON-NLS-1$ = attribute =3D node.getAttribute(ENTITYRESOLVER_ATTRIB); if(attribute!=3Dnull && attribute.trim().length()>0) { @@ -240,12 +241,18 @@ = NodeList elements =3D node.getElementsByTagName(HIBERNATE_CONFIG_XML_TAG= ); if(elements.getLength()=3D=3D1) { - cfgFile =3D ( (Element)elements.item(0) ).getAttribute(LOCATION_ATTRIB); + final Element el =3D (Element)elements.item(0); + if (el.hasAttribute(LOCATION_ATTRIB)) { + cfgFile =3D el.getAttribute(LOCATION_ATTRIB); + } } = elements =3D node.getElementsByTagName(HIBERNATE_PROPERTIES_TAG); if(elements.getLength()=3D=3D1) { - propFile =3D ( (Element)elements.item(0) ).getAttribute(LOCATION_ATTRIB= ); + final Element el =3D (Element)elements.item(0); + if (el.hasAttribute(LOCATION_ATTRIB)) { + propFile =3D el.getAttribute(LOCATION_ATTRIB); + } } = = @@ -276,7 +283,8 @@ result =3D new String[maps.getLength()]; for (int j =3D 0; j < maps.getLength(); j++) { Element child =3D (Element) maps.item(j); - result[j] =3D child.getAttribute(LOCATION_ATTRIB); + result[j] =3D child.hasAttribute(LOCATION_ATTRIB) ? + child.getAttribute(LOCATION_ATTRIB) : null; } } return result; --===============4534248760933198079==-- From jbosstools-commits at lists.jboss.org Tue Sep 8 12:39:09 2009 Content-Type: multipart/mixed; boundary="===============6609738569671973248==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17475 - in workspace/yzhishko: org.jboss.tools.vpe.ui.bot.test/resources/editor and 7 other directories. Date: Tue, 08 Sep 2009 11:33:01 -0400 Message-ID: <200909081533.n88FX13v000516@svn01.web.mwc.hst.phx2.redhat.com> --===============6609738569671973248== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: yzhishko Date: 2009-09-08 11:33:00 -0400 (Tue, 08 Sep 2009) New Revision: 17475 Modified: workspace/yzhishko/org.jboss.tools.ui.bot.test/src/org/jboss/tools/ui/bo= t/test/JBTSWTBotTestCase.java workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/editor/Bloc= kCommentTestLinesToggle.xml workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/editor/Bloc= kCommentTestToggle.xml workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/editor/Comm= entTestUntoggle.xml workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/editor/Togg= leCommentTestToggle.xml workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/editor/Veri= ficationOfNameSpaces.xml workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/= AddSubstitutedELExpressionHelloPage.xml workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/= AddSubstitutedELExpressionTestPage.xml workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/= RemoveSubstitutedELExpressionHelloPage.xml workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/= RemoveSubstitutedELExpressionTestPage.xml workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/preferences= /HideBorderForUnknownTag.xml workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/preferences= /HideResourceBundlesUsageasELExpressions.xml workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/preferences= /ShowBorderForUnknownTag.xml workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/preferences= /ShowResourceBundlesUsageasELExpressions.xml workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/v= pe/ui/bot/test/VPEAutoTestCase.java workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/v= pe/ui/bot/test/editor/BlockCommentTest.java workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/v= pe/ui/bot/test/editor/ToggleCommentTest.java workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/v= pe/ui/bot/test/editor/VPEEditorTestCase.java workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/v= pe/ui/bot/test/editor/VerificationOfNameSpacesTest.java workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/v= pe/ui/bot/test/editor/pagedesign/AddSubstitutedELExpressionFolderScopeTest.= java workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/v= pe/ui/bot/test/editor/pagedesign/SubstitutedELTestCase.java workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/v= pe/ui/bot/test/editor/preferences/AlwaysHideSelectionBarWithoutPromptTest.j= ava workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/v= pe/ui/bot/test/editor/preferences/BorderForUnknownTagsTest.java workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/v= pe/ui/bot/test/editor/preferences/ChangeEditorTabForTheFirstOpenPageTest.ja= va workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/v= pe/ui/bot/test/editor/preferences/ShowNonVisualTagsTest.java workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/v= pe/ui/bot/test/editor/preferences/ShowResourceBundlesUsageasELexpressionsTe= st.java workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/v= pe/ui/bot/test/palette/CancelTagLibDefenitionTest.java workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/v= pe/ui/bot/test/palette/ImportTagsFromTLDFileTest.java Log: waitForJobs() method has been replaced by waitForBlockingJobsFinished(...).= Problem with long test running has been resolved. Tests were redesigned. Modified: workspace/yzhishko/org.jboss.tools.ui.bot.test/src/org/jboss/tool= s/ui/bot/test/JBTSWTBotTestCase.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.ui.bot.test/src/org/jboss/tools/ui/b= ot/test/JBTSWTBotTestCase.java 2009-09-08 15:09:41 UTC (rev 17474) +++ workspace/yzhishko/org.jboss.tools.ui.bot.test/src/org/jboss/tools/ui/b= ot/test/JBTSWTBotTestCase.java 2009-09-08 15:33:00 UTC (rev 17475) @@ -13,9 +13,12 @@ import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree; = public abstract class JBTSWTBotTestCase extends SWTBotTestCase implements - ILogListener { + ILogListener{ = - private Throwable exception; + protected static final String BUILDING_WS =3D "Building workspace"; + protected static final String VISUAL_UPDATE =3D "Visual Editor View Updat= e"; + protected static final String VISUAL_REFRESH =3D "Visual Editor Refresh"; + private volatile Throwable exception; public static final String PATH_TO_SWT_BOT_PROPERTIES =3D "SWTBot.propert= ies"; private static Properties SWT_BOT_PROPERTIES; protected SWTJBTBot bot =3D new SWTJBTBot(); @@ -72,7 +75,7 @@ * @see Throwable */ = - protected Throwable getException() { + protected synchronized Throwable getException() { return exception; } = @@ -83,7 +86,7 @@ * @see Throwable */ = - protected void setException(Throwable e) { + protected synchronized void setException(Throwable e) { this.exception =3D e; } = @@ -199,19 +202,59 @@ // } = /** - * Wait until job manager is currently idle + * Use delay() method instead + * @see #delay() */ - = - protected void waitForJobs(){ + @Deprecated = + protected final void waitForJobs(){ delay(); - while (!Job.getJobManager().isIdle()) { - Job[] jobs =3D Job.getJobManager().find(null); - for (Job job : jobs) { - if ("Updating indexes".equals(job.getName())) { - job.cancel(); - } - } - } } = + protected final void waitForBlockingJobsAcomplished(long timeOut, String.= .. jobNames) throws InterruptedException{ + if (jobNames =3D=3D null) { + delay(); + } else { + boolean isProcessStarted =3D false; + long startTime =3D System.currentTimeMillis(); + while (!isProcessStarted) { + Job[] jobs =3D Job.getJobManager().find(null); + for (Job job : jobs) { + for (String jobName : jobNames) { + if (jobName.equalsIgnoreCase(job.getName())) { + isProcessStarted =3D true; + } + } + } + long endTime =3D System.currentTimeMillis(); + if (endTime-startTime>timeOut) { + throw new InterruptedException(stringArrayToString(jobNames) + "job(s= ) has never appeared or already completed"); + } + } + while (isProcessStarted) { + isProcessStarted =3D false; + Job[] jobs =3D Job.getJobManager().find(null); + for (Job job : jobs) { + for (String jobName : jobNames) { + if (jobName.equalsIgnoreCase(job.getName())) { + delay(); + isProcessStarted =3D true; + } + } + } + } + } + } + = + protected final void waitForBlockingJobsAcomplished(String... jobNames) t= hrows InterruptedException{ + waitForBlockingJobsAcomplished(5*1000L, jobNames); + } + = + private String stringArrayToString (String... strings){ + StringBuffer buffer =3D new StringBuffer(""); + for (String string : strings) { + buffer.append(string+", "); + } + return buffer.toString(); + } + = } Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/edit= or/BlockCommentTestLinesToggle.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/editor/Blo= ckCommentTestLinesToggle.xml 2009-09-08 15:09:41 UTC (rev 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/editor/Blo= ckCommentTestLinesToggle.xml 2009-09-08 15:33:00 UTC (rev 17475) @@ -1,6 +1,12 @@ - - -
+ + +
+
+

+Input User Name Page +

+
+
@@ -30,5 +36,5 @@
- - \ No newline at end of file + + \ No newline at end of file Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/edit= or/BlockCommentTestToggle.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/editor/Blo= ckCommentTestToggle.xml 2009-09-08 15:09:41 UTC (rev 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/editor/Blo= ckCommentTestToggle.xml 2009-09-08 15:33:00 UTC (rev 17475) @@ -1,6 +1,12 @@ - - -
+ + +
+
+

+Input User Name Page +

+
+
@@ -32,5 +38,5 @@
- - \ No newline at end of file +
+ \ No newline at end of file Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/edit= or/CommentTestUntoggle.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/editor/Com= mentTestUntoggle.xml 2009-09-08 15:09:41 UTC (rev 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/editor/Com= mentTestUntoggle.xml 2009-09-08 15:33:00 UTC (rev 17475) @@ -1,6 +1,12 @@ - - -
+ + +
+
+

+Input User Name Page +

+
+
@@ -33,5 +39,5 @@
- - \ No newline at end of file +
+ \ No newline at end of file Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/edit= or/ToggleCommentTestToggle.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/editor/Tog= gleCommentTestToggle.xml 2009-09-08 15:09:41 UTC (rev 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/editor/Tog= gleCommentTestToggle.xml 2009-09-08 15:33:00 UTC (rev 17475) @@ -1,6 +1,12 @@ - - -
+ + +
+
+

+Input User Name Page +

+
+
@@ -32,5 +38,5 @@
- - \ No newline at end of file +
+ \ No newline at end of file Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/edit= or/VerificationOfNameSpaces.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/editor/Ver= ificationOfNameSpaces.xml 2009-09-08 15:09:41 UTC (rev 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/editor/Ver= ificationOfNameSpaces.xml 2009-09-08 15:33:00 UTC (rev 17475) @@ -1,4 +1,5 @@ + ...
Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/page= design/AddSubstitutedELExpressionHelloPage.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign= /AddSubstitutedELExpressionHelloPage.xml 2009-09-08 15:09:41 UTC (rev 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign= /AddSubstitutedELExpressionHelloPage.xml 2009-09-08 15:33:00 UTC (rev 17475) @@ -1,6 +1,12 @@ - - -
+ + +
+
+

+Hello! +

+
+
@@ -24,5 +30,5 @@
- - \ No newline at end of file +
+ \ No newline at end of file Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/page= design/AddSubstitutedELExpressionTestPage.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign= /AddSubstitutedELExpressionTestPage.xml 2009-09-08 15:09:41 UTC (rev 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign= /AddSubstitutedELExpressionTestPage.xml 2009-09-08 15:33:00 UTC (rev 17475) @@ -1,6 +1,12 @@ - - -
+ + +
+
+

+Input User Name Page +

+
+
@@ -33,5 +39,5 @@
- - \ No newline at end of file +
+ \ No newline at end of file Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/page= design/RemoveSubstitutedELExpressionHelloPage.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign= /RemoveSubstitutedELExpressionHelloPage.xml 2009-09-08 15:09:41 UTC (rev 17= 474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign= /RemoveSubstitutedELExpressionHelloPage.xml 2009-09-08 15:33:00 UTC (rev 17= 475) @@ -1,6 +1,12 @@ - - -
+ + +
+
+

+Hello! +

+
+
@@ -24,5 +30,5 @@
- - \ No newline at end of file +
+ \ No newline at end of file Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/page= design/RemoveSubstitutedELExpressionTestPage.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign= /RemoveSubstitutedELExpressionTestPage.xml 2009-09-08 15:09:41 UTC (rev 174= 74) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign= /RemoveSubstitutedELExpressionTestPage.xml 2009-09-08 15:33:00 UTC (rev 174= 75) @@ -1,6 +1,12 @@ - - -
+ + +
+
+

+Input User Name Page +

+
+
@@ -33,5 +39,5 @@
- - +
+ \ No newline at end of file Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/pref= erences/HideBorderForUnknownTag.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/preference= s/HideBorderForUnknownTag.xml 2009-09-08 15:09:41 UTC (rev 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/preference= s/HideBorderForUnknownTag.xml 2009-09-08 15:33:00 UTC (rev 17475) @@ -1,6 +1,12 @@ - - -
+ + +
+
+

+Input User Name Page +

+
+
@@ -37,5 +43,5 @@
- - +
+ \ No newline at end of file Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/pref= erences/HideResourceBundlesUsageasELExpressions.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/preference= s/HideResourceBundlesUsageasELExpressions.xml 2009-09-08 15:09:41 UTC (rev = 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/preference= s/HideResourceBundlesUsageasELExpressions.xml 2009-09-08 15:33:00 UTC (rev = 17475) @@ -1,6 +1,12 @@ - - -
+ + +
+
+

+Input User Name Page +

+
+
@@ -33,5 +39,5 @@
- - \ No newline at end of file +
+ \ No newline at end of file Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/pref= erences/ShowBorderForUnknownTag.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/preference= s/ShowBorderForUnknownTag.xml 2009-09-08 15:09:41 UTC (rev 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/preference= s/ShowBorderForUnknownTag.xml 2009-09-08 15:33:00 UTC (rev 17475) @@ -1,6 +1,12 @@ - - -
+ + +
+
+

+Input User Name Page +

+
+
@@ -37,5 +43,5 @@
- - \ No newline at end of file +
+ \ No newline at end of file Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/pref= erences/ShowResourceBundlesUsageasELExpressions.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/preference= s/ShowResourceBundlesUsageasELExpressions.xml 2009-09-08 15:09:41 UTC (rev = 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/resources/preference= s/ShowResourceBundlesUsageasELExpressions.xml 2009-09-08 15:33:00 UTC (rev = 17475) @@ -1,6 +1,12 @@ - - -
+ + +
+
+

+Input User Name Page +

+
+
@@ -33,5 +39,5 @@
- - \ No newline at end of file +
+ \ No newline at end of file Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/= tools/vpe/ui/bot/test/VPEAutoTestCase.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/VPEAutoTestCase.java 2009-09-08 15:09:41 UTC (rev 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/VPEAutoTestCase.java 2009-09-08 15:33:00 UTC (rev 17475) @@ -97,7 +97,7 @@ bot.menu("File").menu("New").menu("Other...").click(); bot.shell("New").activate(); SWTBotTree tree =3D bot.tree(); - waitForJobs(); + delay(); tree.expandNode("JBoss Tools Web").expandNode("JSF").select("JSF Project= "); bot.button("Next >").click(); bot.textWithLabel("Project Name*").setText(jsfProjectName); @@ -105,7 +105,7 @@ bot.button("Next >").click(); try { bot.comboBoxWithLabel("Runtime*").setSelection("jboss-eap Runtime"); - waitForJobs(); + delay(); bot.button("Finish").click(); try { bot.button("Yes").click(); @@ -117,7 +117,7 @@ } catch (WidgetNotFoundException e) { bot.button(0).click(); SWTBotTree innerTree =3D bot.tree(); - waitForJobs(); + delay(); innerTree.expandNode("JBoss Enterprise Middleware").select("JBoss Enter= prise Application Platform 4.3 Runtime"); bot.button("Next >").click(); bot.textWithLabel("Home Directory").setText(JBOSS_EAP_HOME); @@ -132,7 +132,10 @@ } catch (WidgetNotFoundException e2) { } } - waitForJobs(); + try { + waitForBlockingJobsAcomplished(60*1000L, BUILDING_WS); + } catch (InterruptedException e) { + } setException(null); } = @@ -147,7 +150,7 @@ * @see SWTBotMultiPageEditor * @see Throwable */ - = + @Deprecated protected void performContentTestByIDs(String expectedVPEContentFile, SWT= BotMultiPageEditor editor) throws Throwable{ = = JSPMultiPageEditor multiPageEditor =3D editor.getJSPMultiPageEditor(); Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/= tools/vpe/ui/bot/test/editor/BlockCommentTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/BlockCommentTest.java 2009-09-08 15:09:41 UTC (rev 1= 7474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/BlockCommentTest.java 2009-09-08 15:33:00 UTC (rev 1= 7475) @@ -19,14 +19,12 @@ = getEditor().navigateTo(22,22); bot.menu("Source").menu("Add Block Comment").click(); - waitForJobs(); checkVPE("BlockCommentTestToggle.xml"); = //Test remove block comment from Source menu = getEditor().navigateTo(22,22); bot.menu("Source").menu("Remove Block Comment").click(); - waitForJobs(); checkVPE("CommentTestUntoggle.xml"); = = @@ -34,42 +32,36 @@ = getEditor().navigateTo(22,22); pressBlockCommentHotKeys(); - waitForJobs(); checkVPE("BlockCommentTestToggle.xml"); = //Test remove block comment with CTRL+SHIFT+\ hot keys = getEditor().navigateTo(22,22); pressUnBlockCommentHotKeys(); - waitForJobs(); checkVPE("CommentTestUntoggle.xml"); = //Test add block comment lines from Source menu = getEditor().navigateTo(18,22); bot.menu("Source").menu("Add Block Comment").click(); - waitForJobs(); checkVPE("BlockCommentTestLinesToggle.xml"); = //Test remove block comment lines from Source menu = getEditor().navigateTo(18,22); bot.menu("Source").menu("Remove Block Comment").click(); - waitForJobs(); checkVPE("CommentTestUntoggle.xml"); = //Test add block comment lines with CTRL+SHIFT+/ hot keys = getEditor().navigateTo(18,22); bot.menu("Source").menu("Add Block Comment").click(); - waitForJobs(); checkVPE("BlockCommentTestLinesToggle.xml"); = //Test remove block comment lines with CTRL+SHIFT+/ hot keys = getEditor().navigateTo(18,22); bot.menu("Source").menu("Remove Block Comment").click(); - waitForJobs(); checkVPE("CommentTestUntoggle.xml"); = } Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/= tools/vpe/ui/bot/test/editor/ToggleCommentTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/ToggleCommentTest.java 2009-09-08 15:09:41 UTC (rev = 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/ToggleCommentTest.java 2009-09-08 15:33:00 UTC (rev = 17475) @@ -19,7 +19,6 @@ = getEditor().navigateTo(22,22); bot.menu("Source").menu("Toggle Comment").click(); - waitForJobs(); checkSelectionBar("#comment"); checkVPE("ToggleCommentTestToggle.xml"); = @@ -27,7 +26,6 @@ = getEditor().navigateTo(22,22); bot.menu("Source").menu("Toggle Comment").click(); - waitForJobs(); checkSelectionBar("h:commandButton"); checkVPE("CommentTestUntoggle.xml"); = @@ -35,7 +33,6 @@ = getEditor().navigateTo(22,22); pressToggleCommentHotKeys(); - waitForJobs(); checkSelectionBar("#comment"); checkVPE("ToggleCommentTestToggle.xml"); = @@ -43,7 +40,6 @@ = getEditor().navigateTo(22,22); pressToggleCommentHotKeys(); - waitForJobs(); checkSelectionBar("h:commandButton"); checkVPE("CommentTestUntoggle.xml"); = Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/= tools/vpe/ui/bot/test/editor/VPEEditorTestCase.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/VPEEditorTestCase.java 2009-09-08 15:09:41 UTC (rev = 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/VPEEditorTestCase.java 2009-09-08 15:33:00 UTC (rev = 17475) @@ -60,13 +60,11 @@ } = void checkVPE(String testPage) throws Throwable{ - editor.selectLine(9); - if (!"".equals(editor.getTextOnCurrentLine().trim(= ))) { - editor.insertText(""); + try { + waitForBlockingJobsAcomplished("Save", VISUAL_REFRESH, VISUAL_UPDATE); + } catch (InterruptedException e) { } - editor.save(); - waitForJobs(); - performContentTestByIDs(testPage, bot.multiPageEditorByTitle(TEST_PAGE)); + performContentTestByDocument(testPage, bot.multiPageEditorByTitle(TEST_P= AGE)); } = @Override @@ -79,7 +77,10 @@ bot.menu("Edit").menu("Delete").click(); editor.setText(editorText); editor.save(); - waitForJobs(); + try { + waitForBlockingJobsAcomplished("Save"); + } catch (InterruptedException e) { + } editor.close(); super.tearDown(); } Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/= tools/vpe/ui/bot/test/editor/VerificationOfNameSpacesTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/VerificationOfNameSpacesTest.java 2009-09-08 15:09:4= 1 UTC (rev 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/VerificationOfNameSpacesTest.java 2009-09-08 15:33:0= 0 UTC (rev 17475) @@ -22,14 +22,17 @@ = getEditor().setFocus(); bot.menu("Edit").menu("Select All").click(); - waitForJobs(); + delay(); bot.menu("Edit").menu("Delete").click(); = //Test insert test text = getEditor().setText(testText); getEditor().save(); - waitForJobs(); + try { + waitForBlockingJobsAcomplished("Save", VISUAL_REFRESH, VISUAL_UPDATE); + } catch (InterruptedException e) { + } performContentTestByDocument("VerificationOfNameSpaces.xml", bot.multiPa= geEditorByTitle(TEST_PAGE)); = } Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/= tools/vpe/ui/bot/test/editor/pagedesign/AddSubstitutedELExpressionFolderSco= peTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/pagedesign/AddSubstitutedELExpressionFolderScopeTest= .java 2009-09-08 15:09:41 UTC (rev 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/pagedesign/AddSubstitutedELExpressionFolderScopeTest= .java 2009-09-08 15:33:00 UTC (rev 17475) @@ -1,6 +1,7 @@ package org.jboss.tools.vpe.ui.bot.test.editor.pagedesign; = import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEclipseEditor; +import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor; import org.eclipse.swtbot.swt.finder.SWTBot; import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable; import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree; @@ -44,7 +45,7 @@ bot.shell("New File JSP").activate(); bot.textWithLabel("Name*").setText(TEST_PAGE_FOR_FOLDER); bot.button("Finish").click(); - waitForJobs(); + delay(); SWTBotEclipseEditor editorForTestPage =3D bot.editorByTitle(TEST_PAGE_FO= R_FOLDER+".jsp").toTextEditor(); editorForTestPage.setText(getEditorText()); editorForTestPage.save(); @@ -88,7 +89,10 @@ //Test close Design Options = bot.button("OK").click(); - waitForJobs(); + try { + waitForBlockingJobsAcomplished(VISUAL_REFRESH,VISUAL_UPDATE); + } catch (InterruptedException e) { + } = //Check page content = @@ -131,7 +135,7 @@ bot.menu("Edit").menu("Delete").click(); bot.shell("Confirm Delete").activate(); bot.button("OK").click(); - waitForJobs(); + delay(); super.tearDown(); } = @@ -144,24 +148,20 @@ tree.expandNode(JBT_TEST_PROJECT_NAME) .expandNode("WebContent").expandNode(TEST_FOLDER) .getNode(TEST_PAGE_FOR_FOLDER+".jsp").doubleClick(); - SWTBotEclipseEditor editor =3D bot.editorByTitle(TEST_PAGE_FOR_FOLDER+".= jsp").toTextEditor(); - String editorText =3D editor.getText(); - editor.selectLine(9); - if (!"".equals(editor.getTextOnCurrentLine().trim(= ))) { - editor.insertText(""); + SWTBotEditor editor =3D bot.editorByTitle(TEST_PAGE_FOR_FOLDER+".jsp"); + try { + waitForBlockingJobsAcomplished(VISUAL_REFRESH, VISUAL_UPDATE); + } catch (InterruptedException e) { } - editor.save(); - waitForJobs(); = //Check page content = try { - performContentTestByIDs(testPageFolder, bot.multiPageEditorByTitle(TEST= _PAGE_FOR_FOLDER+".jsp")); + performContentTestByDocument(testPageFolder, bot.multiPageEditorByTitle= (TEST_PAGE_FOR_FOLDER+".jsp")); } catch (Throwable e) { throw e; }finally{ - editor.setText(editorText); - editor.saveAndClose(); + editor.close(); openPage(); } = Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/= tools/vpe/ui/bot/test/editor/pagedesign/SubstitutedELTestCase.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/pagedesign/SubstitutedELTestCase.java 2009-09-08 15:= 09:41 UTC (rev 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/pagedesign/SubstitutedELTestCase.java 2009-09-08 15:= 33:00 UTC (rev 17475) @@ -1,6 +1,7 @@ package org.jboss.tools.vpe.ui.bot.test.editor.pagedesign; = import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEclipseEditor; +import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor; import org.eclipse.swtbot.swt.finder.SWTBot; import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException; import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable; @@ -13,7 +14,6 @@ static final String SUBSTITUTED_EL =3D "Substituted EL expressions"; private SWTBotEclipseEditor editor; private String editorText; - private String textHelloPage; = = SWTBotEclipseEditor getEditor() { @@ -54,13 +54,11 @@ = = void checkVPEForTestPage(String testPage) throws Throwable{ - editor.selectLine(9); - if (!"".equals(editor.getTextOnCurrentLine().trim(= ))) { - editor.insertText(""); + try { + waitForBlockingJobsAcomplished(VISUAL_REFRESH, VISUAL_UPDATE); + } catch (InterruptedException e) { } - editor.save(); - waitForJobs(); - performContentTestByIDs(testPage, bot.multiPageEditorByTitle(TEST_PAGE)); + performContentTestByDocument(testPage, bot.multiPageEditorByTitle(TEST_P= AGE)); } = @Override @@ -70,8 +68,6 @@ = @Override protected void tearDown() throws Exception { - editor.setText(editorText); - editor.save(); bot.toolbarButtonWithTooltip(PAGE_DESIGN).click(); bot.shell(PAGE_DESIGN).activate(); bot.tabItem(SUBSTITUTED_EL).activate(); @@ -104,24 +100,20 @@ SWTBotTree tree =3D innerBot.tree(); tree.expandNode(JBT_TEST_PROJECT_NAME) .expandNode("WebContent").expandNode("pages").getNode("hello.jsp").doubl= eClick(); - SWTBotEclipseEditor editor =3D bot.editorByTitle("hello.jsp").toTextEdit= or(); - textHelloPage =3D editor.getText(); - editor.selectLine(10); - if (!"".equals(editor.getTextOnCurrentLine().trim(= ))) { - editor.insertText(""); + SWTBotEditor editor =3D bot.editorByTitle("hello.jsp"); + try { + waitForBlockingJobsAcomplished(VISUAL_REFRESH, VISUAL_UPDATE); + } catch (InterruptedException e) { } - editor.save(); - waitForJobs(); = //Check page content = try { - performContentTestByIDs(testHelloPage, bot.multiPageEditorByTitle("hell= o.jsp")); + performContentTestByDocument(testHelloPage, bot.multiPageEditorByTitle(= "hello.jsp")); } catch (Throwable e) { throw e; }finally{ - editor.setText(textHelloPage); - editor.saveAndClose(); + editor.close(); openPage(); } } Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/= tools/vpe/ui/bot/test/editor/preferences/AlwaysHideSelectionBarWithoutPromp= tTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/preferences/AlwaysHideSelectionBarWithoutPromptTest.= java 2009-09-08 15:09:41 UTC (rev 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/preferences/AlwaysHideSelectionBarWithoutPromptTest.= java 2009-09-08 15:33:00 UTC (rev 17475) @@ -29,7 +29,6 @@ = selectSelection(); selectPrompt(); - waitForJobs(); checkIsHide(); = //Test Hide selection after reopen @@ -41,7 +40,6 @@ //Test Show Selection Bar = selectSelection(); - waitForJobs(); checkIsShow(); = //Test Show Selection Bar after reopen @@ -64,7 +62,6 @@ //Test Show Selection Bar from dialog = selectSelection(); - waitForJobs(); checkIsShow(); = //Test Show Selection Bar after reopen Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/= tools/vpe/ui/bot/test/editor/preferences/BorderForUnknownTagsTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/preferences/BorderForUnknownTagsTest.java 2009-09-08= 15:09:41 UTC (rev 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/preferences/BorderForUnknownTagsTest.java 2009-09-08= 15:33:00 UTC (rev 17475) @@ -56,13 +56,11 @@ } = private void checkVPE(String testPage) throws Throwable{ - editor.selectLine(9); - if (!"".equals(editor.getTextOnCurrentLine().trim(= ))) { - editor.insertText(""); + try { + waitForBlockingJobsAcomplished(VISUAL_REFRESH, VISUAL_UPDATE); + } catch (InterruptedException e) { } - editor.save(); - waitForJobs(); - performContentTestByIDs(testPage, bot.multiPageEditorByTitle(TEST_PAGE)); + performContentTestByDocument(testPage, bot.multiPageEditorByTitle(TEST_P= AGE)); } = private void selectBorder(){ @@ -92,7 +90,10 @@ bot.menu("Edit").menu("Delete").click(); editor.setText(textEditor); editor.save(); - waitForJobs(); + try { + waitForBlockingJobsAcomplished("Save"); + } catch (InterruptedException e) { + } editor.close(); super.tearDown(); } Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/= tools/vpe/ui/bot/test/editor/preferences/ChangeEditorTabForTheFirstOpenPage= Test.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/preferences/ChangeEditorTabForTheFirstOpenPageTest.j= ava 2009-09-08 15:09:41 UTC (rev 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/preferences/ChangeEditorTabForTheFirstOpenPageTest.j= ava 2009-09-08 15:33:00 UTC (rev 17475) @@ -30,7 +30,7 @@ bot.shell("New File JSP").activate(); bot.textWithLabel("Name*").setText("testPage"); bot.button("Finish").click(); - waitForJobs(); + delay(); bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER).setFocus(); = //Check if the tab changed @@ -74,7 +74,7 @@ bot.button("OK").click(); }catch (WidgetNotFoundException e) { } - waitForJobs(); + delay(); super.tearDown(); } = Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/= tools/vpe/ui/bot/test/editor/preferences/ShowNonVisualTagsTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/preferences/ShowNonVisualTagsTest.java 2009-09-08 15= :09:41 UTC (rev 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/preferences/ShowNonVisualTagsTest.java 2009-09-08 15= :33:00 UTC (rev 17475) @@ -38,7 +38,10 @@ } = private void checkVPE(String testPage) throws Throwable{ - waitForJobs(); + try { + waitForBlockingJobsAcomplished(VISUAL_REFRESH, VISUAL_UPDATE); + } catch (InterruptedException e) { + } performContentTestByDocument(testPage, bot.multiPageEditorByTitle(TEST_P= AGE)); } = Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/= tools/vpe/ui/bot/test/editor/preferences/ShowResourceBundlesUsageasELexpres= sionsTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/preferences/ShowResourceBundlesUsageasELexpressionsT= est.java 2009-09-08 15:09:41 UTC (rev 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/editor/preferences/ShowResourceBundlesUsageasELexpressionsT= est.java 2009-09-08 15:33:00 UTC (rev 17475) @@ -60,19 +60,20 @@ bot.menu("Edit").menu("Delete").click(); editor.setText(textEditor); editor.save(); - waitForJobs(); + try { + waitForBlockingJobsAcomplished("Save"); + } catch (InterruptedException e) { + } editor.close(); super.tearDown(); } = private void checkVPE(String testPage) throws Throwable{ - editor.selectLine(9); - if (!"".equals(editor.getTextOnCurrentLine().trim(= ))) { - editor.insertText(""); + try { + waitForBlockingJobsAcomplished(VISUAL_REFRESH, VISUAL_UPDATE); + } catch (InterruptedException e) { } - editor.save(); - waitForJobs(); - performContentTestByIDs(testPage, bot.multiPageEditorByTitle(TEST_PAGE)); + performContentTestByDocument(testPage, bot.multiPageEditorByTitle(TEST_P= AGE)); } = private void selectELExpressions(){ Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/= tools/vpe/ui/bot/test/palette/CancelTagLibDefenitionTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/palette/CancelTagLibDefenitionTest.java 2009-09-08 15:09:41= UTC (rev 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/palette/CancelTagLibDefenitionTest.java 2009-09-08 15:33:00= UTC (rev 17475) @@ -26,7 +26,7 @@ = //Test cancel TLD SWTBotTree tree =3D bot.tree(); - waitForJobs(); + delay(); tree.expandNode(projectProperties.getProperty("JSFProjectName")).expandN= ode("x-1_0-rt.tld [x_rt]").select(); bot.button("Cancel").click(); = Modified: workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/= tools/vpe/ui/bot/test/palette/ImportTagsFromTLDFileTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/palette/ImportTagsFromTLDFileTest.java 2009-09-08 15:09:41 = UTC (rev 17474) +++ workspace/yzhishko/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/= vpe/ui/bot/test/palette/ImportTagsFromTLDFileTest.java 2009-09-08 15:33:00 = UTC (rev 17475) @@ -66,7 +66,7 @@ bot.button("Browse...").click(); bot.shell("Edit TLD").activate(); SWTBotTree tree =3D bot.tree(); - waitForJobs(); + delay(); tree.expandNode(projectProperties.getProperty("JSFProjectName")).expandN= ode("c.tld [c]").select(); bot.button("OK").click(); = --===============6609738569671973248==-- From jbosstools-commits at lists.jboss.org Tue Sep 8 13:08:28 2009 Content-Type: multipart/mixed; boundary="===============1377149227518633044==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17478 - trunk/esb/plugins/org.jboss.tools.esb.project.core/META-INF. Date: Tue, 08 Sep 2009 12:05:15 -0400 Message-ID: <200909081605.n88G5F3Z007969@svn01.web.mwc.hst.phx2.redhat.com> --===============1377149227518633044== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: rob.stryker(a)jboss.com Date: 2009-09-08 12:05:15 -0400 (Tue, 08 Sep 2009) New Revision: 17478 Modified: trunk/esb/plugins/org.jboss.tools.esb.project.core/META-INF/MANIFEST.MF Log: JBIDE-4854 - ugh missed another file. doh Modified: trunk/esb/plugins/org.jboss.tools.esb.project.core/META-INF/MANIF= EST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/plugins/org.jboss.tools.esb.project.core/META-INF/MANIFEST.MF= 2009-09-08 15:58:54 UTC (rev 17477) +++ trunk/esb/plugins/org.jboss.tools.esb.project.core/META-INF/MANIFEST.MF= 2009-09-08 16:05:15 UTC (rev 17478) @@ -29,7 +29,8 @@ org.eclipse.jem.util, org.eclipse.wst.common.emfworkbench.integration, org.eclipse.emf.ecore, - org.jboss.ide.eclipse.as.classpath.core + org.jboss.ide.eclipse.as.classpath.core, + org.jboss.ide.eclipse.as.wtp.core;bundle-version=3D"1.0.0" Bundle-ActivationPolicy: lazy Bundle-Vendor: %providerName Export-Package: org.jboss.tools.esb.core, --===============1377149227518633044==-- From jbosstools-commits at lists.jboss.org Tue Sep 8 16:30:44 2009 Content-Type: multipart/mixed; boundary="===============1253303312327264225==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17479 - in trunk/common: plugins/org.jboss.tools.common/src/org/jboss/tools/common and 5 other directories. Date: Tue, 08 Sep 2009 16:30:44 -0400 Message-ID: <200909082030.n88KUiZH027649@svn01.web.mwc.hst.phx2.redhat.com> --===============1253303312327264225== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-08 16:30:44 -0400 (Tue, 08 Sep 2009) New Revision: 17479 Added: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/z= ip/ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/z= ip/DefaultZipEntryVisitor.java trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/z= ip/IZipEntryVisitor.java trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/z= ip/UnzipOperation.java trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/z= ip/ZipArchive.java trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/commo= n/zip/ trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/commo= n/zip/test/ trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/commo= n/zip/test/UnzipOperationTest.java trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/commo= n/zip/test/ZipAllTests.java trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/commo= n/zip/test/ZipArchiveTest.java trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/commo= n/zip/test/ZipBaseTest.java Modified: trunk/common/plugins/org.jboss.tools.common/META-INF/MANIFEST.MF trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/commo= n/test/CommonAllTests.java Log: https://jira.jboss.org/jira/browse/JBIDE-3628 Unzip support is added. It is required to give a way to extract templates f= rom seam plug-in to use them in seam faceted project. All zip utils are in org.jboss.tools.common.zip package and have 98% covera= ge by JUnit tests in org.jboss.tools.common.zip.test package. JUnit tests i= ncluded in common.test test suite. Modified: trunk/common/plugins/org.jboss.tools.common/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common/META-INF/MANIFEST.MF 2009-0= 9-08 16:05:15 UTC (rev 17478) +++ trunk/common/plugins/org.jboss.tools.common/META-INF/MANIFEST.MF 2009-0= 9-08 20:30:44 UTC (rev 17479) @@ -145,5 +145,6 @@ org.jboss.tools.common.reporting, org.jboss.tools.common.text, org.jboss.tools.common.util, - org.jboss.tools.common.xml + org.jboss.tools.common.xml, + org.jboss.tools.common.zip Bundle-RequiredExecutionEnvironment: J2SE-1.5 Added: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/comm= on/zip/DefaultZipEntryVisitor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= zip/DefaultZipEntryVisitor.java (rev 0) +++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= zip/DefaultZipEntryVisitor.java 2009-09-08 20:30:44 UTC (rev 17479) @@ -0,0 +1,14 @@ +package org.jboss.tools.common.zip; + +import java.io.IOException; +import java.util.zip.ZipEntry; +import java.util.zip.ZipFile; + +public class DefaultZipEntryVisitor implements IZipEntryVisitor { + + public void visiteDirectoryEntry(ZipFile zipFIle, ZipEntry dir) throws IO= Exception { + } + + public void visiteFileEntry(ZipFile zipFile, ZipEntry file) throws IOExce= ption { + } +} Property changes on: trunk/common/plugins/org.jboss.tools.common/src/org/jb= oss/tools/common/zip/DefaultZipEntryVisitor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/comm= on/zip/IZipEntryVisitor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= zip/IZipEntryVisitor.java (rev 0) +++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= zip/IZipEntryVisitor.java 2009-09-08 20:30:44 UTC (rev 17479) @@ -0,0 +1,10 @@ +package org.jboss.tools.common.zip; + +import java.io.IOException; +import java.util.zip.ZipEntry; +import java.util.zip.ZipFile; + +public interface IZipEntryVisitor { + void visiteDirectoryEntry (ZipFile zipFIle, ZipEntry dir) throws IOExcept= ion; + void visiteFileEntry (ZipFile zipFile, ZipEntry file) throws IOException; +} Property changes on: trunk/common/plugins/org.jboss.tools.common/src/org/jb= oss/tools/common/zip/IZipEntryVisitor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/comm= on/zip/UnzipOperation.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= zip/UnzipOperation.java (rev 0) +++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= zip/UnzipOperation.java 2009-09-08 20:30:44 UTC (rev 17479) @@ -0,0 +1,93 @@ +package org.jboss.tools.common.zip; + +import java.io.BufferedInputStream; +import java.io.BufferedOutputStream; +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.util.zip.ZipEntry; +import java.util.zip.ZipFile; + +public class UnzipOperation { + = + File zipFile; + = + public static final int BUFFER_SIZE =3D 1024*4; + = + public UnzipOperation(String zipFile) { + this(new File(zipFile)); + } + = + public UnzipOperation(File zipFile) { + this.zipFile =3D zipFile; + } + = + public void execute(File destination) throws IOException { + ZipArchive archive =3D new ZipArchive(zipFile); + archive.acceptVisitor(new UnzipEntryVisitor(destination)); + } + = + public void execute(String destination) throws IOException { + execute(new File(destination)); + } + + public void execute(File destination,String filter) throws IOException { + ZipArchive archive =3D new ZipArchive(zipFile); + archive.acceptVisitor(new FilteredZipEntryVisitor(filter,new UnzipEntryV= isitor(destination))); + } + = + public void execute(String destination,String filter) throws IOException { + execute(new File(destination,filter)); + } + = + public static class FilteredZipEntryVisitor implements IZipEntryVisitor{ + + private String filter; + private IZipEntryVisitor visitor; + + public FilteredZipEntryVisitor(String filter, IZipEntryVisitor visitor) { + this.filter =3D filter; + this.visitor =3D visitor; + } + = + public void visiteDirectoryEntry(ZipFile zipFile, ZipEntry dir) throws I= OException { + if(dir.getName().matches(filter)) { + visitor.visiteDirectoryEntry(zipFile, dir); + } + } + + public void visiteFileEntry(ZipFile zipFile, ZipEntry file) throws IOExc= eption { + if(file.getName().matches(filter)) { + visitor.visiteFileEntry(zipFile, file); + } + } + } + + public static class UnzipEntryVisitor implements IZipEntryVisitor { + + private File destination; + + public UnzipEntryVisitor(File destination) { + this.destination =3D destination; + } + = + public void visiteDirectoryEntry(ZipFile zipFIle, ZipEntry dir) throws I= OException { + File entryDir =3D new File(destination,dir.getName()); + entryDir.mkdirs(); + } + + public void visiteFileEntry(ZipFile zipFile, ZipEntry file) throws IOExc= eption { + File outputFile =3D new File(destination,file.getName()); + outputFile.getParentFile().mkdirs(); + outputFile.createNewFile(); + BufferedOutputStream out =3D new BufferedOutputStream(new FileOutputStr= eam(outputFile),BUFFER_SIZE); + BufferedInputStream in =3D new BufferedInputStream(zipFile.getInputStre= am(file)); + byte[] buff =3D new byte[BUFFER_SIZE]; + int n =3D -1; + while((n =3D in.read(buff,0,buff.length))>-1) { + out.write(buff, 0, n); + } + out.flush(); + } + } +} Property changes on: trunk/common/plugins/org.jboss.tools.common/src/org/jb= oss/tools/common/zip/UnzipOperation.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/comm= on/zip/ZipArchive.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= zip/ZipArchive.java (rev 0) +++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= zip/ZipArchive.java 2009-09-08 20:30:44 UTC (rev 17479) @@ -0,0 +1,52 @@ +package org.jboss.tools.common.zip; + +import java.io.File; +import java.io.IOException; +import java.util.Enumeration; +import java.util.zip.ZipEntry; +import java.util.zip.ZipFile; + +public class ZipArchive { + + File file =3D null; + = + public ZipArchive(String file) { + this(new File(file)); + } + = + public ZipArchive(File file) { + this.file =3D file; + } + + public void acceptVisitor(IZipEntryVisitor visitor) throws IOException{ + ZipFile zipFile =3D null; + zipFile =3D new ZipFile(this.file); + acceptVisitor(zipFile, visitor); + } + = + public static void acceptVisitor(ZipFile zipFile, IZipEntryVisitor visito= r) throws IOException { + try { + Enumeration entries =3D zipFile.entries(); + while(entries.hasMoreElements()) { + ZipEntry entry =3D entries.nextElement(); + if(entry.isDirectory()) { + visitor.visiteDirectoryEntry(zipFile, entry); + } else { + visitor.visiteFileEntry(zipFile, entry); + } + } + } finally { + if(zipFile!=3Dnull) { + try { + zipFile.close(); + } catch (IOException e) { + // Nothing to do with that + } + } + } + } + = + public String getAbsolutePath() { + return file.getAbsolutePath(); + } +} Property changes on: trunk/common/plugins/org.jboss.tools.common/src/org/jb= oss/tools/common/zip/ZipArchive.java ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tool= s/common/test/CommonAllTests.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/test/CommonAllTests.java 2009-09-08 16:05:15 UTC (rev 17478) +++ trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/test/CommonAllTests.java 2009-09-08 20:30:44 UTC (rev 17479) @@ -18,6 +18,7 @@ import org.jboss.tools.common.util.test.HttpUtilTest; import org.jboss.tools.common.xml.test.SAXValidatorTest; import org.jboss.tools.common.xml.test.XMLUtilitiesTest; +import org.jboss.tools.common.zip.test.ZipAllTests; = public class CommonAllTests extends TestCase { public static final String PLUGIN_ID =3D "org.jboss.tools.common.test"; @@ -30,6 +31,7 @@ suite.addTestSuite(SAXValidatorTest.class); suite.addTestSuite(ProblemReportingHelperTest.class); suite.addTestSuite(CommonPluginTest.class); + suite.addTestSuite(ZipAllTests.class); return suite; } } \ No newline at end of file Added: trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/c= ommon/zip/test/UnzipOperationTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/zip/test/UnzipOperationTest.java (rev 0) +++ trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/zip/test/UnzipOperationTest.java 2009-09-08 20:30:44 UTC (rev 17479) @@ -0,0 +1,44 @@ +package org.jboss.tools.common.zip.test; + +import java.io.File; +import java.io.IOException; + +import junit.framework.TestCase; + +import org.eclipse.core.runtime.FileLocator; +import org.eclipse.core.runtime.Platform; +import org.jboss.tools.common.zip.UnzipOperation; + +public class UnzipOperationTest extends ZipBaseTest { + + private static final String ORG_PACKAGE_FILTER =3D "org.*"; + + public void testUnzipOperationExecuteFile() throws IOException { + UnzipOperation unzip =3D new UnzipOperation(getZip().getAbsolutePath()); + File destination =3D new File(getTemp(),Long.toString(System.currentTime= Millis())); + destination.mkdirs(); + unzip.execute(destination); + } + + public void testUnzipOperationExecuteFileString() throws IOException { + UnzipOperation unzip =3D new UnzipOperation(getZip().getAbsolutePath()); + File destination =3D new File(getTemp(),Long.toString(System.currentTime= Millis())); + destination.mkdirs(); + unzip.execute(destination,ORG_PACKAGE_FILTER); + } + + public void testUnzipOperationExecuteString() throws IOException { + UnzipOperation unzip =3D new UnzipOperation(getZip()); + File destination =3D new File(getTemp(),Long.toString(System.currentTime= Millis())); + destination.mkdirs(); + unzip.execute(destination.getAbsolutePath()); + } + + public void testUnzipOperationExecuteStringString() throws IOException { + UnzipOperation unzip =3D new UnzipOperation(getZip()); + File destination =3D new File(getTemp(),Long.toString(System.currentTime= Millis())); + destination.mkdirs(); + unzip.execute(destination.getAbsolutePath(),ORG_PACKAGE_FILTER); + } + +} Property changes on: trunk/common/tests/org.jboss.tools.common.test/src/org= /jboss/tools/common/zip/test/UnzipOperationTest.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/c= ommon/zip/test/ZipAllTests.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/zip/test/ZipAllTests.java (rev 0) +++ trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/zip/test/ZipAllTests.java 2009-09-08 20:30:44 UTC (rev 17479) @@ -0,0 +1,16 @@ +package org.jboss.tools.common.zip.test; + +import org.jboss.tools.common.zip.ZipArchive; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +public class ZipAllTests extends TestCase { + public static Test suite() { + TestSuite allTests =3D new TestSuite("org.jboss.tools.common.zip test su= ite"); + allTests.addTestSuite(UnzipOperationTest.class); + allTests.addTestSuite(ZipArchiveTest.class); + return allTests; + } +} Property changes on: trunk/common/tests/org.jboss.tools.common.test/src/org= /jboss/tools/common/zip/test/ZipAllTests.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/c= ommon/zip/test/ZipArchiveTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/zip/test/ZipArchiveTest.java (rev 0) +++ trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/zip/test/ZipArchiveTest.java 2009-09-08 20:30:44 UTC (rev 17479) @@ -0,0 +1,98 @@ +/** + * = + */ +package org.jboss.tools.common.zip.test; + +import java.io.File; +import java.io.IOException; +import java.util.zip.ZipEntry; +import java.util.zip.ZipException; +import java.util.zip.ZipFile; + +import org.eclipse.core.internal.localstore.Bucket.Visitor; +import org.jboss.tools.common.zip.DefaultZipEntryVisitor; +import org.jboss.tools.common.zip.IZipEntryVisitor; +import org.jboss.tools.common.zip.UnzipOperation; +import org.jboss.tools.common.zip.ZipArchive; + +import junit.framework.TestCase; + +/** + * @author eskimo + * + */ +public class ZipArchiveTest extends ZipBaseTest { + + /** + * Test method for {@link org.jboss.tools.common.zip.ZipArchive#ZipArchiv= e(java.lang.String)}. + */ + public void testZipArchiveString() { + ZipArchive archive =3D new ZipArchive(getZip().getAbsolutePath()); + assertEquals(getZip().getAbsolutePath(),archive.getAbsolutePath()); + } + + /** + * Test method for {@link org.jboss.tools.common.zip.ZipArchive#ZipArchiv= e(java.io.File)}. + */ + public void testZipArchiveFile() { + ZipArchive archive =3D new ZipArchive(getZip()); + assertEquals(getZip().getAbsolutePath(),archive.getAbsolutePath()); + } + + /** + * Test method for {@link org.jboss.tools.common.zip.ZipArchive#acceptVis= itor(org.jboss.tools.common.zip.IZipEntryVisitor)}. + */ + public void testAcceptVisitor() throws IOException{ + ZipArchive archive =3D new ZipArchive(getZip()); + ZipVisitor visitor =3D new ZipVisitor(); + archive.acceptVisitor(new UnzipOperation.FilteredZipEntryVisitor("META-I= NF.*", visitor)); + assertTrue(visitor.isDirVisited() && visitor.isFileVisited()); + = + ZipArchive.acceptVisitor(new ZipFileWrapper(getZip()),visitor); + } + = + public class ZipVisitor extends DefaultZipEntryVisitor { + + boolean dirVisited =3D false; + boolean fileVisited =3D false; + = + public boolean isDirVisited() { + return dirVisited; + } + + public boolean isFileVisited() { + return fileVisited; + } + = + @Override + public void visiteDirectoryEntry(ZipFile zipFIle, ZipEntry dir) + throws IOException { + super.visiteDirectoryEntry(zipFIle, dir); + this.dirVisited =3D true; + } + + @Override + public void visiteFileEntry(ZipFile zipFile, ZipEntry file) + throws IOException { + super.visiteFileEntry(zipFile, file); + this.fileVisited =3D true; + } + } + = + /** + * @author eskimo + * + */ + public class ZipFileWrapper extends ZipFile { + + public ZipFileWrapper(File file) throws ZipException, IOException { + super(file); + } + + @Override + public void close() throws IOException { + super.close(); + throw new IOException("Fake error"); + } + } +} Property changes on: trunk/common/tests/org.jboss.tools.common.test/src/org= /jboss/tools/common/zip/test/ZipArchiveTest.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/c= ommon/zip/test/ZipBaseTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/zip/test/ZipBaseTest.java (rev 0) +++ trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/zip/test/ZipBaseTest.java 2009-09-08 20:30:44 UTC (rev 17479) @@ -0,0 +1,37 @@ +package org.jboss.tools.common.zip.test; + +import java.io.File; + +import org.eclipse.core.runtime.FileLocator; +import org.eclipse.core.runtime.Platform; + +import junit.framework.TestCase; + +public class ZipBaseTest extends TestCase { + = + public static final String JAVA_IO_TMPDIR =3D "java.io.tmpdir"; + public static final String ORG_ECLIPSE_CORE_RUNTIME_ID =3D "org.eclipse.c= ore.runtime"; + = + private File zip; + private File temp; + + @Override + protected void setUp() throws Exception { + zip =3D FileLocator.getBundleFile(Platform.getBundle(ORG_ECLIPSE_CORE_RU= NTIME_ID)); + temp =3D new File(System.getProperty(JAVA_IO_TMPDIR)); + } + + @Override + protected void tearDown() throws Exception { + zip =3D null; + temp =3D null; + } + = + public File getZip() { + return zip; + } + + public File getTemp() { + return temp; + } = +} Property changes on: trunk/common/tests/org.jboss.tools.common.test/src/org= /jboss/tools/common/zip/test/ZipBaseTest.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============1253303312327264225==-- From jbosstools-commits at lists.jboss.org Tue Sep 8 16:40:03 2009 Content-Type: multipart/mixed; boundary="===============7179332200585713410==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17480 - trunk/examples/plugins/org.jboss.tools.project.examples. Date: Tue, 08 Sep 2009 16:40:03 -0400 Message-ID: <200909082040.n88Ke34V029497@svn01.web.mwc.hst.phx2.redhat.com> --===============7179332200585713410== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-08 16:40:03 -0400 (Tue, 08 Sep 2009) New Revision: 17480 Modified: trunk/examples/plugins/org.jboss.tools.project.examples/plugin.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4544 = JBoss Tools/Project Examples item has been added to Examples category = Modified: trunk/examples/plugins/org.jboss.tools.project.examples/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/examples/plugins/org.jboss.tools.project.examples/plugin.xml 2009= -09-08 20:30:44 UTC (rev 17479) +++ trunk/examples/plugins/org.jboss.tools.project.examples/plugin.xml 2009= -09-08 20:40:03 UTC (rev 17480) @@ -15,6 +15,18 @@ category=3D"org.jboss.ide.eclipse.ui.wizards" icon=3D"icons/examples_wiz.gif"> = + + + + --===============7179332200585713410==-- From jbosstools-commits at lists.jboss.org Tue Sep 8 19:45:38 2009 Content-Type: multipart/mixed; boundary="===============5958769379013402084==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17481 - trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/common/test. Date: Tue, 08 Sep 2009 19:45:37 -0400 Message-ID: <200909082345.n88Njbj0003448@svn01.web.mwc.hst.phx2.redhat.com> --===============5958769379013402084== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-08 19:45:37 -0400 (Tue, 08 Sep 2009) New Revision: 17481 Added: trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/commo= n/test/MessagesTest.java trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/commo= n/test/MethodNotImplementedExceptionTest.java Modified: trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/commo= n/test/CommonAllTests.java Log: https://jira.jboss.org/jira/browse/JBIDE-3892 increase code coverage for o.j.t.common plug-in = Modified: trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tool= s/common/test/CommonAllTests.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/test/CommonAllTests.java 2009-09-08 20:40:03 UTC (rev 17480) +++ trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/test/CommonAllTests.java 2009-09-08 23:45:37 UTC (rev 17481) @@ -31,7 +31,9 @@ suite.addTestSuite(SAXValidatorTest.class); suite.addTestSuite(ProblemReportingHelperTest.class); suite.addTestSuite(CommonPluginTest.class); - suite.addTestSuite(ZipAllTests.class); + suite.addTest(ZipAllTests.suite()); + suite.addTestSuite(MessagesTest.class); + suite.addTestSuite(MethodNotImplementedExceptionTest.class); return suite; } } \ No newline at end of file Added: trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/c= ommon/test/MessagesTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/test/MessagesTest.java (rev 0) +++ trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/test/MessagesTest.java 2009-09-08 23:45:37 UTC (rev 17481) @@ -0,0 +1,11 @@ +package org.jboss.tools.common.test; + +import org.jboss.tools.common.Messages; + +import junit.framework.TestCase; + +public class MessagesTest extends TestCase { + public static void testMessagesInitialization() { + assertNotNull(Messages.BaseUIPlugin_ErrorDialogTitle); + } +} Property changes on: trunk/common/tests/org.jboss.tools.common.test/src/org= /jboss/tools/common/test/MessagesTest.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/c= ommon/test/MethodNotImplementedExceptionTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/test/MethodNotImplementedExceptionTest.java (rev= 0) +++ trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/test/MethodNotImplementedExceptionTest.java 2009-09-08 23:45:37 UTC (rev= 17481) @@ -0,0 +1,38 @@ +package org.jboss.tools.common.test; + +import org.jboss.tools.common.Messages; +import org.jboss.tools.common.MethodNotImplementedException; + +import junit.framework.TestCase; + +public class MethodNotImplementedExceptionTest extends TestCase { + + public void testMethodNotImplementedException() { + MethodNotImplementedException ex =3D new MethodNotImplementedException(); + assertEquals( + Messages.MethodNotImplementedException_MethodIsNotImplementedYet, + ex.getMessage()); + } + + public void testMethodNotImplementedExceptionStringThrowable() { + Throwable th =3D new Exception(); + MethodNotImplementedException ex =3D new MethodNotImplementedException(M= essages.BaseUIPlugin_ErrorDialogTitle,th); + assertEquals( + Messages.BaseUIPlugin_ErrorDialogTitle, + ex.getMessage()); + assertEquals(th,ex.getCause()); + } + + public void testMethodNotImplementedExceptionString() { + MethodNotImplementedException ex =3D new MethodNotImplementedException(M= essages.BaseUIPlugin_ErrorDialogTitle); + assertEquals( + Messages.BaseUIPlugin_ErrorDialogTitle, + ex.getMessage()); + } + + public void testMethodNotImplementedExceptionThrowable() { + Throwable th =3D new Exception(); + MethodNotImplementedException ex =3D new MethodNotImplementedException(t= h); + assertEquals(th,ex.getCause()); + } +} Property changes on: trunk/common/tests/org.jboss.tools.common.test/src/org= /jboss/tools/common/test/MethodNotImplementedExceptionTest.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============5958769379013402084==-- From jbosstools-commits at lists.jboss.org Tue Sep 8 19:45:58 2009 Content-Type: multipart/mixed; boundary="===============4489969046081615536==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17482 - trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/common/xml/test. Date: Tue, 08 Sep 2009 19:45:58 -0400 Message-ID: <200909082345.n88Njwew003514@svn01.web.mwc.hst.phx2.redhat.com> --===============4489969046081615536== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-08 19:45:58 -0400 (Tue, 08 Sep 2009) New Revision: 17482 Added: trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/commo= n/xml/test/XMLUtilitiesTest1.xml trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/commo= n/xml/test/XMLUtilitiesTest2.xml Modified: trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/commo= n/xml/test/XMLUtilitiesTest.java Log: https://jira.jboss.org/jira/browse/JBIDE-3892 increase code coverage for o.j.t.common plug-in = Modified: trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tool= s/common/xml/test/XMLUtilitiesTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/xml/test/XMLUtilitiesTest.java 2009-09-08 23:45:37 UTC (rev 17481) +++ trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/xml/test/XMLUtilitiesTest.java 2009-09-08 23:45:58 UTC (rev 17482) @@ -10,7 +10,14 @@ *************************************************************************= *****/ package org.jboss.tools.common.xml.test; = +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; + +import javax.xml.parsers.DocumentBuilder; + import org.jboss.tools.common.xml.XMLUtilities; +import org.w3c.dom.Document; import org.w3c.dom.Element; = import junit.framework.TestCase; @@ -18,8 +25,7 @@ public class XMLUtilitiesTest extends TestCase { = public final void testCreateDocumentBuilder() { - assertNotNull("Element builder without validation wasn't created", XMLUt= ilities.createDocumentBuilder(true)); // TODO - assertNotNull("Element builder with validation wasn't created", XMLUtili= ties.createDocumentBuilder(true)); // TODO = + assertNotNull("Element builder without validation wasn't created", XMLUt= ilities.createDocumentBuilder()); // TODO } = public static final String ELEMENT_NAME =3D "ElementName"; @@ -30,4 +36,56 @@ assertTrue(element.getNodeName().equals(ELEMENT_NAME)); } = + public void testCreateDocumentBuilderBoolean() { + assertNotNull("Element builder with validation wasn't created", XMLUtili= ties.createDocumentBuilder(true)); // TODO + } + = + public void testGetDocumentReaderEntityResolver() throws IOException { + assertNotNull(getGoodDocument());; + } + = + public void testHasAttributeElementString() { + Element element =3D getGoodDocument().getDocumentElement(); + assertTrue(XMLUtilities.hasAttribute(element, "attribute1")); + } + = + public void testGetChildrenElementsElementString() { + Element element =3D getGoodDocument().getDocumentElement(); + assertTrue(XMLUtilities.getChildren(element, "child1").length=3D=3D4); + } + = + public void testGetUniqueChildElementString() { + Element element =3D getGoodDocument().getDocumentElement(); + assertNotNull(XMLUtilities.getUniqueChild(element, "child1")); + } + = + public void testGetChildrenElementString() { + Element element =3D getGoodDocument().getDocumentElement(); + assertTrue(XMLUtilities.getChildren(element, "child1").length=3D=3D4); + } + = + public void testGetFirstChildElementString() { + Element element =3D getGoodDocument().getDocumentElement(); + Element first =3D XMLUtilities.getFirstChild(element,"child1"); + assertTrue(first.getAttribute("first").equals("true")); + first =3D XMLUtilities.getFirstChild(element,"child2"); + assertTrue(first.getAttribute("first").equals("true")); + first =3D XMLUtilities.getFirstChild(element,"child10"); + assertNull(first); + } + = + public static final Document getGoodDocument() { + InputStream in =3D null; + try { + in =3D XMLUtilitiesTest.class.getResourceAsStream("XMLUtilitiesTest1.xm= l"); + Document document =3D XMLUtilities.getDocument(new InputStreamReader(in= ), XMLUtilities.EMPTY_RESOLVER); + assertNotNull(document); + return document; + } finally { + try { + in.close(); + } catch (IOException e) { + } + } + } } Added: trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/c= ommon/xml/test/XMLUtilitiesTest1.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/xml/test/XMLUtilitiesTest1.xml (rev 0) +++ trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/xml/test/XMLUtilitiesTest1.xml 2009-09-08 23:45:58 UTC (rev 17482) @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file Property changes on: trunk/common/tests/org.jboss.tools.common.test/src/org= /jboss/tools/common/xml/test/XMLUtilitiesTest1.xml ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/c= ommon/xml/test/XMLUtilitiesTest2.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/xml/test/XMLUtilitiesTest2.xml (rev 0) +++ trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/comm= on/xml/test/XMLUtilitiesTest2.xml 2009-09-08 23:45:58 UTC (rev 17482) @@ -0,0 +1,9 @@ + +< + + + + + + + \ No newline at end of file Property changes on: trunk/common/tests/org.jboss.tools.common.test/src/org= /jboss/tools/common/xml/test/XMLUtilitiesTest2.xml ___________________________________________________________________ Name: svn:mime-type + text/plain --===============4489969046081615536==-- From jbosstools-commits at lists.jboss.org Tue Sep 8 20:17:24 2009 Content-Type: multipart/mixed; boundary="===============4415027613811115062==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17483 - trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common. Date: Tue, 08 Sep 2009 20:17:23 -0400 Message-ID: <200909090017.n890HNwX008500@svn01.web.mwc.hst.phx2.redhat.com> --===============4415027613811115062== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-08 20:17:23 -0400 (Tue, 08 Sep 2009) New Revision: 17483 Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/M= essages.java trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/m= essages.properties Log: https://jira.jboss.org/jira/browse/JBIDE-3892 fix compilation errors Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/c= ommon/Messages.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= Messages.java 2009-09-08 23:45:58 UTC (rev 17482) +++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= Messages.java 2009-09-09 00:17:23 UTC (rev 17483) @@ -10,6 +10,7 @@ public static String SAXValidator_UnableToInstantiateMessage; public static String XMLUtilities_IOExceptionMessage; public static String XMLUtilities_SAXExceptionMessage; + public static String MethodNotImplementedException_MethodIsNotImplemented= Yet; static { // initialize resource bundle NLS.initializeMessages(BUNDLE_NAME, Messages.class); Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/c= ommon/messages.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= messages.properties 2009-09-08 23:45:58 UTC (rev 17482) +++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= messages.properties 2009-09-09 00:17:23 UTC (rev 17483) @@ -4,3 +4,4 @@ SAXValidator_UnableToInstantiateMessage=3Derror: Unable to instantiate par= ser ({0}) XMLUtilities_IOExceptionMessage=3DUnexpected parser error XMLUtilities_SAXExceptionMessage=3DUnexpected parser error +MethodNotImplementedException_MethodIsNotImplementedYet=3DMethod is not im= plemented yet = --===============4415027613811115062==-- From jbosstools-commits at lists.jboss.org Tue Sep 8 20:20:36 2009 Content-Type: multipart/mixed; boundary="===============4835871015932605860==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17484 - trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/xml. Date: Tue, 08 Sep 2009 20:20:30 -0400 Message-ID: <200909090020.n890KU0u009652@svn01.web.mwc.hst.phx2.redhat.com> --===============4835871015932605860== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-08 20:20:30 -0400 (Tue, 08 Sep 2009) New Revision: 17484 Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/x= ml/XMLUtilities.java Log: https://jira.jboss.org/jira/browse/JBIDE-3892 fix compilation errors Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/c= ommon/xml/XMLUtilities.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= xml/XMLUtilities.java 2009-09-09 00:17:23 UTC (rev 17483) +++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= xml/XMLUtilities.java 2009-09-09 00:20:30 UTC (rev 17484) @@ -11,6 +11,7 @@ package org.jboss.tools.common.xml; = import java.io.BufferedWriter; +import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileNotFoundException; import java.io.FileWriter; @@ -22,6 +23,8 @@ import java.util.ArrayList; = import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; +import javax.xml.parsers.ParserConfigurationException; = import org.apache.xml.serialize.LineSeparator; import org.apache.xml.serialize.Method; @@ -43,6 +46,7 @@ import org.xml.sax.SAXException; = public class XMLUtilities { + = public static boolean hasAttribute(Element e, String s) { return e.getAttributes().getNamedItem(s) !=3D null; } @@ -116,12 +120,31 @@ } = public static DocumentBuilder createDocumentBuilder() { - return createDocumentBuilder(false); + return createDocumentBuilder(false); } = - public static DocumentBuilder createDocumentBuilder(boolean validating) { - return SafeDocumentBuilderFactory.createDocumentBuilder(validating); + public static DocumentBuilder createDocumentBuilder(boolean validate) { + try { + DocumentBuilderFactory f =3D DocumentBuilderFactory.newInstance(); + if (validate) { + f.setValidating(validate); + } + // / f.setExpandEntityReferences(false); + DocumentBuilder d =3D f.newDocumentBuilder(); + if (!validate) { + d.setEntityResolver(EMPTY_RESOLVER); + } + d.setErrorHandler(new ErrorHandlerImpl()); + return d; + } catch (ParserConfigurationException e) { + CommonPlugin.getPluginLog().logError(e); + } + return null; } + = + public static final EntityResolver EMPTY_RESOLVER =3D createEmptyEntityRe= solver(); + = + = = public static Element createDocumentElement(String name) { Document d =3D createDocumentBuilder().newDocument(); @@ -130,7 +153,19 @@ return de; } = - public static Element createDocumentElement(String name, String qName,= String publicId, String systemId, String namespaceURI) { + public static EntityResolver createEmptyEntityResolver() { + return new EntityResolver() { + public InputSource resolveEntity(java.lang.String publicId, java.lang.S= tring systemId) throws SAXException, java.io.IOException { + if((systemId !=3D null) && systemId.toLowerCase().endsWith(".dtd")) { = // this deactivates DTD //$NON-NLS-1$ + return new InputSource(new ByteArrayInputStream("".getBytes())); //$NON-NLS-1$ + } else { + return null; + } + } + }; + } + + public static Element createDocumentElement(String name, String qName, St= ring publicId, String systemId, String namespaceURI) { Document d =3D null; try { DOMImplementation domImpl =3D createDocumentBuilder().getDOMIm= plementation(); --===============4835871015932605860==-- From jbosstools-commits at lists.jboss.org Tue Sep 8 20:43:23 2009 Content-Type: multipart/mixed; boundary="===============6866707875015974575==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17485 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring. Date: Tue, 08 Sep 2009 20:43:23 -0400 Message-ID: <200909090043.n890hNls012933@svn01.web.mwc.hst.phx2.redhat.com> --===============6866707875015974575== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-08 20:43:23 -0400 (Tue, 08 Sep 2009) New Revision: 17485 Added: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/refactoring/SeamRefactorSearcher.java Removed: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/refactoring/SeamRefactorSeacher.java Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/refactoring/SeamRenameProcessor.java Log: Fixed spelling. Deleted: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/s= eam/internal/core/refactoring/SeamRefactorSeacher.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSeacher.java 2009-09-09 00:20:30 UTC (= rev 17484) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSeacher.java 2009-09-09 00:43:23 UTC (= rev 17485) @@ -1,321 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2009 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - ************************************************************************= ******/ -package org.jboss.tools.seam.internal.core.refactoring; - -import java.io.IOException; -import java.util.StringTokenizer; - -import org.eclipse.core.resources.IContainer; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IFolder; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.jdt.core.IJavaProject; -import org.eclipse.jdt.internal.ui.text.FastJavaPartitionScanner; -import org.eclipse.jdt.ui.text.IJavaPartitions; -import org.eclipse.jface.text.BadLocationException; -import org.eclipse.jface.text.Document; -import org.eclipse.jface.text.rules.IToken; -import org.eclipse.jface.text.rules.Token; -import org.eclipse.wst.sse.core.StructuredModelManager; -import org.eclipse.wst.sse.core.internal.provisional.IModelManager; -import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel; -import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocum= entRegion; -import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion; -import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegionList; -import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument; -import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel; -import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode; -import org.eclipse.wst.xml.core.internal.regions.DOMRegionContext; -import org.jboss.tools.common.el.core.model.ELInstance; -import org.jboss.tools.common.el.core.model.ELInvocationExpression; -import org.jboss.tools.common.el.core.model.ELMethodInvocation; -import org.jboss.tools.common.el.core.model.ELModel; -import org.jboss.tools.common.el.core.model.ELPropertyInvocation; -import org.jboss.tools.common.el.core.parser.ELParser; -import org.jboss.tools.common.el.core.parser.ELParserUtil; -import org.jboss.tools.common.model.util.EclipseResourceUtil; -import org.jboss.tools.common.util.FileUtil; -import org.jboss.tools.seam.core.SeamCorePlugin; -import org.jboss.tools.seam.core.SeamProjectsSet; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; - -public abstract class SeamRefactorSeacher { - protected static final String JAVA_EXT =3D "java"; //$NON-NLS-1$ - protected static final String XML_EXT =3D "xml"; //$NON-NLS-1$ - protected static final String XHTML_EXT =3D "xhtml"; //$NON-NLS-1$ - protected static final String JSP_EXT =3D "jsp"; //$NON-NLS-1$ - protected static final String PROPERTIES_EXT =3D "properties"; //$NON-NLS= -1$ - = - protected static final String SEAM_PROPERTIES_FILE =3D "seam.properties";= //$NON-NLS-1$ - = - protected IFile baseFile; - protected String propertyName; - = - public SeamRefactorSeacher(IFile baseFile, String propertyName){ - this.baseFile =3D baseFile; - this.propertyName =3D propertyName; - } - - public void findELReferences(){ - if(baseFile =3D=3D null) - return; - = - SeamProjectsSet projectsSet =3D new SeamProjectsSet(baseFile.getProject(= )); - = - IProject[] projects =3D projectsSet.getAllProjects(); - for (IProject project : projects) { - if(project =3D=3D null) continue; - = - IJavaProject javaProject =3D EclipseResourceUtil.getJavaProject(project= ); - = - // searching java, xml and property files in source folders - if(javaProject !=3D null){ - for(IResource resource : EclipseResourceUtil.getJavaSourceRoots(projec= t)){ - if(resource instanceof IFolder) - scanForJava((IFolder) resource); - else if(resource instanceof IFile) - scanForJava((IFile) resource); - } - } - = - // searching jsp, xhtml and xml files in WebContent folders - if(project.equals(projectsSet.getWarProject())) - scan(projectsSet.getDefaultViewsFolder()); - else if(project.equals(projectsSet.getEarProject())) - scan(projectsSet.getDefaultEarViewsFolder()); - else{ - scan(project); - } - } - } - private void scanForJava(IContainer container){ - try{ - for(IResource resource : container.members()){ - if(resource instanceof IFolder) - scanForJava((IFolder) resource); - else if(resource instanceof IFile) - scanForJava((IFile) resource); - } - }catch(CoreException ex){ - SeamCorePlugin.getDefault().logError(ex); - } - } - - private void scan(IContainer container){ - try{ - for(IResource resource : container.members()){ - if(resource instanceof IFolder) - scan((IFolder) resource); - else if(resource instanceof IFile) - scan((IFile) resource); - } - }catch(CoreException ex){ - SeamCorePlugin.getDefault().logError(ex); - } - } - = - private void scanForJava(IFile file){ - String ext =3D file.getFileExtension(); - = - if(!isFileCorrect(file)) - return; - = - String content =3D null; - try { - content =3D FileUtil.readStream(file.getContents()); - } catch (CoreException e) { - SeamCorePlugin.getPluginLog().logError(e); - return; - } - if(JAVA_EXT.equalsIgnoreCase(ext)){ - scanJava(file, content); - }else if(XML_EXT.equalsIgnoreCase(ext)) - scanDOM(file, content); - else if(PROPERTIES_EXT.equalsIgnoreCase(ext)) - scanProperties(file, content); - } - - private void scan(IFile file){ - String ext =3D file.getFileExtension(); - = - if(!isFileCorrect(file)) - return; - = - String content =3D null; - try { - content =3D FileUtil.readStream(file.getContents()); - } catch (CoreException e) { - SeamCorePlugin.getPluginLog().logError(e); - return; - } - if(XML_EXT.equalsIgnoreCase(ext) || XHTML_EXT.equalsIgnoreCase(ext) || J= SP_EXT.equalsIgnoreCase(ext)) - scanDOM(file, content); - } - = - private void scanJava(IFile file, String content){ - try { - FastJavaPartitionScanner scaner =3D new FastJavaPartitionScanner(); - Document document =3D new Document(content); - scaner.setRange(document, 0, document.getLength()); - IToken token =3D scaner.nextToken(); - while(token!=3Dnull && token!=3DToken.EOF) { - if(IJavaPartitions.JAVA_STRING.equals(token.getData())) { - int length =3D scaner.getTokenLength(); - int offset =3D scaner.getTokenOffset(); - String value =3D document.get(offset, length); - if(value.indexOf('{')>-1) { - scanString(file, value, offset); - } - } - token =3D scaner.nextToken(); - } - } catch (BadLocationException e) { - SeamCorePlugin.getDefault().logError(e); - } - } - = - private void scanDOM(IFile file, String content){ - IModelManager manager =3D StructuredModelManager.getModelManager(); - if(manager =3D=3D null) { - return; - } - IStructuredModel model =3D null; = - try { - model =3D manager.getModelForRead(file); - if (model instanceof IDOMModel) { - IDOMModel domModel =3D (IDOMModel) model; - IDOMDocument document =3D domModel.getDocument(); - scanChildNodes(file, document); - } - } catch (CoreException e) { - SeamCorePlugin.getDefault().logError(e); - } catch (IOException e) { - SeamCorePlugin.getDefault().logError(e); - } finally { - if (model !=3D null) { - model.releaseFromRead(); - } - } - } - = - private void scanChildNodes(IFile file, Node parent) { - NodeList children =3D parent.getChildNodes(); - for(int i=3D0; i-1) { //$NON-NLS-1$ - int offset =3D node.getStartOffset() + region.getStart(); - scanString(file, text, offset); - } - } - } - } - - // looking for component references in EL - private void scanString(IFile file, String string, int offset) { - int startEl =3D string.indexOf("#{"); //$NON-NLS-1$ - if(startEl>-1) { - ELParser parser =3D ELParserUtil.getJbossFactory().createParser(); - ELModel model =3D parser.parse(string); - for (ELInstance instance : model.getInstances()) { - for(ELInvocationExpression ie : instance.getExpression().getInvocation= s()){ - ELInvocationExpression expression =3D findComponentReference(ie); - if(expression !=3D null){ - if(expression instanceof ELPropertyInvocation){ - ELPropertyInvocation pi =3D (ELPropertyInvocation)expression; - match(file, offset+pi.getStartPosition(), pi.getName().getStart()+p= i.getName().getLength()-pi.getStartPosition()); - }else if(expression instanceof ELMethodInvocation){ - ELMethodInvocation mi =3D (ELMethodInvocation)expression; - match(file, offset+mi.getStartPosition(), mi.getName().getStart()+m= i.getName().getLength()-mi.getStartPosition()); - } - } - } - } - } - } - = - private void scanProperties(IFile file, String content){ - scanString(file, content, 0); - = - if(!file.getName().equals(SEAM_PROPERTIES_FILE)) - return; - = - StringTokenizer tokenizer =3D new StringTokenizer(content, "#=3D \t\r\n\= f", true); //$NON-NLS-1$ - = - String lastToken =3D "\n"; //$NON-NLS-1$ - int offset =3D 0; - boolean comment =3D false; - boolean key =3D true; - = - while(tokenizer.hasMoreTokens()){ - String token =3D tokenizer.nextToken("#=3D \t\r\n\f"); //$NON-NLS-1$ - if(token.equals("\r")) //$NON-NLS-1$ - token =3D "\n"; //$NON-NLS-1$ - = - if(token.equals("#") && lastToken.equals("\n")) //$NON-NLS-1$ //$NON-NL= S-2$ - comment =3D true; - else if(token.equals("\n") && comment) //$NON-NLS-1$ - comment =3D false; - = - if(!comment){ - if(!token.equals("\n") && lastToken.equals("\n")) //$NON-NLS-1$ //$NON= -NLS-2$ - key =3D true; - else if(key && (token.equals("=3D") || token.equals(" "))) //$NON-NLS-= 1$ //$NON-NLS-2$ - key =3D false; - = - if(key && token.startsWith(propertyName)){ - match(file, offset, token.length()); - } - } - = - lastToken =3D token; - offset +=3D token.length(); - } - } - - = - protected ELInvocationExpression findComponentReference(ELInvocationExpre= ssion invocationExpression){ - ELInvocationExpression invExp =3D invocationExpression; - while(invExp !=3D null){ - if(invExp instanceof ELPropertyInvocation){ - if(((ELPropertyInvocation)invExp).getQualifiedName() !=3D null && ((EL= PropertyInvocation)invExp).getQualifiedName().equals(propertyName)) - return invExp; - else - invExp =3D invExp.getLeft(); - = - }else{ - invExp =3D invExp.getLeft(); - } - } - return null; - } - = - protected abstract boolean isFileCorrect(IFile file); - = - protected abstract void match(IFile file, int offset, int length); -} Copied: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/se= am/internal/core/refactoring/SeamRefactorSearcher.java (from rev 17470, tru= nk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal= /core/refactoring/SeamRefactorSeacher.java) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java = (rev 0) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java 2009-09-09 00:43:23 UTC = (rev 17485) @@ -0,0 +1,321 @@ +/*************************************************************************= ****** + * Copyright (c) 2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Red Hat, Inc. - initial API and implementation + ************************************************************************= ******/ +package org.jboss.tools.seam.internal.core.refactoring; + +import java.io.IOException; +import java.util.StringTokenizer; + +import org.eclipse.core.resources.IContainer; +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IFolder; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.IResource; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.jdt.core.IJavaProject; +import org.eclipse.jdt.internal.ui.text.FastJavaPartitionScanner; +import org.eclipse.jdt.ui.text.IJavaPartitions; +import org.eclipse.jface.text.BadLocationException; +import org.eclipse.jface.text.Document; +import org.eclipse.jface.text.rules.IToken; +import org.eclipse.jface.text.rules.Token; +import org.eclipse.wst.sse.core.StructuredModelManager; +import org.eclipse.wst.sse.core.internal.provisional.IModelManager; +import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel; +import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocum= entRegion; +import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion; +import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegionList; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode; +import org.eclipse.wst.xml.core.internal.regions.DOMRegionContext; +import org.jboss.tools.common.el.core.model.ELInstance; +import org.jboss.tools.common.el.core.model.ELInvocationExpression; +import org.jboss.tools.common.el.core.model.ELMethodInvocation; +import org.jboss.tools.common.el.core.model.ELModel; +import org.jboss.tools.common.el.core.model.ELPropertyInvocation; +import org.jboss.tools.common.el.core.parser.ELParser; +import org.jboss.tools.common.el.core.parser.ELParserUtil; +import org.jboss.tools.common.model.util.EclipseResourceUtil; +import org.jboss.tools.common.util.FileUtil; +import org.jboss.tools.seam.core.SeamCorePlugin; +import org.jboss.tools.seam.core.SeamProjectsSet; +import org.w3c.dom.Node; +import org.w3c.dom.NodeList; + +public abstract class SeamRefactorSearcher { + protected static final String JAVA_EXT =3D "java"; //$NON-NLS-1$ + protected static final String XML_EXT =3D "xml"; //$NON-NLS-1$ + protected static final String XHTML_EXT =3D "xhtml"; //$NON-NLS-1$ + protected static final String JSP_EXT =3D "jsp"; //$NON-NLS-1$ + protected static final String PROPERTIES_EXT =3D "properties"; //$NON-NLS= -1$ + = + protected static final String SEAM_PROPERTIES_FILE =3D "seam.properties";= //$NON-NLS-1$ + = + protected IFile baseFile; + protected String propertyName; + = + public SeamRefactorSearcher(IFile baseFile, String propertyName){ + this.baseFile =3D baseFile; + this.propertyName =3D propertyName; + } + + public void findELReferences(){ + if(baseFile =3D=3D null) + return; + = + SeamProjectsSet projectsSet =3D new SeamProjectsSet(baseFile.getProject(= )); + = + IProject[] projects =3D projectsSet.getAllProjects(); + for (IProject project : projects) { + if(project =3D=3D null) continue; + = + IJavaProject javaProject =3D EclipseResourceUtil.getJavaProject(project= ); + = + // searching java, xml and property files in source folders + if(javaProject !=3D null){ + for(IResource resource : EclipseResourceUtil.getJavaSourceRoots(projec= t)){ + if(resource instanceof IFolder) + scanForJava((IFolder) resource); + else if(resource instanceof IFile) + scanForJava((IFile) resource); + } + } + = + // searching jsp, xhtml and xml files in WebContent folders + if(project.equals(projectsSet.getWarProject())) + scan(projectsSet.getDefaultViewsFolder()); + else if(project.equals(projectsSet.getEarProject())) + scan(projectsSet.getDefaultEarViewsFolder()); + else{ + scan(project); + } + } + } + private void scanForJava(IContainer container){ + try{ + for(IResource resource : container.members()){ + if(resource instanceof IFolder) + scanForJava((IFolder) resource); + else if(resource instanceof IFile) + scanForJava((IFile) resource); + } + }catch(CoreException ex){ + SeamCorePlugin.getDefault().logError(ex); + } + } + + private void scan(IContainer container){ + try{ + for(IResource resource : container.members()){ + if(resource instanceof IFolder) + scan((IFolder) resource); + else if(resource instanceof IFile) + scan((IFile) resource); + } + }catch(CoreException ex){ + SeamCorePlugin.getDefault().logError(ex); + } + } + = + private void scanForJava(IFile file){ + String ext =3D file.getFileExtension(); + = + if(!isFileCorrect(file)) + return; + = + String content =3D null; + try { + content =3D FileUtil.readStream(file.getContents()); + } catch (CoreException e) { + SeamCorePlugin.getPluginLog().logError(e); + return; + } + if(JAVA_EXT.equalsIgnoreCase(ext)){ + scanJava(file, content); + }else if(XML_EXT.equalsIgnoreCase(ext)) + scanDOM(file, content); + else if(PROPERTIES_EXT.equalsIgnoreCase(ext)) + scanProperties(file, content); + } + + private void scan(IFile file){ + String ext =3D file.getFileExtension(); + = + if(!isFileCorrect(file)) + return; + = + String content =3D null; + try { + content =3D FileUtil.readStream(file.getContents()); + } catch (CoreException e) { + SeamCorePlugin.getPluginLog().logError(e); + return; + } + if(XML_EXT.equalsIgnoreCase(ext) || XHTML_EXT.equalsIgnoreCase(ext) || J= SP_EXT.equalsIgnoreCase(ext)) + scanDOM(file, content); + } + = + private void scanJava(IFile file, String content){ + try { + FastJavaPartitionScanner scaner =3D new FastJavaPartitionScanner(); + Document document =3D new Document(content); + scaner.setRange(document, 0, document.getLength()); + IToken token =3D scaner.nextToken(); + while(token!=3Dnull && token!=3DToken.EOF) { + if(IJavaPartitions.JAVA_STRING.equals(token.getData())) { + int length =3D scaner.getTokenLength(); + int offset =3D scaner.getTokenOffset(); + String value =3D document.get(offset, length); + if(value.indexOf('{')>-1) { + scanString(file, value, offset); + } + } + token =3D scaner.nextToken(); + } + } catch (BadLocationException e) { + SeamCorePlugin.getDefault().logError(e); + } + } + = + private void scanDOM(IFile file, String content){ + IModelManager manager =3D StructuredModelManager.getModelManager(); + if(manager =3D=3D null) { + return; + } + IStructuredModel model =3D null; = + try { + model =3D manager.getModelForRead(file); + if (model instanceof IDOMModel) { + IDOMModel domModel =3D (IDOMModel) model; + IDOMDocument document =3D domModel.getDocument(); + scanChildNodes(file, document); + } + } catch (CoreException e) { + SeamCorePlugin.getDefault().logError(e); + } catch (IOException e) { + SeamCorePlugin.getDefault().logError(e); + } finally { + if (model !=3D null) { + model.releaseFromRead(); + } + } + } + = + private void scanChildNodes(IFile file, Node parent) { + NodeList children =3D parent.getChildNodes(); + for(int i=3D0; i-1) { //$NON-NLS-1$ + int offset =3D node.getStartOffset() + region.getStart(); + scanString(file, text, offset); + } + } + } + } + + // looking for component references in EL + private void scanString(IFile file, String string, int offset) { + int startEl =3D string.indexOf("#{"); //$NON-NLS-1$ + if(startEl>-1) { + ELParser parser =3D ELParserUtil.getJbossFactory().createParser(); + ELModel model =3D parser.parse(string); + for (ELInstance instance : model.getInstances()) { + for(ELInvocationExpression ie : instance.getExpression().getInvocation= s()){ + ELInvocationExpression expression =3D findComponentReference(ie); + if(expression !=3D null){ + if(expression instanceof ELPropertyInvocation){ + ELPropertyInvocation pi =3D (ELPropertyInvocation)expression; + match(file, offset+pi.getStartPosition(), pi.getName().getStart()+p= i.getName().getLength()-pi.getStartPosition()); + }else if(expression instanceof ELMethodInvocation){ + ELMethodInvocation mi =3D (ELMethodInvocation)expression; + match(file, offset+mi.getStartPosition(), mi.getName().getStart()+m= i.getName().getLength()-mi.getStartPosition()); + } + } + } + } + } + } + = + private void scanProperties(IFile file, String content){ + scanString(file, content, 0); + = + if(!file.getName().equals(SEAM_PROPERTIES_FILE)) + return; + = + StringTokenizer tokenizer =3D new StringTokenizer(content, "#=3D \t\r\n\= f", true); //$NON-NLS-1$ + = + String lastToken =3D "\n"; //$NON-NLS-1$ + int offset =3D 0; + boolean comment =3D false; + boolean key =3D true; + = + while(tokenizer.hasMoreTokens()){ + String token =3D tokenizer.nextToken("#=3D \t\r\n\f"); //$NON-NLS-1$ + if(token.equals("\r")) //$NON-NLS-1$ + token =3D "\n"; //$NON-NLS-1$ + = + if(token.equals("#") && lastToken.equals("\n")) //$NON-NLS-1$ //$NON-NL= S-2$ + comment =3D true; + else if(token.equals("\n") && comment) //$NON-NLS-1$ + comment =3D false; + = + if(!comment){ + if(!token.equals("\n") && lastToken.equals("\n")) //$NON-NLS-1$ //$NON= -NLS-2$ + key =3D true; + else if(key && (token.equals("=3D") || token.equals(" "))) //$NON-NLS-= 1$ //$NON-NLS-2$ + key =3D false; + = + if(key && token.startsWith(propertyName)){ + match(file, offset, token.length()); + } + } + = + lastToken =3D token; + offset +=3D token.length(); + } + } + + = + protected ELInvocationExpression findComponentReference(ELInvocationExpre= ssion invocationExpression){ + ELInvocationExpression invExp =3D invocationExpression; + while(invExp !=3D null){ + if(invExp instanceof ELPropertyInvocation){ + if(((ELPropertyInvocation)invExp).getQualifiedName() !=3D null && ((EL= PropertyInvocation)invExp).getQualifiedName().equals(propertyName)) + return invExp; + else + invExp =3D invExp.getLeft(); + = + }else{ + invExp =3D invExp.getLeft(); + } + } + return null; + } + = + protected abstract boolean isFileCorrect(IFile file); + = + protected abstract void match(IFile file, int offset, int length); +} Property changes on: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/j= boss/tools/seam/internal/core/refactoring/SeamRefactorSearcher.java ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/refactoring/SeamRenameProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRenameProcessor.java 2009-09-09 00:20:30 UTC (= rev 17484) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRenameProcessor.java 2009-09-09 00:43:23 UTC (= rev 17485) @@ -67,13 +67,13 @@ private String newName; private String oldName; = - private SeamSeacher seacher =3D null; + private SeamSearcher searcher =3D null; = - protected SeamSeacher getSeacher(){ - if(seacher =3D=3D null){ - seacher =3D new SeamSeacher(declarationFile, getOldName()); + protected SeamSearcher getSearcher(){ + if(searcher =3D=3D null){ + searcher =3D new SeamSearcher(declarationFile, getOldName()); } - return seacher; + return searcher; } = public void setNewName(String newName){ @@ -376,7 +376,7 @@ = pm.worked(1); = - getSeacher().findELReferences(); + getSearcher().findELReferences(); = pm.done(); } @@ -392,7 +392,7 @@ = pm.worked(1); = - getSeacher().findELReferences(); + getSearcher().findELReferences(); = pm.done(); } @@ -434,8 +434,8 @@ } } = - class SeamSeacher extends SeamRefactorSeacher{ - public SeamSeacher(IFile declarationFile, String oldName){ + class SeamSearcher extends SeamRefactorSearcher{ + public SeamSearcher(IFile declarationFile, String oldName){ super(declarationFile, oldName); } = --===============6866707875015974575==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 07:18:49 2009 Content-Type: multipart/mixed; boundary="===============3995253366156964192==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17486 - trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/search. Date: Wed, 09 Sep 2009 07:18:49 -0400 Message-ID: <200909091118.n89BInvL006967@svn01.web.mwc.hst.phx2.redhat.com> --===============3995253366156964192== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dazarov Date: 2009-09-09 07:18:49 -0400 (Wed, 09 Sep 2009) New Revision: 17486 Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/s= earch/ELSearchQuery.java Log: fixed spelling Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/se= am/ui/search/ELSearchQuery.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= search/ELSearchQuery.java 2009-09-09 00:43:23 UTC (rev 17485) +++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= search/ELSearchQuery.java 2009-09-09 11:18:49 UTC (rev 17486) @@ -23,7 +23,7 @@ import org.jboss.tools.common.el.core.model.ELInvocationExpression; import org.jboss.tools.common.el.core.model.ELMethodInvocation; import org.jboss.tools.common.el.core.model.ELPropertyInvocation; -import org.jboss.tools.seam.internal.core.refactoring.SeamRefactorSeacher; +import org.jboss.tools.seam.internal.core.refactoring.SeamRefactorSearcher; = public class ELSearchQuery implements ISearchQuery { private String propertyName; @@ -65,7 +65,7 @@ return Status.OK_STATUS; } = - class ELSearcher extends SeamRefactorSeacher{ + class ELSearcher extends SeamRefactorSearcher{ public ELSearcher(IFile file, String name){ super(file, name); } --===============3995253366156964192==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 09:23:34 2009 Content-Type: multipart/mixed; boundary="===============3619922529632059815==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17487 - trunk/jsf/docs/userguide/en/modules. Date: Wed, 09 Sep 2009 09:23:34 -0400 Message-ID: <200909091323.n89DNY9b027624@svn01.web.mwc.hst.phx2.redhat.com> --===============3619922529632059815== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: chukhutsina Date: 2009-09-09 09:23:34 -0400 (Wed, 09 Sep 2009) New Revision: 17487 Modified: trunk/jsf/docs/userguide/en/modules/editors.xml Log:

https://jira.jboss.org/jira/browse/JBDS-801 -Added the information of cu= stom tags OpenOn supporting to Doc - VisualWebTools.

Modified: trunk/jsf/docs/userguide/en/modules/editors.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/docs/userguide/en/modules/editors.xml 2009-09-09 11:18:49 UTC= (rev 17486) +++ trunk/jsf/docs/userguide/en/modules/editors.xml 2009-09-09 13:23:34 UTC= (rev 17487) @@ -142,6 +142,15 @@ + You can use OpenOn to open custom tag libraries: +
+ OpenOn With custom tags + + + + + +
For JSP files in a JSF project, you can also easily = open the navigation rules by applying OpenOn to the JSF tag= for the navigation outcome: --===============3619922529632059815==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 09:25:12 2009 Content-Type: multipart/mixed; boundary="===============1929856616444233950==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17488 - trunk/jsf/docs/userguide/en/images/editors_features. Date: Wed, 09 Sep 2009 09:25:12 -0400 Message-ID: <200909091325.n89DPC1E028108@svn01.web.mwc.hst.phx2.redhat.com> --===============1929856616444233950== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: chukhutsina Date: 2009-09-09 09:25:12 -0400 (Wed, 09 Sep 2009) New Revision: 17488 Added: trunk/jsf/docs/userguide/en/images/editors_features/editors_features_7a.= png Log:

https://jira.jboss.org/jira/browse/JBDS-801 -Added the information of cu= stom tags OpenOn supporting to Doc - VisualWebTools.

Added: trunk/jsf/docs/userguide/en/images/editors_features/editors_features= _7a.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/jsf/docs/userguide/en/images/editors_features/ed= itors_features_7a.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream --===============1929856616444233950==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 09:46:05 2009 Content-Type: multipart/mixed; boundary="===============3253926234398580705==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17489 - trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context. Date: Wed, 09 Sep 2009 09:46:05 -0400 Message-ID: <200909091346.n89Dk59e000635@svn01.web.mwc.hst.phx2.redhat.com> --===============3253926234398580705== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-09 09:46:04 -0400 (Wed, 09 Sep 2009) New Revision: 17489 Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/co= ntext/RegisterServerContext.java Log: https://jira.jboss.org/jira/browse/JBIDE-3506 Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst= /web/context/RegisterServerContext.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/c= ontext/RegisterServerContext.java 2009-09-09 13:25:12 UTC (rev 17488) +++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/c= ontext/RegisterServerContext.java 2009-09-09 13:46:04 UTC (rev 17489) @@ -73,6 +73,10 @@ public void setProjectHandle(IProject p) { project =3D p; } + + public IProject getProjectHandle() { + return project; + } = public void setPreferences(Preference registerProjectPreference) { this.registerProjectPreference =3D registerProjectPreference; --===============3253926234398580705==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 09:49:12 2009 Content-Type: multipart/mixed; boundary="===============6398592838882922579==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17490 - trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/appregister. Date: Wed, 09 Sep 2009 09:49:12 -0400 Message-ID: <200909091349.n89DnCAR001033@svn01.web.mwc.hst.phx2.redhat.com> --===============6398592838882922579== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-09 09:49:12 -0400 (Wed, 09 Sep 2009) New Revision: 17490 Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web= /ui/wizards/appregister/AppRegisterComponent.java Log: https://jira.jboss.org/jira/browse/JBIDE-3506 Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/= jst/web/ui/wizards/appregister/AppRegisterComponent.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/we= b/ui/wizards/appregister/AppRegisterComponent.java 2009-09-09 13:46:04 UTC = (rev 17489) +++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/we= b/ui/wizards/appregister/AppRegisterComponent.java 2009-09-09 13:49:12 UTC = (rev 17490) @@ -31,8 +31,11 @@ import org.jboss.tools.common.model.ui.attribute.editor.IPropertyEditor; import org.jboss.tools.common.model.ui.attribute.editor.MutableComboBoxFie= ldEditor; import org.jboss.tools.common.model.ui.attribute.editor.MutableMultipleCho= iceFieldEditor; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.runtime.CoreException; import org.eclipse.jface.window.Window; import org.eclipse.jface.wizard.WizardDialog; +import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities; = = import org.jboss.tools.common.meta.action.SpecialWizard; @@ -42,6 +45,7 @@ import org.jboss.tools.common.model.XModelObject; import org.jboss.tools.common.model.options.PreferenceModelUtilities; import org.jboss.tools.common.model.util.XModelObjectUtil; +import org.jboss.tools.jst.web.WebModelPlugin; import org.jboss.tools.jst.web.context.RegisterServerContext; import org.jboss.tools.jst.web.server.*; import org.jboss.tools.jst.web.ui.Messages; @@ -220,6 +224,15 @@ ns[i] =3D rs[i].getName(); if(rs[i] =3D=3D selectedRuntime || selectedRuntime1 =3D=3D null) select= edRuntime1 =3D rs[i]; } + IProject p =3D context.getProjectHandle(); + if(p !=3D null && p.exists() && p.isAccessible()) { + try { + IRuntime sr =3D J2EEProjectUtilities.getServerRuntime(p); + if(sr !=3D null) selectedRuntime1 =3D sr; + } catch (CoreException exc) { + WebModelPlugin.getPluginLog().logError(exc); + } + } HUtil.hackAttributeConstraintList(new XEntityData[]{support.getEntityDat= a()}, 0, ATTR_RUNTIME, ns); String runtimeName =3D (selectedRuntime1 !=3D null) ? selectedRuntime1.g= etName() : ""; //$NON-NLS-1$ context.setRuntimeName(runtimeName); --===============6398592838882922579==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 11:02:58 2009 Content-Type: multipart/mixed; boundary="===============4941023846833275544==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17491 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util. Date: Wed, 09 Sep 2009 11:02:58 -0400 Message-ID: <200909091502.n89F2wgo014154@svn01.web.mwc.hst.phx2.redhat.com> --===============4941023846833275544== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-09 11:02:58 -0400 (Wed, 09 Sep 2009) New Revision: 17491 Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/util/ClassLoaderUtil.java Log: https://jira.jboss.org/jira/browse/JBIDE-4802 Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/t= ools/common/model/util/ClassLoaderUtil.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/util/ClassLoaderUtil.java 2009-09-09 13:49:12 UTC (rev 17490) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/util/ClassLoaderUtil.java 2009-09-09 15:02:58 UTC (rev 17491) @@ -32,7 +32,7 @@ private static String[][] activation =3D { {"org.jboss.tools.jst.web.ui", "org.jboss.tools.jst.web.ui.WebUiPlugin",= "required"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ {"org.jboss.tools.jst.web", "org.jboss.tools.jst.web.WebModelPlugin", "r= equired"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - {"org.jboss.tools.jsf.ui", "org.jboss.tools.jsf.ui.JsfUiPlugin", "requir= ed"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + {"org.jboss.tools.jsf.ui", "org.jboss.tools.jsf.ui.JsfUiPlugin", "option= al"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ {"org.jboss.tools.struts.ui", "org.jboss.tools.struts.ui.StrutsUIPlugin"= , "optional"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ {"org.jboss.tools.common.verification.ui", "org.jboss.tools.common.verif= ication.ui.XStudioVerificationPlugin", "optional"}, //$NON-NLS-1$ //$NON-NL= S-2$ //$NON-NLS-3$ }; --===============4941023846833275544==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 11:05:52 2009 Content-Type: multipart/mixed; boundary="===============1368460409350759909==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17492 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util. Date: Wed, 09 Sep 2009 11:05:52 -0400 Message-ID: <200909091505.n89F5qeE014691@svn01.web.mwc.hst.phx2.redhat.com> --===============1368460409350759909== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-09 11:05:52 -0400 (Wed, 09 Sep 2009) New Revision: 17492 Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/util/ClassLoaderUtil.java Log: https://jira.jboss.org/jira/browse/JBIDE-4802 Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/t= ools/common/model/util/ClassLoaderUtil.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/util/ClassLoaderUtil.java 2009-09-09 15:02:58 UTC (rev 17491) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/util/ClassLoaderUtil.java 2009-09-09 15:05:52 UTC (rev 17492) @@ -30,8 +30,8 @@ } = private static String[][] activation =3D { - {"org.jboss.tools.jst.web.ui", "org.jboss.tools.jst.web.ui.WebUiPlugin",= "required"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - {"org.jboss.tools.jst.web", "org.jboss.tools.jst.web.WebModelPlugin", "r= equired"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + {"org.jboss.tools.jst.web.ui", "org.jboss.tools.jst.web.ui.WebUiPlugin",= "optional"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + {"org.jboss.tools.jst.web", "org.jboss.tools.jst.web.WebModelPlugin", "o= ptional"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ {"org.jboss.tools.jsf.ui", "org.jboss.tools.jsf.ui.JsfUiPlugin", "option= al"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ {"org.jboss.tools.struts.ui", "org.jboss.tools.struts.ui.StrutsUIPlugin"= , "optional"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ {"org.jboss.tools.common.verification.ui", "org.jboss.tools.common.verif= ication.ui.XStudioVerificationPlugin", "optional"}, //$NON-NLS-1$ //$NON-NL= S-2$ //$NON-NLS-3$ --===============1368460409350759909==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 12:01:21 2009 Content-Type: multipart/mixed; boundary="===============2117599237351618710==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17493 - in trunk/seam/plugins/org.jboss.tools.seam.core: src/org/jboss/tools/seam/internal/core/refactoring and 1 other directory. Date: Wed, 09 Sep 2009 12:01:21 -0400 Message-ID: <200909091601.n89G1LwG023194@svn01.web.mwc.hst.phx2.redhat.com> --===============2117599237351618710== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dazarov Date: 2009-09-09 12:01:21 -0400 (Wed, 09 Sep 2009) New Revision: 17493 Added: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/refactoring/SeamRenameMethodParticipant.java Modified: trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4856 Modified: trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml 2009-09-09 15:0= 5:52 UTC (rev 17492) +++ trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml 2009-09-09 16:0= 1:21 UTC (rev 17493) @@ -517,6 +517,21 @@ + + + + + + + + + +
= Added: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/sea= m/internal/core/refactoring/SeamRenameMethodParticipant.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRenameMethodParticipant.java = (rev 0) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRenameMethodParticipant.java 2009-09-09 16:01:= 21 UTC (rev 17493) @@ -0,0 +1,75 @@ +/*************************************************************************= ****** + * Copyright (c) 2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Red Hat, Inc. - initial API and implementation + ************************************************************************= ******/ +package org.jboss.tools.seam.internal.core.refactoring; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.OperationCanceledException; +import org.eclipse.jdt.core.IMethod; +import org.eclipse.ltk.core.refactoring.Change; +import org.eclipse.ltk.core.refactoring.RefactoringStatus; +import org.eclipse.ltk.core.refactoring.participants.CheckConditionsContex= t; +import org.eclipse.ltk.core.refactoring.participants.RenameParticipant; + +public class SeamRenameMethodParticipant extends RenameParticipant{ + private IMethod method; + private String oldName; + private String newName; + private SeamRenameMethodSearcher searcher; + = + = + @Override + public RefactoringStatus checkConditions(IProgressMonitor pm, + CheckConditionsContext context) throws OperationCanceledException { + return null; + } + + @Override + public Change createChange(IProgressMonitor pm) throws CoreException, + OperationCanceledException { + return null; + } + + @Override + public String getName() { + return oldName; + } + + @Override + protected boolean initialize(Object element) { + if(element instanceof IMethod){ + method =3D (IMethod)element; + oldName =3D method.getElementName(); + newName =3D getArguments().getNewName(); + = + searcher =3D new SeamRenameMethodSearcher((IFile)method.getResource(), = oldName); + return true; + } + return false; + } + = + class SeamRenameMethodSearcher extends SeamRefactorSearcher{ + public SeamRenameMethodSearcher(IFile file, String name){ + super(file, name); + } + + @Override + protected boolean isFileCorrect(IFile file) { + return false; + } + + @Override + protected void match(IFile file, int offset, int length) { + } + } + +} Property changes on: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/j= boss/tools/seam/internal/core/refactoring/SeamRenameMethodParticipant.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============2117599237351618710==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 12:09:15 2009 Content-Type: multipart/mixed; boundary="===============4083736436929965738==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17494 - in trunk/jst/plugins/org.jboss.tools.jst.css: META-INF and 4 other directories. Date: Wed, 09 Sep 2009 12:09:15 -0400 Message-ID: <200909091609.n89G9F1T024248@svn01.web.mwc.hst.phx2.redhat.com> --===============4083736436929965738== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: sdzmitrovich Date: 2009-09-09 12:09:14 -0400 (Wed, 09 Sep 2009) New Revision: 17494 Added: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/CSSSelectionListener.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/CSSStyleManager.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/CSSStyleRuleContainer.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/StyleAttribyteContainer.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/StyleContainer.java Removed: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/vi= ew/CSSViewUtil.java Modified: trunk/jst/plugins/org.jboss.tools.jst.css/META-INF/MANIFEST.MF trunk/jst/plugins/org.jboss.tools.jst.css/plugin.xml trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/Cs= sPlugin.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/pr= operties/CSSPropertyPage.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/vi= ew/CSSEditorView.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/vi= ew/CSSPreview.java Log: https://jira.jboss.org/jira/browse/JBIDE-4850 Modified: trunk/jst/plugins/org.jboss.tools.jst.css/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/META-INF/MANIFEST.MF 2009-09-= 09 16:01:21 UTC (rev 17493) +++ trunk/jst/plugins/org.jboss.tools.jst.css/META-INF/MANIFEST.MF 2009-09-= 09 16:09:14 UTC (rev 17494) @@ -12,7 +12,10 @@ org.eclipse.core.databinding, org.eclipse.wst.css.core, org.eclipse.jdt.ui, - org.eclipse.debug.ui + org.eclipse.debug.ui, + org.eclipse.wst.sse.core, + org.eclipse.jface.text, + org.eclipse.wst.xml.core Bundle-RequiredExecutionEnvironment: J2SE-1.5 Bundle-ActivationPolicy: lazy Export-Package: org.jboss.tools.jst.css, Modified: trunk/jst/plugins/org.jboss.tools.jst.css/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/plugin.xml 2009-09-09 16:01:2= 1 UTC (rev 17493) +++ trunk/jst/plugins/org.jboss.tools.jst.css/plugin.xml 2009-09-09 16:09:1= 4 UTC (rev 17494) @@ -3,7 +3,7 @@ + > @@ -35,58 +35,58 @@ + type=3D"org.jboss.tools.jst.css.common.StyleContainer"> + type=3D"org.jboss.tools.jst.css.common.StyleContainer"> + type=3D"org.jboss.tools.jst.css.common.StyleContainer"> + type=3D"org.jboss.tools.jst.css.common.StyleContainer"> + type=3D"org.jboss.tools.jst.css.common.StyleContainer"> + type=3D"org.jboss.tools.jst.css.common.StyleContainer"> + type=3D"org.jboss.tools.jst.css.common.StyleContainer"> + type=3D"org.jboss.tools.jst.css.common.StyleContainer"> + type=3D"org.jboss.tools.jst.css.common.StyleContainer"> Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/CssPlugin.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/C= ssPlugin.java 2009-09-09 16:01:21 UTC (rev 17493) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/C= ssPlugin.java 2009-09-09 16:09:14 UTC (rev 17494) @@ -11,6 +11,8 @@ = package org.jboss.tools.jst.css; = +import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.Status; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.ui.plugin.AbstractUIPlugin; import org.osgi.framework.BundleContext; @@ -25,7 +27,7 @@ = // The shared instance private static CssPlugin plugin; - = + /** * The constructor */ @@ -34,7 +36,10 @@ = /* * (non-Javadoc) - * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.B= undleContext) + * = + * @see + * org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.Bundle= Context + * ) */ public void start(BundleContext context) throws Exception { super.start(context); @@ -43,7 +48,10 @@ = /* * (non-Javadoc) - * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.Bu= ndleContext) + * = + * @see + * org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleC= ontext + * ) */ public void stop(BundleContext context) throws Exception { plugin =3D null; @@ -52,7 +60,7 @@ = /** * Returns the shared instance - * + * = * @return the shared instance */ public static CssPlugin getDefault() { @@ -60,13 +68,22 @@ } = /** - * Returns an image descriptor for the image file at the given - * plug-in relative path - * - * @param path the path + * Returns an image descriptor for the image file at the given plug-in + * relative path + * = + * @param path + * the path * @return the image descriptor */ public static ImageDescriptor getImageDescriptor(String path) { return imageDescriptorFromPlugin(PLUGIN_ID, path); } + + /** + * = + * @param message + */ + public static void log(String message) { + getDefault().getLog().log(new Status(IStatus.ERROR, message, null)); + } } Added: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/cs= s/common/CSSSelectionListener.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSSelectionListener.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSSelectionListener.java 2009-09-09 16:09:14 UTC (rev 17494) @@ -0,0 +1,100 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ + +package org.jboss.tools.jst.css.common; + +import org.eclipse.core.runtime.ListenerList; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.StructuredSelection; +import org.eclipse.ui.INullSelectionListener; +import org.eclipse.ui.ISelectionListener; +import org.eclipse.ui.IWorkbenchPart; +import org.eclipse.ui.PlatformUI; +import org.jboss.tools.jst.css.CssPlugin; + +public class CSSSelectionListener implements ISelectionListener { + + private static CSSSelectionListener instance; + + private ListenerList listeners =3D new ListenerList(); + + CSSStyleManager styleManager =3D new CSSStyleManager(); + + private CSSSelectionListener() { + } + + public synchronized static CSSSelectionListener getInstance() { + + if (instance =3D=3D null) { + instance =3D new CSSSelectionListener(); + } + return instance; + } + + public void addSelectionListener(ISelectionListener listener) { + + // if added the first listener start listing + if (listeners.size() =3D=3D 0) + startListening(); + + listeners.add(listener); + } + + public void removeSelectionListener(ISelectionListener listener) { + listeners.remove(listener); + + // if removed last listener start listing + if (listeners.size() =3D=3D 0) + stopListening(); + } + + private void startListening() { + PlatformUI.getWorkbench().getActiveWorkbenchWindow() + .getSelectionService().addPostSelectionListener(this); + + } + + private void stopListening() { + PlatformUI.getWorkbench().getActiveWorkbenchWindow() + .getSelectionService().removePostSelectionListener(this); + + } + + public void selectionChanged(IWorkbenchPart part, ISelection selection) { + + StyleContainer styleContainer =3D styleManager + .recognizeCSSStyle(selection); + + ISelection selectionToLiteners =3D null; + + if (styleContainer !=3D null) { + selectionToLiteners =3D new StructuredSelection(styleContainer); + } else { + selectionToLiteners =3D StructuredSelection.EMPTY; + } + + Object[] array =3D listeners.getListeners(); + for (int i =3D 0; i < array.length; i++) { + final ISelectionListener l =3D (ISelectionListener) array[i]; + if ((part !=3D null && selection !=3D null) + || l instanceof INullSelectionListener) { + + try { + l.selectionChanged(part, selectionToLiteners); + } catch (Exception e) { + CssPlugin.log(e.getLocalizedMessage()); + } + } + + } + + } +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jbos= s/tools/jst/css/common/CSSSelectionListener.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + native Added: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/cs= s/common/CSSStyleManager.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleManager.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleManager.java 2009-09-09 16:09:14 UTC (rev 17494) @@ -0,0 +1,218 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jst.css.common; + +import org.eclipse.jface.text.ITextSelection; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.wst.css.core.internal.provisional.adapters.IStyleSheetA= dapter; +import org.eclipse.wst.css.core.internal.provisional.document.ICSSDocument; +import org.eclipse.wst.css.core.internal.provisional.document.ICSSModel; +import org.eclipse.wst.css.core.internal.provisional.document.ICSSNode; +import org.eclipse.wst.sse.core.internal.provisional.INodeNotifier; +import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion; +import org.eclipse.wst.xml.core.internal.contentmodel.CMAttributeDeclarati= on; +import org.eclipse.wst.xml.core.internal.contentmodel.CMElementDeclaration; +import org.eclipse.wst.xml.core.internal.contentmodel.CMNamedNodeMap; +import org.eclipse.wst.xml.core.internal.contentmodel.modelquery.ModelQuer= y; +import org.eclipse.wst.xml.core.internal.modelquery.ModelQueryUtil; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMAttr; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement; +import org.w3c.dom.Attr; +import org.w3c.dom.Element; +import org.w3c.dom.Node; +import org.w3c.dom.Text; +import org.w3c.dom.css.CSSStyleRule; +import org.w3c.dom.css.CSSStyleSheet; +import org.w3c.dom.css.ElementCSSInlineStyle; + +/** + * @author Sergey Dzmitrovich + * = + */ +public class CSSStyleManager { + + public static final String STYLE_TAG_NAME =3D "style"; //$NON-NLS-1$ + + public static final String STYLE_ATTRIBUTE_NAME =3D "style"; //$NON-NLS-1$ + + /** + * = + * @param selection + * @return + */ + public StyleContainer recognizeCSSStyle(ISelection selection) { + + StyleContainer container =3D null; + if (selection instanceof IStructuredSelection) { + + Object selectedObject =3D ((IStructuredSelection) selection) + .getFirstElement(); + + // if selected object is node in css file + if (selectedObject instanceof ICSSNode) { + + CSSStyleRule styleRule =3D getStyleRule((ICSSNode) selectedObject); + + if (styleRule !=3D null) + container =3D new CSSStyleRuleContainer(styleRule); + + } else if ((selectedObject instanceof IDOMElement) + || (selectedObject instanceof IDOMAttr)) { + + Element selectedElement =3D null; + + if (selectedObject instanceof Attr) + selectedElement =3D ((Attr) selectedObject).getOwnerElement(); + else + selectedElement =3D (Element) selectedObject; + + if (isSuitableElement(selectedElement)) { + + container =3D new StyleAttribyteContainer(selectedElement); + + } + } else if (selectedObject instanceof Text) { + + Text styleText =3D (Text) selectedObject; + + Node parentNode =3D styleText.getParentNode(); + + if ((parentNode !=3D null) + && STYLE_TAG_NAME.equalsIgnoreCase(parentNode + .getNodeName())) { + + int offset =3D getRelationalOffset(styleText, + ((ITextSelection) selection).getOffset()); + + CSSStyleSheet sheet =3D getSheet(parentNode); + + ICSSNode node =3D getNode(sheet, offset); + + CSSStyleRule styleRule =3D getStyleRule(node); + + if (styleRule !=3D null) { + container =3D new CSSStyleRuleContainer(styleRule); + } + } + } + } + return container; + } + + /** + * = + * @param styleContainer + * @return + */ + private CSSStyleSheet getSheet(Node styleContainer) { + + if (styleContainer instanceof INodeNotifier) { + + INodeNotifier notifier =3D (INodeNotifier) styleContainer; + + IStyleSheetAdapter adapter =3D (IStyleSheetAdapter) notifier + .getAdapterFor(IStyleSheetAdapter.class); + + if (adapter !=3D null) { + + return (CSSStyleSheet) adapter.getSheet(); + } + + } + return null; + } + + /** + * = + * @param sheet + * @param offset + * @return + */ + private ICSSNode getNode(CSSStyleSheet sheet, int offset) { + + ICSSModel model =3D ((ICSSDocument) sheet).getModel(); + + if (model !=3D null) + + return (ICSSNode) model.getIndexedRegion(offset); + + return null; + + } + + /** + * = + * @param element + * @return + */ + private boolean isSuitableElement(Element element) { + + if (element instanceof ElementCSSInlineStyle + && isAttributeAvailable(element, STYLE_TAG_NAME)) { + return true; + } + + return false; + } + + /** + * = + * @param node + * @return + */ + private CSSStyleRule getStyleRule(ICSSNode node) { + + while (node !=3D null) { + + if (node instanceof CSSStyleRule) + return (CSSStyleRule) node; + + node =3D node.getParentNode(); + } + + return null; + } + + /** + * = + * @param selection + * @param styleText + * @return + */ + private int getRelationalOffset(Node basicNode, int absoluteOffset) { + + return absoluteOffset - ((IndexedRegion) basicNode).getStartOffset(); + } + + = + /** + * @param element + * @param attrName + * @return + */ + private static boolean isAttributeAvailable(Element element, String attrN= ame) { + ModelQuery modelQuery =3D ModelQueryUtil.getModelQuery(element + .getOwnerDocument()); + if (modelQuery !=3D null) { + CMElementDeclaration decl =3D modelQuery + .getCMElementDeclaration(element); + if (decl !=3D null) { + CMNamedNodeMap map =3D decl.getAttributes(); + if ((CMAttributeDeclaration) map.getNamedItem(attrName) !=3D null) { + return true; + } + } + } + + return false; + } +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jbos= s/tools/jst/css/common/CSSStyleManager.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + native Added: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/cs= s/common/CSSStyleRuleContainer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleRuleContainer.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleRuleContainer.java 2009-09-09 16:09:14 UTC (rev 17494) @@ -0,0 +1,74 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jst.css.common; + +import java.util.HashMap; +import java.util.Map; + +import org.jboss.tools.jst.jsp.outline.cssdialog.common.Constants; +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSStyleRule; + +/** + * @author Sergey Dzmitrovich + * = + */ +public class CSSStyleRuleContainer extends StyleContainer { + + private CSSStyleRule styleRule; + + public CSSStyleRuleContainer(CSSStyleRule styleRule) { + this.styleRule =3D styleRule; + } + + public void applyStyleAttributes(Map attributes) { + + final CSSStyleDeclaration declaration =3D styleRule.getStyle(); + + // set properties + + if (attributes !=3D null) { + + if ((attributes.size() =3D=3D 0) && (declaration.getLength() > 0)) { + declaration.setCssText(Constants.EMPTY); + } else { + for (final Map.Entry me : attributes.entrySet()) { + if ((me.getValue() =3D=3D null) + || (me.getValue().length() =3D=3D 0)) { + declaration.removeProperty(me.getKey()); + } else { + declaration.setProperty(me.getKey(), me.getValue(), + Constants.EMPTY); + } + } + + } + } + + } + + public Map getStyleAttributes() { + CSSStyleDeclaration declaration =3D styleRule.getStyle(); + Map styleMap =3D new HashMap(); + for (int i =3D 0; i < declaration.getLength(); i++) { + String propperty =3D declaration.item(i); + String value =3D declaration.getPropertyValue(propperty); + styleMap.put(propperty, value); + } + + return styleMap; + } + + public Object getStyleObject() { + return styleRule; + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jbos= s/tools/jst/css/common/CSSStyleRuleContainer.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + native Added: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/cs= s/common/StyleAttribyteContainer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/StyleAttribyteContainer.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/StyleAttribyteContainer.java 2009-09-09 16:09:14 UTC (rev 17494) @@ -0,0 +1,79 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jst.css.common; + +import java.util.HashMap; +import java.util.Map; + +import org.jboss.tools.jst.jsp.outline.cssdialog.common.CSSConstants; +import org.jboss.tools.jst.jsp.outline.cssdialog.common.Constants; +import org.jboss.tools.jst.jsp.outline.cssdialog.common.Util; +import org.w3c.dom.Element; + +/** + * @author Sergey Dzmitrovich + * = + */ +public class StyleAttribyteContainer extends StyleContainer { + + public static final String STYLE_ATTRIBUTE_NAME =3D "style"; //$NON-NLS-1$ + + private Element element; + + public StyleAttribyteContainer(Element element) { + this.element =3D element; + } + + public void applyStyleAttributes(Map attributes) { + + StringBuffer buf =3D new StringBuffer(); + for (Map.Entry me : attributes.entrySet()) { + + if ((me.getValue() !=3D null) && (me.getValue().length() !=3D 0)) + buf.append(me.getKey() + Constants.COLON + me.getValue() + + Constants.SEMICOLON); + } + + element.setAttribute(STYLE_ATTRIBUTE_NAME, buf.toString()); + + } + + public Map getStyleAttributes() { + + String styleString =3D element.getAttribute(STYLE_ATTRIBUTE_NAME); + + Map styleMap =3D new HashMap(); + + if ((styleString !=3D null) && (styleString.length() > 0)) { + + String[] styles =3D styleString.split(Constants.SEMICOLON); + for (String styleElement : styles) { + String[] styleElementParts =3D styleElement.trim().split( + Constants.COLON); + if ((styleElementParts !=3D null) + && (styleElementParts.length =3D=3D 2) + && Util.searchInElement(styleElementParts[0], + CSSConstants.CSS_STYLES_MAP)) { + + styleMap.put(styleElementParts[0], styleElementParts[1]); + } + } + + } + + return styleMap; + } + + public Object getStyleObject() { + return element; + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jbos= s/tools/jst/css/common/StyleAttribyteContainer.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + native Added: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/cs= s/common/StyleContainer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/StyleContainer.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/StyleContainer.java 2009-09-09 16:09:14 UTC (rev 17494) @@ -0,0 +1,33 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jst.css.common; + +import java.util.Map; + +/** + * @author Sergey Dzmitrovich + * = + */ +public abstract class StyleContainer { + + public abstract Map getStyleAttributes(); + + public abstract void applyStyleAttributes(Map attributes); + + public abstract Object getStyleObject(); + + public boolean equals(Object obj) { + if (obj instanceof StyleContainer) + obj =3D ((StyleContainer) obj).getStyleObject(); + return getStyleObject().equals(obj); + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jbos= s/tools/jst/css/common/StyleContainer.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + native Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/properties/CSSPropertyPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/p= roperties/CSSPropertyPage.java 2009-09-09 16:01:21 UTC (rev 17493) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/p= roperties/CSSPropertyPage.java 2009-09-09 16:09:14 UTC (rev 17494) @@ -12,8 +12,6 @@ package org.jboss.tools.jst.css.properties; = import java.util.Map; -import java.util.Set; -import java.util.Map.Entry; = import org.eclipse.core.databinding.DataBindingContext; import org.eclipse.core.databinding.observable.ChangeEvent; @@ -29,13 +27,10 @@ import org.eclipse.ui.part.IPageSite; import org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageCont= ributor; import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; -import org.eclipse.wst.css.core.internal.provisional.document.ICSSNode; +import org.jboss.tools.jst.css.common.CSSSelectionListener; +import org.jboss.tools.jst.css.common.StyleContainer; import org.jboss.tools.jst.css.view.CSSEditorView; -import org.jboss.tools.jst.css.view.CSSViewUtil; -import org.jboss.tools.jst.jsp.outline.cssdialog.common.Constants; import org.jboss.tools.jst.jsp.outline.cssdialog.common.StyleAttributes; -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSStyleRule; = /** * @author Sergey Dzmitrovich @@ -67,9 +62,9 @@ @Override public void init(IPageSite pageSite) { super.init(pageSite); - pageSite.getWorkbenchWindow().getSelectionService() - .addPostSelectionListener(this); = + CSSSelectionListener.getInstance().addSelectionListener(this); + // FIXED FOR JBIDE-4791 pageSite.setSelectionProvider(new ISelectionProvider() { = @@ -81,8 +76,7 @@ } = public ISelection getSelection() { - return selectedObject !=3D null ? new StructuredSelection( - selectedObject) : StructuredSelection.EMPTY; + return getCurrentSelection(); } = public void addSelectionChangedListener( @@ -93,8 +87,7 @@ = @Override public void dispose() { - getSite().getWorkbenchWindow().getSelectionService() - .removePostSelectionListener(this); + CSSSelectionListener.getInstance().removeSelectionListener(this); super.dispose(); } = @@ -104,24 +97,15 @@ if ((this.part !=3D part) && (selection instanceof IStructuredSelection)= ) { IStructuredSelection structuredSelection =3D (IStructuredSelection) sel= ection; Object newSelectedObject =3D structuredSelection.getFirstElement(); - if (structuredSelection.getFirstElement() instanceof ICSSNode) { + if (structuredSelection.getFirstElement() instanceof StyleContainer) { = - CSSStyleRule styleRule =3D CSSViewUtil - .getStyleRule((ICSSNode) structuredSelection - .getFirstElement()); + updateStyleAttributes(((StyleContainer) newSelectedObject) + .getStyleAttributes()); = - if (styleRule !=3D null) { - ((IObservable) styleAttributes.getAttributeMap()) - .removeChangeListener(this); - updateStyleAttributes(styleRule); - ((IObservable) styleAttributes.getAttributeMap()) - .addChangeListener(this); - newSelectedObject =3D styleRule; - } - } = - if (selectedObject !=3D newSelectedObject) + if ((selectedObject =3D=3D null) + || (!selectedObject.equals(newSelectedObject))) super.selectionChanged(part, selection); selectedObject =3D newSelectedObject; = @@ -129,43 +113,30 @@ = } = - private void updateStyleAttributes(CSSStyleRule styleRule) { + private void updateStyleAttributes(Map attributes) { = - getStyleAttributes().setStyleProperties( - CSSViewUtil.getStyleAttributes(styleRule)); + ((IObservable) getStyleAttributes().getAttributeMap()) + .removeChangeListener(this); + getStyleAttributes().setStyleProperties(attributes); + ((IObservable) getStyleAttributes().getAttributeMap()) + .addChangeListener(this); = } = public void handleChange(ChangeEvent event) { = - if (selectedObject instanceof CSSStyleRule) { + if (selectedObject instanceof StyleContainer) { = - final CSSStyleDeclaration declaration =3D ((CSSStyleRule) selectedObjec= t) - .getStyle(); - - // set properties - final Set> set =3D styleAttributes.entrySet(); - - if ((set.size() =3D=3D 0) && (declaration.getLength() > 0)) { - declaration.setCssText(Constants.EMPTY); - } else { - for (final Map.Entry me : set) { - if ((me.getValue() =3D=3D null) - || (me.getValue().length() =3D=3D 0)) { - declaration.removeProperty(me.getKey()); - } else { - declaration.setProperty(me.getKey(), me.getValue(), - Constants.EMPTY); - } - } - } + ((StyleContainer) selectedObject) + .applyStyleAttributes(getStyleAttributes() + .getAttributeMap()); } = - notifySelectionChanged(new StructuredSelection(selectedObject)); + notifySelectionChanged(getCurrentSelection()); = } = - protected void notifySelectionChanged(StructuredSelection selection) { + protected void notifySelectionChanged(ISelection selection) { part.postSelectionChanged(new SelectionChangedEvent(part .getSelectionProvider(), selection)); } @@ -182,4 +153,14 @@ return styleAttributes; } = + public ISelection getCurrentSelection() { + + Object currentSelectedObject =3D selectedObject; + if (selectedObject instanceof StyleContainer) + currentSelectedObject =3D ((StyleContainer) selectedObject) + .getStyleObject(); + return currentSelectedObject !=3D null ? new StructuredSelection( + currentSelectedObject) : StructuredSelection.EMPTY; + + } } Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/view/CSSEditorView.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/v= iew/CSSEditorView.java 2009-09-09 16:01:21 UTC (rev 17493) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/v= iew/CSSEditorView.java 2009-09-09 16:09:14 UTC (rev 17494) @@ -11,6 +11,7 @@ = package org.jboss.tools.jst.css.view; = +import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.SelectionChangedEvent; import org.eclipse.ui.IWorkbenchPart; import org.eclipse.ui.part.IContributedContentsView; @@ -29,6 +30,11 @@ static public String CONTRIBUTOR_ID =3D "org.eclipse.wst.css.core.csssour= ce.source"; //$NON-NLS-1$ = @Override + public void selectionChanged(IWorkbenchPart part, ISelection sel) { + // do nothing + } + + @Override protected PageRec doCreatePage(final IWorkbenchPart part) { if (part instanceof PropertySheet) { return null; @@ -55,7 +61,8 @@ public SelectionProvider getSelectionProvider() { return super.getSelectionProvider(); } - public void postSelectionChanged(SelectionChangedEvent event){ + + public void postSelectionChanged(SelectionChangedEvent event) { getSelectionProvider().postSelectionChanged(event); } = Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/view/CSSPreview.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/v= iew/CSSPreview.java 2009-09-09 16:01:21 UTC (rev 17493) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/v= iew/CSSPreview.java 2009-09-09 16:09:14 UTC (rev 17494) @@ -32,10 +32,10 @@ import org.eclipse.ui.IWorkbenchPart; import org.eclipse.ui.PartInitException; import org.eclipse.ui.part.ViewPart; -import org.eclipse.wst.css.core.internal.provisional.document.ICSSNode; +import org.jboss.tools.jst.css.common.CSSSelectionListener; +import org.jboss.tools.jst.css.common.StyleContainer; import org.jboss.tools.jst.css.messages.CSSUIMessages; import org.jboss.tools.jst.jsp.outline.cssdialog.common.Constants; -import org.w3c.dom.css.CSSStyleRule; = /** * @author Sergey Dzmitrovich @@ -51,20 +51,17 @@ = private Map styleAttributes =3D new HashMap(); = - // private String location; - // private String selectorName; - @Override public void init(IViewSite site) throws PartInitException { super.init(site); - site.getWorkbenchWindow().getSelectionService() - .addPostSelectionListener(this); + + CSSSelectionListener.getInstance().addSelectionListener(this); } = @Override public void dispose() { - getSite().getWorkbenchWindow().getSelectionService() - .removePostSelectionListener(this); + + CSSSelectionListener.getInstance().removeSelectionListener(this); super.dispose(); } = @@ -161,20 +158,15 @@ = if (selection instanceof IStructuredSelection) { IStructuredSelection structuredSelection =3D (IStructuredSelection) sel= ection; - if (structuredSelection.getFirstElement() instanceof ICSSNode) { + if (structuredSelection.getFirstElement() instanceof StyleContainer) { = - CSSStyleRule styleRule =3D CSSViewUtil - .getStyleRule((ICSSNode) structuredSelection - .getFirstElement()); + styleAttributes =3D ((StyleContainer) structuredSelection + .getFirstElement()).getStyleAttributes(); = - if (styleRule !=3D null) { - styleAttributes =3D CSSViewUtil.getStyleAttributes(styleRule); - - } else { - styleAttributes.clear(); - } - + } else { + styleAttributes.clear(); } + updateBrowser(); } = Deleted: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/= css/view/CSSViewUtil.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/v= iew/CSSViewUtil.java 2009-09-09 16:01:21 UTC (rev 17493) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/v= iew/CSSViewUtil.java 2009-09-09 16:09:14 UTC (rev 17494) @@ -1,54 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007-2009 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributor: - * Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ - -package org.jboss.tools.jst.css.view; - -import java.util.HashMap; -import java.util.Map; - -import org.eclipse.wst.css.core.internal.provisional.document.ICSSNode; -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSStyleRule; - -/** - * @author Sergey Dzmitrovich - * = - */ -public class CSSViewUtil { - - public static CSSStyleRule getStyleRule(ICSSNode node) { - - while (node !=3D null) { - - if (node instanceof CSSStyleRule) - return (CSSStyleRule) node; - - node =3D node.getParentNode(); - } - - return null; - } - - public static Map getStyleAttributes(CSSStyleRule styleRu= le) { - - CSSStyleDeclaration declaration =3D styleRule.getStyle(); - Map styleMap =3D new HashMap(); - for (int i =3D 0; i < declaration.getLength(); i++) { - String propperty =3D declaration.item(i); - String value =3D declaration.getPropertyValue(propperty); - styleMap.put(propperty, value); - } - - return styleMap; - - } - -} --===============4083736436929965738==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 14:03:59 2009 Content-Type: multipart/mixed; boundary="===============6847294687228129607==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17495 - trunk/jbpm/features/org.jboss.tools.jbpm4.sdk.feature. Date: Wed, 09 Sep 2009 14:03:58 -0400 Message-ID: <200909091803.n89I3wF0018858@svn01.web.mwc.hst.phx2.redhat.com> --===============6847294687228129607== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: nickboldt Date: 2009-09-09 14:03:58 -0400 (Wed, 09 Sep 2009) New Revision: 17495 Modified: trunk/jbpm/features/org.jboss.tools.jbpm4.sdk.feature/feature.properties Log: rename sdk feature label Modified: trunk/jbpm/features/org.jboss.tools.jbpm4.sdk.feature/feature.pro= perties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jbpm/features/org.jboss.tools.jbpm4.sdk.feature/feature.propertie= s 2009-09-09 16:09:14 UTC (rev 17494) +++ trunk/jbpm/features/org.jboss.tools.jbpm4.sdk.feature/feature.propertie= s 2009-09-09 18:03:58 UTC (rev 17495) @@ -1,4 +1,4 @@ -featureName=3DAll jBPM 4 Tools Features +featureName=3DjBPM 4 Tools SDK featureProvider=3DJBoss by Red Hat description=3DThis feature includes all end-user tools for jBPM 4, includi= ng runtime and sources. copyright=3DCopyright 2009 Red Hat, Inc. --===============6847294687228129607==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 14:04:36 2009 Content-Type: multipart/mixed; boundary="===============0015456514424056147==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17496 - branches/jbosstools-3.1.0.M3/jbpm/features/org.jboss.tools.jbpm4.sdk.feature. Date: Wed, 09 Sep 2009 14:04:35 -0400 Message-ID: <200909091804.n89I4ZIV018980@svn01.web.mwc.hst.phx2.redhat.com> --===============0015456514424056147== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: nickboldt Date: 2009-09-09 14:04:35 -0400 (Wed, 09 Sep 2009) New Revision: 17496 Modified: branches/jbosstools-3.1.0.M3/jbpm/features/org.jboss.tools.jbpm4.sdk.fea= ture/feature.properties Log: rename sdk feature label Modified: branches/jbosstools-3.1.0.M3/jbpm/features/org.jboss.tools.jbpm4.= sdk.feature/feature.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/jbpm/features/org.jboss.tools.jbpm4.sdk.fe= ature/feature.properties 2009-09-09 18:03:58 UTC (rev 17495) +++ branches/jbosstools-3.1.0.M3/jbpm/features/org.jboss.tools.jbpm4.sdk.fe= ature/feature.properties 2009-09-09 18:04:35 UTC (rev 17496) @@ -1,4 +1,4 @@ -featureName=3DAll jBPM 4 Tools Features +featureName=3DjBPM 4 Tools SDK featureProvider=3DJBoss by Red Hat description=3DThis feature includes all end-user tools for jBPM 4, includi= ng runtime and sources. copyright=3DCopyright 2009 Red Hat, Inc. --===============0015456514424056147==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 15:08:01 2009 Content-Type: multipart/mixed; boundary="===============1270970998479161707==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17497 - in trunk: common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/xml and 8 other directories. Date: Wed, 09 Sep 2009 15:08:01 -0400 Message-ID: <200909091908.n89J81Jt030202@svn01.web.mwc.hst.phx2.redhat.com> --===============1270970998479161707== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-09 15:08:01 -0400 (Wed, 09 Sep 2009) New Revision: 17497 Modified: trunk/common/plugins/org.jboss.tools.common.el.core/META-INF/MANIFEST.MF trunk/common/plugins/org.jboss.tools.common/META-INF/MANIFEST.MF trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/x= ml/XMLEntityResolverImpl.java trunk/common/tests/org.jboss.tools.common.text.ext.test/src/org/jboss/to= ols/common/text/ext/test/OpenOnsTest.java trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/M= ANIFEST.MF trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/MANIFE= ST.MF trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/META-INF/MANIFEST.MF trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF trunk/jsf/plugins/org.jboss.tools.jsf.verification/META-INF/MANIFEST.MF trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF Log: https://jira.jboss.org/jira/browse/JBIDE-4474 = Plug-ins were cleaned up: org.hibernate.console.test o.j.t.common.el.core o.j.t.common.text.ext.test o.j.t.common o.j.t.jsf,text.ext.richfaces o.j.t.jsf.text.ext o.j.t.jsf.ui o.j.t.jsf..verification o.j.t.jsf Modified: trunk/common/plugins/org.jboss.tools.common/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common/META-INF/MANIFEST.MF 2009-0= 9-09 18:04:35 UTC (rev 17496) +++ trunk/common/plugins/org.jboss.tools.common/META-INF/MANIFEST.MF 2009-0= 9-09 19:08:01 UTC (rev 17497) @@ -129,7 +129,6 @@ org.w3c.dom.html, org.w3c.dom.ls Require-Bundle: org.eclipse.core.runtime, - org.eclipse.wst.wsdl.validation, org.eclipse.wst.xml.core;visibility:=3Dreexport, org.eclipse.jface, org.eclipse.core.resources, Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/c= ommon/xml/XMLEntityResolverImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= xml/XMLEntityResolverImpl.java 2009-09-09 18:04:35 UTC (rev 17496) +++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= xml/XMLEntityResolverImpl.java 2009-09-09 19:08:01 UTC (rev 17497) @@ -13,11 +13,14 @@ import java.io.IOException; import java.io.InputStream; = +import javax.xml.transform.URIResolver; + import org.apache.xerces.xni.XMLResourceIdentifier; import org.apache.xerces.xni.parser.XMLEntityResolver; import org.apache.xerces.xni.parser.XMLInputSource; -import org.eclipse.wst.wsdl.validation.internal.resolver.URIResolver; + import org.jboss.tools.common.CommonPlugin; + import org.xml.sax.SAXException; = /** Modified: trunk/common/plugins/org.jboss.tools.common.el.core/META-INF/MANI= FEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/META-INF/MANIFEST.M= F 2009-09-09 18:04:35 UTC (rev 17496) +++ trunk/common/plugins/org.jboss.tools.common.el.core/META-INF/MANIFEST.M= F 2009-09-09 19:08:01 UTC (rev 17497) @@ -10,14 +10,11 @@ org.jboss.tools.common.el.core.parser, org.jboss.tools.common.el.core.resolver Bundle-Activator: org.jboss.tools.common.el.core.Activator -Require-Bundle: org.eclipse.ui, - org.eclipse.core.runtime, - org.eclipse.core.resources, - org.eclipse.jdt.core, - org.eclipse.jface.text, +Require-Bundle: org.eclipse.jface.text, org.eclipse.wst.sse.core, org.eclipse.wst.sse.ui, org.jboss.tools.common, org.jboss.tools.common.model, - org.jboss.tools.common.resref.core;reprovide=3Dtrue + org.jboss.tools.common.resref.core;reprovide=3Dtrue, + org.eclipse.ui Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/common/tests/org.jboss.tools.common.text.ext.test/src/org/j= boss/tools/common/text/ext/test/OpenOnsTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/tests/org.jboss.tools.common.text.ext.test/src/org/jboss/t= ools/common/text/ext/test/OpenOnsTest.java 2009-09-09 18:04:35 UTC (rev 174= 96) +++ trunk/common/tests/org.jboss.tools.common.text.ext.test/src/org/jboss/t= ools/common/text/ext/test/OpenOnsTest.java 2009-09-09 19:08:01 UTC (rev 174= 97) @@ -2,7 +2,6 @@ = import junit.framework.TestCase; = -import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.CoreException; @@ -13,26 +12,15 @@ import org.eclipse.jface.text.ITextSelection; import org.eclipse.jface.text.hyperlink.IHyperlink; import org.eclipse.jface.text.source.ISourceViewer; -import org.eclipse.ui.IEditorDescriptor; -import org.eclipse.ui.IEditorInput; import org.eclipse.ui.IEditorPart; import org.eclipse.ui.IWorkbench; import org.eclipse.ui.PartInitException; import org.eclipse.ui.PlatformUI; -import org.eclipse.ui.WorkbenchException; -import org.eclipse.ui.ide.IDE; -import org.eclipse.ui.part.FileEditorInput; -import org.eclipse.ui.texteditor.DocumentProviderRegistry; -import org.eclipse.ui.texteditor.IDocumentProvider; import org.jboss.tools.common.model.ui.editor.EditorPartWrapper; import org.jboss.tools.common.model.ui.editors.multipage.DefaultMultipageE= ditor; -import org.jboss.tools.common.model.ui.texteditors.XMLTextEditorStandAlone; -import org.jboss.tools.common.text.ext.hyperlink.CSSClassHyperlink; -import org.jboss.tools.common.text.ext.hyperlink.ClassHyperlink; import org.jboss.tools.common.text.ext.hyperlink.HyperlinkDetector; import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor; import org.jboss.tools.test.util.JobUtils; -import org.jboss.tools.test.util.ResourcesUtils; import org.jboss.tools.test.util.WorkbenchUtils; = public class OpenOnsTest extends TestCase { Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/MET= A-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/= MANIFEST.MF 2009-09-09 18:04:35 UTC (rev 17496) +++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/= MANIFEST.MF 2009-09-09 19:08:01 UTC (rev 17497) @@ -46,19 +46,15 @@ org.eclipse.core.runtime, org.eclipse.ui.ide, org.hibernate.eclipse, - org.hibernate.eclipse.help, org.hibernate.eclipse.mapper, org.eclipse.jface.text, org.hibernate.eclipse.console, - org.eclipse.wst.xml.core, - org.eclipse.wst.xml.ui, org.apache.ant, org.eclipse.ui.views, org.jboss.tools.hibernate.ui, - org.eclipse.ui.editors, - org.eclipse.debug.core, - org.jboss.tools.tests;bundle-version=3D"2.0.0", - org.eclipse.debug.ui;bundle-version=3D"3.4.0" + org.jboss.tools.tests, + org.eclipse.debug.ui, + org.eclipse.ui.workbench.texteditor;bundle-version=3D"3.5.0" Eclipse-LazyStart: true Bundle-Activator: org.hibernate.eclipse.console.test.HibernateConsoleTestP= lugin Eclipse-RegisterBuddy: org.hibernate.eclipse Modified: trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF 2009-09-09 1= 8:04:35 UTC (rev 17496) +++ trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF 2009-09-09 1= 9:08:01 UTC (rev 17497) @@ -31,26 +31,17 @@ Require-Bundle: org.jboss.tools.jst.web;visibility:=3Dreexport, org.jboss.tools.jst.web.kb;visibility:=3Dreexport, org.jboss.tools.common.el.core, - org.eclipse.ui.ide, - org.eclipse.ui.views, org.eclipse.jface.text, - org.eclipse.ui.workbench.texteditor, - org.eclipse.ui.editors, - org.eclipse.jdt.core, org.eclipse.jdt.ui, org.eclipse.ui, - org.eclipse.jface, org.eclipse.wst.sse.core, org.eclipse.ltk.core.refactoring, - org.eclipse.ltk.ui.refactoring, - org.eclipse.core.resources, - org.eclipse.core.runtime, - org.eclipse.wst.web, - org.eclipse.jdt.core.manipulation, org.eclipse.wst.common.project.facet.core, org.eclipse.wst.common.frameworks, org.eclipse.wst.common.modulecore, - org.eclipse.wst.validation + org.eclipse.wst.validation, + org.hibernate.eclipse.jdt.ui, + org.eclipse.jdt.core.manipulation;bundle-version=3D"1.3.0" Bundle-Version: 2.0.0 Eclipse-LazyStart: true Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/META-INF/MANIFEST.= MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/META-INF/MANIFEST.MF 200= 9-09-09 18:04:35 UTC (rev 17496) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/META-INF/MANIFEST.MF 200= 9-09-09 19:08:01 UTC (rev 17497) @@ -7,21 +7,9 @@ Bundle-SymbolicName: org.jboss.tools.jsf.text.ext; singleton:=3Dtrue Bundle-Localization: plugin Require-Bundle: org.eclipse.ui.ide, - org.eclipse.core.runtime, org.eclipse.ui, - org.eclipse.text, org.eclipse.jface.text, - org.eclipse.ui.workbench, - org.eclipse.jdt.core, - org.eclipse.wst.sse.core, - org.eclipse.wst.xml.core, - org.eclipse.jst.jsp.core, - org.eclipse.jst.j2ee.web, - org.eclipse.core.resources, - org.jboss.tools.common, - org.jboss.tools.common.model, org.jboss.tools.common.text.ext, - org.jboss.tools.jst.web, org.jboss.tools.jsf Export-Package: org.jboss.tools.jsf.text.ext, org.jboss.tools.jsf.text.ext.hyperlink Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF= /MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/MANIF= EST.MF 2009-09-09 18:04:35 UTC (rev 17496) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/MANIF= EST.MF 2009-09-09 19:08:01 UTC (rev 17497) @@ -8,8 +8,6 @@ Bundle-Localization: plugin Require-Bundle: = org.eclipse.ui, - org.eclipse.core.runtime, - org.eclipse.core.resources, org.eclipse.jface.text, org.jboss.tools.common.text.ext, org.jboss.tools.jsf.text.ext, Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF 2009-09-0= 9 18:04:35 UTC (rev 17496) +++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF 2009-09-0= 9 19:08:01 UTC (rev 17497) @@ -32,34 +32,20 @@ org.jboss.tools.jsf.ui.wizard.project, org.jboss.tools.jsf.ui.wizard.palette, org.jboss.tools.jsf.ui.wizard.capabilities = -Require-Bundle: org.jboss.tools.common, - org.jboss.tools.common.gef, - org.jboss.tools.common.model, - org.jboss.tools.common.model.ui, - org.jboss.tools.jst.web, +Require-Bundle: org.jboss.tools.common.model.ui, org.jboss.tools.jst.web.ui, - org.jboss.tools.common.text.xml, - org.jboss.tools.vpe, org.jboss.tools.jst.jsp, org.eclipse.jface.text, org.eclipse.jdt.ui, org.jboss.tools.jsf, - org.eclipse.wst.sse.ui, - org.eclipse.wst.xml.core, - org.eclipse.wst.xml.ui, - org.eclipse.wst.common.frameworks.ui, - org.eclipse.wst.common.ui, org.eclipse.compare, org.eclipse.core.resources, - org.eclipse.core.runtime, - org.eclipse.jface, org.eclipse.ui, org.eclipse.ui.views, org.eclipse.ui.ide, - org.eclipse.draw2d, org.eclipse.gef, - org.eclipse.core.expressions, - org.eclipse.ui.workbench.texteditor + org.eclipse.ui.workbench.texteditor, + org.eclipse.core.expressions Bundle-Version: 2.0.0 Eclipse-LazyStart: true Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.verification/META-INF/MANIF= EST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.verification/META-INF/MANIFEST.MF= 2009-09-09 18:04:35 UTC (rev 17496) +++ trunk/jsf/plugins/org.jboss.tools.jsf.verification/META-INF/MANIFEST.MF= 2009-09-09 19:08:01 UTC (rev 17497) @@ -8,12 +8,7 @@ Bundle-Localization: plugin Provide-Package: org.jboss.tools.jsf.verification.vrules, org.jboss.tools.jsf.verification.vrules.toview -Require-Bundle: org.eclipse.core.runtime.compatibility, - org.eclipse.core.resources, - org.eclipse.jdt.core, - org.jboss.tools.common.model, - org.jboss.tools.common.verification, - org.jboss.tools.jst.web, +Require-Bundle: org.jboss.tools.common.verification, org.jboss.tools.jsf Bundle-Version: 2.0.0 Eclipse-LazyStart: true --===============1270970998479161707==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 15:14:47 2009 Content-Type: multipart/mixed; boundary="===============5013835093219291912==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17498 - trunk/jsf/features/org.jboss.tools.richfaces.feature. Date: Wed, 09 Sep 2009 15:14:47 -0400 Message-ID: <200909091914.n89JElFs031101@svn01.web.mwc.hst.phx2.redhat.com> --===============5013835093219291912== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-09 15:14:47 -0400 (Wed, 09 Sep 2009) New Revision: 17498 Modified: trunk/jsf/features/org.jboss.tools.richfaces.feature/feature.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4861 Removed old KB plug-in. Modified: trunk/jsf/features/org.jboss.tools.richfaces.feature/feature.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/features/org.jboss.tools.richfaces.feature/feature.xml 2009-0= 9-09 19:08:01 UTC (rev 17497) +++ trunk/jsf/features/org.jboss.tools.richfaces.feature/feature.xml 2009-0= 9-09 19:14:47 UTC (rev 17498) @@ -1,328 +1,322 @@ - - - - - %description - - - - %copyright - - - Red Hat, Inc. licenses these features and plugins to you under + + + + + %description + + + + %copyright + + + + Red Hat, Inc. licenses these features and plugins to you under certain open source licenses (or aggregations of such licenses), which in a particular case may include the Eclipse Public License, the GNU Lesser General Public License, and/or certain other open source licenses. For precise licensing details, consult the corresponding source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, -Raleigh NC 27606 USA. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +Raleigh NC 27606 USA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --===============5013835093219291912==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 15:15:35 2009 Content-Type: multipart/mixed; boundary="===============4365355726613147084==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17499 - trunk/common/plugins. Date: Wed, 09 Sep 2009 15:15:35 -0400 Message-ID: <200909091915.n89JFZSw031598@svn01.web.mwc.hst.phx2.redhat.com> --===============4365355726613147084== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-09 15:15:34 -0400 (Wed, 09 Sep 2009) New Revision: 17499 Removed: trunk/common/plugins/org.jboss.tools.common.kb/ Log: https://jira.jboss.org/jira/browse/JBIDE-4861 Removed old KB plug-in. --===============4365355726613147084==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 15:15:54 2009 Content-Type: multipart/mixed; boundary="===============0509129076992188143==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17500 - trunk/common/tests. Date: Wed, 09 Sep 2009 15:15:54 -0400 Message-ID: <200909091915.n89JFswK032011@svn01.web.mwc.hst.phx2.redhat.com> --===============0509129076992188143== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-09 15:15:53 -0400 (Wed, 09 Sep 2009) New Revision: 17500 Removed: trunk/common/tests/org.jboss.tools.common.kb.test/ Log: https://jira.jboss.org/jira/browse/JBIDE-4861 Removed old KB plug-in. --===============0509129076992188143==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 15:20:46 2009 Content-Type: multipart/mixed; boundary="===============7873863545306149500==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17501 - in trunk/jst/plugins: org.jboss.tools.jst.web/META-INF and 1 other directories. Date: Wed, 09 Sep 2009 15:20:46 -0400 Message-ID: <200909091920.n89JKkMo000892@svn01.web.mwc.hst.phx2.redhat.com> --===============7873863545306149500== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-09 15:20:46 -0400 (Wed, 09 Sep 2009) New Revision: 17501 Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF trunk/jst/plugins/org.jboss.tools.jst.web/META-INF/MANIFEST.MF Log: https://jira.jboss.org/jira/browse/JBIDE-4474 = Plug-ins were cleaned up: o.j.t.jst.jsp o.j.t.jst.web o.j.t.jst.web.ui Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF 2009-09-= 09 19:15:53 UTC (rev 17500) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF 2009-09-= 09 19:20:46 UTC (rev 17501) @@ -20,47 +20,27 @@ org.jboss.tools.jst.jsp.support.kb, org.jboss.tools.jst.jsp.text, org.jboss.tools.jst.jsp.ui.action -Require-Bundle: org.jboss.tools.common, - org.jboss.tools.common.model, - org.jboss.tools.common.el.core, - org.jboss.tools.common.text.xml, +Require-Bundle: org.jboss.tools.common.el.core, org.jboss.tools.common.model.ui, org.jboss.tools.jst.web, - org.eclipse.jface, org.eclipse.jface.text, - org.eclipse.swt, - org.eclipse.ui.editors, - org.eclipse.ui, org.eclipse.ui.workbench.texteditor, org.eclipse.ui.ide, org.eclipse.jdt.ui, - org.eclipse.jdt.core, org.eclipse.wst.common.ui, - org.eclipse.wst.sse.ui, - org.eclipse.wst.sse.core, - org.eclipse.wst.xml.core, org.eclipse.wst.html.core, org.eclipse.wst.html.ui, org.eclipse.wst.xml.ui, - org.eclipse.jst.jsp.core, org.eclipse.jst.jsp.ui, org.eclipse.wst.css.core, org.eclipse.wst.css.ui, - org.eclipse.help, org.eclipse.help.ui, - org.eclipse.help.appserver, - org.eclipse.help.base, - org.eclipse.help.webapp, org.eclipse.jem, - org.eclipse.wst.common.snippets, - org.eclipse.wst.common.uriresolver, - org.eclipse.core.resources, - org.eclipse.core.runtime, org.eclipse.ui.views, org.eclipse.core.databinding, org.eclipse.jface.databinding, - org.eclipse.core.databinding.property, - org.jboss.tools.jst.web.kb + org.jboss.tools.jst.web.kb, + org.eclipse.core.databinding.property;bundle-version=3D"1.2.0" Bundle-Version: 2.0.0 Export-Package: org.jboss.tools.jst.jsp.outline.cssdialog.common, org.jboss.tools.jst.jsp.outline.cssdialog.parsers, Modified: trunk/jst/plugins/org.jboss.tools.jst.web/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/META-INF/MANIFEST.MF 2009-09-= 09 19:15:53 UTC (rev 17500) +++ trunk/jst/plugins/org.jboss.tools.jst.web/META-INF/MANIFEST.MF 2009-09-= 09 19:20:46 UTC (rev 17501) @@ -10,31 +10,17 @@ Bundle-Localization: plugin Require-Bundle: org.jboss.tools.common.model;visibility:=3Dreexport, org.jboss.tools.common.projecttemplates;visibility:=3Dreexport, - org.eclipse.jdt.core, org.eclipse.ui, - org.eclipse.debug.core, org.eclipse.jdt.launching, - org.eclipse.jdt.ui, org.eclipse.debug.ui, org.eclipse.jdt.debug, org.eclipse.wst.server.core, org.eclipse.wst.sse.core, - org.eclipse.wst.web, - org.eclipse.jst.j2ee.web, org.eclipse.jst.j2ee, - org.eclipse.wst.common.frameworks, - org.eclipse.jst.server.tomcat.core, org.eclipse.ltk.core.refactoring, - org.eclipse.ltk.ui.refactoring, org.eclipse.jst.jsp.core, - org.eclipse.wst.xml.core, - org.eclipse.core.resources, - org.eclipse.pde.ui, - org.eclipse.core.runtime, - org.eclipse.ant.ui, - org.eclipse.ui.externaltools, - org.eclipse.wst.common.project.facet.core, - org.jboss.tools.common.el.core;bundle-version=3D"2.0.0" + org.eclipse.jst.j2ee.core;bundle-version=3D"1.1.300", + org.eclipse.wst.common.project.facet.core;bundle-version=3D"1.4.0" Bundle-Version: 2.0.0 Export-Package: = org.jboss.tools.jst.web, Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF 2009-= 09-09 19:15:53 UTC (rev 17500) +++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF 2009-= 09-09 19:20:46 UTC (rev 17501) @@ -29,61 +29,22 @@ org.jboss.tools.jst.web.ui.wizards.process, org.jboss.tools.jst.web.ui.wizards.project, org.jboss.tools.vpe -Require-Bundle: org.jboss.tools.common, - org.eclipse.ui.ide, - org.eclipse.ui.views, - org.eclipse.jface.text, - org.eclipse.ui.workbench.texteditor, - org.eclipse.ui.editors, - org.jboss.tools.common.model, +Require-Bundle: org.eclipse.ui.ide, org.jboss.tools.common.model.ui, org.jboss.tools.jst.web, - org.eclipse.jface, - org.eclipse.ui, org.eclipse.ui.navigator, - org.eclipse.ui.navigator.resources, - org.eclipse.jst.j2ee.navigator.ui, - org.eclipse.help, - org.eclipse.jdt.launching, org.eclipse.jdt.ui, - org.eclipse.debug.core, - org.eclipse.jdt.core, - org.eclipse.swt, - org.eclipse.emf.ecore, - org.eclipse.jst.jsp.ui, org.eclipse.wst.common.frameworks, org.eclipse.wst.server.core, org.eclipse.wst.server.ui, - org.eclipse.wst.sse.ui, - org.eclipse.wst.sse.core, org.eclipse.jst.j2ee.web, - org.eclipse.wst.web, org.eclipse.jst.j2ee, - org.eclipse.wst.common.emfworkbench.integration, - org.eclipse.jem, - org.jboss.tools.common.projecttemplates, org.eclipse.jem.util, org.eclipse.wst.common.frameworks, - org.eclipse.jst.common.frameworks, - org.eclipse.jst.j2ee.core, - org.eclipse.ui.browser, - org.eclipse.jst.server.core, - org.eclipse.jst.server.generic.core, - org.eclipse.jst.server.generic.ui, - org.eclipse.jst.server.tomcat.core, - org.eclipse.jst.server.tomcat.ui, - org.eclipse.jst.server.ui, - org.eclipse.jst.server.websphere.core, - org.eclipse.jst.j2ee.ejb, - org.eclipse.wst.web.ui, - org.eclipse.jst.ejb.ui, - org.eclipse.wst.common.project.facet.core, - org.eclipse.jst.servlet.ui, org.eclipse.wst.common.project.facet.ui, - org.eclipse.core.resources, - org.eclipse.core.runtime, org.eclipse.debug.ui, - org.jboss.tools.jsf.vpe.jsf, - org.jboss.tools.jst.jsp;bundle-version=3D"2.0.0" + org.jboss.tools.jst.jsp;bundle-version=3D"2.0.0", + org.eclipse.jface.text;bundle-version=3D"3.5.0", + org.eclipse.wst.common.emfworkbench.integration;bundle-version=3D"1.1.300" Bundle-Version: 2.0.0 Bundle-RequiredExecutionEnvironment: J2SE-1.5 --===============7873863545306149500==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 15:30:47 2009 Content-Type: multipart/mixed; boundary="===============6037241900193948205==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17502 - trunk/jsf/plugins/org.jboss.tools.jsf/META-INF. Date: Wed, 09 Sep 2009 15:30:47 -0400 Message-ID: <200909091930.n89JUlWw003857@svn01.web.mwc.hst.phx2.redhat.com> --===============6037241900193948205== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-09 15:30:46 -0400 (Wed, 09 Sep 2009) New Revision: 17502 Modified: trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF Log: https://jira.jboss.org/jira/browse/JBIDE-4474 = Plug-ins were cleaned up: o.j.t.jsf Modified: trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF 2009-09-09 1= 9:20:46 UTC (rev 17501) +++ trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF 2009-09-09 1= 9:30:46 UTC (rev 17502) @@ -40,7 +40,6 @@ org.eclipse.wst.common.frameworks, org.eclipse.wst.common.modulecore, org.eclipse.wst.validation, - org.hibernate.eclipse.jdt.ui, org.eclipse.jdt.core.manipulation;bundle-version=3D"1.3.0" Bundle-Version: 2.0.0 Eclipse-LazyStart: true --===============6037241900193948205==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 15:32:19 2009 Content-Type: multipart/mixed; boundary="===============2374930538165040612==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17503 - trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF. Date: Wed, 09 Sep 2009 15:32:19 -0400 Message-ID: <200909091932.n89JWJ9q004251@svn01.web.mwc.hst.phx2.redhat.com> --===============2374930538165040612== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-09 15:32:19 -0400 (Wed, 09 Sep 2009) New Revision: 17503 Modified: trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFEST.MF Log: https://jira.jboss.org/jira/browse/JBIDE-4474 = Plug-ins were cleaned up: o.j.t.vpe.ui.palette Modified: trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFES= T.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFEST.MF 2= 009-09-09 19:30:46 UTC (rev 17502) +++ trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFEST.MF 2= 009-09-09 19:32:19 UTC (rev 17503) @@ -7,19 +7,9 @@ Bundle-Localization: plugin Provide-Package: org.jboss.tools.vpe.ui.palette,org.jboss.tools.vpe.ui.pal= ette.model Require-Bundle: org.eclipse.ui.ide, - org.eclipse.ui.views, org.eclipse.jface.text, - org.eclipse.ui.workbench.texteditor, - org.eclipse.ui.editors, - org.eclipse.swt, org.eclipse.ui, - org.eclipse.draw2d, org.eclipse.gef, - org.eclipse.jdt.ui, - org.jboss.tools.common, - org.jboss.tools.common.model, - org.jboss.tools.common.model.ui, - org.eclipse.core.resources, - org.eclipse.core.runtime + org.jboss.tools.common.model.ui Bundle-Version: 2.1.0 Bundle-RequiredExecutionEnvironment: J2SE-1.5 --===============2374930538165040612==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 15:34:11 2009 Content-Type: multipart/mixed; boundary="===============8166070947241724609==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17504 - in branches/jbosstools-3.1.0.M3/maven/features: org.jboss.tools.maven.feature/sourceTemplateFeature and 4 other directories. Date: Wed, 09 Sep 2009 15:34:11 -0400 Message-ID: <200909091934.n89JYBI6004650@svn01.web.mwc.hst.phx2.redhat.com> --===============8166070947241724609== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: nickboldt Date: 2009-09-09 15:34:11 -0400 (Wed, 09 Sep 2009) New Revision: 17504 Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featur= e/sourceTemplateFeature/ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featur= e/sourceTemplateFeature/build.properties branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featur= e/sourceTemplateFeature/feature.properties branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featur= e/sourceTemplateFeature/license.html branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featur= e/sourceTemplatePlugin/ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featur= e/sourceTemplatePlugin/about.ini branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featur= e/sourceTemplatePlugin/about.mappings branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featur= e/sourceTemplatePlugin/about.properties branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featur= e/sourceTemplatePlugin/build.properties branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featur= e/sourceTemplatePlugin/plugin.properties branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.f= eature/sourceTemplateFeature/ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.f= eature/sourceTemplateFeature/build.properties branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.f= eature/sourceTemplateFeature/feature.properties branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.f= eature/sourceTemplateFeature/license.html branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.f= eature/sourceTemplatePlugin/ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.f= eature/sourceTemplatePlugin/about.ini branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.f= eature/sourceTemplatePlugin/about.mappings branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.f= eature/sourceTemplatePlugin/about.properties branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.f= eature/sourceTemplatePlugin/build.properties branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.f= eature/sourceTemplatePlugin/plugin.properties Log: add maven.source and maven.seam.source feature/plugin templates Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.fe= ature/sourceTemplateFeature/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featu= re/sourceTemplateFeature/build.properties (rev 0) +++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featu= re/sourceTemplateFeature/build.properties 2009-09-09 19:34:11 UTC (rev 1750= 4) @@ -0,0 +1,15 @@ +##########################################################################= ##### +# Copyright (c) 2009 Red Hat and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# = +# Contributors: +# Red Hat - initial API and implementation +##########################################################################= ##### + +bin.includes =3D feature.*,\ + license.html + + Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.fe= ature/sourceTemplateFeature/feature.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featu= re/sourceTemplateFeature/feature.properties (rev 0) +++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featu= re/sourceTemplateFeature/feature.properties 2009-09-09 19:34:11 UTC (rev 17= 504) @@ -0,0 +1,26 @@ +featureName=3DJBoss Maven Integration Source +featureProvider=3DJBoss by Red Hat + +# "updateSiteName" property - label for the update site +updateSiteName=3DJBossTools Update Site + = +# "description" property - description of the feature +description=3DJBoss Maven Integration Source + +# "licenseURL" property - URL of the "Feature License" +# do not translate value - just change to point to a locale-specific HTML = page +licenseURL=3Dlicense.html + +# START NON-TRANSLATABLE +# "license" property - text of the "Feature Update License" +# should be plain text version of license agreement pointed to be "license= URL" +license=3DRed Hat, Inc. licenses these features and plugins to you under +certain open source licenses (or aggregations of such licenses), which +in a particular case may include the Eclipse Public License, the GNU +Lesser General Public License, and/or certain other open source +licenses. For precise licensing details, consult the corresponding +source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, +Raleigh NC 27606 USA. +# END NON-TRANSLATABLE +########### end of license property ######################################= #### + = \ No newline at end of file Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.fe= ature/sourceTemplateFeature/license.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featu= re/sourceTemplateFeature/license.html (rev 0) +++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featu= re/sourceTemplateFeature/license.html 2009-09-09 19:34:11 UTC (rev 17504) @@ -0,0 +1,14 @@ + + + + +

Red Hat, Inc. licenses these features and plugins to you under +certain open source licenses (or aggregations of such licenses), which +in a particular case may include the Eclipse Public License, the GNU +Lesser General Public License, and/or certain other open source +licenses. For precise licensing details, consult the corresponding +source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, +Raleigh NC 27606 USA. +

+ + \ No newline at end of file Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.fe= ature/sourceTemplatePlugin/about.ini =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featu= re/sourceTemplatePlugin/about.ini (rev 0) +++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featu= re/sourceTemplatePlugin/about.ini 2009-09-09 19:34:11 UTC (rev 17504) @@ -0,0 +1,29 @@ +# about.ini +# contains information about a feature +# java.io.Properties file (ISO 8859-1 with "\" escapes) +# "%key" are externalized strings defined in about.properties +# This file does not need to be translated. + +# Property "aboutText" contains blurb for "About" dialog (translated) +aboutText=3D%blurb + +# Property "windowImage" contains path to window icon (16x16) +# needed for primary features only + +# Property "featureImage" contains path to feature image (32x32) +#featureImage=3Declipse32.png + +# Property "aboutImage" contains path to product image (500x330 or 115x164) +# needed for primary features only + +# Property "appName" contains name of the application (translated) +# needed for primary features only + +# Property "welcomePage" contains path to welcome page (special XML-based = format) +# optional + +# Property "welcomePerspective" contains the id of the perspective in whic= h the +# welcome page is to be opened. +# optional + + Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.fe= ature/sourceTemplatePlugin/about.mappings =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featu= re/sourceTemplatePlugin/about.mappings (rev 0) +++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featu= re/sourceTemplatePlugin/about.mappings 2009-09-09 19:34:11 UTC (rev 17504) @@ -0,0 +1,6 @@ +# about.mappings +# contains fill-ins for about.properties +# java.io.Properties file (ISO 8859-1 with "\" escapes) +# This file does not need to be translated. + +0=3D@build@ \ No newline at end of file Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.fe= ature/sourceTemplatePlugin/about.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featu= re/sourceTemplatePlugin/about.properties (rev 0) +++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featu= re/sourceTemplatePlugin/about.properties 2009-09-09 19:34:11 UTC (rev 17504) @@ -0,0 +1,7 @@ +blurb=3DJBoss Maven Integration Source\n\ +\n\ +Version: {featureVersion}\n\ +Build id: {0}\n\ +\n\ +(c) Copyright Red Hat contributors and others, 2009. All rights reserved.= \n\ +Visit http://www.jboss.org/tools Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.fe= ature/sourceTemplatePlugin/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featu= re/sourceTemplatePlugin/build.properties (rev 0) +++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featu= re/sourceTemplatePlugin/build.properties 2009-09-09 19:34:11 UTC (rev 17504) @@ -0,0 +1,5 @@ +bin.includes =3D plugin.*,\ + about.*,\ + src/,\ + META-INF/ +sourcePlugin =3D true Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.fe= ature/sourceTemplatePlugin/plugin.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featu= re/sourceTemplatePlugin/plugin.properties (rev 0) +++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.featu= re/sourceTemplatePlugin/plugin.properties 2009-09-09 19:34:11 UTC (rev 1750= 4) @@ -0,0 +1,3 @@ +pluginName =3D JBoss Maven Integration Source +providerName =3D JBoss by Red Hat + Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.se= am.feature/sourceTemplateFeature/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.= feature/sourceTemplateFeature/build.properties (rev= 0) +++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.= feature/sourceTemplateFeature/build.properties 2009-09-09 19:34:11 UTC (rev= 17504) @@ -0,0 +1,15 @@ +##########################################################################= ##### +# Copyright (c) 2009 Red Hat and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# = +# Contributors: +# Red Hat - initial API and implementation +##########################################################################= ##### + +bin.includes =3D feature.*,\ + license.html + + Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.se= am.feature/sourceTemplateFeature/feature.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.= feature/sourceTemplateFeature/feature.properties (r= ev 0) +++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.= feature/sourceTemplateFeature/feature.properties 2009-09-09 19:34:11 UTC (r= ev 17504) @@ -0,0 +1,26 @@ +featureName=3DJBoss Maven Seam Integration Source +featureProvider=3DJBoss by Red Hat + +# "updateSiteName" property - label for the update site +updateSiteName=3DJBossTools Update Site + = +# "description" property - description of the feature +description=3DJBoss Maven Seam Integration Source + +# "licenseURL" property - URL of the "Feature License" +# do not translate value - just change to point to a locale-specific HTML = page +licenseURL=3Dlicense.html + +# START NON-TRANSLATABLE +# "license" property - text of the "Feature Update License" +# should be plain text version of license agreement pointed to be "license= URL" +license=3DRed Hat, Inc. licenses these features and plugins to you under +certain open source licenses (or aggregations of such licenses), which +in a particular case may include the Eclipse Public License, the GNU +Lesser General Public License, and/or certain other open source +licenses. For precise licensing details, consult the corresponding +source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, +Raleigh NC 27606 USA. +# END NON-TRANSLATABLE +########### end of license property ######################################= #### + = \ No newline at end of file Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.se= am.feature/sourceTemplateFeature/license.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.= feature/sourceTemplateFeature/license.html (rev 0) +++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.= feature/sourceTemplateFeature/license.html 2009-09-09 19:34:11 UTC (rev 175= 04) @@ -0,0 +1,14 @@ + + + + +

Red Hat, Inc. licenses these features and plugins to you under +certain open source licenses (or aggregations of such licenses), which +in a particular case may include the Eclipse Public License, the GNU +Lesser General Public License, and/or certain other open source +licenses. For precise licensing details, consult the corresponding +source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, +Raleigh NC 27606 USA. +

+ + \ No newline at end of file Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.se= am.feature/sourceTemplatePlugin/about.ini =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.= feature/sourceTemplatePlugin/about.ini (rev 0) +++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.= feature/sourceTemplatePlugin/about.ini 2009-09-09 19:34:11 UTC (rev 17504) @@ -0,0 +1,29 @@ +# about.ini +# contains information about a feature +# java.io.Properties file (ISO 8859-1 with "\" escapes) +# "%key" are externalized strings defined in about.properties +# This file does not need to be translated. + +# Property "aboutText" contains blurb for "About" dialog (translated) +aboutText=3D%blurb + +# Property "windowImage" contains path to window icon (16x16) +# needed for primary features only + +# Property "featureImage" contains path to feature image (32x32) +#featureImage=3Declipse32.png + +# Property "aboutImage" contains path to product image (500x330 or 115x164) +# needed for primary features only + +# Property "appName" contains name of the application (translated) +# needed for primary features only + +# Property "welcomePage" contains path to welcome page (special XML-based = format) +# optional + +# Property "welcomePerspective" contains the id of the perspective in whic= h the +# welcome page is to be opened. +# optional + + Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.se= am.feature/sourceTemplatePlugin/about.mappings =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.= feature/sourceTemplatePlugin/about.mappings (rev 0) +++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.= feature/sourceTemplatePlugin/about.mappings 2009-09-09 19:34:11 UTC (rev 17= 504) @@ -0,0 +1,6 @@ +# about.mappings +# contains fill-ins for about.properties +# java.io.Properties file (ISO 8859-1 with "\" escapes) +# This file does not need to be translated. + +0=3D@build@ \ No newline at end of file Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.se= am.feature/sourceTemplatePlugin/about.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.= feature/sourceTemplatePlugin/about.properties (rev = 0) +++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.= feature/sourceTemplatePlugin/about.properties 2009-09-09 19:34:11 UTC (rev = 17504) @@ -0,0 +1,7 @@ +blurb=3DJBoss Maven Seam Integration Source\n\ +\n\ +Version: {featureVersion}\n\ +Build id: {0}\n\ +\n\ +(c) Copyright Red Hat contributors and others, 2009. All rights reserved.= \n\ +Visit http://www.jboss.org/tools Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.se= am.feature/sourceTemplatePlugin/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.= feature/sourceTemplatePlugin/build.properties (rev = 0) +++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.= feature/sourceTemplatePlugin/build.properties 2009-09-09 19:34:11 UTC (rev = 17504) @@ -0,0 +1,5 @@ +bin.includes =3D plugin.*,\ + about.*,\ + src/,\ + META-INF/ +sourcePlugin =3D true Added: branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.se= am.feature/sourceTemplatePlugin/plugin.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.= feature/sourceTemplatePlugin/plugin.properties (rev= 0) +++ branches/jbosstools-3.1.0.M3/maven/features/org.jboss.tools.maven.seam.= feature/sourceTemplatePlugin/plugin.properties 2009-09-09 19:34:11 UTC (rev= 17504) @@ -0,0 +1,3 @@ +pluginName =3D JBoss Maven Seam Integration Source +providerName =3D JBoss by Red Hat + --===============8166070947241724609==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 15:37:29 2009 Content-Type: multipart/mixed; boundary="===============0943460718518729875==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17505 - in trunk: jsf/plugins/org.jboss.tools.jsf.ui/META-INF and 1 other directory. Date: Wed, 09 Sep 2009 15:37:29 -0400 Message-ID: <200909091937.n89JbT6l005611@svn01.web.mwc.hst.phx2.redhat.com> --===============0943460718518729875== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-09 15:37:28 -0400 (Wed, 09 Sep 2009) New Revision: 17505 Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/META-INF/MANIFEST.MF trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF Log: https://jira.jboss.org/jira/browse/JBIDE-4474 = Plug-ins were cleaned up: o.j.t.common.model.ui o.j.t.jsf.ui Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/META-INF/MAN= IFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/META-INF/MANIFEST.= MF 2009-09-09 19:34:11 UTC (rev 17504) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/META-INF/MANIFEST.= MF 2009-09-09 19:37:28 UTC (rev 17505) @@ -87,32 +87,18 @@ Require-Bundle: org.jboss.tools.common.model;visibility:=3Dreexport, org.jboss.tools.common.text.ext;visibility:=3Dreexport, org.jboss.tools.common.text.xml;visibility:=3Dreexport, - org.jboss.tools.common.gef;visibility:=3Dreexport, org.eclipse.ui, org.eclipse.ui.ide, org.eclipse.ui.views, - org.eclipse.ui.editors, - org.eclipse.jface, org.eclipse.jface.text, - org.eclipse.ui.workbench, org.eclipse.ui.workbench.texteditor, org.eclipse.ui.forms, - org.eclipse.ui.navigator, - org.eclipse.jdt.core, org.eclipse.jdt.ui, - org.eclipse.core.resources, - org.eclipse.core.runtime, org.eclipse.compare, - org.eclipse.ui.editors, - org.eclipse.wst.sse.ui, org.eclipse.wst.xml.ui, - org.eclipse.wst.xml.core, - org.eclipse.wst.sse.core, org.eclipse.jdt.launching, - org.eclipse.ant.ui, - org.eclipse.core.expressions, - org.eclipse.core.filesystem, org.eclipse.wst.html.core, - org.eclipse.pde.ui + org.eclipse.pde.ui, + org.eclipse.core.expressions;bundle-version=3D"3.4.100" Bundle-Version: 2.0.0 Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF 2009-09-0= 9 19:34:11 UTC (rev 17504) +++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF 2009-09-0= 9 19:37:28 UTC (rev 17505) @@ -45,7 +45,8 @@ org.eclipse.ui.ide, org.eclipse.gef, org.eclipse.ui.workbench.texteditor, - org.eclipse.core.expressions + org.eclipse.core.expressions, + org.jboss.tools.common.gef;bundle-version=3D"2.0.0" Bundle-Version: 2.0.0 Eclipse-LazyStart: true Bundle-RequiredExecutionEnvironment: J2SE-1.5 --===============0943460718518729875==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 15:43:30 2009 Content-Type: multipart/mixed; boundary="===============7304517288321346980==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17506 - in trunk/maven/features: org.jboss.tools.maven.feature/sourceTemplateFeature and 4 other directories. Date: Wed, 09 Sep 2009 15:43:30 -0400 Message-ID: <200909091943.n89JhU3Q006793@svn01.web.mwc.hst.phx2.redhat.com> --===============7304517288321346980== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: nickboldt Date: 2009-09-09 15:43:30 -0400 (Wed, 09 Sep 2009) New Revision: 17506 Added: trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature/ trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature= /build.properties trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature= /feature.properties trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeature= /license.html trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/ trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/= about.ini trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/= about.mappings trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/= about.properties trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/= build.properties trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin/= plugin.properties trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFe= ature/ trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFe= ature/build.properties trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFe= ature/feature.properties trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateFe= ature/license.html trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePl= ugin/ trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePl= ugin/about.ini trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePl= ugin/about.mappings trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePl= ugin/about.properties trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePl= ugin/build.properties trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplatePl= ugin/plugin.properties Log: add maven.source and maven.seam.source feature/plugin templates Added: trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFea= ture/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeatur= e/build.properties (rev 0) +++ trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeatur= e/build.properties 2009-09-09 19:43:30 UTC (rev 17506) @@ -0,0 +1,15 @@ +##########################################################################= ##### +# Copyright (c) 2009 Red Hat and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# = +# Contributors: +# Red Hat - initial API and implementation +##########################################################################= ##### + +bin.includes =3D feature.*,\ + license.html + + Added: trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFea= ture/feature.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeatur= e/feature.properties (rev 0) +++ trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeatur= e/feature.properties 2009-09-09 19:43:30 UTC (rev 17506) @@ -0,0 +1,26 @@ +featureName=3DJBoss Maven Integration Source +featureProvider=3DJBoss by Red Hat + +# "updateSiteName" property - label for the update site +updateSiteName=3DJBossTools Update Site + = +# "description" property - description of the feature +description=3DJBoss Maven Integration Source + +# "licenseURL" property - URL of the "Feature License" +# do not translate value - just change to point to a locale-specific HTML = page +licenseURL=3Dlicense.html + +# START NON-TRANSLATABLE +# "license" property - text of the "Feature Update License" +# should be plain text version of license agreement pointed to be "license= URL" +license=3DRed Hat, Inc. licenses these features and plugins to you under +certain open source licenses (or aggregations of such licenses), which +in a particular case may include the Eclipse Public License, the GNU +Lesser General Public License, and/or certain other open source +licenses. For precise licensing details, consult the corresponding +source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, +Raleigh NC 27606 USA. +# END NON-TRANSLATABLE +########### end of license property ######################################= #### + = \ No newline at end of file Added: trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFea= ture/license.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeatur= e/license.html (rev 0) +++ trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplateFeatur= e/license.html 2009-09-09 19:43:30 UTC (rev 17506) @@ -0,0 +1,14 @@ + + + + +

Red Hat, Inc. licenses these features and plugins to you under +certain open source licenses (or aggregations of such licenses), which +in a particular case may include the Eclipse Public License, the GNU +Lesser General Public License, and/or certain other open source +licenses. For precise licensing details, consult the corresponding +source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, +Raleigh NC 27606 USA. +

+ + \ No newline at end of file Added: trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlu= gin/about.ini =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin= /about.ini (rev 0) +++ trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin= /about.ini 2009-09-09 19:43:30 UTC (rev 17506) @@ -0,0 +1,29 @@ +# about.ini +# contains information about a feature +# java.io.Properties file (ISO 8859-1 with "\" escapes) +# "%key" are externalized strings defined in about.properties +# This file does not need to be translated. + +# Property "aboutText" contains blurb for "About" dialog (translated) +aboutText=3D%blurb + +# Property "windowImage" contains path to window icon (16x16) +# needed for primary features only + +# Property "featureImage" contains path to feature image (32x32) +#featureImage=3Declipse32.png + +# Property "aboutImage" contains path to product image (500x330 or 115x164) +# needed for primary features only + +# Property "appName" contains name of the application (translated) +# needed for primary features only + +# Property "welcomePage" contains path to welcome page (special XML-based = format) +# optional + +# Property "welcomePerspective" contains the id of the perspective in whic= h the +# welcome page is to be opened. +# optional + + Added: trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlu= gin/about.mappings =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin= /about.mappings (rev 0) +++ trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin= /about.mappings 2009-09-09 19:43:30 UTC (rev 17506) @@ -0,0 +1,6 @@ +# about.mappings +# contains fill-ins for about.properties +# java.io.Properties file (ISO 8859-1 with "\" escapes) +# This file does not need to be translated. + +0=3D@build@ \ No newline at end of file Added: trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlu= gin/about.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin= /about.properties (rev 0) +++ trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin= /about.properties 2009-09-09 19:43:30 UTC (rev 17506) @@ -0,0 +1,7 @@ +blurb=3DJBoss Maven Integration Source\n\ +\n\ +Version: {featureVersion}\n\ +Build id: {0}\n\ +\n\ +(c) Copyright Red Hat contributors and others, 2009. All rights reserved.= \n\ +Visit http://www.jboss.org/tools Added: trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlu= gin/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin= /build.properties (rev 0) +++ trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin= /build.properties 2009-09-09 19:43:30 UTC (rev 17506) @@ -0,0 +1,5 @@ +bin.includes =3D plugin.*,\ + about.*,\ + src/,\ + META-INF/ +sourcePlugin =3D true Added: trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlu= gin/plugin.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin= /plugin.properties (rev 0) +++ trunk/maven/features/org.jboss.tools.maven.feature/sourceTemplatePlugin= /plugin.properties 2009-09-09 19:43:30 UTC (rev 17506) @@ -0,0 +1,3 @@ +pluginName =3D JBoss Maven Integration Source +providerName =3D JBoss by Red Hat + Added: trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTempla= teFeature/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateF= eature/build.properties (rev 0) +++ trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateF= eature/build.properties 2009-09-09 19:43:30 UTC (rev 17506) @@ -0,0 +1,15 @@ +##########################################################################= ##### +# Copyright (c) 2009 Red Hat and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# = +# Contributors: +# Red Hat - initial API and implementation +##########################################################################= ##### + +bin.includes =3D feature.*,\ + license.html + + Added: trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTempla= teFeature/feature.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateF= eature/feature.properties (rev 0) +++ trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateF= eature/feature.properties 2009-09-09 19:43:30 UTC (rev 17506) @@ -0,0 +1,26 @@ +featureName=3DJBoss Maven Seam Integration Source +featureProvider=3DJBoss by Red Hat + +# "updateSiteName" property - label for the update site +updateSiteName=3DJBossTools Update Site + = +# "description" property - description of the feature +description=3DJBoss Maven Seam Integration Source + +# "licenseURL" property - URL of the "Feature License" +# do not translate value - just change to point to a locale-specific HTML = page +licenseURL=3Dlicense.html + +# START NON-TRANSLATABLE +# "license" property - text of the "Feature Update License" +# should be plain text version of license agreement pointed to be "license= URL" +license=3DRed Hat, Inc. licenses these features and plugins to you under +certain open source licenses (or aggregations of such licenses), which +in a particular case may include the Eclipse Public License, the GNU +Lesser General Public License, and/or certain other open source +licenses. For precise licensing details, consult the corresponding +source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, +Raleigh NC 27606 USA. +# END NON-TRANSLATABLE +########### end of license property ######################################= #### + = \ No newline at end of file Added: trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTempla= teFeature/license.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateF= eature/license.html (rev 0) +++ trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateF= eature/license.html 2009-09-09 19:43:30 UTC (rev 17506) @@ -0,0 +1,14 @@ + + + + +

Red Hat, Inc. licenses these features and plugins to you under +certain open source licenses (or aggregations of such licenses), which +in a particular case may include the Eclipse Public License, the GNU +Lesser General Public License, and/or certain other open source +licenses. For precise licensing details, consult the corresponding +source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, +Raleigh NC 27606 USA. +

+ + \ No newline at end of file Added: trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTempla= tePlugin/about.ini =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateP= lugin/about.ini (rev 0) +++ trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateP= lugin/about.ini 2009-09-09 19:43:30 UTC (rev 17506) @@ -0,0 +1,29 @@ +# about.ini +# contains information about a feature +# java.io.Properties file (ISO 8859-1 with "\" escapes) +# "%key" are externalized strings defined in about.properties +# This file does not need to be translated. + +# Property "aboutText" contains blurb for "About" dialog (translated) +aboutText=3D%blurb + +# Property "windowImage" contains path to window icon (16x16) +# needed for primary features only + +# Property "featureImage" contains path to feature image (32x32) +#featureImage=3Declipse32.png + +# Property "aboutImage" contains path to product image (500x330 or 115x164) +# needed for primary features only + +# Property "appName" contains name of the application (translated) +# needed for primary features only + +# Property "welcomePage" contains path to welcome page (special XML-based = format) +# optional + +# Property "welcomePerspective" contains the id of the perspective in whic= h the +# welcome page is to be opened. +# optional + + Added: trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTempla= tePlugin/about.mappings =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateP= lugin/about.mappings (rev 0) +++ trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateP= lugin/about.mappings 2009-09-09 19:43:30 UTC (rev 17506) @@ -0,0 +1,6 @@ +# about.mappings +# contains fill-ins for about.properties +# java.io.Properties file (ISO 8859-1 with "\" escapes) +# This file does not need to be translated. + +0=3D@build@ \ No newline at end of file Added: trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTempla= tePlugin/about.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateP= lugin/about.properties (rev 0) +++ trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateP= lugin/about.properties 2009-09-09 19:43:30 UTC (rev 17506) @@ -0,0 +1,7 @@ +blurb=3DJBoss Maven Seam Integration Source\n\ +\n\ +Version: {featureVersion}\n\ +Build id: {0}\n\ +\n\ +(c) Copyright Red Hat contributors and others, 2009. All rights reserved.= \n\ +Visit http://www.jboss.org/tools Added: trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTempla= tePlugin/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateP= lugin/build.properties (rev 0) +++ trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateP= lugin/build.properties 2009-09-09 19:43:30 UTC (rev 17506) @@ -0,0 +1,5 @@ +bin.includes =3D plugin.*,\ + about.*,\ + src/,\ + META-INF/ +sourcePlugin =3D true Added: trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTempla= tePlugin/plugin.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateP= lugin/plugin.properties (rev 0) +++ trunk/maven/features/org.jboss.tools.maven.seam.feature/sourceTemplateP= lugin/plugin.properties 2009-09-09 19:43:30 UTC (rev 17506) @@ -0,0 +1,3 @@ +pluginName =3D JBoss Maven Seam Integration Source +providerName =3D JBoss by Red Hat + --===============7304517288321346980==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 19:12:39 2009 Content-Type: multipart/mixed; boundary="===============4704142698573860776==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17507 - trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF. Date: Wed, 09 Sep 2009 19:12:39 -0400 Message-ID: <200909092312.n89NCdVZ019452@svn01.web.mwc.hst.phx2.redhat.com> --===============4704142698573860776== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-09 19:12:39 -0400 (Wed, 09 Sep 2009) New Revision: 17507 Modified: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFEST.MF Log: https://jira.jboss.org/jira/browse/JBIDE-4474 = Plug-ins were cleaned up: o.j.t.seam.ui.pages Modified: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFES= T.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFEST.MF 2= 009-09-09 19:43:30 UTC (rev 17506) +++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFEST.MF 2= 009-09-09 23:12:39 UTC (rev 17507) @@ -23,32 +23,18 @@ org.jboss.tools.seam.ui.pages.editor.edit Bundle-SymbolicName: org.jboss.tools.seam.ui.pages;singleton:=3Dtrue Bundle-Localization: plugin -Require-Bundle: org.eclipse.jface.text, - org.eclipse.jdt.ui, - org.eclipse.wst.sse.ui, - org.eclipse.wst.xml.core, - org.eclipse.wst.xml.ui, - org.eclipse.wst.common.frameworks.ui, - org.eclipse.wst.common.ui, - org.eclipse.compare, - org.eclipse.core.resources, - org.eclipse.core.runtime, - org.eclipse.jface, - org.eclipse.ui, - org.eclipse.draw2d, +Require-Bundle: org.eclipse.ui, org.eclipse.gef, org.eclipse.ui.ide, org.eclipse.ui.workbench.texteditor, - org.eclipse.core.expressions, org.eclipse.ui.views, - org.jboss.tools.common.model, org.jboss.tools.common.model.ui, - org.jboss.tools.common.text.xml, - org.jboss.tools.jst.web, org.jboss.tools.jst.web.ui, org.jboss.tools.seam.pages.xml, - org.eclipse.emf;bundle-version=3D"2.4.0", org.eclipse.emf.ecore;bundle-version=3D"2.4.0", - org.eclipse.pde.ui;bundle-version=3D"3.4.0" + org.eclipse.pde.ui;bundle-version=3D"3.4.0", + org.jboss.tools.common.gef;bundle-version=3D"2.0.0", + org.eclipse.jface.text;bundle-version=3D"3.5.0", + org.eclipse.core.expressions;bundle-version=3D"3.4.100" Bundle-Version: 2.0.0 Bundle-RequiredExecutionEnvironment: J2SE-1.5 --===============4704142698573860776==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 19:59:43 2009 Content-Type: multipart/mixed; boundary="===============9176856191454580507==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17508 - trunk/tests/features/org.jboss.tools.all.test.feature. Date: Wed, 09 Sep 2009 19:59:43 -0400 Message-ID: <200909092359.n89NxhXw029889@svn01.web.mwc.hst.phx2.redhat.com> --===============9176856191454580507== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-09 19:59:43 -0400 (Wed, 09 Sep 2009) New Revision: 17508 Modified: trunk/tests/features/org.jboss.tools.all.test.feature/feature.xml Log: remove kb.test plug-in from test feature Modified: trunk/tests/features/org.jboss.tools.all.test.feature/feature.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/tests/features/org.jboss.tools.all.test.feature/feature.xml 2009-= 09-09 23:12:39 UTC (rev 17507) +++ trunk/tests/features/org.jboss.tools.all.test.feature/feature.xml 2009-= 09-09 23:59:43 UTC (rev 17508) @@ -20,14 +20,7 @@ source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, Raleigh NC 27606 USA. - - - - --===============5466503511746008653== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: snjeza Date: 2009-09-09 20:27:18 -0400 (Wed, 09 Sep 2009) New Revision: 17509 Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/internal/project/facet/JSFPortletLibraryValidator.java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/internal/project/facet/PortletLibraryValidator.java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/libprov/ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperation.= java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperationC= onfig.java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/libprov/JSFPortletServerRuntimeLibraryProviderUninstallOperatio= n.java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperation.= java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperationC= onfig.java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderUninstallOperatio= n.java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/libprov/PortletServerRuntimeLibraryProviderInstallOperation.java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/libprov/PortletServerRuntimeLibraryProviderInstallOperationConf= ig.java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/libprov/PortletServerRuntimeLibraryProviderUninstallOperation.j= ava trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/libprov/RuntimeLibraryProviderPropertyTester.java trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/por= tlet/ui/internal/libprov/ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/por= tlet/ui/internal/libprov/JSFPortletServerRuntimeProviderInstallPanel.java trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/por= tlet/ui/internal/libprov/JSFPortletbridgeRuntimeProviderInstallPanel.java trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/por= tlet/ui/internal/libprov/PortletServerRuntimeProviderInstallPanel.java Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/META-INF/MANIFEST.MF trunk/portlet/plugins/org.jboss.tools.portlet.core/plugin.properties trunk/portlet/plugins/org.jboss.tools.portlet.core/plugin.xml trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/IPortletConstants.java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/Messages.java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/internal/PortletRuntimeComponentProvider.java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/internal/project/facet/JSFPortletFacetInstallDataModelProvider.= java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/internal/project/facet/JSFPortletFacetInstallDelegate.java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/internal/project/facet/PortletFacetInstallDataModelProvider.java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/internal/project/facet/PortletFacetInstallDelegate.java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/internal/project/facet/PortletPostInstallListener.java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/messages.properties trunk/portlet/plugins/org.jboss.tools.portlet.ui/META-INF/MANIFEST.MF trunk/portlet/plugins/org.jboss.tools.portlet.ui/plugin.xml trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/por= tlet/ui/Messages.java trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/por= tlet/ui/internal/project/facet/JSFPortletFacetInstallPage.java trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/por= tlet/ui/internal/project/facet/PortletFacetInstallPage.java trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/por= tlet/ui/messages.properties Log: https://jira.jboss.org/jira/browse/JBIDE-4689 Integrate Portlet facet with = WTP 3.1 Library Framework Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/META-INF/MANIF= EST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/META-INF/MANIFEST.MF= 2009-09-09 23:59:43 UTC (rev 17508) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/META-INF/MANIFEST.MF= 2009-09-10 00:27:18 UTC (rev 17509) @@ -7,7 +7,7 @@ Bundle-Vendor: %BundleVendor Require-Bundle: org.eclipse.core.runtime, org.eclipse.wst.common.project.facet.core, - org.eclipse.jst.common.project.facet.core, + org.eclipse.jst.common.project.facet.core;visibility:=3Dreexport, org.eclipse.core.resources, org.eclipse.wst.common.frameworks, org.eclipse.jst.j2ee, @@ -24,10 +24,13 @@ org.eclipse.wst.server.core;visibility:=3Dreexport, org.eclipse.jem.util, org.jboss.ide.eclipse.as.core;visibility:=3Dreexport, - org.eclipse.core.commands + org.eclipse.core.commands, + org.eclipse.core.expressions Bundle-ActivationPolicy: lazy Export-Package: org.jboss.tools.portlet.core, org.jboss.tools.portlet.core.internal, - org.jboss.tools.portlet.core.internal.project.facet + org.jboss.tools.portlet.core.internal.project.facet, + org.jboss.tools.portlet.core.libprov, + org.jboss.tools.portlet.core.preferences Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/plugin.propert= ies =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/plugin.properties 20= 09-09-09 23:59:43 UTC (rev 17508) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/plugin.properties 20= 09-09-10 00:27:18 UTC (rev 17509) @@ -1,3 +1,12 @@ #Properties file for org.jboss.tools.portlet.core BundleVendor =3D JBoss by Red Hat -BundleName =3D Portlet Core Plug-in \ No newline at end of file +BundleName =3D Portlet Core Plug-in + +noOpLibraryProviderWarning =3D Library configuration is disabled. Further = classpath changes may be required later. +noOpLibraryProviderMessage =3D This facet requires Portlet implementation = library to be present on project classpath. By disabling library configurat= ion, user takes on responsibility of configuring classpath appropriately vi= a alternate means. +portletLibraryProviderLabel=3DPortlet Target Runtime Provider + +noOpLibraryJSFPortletProviderWarning =3D Library configuration is disabled= . Further classpath changes may be required later. +noOpLibraryJSFPortletProviderMessage =3D This facet requires JSF Portlet i= mplementation library to be present on project classpath. By disabling libr= ary configuration, user takes on responsibility of configuring classpath ap= propriately via alternate means. +jsfportletLibraryProviderLabel=3DJSF Portlet Target Runtime Provider +jsfportletbridgeLibraryProviderLabel=3DJSF Portletbridge Runtime Provider Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/plugin.xml 2009-09-0= 9 23:59:43 UTC (rev 17508) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/plugin.xml 2009-09-1= 0 00:27:18 UTC (rev 17509) @@ -309,5 +309,133 @@ point=3D"org.eclipse.core.runtime.preferences">
- = + = + + + + + + + + + + + + = + + + + + + + + + + + + = + + + + 500 + + + + + = + + + + + = + + + + + + + + + + + = + + + + + = + + + + + + + + + + + + = + + + + + + + + + + + + = + + + + 500 + + + + + = + + + + + = + + + + + + + + + + + = + + + + 500 + + + + + = + + + + + + + + + + + =
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/= tools/portlet/core/IPortletConstants.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/IPortletConstants.java 2009-09-09 23:59:43 UTC (rev 17508) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/IPortletConstants.java 2009-09-10 00:27:18 UTC (rev 17509) @@ -96,4 +96,14 @@ static final String PORTLET_SAR_LIB =3D "deploy/jboss-portal.sar/portal-i= dentity.sar/portal-identity.war/WEB-INF/lib"; //$NON-NLS-1$ = static final String PORTLET_SAR_HA_LIB =3D "deploy/jboss-portal-ha.sar/po= rtal-identity.sar/portal-identity.war/WEB-INF/lib"; //$NON-NLS-1$ + = + static final String PORTLET_LIBRARY_PROVIDER_DELEGATE =3D "PORTLET_LIBRAR= Y_PROVIDER_DELEGATE"; //$NON-NLS-1$ + = + static final String JSFPORTLET_LIBRARY_PROVIDER_DELEGATE =3D "JSFPORTLET_= LIBRARY_PROVIDER_DELEGATE"; //$NON-NLS-1$ + + static final String PORTLETBRIDGE_HOME =3D "portletbridgeHome"; //$NON-NL= S-1$ + = + static final String PREFS_PORTLETBRIDGE_HOME =3D "jsfportlet.library.prov= ider/portletbridge_home"; //$NON-NLS-1$ + + static final String PORTLET_BRIDGE_HOME =3D "portletBridgeHome"; //$NON-N= LS-1$ } Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/= tools/portlet/core/Messages.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/Messages.java 2009-09-09 23:59:43 UTC (rev 17508) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/Messages.java 2009-09-10 00:27:18 UTC (rev 17509) @@ -4,7 +4,10 @@ = public class Messages extends NLS { private static final String BUNDLE_NAME =3D "org.jboss.tools.portlet.core= .messages"; //$NON-NLS-1$ + public static String JSFPortletLibraryValidator_MISSING_JSFPORTLET_IMPLEM= ENTATION_CLASSES; + public static String PortletLibraryValidator_MISSING_PORTLET_IMPLEMENTATI= ON_CLASSES; public static String PortletPostInstallListener_Invalid_Richfaces_Runtime; + public static String PortletPostInstallListener_Cannot_find_Richfaces_ibr= aries; public static String PortletPostInstallListener_Cannot_find_Richfaces_Run= time; public static String Libraries_provided_by_richfaces; public static String Libraries_provided_by_portletbridge ; @@ -38,6 +41,8 @@ public static String SeamPortletFacetInstallDelegate_Cannot_configure_web= _module_for_JBoss_Seam_Portlet_Facet; public static String SeamPortletFacetInstallDelegate_Missing_configuratio= n; public static String SeamPortletFacetInstallDelegate_The_web_xml_file_is_= not_updateable; + public static String JSFPortletFacetInstallPage_Portletbridge_Runtime_dir= ectory_is_required; + public static String JSFPortletFacetInstallPage_Invalid_Portletbridge_Run= time_directory; static { // initialize resource bundle NLS.initializeMessages(BUNDLE_NAME, Messages.class); Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/= tools/portlet/core/internal/PortletRuntimeComponentProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/internal/PortletRuntimeComponentProvider.java 2009-09-09 23:59= :43 UTC (rev 17508) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/internal/PortletRuntimeComponentProvider.java 2009-09-10 00:27= :18 UTC (rev 17509) @@ -23,6 +23,8 @@ public class PortletRuntimeComponentProvider extends RuntimeFacetComponentProviderDelegate { = + private static final String IS_PORTLET_RUNTIME =3D "isPortletRuntime"; //= $NON-NLS-1$ + private static final IRuntimeComponentType PORTAL_TYPE =3D RuntimeManager .getRuntimeComponentType("org.jboss.tools.portlet.core.runtime.componen= t"); //$NON-NLS-1$ = @@ -34,7 +36,7 @@ if (runtime !=3D null && runtime.getLocation() !=3D null) { File location =3D runtime.getLocation().toFile(); = - if (isPortalPresent(location, runtime)) { + if (isPortalPresentInternal(location, runtime)) { final IRuntimeComponent portalComponent =3D RuntimeManager .createRuntimeComponent(PORTAL_VERSION_1, null); components.add(portalComponent); @@ -44,12 +46,18 @@ } = = - private static boolean isPortalPresent(final File location, IRuntime runt= ime) { + private static boolean isPortalPresentInternal(final File location, IRunt= ime runtime) { boolean check =3D PortletCoreActivator.getDefault().getPluginPreferences= ().getBoolean(PortletCoreActivator.CHECK_RUNTIMES); if (!check) { return true; } = + return isPortalPresent(location, runtime, IS_PORTLET_RUNTIME); = + } + + + public static boolean isPortalPresent(final File location, + IRuntime runtime, String property) { IJBossServerRuntime jbossRuntime =3D (IJBossServerRuntime)runtime.loadAd= apter(IJBossServerRuntime.class, new NullProgressMonitor()); if (jbossRuntime !=3D null) { // JBoss Portal server @@ -71,8 +79,12 @@ IPortletConstants.SERVER_DEFAULT_DEPLOY_SIMPLE_PORTAL)) { return true; } + return false; } // Tomcat portletcontainer + if (!IS_PORTLET_RUNTIME.equals(property)) { + return false; + } File tomcatLib =3D new File(location,IPortletConstants.TOMCAT_LIB); if (tomcatLib.exists() && tomcatLib.isDirectory()) { String[] files =3D tomcatLib.list(new FilenameFilter() { @@ -88,7 +100,7 @@ return files.length > 0; } = - return false; = + return false; } = = Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/= tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDataModelPr= ovider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/internal/project/facet/JSFPortletFacetInstallDataModelProvider= .java 2009-09-09 23:59:43 UTC (rev 17508) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/internal/project/facet/JSFPortletFacetInstallDataModelProvider= .java 2009-09-10 00:27:18 UTC (rev 17509) @@ -12,9 +12,14 @@ = import java.util.Set; = +import org.eclipse.core.runtime.IStatus; +import org.eclipse.jst.common.project.facet.core.libprov.IPropertyChangeLi= stener; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDel= egate; import org.eclipse.wst.common.componentcore.datamodel.FacetInstallDataMode= lProvider; +import org.eclipse.wst.common.frameworks.datamodel.IDataModel; +import org.eclipse.wst.common.project.facet.core.IFacetedProjectWorkingCop= y; +import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion; import org.jboss.tools.portlet.core.IPortletConstants; -import org.jboss.tools.portlet.core.Messages; = /** * @author snjeza @@ -23,6 +28,27 @@ public class JSFPortletFacetInstallDataModelProvider extends FacetInstallDataModelProvider implements IPortletConstants { = + private LibraryInstallDelegate libraryInstallDelegate =3D null; + = + private void initLibraryInstallDelegate() { + final IFacetedProjectWorkingCopy fpjwc =3D (IFacetedProjectWorkingCopy) = getProperty(FACETED_PROJECT_WORKING_COPY); + final IProjectFacetVersion fv =3D (IProjectFacetVersion) getProperty(FAC= ET_VERSION); + if (libraryInstallDelegate =3D=3D null && fpjwc !=3D null && fv !=3D nul= l) { + libraryInstallDelegate =3D new LibraryInstallDelegate(fpjwc, fv); + libraryInstallDelegate.addListener(new IPropertyChangeListener() { + + public void propertyChanged(final String property, + final Object oldValue, final Object newValue) { + final IDataModel dm =3D getDataModel(); + if (dm !=3D null) { + dm.notifyPropertyChange(JSFPORTLET_LIBRARY_PROVIDER_DELEGATE,IDataMo= del.VALUE_CHG); + } + } + = + }); + } + } + = @Override public Object getDefaultProperty(String propertyName) { if(propertyName.equals(FACET_ID)){ @@ -52,6 +78,9 @@ if (propertyName.equals(IPortletConstants.USER_LIBRARY_NAME)) { return ""; //$NON-NLS-1$ } + if (propertyName.equals(JSFPORTLET_LIBRARY_PROVIDER_DELEGATE)) { + return libraryInstallDelegate; + } return super.getDefaultProperty(propertyName); } = @@ -66,6 +95,30 @@ propertyNames.add(IPortletConstants.RICHFACES_LIBRARIES_SELECTED); propertyNames.add(IPortletConstants.RICHFACES_LIBRARIES_TYPE); propertyNames.add(IPortletConstants.RICHFACES_CAPABILITIES); + propertyNames.add(JSFPORTLET_LIBRARY_PROVIDER_DELEGATE); + = return propertyNames; } + = + @Override + public boolean propertySet(final String propertyName, + final Object propertyValue) { + if (propertyName.equals(FACETED_PROJECT_WORKING_COPY) + || propertyName.equals(FACET_VERSION)) { + initLibraryInstallDelegate(); + if (this.libraryInstallDelegate !=3D null && propertyName.equals(FACET_= VERSION)) { + final IProjectFacetVersion fv =3D (IProjectFacetVersion) getProperty(F= ACET_VERSION); + this.libraryInstallDelegate.setProjectFacetVersion(fv); + } + } + + return super.propertySet(propertyName, propertyValue); + } + + public IStatus validate(String name) { + if (name.equals(JSFPORTLET_LIBRARY_PROVIDER_DELEGATE)) { + return ((LibraryInstallDelegate) getProperty(JSFPORTLET_LIBRARY_PROVIDE= R_DELEGATE)).validate(); + } + return super.validate(name); + } } Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/= tools/portlet/core/internal/project/facet/JSFPortletFacetInstallDelegate.ja= va =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/internal/project/facet/JSFPortletFacetInstallDelegate.java 200= 9-09-09 23:59:43 UTC (rev 17508) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/internal/project/facet/JSFPortletFacetInstallDelegate.java 200= 9-09-10 00:27:18 UTC (rev 17509) @@ -30,6 +30,7 @@ import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jdt.core.JavaCore; import org.eclipse.jdt.core.JavaModelException; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDel= egate; import org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil; import org.eclipse.jst.j2ee.classpathdep.IClasspathDependencyConstants; import org.eclipse.jst.j2ee.model.IModelProvider; @@ -113,7 +114,11 @@ = configureFacesConfig(project, monitor, config); = - configureClassPath(project, monitor, config); + //configureClassPath(project, monitor, config); + = + //Configure libraries + ( (LibraryInstallDelegate) config.getProperty( IPortletConstants.JSFPOR= TLET_LIBRARY_PROVIDER_DELEGATE ) ).execute( new NullProgressMonitor() ); + = = configureWebApp(project, monitor, config); = Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/too= ls/portlet/core/internal/project/facet/JSFPortletLibraryValidator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/internal/project/facet/JSFPortletLibraryValidator.java = (rev 0) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/internal/project/facet/JSFPortletLibraryValidator.java 2009-09= -10 00:27:18 UTC (rev 17509) @@ -0,0 +1,23 @@ +package org.jboss.tools.portlet.core.internal.project.facet; + +import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.Status; +import org.eclipse.jst.common.project.facet.core.libprov.user.KeyClassesVa= lidator; +import org.eclipse.jst.common.project.facet.core.libprov.user.UserLibraryP= roviderInstallOperationConfig; +import org.jboss.tools.portlet.core.Messages; +import org.jboss.tools.portlet.core.PortletCoreActivator; + +public class JSFPortletLibraryValidator extends KeyClassesValidator { + + @Override + public IStatus validate(UserLibraryProviderInstallOperationConfig config)= { + IStatus status =3D super.validate(config); + if (status.getSeverity() =3D=3D IStatus.OK) + return status; + = + String message =3D Messages.JSFPortletLibraryValidator_MISSING_JSFPORTLE= T_IMPLEMENTATION_CLASSES; + return new Status( IStatus.ERROR, PortletCoreActivator.PLUGIN_ID, messag= e ); + + } + +} Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/= tools/portlet/core/internal/project/facet/PortletFacetInstallDataModelProvi= der.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/internal/project/facet/PortletFacetInstallDataModelProvider.ja= va 2009-09-09 23:59:43 UTC (rev 17508) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/internal/project/facet/PortletFacetInstallDataModelProvider.ja= va 2009-09-10 00:27:18 UTC (rev 17509) @@ -12,9 +12,14 @@ = import java.util.Set; = +import org.eclipse.core.runtime.IStatus; +import org.eclipse.jst.common.project.facet.core.libprov.IPropertyChangeLi= stener; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDel= egate; import org.eclipse.wst.common.componentcore.datamodel.FacetInstallDataMode= lProvider; +import org.eclipse.wst.common.frameworks.datamodel.IDataModel; +import org.eclipse.wst.common.project.facet.core.IFacetedProjectWorkingCop= y; +import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion; import org.jboss.tools.portlet.core.IPortletConstants; -import org.jboss.tools.portlet.core.Messages; import org.jboss.tools.portlet.core.PortletCoreActivator; = /** @@ -24,6 +29,27 @@ public class PortletFacetInstallDataModelProvider extends FacetInstallDataModelProvider implements IPortletConstants { = + private LibraryInstallDelegate libraryInstallDelegate =3D null; + = + private void initLibraryInstallDelegate() { + final IFacetedProjectWorkingCopy fpjwc =3D (IFacetedProjectWorkingCopy) = getProperty(FACETED_PROJECT_WORKING_COPY); + final IProjectFacetVersion fv =3D (IProjectFacetVersion) getProperty(FAC= ET_VERSION); + if (libraryInstallDelegate =3D=3D null && fpjwc !=3D null && fv !=3D nul= l) { + libraryInstallDelegate =3D new LibraryInstallDelegate(fpjwc, fv); + libraryInstallDelegate.addListener(new IPropertyChangeListener() { + + public void propertyChanged(final String property, + final Object oldValue, final Object newValue) { + final IDataModel dm =3D getDataModel(); + if (dm !=3D null) { + dm.notifyPropertyChange(PORTLET_LIBRARY_PROVIDER_DELEGATE,IDataModel= .VALUE_CHG); + } + } + = + }); + } + } + = @Override public Object getDefaultProperty(String propertyName) { if(propertyName.equals(FACET_ID)){ @@ -49,6 +75,9 @@ } //return IPortletConstants.LIBRARY_PROVIDED_BY_JBOSS_TOOLS; } + if (propertyName.equals(PORTLET_LIBRARY_PROVIDER_DELEGATE)) { + return libraryInstallDelegate; + } return super.getDefaultProperty(propertyName); } = @@ -59,8 +88,30 @@ propertyNames.add(IPortletConstants.ENABLE_IMPLEMENTATION_LIBRARY); propertyNames.add(IPortletConstants.USER_LIBRARY_NAME); propertyNames.add(IPortletConstants.IMPLEMENTATION_LIBRARY); + propertyNames.add(PORTLET_LIBRARY_PROVIDER_DELEGATE); = return propertyNames; } + = + @Override + public boolean propertySet(final String propertyName, + final Object propertyValue) { + if (propertyName.equals(FACETED_PROJECT_WORKING_COPY) + || propertyName.equals(FACET_VERSION)) { + initLibraryInstallDelegate(); + if (this.libraryInstallDelegate !=3D null && propertyName.equals(FACET_= VERSION)) { + final IProjectFacetVersion fv =3D (IProjectFacetVersion) getProperty(F= ACET_VERSION); + this.libraryInstallDelegate.setProjectFacetVersion(fv); + } + } = + return super.propertySet(propertyName, propertyValue); + } + + public IStatus validate(String name) { + if (name.equals(PORTLET_LIBRARY_PROVIDER_DELEGATE)) { + return ((LibraryInstallDelegate) getProperty(PORTLET_LIBRARY_PROVIDER_D= ELEGATE)).validate(); + } + return super.validate(name); + } } Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/= tools/portlet/core/internal/project/facet/PortletFacetInstallDelegate.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/internal/project/facet/PortletFacetInstallDelegate.java 2009-0= 9-09 23:59:43 UTC (rev 17508) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/internal/project/facet/PortletFacetInstallDelegate.java 2009-0= 9-10 00:27:18 UTC (rev 17509) @@ -16,11 +16,12 @@ import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.NullProgressMonitor; import org.eclipse.core.runtime.Path; import org.eclipse.jdt.core.IClasspathEntry; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jdt.core.JavaCore; -import org.eclipse.jdt.core.JavaModelException; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDel= egate; import org.eclipse.jst.j2ee.model.IModelProvider; import org.eclipse.wst.common.frameworks.datamodel.IDataModel; import org.eclipse.wst.common.project.facet.core.IDelegate; @@ -76,12 +77,15 @@ } } = - IJavaProject javaProject =3D JavaCore.create(project); = + /*IJavaProject javaProject =3D JavaCore.create(project); = boolean enableImplementationLibrary =3D config.getBooleanProperty(IPort= letConstants.ENABLE_IMPLEMENTATION_LIBRARY); if (enableImplementationLibrary) { setClasspath(monitor, javaProject, config); - } + }*/ = + //Configure libraries + ( (LibraryInstallDelegate) config.getProperty( IPortletConstants.PORTLE= T_LIBRARY_PROVIDER_DELEGATE ) ).execute( new NullProgressMonitor() ); + = createPortletXml(project, fv, config, monitor); = if (monitor !=3D null) { Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/too= ls/portlet/core/internal/project/facet/PortletLibraryValidator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/internal/project/facet/PortletLibraryValidator.java = (rev 0) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/internal/project/facet/PortletLibraryValidator.java 2009-09-10= 00:27:18 UTC (rev 17509) @@ -0,0 +1,23 @@ +package org.jboss.tools.portlet.core.internal.project.facet; + +import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.Status; +import org.eclipse.jst.common.project.facet.core.libprov.user.KeyClassesVa= lidator; +import org.eclipse.jst.common.project.facet.core.libprov.user.UserLibraryP= roviderInstallOperationConfig; +import org.jboss.tools.portlet.core.Messages; +import org.jboss.tools.portlet.core.PortletCoreActivator; + +public class PortletLibraryValidator extends KeyClassesValidator { + + @Override + public IStatus validate(UserLibraryProviderInstallOperationConfig config)= { + IStatus status =3D super.validate(config); + if (status.getSeverity() =3D=3D IStatus.OK) + return status; + = + String message =3D Messages.PortletLibraryValidator_MISSING_PORTLET_IMPL= EMENTATION_CLASSES; + return new Status( IStatus.ERROR, PortletCoreActivator.PLUGIN_ID, messag= e ); + + } + +} Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/= tools/portlet/core/internal/project/facet/PortletPostInstallListener.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/internal/project/facet/PortletPostInstallListener.java 2009-09= -09 23:59:43 UTC (rev 17508) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/internal/project/facet/PortletPostInstallListener.java 2009-09= -10 00:27:18 UTC (rev 17509) @@ -21,6 +21,8 @@ import org.eclipse.core.runtime.Path; import org.eclipse.core.runtime.preferences.IEclipsePreferences; import org.eclipse.core.runtime.preferences.IScopeContext; +import org.eclipse.jst.common.project.facet.core.libprov.ILibraryProvider; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDel= egate; import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveMani= fest; import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveMani= festImpl; import org.eclipse.jst.j2ee.commonarchivecore.internal.util.ArchiveUtil; @@ -36,16 +38,22 @@ import org.eclipse.wst.common.project.facet.core.IFacetedProject; import org.eclipse.wst.common.project.facet.core.IProjectFacet; import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion; +import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager; import org.eclipse.wst.common.project.facet.core.events.IFacetedProjectEve= nt; import org.eclipse.wst.common.project.facet.core.events.IFacetedProjectLis= tener; import org.eclipse.wst.common.project.facet.core.events.IProjectFacetActio= nEvent; +import org.eclipse.wst.server.core.IRuntime; +import org.jboss.ide.eclipse.as.core.server.IJBossServerConstants; +import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime; import org.jboss.tools.portlet.core.IPortletConstants; import org.jboss.tools.portlet.core.Messages; import org.jboss.tools.portlet.core.PortletCoreActivator; +import org.jboss.tools.portlet.core.libprov.JSFPortletbridgeRuntimeLibrary= ProviderInstallOperationConfig; = public class PortletPostInstallListener implements IFacetedProjectListener= { = - private static final String SEAM_FACET_ID =3D "jst.seam"; //$NON-NLS-1$ + private static final String JSFPORTLETBRIDGE_LIBRARY_PROVIDER =3D "jsfpor= tletbridge-library-provider"; //$NON-NLS-1$ + private static final IProjectFacet seamFacet =3D ProjectFacetsManager.get= ProjectFacet("jst.seam"); //$NON-NLS-1$ private static final IOverwriteQuery OVERWRITE_NONE_QUERY =3D new IOverwr= iteQuery() { public String queryOverwrite(String pathString) @@ -54,11 +62,12 @@ } }; private String portletbridgeRuntime; - private boolean richfacesCapabilities; - private boolean richfacesSelected; - private String richfacesType; + //private boolean richfacesCapabilities; + //private boolean richfacesSelected; + //private String richfacesType; private String richfacesRuntime; = + = public void handleEvent(IFacetedProjectEvent event) { if (event instanceof IProjectFacetActionEvent) { IProjectFacetActionEvent actionEvent =3D (IProjectFacetActionEvent) eve= nt; @@ -72,17 +81,14 @@ Set projectFacets =3D facetedProject .getProjectFacets(); boolean isJSFPortlet =3D false; - boolean isSeamProject =3D false; + boolean richfacesFromServerRuntime =3D false; + = for (IProjectFacetVersion projectFacetVersion : projectFacets) { IProjectFacet projectFacet =3D projectFacetVersion.getProjectFacet(); if (IPortletConstants.JSFPORTLET_FACET_ID.equals(projectFacet .getId())) { isJSFPortlet =3D true; } - if (SEAM_FACET_ID.equals(projectFacet.getId())) { - isSeamProject =3D true; - } - } if (!isJSFPortlet) return; @@ -91,26 +97,151 @@ IProjectFacetActionEvent actionEvent =3D (IProjectFacetActionEvent) eve= nt; IDataModel dataModel =3D (IDataModel) actionEvent.getActionConfig(); try { - portletbridgeRuntime =3D dataModel - .getStringProperty(IPortletConstants.PORTLET_BRIDGE_RUNTIME); - richfacesCapabilities =3D dataModel.getBooleanProperty(IPortletConstan= ts.RICHFACES_CAPABILITIES); - richfacesSelected =3D dataModel.getBooleanProperty(IPortletConstants.R= ICHFACES_LIBRARIES_SELECTED); - richfacesType =3D dataModel.getStringProperty(IPortletConstants.RICHFA= CES_LIBRARIES_TYPE); - richfacesRuntime =3D dataModel.getStringProperty(IPortletConstants.RIC= HFACES_RUNTIME); + LibraryInstallDelegate libraryDelegate =3D ( (LibraryInstallDelegate) = dataModel.getProperty( IPortletConstants.JSFPORTLET_LIBRARY_PROVIDER_DELEGA= TE ) ); + ILibraryProvider libraryProvider =3D libraryDelegate.getLibraryProvide= r(); + String providerId =3D libraryProvider.getId(); + if (JSFPORTLETBRIDGE_LIBRARY_PROVIDER.equals(providerId)) { + JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig libraryC= onfig =3D (JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig) li= braryDelegate.getLibraryProviderOperationConfig(libraryProvider); + portletbridgeRuntime =3D libraryConfig.getPortletbridgeHome(); + } else { + portletbridgeRuntime =3D null; + } + richfacesFromServerRuntime =3D "jsfportlet-library-provider".equals(pr= oviderId); //$NON-NLS-1$ + = + //richfacesCapabilities =3D dataModel.getBooleanProperty(IPortletConst= ants.RICHFACES_CAPABILITIES); + //richfacesSelected =3D dataModel.getBooleanProperty(IPortletConstants= .RICHFACES_LIBRARIES_SELECTED); + //richfacesType =3D dataModel.getStringProperty(IPortletConstants.RICH= FACES_LIBRARIES_TYPE); + //richfacesRuntime =3D dataModel.getStringProperty(IPortletConstants.R= ICHFACES_RUNTIME); } catch (Exception e) { //PortletCoreActivator.log(e); } } = - if (!richfacesCapabilities || !richfacesSelected) { + //if (!richfacesCapabilities || !richfacesSelected) { + // return; + //} + if (isJSFPortlet) { + if (portletbridgeRuntime !=3D null) { + addRichfacesFromPortletBridgeRuntime(facetedProject,portletbridgeRunti= me); + } = + else if (richfacesFromServerRuntime) { + addRichFacesFromServerRuntime(facetedProject); + } + //else { + // addRichfacesFromRichfacesRuntime(facetedProject,isSeamProject); + //} + } + } + + private void addRichFacesFromServerRuntime(IFacetedProject facetedProject= ) { + final boolean isSeamProject =3D facetedProject.hasProjectFacet(seamFacet= ); + if (isSeamProject) { return; } - if (isJSFPortlet) { - if (IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE.equals(richfa= cesType)) { - addRichfacesFromPortletBridgeRuntime(facetedProject,isSeamProject); - } else { - addRichfacesFromRichfacesRuntime(facetedProject,isSeamProject); + org.eclipse.wst.common.project.facet.core.runtime.IRuntime facetRuntime = =3D facetedProject.getPrimaryRuntime(); + if (facetRuntime =3D=3D null) { + return; + } + IRuntime runtime =3D PortletCoreActivator.getRuntime(facetRuntime); + if (runtime =3D=3D null) { + return; + } + IJBossServerRuntime jbossRuntime =3D (IJBossServerRuntime)runtime.loadAd= apter(IJBossServerRuntime.class, new NullProgressMonitor()); + if (jbossRuntime !=3D null) { + IPath jbossLocation =3D runtime.getLocation(); + IPath configPath =3D jbossLocation.append(IJBossServerConstants.SERVER)= .append(jbossRuntime.getJBossConfiguration()); + IPath portletLib =3D configPath.append(IPortletConstants.PORTLET_SAR_LI= B); + File libFile =3D portletLib.toFile(); + if (!libFile.exists()) { + portletLib =3D configPath.append(IPortletConstants.PORTLET_SAR_HA_LIB); + libFile =3D portletLib.toFile(); } + File richfacesLib =3D libFile; + if (!richfacesLib.exists()) { + PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Can= not_find_Richfaces_ibraries); + return; + } + if (!richfacesLib.isDirectory()) { + PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Can= not_find_Richfaces_ibraries); + return; + } + try { + IProject project =3D facetedProject.getProject(); + final IProject earProject =3D getEarProject(project, isSeamProject); + String[] fileList =3D richfacesLib.list(new FilenameFilter() { + + public boolean accept(File dir, String name) { + if (name.startsWith("richfaces-ui") && name.endsWith(".jar")) { //$N= ON-NLS-1$ //$NON-NLS-2$ + return true; + } + if (name.startsWith("richfaces-impl") && name.endsWith(".jar")) { //= $NON-NLS-1$ //$NON-NLS-2$ + return true; + } + if (earProject =3D=3D null) { + if (name.startsWith("richfaces-api") && name.endsWith(".jar")) { //= $NON-NLS-1$ //$NON-NLS-2$ + return true; + } + } + if (!isSeamProject) { + if (name.startsWith("portal")) { //$NON-NLS-1$ + return false; + } + if (name.startsWith("portletbridge")) { //$NON-NLS-1$ + return false; + } + return true; + } + return false; + } + + }); + List filesToImport =3D new ArrayList(); + for (int i =3D 0; i < fileList.length; i++) { + filesToImport.add(new File(richfacesLib, fileList[i])); + } + IVirtualComponent component =3D ComponentCore.createComponent(project); + IVirtualFolder rootFolder =3D component.getRootFolder(); + IContainer folder =3D rootFolder.getUnderlyingFolder(); + IContainer webinf =3D folder.getFolder(new Path(IPortletConstants.WEB_= INF_LIB)); + = + deleteOldRichfacesLibs(earProject, webinf); + + ImportOperation importOperation =3D new ImportOperation(webinf.getFull= Path(), richfacesLib, + FileSystemStructureProvider.INSTANCE, + PortletCoreActivator.OVERWRITE_ALL_QUERY, filesToImport); + importOperation.setCreateContainerStructure(false); + importOperation.run(new NullProgressMonitor()); + if (earProject !=3D null) { + fileList =3D richfacesLib.list(new FilenameFilter() { + + public boolean accept(File dir, String name) { + if (name.startsWith("richfaces-api") && name.endsWith(".jar")) { //= $NON-NLS-1$ //$NON-NLS-2$ + return true; + } + return false; + } + + }); + filesToImport =3D new ArrayList(); + for (int i =3D 0; i < fileList.length; i++) { + filesToImport.add(new File(richfacesLib, fileList[i])); + } + component =3D ComponentCore.createComponent(earProject); + rootFolder =3D component.getRootFolder(); + folder =3D rootFolder.getUnderlyingFolder(); + = + deleteOldRichFacesApi(folder); + + importOperation =3D new ImportOperation(folder.getFullPath(), richfac= esLib, + FileSystemStructureProvider.INSTANCE, + PortletCoreActivator.OVERWRITE_ALL_QUERY, filesToImport); + importOperation.setCreateContainerStructure(false); + importOperation.run(new NullProgressMonitor()); + updateEARLibraries(project,isSeamProject); + } + } catch (Exception e) { + PortletCoreActivator.log(e,Messages.JSFPortletFacetInstallDelegate_Err= or_loading_classpath_container); + } } } = @@ -229,7 +360,7 @@ } } = - private void addRichfacesFromPortletBridgeRuntime(IFacetedProject faceted= Project, boolean isSeamProject) { + private void addRichfacesFromPortletBridgeRuntime(IFacetedProject faceted= Project, String portletbridgeRuntime) { File portletbridgeHome =3D new File(portletbridgeRuntime); if (!portletbridgeHome.exists()) { PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Cann= ot_find_Portletbridge_Runtime); @@ -253,6 +384,7 @@ ZipFile zipFile =3D new ZipFile(richFacesPortletZip); ZipFileStructureProvider structureProvider =3D new ZipFileStructureProv= ider( zipFile ); + boolean isSeamProject =3D facetedProject.hasProjectFacet(seamFacet); List list =3D prepareList(zipFile, facetedProject, isSeamProj= ect); = IProject project =3D facetedProject.getProject(); Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/too= ls/portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperat= ion.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperation= .java (rev 0) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperation= .java 2009-09-10 00:27:18 UTC (rev 17509) @@ -0,0 +1,112 @@ +package org.jboss.tools.portlet.core.libprov; + +import java.io.File; +import java.io.FilenameFilter; +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.NullProgressMonitor; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOp= eration; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOp= erationConfig; +import org.eclipse.ui.wizards.datatransfer.FileSystemStructureProvider; +import org.eclipse.ui.wizards.datatransfer.ImportOperation; +import org.eclipse.wst.common.componentcore.ComponentCore; +import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; +import org.eclipse.wst.common.componentcore.resources.IVirtualFile; +import org.eclipse.wst.common.project.facet.core.IFacetedProjectBase; +import org.eclipse.wst.common.project.facet.core.IProjectFacet; +import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager; +import org.eclipse.wst.server.core.IRuntime; +import org.jboss.ide.eclipse.as.core.server.IJBossServerConstants; +import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime; +import org.jboss.tools.portlet.core.IPortletConstants; +import org.jboss.tools.portlet.core.Messages; +import org.jboss.tools.portlet.core.PortletCoreActivator; + +public class JSFPortletServerRuntimeLibraryProviderInstallOperation extends + LibraryProviderOperation { + + @Override + public void execute(LibraryProviderOperationConfig config, + IProgressMonitor monitor) throws CoreException { + IFacetedProjectBase facetedProject =3D config.getFacetedProject(); + IProjectFacet seamFacet =3D ProjectFacetsManager.getProjectFacet("jst.se= am"); //$NON-NLS-1$ + boolean hasSeamFacet =3D facetedProject.hasProjectFacet(seamFacet); + org.eclipse.wst.common.project.facet.core.runtime.IRuntime facetRuntime = =3D facetedProject.getPrimaryRuntime(); + IProject project =3D facetedProject.getProject(); + IRuntime runtime =3D PortletCoreActivator.getRuntime(facetRuntime); + IJBossServerRuntime jbossRuntime =3D (IJBossServerRuntime)runtime.loadAd= apter(IJBossServerRuntime.class, new NullProgressMonitor()); + if (jbossRuntime !=3D null) { + // JBoss Portal server + IPath jbossLocation =3D runtime.getLocation(); + IPath configPath =3D jbossLocation.append(IJBossServerConstants.SERVER)= .append(jbossRuntime.getJBossConfiguration()); + IPath portletLib =3D configPath.append(IPortletConstants.PORTLET_SAR_LI= B); + File portletLibFile =3D portletLib.toFile(); + String[] files =3D getPortletbridgeLibraries(portletLibFile, hasSeamFac= et); + if (files =3D=3D null) { + portletLib =3D configPath.append(IPortletConstants.PORTLET_SAR_HA_LIB); + portletLibFile =3D portletLib.toFile(); + files =3D getPortletbridgeLibraries(portletLibFile, hasSeamFacet); + = + } + if (files !=3D null) { + try { + List filesToImport =3D new ArrayList(); + + for (int i =3D 0; i < files.length; i++) { + filesToImport.add(new File(portletLibFile, files[i])); + } + IVirtualComponent component =3D ComponentCore + .createComponent(project); + IVirtualFile libVirtualFile =3D component.getRootFolder() + .getFile(IPortletConstants.WEB_INF_LIB); + + IFile folder =3D libVirtualFile.getUnderlyingFile(); + + File sourceFolder =3D new File(portletLib.toOSString()); + ImportOperation importOperation =3D new ImportOperation( + folder.getFullPath(), sourceFolder, + FileSystemStructureProvider.INSTANCE, + PortletCoreActivator.OVERWRITE_ALL_QUERY, + filesToImport); + importOperation.setCreateContainerStructure(false); + importOperation.run(monitor); + } catch (Exception e) { + PortletCoreActivator + .log(e, Messages.JSFPortletFacetInstallDelegate_Error_loading_classpa= th_container); + } + } + } + } + = + private String[] getPortletbridgeLibraries(File file, final boolean hasSe= amFacet) { + if (file !=3D null && file.isDirectory()) { + String[] list =3D file.list(new FilenameFilter() { + + public boolean accept(File dir, String name) { + if ("portletbridge-api.jar".equals(name) || //$NON-NLS-1$ + "portletbridge-impl.jar".equals(name)) { //$NON-NLS-1$ + return true; + } + if (!hasSeamFacet) { + if (name.startsWith("portal")) { //$NON-NLS-1$ + return false; + } else { + return true; + } + = + } + return false; + } + = + }); + return list; + } + return null; + } +} Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/too= ls/portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperat= ionConfig.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperation= Config.java (rev 0) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperation= Config.java 2009-09-10 00:27:18 UTC (rev 17509) @@ -0,0 +1,8 @@ +package org.jboss.tools.portlet.core.libprov; + +import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderIn= stallOperationConfig; + +public class JSFPortletServerRuntimeLibraryProviderInstallOperationConfig = extends + LibraryProviderInstallOperationConfig { + +} Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/too= ls/portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderUninstallOper= ation.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderUninstallOperati= on.java (rev 0) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderUninstallOperati= on.java 2009-09-10 00:27:18 UTC (rev 17509) @@ -0,0 +1,16 @@ +package org.jboss.tools.portlet.core.libprov; + +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOp= eration; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOp= erationConfig; + +public class JSFPortletServerRuntimeLibraryProviderUninstallOperation exte= nds LibraryProviderOperation { + + @Override + public void execute(LibraryProviderOperationConfig config, + IProgressMonitor monitor) throws CoreException { + = + } + +} Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/too= ls/portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperat= ion.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperation= .java (rev 0) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperation= .java 2009-09-10 00:27:18 UTC (rev 17509) @@ -0,0 +1,95 @@ +package org.jboss.tools.portlet.core.libprov; + +import java.io.File; +import java.io.FilenameFilter; +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOp= eration; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOp= erationConfig; +import org.eclipse.ui.wizards.datatransfer.FileSystemStructureProvider; +import org.eclipse.ui.wizards.datatransfer.ImportOperation; +import org.eclipse.wst.common.componentcore.ComponentCore; +import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; +import org.eclipse.wst.common.componentcore.resources.IVirtualFile; +import org.eclipse.wst.common.project.facet.core.FacetedProjectFramework; +import org.eclipse.wst.common.project.facet.core.IFacetedProjectBase; +import org.jboss.tools.portlet.core.IPortletConstants; +import org.jboss.tools.portlet.core.Messages; +import org.jboss.tools.portlet.core.PortletCoreActivator; +import org.osgi.service.prefs.BackingStoreException; +import org.osgi.service.prefs.Preferences; + +public class JSFPortletbridgeRuntimeLibraryProviderInstallOperation extends + LibraryProviderOperation { + + @Override + public void execute(LibraryProviderOperationConfig config, + IProgressMonitor monitor) throws CoreException { + IFacetedProjectBase facetedProject =3D config.getFacetedProject(); + IProject project =3D facetedProject.getProject(); + JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig portletbrid= geConfig =3D (JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig)= config; + String pbRuntime =3D portletbridgeConfig.getPortletbridgeHome(); + getPortletbridgeLibraries(monitor, project, pbRuntime); + = + try { + Preferences prefs =3D FacetedProjectFramework.getPreferences( config.ge= tProjectFacet() ); + prefs =3D prefs.node(IPortletConstants.PORTLET_BRIDGE_HOME); + prefs.put(IPortletConstants.PREFS_PORTLETBRIDGE_HOME, pbRuntime); + prefs.flush(); + } catch (BackingStoreException e) { + PortletCoreActivator.log(e); + } + } + + private void getPortletbridgeLibraries(IProgressMonitor monitor, + IProject project, String pbRuntime) { + if (pbRuntime !=3D null && pbRuntime.trim().length() > 0) { + pbRuntime =3D pbRuntime.trim(); + File pbFolder =3D new File(pbRuntime); + if (pbFolder.exists() && pbFolder.isDirectory()) { + String[] fileList =3D pbFolder.list(new FilenameFilter() { + + public boolean accept(File dir, String name) { + if (name.startsWith("portletbridge") || name.endsWith(".jar")) { //$= NON-NLS-1$ //$NON-NLS-2$ + return true; + } + = + return false; + } + + }); + + List filesToImport =3D new ArrayList(); + + for (int i =3D 0; i < fileList.length; i++) { + filesToImport.add(new File(pbRuntime, fileList[i])); + } + IVirtualComponent component =3D ComponentCore + .createComponent(project); + IVirtualFile libVirtualFile =3D component.getRootFolder() + .getFile(IPortletConstants.WEB_INF_LIB); + + IFile folder =3D libVirtualFile.getUnderlyingFile(); + + ImportOperation importOperation =3D new ImportOperation( + folder.getFullPath(), pbFolder, + FileSystemStructureProvider.INSTANCE, + PortletCoreActivator.OVERWRITE_ALL_QUERY, + filesToImport); + importOperation.setCreateContainerStructure(false); + try { + importOperation.run(monitor); + } catch (Exception e) { + PortletCoreActivator.log(e, Messages.JSFPortletFacetInstallDelegate_E= rror_loading_classpath_container); + } = + } + } + } + = + = +} Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/too= ls/portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperat= ionConfig.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperation= Config.java (rev 0) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperation= Config.java 2009-09-10 00:27:18 UTC (rev 17509) @@ -0,0 +1,108 @@ +package org.jboss.tools.portlet.core.libprov; + +import java.io.File; +import java.io.FilenameFilter; + +import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.Status; +import org.eclipse.jst.common.project.facet.core.libprov.ILibraryProvider; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderIn= stallOperationConfig; +import org.eclipse.wst.common.project.facet.core.FacetedProjectFramework; +import org.eclipse.wst.common.project.facet.core.IFacetedProjectBase; +import org.eclipse.wst.common.project.facet.core.IProjectFacet; +import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion; +import org.jboss.tools.portlet.core.IPortletConstants; +import org.jboss.tools.portlet.core.Messages; +import org.jboss.tools.portlet.core.PortletCoreActivator; +import org.osgi.service.prefs.BackingStoreException; +import org.osgi.service.prefs.Preferences; + +public class JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig = extends + LibraryProviderInstallOperationConfig { + + private String portletbridgeHome; + + @Override + public synchronized IStatus validate() { + IStatus status =3D super.validate(); + if (!status.isOK()) { + return status; + } + if (portletbridgeHome =3D=3D null) { + return getInvalidPortletbridgeRuntime(); + } + portletbridgeHome =3D portletbridgeHome.trim(); + if (portletbridgeHome.length() <=3D 0) { + status =3D new Status( IStatus.ERROR, PortletCoreActivator.PLUGIN_ID, M= essages.JSFPortletFacetInstallPage_Portletbridge_Runtime_directory_is_requi= red ); + return status; + } + File folder =3D new File(portletbridgeHome); + if (!folder.exists() || !folder.isDirectory()) { + return getInvalidPortletbridgeRuntime(); + } + String[] fileList =3D folder.list(new FilenameFilter() { + + public boolean accept(File dir, String name) { + if (name.startsWith("portletbridge") || name.endsWith(".jar")) { //$NO= N-NLS-1$ //$NON-NLS-2$ + return true; + } + return false; + } + + }); + if (fileList.length < 2) { + return getInvalidPortletbridgeRuntime(); + } + return Status.OK_STATUS; + } + + private IStatus getInvalidPortletbridgeRuntime() { + IStatus status =3D new Status( IStatus.ERROR, PortletCoreActivator.PLUGI= N_ID, Messages.JSFPortletFacetInstallPage_Invalid_Portletbridge_Runtime_dir= ectory ); + return status; + } + + public String getPortletbridgeHome() { + return portletbridgeHome; + } + + public void setPortletbridgeHome(String portletbridgeHome) { + String oldValue =3D this.portletbridgeHome; + this.portletbridgeHome =3D portletbridgeHome; + notifyListeners(IPortletConstants.PORTLETBRIDGE_HOME, oldValue, portletb= ridgeHome); + updatePreferences(); + } + = + @Override + public void init(IFacetedProjectBase fpj, IProjectFacetVersion fv, + ILibraryProvider provider) { + super.init(fpj, fv, provider); + reset(); + } + + @Override + public void reset() { + IProjectFacet f =3D getProjectFacet(); + try { + Preferences prefs =3D FacetedProjectFramework.getPreferences( f ); + prefs =3D prefs.node(IPortletConstants.PORTLET_BRIDGE_HOME); + if( prefs.nodeExists( IPortletConstants.PREFS_PORTLETBRIDGE_HOME ) ) { + portletbridgeHome =3D prefs.get(IPortletConstants.PREFS_PORTLETBRIDGE_= HOME, null); + } + } catch (BackingStoreException e) { + PortletCoreActivator.log(e); + } + } + + private void updatePreferences() { + IProjectFacet f =3D getProjectFacet(); + try { + Preferences prefs =3D FacetedProjectFramework.getPreferences( f ); + prefs =3D prefs.node(IPortletConstants.PORTLET_BRIDGE_HOME); + prefs.put(IPortletConstants.PREFS_PORTLETBRIDGE_HOME, portletbridgeHome= ); + } catch (BackingStoreException e) { + PortletCoreActivator.log(e); + } + } + = + = +} Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/too= ls/portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderUninstallOper= ation.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderUninstallOperati= on.java (rev 0) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderUninstallOperati= on.java 2009-09-10 00:27:18 UTC (rev 17509) @@ -0,0 +1,16 @@ +package org.jboss.tools.portlet.core.libprov; + +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOp= eration; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOp= erationConfig; + +public class JSFPortletbridgeRuntimeLibraryProviderUninstallOperation exte= nds LibraryProviderOperation { + + @Override + public void execute(LibraryProviderOperationConfig config, + IProgressMonitor monitor) throws CoreException { + = + } + +} Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/too= ls/portlet/core/libprov/PortletServerRuntimeLibraryProviderInstallOperation= .java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/PortletServerRuntimeLibraryProviderInstallOperation.ja= va (rev 0) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/PortletServerRuntimeLibraryProviderInstallOperation.ja= va 2009-09-10 00:27:18 UTC (rev 17509) @@ -0,0 +1,41 @@ +package org.jboss.tools.portlet.core.libprov; + +import org.eclipse.core.resources.IProject; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.Path; +import org.eclipse.jdt.core.IClasspathEntry; +import org.eclipse.jdt.core.IJavaProject; +import org.eclipse.jdt.core.JavaCore; +import org.eclipse.jst.common.project.facet.core.libprov.ILibraryProvider; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOp= eration; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOp= erationConfig; +import org.eclipse.wst.common.project.facet.core.IFacetedProjectBase; +import org.jboss.tools.portlet.core.IPortletConstants; + +public class PortletServerRuntimeLibraryProviderInstallOperation extends + LibraryProviderOperation { + + @Override + public void execute(LibraryProviderOperationConfig config, + IProgressMonitor monitor) throws CoreException { + IFacetedProjectBase facetedProject =3D config.getFacetedProject(); + IProject project =3D facetedProject.getProject(); + = + IJavaProject javaProject =3D JavaCore.create(project); = + IPath containerPath =3D new Path(IPortletConstants.PORTLET_RUNTIME_CONTA= INER_ID); + setContainerPath(monitor, javaProject, containerPath); + = + } + + private void setContainerPath(IProgressMonitor monitor, IJavaProject java= Project,IPath containerPath) throws CoreException { + IClasspathEntry entry =3D JavaCore.newContainerEntry(containerPath, true= ); + IClasspathEntry[] entries =3D javaProject.getRawClasspath(); + IClasspathEntry[] newEntries =3D new IClasspathEntry[entries.length + 1]; + System.arraycopy( entries, 0, newEntries, 0, entries.length ); + newEntries[entries.length] =3D entry; + javaProject.setRawClasspath(newEntries, monitor); + } + = +} Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/too= ls/portlet/core/libprov/PortletServerRuntimeLibraryProviderInstallOperation= Config.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/PortletServerRuntimeLibraryProviderInstallOperationCon= fig.java (rev 0) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/PortletServerRuntimeLibraryProviderInstallOperationCon= fig.java 2009-09-10 00:27:18 UTC (rev 17509) @@ -0,0 +1,8 @@ +package org.jboss.tools.portlet.core.libprov; + +import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderIn= stallOperationConfig; + +public class PortletServerRuntimeLibraryProviderInstallOperationConfig ext= ends + LibraryProviderInstallOperationConfig { + +} Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/too= ls/portlet/core/libprov/PortletServerRuntimeLibraryProviderUninstallOperati= on.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/PortletServerRuntimeLibraryProviderUninstallOperation.= java (rev 0) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/PortletServerRuntimeLibraryProviderUninstallOperation.= java 2009-09-10 00:27:18 UTC (rev 17509) @@ -0,0 +1,46 @@ +package org.jboss.tools.portlet.core.libprov; + +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.core.resources.IProject; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.Path; +import org.eclipse.jdt.core.IClasspathEntry; +import org.eclipse.jdt.core.IJavaProject; +import org.eclipse.jdt.core.JavaCore; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOp= eration; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderOp= erationConfig; +import org.eclipse.wst.common.project.facet.core.IFacetedProjectBase; +import org.jboss.tools.portlet.core.IPortletConstants; + +public class PortletServerRuntimeLibraryProviderUninstallOperation extends= LibraryProviderOperation { + + @Override + public void execute(LibraryProviderOperationConfig config, + IProgressMonitor monitor) throws CoreException { + IFacetedProjectBase facetedProject =3D config.getFacetedProject(); + IProject project =3D facetedProject.getProject(); + = + IJavaProject javaProject =3D JavaCore.create(project); = + IPath containerPath =3D new Path(IPortletConstants.PORTLET_RUNTIME_CONTA= INER_ID); + List list =3D new ArrayList(); + IClasspathEntry[] entries =3D javaProject.getRawClasspath(); + boolean changed =3D false; + for (int i =3D 0; i < entries.length; i++) { + IClasspathEntry entry =3D entries[i]; + if (!entry.getPath().equals(containerPath)) { + list.add(entry); + } else { + changed =3D true; + } + } + if (changed) { + IClasspathEntry[] newEntries =3D list.toArray(new IClasspathEntry[0]); + javaProject.setRawClasspath(newEntries, monitor); + } + } + +} Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/too= ls/portlet/core/libprov/RuntimeLibraryProviderPropertyTester.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/RuntimeLibraryProviderPropertyTester.java = (rev 0) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/RuntimeLibraryProviderPropertyTester.java 2009-09-10 0= 0:27:18 UTC (rev 17509) @@ -0,0 +1,36 @@ +package org.jboss.tools.portlet.core.libprov; + +import java.io.File; + +import org.eclipse.core.expressions.PropertyTester; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.jst.common.project.facet.core.libprov.EnablementExpress= ionContext; +import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities; +import org.eclipse.wst.common.project.facet.core.IFacetedProjectBase; +import org.eclipse.wst.server.core.IRuntime; +import org.eclipse.wst.server.core.internal.facets.FacetUtil; +import org.jboss.tools.portlet.core.internal.PortletRuntimeComponentProvid= er; + + +public final class RuntimeLibraryProviderPropertyTester extends PropertyTe= ster { + = + public boolean test(final Object receiver, final String property, + final Object[] args, final Object value) { + if (receiver instanceof EnablementExpressionContext) { + EnablementExpressionContext context =3D (EnablementExpressionContext) r= eceiver; + IFacetedProjectBase facetedProject =3D context.getFacetedProject(); + org.eclipse.wst.common.project.facet.core.runtime.IRuntime primaryRunti= me =3D facetedProject.getPrimaryRuntime(); + if (primaryRuntime =3D=3D null) { + return false; + } + IRuntime runtime =3D FacetUtil.getRuntime(primaryRuntime); + if (runtime !=3D null) { + File location =3D runtime.getLocation().toFile(); + return PortletRuntimeComponentProvider.isPortalPresent(location, runti= me, property); + } + } + return false; + } + +} Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/= tools/portlet/core/messages.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/messages.properties 2009-09-09 23:59:43 UTC (rev 17508) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/messages.properties 2009-09-10 00:27:18 UTC (rev 17509) @@ -21,6 +21,7 @@ PortletFacetInstallDelegate_The_web_xml_file_is_not_updateable=3DThe web.x= ml file is not updateable PortletFacetInstallDelegate_User_library_name_is_invalid=3DUser library na= me is invalid. PortletPostInstallListener_Cannot_find_Portletbridge_Runtime=3DCannot find= Portletbridge Runtime. +PortletPostInstallListener_Cannot_find_Richfaces_ibraries=3DCannot find Ri= chfaces libraries. PortletPostInstallListener_Cannot_find_Richfaces_Runtime=3DCannot find Ric= hfaces Runtime. PortletPostInstallListener_Cannot_find_the_examples_directory=3DCannot fin= d the examples directory. PortletPostInstallListener_Cannot_find_the_RichFacesPortlet_war_file=3DCan= not find the RichFacesPortlet.war file. @@ -31,4 +32,8 @@ SeamPortletFacetInstallDelegate_Missing_configuration=3DInternal Error cre= ating JBoss Seam Portlet Facet. Missing configuration. SeamPortletFacetInstallDelegate_The_web_xml_file_is_not_updateable=3DThe w= eb.xml file is not updateable Libraries_provided_by_portletbridge=3DLibraries provided by portletbridge = distribution -Libraries_provided_by_richfaces=3DLibraries provided by richfaces distribu= tion \ No newline at end of file +Libraries_provided_by_richfaces=3DLibraries provided by richfaces distribu= tion +PortletLibraryValidator_MISSING_PORTLET_IMPLEMENTATION_CLASSES=3DSelected = libraries are missing key Portlet implementation classes (javax.portlet.fac= es.GenericFacesPortlet) +JSFPortletLibraryValidator_MISSING_JSFPORTLET_IMPLEMENTATION_CLASSES=3DSel= ected libraries are missing key JSF Portlet implementation classes (javax.p= ortlet.GenericPortlet) +JSFPortletFacetInstallPage_Portletbridge_Runtime_directory_is_required=3DP= ortletbridge Runtime directory is required. +JSFPortletFacetInstallPage_Invalid_Portletbridge_Runtime_directory=3DInval= id Portletbridge Runtime directory. Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/META-INF/MANIFES= T.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.ui/META-INF/MANIFEST.MF 2= 009-09-09 23:59:43 UTC (rev 17508) +++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/META-INF/MANIFEST.MF 2= 009-09-10 00:27:18 UTC (rev 17509) @@ -8,6 +8,7 @@ Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime, org.eclipse.wst.common.project.facet.ui, + org.eclipse.jst.common.project.facet.ui, org.eclipse.wst.common.frameworks.ui, org.eclipse.core.resources, org.eclipse.jst.servlet.ui, Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.ui/plugin.xml 2009-09-09 = 23:59:43 UTC (rev 17508) +++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/plugin.xml 2009-09-10 = 00:27:18 UTC (rev 17509) @@ -61,6 +61,24 @@ class=3D"org.jboss.tools.portlet.ui.internal.preferences.JBossP= ortletPreferencePage" id=3D"org.jboss.tools.portlet.core.ui.JBossPortletPreferencePag= e" name=3D"%JBoss_Portlet"/> - - = + + = + + + = + = + + + = + = + + + + = Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/to= ols/portlet/ui/Messages.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/Messages.java 2009-09-09 23:59:43 UTC (rev 17508) +++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/Messages.java 2009-09-10 00:27:18 UTC (rev 17509) @@ -4,6 +4,9 @@ = public class Messages extends NLS { private static final String BUNDLE_NAME =3D "org.jboss.tools.portlet.ui.m= essages"; //$NON-NLS-1$ + public static String JSFPortletServerRuntimeProviderInstallPanel_The_targ= eted_runtime_contains_a_portlet_library; + public static String JSFPortletFacetInstallPage_JSFPortletImplementationL= ibrariesFrame; + public static String PortletFacetInstallPage_PortletImplementationLibrari= esFrame; public static String JBossPortletPreferencePage_Check_Runtimes_for_Portle= t_Components; public static String AddPortletWizardPage_Edit; public static String AddPortletWizardPage_Help; @@ -55,10 +58,11 @@ public static String JSFPortletFacetInstallPage_Select_RichFaces_Runtime; public static String PortletFacetInstallPage_Add; public static String PortletFacetInstallPage_Add_JBoss_Portlet_capabiliti= es_to_this_Web_Project; - public static String PortletFacetInstallPage_Enable_implementation_librar= y; + //public static String PortletFacetInstallPage_Enable_implementation_libr= ary; public static String PortletFacetInstallPage_JBoss_Portlet_Capabilities; public static String PortletFacetInstallPage_User_Library; - public static String PortletFacetInstallPage_You_have_to_choose_an_user_l= ibrary; + //public static String PortletFacetInstallPage_You_have_to_choose_an_user= _library; + public static String PortletServerRuntimeProviderInstallPanel_The_targete= d_runtime_contains_a_portlet_library; public static String PortletUIActivator_The_portlet_xml_file_doesnt_exist; static { // initialize resource bundle Added: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools= /portlet/ui/internal/libprov/JSFPortletServerRuntimeProviderInstallPanel.ja= va =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/libprov/JSFPortletServerRuntimeProviderInstallPanel.java = (rev 0) +++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/libprov/JSFPortletServerRuntimeProviderInstallPanel.java = 2009-09-10 00:27:18 UTC (rev 17509) @@ -0,0 +1,29 @@ +package org.jboss.tools.portlet.ui.internal.libprov; + +import static org.eclipse.wst.common.project.facet.ui.internal.util.GridLa= youtUtil.gl; + +import org.eclipse.jst.common.project.facet.ui.libprov.LibraryProviderOper= ationPanel; +import org.eclipse.swt.SWT; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Control; +import org.eclipse.swt.widgets.Link; +import org.jboss.tools.portlet.ui.Messages; + +public class JSFPortletServerRuntimeProviderInstallPanel extends LibraryPr= oviderOperationPanel { + + @Override + public Control createControl( final Composite parent ) + { + final Composite composite =3D new Composite( parent, SWT.NONE ); + composite.setLayout( gl( 1, 0, 0 ) ); + = + final Link link =3D new Link( composite, SWT.WRAP ); + final GridData data =3D new GridData( SWT.FILL, SWT.BEGINNING, tru= e, false ); + data.widthHint =3D 300; + link.setLayoutData( data ); + link.setText( Messages.JSFPortletServerRuntimeProviderInstallPanel= _The_targeted_runtime_contains_a_portlet_library ); + = + return composite; + } +} Added: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools= /portlet/ui/internal/libprov/JSFPortletbridgeRuntimeProviderInstallPanel.ja= va =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/libprov/JSFPortletbridgeRuntimeProviderInstallPanel.java = (rev 0) +++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/libprov/JSFPortletbridgeRuntimeProviderInstallPanel.java = 2009-09-10 00:27:18 UTC (rev 17509) @@ -0,0 +1,118 @@ +package org.jboss.tools.portlet.ui.internal.libprov; + +import java.io.File; +import java.io.FilenameFilter; + +import org.eclipse.jface.dialogs.IDialogSettings; +import org.eclipse.jst.common.project.facet.ui.libprov.LibraryProviderOper= ationPanel; +import org.eclipse.swt.SWT; +import org.eclipse.swt.events.ModifyEvent; +import org.eclipse.swt.events.ModifyListener; +import org.eclipse.swt.events.SelectionAdapter; +import org.eclipse.swt.events.SelectionEvent; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Button; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Control; +import org.eclipse.swt.widgets.DirectoryDialog; +import org.eclipse.swt.widgets.Display; +import org.eclipse.swt.widgets.Group; +import org.eclipse.swt.widgets.Link; +import org.eclipse.swt.widgets.Shell; +import org.eclipse.swt.widgets.Text; +import org.jboss.tools.portlet.core.IPortletConstants; +import org.jboss.tools.portlet.core.libprov.JSFPortletbridgeRuntimeLibrary= ProviderInstallOperationConfig; +import org.jboss.tools.portlet.ui.Messages; +import org.jboss.tools.portlet.ui.PortletUIActivator; + +public class JSFPortletbridgeRuntimeProviderInstallPanel extends LibraryPr= oviderOperationPanel { + + @Override + public Control createControl( final Composite parent ) + { + final Composite composite =3D new Composite( parent, SWT.NONE ); + final GridLayout layout =3D new GridLayout( 1, false ); + + layout.marginWidth =3D 0; + layout.marginHeight =3D 0; + composite.setLayout( layout ); + addPortletBridgeGroup(composite); +// final Link link =3D new Link( composite, SWT.WRAP ); +// final GridData data =3D new GridData( SWT.FILL, SWT.BEGINNING, t= rue, false ); +// data.widthHint =3D 300; +// link.setLayoutData( data ); +// link.setText( Messages.JSFPortletServerRuntimeProviderInstallPan= el_The_targeted_runtime_contains_a_portlet_library ); +// = + return composite; + } + = + private void addPortletBridgeGroup(Composite composite) { + GridData gd; + Group portletBridgeGroup =3D new Group(composite, SWT.NONE); + portletBridgeGroup.setText(Messages.JSFPortletFacetInstallPage_Portletbr= idge_Runtime); + portletBridgeGroup.setLayout(new GridLayout(2, false)); + gd =3D new GridData(GridData.FILL_HORIZONTAL); + portletBridgeGroup.setLayoutData(gd); + = + final Text folderText =3D new Text(portletBridgeGroup, SWT.SINGLE | SWT.= BORDER); + folderText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); + = + final JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig confi= g =3D (JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig) getOpe= rationConfig(); + = + folderText.addModifyListener(new ModifyListener() { + = + public void modifyText(ModifyEvent e) { + config.setPortletbridgeHome(folderText.getText()); + IDialogSettings section =3D getPortletBridgeSection(); + section.put(IPortletConstants.PORTLET_BRIDGE_HOME, folderText.getText(= )); + } + }); + String portletbridgeRuntime =3D config.getPortletbridgeHome(); + if (portletbridgeRuntime =3D=3D null) { + IDialogSettings section =3D getPortletBridgeSection(); + portletbridgeRuntime =3D section.get(IPortletConstants.PORTLET_BRIDGE_H= OME); + if (portletbridgeRuntime =3D=3D null){ + portletbridgeRuntime =3D ""; //$NON-NLS-1$ + } + config.setPortletbridgeHome(portletbridgeRuntime); + } + folderText.setText(portletbridgeRuntime); + = + Button folderButton =3D new Button(portletBridgeGroup, SWT.PUSH); + folderButton.setText(Messages.JSFPortletFacetInstallPage_Browse); + folderButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); + folderButton.addSelectionListener(new SelectionAdapter() { + public void widgetSelected(SelectionEvent e) { + handleFolderButtonPressed(folderText); + } + + }); + } + + private IDialogSettings getPortletBridgeSection() { + IDialogSettings dialogSettings =3D PortletUIActivator.getDefault().getDi= alogSettings(); + IDialogSettings section =3D dialogSettings.getSection(IPortletConstants.= PORTLET_BRIDGE_HOME); + if (section =3D=3D null) { + section =3D dialogSettings.addNewSection(IPortletConstants.PORTLET_BRID= GE_HOME); + } + return section; + } + = + private void handleFolderButtonPressed(Text folderText) { + String lastPath =3D folderText.getText(); + DirectoryDialog dialog =3D new DirectoryDialog(getShell(), SWT.MULTI); + dialog.setText(Messages.JSFPortletFacetInstallPage_Select_Portletbridge_= Runtime); + dialog.setFilterPath(lastPath); + String res =3D dialog.open(); + if (res =3D=3D null) { + return; + } + String newPath =3D dialog.getFilterPath(); + folderText.setText(newPath); + } + + private Shell getShell() { + return Display.getCurrent().getActiveShell(); + } +} Added: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools= /portlet/ui/internal/libprov/PortletServerRuntimeProviderInstallPanel.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/libprov/PortletServerRuntimeProviderInstallPanel.java = (rev 0) +++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/libprov/PortletServerRuntimeProviderInstallPanel.java 200= 9-09-10 00:27:18 UTC (rev 17509) @@ -0,0 +1,29 @@ +package org.jboss.tools.portlet.ui.internal.libprov; + +import static org.eclipse.wst.common.project.facet.ui.internal.util.GridLa= youtUtil.gl; + +import org.eclipse.jst.common.project.facet.ui.libprov.LibraryProviderOper= ationPanel; +import org.eclipse.swt.SWT; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Control; +import org.eclipse.swt.widgets.Link; +import org.jboss.tools.portlet.ui.Messages; + +public class PortletServerRuntimeProviderInstallPanel extends LibraryProvi= derOperationPanel { + + @Override + public Control createControl( final Composite parent ) + { + final Composite composite =3D new Composite( parent, SWT.NONE ); + composite.setLayout( gl( 1, 0, 0 ) ); + = + final Link link =3D new Link( composite, SWT.WRAP ); + final GridData data =3D new GridData( SWT.FILL, SWT.BEGINNING, tru= e, false ); + data.widthHint =3D 300; + link.setLayoutData( data ); + link.setText( Messages.PortletServerRuntimeProviderInstallPanel_Th= e_targeted_runtime_contains_a_portlet_library ); + = + return composite; + } +} Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/to= ols/portlet/ui/internal/project/facet/JSFPortletFacetInstallPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/project/facet/JSFPortletFacetInstallPage.java 2009-09-09 = 23:59:43 UTC (rev 17508) +++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/project/facet/JSFPortletFacetInstallPage.java 2009-09-10 = 00:27:18 UTC (rev 17509) @@ -8,6 +8,8 @@ import org.eclipse.core.runtime.NullProgressMonitor; import org.eclipse.jdt.core.JavaCore; import org.eclipse.jface.dialogs.IDialogSettings; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDel= egate; +import org.eclipse.jst.common.project.facet.ui.libprov.LibraryProviderFram= eworkUi; import org.eclipse.swt.SWT; import org.eclipse.swt.events.ModifyEvent; import org.eclipse.swt.events.ModifyListener; @@ -18,6 +20,7 @@ import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Combo; import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.DirectoryDialog; import org.eclipse.swt.widgets.Group; import org.eclipse.swt.widgets.Shell; @@ -25,14 +28,19 @@ import org.eclipse.ui.PlatformUI; import org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog; import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDat= aModelProperties; +import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelProvid= er; +import org.eclipse.wst.common.frameworks.datamodel.DataModelEvent; +import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory; import org.eclipse.wst.common.frameworks.datamodel.IDataModel; +import org.eclipse.wst.common.frameworks.datamodel.IDataModelListener; import org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelSy= nchHelper; +import org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWi= zardPage; import org.eclipse.wst.common.project.facet.core.IFacetedProjectWorkingCop= y; import org.eclipse.wst.common.project.facet.core.IProjectFacet; import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion; -import org.eclipse.wst.common.project.facet.ui.AbstractFacetWizardPage; +import org.eclipse.wst.common.project.facet.ui.IFacetWizardPage; +import org.eclipse.wst.common.project.facet.ui.IWizardContext; import org.eclipse.wst.server.core.IRuntime; -import org.eclipse.wst.server.core.ServerCore; import org.jboss.ide.eclipse.as.core.server.IJBossServerConstants; import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime; import org.jboss.tools.portlet.core.IPortletConstants; @@ -43,15 +51,14 @@ /** * @author snjeza */ -public class JSFPortletFacetInstallPage extends AbstractFacetWizardPage { +public class JSFPortletFacetInstallPage extends DataModelWizardPage implem= ents IFacetWizardPage { = + private static final Object PORTLETBRIDGE_LIBRARY_PROVIDER =3D "jsfportle= tbridge-library-provider"; //$NON-NLS-1$ private IDialogSettings dialogSettings; - private IDataModel model; private IDialogSettings jsfSection; private boolean deployJars; private String portletbridgeRuntime; private Text folderText; - private DataModelSynchHelper synchHelper; private Button folderButton; private Button deployButton; private Combo portletBridgeLibraryCombo; @@ -59,7 +66,7 @@ private String userLibraryName; private Button add; private String implementationLibrary; - private Button addRichFacesCapabilities; + //private Button addRichFacesCapabilities; private boolean hasSeamFacet; private Button addRichFacesLibraries; private Combo richFacesLibraryCombo; @@ -69,7 +76,8 @@ private boolean richFacesLibrariesSelected; = public JSFPortletFacetInstallPage() { - super("JSFPortletProjectConfigurationWizardPage"); //$NON-NLS-1$ + super(DataModelFactory.createDataModel(new AbstractDataModelProvider() { + }), "jboss.jsfportal.facet.install.page"); //$NON-NLS-1$ setTitle(Messages.JSFPortletFacetInstallPage_JBoss_JSF_Portlet_Capabilit= ies); setDescription(Messages.JSFPortletFacetInstallPage_Add_JBoss_JSF_Portlet= _capabilities_to_this_Web_Project); // ImageDescriptor imageDesc =3D getDefaultPageImageDescriptor( ); @@ -122,14 +130,21 @@ = } = - public void createControl(Composite parent) { + protected Composite createTopLevelComposite(Composite parent) { initializeDialogUnits(parent); Composite composite =3D new Composite(parent, SWT.NONE); composite.setLayout(new GridLayout(1, false)); + // createButton(composite); + LibraryInstallDelegate librariesInstallDelegate=3D (LibraryInstallDelega= te) getDataModel().getProperty( IPortletConstants.JSFPORTLET_LIBRARY_PROVID= ER_DELEGATE ); + Control librariesComposite=3D LibraryProviderFrameworkUi.createInstallLi= braryPanel( composite, librariesInstallDelegate, + Messages.JSFP= ortletFacetInstallPage_JSFPortletImplementationLibrariesFrame ); + GridData gd =3D new GridData( GridData.FILL_HORIZONTAL ); + librariesComposite.setLayoutData( gd ); + = synchHelper =3D new DataModelSynchHelper(model); - addFolderGroup(composite); - // createButton(composite); - setControl(composite); + //addFolderGroup(composite); + = + return composite; } = private void createButton(Composite composite) { @@ -147,64 +162,61 @@ }); } = - public void setConfig(Object config) { - this.model =3D (IDataModel) config; - } - private void addFolderGroup(Composite composite) { - portletBridgeLibraryCombo =3D new Combo(composite, SWT.READ_ONLY); - GridData gd =3D new GridData(GridData.FILL_HORIZONTAL); - portletBridgeLibraryCombo.setLayoutData(gd); - portletBridgeLibraryCombo.addSelectionListener(new SelectionAdapter() { - - @Override - public void widgetSelected(SelectionEvent e) { - boolean enabled =3D IPortletConstants.USER_LIBRARY - .equals(portletBridgeLibraryCombo.getText()); - userLibraries.setEnabled(enabled); - add.setEnabled(enabled); - - enabled =3D IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE.equa= ls(portletBridgeLibraryCombo.getText()); - folderText.setEnabled(enabled); - folderButton.setEnabled(enabled); - model.setProperty(IPortletConstants.IMPLEMENTATION_LIBRARY, - portletBridgeLibraryCombo.getText()); - model.setProperty(IPortletConstants.PORTLET_BRIDGE_RUNTIME,folderText.= getText().trim()); - model.setProperty(IPortletConstants.USER_LIBRARY_NAME,userLibraries.ge= tText()); - if (IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE.equals(portl= etBridgeLibraryCombo.getText())) { - richFacesLibraryCombo.removeAll(); - richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_POR= TLETBRIDGE); - richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_RIC= HFACES); - richFacesLibraryCombo.select(0); - } else { - richFacesLibraryCombo.removeAll(); - richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_RIC= HFACES); - richFacesLibraryCombo.select(0); - } - validatePage(); - } - - }); +// portletBridgeLibraryCombo =3D new Combo(composite, SWT.READ_ONLY); +// GridData gd =3D new GridData(GridData.FILL_HORIZONTAL); +// portletBridgeLibraryCombo.setLayoutData(gd); +// portletBridgeLibraryCombo.addSelectionListener(new SelectionAdapter() { +// +// @Override +// public void widgetSelected(SelectionEvent e) { +// boolean enabled =3D IPortletConstants.USER_LIBRARY +// .equals(portletBridgeLibraryCombo.getText()); +// userLibraries.setEnabled(enabled); +// add.setEnabled(enabled); +// +// enabled =3D IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE.eq= uals(portletBridgeLibraryCombo.getText()); +// folderText.setEnabled(enabled); +// folderButton.setEnabled(enabled); +// model.setProperty(IPortletConstants.IMPLEMENTATION_LIBRARY, +// portletBridgeLibraryCombo.getText()); +// model.setProperty(IPortletConstants.PORTLET_BRIDGE_RUNTIME,folderTex= t.getText().trim()); +// model.setProperty(IPortletConstants.USER_LIBRARY_NAME,userLibraries.= getText()); +// if (IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE.equals(por= tletBridgeLibraryCombo.getText())) { +// richFacesLibraryCombo.removeAll(); +// richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_P= ORTLETBRIDGE); +// richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_R= ICHFACES); +// richFacesLibraryCombo.select(0); +// } else { +// richFacesLibraryCombo.removeAll(); +// richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_R= ICHFACES); +// richFacesLibraryCombo.select(0); +// } +// validatePage(); +// } +// +// }); +// = +// if (portletBridgeLibrariesExistOnServer()) { +// portletBridgeLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY= _SERVER_RUNTIME); +// } +// portletBridgeLibraryCombo.add(IPortletConstants.USER_LIBRARY); +// = +// addUserLibraryGroup(composite); +// = +// portletBridgeLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_= PORTLETBRIDGE); +// = +// addPortletBridgeGroup(composite); +// = +// portletBridgeLibraryCombo.setText(implementationLibrary); +// = +// synchHelper.synchCombo(portletBridgeLibraryCombo, IPortletConstants.IM= PLEMENTATION_LIBRARY, null); +// = = - if (portletBridgeLibrariesExistOnServer()) { - portletBridgeLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_S= ERVER_RUNTIME); - } - portletBridgeLibraryCombo.add(IPortletConstants.USER_LIBRARY); - = - addUserLibraryGroup(composite); - = - portletBridgeLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_PO= RTLETBRIDGE); - = - addPortletBridgeGroup(composite); - = - portletBridgeLibraryCombo.setText(implementationLibrary); - = - synchHelper.synchCombo(portletBridgeLibraryCombo, IPortletConstants.IMPL= EMENTATION_LIBRARY, null); - = Group richfacesGroup =3D new Group(composite, SWT.NONE); richfacesGroup.setLayout(new GridLayout(2, false)); richfacesGroup.setText(Messages.JSFPortletFacetInstallPage_Richfaces_Cap= abilities); - gd =3D new GridData(GridData.FILL_HORIZONTAL); + GridData gd =3D new GridData(GridData.FILL_HORIZONTAL); richfacesGroup.setLayoutData(gd); /* addRichFacesCapabilities=3D new Button(richfacesGroup,SWT.CHECK); @@ -251,14 +263,41 @@ = }); addRichFaces(richfacesGroup); + changeRichFaces(); + getDataModel().addListener(new IDataModelListener() { + = + public void propertyChanged(DataModelEvent event) { + String propertyName =3D event.getPropertyName(); + if (IPortletConstants.JSFPORTLET_LIBRARY_PROVIDER_DELEGATE.equals(prop= ertyName)) { + changeRichFaces(); + } + } + }); = addRichFacesLibraries.setSelection(richFacesLibrariesSelected); enableRichfacesLibraries(); richFacesLibraryCombo.select(0); = - validatePage(); + //validatePage(); } = + private void changeRichFaces() { + LibraryInstallDelegate librariesInstallDelegate=3D (LibraryInstallDelega= te) getDataModel().getProperty( IPortletConstants.JSFPORTLET_LIBRARY_PROVID= ER_DELEGATE ); + String providerId =3D librariesInstallDelegate.getLibraryProvider().getI= d(); + if (providerId !=3D null && providerId.equals(PORTLETBRIDGE_LIBRARY_PROV= IDER)) { + richFacesLibraryCombo.removeAll(); + richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_PORTL= ETBRIDGE); + richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_RICHF= ACES); + richFacesLibraryCombo.select(0); + } else { + richFacesLibraryCombo.removeAll(); + richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_RICHF= ACES); + richFacesLibraryCombo.select(0); + } + boolean enabled =3DIPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES.equ= als(richFacesLibraryCombo.getText()); + richfacesText.setEnabled(enabled); + richfacesButton.setEnabled(enabled); + } private void addRichFaces(Composite parent) { richfacesText =3D new Text(parent, SWT.SINGLE | SWT.BORDER); richfacesText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); @@ -382,22 +421,33 @@ validatePage(); } = - private void validatePage() { - if (!validatePortletBridge()) { - return; - } - if (!validateRichFaces()) { - return; - } - if (portletBridgeLibraryCombo.getText().equals(IPortletConstants.USER_LI= BRARY) && userLibraries.getText().trim().length() <=3D 0) { - setErrorMessage(Messages.PortletFacetInstallPage_You_have_to_choose_an_= user_library); - setPageComplete(false); - } else { - setErrorMessage(null); - setPageComplete(true); - } + @Override + protected String[] getValidationPropertyNames() { + return new String[] { IPortletConstants.JSFPORTLET_LIBRARY_PROVIDER_DELE= GATE }; + } = + public void setConfig(Object config) { + model.removeListener(this); + synchHelper.dispose(); + + model =3D (IDataModel) config; + model.addListener(this); + synchHelper =3D initializeSynchHelper(model); } + + @Override + public void dispose() { + model.removeListener(this); + super.dispose(); + } + + public void setWizardContext(IWizardContext context) { + + } + + public void transferStateToConfig() { + + } = private boolean portletBridgeLibrariesExistOnServer() { IFacetedProjectWorkingCopy fpwc =3D (IFacetedProjectWorkingCopy) model.g= etProperty(IFacetDataModelProperties.FACETED_PROJECT_WORKING_COPY); @@ -570,24 +620,6 @@ richfacesText.setText(newPath); } = - @Override - public void transferStateToConfig() { - super.transferStateToConfig(); - if (deployButton !=3D null) { - jsfSection.put(IPortletConstants.DEPLOY_JARS, deployButton - .getSelection()); - } - jsfSection.put(IPortletConstants.PORTLET_BRIDGE_RUNTIME, - portletbridgeRuntime); - jsfSection.put(IPortletConstants.RICHFACES_RUNTIME, - richfacesRuntime); - jsfSection.put(IPortletConstants.IMPLEMENTATION_LIBRARY, = - implementationLibrary); - jsfSection.put(IPortletConstants.RICHFACES_LIBRARIES_SELECTED, = - richFacesLibrariesSelected); - = - } - private void enableRichfacesLibraries() { boolean enabled =3D addRichFacesLibraries.getSelection(); richFacesLibraryCombo.setEnabled(enabled); Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/to= ols/portlet/ui/internal/project/facet/PortletFacetInstallPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/project/facet/PortletFacetInstallPage.java 2009-09-09 23:= 59:43 UTC (rev 17508) +++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/project/facet/PortletFacetInstallPage.java 2009-09-10 00:= 27:18 UTC (rev 17509) @@ -2,6 +2,8 @@ = import org.eclipse.jdt.core.JavaCore; import org.eclipse.jface.dialogs.IDialogSettings; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDel= egate; +import org.eclipse.jst.common.project.facet.ui.libprov.LibraryProviderFram= eworkUi; import org.eclipse.swt.SWT; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; @@ -10,6 +12,7 @@ import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Combo; import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Group; import org.eclipse.swt.widgets.Shell; @@ -103,7 +106,13 @@ composite.setLayout(new GridLayout(1, false)); GridData gd =3D new GridData(GridData.FILL_BOTH); composite.setLayoutData(gd); - enableImplementationLibrary =3D new Button(composite, SWT.CHECK); + LibraryInstallDelegate librariesInstallDelegate=3D (LibraryInstallDelega= te) getDataModel().getProperty( IPortletConstants.PORTLET_LIBRARY_PROVIDER_= DELEGATE ); + Control librariesComposite=3D LibraryProviderFrameworkUi.createInstallLi= braryPanel( composite, librariesInstallDelegate, + Messages.Port= letFacetInstallPage_PortletImplementationLibrariesFrame ); + gd =3D new GridData( GridData.FILL_HORIZONTAL ); + librariesComposite.setLayoutData( gd ); + = + /*enableImplementationLibrary =3D new Button(composite, SWT.CHECK); enableImplementationLibrary.setText(Messages.PortletFacetInstallPage_Ena= ble_implementation_library); enableImplementationLibrary .setSelection(enableImplementationLibraryValue); @@ -215,7 +224,7 @@ model.setProperty(IPortletConstants.USER_LIBRARY_NAME, userLibraries .getText()); - /*deployButton =3D new Button(composite, SWT.CHECK); +*/ /*deployButton =3D new Button(composite, SWT.CHECK); deployButton.setText(Messages.JSFPortletFacetInstallPage_Deploy_jars); deployButton.setSelection(deployPortletJars); deployButton.addSelectionListener(new SelectionAdapter() { @@ -227,7 +236,7 @@ } = }); */ - validatePage(); + //validatePage(); return composite; } = @@ -251,7 +260,7 @@ = @Override protected String[] getValidationPropertyNames() { - return new String[0]; + return new String[] { IPortletConstants.PORTLET_LIBRARY_PROVIDER_DELEGAT= E }; } = public void setConfig(Object config) { @@ -304,20 +313,5 @@ }); super.storeDefaultSettings(); } - = - @Override - protected void validatePage() { - //super.validatePage(); - if (enableImplementationLibrary =3D=3D null) { - return; - } - if (enableImplementationLibrary.getSelection() && implementationLibraryC= ombo.getText().equals(IPortletConstants.USER_LIBRARY) && userLibraries.getT= ext().trim().length() <=3D 0) { - setErrorMessage(Messages.PortletFacetInstallPage_You_have_to_choose_an_= user_library); - setPageComplete(false); - } else { - setErrorMessage(null); - setPageComplete(true); - } - } = } Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/to= ols/portlet/ui/messages.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/messages.properties 2009-09-09 23:59:43 UTC (rev 17508) +++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/messages.properties 2009-09-10 00:27:18 UTC (rev 17509) @@ -39,10 +39,10 @@ JSFPortletFacetInstallPage_Select_RichFaces_Runtime=3DSelect RichFaces Run= time PortletFacetInstallPage_Add=3DAdd... PortletFacetInstallPage_Add_JBoss_Portlet_capabilities_to_this_Web_Project= =3DAdd JBoss Portlet capabilities to this Web Project -PortletFacetInstallPage_Enable_implementation_library=3DEnable implementat= ion library +#PortletFacetInstallPage_Enable_implementation_library=3DEnable implementa= tion library PortletFacetInstallPage_JBoss_Portlet_Capabilities=3DJBoss Portlet Capabil= ities PortletFacetInstallPage_User_Library=3DUser Library -PortletFacetInstallPage_You_have_to_choose_an_user_library=3DYou have to c= hoose an user library +#PortletFacetInstallPage_You_have_to_choose_an_user_library=3DYou have to = choose an user library PortletUIActivator_The_portlet_xml_file_doesnt_exist=3DThe portlet.xml fil= e doesn't exist NewJSFPortletClassWizardPage_Choose_a_JSF_portlet_class=3DChoose a JSF por= tlet class: NewJSFPortletClassWizardPage_Choose_a_Seam_portlet_class=3DChoose a Seam p= ortlet class: @@ -54,3 +54,7 @@ NewPortletWizard_Specify_modifiers_interfaces_to_implement_and_method_stub= s_to_generate=3DSpecify modifiers, interfaces to implement and method stubs= to generate. No_portlets_exist_to_add=3DNo portlets exist to add JBossPortletPreferencePage_Check_Runtimes_for_Portlet_Components=3DCheck R= untimes for Portlet Components +PortletFacetInstallPage_PortletImplementationLibrariesFrame=3DPortlet Impl= ementation Library +JSFPortletFacetInstallPage_JSFPortletImplementationLibrariesFrame=3DJSFPor= tlet Implementation Library +PortletServerRuntimeProviderInstallPanel_The_targeted_runtime_contains_a_p= ortlet_library=3DThe targeted runtime contains a portlet library. Selecting= this option will configure the classpath container that includes the libra= ry. +JSFPortletServerRuntimeProviderInstallPanel_The_targeted_runtime_contains_= a_portlet_library=3DThe targeted runtime contains a JSF portlet library. Se= lecting this option will copy libraries from the Server Runtime. --===============5466503511746008653==-- From jbosstools-commits at lists.jboss.org Wed Sep 9 20:28:20 2009 Content-Type: multipart/mixed; boundary="===============1588920008337240278==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17510 - in trunk/maven/plugins/org.jboss.tools.maven.core: poms and 1 other directories. Date: Wed, 09 Sep 2009 20:28:20 -0400 Message-ID: <200909100028.n8A0SKsM003651@svn01.web.mwc.hst.phx2.redhat.com> --===============1588920008337240278== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: snjeza Date: 2009-09-09 20:28:19 -0400 (Wed, 09 Sep 2009) New Revision: 17510 Added: trunk/maven/plugins/org.jboss.tools.maven.core/plugin.xml trunk/maven/plugins/org.jboss.tools.maven.core/poms/portlet-template10.x= ml trunk/maven/plugins/org.jboss.tools.maven.core/poms/portlet-template20.x= ml trunk/maven/plugins/org.jboss.tools.maven.core/poms/portletbridge-templa= te200alpha.xml trunk/maven/plugins/org.jboss.tools.maven.core/poms/portletbridge-templa= te200alphadep.xml Removed: trunk/maven/plugins/org.jboss.tools.maven.core/plugin.xml Modified: trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven= /core/libprov/MavenLibraryProviderInstallOperationConfig.java Log: https://jira.jboss.org/jira/browse/JBIDE-4690 Add Maven Portlet library pro= vider Deleted: trunk/maven/plugins/org.jboss.tools.maven.core/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.core/plugin.xml 2009-09-10 00= :27:18 UTC (rev 17509) +++ trunk/maven/plugins/org.jboss.tools.maven.core/plugin.xml 2009-09-10 00= :28:19 UTC (rev 17510) @@ -1,122 +0,0 @@ - - - - = - - = - = - - - Adds support for Maven. - - - - = - - - - - - - - - - - - - = - - - - = - = - - = - - - - - - - = - - - - 500 - - - - - = - - - - = - - - = - - - - - = - - - - - - - - - - - - - - - - - = - - - - - - - - - - - - - - - - - = - - - - - - - - - - - - - - - - - - - - = - Added: trunk/maven/plugins/org.jboss.tools.maven.core/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.core/plugin.xml = (rev 0) +++ trunk/maven/plugins/org.jboss.tools.maven.core/plugin.xml 2009-09-10 00= :28:19 UTC (rev 17510) @@ -0,0 +1,188 @@ + + + + = + + = + = + + + Adds support for Maven. + + + + = + + + + + + + + + + + + + = + + + + = + = + + = + + + + + + + = + + + + 500 + + + + + = + + + + = + + + = + + + + + = + + + + + + + + + + + + + + + + + = + + + + + + + + + + + + + + + + + = + + + + + + + + + + + + + + + + + + + + = + + + + + + + + + + + + + + + + + = + + + + + + + + + + + + + + + + + = + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Added: trunk/maven/plugins/org.jboss.tools.maven.core/poms/portlet-template= 10.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.core/poms/portlet-template10.= xml (rev 0) +++ trunk/maven/plugins/org.jboss.tools.maven.core/poms/portlet-template10.= xml 2009-09-10 00:28:19 UTC (rev 17510) @@ -0,0 +1,19 @@ + + + 4.0.0 + template + template + pom + 0.0.1-SNAPSHOT + = + + + javax.portlet + portlet-api + 1.0 + provided + + + = + \ No newline at end of file Added: trunk/maven/plugins/org.jboss.tools.maven.core/poms/portlet-template= 20.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.core/poms/portlet-template20.= xml (rev 0) +++ trunk/maven/plugins/org.jboss.tools.maven.core/poms/portlet-template20.= xml 2009-09-10 00:28:19 UTC (rev 17510) @@ -0,0 +1,19 @@ + + + 4.0.0 + template + template + pom + 0.0.1-SNAPSHOT + = + + + javax.portlet + portlet-api + 2.0 + provided + + + = + \ No newline at end of file Added: trunk/maven/plugins/org.jboss.tools.maven.core/poms/portletbridge-te= mplate200alpha.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.core/poms/portletbridge-templ= ate200alpha.xml (rev 0) +++ trunk/maven/plugins/org.jboss.tools.maven.core/poms/portletbridge-templ= ate200alpha.xml 2009-09-10 00:28:19 UTC (rev 17510) @@ -0,0 +1,52 @@ + + + 4.0.0 + template + template + pom + 0.0.1-SNAPSHOT + = + + + org.jboss.portletbridge + portletbridge-api + 2.0.0.ALPHA + + + javax.faces + jsf-api + + + javax.faces + jsf-impl + + + commons-collections + commons-collections + + + + + org.jboss.portletbridge + portletbridge-impl + 2.0.0.ALPHA + + + javax.faces + jsf-api + + + javax.faces + jsf-impl + + = + + commons-collections + commons-collections + + + + = + + \ No newline at end of file Added: trunk/maven/plugins/org.jboss.tools.maven.core/poms/portletbridge-te= mplate200alphadep.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.core/poms/portletbridge-templ= ate200alphadep.xml (rev 0) +++ trunk/maven/plugins/org.jboss.tools.maven.core/poms/portletbridge-templ= ate200alphadep.xml 2009-09-10 00:28:19 UTC (rev 17510) @@ -0,0 +1,117 @@ + + + 4.0.0 + template + template + pom + 0.0.1-SNAPSHOT + = + + = + + javax.portlet + portlet-api + 2.0 + provided + + = + = + + org.jboss.portletbridge + portletbridge-api + 2.0.0.ALPHA + + + javax.faces + jsf-api + + + javax.faces + jsf-impl + + + commons-collections + commons-collections + + + + + org.jboss.portletbridge + portletbridge-impl + 2.0.0.ALPHA + + + javax.faces + jsf-api + + + javax.faces + jsf-impl + + = + + commons-collections + commons-collections + + + + + org.richfaces.ui + richfaces-ui + 3.3.1.GA + + + org.richfaces.framework + richfaces-api + 3.3.1.GA + + + commons-logging + commons-logging + + + commons-beanutils + commons-beanutils + + + commons-collections + commons-collections + + + + + org.richfaces.framework + richfaces-impl + 3.3.1.GA + + + commons-logging + commons-logging + + + junit + junit + + + javax.faces + jsf-api + + + + javax.servlet + servlet-api + + + javax.faces + jsf-impl + + + + + com.sun.facelets + jsf-facelets + 1.1.15.B1 + + + \ No newline at end of file Modified: trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tool= s/maven/core/libprov/MavenLibraryProviderInstallOperationConfig.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/mave= n/core/libprov/MavenLibraryProviderInstallOperationConfig.java 2009-09-10 0= 0:27:18 UTC (rev 17509) +++ trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/mave= n/core/libprov/MavenLibraryProviderInstallOperationConfig.java 2009-09-10 0= 0:28:19 UTC (rev 17510) @@ -1,9 +1,7 @@ package org.jboss.tools.maven.core.libprov; = -import org.eclipse.emf.ecore.resource.URIConverter.WriteableOutputStream; import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderIn= stallOperationConfig; import org.maven.ide.components.pom.Model; -import org.maven.ide.components.pom.util.PomResourceImpl; = public class MavenLibraryProviderInstallOperationConfig extends LibraryProviderInstallOperationConfig { --===============1588920008337240278==-- From jbosstools-commits at lists.jboss.org Thu Sep 10 07:43:59 2009 Content-Type: multipart/mixed; boundary="===============2511493586173387407==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17511 - trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF. Date: Thu, 10 Sep 2009 07:43:59 -0400 Message-ID: <200909101143.n8ABhxXO005984@svn01.web.mwc.hst.phx2.redhat.com> --===============2511493586173387407== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-10 07:43:58 -0400 (Thu, 10 Sep 2009) New Revision: 17511 Modified: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFEST.MF Log: https://jira.jboss.org/jira/browse/JBIDE-4802 direct dependency on common.gef added Modified: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFES= T.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFEST.MF 2= 009-09-10 00:28:19 UTC (rev 17510) +++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFEST.MF 2= 009-09-10 11:43:58 UTC (rev 17511) @@ -29,6 +29,7 @@ org.eclipse.ui.workbench.texteditor, org.eclipse.ui.views, org.jboss.tools.common.model.ui, + org.jboss.tools.common.gef, org.jboss.tools.jst.web.ui, org.jboss.tools.seam.pages.xml, org.eclipse.emf.ecore;bundle-version=3D"2.4.0", --===============2511493586173387407==-- From jbosstools-commits at lists.jboss.org Thu Sep 10 09:55:53 2009 Content-Type: multipart/mixed; boundary="===============6567389834290690113==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17512 - in trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects: CAForIDTest/WebContent/WEB-INF/lib and 1 other directories. Date: Thu, 10 Sep 2009 09:55:53 -0400 Message-ID: <200909101355.n8ADtrZ5026510@svn01.web.mwc.hst.phx2.redhat.com> --===============6567389834290690113== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-10 09:55:53 -0400 (Thu, 10 Sep 2009) New Revision: 17512 Removed: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinStyleTest= /WebContent/WEB-INF/lib/jsf-facelets.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinStyleTest= /WebContent/WEB-INF/lib/jsf-tlds.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinStyleTest= /WebContent/WEB-INF/lib/jstl.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/WebCon= tent/WEB-INF/lib/jsf-api.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/WebCon= tent/WEB-INF/lib/jstl.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/WebCon= tent/WEB-INF/lib/richfaces-api-3.3.0.GA.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/WebCon= tent/WEB-INF/lib/richfaces-impl-3.3.0.GA.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/WebCon= tent/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBuilderTe= st/WebContent/WEB-INF/lib/el-api.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBuilderTe= st/WebContent/WEB-INF/lib/el-ri.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBuilderTe= st/WebContent/WEB-INF/lib/jsf-api.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBuilderTe= st/WebContent/WEB-INF/lib/jsf-facelets.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBuilderTe= st/WebContent/WEB-INF/lib/jsf-impl.jar trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBuilderTe= st/WebContent/WEB-INF/lib/jstl.jar Log: JBIDE-4833: Reduce a number of jars in org.jboss.tools.jst.jsp.test\project= s. Unused jars are removed Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinSty= leTest/WebContent/WEB-INF/lib/jsf-facelets.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinSty= leTest/WebContent/WEB-INF/lib/jsf-tlds.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForELinSty= leTest/WebContent/WEB-INF/lib/jstl.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/= WebContent/WEB-INF/lib/jsf-api.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/= WebContent/WEB-INF/lib/jstl.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/= WebContent/WEB-INF/lib/richfaces-api-3.3.0.GA.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/= WebContent/WEB-INF/lib/richfaces-impl-3.3.0.GA.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForIDTest/= WebContent/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBui= lderTest/WebContent/WEB-INF/lib/el-api.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBui= lderTest/WebContent/WEB-INF/lib/el-ri.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBui= lderTest/WebContent/WEB-INF/lib/jsf-api.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBui= lderTest/WebContent/WEB-INF/lib/jsf-facelets.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBui= lderTest/WebContent/WEB-INF/lib/jsf-impl.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/MissingKBBui= lderTest/WebContent/WEB-INF/lib/jstl.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============6567389834290690113==-- From jbosstools-commits at lists.jboss.org Thu Sep 10 11:44:51 2009 Content-Type: multipart/mixed; boundary="===============4535666564681848019==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17513 - in trunk/seam/plugins: org.jboss.tools.seam.ui and 1 other directories. Date: Thu, 10 Sep 2009 11:44:51 -0400 Message-ID: <200909101544.n8AFipg2012201@svn01.web.mwc.hst.phx2.redhat.com> --===============4535666564681848019== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dazarov Date: 2009-09-10 11:44:50 -0400 (Thu, 10 Sep 2009) New Revision: 17513 Added: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/s= earch/SeamELReferencesQueryParticipant.java Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/refactoring/SeamRefactorSearcher.java trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4771 Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/refactoring/SeamRefactorSearcher.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java 2009-09-10 13:55:53 UTC = (rev 17512) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java 2009-09-10 15:44:50 UTC = (rev 17513) @@ -57,6 +57,11 @@ protected static final String JSP_EXT =3D "jsp"; //$NON-NLS-1$ protected static final String PROPERTIES_EXT =3D "properties"; //$NON-NLS= -1$ = + private static final String GET =3D "get"; //$NON-NLS-1$ + private static final String SET =3D "set"; //$NON-NLS-1$ + private static final String IS =3D "is"; //$NON-NLS-1$ + + = protected static final String SEAM_PROPERTIES_FILE =3D "seam.properties";= //$NON-NLS-1$ = protected IFile baseFile; @@ -318,4 +323,14 @@ protected abstract boolean isFileCorrect(IFile file); = protected abstract void match(IFile file, int offset, int length); + = + public static String getPropertyName(String methodName){ + if(methodName.startsWith(GET) || methodName.startsWith(SET)) + return methodName.substring(3).toLowerCase(); + = + if(methodName.startsWith(IS)) + return methodName.substring(2).toLowerCase(); + = + return methodName.toLowerCase(); + } } Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml 2009-09-10 13:55:= 53 UTC (rev 17512) +++ trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml 2009-09-10 15:44:= 50 UTC (rev 17513) @@ -662,5 +662,13 @@ - = + + + + Added: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/= ui/search/SeamELReferencesQueryParticipant.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= search/SeamELReferencesQueryParticipant.java (rev 0) +++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= search/SeamELReferencesQueryParticipant.java 2009-09-10 15:44:50 UTC (rev 1= 7513) @@ -0,0 +1,105 @@ +/*************************************************************************= ****** + * Copyright (c) 2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.seam.ui.search; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IResource; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.jdt.ui.search.ElementQuerySpecification; +import org.eclipse.jdt.ui.search.IMatchPresentation; +import org.eclipse.jdt.ui.search.IQueryParticipant; +import org.eclipse.jdt.ui.search.ISearchRequestor; +import org.eclipse.jdt.ui.search.QuerySpecification; +import org.eclipse.jface.viewers.ILabelProvider; +import org.eclipse.search.ui.text.Match; +import org.eclipse.ui.PartInitException; +import org.jboss.tools.common.el.core.model.ELInvocationExpression; +import org.jboss.tools.common.el.core.model.ELMethodInvocation; +import org.jboss.tools.common.el.core.model.ELPropertyInvocation; +import org.jboss.tools.seam.internal.core.refactoring.SeamRefactorSearcher; + +public class SeamELReferencesQueryParticipant implements IQueryParticipant= , IMatchPresentation{ + SeamSearchViewLabelProvider labelProvider =3D new SeamSearchViewLabelProv= ider(null, 0); + private ELSearcher searcher; + = + public int estimateTicks(QuerySpecification specification) { + return 10; + } + + public IMatchPresentation getUIParticipant() { + return this; + } + + public void search(ISearchRequestor requestor, + QuerySpecification querySpecification, IProgressMonitor monitor) + throws CoreException { + if(querySpecification instanceof ElementQuerySpecification){ + ElementQuerySpecification qs =3D (ElementQuerySpecification)querySpecif= ication; + IFile file =3D (IFile)qs.getElement().getResource(); + String name =3D ELSearcher.getPropertyName(qs.getElement().getElementNa= me()); + = + searcher =3D new ELSearcher(requestor, file, name); + = + searcher.findELReferences(); + } + } + = + public ILabelProvider createLabelProvider() { + return labelProvider; + } + + public void showMatch(Match match, int currentOffset, + int currentLength, boolean activate) throws PartInitException { + } + = + class ELSearcher extends SeamRefactorSearcher{ + ISearchRequestor requestor; + public ELSearcher(ISearchRequestor requestor, IFile file, String name){ + super(file, name); + this.requestor =3D requestor; + } + + @Override + protected boolean isFileCorrect(IFile file){ + if(!file.isSynchronized(IResource.DEPTH_ZERO)){ + return false; + }else if(file.isPhantom()){ + return false; + }else if(file.isReadOnly()){ + return false; + } + return true; + } + + @Override + protected void match(IFile file, int offset, int length) { + Match match =3D new Match(file, offset, length); + requestor.reportMatch(match); + } + = + protected ELInvocationExpression findComponentReference(ELInvocationExpr= ession invocationExpression){ + ELInvocationExpression invExp =3D invocationExpression; + while(invExp !=3D null){ + if(invExp instanceof ELMethodInvocation || invExp instanceof ELPropert= yInvocation){ + if(invExp.getMemberName() !=3D null && invExp.getMemberName().equalsI= gnoreCase(propertyName)) + return invExp; + else + invExp =3D invExp.getLeft(); + }else{ + invExp =3D invExp.getLeft(); + } + } + return null; + } + } + +} Property changes on: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jbo= ss/tools/seam/ui/search/SeamELReferencesQueryParticipant.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============4535666564681848019==-- From jbosstools-commits at lists.jboss.org Thu Sep 10 12:07:49 2009 Content-Type: multipart/mixed; boundary="===============5372509297293655679==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17514 - trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/search. Date: Thu, 10 Sep 2009 12:07:49 -0400 Message-ID: <200909101607.n8AG7n0h018415@svn01.web.mwc.hst.phx2.redhat.com> --===============5372509297293655679== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dazarov Date: 2009-09-10 12:07:48 -0400 (Thu, 10 Sep 2009) New Revision: 17514 Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/s= earch/SeamELReferencesQueryParticipant.java Log: https://jira.jboss.org/jira/browse/JBIDE-4771 Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/se= am/ui/search/SeamELReferencesQueryParticipant.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= search/SeamELReferencesQueryParticipant.java 2009-09-10 15:44:50 UTC (rev 1= 7513) +++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= search/SeamELReferencesQueryParticipant.java 2009-09-10 16:07:48 UTC (rev 1= 7514) @@ -14,6 +14,7 @@ import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.jdt.core.IMethod; import org.eclipse.jdt.ui.search.ElementQuerySpecification; import org.eclipse.jdt.ui.search.IMatchPresentation; import org.eclipse.jdt.ui.search.IQueryParticipant; @@ -44,12 +45,14 @@ throws CoreException { if(querySpecification instanceof ElementQuerySpecification){ ElementQuerySpecification qs =3D (ElementQuerySpecification)querySpecif= ication; - IFile file =3D (IFile)qs.getElement().getResource(); - String name =3D ELSearcher.getPropertyName(qs.getElement().getElementNa= me()); - = - searcher =3D new ELSearcher(requestor, file, name); - = - searcher.findELReferences(); + if(qs.getElement() instanceof IMethod){ + IFile file =3D (IFile)qs.getElement().getResource(); + String name =3D ELSearcher.getPropertyName(qs.getElement().getElementN= ame()); + = + searcher =3D new ELSearcher(requestor, file, name); + = + searcher.findELReferences(); + } } } = --===============5372509297293655679==-- From jbosstools-commits at lists.jboss.org Thu Sep 10 18:40:28 2009 Content-Type: multipart/mixed; boundary="===============7950528515102588619==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17515 - trunk/seam/features. Date: Thu, 10 Sep 2009 18:40:27 -0400 Message-ID: <200909102240.n8AMeRtW031440@svn01.web.mwc.hst.phx2.redhat.com> --===============7950528515102588619== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-10 18:40:27 -0400 (Thu, 10 Sep 2009) New Revision: 17515 Added: trunk/seam/features/org.jboss.tools.seam.test.feature/ Log: https://jira.jboss.org/jira/browse/JBIDE-3892 - Increase JUnit test's cover= age up to 60% Share project "org.jboss.tools.seam.test.feature" into "https://svn.jboss.o= rg/repos/jbosstools" --===============7950528515102588619==-- From jbosstools-commits at lists.jboss.org Thu Sep 10 18:41:39 2009 Content-Type: multipart/mixed; boundary="===============1708423112385444995==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17516 - trunk/seam/tests. Date: Thu, 10 Sep 2009 18:41:38 -0400 Message-ID: <200909102241.n8AMfcO9032010@svn01.web.mwc.hst.phx2.redhat.com> --===============1708423112385444995== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-10 18:41:38 -0400 (Thu, 10 Sep 2009) New Revision: 17516 Added: trunk/seam/tests/org.jboss.tools.seam.text.ext.test/ Log: https://jira.jboss.org/jira/browse/JBIDE-3892 - Increase JUnit test's cover= age up to 60% Share project "org.jboss.tools.seam.text.ext.test" into "https://svn.jboss.= org/repos/jbosstools" --===============1708423112385444995==-- From jbosstools-commits at lists.jboss.org Thu Sep 10 18:42:39 2009 Content-Type: multipart/mixed; boundary="===============2119431696613327589==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17517 - in trunk/portlet/plugins: org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov and 2 other directories. Date: Thu, 10 Sep 2009 18:42:39 -0400 Message-ID: <200909102242.n8AMgd87032171@svn01.web.mwc.hst.phx2.redhat.com> --===============2119431696613327589== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: snjeza Date: 2009-09-10 18:42:39 -0400 (Thu, 10 Sep 2009) New Revision: 17517 Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/libprov/AbstractLibraryProviderInstallOperationConfig.java trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/por= tlet/ui/internal/libprov/AbstractPortletProviderInstallPanel.java Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/internal/project/facet/PortletPostInstallListener.java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperation.= java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperationC= onfig.java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperation.= java trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/p= ortlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperationC= onfig.java trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/por= tlet/ui/internal/libprov/JSFPortletServerRuntimeProviderInstallPanel.java trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/por= tlet/ui/internal/libprov/JSFPortletbridgeRuntimeProviderInstallPanel.java trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/por= tlet/ui/internal/libprov/PortletServerRuntimeProviderInstallPanel.java trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/por= tlet/ui/internal/project/facet/JSFPortletFacetInstallPage.java trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/por= tlet/ui/internal/project/facet/PortletFacetInstallPage.java Log: https://jira.jboss.org/jira/browse/JBIDE-4689 Integrate Portlet facet with = WTP 3.1 Library Framework Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/= tools/portlet/core/internal/project/facet/PortletPostInstallListener.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/internal/project/facet/PortletPostInstallListener.java 2009-09= -10 22:41:38 UTC (rev 17516) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/internal/project/facet/PortletPostInstallListener.java 2009-09= -10 22:42:39 UTC (rev 17517) @@ -48,10 +48,12 @@ import org.jboss.tools.portlet.core.IPortletConstants; import org.jboss.tools.portlet.core.Messages; import org.jboss.tools.portlet.core.PortletCoreActivator; +import org.jboss.tools.portlet.core.libprov.AbstractLibraryProviderInstall= OperationConfig; import org.jboss.tools.portlet.core.libprov.JSFPortletbridgeRuntimeLibrary= ProviderInstallOperationConfig; = public class PortletPostInstallListener implements IFacetedProjectListener= { = + private static final String JSFPORTLET_LIBRARY_PROVIDER =3D "jsfportlet-l= ibrary-provider"; private static final String JSFPORTLETBRIDGE_LIBRARY_PROVIDER =3D "jsfpor= tletbridge-library-provider"; //$NON-NLS-1$ private static final IProjectFacet seamFacet =3D ProjectFacetsManager.get= ProjectFacet("jst.seam"); //$NON-NLS-1$ private static final IOverwriteQuery OVERWRITE_NONE_QUERY =3D new IOverwr= iteQuery() @@ -62,9 +64,9 @@ } }; private String portletbridgeRuntime; - //private boolean richfacesCapabilities; + private boolean richfacesCapabilities =3D false; //private boolean richfacesSelected; - //private String richfacesType; + private String richfacesType; private String richfacesRuntime; = = @@ -98,44 +100,50 @@ IDataModel dataModel =3D (IDataModel) actionEvent.getActionConfig(); try { LibraryInstallDelegate libraryDelegate =3D ( (LibraryInstallDelegate) = dataModel.getProperty( IPortletConstants.JSFPORTLET_LIBRARY_PROVIDER_DELEGA= TE ) ); - ILibraryProvider libraryProvider =3D libraryDelegate.getLibraryProvide= r(); - String providerId =3D libraryProvider.getId(); - if (JSFPORTLETBRIDGE_LIBRARY_PROVIDER.equals(providerId)) { - JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig libraryC= onfig =3D (JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig) li= braryDelegate.getLibraryProviderOperationConfig(libraryProvider); - portletbridgeRuntime =3D libraryConfig.getPortletbridgeHome(); - } else { - portletbridgeRuntime =3D null; + if (libraryDelegate !=3D null) { + ILibraryProvider libraryProvider =3D libraryDelegate + .getLibraryProvider(); + String providerId =3D libraryProvider.getId(); + if (JSFPORTLETBRIDGE_LIBRARY_PROVIDER.equals(providerId)) { + JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig library= Config =3D (JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig) l= ibraryDelegate + .getLibraryProviderOperationConfig(libraryProvider); + portletbridgeRuntime =3D libraryConfig.getPortletbridgeHome(); + } else { + portletbridgeRuntime =3D null; + } + richfacesFromServerRuntime =3D JSFPORTLET_LIBRARY_PROVIDER.equals(pro= viderId); //$NON-NLS-1$ + + if (JSFPORTLETBRIDGE_LIBRARY_PROVIDER.equals(providerId) + || JSFPORTLET_LIBRARY_PROVIDER.equals(providerId)) { + AbstractLibraryProviderInstallOperationConfig libraryConfig =3D (Abs= tractLibraryProviderInstallOperationConfig) libraryDelegate.getLibraryProvi= derOperationConfig(libraryProvider); + richfacesCapabilities =3D libraryConfig.isAddRichfacesCapabilities(); + richfacesRuntime =3D libraryConfig.getRichfacesRuntime(); + richfacesType =3D libraryConfig.getRichfacesType(); + } + = } - richfacesFromServerRuntime =3D "jsfportlet-library-provider".equals(pr= oviderId); //$NON-NLS-1$ - = - //richfacesCapabilities =3D dataModel.getBooleanProperty(IPortletConst= ants.RICHFACES_CAPABILITIES); - //richfacesSelected =3D dataModel.getBooleanProperty(IPortletConstants= .RICHFACES_LIBRARIES_SELECTED); - //richfacesType =3D dataModel.getStringProperty(IPortletConstants.RICH= FACES_LIBRARIES_TYPE); - //richfacesRuntime =3D dataModel.getStringProperty(IPortletConstants.R= ICHFACES_RUNTIME); } catch (Exception e) { //PortletCoreActivator.log(e); } } = - //if (!richfacesCapabilities || !richfacesSelected) { - // return; - //} if (isJSFPortlet) { if (portletbridgeRuntime !=3D null) { - addRichfacesFromPortletBridgeRuntime(facetedProject,portletbridgeRunti= me); + addLibrariesFromPortletBridgeRuntime(facetedProject,portletbridgeRunti= me); } = else if (richfacesFromServerRuntime) { - addRichFacesFromServerRuntime(facetedProject); + addLibrariesFromServerRuntime(facetedProject); } - //else { - // addRichfacesFromRichfacesRuntime(facetedProject,isSeamProject); - //} } } = - private void addRichFacesFromServerRuntime(IFacetedProject facetedProject= ) { + private void addLibrariesFromServerRuntime(IFacetedProject facetedProject= ) { final boolean isSeamProject =3D facetedProject.hasProjectFacet(seamFacet= ); - if (isSeamProject) { + final boolean addRichfacesFromRichfacesRuntime =3D richfacesCapabilities= && IPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES.equals(richfacesType); + if (addRichfacesFromRichfacesRuntime) { + addRichfacesFromRichfacesRuntime(facetedProject); + } + if (isSeamProject) { = return; } org.eclipse.wst.common.project.facet.core.runtime.IRuntime facetRuntime = =3D facetedProject.getPrimaryRuntime(); @@ -168,19 +176,22 @@ try { IProject project =3D facetedProject.getProject(); final IProject earProject =3D getEarProject(project, isSeamProject); + = String[] fileList =3D richfacesLib.list(new FilenameFilter() { = public boolean accept(File dir, String name) { - if (name.startsWith("richfaces-ui") && name.endsWith(".jar")) { //$N= ON-NLS-1$ //$NON-NLS-2$ - return true; - } - if (name.startsWith("richfaces-impl") && name.endsWith(".jar")) { //= $NON-NLS-1$ //$NON-NLS-2$ - return true; - } - if (earProject =3D=3D null) { - if (name.startsWith("richfaces-api") && name.endsWith(".jar")) { //= $NON-NLS-1$ //$NON-NLS-2$ + if (!addRichfacesFromRichfacesRuntime) { + if (name.startsWith("richfaces-ui") && name.endsWith(".jar")) { //$= NON-NLS-1$ //$NON-NLS-2$ return true; } + if (name.startsWith("richfaces-impl") && name.endsWith(".jar")) { /= /$NON-NLS-1$ //$NON-NLS-2$ + return true; + } + if (earProject =3D=3D null) { + if (name.startsWith("richfaces-api") && name.endsWith(".jar")) { /= /$NON-NLS-1$ //$NON-NLS-2$ + return true; + } + } } if (!isSeamProject) { if (name.startsWith("portal")) { //$NON-NLS-1$ @@ -246,7 +257,8 @@ } = private void addRichfacesFromRichfacesRuntime( - IFacetedProject facetedProject, boolean isSeamProject) { + IFacetedProject facetedProject) { + final boolean isSeamProject =3D facetedProject.hasProjectFacet(seamFacet= ); File richfacesRuntimeHome =3D new File(richfacesRuntime); File richfacesLib =3D new File(richfacesRuntimeHome, "lib"); //$NON-NLS-= 1$ if (!richfacesLib.exists()) { @@ -360,7 +372,7 @@ } } = - private void addRichfacesFromPortletBridgeRuntime(IFacetedProject faceted= Project, String portletbridgeRuntime) { + private void addLibrariesFromPortletBridgeRuntime(IFacetedProject faceted= Project, String portletbridgeRuntime) { File portletbridgeHome =3D new File(portletbridgeRuntime); if (!portletbridgeHome.exists()) { PortletCoreActivator.log(null, Messages.PortletPostInstallListener_Cann= ot_find_Portletbridge_Runtime); @@ -385,7 +397,11 @@ ZipFileStructureProvider structureProvider =3D new ZipFileStructureProv= ider( zipFile ); boolean isSeamProject =3D facetedProject.hasProjectFacet(seamFacet); - List list =3D prepareList(zipFile, facetedProject, isSeamProj= ect); + final boolean addRichfacesFromRichfacesRuntime =3D richfacesCapabilitie= s && IPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES.equals(richfacesType= ); + if (addRichfacesFromRichfacesRuntime) { + addRichfacesFromRichfacesRuntime(facetedProject); + } + List list =3D prepareList(zipFile, facetedProject, isSeamProj= ect, addRichfacesFromRichfacesRuntime); = IProject project =3D facetedProject.getProject(); IProject earProject =3D getEarProject(project, isSeamProject); @@ -502,7 +518,7 @@ return projectScope.getNode("org.jboss.tools.seam.core"); //$NON-NLS-1$ } = - private List prepareList(ZipFile rootEntry, IFacetedProject fac= etedProject, boolean isSeamProject) { + private List prepareList(ZipFile rootEntry, IFacetedProject fac= etedProject, boolean isSeamProject, boolean addRichfacesFromRichfacesRuntim= e) { if (rootEntry =3D=3D null) { return null; } @@ -513,18 +529,21 @@ while (entries.hasMoreElements()) { ZipEntry entry =3D entries.nextElement(); if (entry.getName().endsWith(".jar")) { //$NON-NLS-1$ - if (entry.getName().startsWith("WEB-INF/lib/richfaces-ui")) { //$NON-N= LS-1$ - list.add(entry); - } - if (entry.getName().startsWith("WEB-INF/lib/richfaces-impl")) { //$NON= -NLS-1$ - list.add(entry); - } - if (earProject =3D=3D null) { - if (entry.getName().startsWith("WEB-INF/lib/richfaces-api")) { //$NON= -NLS-1$ + if (!addRichfacesFromRichfacesRuntime) { + if (entry.getName().startsWith("WEB-INF/lib/richfaces-ui")) { //$NON-= NLS-1$ list.add(entry); - } = + } + if (entry.getName() + .startsWith("WEB-INF/lib/richfaces-impl")) { //$NON-NLS-1$ + list.add(entry); + } + if (earProject =3D=3D null) { + if (entry.getName().startsWith( + "WEB-INF/lib/richfaces-api")) { //$NON-NLS-1$ + list.add(entry); + } + } } - = if (!isSeamProject) { if (entry.getName().startsWith( "WEB-INF/lib/commons-beanutils") //$NON-NLS-1$ Added: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/too= ls/portlet/core/libprov/AbstractLibraryProviderInstallOperationConfig.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/AbstractLibraryProviderInstallOperationConfig.java = (rev 0) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/AbstractLibraryProviderInstallOperationConfig.java 200= 9-09-10 22:42:39 UTC (rev 17517) @@ -0,0 +1,141 @@ +package org.jboss.tools.portlet.core.libprov; + +import java.io.File; +import java.io.FilenameFilter; + +import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.Status; +import org.eclipse.jst.common.project.facet.core.libprov.ILibraryProvider; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderIn= stallOperationConfig; +import org.eclipse.wst.common.project.facet.core.FacetedProjectFramework; +import org.eclipse.wst.common.project.facet.core.IFacetedProjectBase; +import org.eclipse.wst.common.project.facet.core.IProjectFacet; +import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion; +import org.jboss.tools.portlet.core.IPortletConstants; +import org.jboss.tools.portlet.core.Messages; +import org.jboss.tools.portlet.core.PortletCoreActivator; +import org.osgi.service.prefs.BackingStoreException; +import org.osgi.service.prefs.Preferences; + +public abstract class AbstractLibraryProviderInstallOperationConfig extends + LibraryProviderInstallOperationConfig { + + private boolean addRichfacesCapabilities; + private String richfacesType; + private String richfacesRuntime; + = + @Override + public synchronized IStatus validate() { + IStatus status =3D super.validate(); + if (!status.isOK()) { + return status; + } + if (!addRichfacesCapabilities) { + return status; + } + if (!IPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES.equals(richfacesT= ype)) { + return status; + } + if (richfacesRuntime =3D=3D null) { + return getInvalidRichfacesRuntime(); + } + richfacesRuntime =3D richfacesRuntime.trim(); + if (richfacesRuntime.length() <=3D 0) { + return getInvalidRichfacesRuntime(); + } + File folder =3D new File(richfacesRuntime); + if (!folder.exists() || !folder.isDirectory()) { + return getInvalidRichfacesRuntime(); + } + folder =3D new File(folder,"lib"); //$NON-NLS-1$ + if (!folder.exists() || !folder.isDirectory()) { + return getInvalidRichfacesRuntime(); + } + String[] fileList =3D folder.list(new FilenameFilter() { + + public boolean accept(File dir, String name) { + if (name.startsWith("richfaces") || name.endsWith(".jar")) { //$NON-NL= S-1$ //$NON-NLS-2$ + return true; + } + return false; + } + + }); + if (fileList.length < 3) { + return getInvalidRichfacesRuntime(); + } + = + return Status.OK_STATUS; + } + + private IStatus getInvalidRichfacesRuntime() { + IStatus status =3D new Status( IStatus.ERROR, PortletCoreActivator.PLUGI= N_ID, Messages.PortletPostInstallListener_Invalid_Richfaces_Runtime ); + return status; + } + = + private void updatePreferences() { + IProjectFacet f =3D getProjectFacet(); + try { + Preferences prefs =3D FacetedProjectFramework.getPreferences( f ); + prefs =3D prefs.node(IPortletConstants.PORTLET_BRIDGE_HOME); + prefs.putBoolean(IPortletConstants.RICHFACES_CAPABILITIES, addRichfaces= Capabilities); + prefs.put(IPortletConstants.RICHFACES_LIBRARIES_TYPE, richfacesType); + prefs.put(IPortletConstants.RICHFACES_RUNTIME, richfacesRuntime); + } catch (BackingStoreException e) { + PortletCoreActivator.log(e); + } + } + = + public boolean isAddRichfacesCapabilities() { + return addRichfacesCapabilities; + } + = + @Override + public void init(IFacetedProjectBase fpj, IProjectFacetVersion fv, + ILibraryProvider provider) { + super.init(fpj, fv, provider); + reset(); + } + + @Override + public void reset() { + super.reset(); + IProjectFacet f =3D getProjectFacet(); + try { + Preferences prefs =3D FacetedProjectFramework.getPreferences( f ); + prefs =3D prefs.node(IPortletConstants.PORTLET_BRIDGE_HOME); + if( prefs.nodeExists( IPortletConstants.PREFS_PORTLETBRIDGE_HOME ) ) { + addRichfacesCapabilities =3D prefs.getBoolean(IPortletConstants.RICHFA= CES_CAPABILITIES, false); + richfacesType =3D prefs.get(IPortletConstants.RICHFACES_LIBRARIES_TYPE= , null); + richfacesRuntime =3D prefs.get(IPortletConstants.RICHFACES_RUNTIME, nu= ll); + } + } catch (BackingStoreException e) { + PortletCoreActivator.log(e); + } + } + = + public void setAddRichfacesCapabilities(boolean addRichfacesCapabilities)= { + boolean oldValue =3D this.addRichfacesCapabilities; + this.addRichfacesCapabilities =3D addRichfacesCapabilities; + notifyListeners(IPortletConstants.PORTLETBRIDGE_HOME, oldValue, addRichf= acesCapabilities); + updatePreferences(); + } + public String getRichfacesType() { + return richfacesType; + } + public void setRichfacesType(String richfacesType) { + String oldValue =3D this.richfacesType; + this.richfacesType =3D richfacesType; + notifyListeners(IPortletConstants.PORTLETBRIDGE_HOME, oldValue, richface= sType); + updatePreferences(); + } + public String getRichfacesRuntime() { + return richfacesRuntime; + } + public void setRichfacesRuntime(String richfacesRuntime) { + String oldValue =3D this.richfacesRuntime; + this.richfacesRuntime =3D richfacesRuntime; + notifyListeners(IPortletConstants.PORTLETBRIDGE_HOME, oldValue, richface= sRuntime); + updatePreferences(); + } +} Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/= tools/portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOpe= ration.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperation= .java 2009-09-10 22:41:38 UTC (rev 17516) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperation= .java 2009-09-10 22:42:39 UTC (rev 17517) @@ -18,6 +18,7 @@ import org.eclipse.wst.common.componentcore.ComponentCore; import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; import org.eclipse.wst.common.componentcore.resources.IVirtualFile; +import org.eclipse.wst.common.project.facet.core.FacetedProjectFramework; import org.eclipse.wst.common.project.facet.core.IFacetedProjectBase; import org.eclipse.wst.common.project.facet.core.IProjectFacet; import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager; @@ -27,6 +28,8 @@ import org.jboss.tools.portlet.core.IPortletConstants; import org.jboss.tools.portlet.core.Messages; import org.jboss.tools.portlet.core.PortletCoreActivator; +import org.osgi.service.prefs.BackingStoreException; +import org.osgi.service.prefs.Preferences; = public class JSFPortletServerRuntimeLibraryProviderInstallOperation extends LibraryProviderOperation { @@ -82,6 +85,20 @@ } } } + JSFPortletServerRuntimeLibraryProviderInstallOperationConfig serverConfi= g =3D (JSFPortletServerRuntimeLibraryProviderInstallOperationConfig) config; + boolean addRichfacesCapabilities =3D serverConfig.isAddRichfacesCapabili= ties(); + String richfacesType =3D serverConfig.getRichfacesType(); + String richfacesRuntime =3D serverConfig.getRichfacesRuntime(); + try { + Preferences prefs =3D FacetedProjectFramework.getPreferences( config.ge= tProjectFacet() ); + prefs =3D prefs.node(IPortletConstants.PORTLET_BRIDGE_HOME); + prefs.putBoolean(IPortletConstants.RICHFACES_CAPABILITIES, addRichfaces= Capabilities); + prefs.put(IPortletConstants.RICHFACES_LIBRARIES_TYPE, richfacesType); + prefs.put(IPortletConstants.RICHFACES_RUNTIME, richfacesRuntime); + prefs.flush(); + } catch (BackingStoreException e) { + PortletCoreActivator.log(e); + } } = private String[] getPortletbridgeLibraries(File file, final boolean hasSe= amFacet) { Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/= tools/portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOpe= rationConfig.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperation= Config.java 2009-09-10 22:41:38 UTC (rev 17516) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/JSFPortletServerRuntimeLibraryProviderInstallOperation= Config.java 2009-09-10 22:42:39 UTC (rev 17517) @@ -1,8 +1,7 @@ package org.jboss.tools.portlet.core.libprov; = -import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderIn= stallOperationConfig; = public class JSFPortletServerRuntimeLibraryProviderInstallOperationConfig = extends - LibraryProviderInstallOperationConfig { + AbstractLibraryProviderInstallOperationConfig { = } Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/= tools/portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOpe= ration.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperation= .java 2009-09-10 22:41:38 UTC (rev 17516) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperation= .java 2009-09-10 22:42:39 UTC (rev 17517) @@ -35,11 +35,16 @@ JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig portletbrid= geConfig =3D (JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig)= config; String pbRuntime =3D portletbridgeConfig.getPortletbridgeHome(); getPortletbridgeLibraries(monitor, project, pbRuntime); - = + boolean addRichfacesCapabilities =3D portletbridgeConfig.isAddRichfacesC= apabilities(); + String richfacesType =3D portletbridgeConfig.getRichfacesType(); + String richfacesRuntime =3D portletbridgeConfig.getRichfacesRuntime(); try { Preferences prefs =3D FacetedProjectFramework.getPreferences( config.ge= tProjectFacet() ); prefs =3D prefs.node(IPortletConstants.PORTLET_BRIDGE_HOME); prefs.put(IPortletConstants.PREFS_PORTLETBRIDGE_HOME, pbRuntime); + prefs.putBoolean(IPortletConstants.RICHFACES_CAPABILITIES, addRichfaces= Capabilities); + prefs.put(IPortletConstants.RICHFACES_LIBRARIES_TYPE, richfacesType); + prefs.put(IPortletConstants.RICHFACES_RUNTIME, richfacesRuntime); prefs.flush(); } catch (BackingStoreException e) { PortletCoreActivator.log(e); Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/= tools/portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOpe= rationConfig.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperation= Config.java 2009-09-10 22:41:38 UTC (rev 17516) +++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/= portlet/core/libprov/JSFPortletbridgeRuntimeLibraryProviderInstallOperation= Config.java 2009-09-10 22:42:39 UTC (rev 17517) @@ -6,7 +6,6 @@ import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; import org.eclipse.jst.common.project.facet.core.libprov.ILibraryProvider; -import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderIn= stallOperationConfig; import org.eclipse.wst.common.project.facet.core.FacetedProjectFramework; import org.eclipse.wst.common.project.facet.core.IFacetedProjectBase; import org.eclipse.wst.common.project.facet.core.IProjectFacet; @@ -18,7 +17,7 @@ import org.osgi.service.prefs.Preferences; = public class JSFPortletbridgeRuntimeLibraryProviderInstallOperationConfig = extends - LibraryProviderInstallOperationConfig { + AbstractLibraryProviderInstallOperationConfig { = private String portletbridgeHome; = @@ -81,6 +80,7 @@ = @Override public void reset() { + super.reset(); IProjectFacet f =3D getProjectFacet(); try { Preferences prefs =3D FacetedProjectFramework.getPreferences( f ); Copied: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tool= s/portlet/ui/internal/libprov/AbstractPortletProviderInstallPanel.java (fro= m rev 17509, trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss= /tools/portlet/ui/internal/libprov/JSFPortletbridgeRuntimeProviderInstallPa= nel.java) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/libprov/AbstractPortletProviderInstallPanel.java = (rev 0) +++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/libprov/AbstractPortletProviderInstallPanel.java 2009-09-= 10 22:42:39 UTC (rev 17517) @@ -0,0 +1,164 @@ +package org.jboss.tools.portlet.ui.internal.libprov; + +import java.util.List; + +import org.eclipse.jst.common.project.facet.ui.libprov.LibraryProviderOper= ationPanel; +import org.eclipse.swt.SWT; +import org.eclipse.swt.events.ModifyEvent; +import org.eclipse.swt.events.ModifyListener; +import org.eclipse.swt.events.SelectionAdapter; +import org.eclipse.swt.events.SelectionEvent; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Button; +import org.eclipse.swt.widgets.Combo; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Control; +import org.eclipse.swt.widgets.DirectoryDialog; +import org.eclipse.swt.widgets.Display; +import org.eclipse.swt.widgets.Group; +import org.eclipse.swt.widgets.Shell; +import org.eclipse.swt.widgets.Text; +import org.jboss.tools.portlet.core.IPortletConstants; +import org.jboss.tools.portlet.core.libprov.AbstractLibraryProviderInstall= OperationConfig; +import org.jboss.tools.portlet.ui.Messages; + +public abstract class AbstractPortletProviderInstallPanel extends LibraryP= roviderOperationPanel { + + private Button addRichFacesLibraries; + private Combo richFacesLibraryCombo; + private Text richfacesText; + private AbstractLibraryProviderInstallOperationConfig config; + private Button richfacesButton; + + @Override + public Control createControl( final Composite parent ) + { + final Composite composite =3D new Composite( parent, SWT.NONE ); + final GridLayout layout =3D new GridLayout( 1, false ); + config =3D (AbstractLibraryProviderInstallOperationConfig) getOper= ationConfig(); + = + layout.marginWidth =3D 0; + layout.marginHeight =3D 0; + composite.setLayout( layout ); + addMessage(composite); + addPortletBridgeGroup(composite); + addRichfacesGroup(composite); + return composite; + } + = + protected abstract void addMessage(Composite composite); + = + protected abstract void addPortletBridgeGroup(Composite composite); + = + protected abstract List getRichfacesTypes(); + + private void addRichfacesGroup(Composite composite) { + Group richfacesGroup =3D new Group(composite, SWT.NONE); + richfacesGroup.setLayout(new GridLayout(2, false)); + richfacesGroup.setText(Messages.JSFPortletFacetInstallPage_Richfaces_Cap= abilities); + GridData gd =3D new GridData(GridData.FILL_HORIZONTAL); + richfacesGroup.setLayoutData(gd); + addRichFacesLibraries =3D new Button(richfacesGroup,SWT.CHECK); + addRichFacesLibraries.setText(Messages.JSFPortletFacetInstallPage_Add_Ch= ange_Richfaces_Libraries); + addRichFacesLibraries.addSelectionListener(new SelectionAdapter() { + + @Override + public void widgetSelected(SelectionEvent e) { + enableRichfacesLibraries(); + config.setAddRichfacesCapabilities(addRichFacesLibraries.getSelection(= )); + } + = + }); + richFacesLibraryCombo =3D new Combo(richfacesGroup, SWT.READ_ONLY); + gd =3D new GridData(GridData.FILL_HORIZONTAL); + gd.horizontalSpan=3D2; + richFacesLibraryCombo.setLayoutData(gd); + configureRichfacesCombo(); + richFacesLibraryCombo.addSelectionListener(new SelectionAdapter() { + + @Override + public void widgetSelected(SelectionEvent e) { + boolean enabled =3DIPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES.e= quals(richFacesLibraryCombo.getText()); + richfacesText.setEnabled(enabled); + richfacesButton.setEnabled(enabled); + config.setRichfacesType(richFacesLibraryCombo.getText()); + } + = + }); + addRichFaces(richfacesGroup); + = + boolean richFacesLibrariesSelected =3D config.isAddRichfacesCapabilities= (); + addRichFacesLibraries.setSelection(richFacesLibrariesSelected); + enableRichfacesLibraries(); + richFacesLibraryCombo.select(0); + } + + private void configureRichfacesCombo() { + List types =3D getRichfacesTypes(); + for (String type:types) { + richFacesLibraryCombo.add(type); + } + } + = + private void addRichFaces(Composite parent) { + richfacesText =3D new Text(parent, SWT.SINGLE | SWT.BORDER); + richfacesText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); + + String richfacesRuntime =3D config.getRichfacesRuntime(); + if (richfacesRuntime =3D=3D null) { + richfacesRuntime =3D ""; //$NON-NLS-1$ + } + richfacesText.setText(richfacesRuntime); + richfacesText.addModifyListener(new ModifyListener() { + + public void modifyText(ModifyEvent e) { + config.setRichfacesRuntime(richfacesText.getText()); + } + + }); + + richfacesButton =3D new Button(parent, SWT.PUSH); + richfacesButton.setText(Messages.JSFPortletFacetInstallPage_Browse); + richfacesButton + .setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); + richfacesButton.addSelectionListener(new SelectionAdapter() { + public void widgetSelected(SelectionEvent e) { + handleRichFacesButtonPressed(); + } + + }); + } + = + private void handleRichFacesButtonPressed() { + String lastPath =3D richfacesText.getText(); + DirectoryDialog dialog =3D new DirectoryDialog(getShell(), SWT.MULTI); + dialog.setText(Messages.JSFPortletFacetInstallPage_Select_RichFaces_Runt= ime); + dialog.setFilterPath(lastPath); + String res =3D dialog.open(); + if (res =3D=3D null) { + return; + } + String newPath =3D dialog.getFilterPath(); + richfacesText.setText(newPath); + } + = + private void enableRichfacesLibraries() { + boolean enabled =3D addRichFacesLibraries.getSelection(); + richFacesLibraryCombo.setEnabled(enabled); + if (enabled) { + enabled =3DIPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES.equals(ric= hFacesLibraryCombo.getText()); + richfacesText.setEnabled(enabled); + richfacesButton.setEnabled(enabled); + } else { + richfacesText.setEnabled(false); + richfacesButton.setEnabled(false); + } + } + + protected Shell getShell() { + return Display.getCurrent().getActiveShell(); + } + + = +} Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/to= ols/portlet/ui/internal/libprov/JSFPortletServerRuntimeProviderInstallPanel= .java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/libprov/JSFPortletServerRuntimeProviderInstallPanel.java = 2009-09-10 22:41:38 UTC (rev 17516) +++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/libprov/JSFPortletServerRuntimeProviderInstallPanel.java = 2009-09-10 22:42:39 UTC (rev 17517) @@ -1,29 +1,34 @@ package org.jboss.tools.portlet.ui.internal.libprov; = -import static org.eclipse.wst.common.project.facet.ui.internal.util.GridLa= youtUtil.gl; +import java.util.ArrayList; +import java.util.List; = -import org.eclipse.jst.common.project.facet.ui.libprov.LibraryProviderOper= ationPanel; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Link; +import org.jboss.tools.portlet.core.IPortletConstants; import org.jboss.tools.portlet.ui.Messages; = -public class JSFPortletServerRuntimeProviderInstallPanel extends LibraryPr= oviderOperationPanel { +public class JSFPortletServerRuntimeProviderInstallPanel extends AbstractP= ortletProviderInstallPanel { = @Override - public Control createControl( final Composite parent ) - { - final Composite composite =3D new Composite( parent, SWT.NONE ); - composite.setLayout( gl( 1, 0, 0 ) ); - = - final Link link =3D new Link( composite, SWT.WRAP ); - final GridData data =3D new GridData( SWT.FILL, SWT.BEGINNING, tru= e, false ); - data.widthHint =3D 300; - link.setLayoutData( data ); - link.setText( Messages.JSFPortletServerRuntimeProviderInstallPanel= _The_targeted_runtime_contains_a_portlet_library ); - = - return composite; - } + protected void addMessage(Composite composite) { + Link link =3D new Link( composite, SWT.WRAP ); + GridData data =3D new GridData( SWT.FILL, SWT.BEGINNING, true, false = ); + data.widthHint =3D 300; + link.setLayoutData( data ); + link.setText( Messages.JSFPortletServerRuntimeProviderInstallPanel_Th= e_targeted_runtime_contains_a_portlet_library ); + } + + @Override + protected void addPortletBridgeGroup(Composite composite) { + } + = + @Override + protected List getRichfacesTypes() { + List types =3D new ArrayList(); + types.add(IPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES); + return types; + } } Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/to= ols/portlet/ui/internal/libprov/JSFPortletbridgeRuntimeProviderInstallPanel= .java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/libprov/JSFPortletbridgeRuntimeProviderInstallPanel.java = 2009-09-10 22:41:38 UTC (rev 17516) +++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/libprov/JSFPortletbridgeRuntimeProviderInstallPanel.java = 2009-09-10 22:42:39 UTC (rev 17517) @@ -1,10 +1,9 @@ package org.jboss.tools.portlet.ui.internal.libprov; = -import java.io.File; -import java.io.FilenameFilter; +import java.util.ArrayList; +import java.util.List; = import org.eclipse.jface.dialogs.IDialogSettings; -import org.eclipse.jst.common.project.facet.ui.libprov.LibraryProviderOper= ationPanel; import org.eclipse.swt.SWT; import org.eclipse.swt.events.ModifyEvent; import org.eclipse.swt.events.ModifyListener; @@ -14,40 +13,32 @@ import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.DirectoryDialog; -import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Group; -import org.eclipse.swt.widgets.Link; -import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Text; import org.jboss.tools.portlet.core.IPortletConstants; import org.jboss.tools.portlet.core.libprov.JSFPortletbridgeRuntimeLibrary= ProviderInstallOperationConfig; import org.jboss.tools.portlet.ui.Messages; import org.jboss.tools.portlet.ui.PortletUIActivator; = -public class JSFPortletbridgeRuntimeProviderInstallPanel extends LibraryPr= oviderOperationPanel { +public class JSFPortletbridgeRuntimeProviderInstallPanel extends + AbstractPortletProviderInstallPanel { = @Override - public Control createControl( final Composite parent ) - { - final Composite composite =3D new Composite( parent, SWT.NONE ); - final GridLayout layout =3D new GridLayout( 1, false ); + protected void addMessage(Composite composite) { + = + } = - layout.marginWidth =3D 0; - layout.marginHeight =3D 0; - composite.setLayout( layout ); - addPortletBridgeGroup(composite); -// final Link link =3D new Link( composite, SWT.WRAP ); -// final GridData data =3D new GridData( SWT.FILL, SWT.BEGINNING, t= rue, false ); -// data.widthHint =3D 300; -// link.setLayoutData( data ); -// link.setText( Messages.JSFPortletServerRuntimeProviderInstallPan= el_The_targeted_runtime_contains_a_portlet_library ); -// = - return composite; - } + @Override + protected List getRichfacesTypes() { + List types =3D new ArrayList(); + types.add(IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE); + types.add(IPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES); + return types; + } = - private void addPortletBridgeGroup(Composite composite) { + @Override + protected void addPortletBridgeGroup(Composite composite) { GridData gd; Group portletBridgeGroup =3D new Group(composite, SWT.NONE); portletBridgeGroup.setText(Messages.JSFPortletFacetInstallPage_Portletbr= idge_Runtime); @@ -111,8 +102,4 @@ String newPath =3D dialog.getFilterPath(); folderText.setText(newPath); } - - private Shell getShell() { - return Display.getCurrent().getActiveShell(); - } } Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/to= ols/portlet/ui/internal/libprov/PortletServerRuntimeProviderInstallPanel.ja= va =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/libprov/PortletServerRuntimeProviderInstallPanel.java 200= 9-09-10 22:41:38 UTC (rev 17516) +++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/libprov/PortletServerRuntimeProviderInstallPanel.java 200= 9-09-10 22:42:39 UTC (rev 17517) @@ -18,12 +18,16 @@ final Composite composite =3D new Composite( parent, SWT.NONE ); composite.setLayout( gl( 1, 0, 0 ) ); = - final Link link =3D new Link( composite, SWT.WRAP ); + addMessage(composite); + = + return composite; + } + + private void addMessage(final Composite composite) { + final Link link =3D new Link( composite, SWT.WRAP ); final GridData data =3D new GridData( SWT.FILL, SWT.BEGINNING, tru= e, false ); data.widthHint =3D 300; link.setLayoutData( data ); link.setText( Messages.PortletServerRuntimeProviderInstallPanel_Th= e_targeted_runtime_contains_a_portlet_library ); - = - return composite; - } + } } Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/to= ols/portlet/ui/internal/project/facet/JSFPortletFacetInstallPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/project/facet/JSFPortletFacetInstallPage.java 2009-09-10 = 22:41:38 UTC (rev 17516) +++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/project/facet/JSFPortletFacetInstallPage.java 2009-09-10 = 22:42:39 UTC (rev 17517) @@ -1,425 +1,45 @@ package org.jboss.tools.portlet.ui.internal.project.facet; = -import java.io.File; -import java.io.FilenameFilter; -import java.util.Set; - -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.NullProgressMonitor; -import org.eclipse.jdt.core.JavaCore; -import org.eclipse.jface.dialogs.IDialogSettings; import org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDel= egate; import org.eclipse.jst.common.project.facet.ui.libprov.LibraryProviderFram= eworkUi; import org.eclipse.swt.SWT; -import org.eclipse.swt.events.ModifyEvent; -import org.eclipse.swt.events.ModifyListener; -import org.eclipse.swt.events.SelectionAdapter; -import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Button; -import org.eclipse.swt.widgets.Combo; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.DirectoryDialog; -import org.eclipse.swt.widgets.Group; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.swt.widgets.Text; -import org.eclipse.ui.PlatformUI; -import org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog; -import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDat= aModelProperties; import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelProvid= er; -import org.eclipse.wst.common.frameworks.datamodel.DataModelEvent; import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory; import org.eclipse.wst.common.frameworks.datamodel.IDataModel; -import org.eclipse.wst.common.frameworks.datamodel.IDataModelListener; -import org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelSy= nchHelper; import org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWi= zardPage; -import org.eclipse.wst.common.project.facet.core.IFacetedProjectWorkingCop= y; -import org.eclipse.wst.common.project.facet.core.IProjectFacet; -import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion; import org.eclipse.wst.common.project.facet.ui.IFacetWizardPage; import org.eclipse.wst.common.project.facet.ui.IWizardContext; -import org.eclipse.wst.server.core.IRuntime; -import org.jboss.ide.eclipse.as.core.server.IJBossServerConstants; -import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime; import org.jboss.tools.portlet.core.IPortletConstants; -import org.jboss.tools.portlet.core.PortletCoreActivator; import org.jboss.tools.portlet.ui.Messages; -import org.jboss.tools.portlet.ui.PortletUIActivator; = /** * @author snjeza */ -public class JSFPortletFacetInstallPage extends DataModelWizardPage implem= ents IFacetWizardPage { +public class JSFPortletFacetInstallPage extends DataModelWizardPage implem= ents IFacetWizardPage { = = - private static final Object PORTLETBRIDGE_LIBRARY_PROVIDER =3D "jsfportle= tbridge-library-provider"; //$NON-NLS-1$ - private IDialogSettings dialogSettings; - private IDialogSettings jsfSection; - private boolean deployJars; - private String portletbridgeRuntime; - private Text folderText; - private Button folderButton; - private Button deployButton; - private Combo portletBridgeLibraryCombo; - private Combo userLibraries; - private String userLibraryName; - private Button add; - private String implementationLibrary; - //private Button addRichFacesCapabilities; - private boolean hasSeamFacet; - private Button addRichFacesLibraries; - private Combo richFacesLibraryCombo; - private Text richfacesText; - private Button richfacesButton; - private String richfacesRuntime; - private boolean richFacesLibrariesSelected; - public JSFPortletFacetInstallPage() { super(DataModelFactory.createDataModel(new AbstractDataModelProvider() { }), "jboss.jsfportal.facet.install.page"); //$NON-NLS-1$ setTitle(Messages.JSFPortletFacetInstallPage_JBoss_JSF_Portlet_Capabilit= ies); setDescription(Messages.JSFPortletFacetInstallPage_Add_JBoss_JSF_Portlet= _capabilities_to_this_Web_Project); - // ImageDescriptor imageDesc =3D getDefaultPageImageDescriptor( ); - // if ( imageDesc !=3D null ) - // setImageDescriptor( imageDesc ); - dialogSettings =3D PortletUIActivator.getDefault().getDialogSettings(); - jsfSection =3D dialogSettings.getSection(IPortletConstants.JSF_SECTION); - if (jsfSection =3D=3D null) { - jsfSection =3D dialogSettings - .addNewSection(IPortletConstants.JSF_SECTION); - deployJars =3D true; - portletbridgeRuntime =3D ""; //$NON-NLS-1$ - jsfSection.put(IPortletConstants.PORTLET_BRIDGE_RUNTIME, - portletbridgeRuntime); - = - richfacesRuntime =3D ""; //$NON-NLS-1$ - jsfSection.put(IPortletConstants.RICHFACES_RUNTIME, - richfacesRuntime); - = - implementationLibrary =3D IPortletConstants.LIBRARIES_PROVIDED_BY_PORTL= ETBRIDGE; - jsfSection.put(IPortletConstants.IMPLEMENTATION_LIBRARY, implementation= Library); - = - richFacesLibrariesSelected =3D false; - jsfSection.put(IPortletConstants.RICHFACES_LIBRARIES_SELECTED, richFace= sLibrariesSelected); - = - = - } else { - deployJars =3D jsfSection.getBoolean(IPortletConstants.DEPLOY_JARS); - portletbridgeRuntime =3D jsfSection - .get(IPortletConstants.PORTLET_BRIDGE_RUNTIME); - if (portletbridgeRuntime =3D=3D null) { - portletbridgeRuntime =3D ""; //$NON-NLS-1$ - jsfSection.put(IPortletConstants.PORTLET_BRIDGE_RUNTIME, - portletbridgeRuntime); - } - implementationLibrary =3D jsfSection.get(IPortletConstants.IMPLEMENTATI= ON_LIBRARY); - if (implementationLibrary =3D=3D null) { - implementationLibrary =3D IPortletConstants.LIBRARIES_PROVIDED_BY_PORT= LETBRIDGE; - jsfSection.put(IPortletConstants.IMPLEMENTATION_LIBRARY, implementatio= nLibrary); - } - richfacesRuntime =3D jsfSection - .get(IPortletConstants.RICHFACES_RUNTIME); - if (richfacesRuntime =3D=3D null) { - richfacesRuntime =3D ""; //$NON-NLS-1$ - jsfSection.put(IPortletConstants.RICHFACES_RUNTIME, - richfacesRuntime); - } - richFacesLibrariesSelected =3D jsfSection.getBoolean(IPortletConstants.= RICHFACES_LIBRARIES_SELECTED); - } - } = protected Composite createTopLevelComposite(Composite parent) { initializeDialogUnits(parent); Composite composite =3D new Composite(parent, SWT.NONE); composite.setLayout(new GridLayout(1, false)); - // createButton(composite); LibraryInstallDelegate librariesInstallDelegate=3D (LibraryInstallDelega= te) getDataModel().getProperty( IPortletConstants.JSFPORTLET_LIBRARY_PROVID= ER_DELEGATE ); Control librariesComposite=3D LibraryProviderFrameworkUi.createInstallLi= braryPanel( composite, librariesInstallDelegate, Messages.JSFP= ortletFacetInstallPage_JSFPortletImplementationLibrariesFrame ); GridData gd =3D new GridData( GridData.FILL_HORIZONTAL ); librariesComposite.setLayoutData( gd ); = - synchHelper =3D new DataModelSynchHelper(model); - //addFolderGroup(composite); - = return composite; } - - private void createButton(Composite composite) { - deployButton =3D new Button(composite, SWT.CHECK); - deployButton.setText(Messages.JSFPortletFacetInstallPage_Deploy_jars); - deployButton.setSelection(deployJars); - deployButton.addSelectionListener(new SelectionAdapter() { - - @Override - public void widgetSelected(SelectionEvent e) { - model.setBooleanProperty(IPortletConstants.DEPLOY_JARS, - deployButton.getSelection()); - } - - }); - } - - private void addFolderGroup(Composite composite) { -// portletBridgeLibraryCombo =3D new Combo(composite, SWT.READ_ONLY); -// GridData gd =3D new GridData(GridData.FILL_HORIZONTAL); -// portletBridgeLibraryCombo.setLayoutData(gd); -// portletBridgeLibraryCombo.addSelectionListener(new SelectionAdapter() { -// -// @Override -// public void widgetSelected(SelectionEvent e) { -// boolean enabled =3D IPortletConstants.USER_LIBRARY -// .equals(portletBridgeLibraryCombo.getText()); -// userLibraries.setEnabled(enabled); -// add.setEnabled(enabled); -// -// enabled =3D IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE.eq= uals(portletBridgeLibraryCombo.getText()); -// folderText.setEnabled(enabled); -// folderButton.setEnabled(enabled); -// model.setProperty(IPortletConstants.IMPLEMENTATION_LIBRARY, -// portletBridgeLibraryCombo.getText()); -// model.setProperty(IPortletConstants.PORTLET_BRIDGE_RUNTIME,folderTex= t.getText().trim()); -// model.setProperty(IPortletConstants.USER_LIBRARY_NAME,userLibraries.= getText()); -// if (IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE.equals(por= tletBridgeLibraryCombo.getText())) { -// richFacesLibraryCombo.removeAll(); -// richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_P= ORTLETBRIDGE); -// richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_R= ICHFACES); -// richFacesLibraryCombo.select(0); -// } else { -// richFacesLibraryCombo.removeAll(); -// richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_R= ICHFACES); -// richFacesLibraryCombo.select(0); -// } -// validatePage(); -// } -// -// }); -// = -// if (portletBridgeLibrariesExistOnServer()) { -// portletBridgeLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY= _SERVER_RUNTIME); -// } -// portletBridgeLibraryCombo.add(IPortletConstants.USER_LIBRARY); -// = -// addUserLibraryGroup(composite); -// = -// portletBridgeLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_= PORTLETBRIDGE); -// = -// addPortletBridgeGroup(composite); -// = -// portletBridgeLibraryCombo.setText(implementationLibrary); -// = -// synchHelper.synchCombo(portletBridgeLibraryCombo, IPortletConstants.IM= PLEMENTATION_LIBRARY, null); -// = - = - Group richfacesGroup =3D new Group(composite, SWT.NONE); - richfacesGroup.setLayout(new GridLayout(2, false)); - richfacesGroup.setText(Messages.JSFPortletFacetInstallPage_Richfaces_Cap= abilities); - GridData gd =3D new GridData(GridData.FILL_HORIZONTAL); - richfacesGroup.setLayoutData(gd); - /* - addRichFacesCapabilities=3D new Button(richfacesGroup,SWT.CHECK); - gd =3D new GridData(GridData.FILL_HORIZONTAL); - gd.horizontalSpan=3D2; - addRichFacesCapabilities.setLayoutData(gd); - synchHelper.synchCheckbox(addRichFacesCapabilities, IPortletConstants.RI= CHFACES_CAPABILITIES, null); - = - addRichFacesCapabilities.setText("Add Richfaces Capabilities"); - = - if (hasSeamFacet) { - addRichFacesCapabilities.setSelection(true); - addRichFacesCapabilities.setEnabled(false); - } - */ - addRichFacesLibraries=3D new Button(richfacesGroup,SWT.CHECK); - addRichFacesLibraries.setText(Messages.JSFPortletFacetInstallPage_Add_Ch= ange_Richfaces_Libraries); - synchHelper.synchCheckbox(addRichFacesLibraries, IPortletConstants.RICHF= ACES_LIBRARIES_SELECTED, null); - = - addRichFacesLibraries.addSelectionListener(new SelectionAdapter() { - - @Override - public void widgetSelected(SelectionEvent e) { - enableRichfacesLibraries(); - } - = - }); - richFacesLibraryCombo =3D new Combo(richfacesGroup, SWT.READ_ONLY); - gd =3D new GridData(GridData.FILL_HORIZONTAL); - gd.horizontalSpan=3D2; - richFacesLibraryCombo.setLayoutData(gd); - richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLE= TBRIDGE); - richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_RICHFA= CES); - synchHelper.synchCombo(richFacesLibraryCombo, IPortletConstants.RICHFACE= S_LIBRARIES_TYPE, null); - richFacesLibraryCombo.addSelectionListener(new SelectionAdapter() { - - @Override - public void widgetSelected(SelectionEvent e) { - boolean enabled =3DIPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES.e= quals(richFacesLibraryCombo.getText()); - richfacesText.setEnabled(enabled); - richfacesButton.setEnabled(enabled); - validatePage(); - } - = - }); - addRichFaces(richfacesGroup); - changeRichFaces(); - getDataModel().addListener(new IDataModelListener() { - = - public void propertyChanged(DataModelEvent event) { - String propertyName =3D event.getPropertyName(); - if (IPortletConstants.JSFPORTLET_LIBRARY_PROVIDER_DELEGATE.equals(prop= ertyName)) { - changeRichFaces(); - } - } - }); - = - addRichFacesLibraries.setSelection(richFacesLibrariesSelected); - enableRichfacesLibraries(); - richFacesLibraryCombo.select(0); - = - //validatePage(); - } - - private void changeRichFaces() { - LibraryInstallDelegate librariesInstallDelegate=3D (LibraryInstallDelega= te) getDataModel().getProperty( IPortletConstants.JSFPORTLET_LIBRARY_PROVID= ER_DELEGATE ); - String providerId =3D librariesInstallDelegate.getLibraryProvider().getI= d(); - if (providerId !=3D null && providerId.equals(PORTLETBRIDGE_LIBRARY_PROV= IDER)) { - richFacesLibraryCombo.removeAll(); - richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_PORTL= ETBRIDGE); - richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_RICHF= ACES); - richFacesLibraryCombo.select(0); - } else { - richFacesLibraryCombo.removeAll(); - richFacesLibraryCombo.add(IPortletConstants.LIBRARIES_PROVIDED_BY_RICHF= ACES); - richFacesLibraryCombo.select(0); - } - boolean enabled =3DIPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES.equ= als(richFacesLibraryCombo.getText()); - richfacesText.setEnabled(enabled); - richfacesButton.setEnabled(enabled); - } - private void addRichFaces(Composite parent) { - richfacesText =3D new Text(parent, SWT.SINGLE | SWT.BORDER); - richfacesText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); - synchHelper.synchText(richfacesText, - IPortletConstants.RICHFACES_RUNTIME, null); - - richfacesText.setText(richfacesRuntime); - richfacesText.addModifyListener(new ModifyListener() { - - public void modifyText(ModifyEvent e) { - validateRichFaces(); - } - - }); - - richfacesButton =3D new Button(parent, SWT.PUSH); - richfacesButton.setText(Messages.JSFPortletFacetInstallPage_Browse); - richfacesButton - .setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); - richfacesButton.addSelectionListener(new SelectionAdapter() { - public void widgetSelected(SelectionEvent e) { - handleRichFacesButtonPressed(); - } - - }); - } - - private void addPortletBridgeGroup(Composite composite) { - GridData gd; - Group portletBridgeGroup =3D new Group(composite, SWT.NONE); - portletBridgeGroup.setText(Messages.JSFPortletFacetInstallPage_Portletbr= idge_Runtime); - portletBridgeGroup.setLayout(new GridLayout(2, false)); - gd =3D new GridData(GridData.FILL_HORIZONTAL); - portletBridgeGroup.setLayoutData(gd); - = - folderText =3D new Text(portletBridgeGroup, SWT.SINGLE | SWT.BORDER); - folderText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); - synchHelper.synchText(folderText, - IPortletConstants.PORTLET_BRIDGE_RUNTIME, null); - - folderText.setText(portletbridgeRuntime); - folderText.addModifyListener(new ModifyListener() { - - public void modifyText(ModifyEvent e) { - validatePortletBridge(); - } - - }); - - folderButton =3D new Button(portletBridgeGroup, SWT.PUSH); - folderButton.setText(Messages.JSFPortletFacetInstallPage_Browse); - folderButton - .setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); - folderButton.addSelectionListener(new SelectionAdapter() { - public void widgetSelected(SelectionEvent e) { - handleFolderButtonPressed(); - } - - }); - } - - private void addUserLibraryGroup(Composite composite) { - GridData gd; - Group userLibrariesGroup =3D new Group(composite, SWT.NONE); - userLibrariesGroup.setText(Messages.PortletFacetInstallPage_User_Library= ); - userLibrariesGroup.setLayout(new GridLayout(2, false)); - gd =3D new GridData(GridData.FILL_HORIZONTAL); - userLibrariesGroup.setLayoutData(gd); - userLibraries =3D new Combo(userLibrariesGroup, SWT.READ_ONLY); - gd =3D new GridData(GridData.FILL_HORIZONTAL); - userLibraries.setLayoutData(gd); - synchHelper.synchCombo(userLibraries, IPortletConstants.USER_LIBRARY_NAM= E, null); - setLibraryCombo(); - add =3D new Button(userLibrariesGroup, SWT.PUSH); - add.setText(Messages.PortletFacetInstallPage_Add); - add.addSelectionListener(new SelectionAdapter() { - - @Override - public void widgetSelected(SelectionEvent e) { - Shell shell =3D PlatformUI.getWorkbench().getActiveWorkbenchWindow().g= etShell(); - WorkbenchPreferenceDialog dialog =3D WorkbenchPreferenceDialog - .createDialogOn(shell, "org.eclipse.jdt.ui.preferences.UserLibraryPref= erencePage"); //$NON-NLS-1$ - if (dialog !=3D null) { - dialog.open(); - setLibraryCombo(); - } - } - = - }); - boolean enabled =3D IPortletConstants.USER_LIBRARY.equals(portletBridgeL= ibraryCombo - .getText()); - userLibraries.setEnabled(enabled); - userLibraries.addSelectionListener(new SelectionAdapter() { - @Override - public void widgetSelected(SelectionEvent e) { - model.setProperty(IPortletConstants.USER_LIBRARY_NAME, - userLibraries - .getText()); - userLibraryName =3D userLibraries.getText(); - validatePage(); - } - }); - add.setEnabled(enabled); - } - - private void setLibraryCombo() { - String[] libraryNames =3D JavaCore.getUserLibraryNames(); - boolean exists =3D false; - for (int i =3D 0; i < libraryNames.length; i++) { - userLibraries.add(libraryNames[i]); - if (libraryNames[i].equals(userLibraryName)) { - exists =3D true; - } - } - if (exists) { - userLibraries.setText(userLibraryName); - } else { - userLibraries.select(0); - userLibraryName =3D userLibraries.getText(); - } - validatePage(); - } = @Override protected String[] getValidationPropertyNames() { @@ -428,11 +48,8 @@ = public void setConfig(Object config) { model.removeListener(this); - synchHelper.dispose(); - model =3D (IDataModel) config; model.addListener(this); - synchHelper =3D initializeSynchHelper(model); } = @Override @@ -449,188 +66,4 @@ = } = - private boolean portletBridgeLibrariesExistOnServer() { - IFacetedProjectWorkingCopy fpwc =3D (IFacetedProjectWorkingCopy) model.g= etProperty(IFacetDataModelProperties.FACETED_PROJECT_WORKING_COPY); - Set facets =3D fpwc.getProjectFacets(); - hasSeamFacet =3D false; - for(IProjectFacetVersion facet:facets) { - IProjectFacet projectFacet =3D facet.getProjectFacet(); - if ("jst.seam".equals(projectFacet.getId())) { //$NON-NLS-1$ - hasSeamFacet =3D true; - break; - } - } - = - org.eclipse.wst.common.project.facet.core.runtime.IRuntime facetRuntime = =3D fpwc.getPrimaryRuntime(); - if (facetRuntime =3D=3D null) { - return false; - } - IRuntime runtime =3D PortletCoreActivator.getRuntime(facetRuntime); - IJBossServerRuntime jbossRuntime =3D (IJBossServerRuntime)runtime.loadAd= apter(IJBossServerRuntime.class, new NullProgressMonitor()); - if (jbossRuntime !=3D null) { - // JBoss Portal server - IPath jbossLocation =3D runtime.getLocation(); - IPath configPath =3D jbossLocation.append(IJBossServerConstants.SERVER)= .append(jbossRuntime.getJBossConfiguration()); - File configFile =3D configPath.toFile(); - if (hasPortletbridgeLibraries(new File(configFile,IPortletConstants.POR= TLET_SAR_LIB))) { - return true; - } - if (hasPortletbridgeLibraries(new File(configFile,IPortletConstants.POR= TLET_SAR_HA_LIB))) { - return true; - } - } - return false; - } - - private boolean hasPortletbridgeLibraries(File file) { - if (file !=3D null && file.isDirectory()) { - String[] list =3D file.list(new FilenameFilter() { - - public boolean accept(File dir, String name) { - if ("portletbridge-api.jar".equals(name) || //$NON-NLS-1$ - "portletbridge-impl.jar".equals(name)) { //$NON-NLS-1$ - return true; - } - return false; - } - = - }); - return list.length =3D=3D 2; - } - return false; - } - = - private boolean validatePortletBridge() { - if (!IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE.equals(portle= tBridgeLibraryCombo.getText())) { - setErrorMessage(null); - setPageComplete(true); - return true; - } - String folderString =3D folderText.getText(); - folderString =3D folderString.trim(); - if (folderString.length() <=3D 0) { - setErrorMessage(Messages.JSFPortletFacetInstallPage_Portletbridge_Runti= me_directory_is_required); - setPageComplete(false); - return false; - } - File folder =3D new File(folderString); - if (!folder.exists() || !folder.isDirectory()) { - setInvalidPortletbridgeRuntime(); - return false; - } - String[] fileList =3D folder.list(new FilenameFilter() { - - public boolean accept(File dir, String name) { - if (name.startsWith("portletbridge") || name.endsWith(".jar")) { //$NO= N-NLS-1$ //$NON-NLS-2$ - return true; - } - return false; - } - - }); - if (fileList.length < 2) { - setInvalidPortletbridgeRuntime(); - return false; - } - portletbridgeRuntime =3D folderText.getText(); - setErrorMessage(null); - setPageComplete(true); - return true; - } - - private boolean validateRichFaces() { - if (richFacesLibraryCombo =3D=3D null) { - return true; - } - if (!IPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES.equals(richFacesL= ibraryCombo.getText())) { - setErrorMessage(null); - setPageComplete(true); - return true; - } - String folderString =3D richfacesText.getText(); - folderString =3D folderString.trim(); - if (folderString.length() <=3D 0) { - setErrorMessage(Messages.JSFPortletFacetInstallPage_RichFaces_Runtime_d= irectory_is_required); - setPageComplete(false); - return false; - } - File folder =3D new File(folderString); - if (!folder.exists() || !folder.isDirectory()) { - setInvalidRichfacesRuntime(); - return false; - } - folder =3D new File(folder,"lib"); //$NON-NLS-1$ - if (!folder.exists() || !folder.isDirectory()) { - setInvalidRichfacesRuntime(); - return false; - } - String[] fileList =3D folder.list(new FilenameFilter() { - - public boolean accept(File dir, String name) { - if (name.startsWith("richfaces") || name.endsWith(".jar")) { //$NON-NL= S-1$ //$NON-NLS-2$ - return true; - } - return false; - } - - }); - if (fileList.length < 3) { - setInvalidRichfacesRuntime(); - return false; - } - richfacesRuntime =3D richfacesText.getText(); - setErrorMessage(null); - setPageComplete(true); - return true; - } - - private void setInvalidRichfacesRuntime() { - setErrorMessage(Messages.JSFPortletFacetInstallPage_Invalid_Richfaces_Ru= ntime_directory); - setPageComplete(false); - } - = - private void setInvalidPortletbridgeRuntime() { - setErrorMessage(Messages.JSFPortletFacetInstallPage_Invalid_Portletbridg= e_Runtime_directory); - setPageComplete(false); - } - - private void handleFolderButtonPressed() { - String lastPath =3D folderText.getText(); - DirectoryDialog dialog =3D new DirectoryDialog(getShell(), SWT.MULTI); - dialog.setText(Messages.JSFPortletFacetInstallPage_Select_Portletbridge_= Runtime); - dialog.setFilterPath(lastPath); - String res =3D dialog.open(); - if (res =3D=3D null) { - return; - } - String newPath =3D dialog.getFilterPath(); - folderText.setText(newPath); - } - = - private void handleRichFacesButtonPressed() { - String lastPath =3D richfacesText.getText(); - DirectoryDialog dialog =3D new DirectoryDialog(getShell(), SWT.MULTI); - dialog.setText(Messages.JSFPortletFacetInstallPage_Select_RichFaces_Runt= ime); - dialog.setFilterPath(lastPath); - String res =3D dialog.open(); - if (res =3D=3D null) { - return; - } - String newPath =3D dialog.getFilterPath(); - richfacesText.setText(newPath); - } - - private void enableRichfacesLibraries() { - boolean enabled =3D addRichFacesLibraries.getSelection(); - richFacesLibraryCombo.setEnabled(enabled); - if (enabled) { - enabled =3DIPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES.equals(ric= hFacesLibraryCombo.getText()); - richfacesText.setEnabled(enabled); - richfacesButton.setEnabled(enabled); - } else { - richfacesText.setEnabled(false); - richfacesButton.setEnabled(false); - } - } - } Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/to= ols/portlet/ui/internal/project/facet/PortletFacetInstallPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/project/facet/PortletFacetInstallPage.java 2009-09-10 22:= 41:38 UTC (rev 17516) +++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/project/facet/PortletFacetInstallPage.java 2009-09-10 22:= 42:39 UTC (rev 17517) @@ -1,23 +1,12 @@ package org.jboss.tools.portlet.ui.internal.project.facet; = -import org.eclipse.jdt.core.JavaCore; -import org.eclipse.jface.dialogs.IDialogSettings; import org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDel= egate; import org.eclipse.jst.common.project.facet.ui.libprov.LibraryProviderFram= eworkUi; import org.eclipse.swt.SWT; -import org.eclipse.swt.events.SelectionAdapter; -import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Button; -import org.eclipse.swt.widgets.Combo; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.Display; -import org.eclipse.swt.widgets.Group; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.ui.PlatformUI; -import org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog; import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelProvid= er; import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory; import org.eclipse.wst.common.frameworks.datamodel.IDataModel; @@ -25,9 +14,7 @@ import org.eclipse.wst.common.project.facet.ui.IFacetWizardPage; import org.eclipse.wst.common.project.facet.ui.IWizardContext; import org.jboss.tools.portlet.core.IPortletConstants; -import org.jboss.tools.portlet.core.PortletCoreActivator; import org.jboss.tools.portlet.ui.Messages; -import org.jboss.tools.portlet.ui.PortletUIActivator; = /** * @author snjeza @@ -35,70 +22,13 @@ public class PortletFacetInstallPage extends DataModelWizardPage implements IFacetWizardPage { = - private IDialogSettings dialogSettings; - private Combo implementationLibraryCombo; - private boolean deployPortletJars; - private boolean enableImplementationLibraryValue; - private Button enableImplementationLibrary; - //private Button deployButton; - private IDialogSettings portletSection; - private String implementationLibrary; - private Combo userLibraries; - private String userLibraryName=3Dnull; - private Button add; - public PortletFacetInstallPage() { super(DataModelFactory.createDataModel(new AbstractDataModelProvider() { }), "jboss.portal.facet.install.page"); //$NON-NLS-1$ setTitle(Messages.PortletFacetInstallPage_JBoss_Portlet_Capabilities); setDescription(Messages.PortletFacetInstallPage_Add_JBoss_Portlet_capabi= lities_to_this_Web_Project); - dialogSettings =3D PortletUIActivator.getDefault().getDialogSettings(); - portletSection =3D dialogSettings - .getSection(IPortletConstants.PORTLET_SECTION); - if (portletSection =3D=3D null) { - portletSection =3D dialogSettings - .addNewSection(IPortletConstants.PORTLET_SECTION); - deployPortletJars =3D false; - enableImplementationLibraryValue =3D true; - portletSection.put(IPortletConstants.DEPLOY_PORTLET_JARS, - deployPortletJars); - portletSection.put(IPortletConstants.ENABLE_IMPLEMENTATION_LIBRARY, - enableImplementationLibraryValue); - implementationLibrary =3D getDefaultImplementationLibrary(); - portletSection.put(IPortletConstants.IMPLEMENTATION_LIBRARY, - implementationLibrary); - userLibraryName =3D null; - } else { - deployPortletJars =3D portletSection - .getBoolean(IPortletConstants.DEPLOY_PORTLET_JARS); - enableImplementationLibraryValue =3D portletSection - .getBoolean(IPortletConstants.ENABLE_IMPLEMENTATION_LIBRARY); - implementationLibrary =3D portletSection - .get(IPortletConstants.IMPLEMENTATION_LIBRARY); - if (implementationLibrary =3D=3D null - || implementationLibrary.trim().length() <=3D 0) { - implementationLibrary =3D getDefaultImplementationLibrary(); - portletSection.put(IPortletConstants.IMPLEMENTATION_LIBRARY, - implementationLibrary); - } - userLibraryName =3D portletSection.get(IPortletConstants.USER_LIBRARY_N= AME); - = - } } = - private String getDefaultImplementationLibrary() { - boolean checkRuntimes =3D PortletCoreActivator.getDefault() - .getPluginPreferences().getBoolean( - PortletCoreActivator.CHECK_RUNTIMES); - if (checkRuntimes) { - implementationLibrary =3D IPortletConstants.LIBRARIES_PROVIDED_BY_SERVE= R_RUNTIME; - } else { - //implementationLibrary =3D IPortletConstants.LIBRARY_PROVIDED_BY_JBOSS= _TOOLS; - implementationLibrary =3D IPortletConstants.USER_LIBRARY; - } - return implementationLibrary; - } - @Override protected Composite createTopLevelComposite(Composite parent) { initializeDialogUnits(parent); @@ -112,152 +42,9 @@ gd =3D new GridData( GridData.FILL_HORIZONTAL ); librariesComposite.setLayoutData( gd ); = - /*enableImplementationLibrary =3D new Button(composite, SWT.CHECK); - enableImplementationLibrary.setText(Messages.PortletFacetInstallPage_Ena= ble_implementation_library); - enableImplementationLibrary - .setSelection(enableImplementationLibraryValue); - enableImplementationLibrary - .addSelectionListener(new SelectionAdapter() { - - @Override - public void widgetSelected(SelectionEvent e) { - boolean enabled =3D enableImplementationLibrary - .getSelection(); - model.setBooleanProperty( - IPortletConstants.ENABLE_IMPLEMENTATION_LIBRARY, - enabled); - implementationLibraryCombo.setEnabled(enabled); - if (enabled) { - boolean enableUserLibs =3D IPortletConstants.USER_LIBRARY.equals(im= plementationLibraryCombo.getText()); - userLibraries.setEnabled(enableUserLibs); - add.setEnabled(enableUserLibs); - } else { - userLibraries.setEnabled(enabled); - add.setEnabled(enabled); - } - //deployButton.setEnabled(enabled); - validatePage(); - } - - }); - implementationLibraryCombo =3D new Combo(composite, SWT.READ_ONLY); - implementationLibraryCombo.add(IPortletConstants.USER_LIBRARY); - //implementationLibraryCombo.add(IPortletConstants.LIBRARY_PROVIDED_BY_J= BOSS_TOOLS); - gd =3D new GridData(GridData.FILL_HORIZONTAL); - implementationLibraryCombo.setLayoutData(gd); - boolean checkRuntimes =3D PortletCoreActivator.getDefault() - .getPluginPreferences().getBoolean( - PortletCoreActivator.CHECK_RUNTIMES); - if (checkRuntimes) { - implementationLibraryCombo - .add(IPortletConstants.LIBRARIES_PROVIDED_BY_SERVER_RUNTIME); - implementationLibraryCombo.setText(implementationLibrary); - } else { - //if (IPortletConstants.LIBRARIES_PROVIDED_BY_SERVER_RUNTIME - // .equals(implementationLibrary)) { - //implementationLibraryCombo - // .setText(IPortletConstants.LIBRARY_PROVIDED_BY_JBOSS_TOOLS); - implementationLibraryCombo - .setText(IPortletConstants.USER_LIBRARY); - //} else { - // implementationLibraryCombo.setText(implementationLibrary); - //} - } - model.setProperty(IPortletConstants.IMPLEMENTATION_LIBRARY, - implementationLibraryCombo - .getText()); - Group userLibrariesGroup =3D new Group(composite, SWT.NONE); - userLibrariesGroup.setText(Messages.PortletFacetInstallPage_User_Library= ); - userLibrariesGroup.setLayout(new GridLayout(2, false)); - gd =3D new GridData(GridData.FILL_HORIZONTAL); - userLibrariesGroup.setLayoutData(gd); - userLibraries =3D new Combo(userLibrariesGroup, SWT.READ_ONLY); - gd =3D new GridData(GridData.FILL_HORIZONTAL); - userLibraries.setLayoutData(gd); - setLibraryCombo(); - add =3D new Button(userLibrariesGroup, SWT.PUSH); - add.setText(Messages.PortletFacetInstallPage_Add); - add.addSelectionListener(new SelectionAdapter() { - - @Override - public void widgetSelected(SelectionEvent e) { - Shell shell =3D PlatformUI.getWorkbench().getActiveWorkbenchWindow().g= etShell(); - WorkbenchPreferenceDialog dialog =3D WorkbenchPreferenceDialog - .createDialogOn(shell, "org.eclipse.jdt.ui.preferences.UserLibraryPref= erencePage"); //$NON-NLS-1$ - if (dialog !=3D null) { - dialog.open(); - setLibraryCombo(); - } - } - = - }); - boolean enabled =3D IPortletConstants.USER_LIBRARY.equals(implementation= LibraryCombo - .getText()); - userLibraries.setEnabled(enabled); - userLibraries.addSelectionListener(new SelectionAdapter() { - @Override - public void widgetSelected(SelectionEvent e) { - model.setProperty(IPortletConstants.USER_LIBRARY_NAME, - userLibraries - .getText()); - userLibraryName =3D userLibraries.getText(); - validatePage(); - } - }); - add.setEnabled(enabled); - implementationLibraryCombo.addSelectionListener(new SelectionAdapter() { - - @Override - public void widgetSelected(SelectionEvent e) { - boolean enabled =3D IPortletConstants.USER_LIBRARY - .equals(implementationLibraryCombo.getText()); - userLibraries.setEnabled(enabled); - add.setEnabled(enabled); - model.setProperty(IPortletConstants.IMPLEMENTATION_LIBRARY, - implementationLibraryCombo - .getText()); - validatePage(); - } - - }); - - model.setProperty(IPortletConstants.USER_LIBRARY_NAME, - userLibraries - .getText()); -*/ /*deployButton =3D new Button(composite, SWT.CHECK); - deployButton.setText(Messages.JSFPortletFacetInstallPage_Deploy_jars); - deployButton.setSelection(deployPortletJars); - deployButton.addSelectionListener(new SelectionAdapter() { - - @Override - public void widgetSelected(SelectionEvent e) { - model.setBooleanProperty(IPortletConstants.DEPLOY_PORTLET_JARS, - deployButton.getSelection()); - } - - }); */ - //validatePage(); return composite; } = - private void setLibraryCombo() { - String[] libraryNames =3D JavaCore.getUserLibraryNames(); - boolean exists =3D false; - for (int i =3D 0; i < libraryNames.length; i++) { - userLibraries.add(libraryNames[i]); - if (libraryNames[i].equals(userLibraryName)) { - exists =3D true; - } - } - if (exists) { - userLibraries.setText(userLibraryName); - } else { - userLibraries.select(0); - userLibraryName =3D userLibraries.getText(); - } - validatePage(); - } - @Override protected String[] getValidationPropertyNames() { return new String[] { IPortletConstants.PORTLET_LIBRARY_PROVIDER_DELEGAT= E }; @@ -265,11 +52,9 @@ = public void setConfig(Object config) { model.removeListener(this); - synchHelper.dispose(); - + = model =3D (IDataModel) config; model.addListener(this); - synchHelper =3D initializeSynchHelper(model); } = @Override @@ -286,32 +71,4 @@ = } = - @Override - public void storeDefaultSettings() { - Display.getDefault().syncExec(new Runnable() { - - public void run() { - /*if (deployButton !=3D null) { - portletSection.put(IPortletConstants.DEPLOY_PORTLET_JARS, - deployButton.getSelection()); - }*/ - if (enableImplementationLibrary !=3D null) { - portletSection.put(IPortletConstants.ENABLE_IMPLEMENTATION_LIBRARY, - enableImplementationLibrary.getSelection()); - } - if (implementationLibraryCombo !=3D null) { - portletSection.put(IPortletConstants.IMPLEMENTATION_LIBRARY, - implementationLibraryCombo.getText()); - } - if (userLibraries !=3D null) { - portletSection.put(IPortletConstants.USER_LIBRARY_NAME, - userLibraries.getText()); - } - = - } - = - }); - super.storeDefaultSettings(); - } - } --===============2119431696613327589==-- From jbosstools-commits at lists.jboss.org Thu Sep 10 18:42:52 2009 Content-Type: multipart/mixed; boundary="===============0130164338559549942==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17518 - trunk/seam/tests. Date: Thu, 10 Sep 2009 18:42:52 -0400 Message-ID: <200909102242.n8AMgq1b032218@svn01.web.mwc.hst.phx2.redhat.com> --===============0130164338559549942== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-10 18:42:52 -0400 (Thu, 10 Sep 2009) New Revision: 17518 Added: trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/ Log: https://jira.jboss.org/jira/browse/JBIDE-3892 - Increase JUnit test's cover= age up to 60% Share project "org.jboss.tools.seam.ui.pages.test" into "https://svn.jboss.= org/repos/jbosstools" --===============0130164338559549942==-- From jbosstools-commits at lists.jboss.org Thu Sep 10 18:43:40 2009 Content-Type: multipart/mixed; boundary="===============5767501499538971500==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17519 - trunk/seam/tests. Date: Thu, 10 Sep 2009 18:43:40 -0400 Message-ID: <200909102243.n8AMheB6032336@svn01.web.mwc.hst.phx2.redhat.com> --===============5767501499538971500== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-10 18:43:40 -0400 (Thu, 10 Sep 2009) New Revision: 17519 Added: trunk/seam/tests/org.jboss.tools.seam.xml.test/ Log: https://jira.jboss.org/jira/browse/JBIDE-3892 - Increase JUnit test's cover= age up to 60% Share project "org.jboss.tools.seam.xml.test" into "https://svn.jboss.org/r= epos/jbosstools" --===============5767501499538971500==-- From jbosstools-commits at lists.jboss.org Thu Sep 10 18:44:21 2009 Content-Type: multipart/mixed; boundary="===============0444671461177342868==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17520 - trunk/seam/tests. Date: Thu, 10 Sep 2009 18:44:21 -0400 Message-ID: <200909102244.n8AMiLPq032442@svn01.web.mwc.hst.phx2.redhat.com> --===============0444671461177342868== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-10 18:44:21 -0400 (Thu, 10 Sep 2009) New Revision: 17520 Added: trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/ Log: https://jira.jboss.org/jira/browse/JBIDE-3892 - Increase JUnit test's cover= age up to 60% Share project "org.jboss.tools.seam.xml.ui.test" into "https://svn.jboss.or= g/repos/jbosstools" --===============0444671461177342868==-- From jbosstools-commits at lists.jboss.org Thu Sep 10 18:58:06 2009 Content-Type: multipart/mixed; boundary="===============8417826374190511698==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17521 - in trunk/seam: features/org.jboss.tools.seam.test.feature and 47 other directories. Date: Thu, 10 Sep 2009 18:58:06 -0400 Message-ID: <200909102258.n8AMw6UD003023@svn01.web.mwc.hst.phx2.redhat.com> --===============8417826374190511698== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-10 18:58:05 -0400 (Thu, 10 Sep 2009) New Revision: 17521 Added: trunk/seam/features/org.jboss.tools.seam.test.feature/.classpath trunk/seam/features/org.jboss.tools.seam.test.feature/.project trunk/seam/features/org.jboss.tools.seam.test.feature/.settings/ trunk/seam/features/org.jboss.tools.seam.test.feature/.settings/org.ecli= pse.jdt.core.prefs trunk/seam/features/org.jboss.tools.seam.test.feature/META-INF/ trunk/seam/features/org.jboss.tools.seam.test.feature/META-INF/MANIFEST.= MF trunk/seam/features/org.jboss.tools.seam.test.feature/build.properties trunk/seam/features/org.jboss.tools.seam.test.feature/src/ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam= /core/test/SeamPluginsLoadTest.java trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam= /core/test/project/facet/ZupUtilsTest.java trunk/seam/tests/org.jboss.tools.seam.text.ext.test/.classpath trunk/seam/tests/org.jboss.tools.seam.text.ext.test/.project trunk/seam/tests/org.jboss.tools.seam.text.ext.test/.settings/ trunk/seam/tests/org.jboss.tools.seam.text.ext.test/.settings/org.eclips= e.jdt.core.prefs trunk/seam/tests/org.jboss.tools.seam.text.ext.test/META-INF/ trunk/seam/tests/org.jboss.tools.seam.text.ext.test/META-INF/MANIFEST.MF trunk/seam/tests/org.jboss.tools.seam.text.ext.test/build.properties trunk/seam/tests/org.jboss.tools.seam.text.ext.test/src/ trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/.classpath trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/.project trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/.settings/ trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/.settings/org.eclips= e.jdt.core.prefs trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/META-INF/ trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/META-INF/MANIFEST.MF trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/build.properties trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/src/ trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/src/org/ trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/src/org/jboss/ trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/src/org/jboss/tools/ trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/src/org/jboss/tools/= seam/ trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/src/org/jboss/tools/= seam/ui/ trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/src/org/jboss/tools/= seam/ui/pages/ trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/src/org/jboss/tools/= seam/ui/pages/test/ trunk/seam/tests/org.jboss.tools.seam.xml.test/.classpath trunk/seam/tests/org.jboss.tools.seam.xml.test/.project trunk/seam/tests/org.jboss.tools.seam.xml.test/.settings/ trunk/seam/tests/org.jboss.tools.seam.xml.test/.settings/org.eclipse.jdt= .core.prefs trunk/seam/tests/org.jboss.tools.seam.xml.test/META-INF/ trunk/seam/tests/org.jboss.tools.seam.xml.test/META-INF/MANIFEST.MF trunk/seam/tests/org.jboss.tools.seam.xml.test/build.properties trunk/seam/tests/org.jboss.tools.seam.xml.test/src/ trunk/seam/tests/org.jboss.tools.seam.xml.test/src/org/ trunk/seam/tests/org.jboss.tools.seam.xml.test/src/org/jboss/ trunk/seam/tests/org.jboss.tools.seam.xml.test/src/org/jboss/tools/ trunk/seam/tests/org.jboss.tools.seam.xml.test/src/org/jboss/tools/seam/ trunk/seam/tests/org.jboss.tools.seam.xml.test/src/org/jboss/tools/seam/= xml/ trunk/seam/tests/org.jboss.tools.seam.xml.test/src/org/jboss/tools/seam/= xml/test/ trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/.classpath trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/.project trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/.settings/ trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/.settings/org.eclipse.= jdt.core.prefs trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/META-INF/ trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/META-INF/MANIFEST.MF trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/build.properties trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/src/ trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/src/org/ trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/src/org/jboss/ trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/src/org/jboss/tools/ trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/src/org/jboss/tools/se= am/ trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/src/org/jboss/tools/se= am/xml/ trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/src/org/jboss/tools/se= am/xml/ui/ trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/src/org/jboss/tools/se= am/xml/ui/test/ Modified: trunk/seam/features/org.jboss.tools.seam.feature/feature.xml trunk/seam/plugins/org.jboss.tools.seam.core/META-INF/MANIFEST.MF trunk/seam/plugins/org.jboss.tools.seam.core/build.properties trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/project/facet/SeamFacetInstallDataModelProvider.java trunk/seam/plugins/org.jboss.tools.seam.pages.xml/META-INF/MANIFEST.MF trunk/seam/plugins/org.jboss.tools.seam.pages.xml/build.properties trunk/seam/plugins/org.jboss.tools.seam.pages.xml/plugin.xml trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFEST.MF trunk/seam/plugins/org.jboss.tools.seam.ui.pages/build.properties trunk/seam/plugins/org.jboss.tools.seam.ui/build.properties trunk/seam/plugins/org.jboss.tools.seam.xml/META-INF/MANIFEST.MF trunk/seam/plugins/org.jboss.tools.seam.xml/build.properties trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml trunk/seam/tests/org.jboss.tools.seam.core.test/META-INF/MANIFEST.MF trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam= /core/test/SeamCoreAllTests.java Log: https://jira.jboss.org/jira/browse/JBIDE-3628 - Plugins should be .jar's no= t directories for efficiency sake seam plugins converted to jars: 1. Resources used from resources unpacked to .plugin./o.j.t.s./${vevrsion}/= templates folder 2. XML catalog references uses URI platform:/ to register xmls from jar in = xml catalog Modified: trunk/seam/features/org.jboss.tools.seam.feature/feature.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/features/org.jboss.tools.seam.feature/feature.xml 2009-09-10= 22:44:21 UTC (rev 17520) +++ trunk/seam/features/org.jboss.tools.seam.feature/feature.xml 2009-09-10= 22:58:05 UTC (rev 17521) @@ -229,7 +229,8 @@ id=3D"org.jboss.tools.seam.core" download-size=3D"0" install-size=3D"0" - version=3D"0.0.0"/> + version=3D"0.0.0" + unpack=3D"false"/> = + version=3D"0.0.0" + unpack=3D"false"/> = + version=3D"0.0.0" + unpack=3D"false"/> = + + + + + + Property changes on: trunk/seam/features/org.jboss.tools.seam.test.feature/= .classpath ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/features/org.jboss.tools.seam.test.feature/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/features/org.jboss.tools.seam.test.feature/.project = (rev 0) +++ trunk/seam/features/org.jboss.tools.seam.test.feature/.project 2009-09-= 10 22:58:05 UTC (rev 17521) @@ -0,0 +1,28 @@ + + + org.jboss.tools.seam.test.feature + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + Property changes on: trunk/seam/features/org.jboss.tools.seam.test.feature/= .project ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/features/org.jboss.tools.seam.test.feature/.settings/org.= eclipse.jdt.core.prefs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/features/org.jboss.tools.seam.test.feature/.settings/org.ecl= ipse.jdt.core.prefs (rev 0) +++ trunk/seam/features/org.jboss.tools.seam.test.feature/.settings/org.ecl= ipse.jdt.core.prefs 2009-09-10 22:58:05 UTC (rev 17521) @@ -0,0 +1,8 @@ +#Thu Sep 10 14:31:02 GMT-08:00 2009 +eclipse.preferences.version=3D1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=3Denabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=3D1.5 +org.eclipse.jdt.core.compiler.compliance=3D1.5 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=3Derror +org.eclipse.jdt.core.compiler.problem.enumIdentifier=3Derror +org.eclipse.jdt.core.compiler.source=3D1.5 Property changes on: trunk/seam/features/org.jboss.tools.seam.test.feature/= .settings/org.eclipse.jdt.core.prefs ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/features/org.jboss.tools.seam.test.feature/META-INF/MANIF= EST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/features/org.jboss.tools.seam.test.feature/META-INF/MANIFEST= .MF (rev 0) +++ trunk/seam/features/org.jboss.tools.seam.test.feature/META-INF/MANIFEST= .MF 2009-09-10 22:58:05 UTC (rev 17521) @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Seam Tests Feature +Bundle-SymbolicName: org.jboss.tools.seam.test.feature +Bundle-Version: 1.0.0 +Bundle-RequiredExecutionEnvironment: J2SE-1.5 Property changes on: trunk/seam/features/org.jboss.tools.seam.test.feature/= META-INF/MANIFEST.MF ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/features/org.jboss.tools.seam.test.feature/build.properti= es =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/features/org.jboss.tools.seam.test.feature/build.properties = (rev 0) +++ trunk/seam/features/org.jboss.tools.seam.test.feature/build.properties = 2009-09-10 22:58:05 UTC (rev 17521) @@ -0,0 +1,4 @@ +source.. =3D src/ +output.. =3D bin/ +bin.includes =3D META-INF/,\ + . Property changes on: trunk/seam/features/org.jboss.tools.seam.test.feature/= build.properties ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: trunk/seam/plugins/org.jboss.tools.seam.core/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/META-INF/MANIFEST.MF 2009-= 09-10 22:44:21 UTC (rev 17520) +++ trunk/seam/plugins/org.jboss.tools.seam.core/META-INF/MANIFEST.MF 2009-= 09-10 22:58:05 UTC (rev 17521) @@ -1,7 +1,6 @@ Manifest-Version: 1.0 Bundle-ActivationPolicy: lazy Bundle-Name: %Bundle-Name.0 -Bundle-ClassPath: seam-core.jar Bundle-Activator: org.jboss.tools.seam.core.SeamCorePlugin Bundle-ManifestVersion: 2 Bundle-Vendor: %Bundle-Vendor.0 Modified: trunk/seam/plugins/org.jboss.tools.seam.core/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/build.properties 2009-09-1= 0 22:44:21 UTC (rev 17520) +++ trunk/seam/plugins/org.jboss.tools.seam.core/build.properties 2009-09-1= 0 22:58:05 UTC (rev 17521) @@ -1,7 +1,5 @@ -source.seam-core.jar =3D src/ bin.includes =3D plugin.xml,\ META-INF/,\ - seam-core.jar,\ plugin.properties,\ templates/,\ about.html,\ @@ -9,8 +7,9 @@ about.mappings,\ about.properties,\ seam_icon.png,\ - images/ -jars.compile.order =3D seam-core.jar + images/,\ + . +jars.compile.order =3D . src.includes =3D templates/,\ src/,\ plugin.xml,\ @@ -23,3 +22,5 @@ about.mappings,\ about.properties additional.bundles =3D org.eclipse.jem.util +source.. =3D src/ +output.. =3D bin/ Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/project/facet/SeamFacetInstallDataModelProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/project/facet/SeamFacetInstallDataModelProvider.java 2009-09-1= 0 22:44:21 UTC (rev 17520) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/project/facet/SeamFacetInstallDataModelProvider.java 2009-09-1= 0 22:58:05 UTC (rev 17521) @@ -15,16 +15,19 @@ import java.util.Set; = import org.eclipse.core.runtime.FileLocator; +import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.Platform; import org.eclipse.wst.common.componentcore.datamodel.FacetInstallDataMode= lProvider; import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDat= aModelProperties; import org.eclipse.wst.common.frameworks.datamodel.DataModelPropertyDescri= ptor; import org.eclipse.wst.common.frameworks.datamodel.IDataModel; +import org.jboss.tools.common.zip.UnzipOperation; import org.jboss.tools.seam.core.SeamCorePlugin; import org.jboss.tools.seam.core.project.facet.SeamProjectPreferences; import org.jboss.tools.seam.core.project.facet.SeamRuntime; import org.jboss.tools.seam.core.project.facet.SeamRuntimeManager; import org.jboss.tools.seam.core.project.facet.SeamVersion; +import org.osgi.framework.Bundle; = /** * Data model provider for Seam facet wizard page @@ -151,9 +154,21 @@ * @throws IOException if templates folder not found */ public static File getTemplatesFolder() throws IOException { - return new File(FileLocator.resolve( - Platform.getBundle(SeamCorePlugin.PLUGIN_ID).getEntry( - "/templates")).getPath()); //$NON-NLS-1$ + Bundle bundle =3D SeamCorePlugin.getDefault().getBundle(); + String version =3D bundle.getVersion().toString(); + IPath stateLocation =3D Platform.getStateLocation(bundle); + File templatesDir =3D FileLocator.getBundleFile(bundle); + if(templatesDir.isFile()) { + File toCopy =3D new File(stateLocation.toFile(),version); + if(!toCopy.exists()) { + toCopy.mkdirs(); + UnzipOperation unZip =3D new UnzipOperation(templatesDir.getAbsolutePa= th()); + unZip.execute(toCopy,"templates.*"); + } + templatesDir =3D toCopy; + } + return new File(templatesDir,"templates"); + } = /** Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/META-INF/MANIFE= ST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/META-INF/MANIFEST.MF = 2009-09-10 22:44:21 UTC (rev 17520) +++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/META-INF/MANIFEST.MF = 2009-09-10 22:58:05 UTC (rev 17521) @@ -1,7 +1,6 @@ Manifest-Version: 1.0 Eclipse-LazyStart: true Bundle-Name: %pluginName -Bundle-ClassPath: seam-pages-xml.jar Bundle-Activator: org.jboss.tools.seam.pages.xml.SeamPagesXMLPlugin Bundle-ManifestVersion: 2 Bundle-Vendor: %providerName Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/build.properties 2009= -09-10 22:44:21 UTC (rev 17520) +++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/build.properties 2009= -09-10 22:58:05 UTC (rev 17521) @@ -1,14 +1,14 @@ -source.seam-pages-xml.jar =3D src/,\ - resources/ +source.. =3D src/,\ + resources/ bin.includes =3D plugin.xml,\ META-INF/,\ plugin.properties,\ about.html,\ dtds/,\ - seam-pages-xml.jar,\ + .,\ schemas/,\ images/ -jars.compile.order =3D seam-pages-xml.jar +jars.compile.order =3D . src.includes =3D dtds/,\ src/,\ schemas/,\ Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/plugin.xml 2009-09-10= 22:44:21 UTC (rev 17520) +++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/plugin.xml 2009-09-10= 22:58:05 UTC (rev 17521) @@ -103,20 +103,16 @@ + uri=3D"platform:/plugin/org.jboss.tools.seam.pages.xml/dtds/page= s-1.2.dtd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.pages.xml/schemas= /pages-2.0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.pages.xml/schemas= /pages-2.1.xsd"/> = - - = @@ -144,4 +140,4 @@ = = - \ No newline at end of file + Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui/build.properties 2009-09-10 = 22:44:21 UTC (rev 17520) +++ trunk/seam/plugins/org.jboss.tools.seam.ui/build.properties 2009-09-10 = 22:58:05 UTC (rev 17521) @@ -5,7 +5,6 @@ META-INF/,\ .,\ icons/,\ - resources/,\ about.html,\ plugin.properties src.includes =3D resources/,\ @@ -15,3 +14,4 @@ build.properties,\ META-INF/,\ about.html +jars.compile.order =3D . Modified: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFES= T.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFEST.MF 2= 009-09-10 22:44:21 UTC (rev 17520) +++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFEST.MF 2= 009-09-10 22:58:05 UTC (rev 17521) @@ -1,7 +1,6 @@ Manifest-Version: 1.0 Eclipse-LazyStart: true Bundle-Name: %pluginName -Bundle-ClassPath: seam-ui-pages.jar Bundle-Activator: org.jboss.tools.seam.ui.pages.SeamUiPagesPlugin Bundle-Vendor: %providerName Provide-Package: org.jboss.tools.seam.ui.pages, Modified: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/build.properties 2009-= 09-10 22:44:21 UTC (rev 17520) +++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/build.properties 2009-= 09-10 22:58:05 UTC (rev 17521) @@ -3,10 +3,9 @@ plugin.properties,\ images/,\ META-INF/,\ - about.html -source.seam-ui-pages.jar =3D src/,\ - resources/ -jars.compile.order =3D seam-ui-pages.jar + about.html,\ + . +jars.compile.order =3D . src.includes =3D resources/,\ src/,\ plugin.xml,\ @@ -15,3 +14,6 @@ build.properties,\ about.html,\ META-INF/ +output.. =3D bin/ +source.. =3D resources/,\ + src/ Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.xml/META-INF/MANIFEST.MF 2009-0= 9-10 22:44:21 UTC (rev 17520) +++ trunk/seam/plugins/org.jboss.tools.seam.xml/META-INF/MANIFEST.MF 2009-0= 9-10 22:58:05 UTC (rev 17521) @@ -1,7 +1,6 @@ Manifest-Version: 1.0 Eclipse-LazyStart: true Bundle-Name: %pluginName -Bundle-ClassPath: seam-xml.jar Bundle-Activator: org.jboss.tools.seam.xml.SeamXMLPlugin Bundle-ManifestVersion: 2 Bundle-Vendor: %providerName Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.xml/build.properties 2009-09-10= 22:44:21 UTC (rev 17520) +++ trunk/seam/plugins/org.jboss.tools.seam.xml/build.properties 2009-09-10= 22:58:05 UTC (rev 17521) @@ -1,13 +1,11 @@ -source.seam-xml.jar =3D src/,\ - resources/ bin.includes =3D plugin.xml,\ META-INF/,\ plugin.properties,\ about.html,\ dtds/,\ - seam-xml.jar,\ - schemas/ -jars.compile.order =3D seam-xml.jar + schemas/,\ + . +jars.compile.order =3D . src.includes =3D dtds/,\ src/,\ schemas/,\ @@ -17,3 +15,6 @@ build.properties,\ about.html,\ META-INF/ +output.. =3D bin/ +source.. =3D resources/,\ + src/ Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml 2009-09-10 22:44= :21 UTC (rev 17520) +++ trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml 2009-09-10 22:58= :05 UTC (rev 17521) @@ -30,11 +30,6 @@ = - - - - = = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/compo= nents-1.2.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/core-= 1.2.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/drool= s-1.2.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/frame= work-1.2.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/jms-1= .2.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/mail-= 1.2.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/pdf-1= .2.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/remot= ing-1.2.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/secur= ity-1.2.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/sprin= g-1.2.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/theme= -1.2.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/web-1= .2.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/dtds/components= -1.1.dtd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/async= -2.0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/async= -2.1.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/bpm-2= .0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/bpm-2= .1.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/compo= nents-2.0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/compo= nents-2.1.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/cache= -2.1.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/core-= 2.0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/core-= 2.1.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/drool= s-2.0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/drool= s-2.1.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/docum= ent-2.1.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/frame= work-2.0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/frame= work-2.1.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/inter= national-2.0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/inter= national-2.1.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/jms-2= .0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/jms-2= .1.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/mail-= 2.0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/mail-= 2.1.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/navig= ation-2.0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/navig= ation-2.1.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/pagef= low-2.0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/pagef= low-2.1.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/pages= -2.0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/pdf-2= .0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/pdf-2= .1.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/persi= stence-2.0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/persi= stence-2.1.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/remot= ing-2.0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/remot= ing-2.1.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/secur= ity-2.0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/secur= ity-2.1.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/sprin= g-2.0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/sprin= g-seam-2.0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/theme= -2.0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/trans= action-2.0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/trans= action-2.1.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/web-2= .0.xsd"/> = + uri=3D"platform:/plugin/org.jboss.tools.seam.xml/schemas/web-2= .1.xsd"/> = + + + + + + Property changes on: trunk/seam/tests/org.jboss.tools.seam.text.ext.test/.c= lasspath ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/tests/org.jboss.tools.seam.text.ext.test/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.text.ext.test/.project = (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.text.ext.test/.project 2009-09-10= 22:58:05 UTC (rev 17521) @@ -0,0 +1,28 @@ + + + org.jboss.tools.seam.text.ext.test + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + Property changes on: trunk/seam/tests/org.jboss.tools.seam.text.ext.test/.p= roject ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/tests/org.jboss.tools.seam.text.ext.test/.settings/org.ec= lipse.jdt.core.prefs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.text.ext.test/.settings/org.eclip= se.jdt.core.prefs (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.text.ext.test/.settings/org.eclip= se.jdt.core.prefs 2009-09-10 22:58:05 UTC (rev 17521) @@ -0,0 +1,8 @@ +#Thu Sep 10 14:36:00 GMT-08:00 2009 +eclipse.preferences.version=3D1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=3Denabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=3D1.5 +org.eclipse.jdt.core.compiler.compliance=3D1.5 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=3Derror +org.eclipse.jdt.core.compiler.problem.enumIdentifier=3Derror +org.eclipse.jdt.core.compiler.source=3D1.5 Property changes on: trunk/seam/tests/org.jboss.tools.seam.text.ext.test/.s= ettings/org.eclipse.jdt.core.prefs ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/tests/org.jboss.tools.seam.text.ext.test/META-INF/MANIFES= T.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.text.ext.test/META-INF/MANIFEST.M= F (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.text.ext.test/META-INF/MANIFEST.M= F 2009-09-10 22:58:05 UTC (rev 17521) @@ -0,0 +1,7 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Seam Text Extension Test +Bundle-SymbolicName: org.jboss.tools.seam.text.ext.test +Bundle-Version: 1.0.0 +Bundle-Vendor: JBoss by RedHat +Bundle-RequiredExecutionEnvironment: J2SE-1.5 Property changes on: trunk/seam/tests/org.jboss.tools.seam.text.ext.test/ME= TA-INF/MANIFEST.MF ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/tests/org.jboss.tools.seam.text.ext.test/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.text.ext.test/build.properties = (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.text.ext.test/build.properties 20= 09-09-10 22:58:05 UTC (rev 17521) @@ -0,0 +1,4 @@ +source.. =3D src/ +output.. =3D bin/ +bin.includes =3D META-INF/,\ + . Property changes on: trunk/seam/tests/org.jboss.tools.seam.text.ext.test/bu= ild.properties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/.classpath =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/.classpath = (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/.classpath 2009-09-= 10 22:58:05 UTC (rev 17521) @@ -0,0 +1,7 @@ + + + + + + + Property changes on: trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/.c= lasspath ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/.project = (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/.project 2009-09-10= 22:58:05 UTC (rev 17521) @@ -0,0 +1,28 @@ + + + org.jboss.tools.seam.ui.pages.test + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + Property changes on: trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/.p= roject ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/.settings/org.ec= lipse.jdt.core.prefs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/.settings/org.eclip= se.jdt.core.prefs (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/.settings/org.eclip= se.jdt.core.prefs 2009-09-10 22:58:05 UTC (rev 17521) @@ -0,0 +1,8 @@ +#Thu Sep 10 14:16:04 GMT-08:00 2009 +eclipse.preferences.version=3D1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=3Denabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=3D1.5 +org.eclipse.jdt.core.compiler.compliance=3D1.5 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=3Derror +org.eclipse.jdt.core.compiler.problem.enumIdentifier=3Derror +org.eclipse.jdt.core.compiler.source=3D1.5 Property changes on: trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/.s= ettings/org.eclipse.jdt.core.prefs ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/META-INF/MANIFES= T.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/META-INF/MANIFEST.M= F (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/META-INF/MANIFEST.M= F 2009-09-10 22:58:05 UTC (rev 17521) @@ -0,0 +1,9 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Seam Pages Editor Test +Bundle-SymbolicName: org.jboss.tools.seam.ui.pages.test;singleton:=3Dtrue +Bundle-Version: 1.0.0 +Bundle-Vendor: JBoss by RedHat +Require-Bundle: org.eclipse.core.runtime +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Bundle-ActivationPolicy: lazy Property changes on: trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/ME= TA-INF/MANIFEST.MF ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/build.properties = (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/build.properties 20= 09-09-10 22:58:05 UTC (rev 17521) @@ -0,0 +1,4 @@ +source.. =3D src/ +output.. =3D bin/ +bin.includes =3D META-INF/,\ + . Property changes on: trunk/seam/tests/org.jboss.tools.seam.ui.pages.test/bu= ild.properties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/tests/org.jboss.tools.seam.xml.test/.classpath =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.xml.test/.classpath = (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.xml.test/.classpath 2009-09-10 22= :58:05 UTC (rev 17521) @@ -0,0 +1,7 @@ + + + + + + + Property changes on: trunk/seam/tests/org.jboss.tools.seam.xml.test/.classp= ath ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/tests/org.jboss.tools.seam.xml.test/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.xml.test/.project = (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.xml.test/.project 2009-09-10 22:5= 8:05 UTC (rev 17521) @@ -0,0 +1,28 @@ + + + org.jboss.tools.seam.xml.test + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + Property changes on: trunk/seam/tests/org.jboss.tools.seam.xml.test/.project ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/tests/org.jboss.tools.seam.xml.test/.settings/org.eclipse= .jdt.core.prefs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.xml.test/.settings/org.eclipse.jd= t.core.prefs (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.xml.test/.settings/org.eclipse.jd= t.core.prefs 2009-09-10 22:58:05 UTC (rev 17521) @@ -0,0 +1,8 @@ +#Thu Sep 10 14:17:28 GMT-08:00 2009 +eclipse.preferences.version=3D1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=3Denabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=3D1.5 +org.eclipse.jdt.core.compiler.compliance=3D1.5 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=3Derror +org.eclipse.jdt.core.compiler.problem.enumIdentifier=3Derror +org.eclipse.jdt.core.compiler.source=3D1.5 Property changes on: trunk/seam/tests/org.jboss.tools.seam.xml.test/.settin= gs/org.eclipse.jdt.core.prefs ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/tests/org.jboss.tools.seam.xml.test/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.xml.test/META-INF/MANIFEST.MF = (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.xml.test/META-INF/MANIFEST.MF 200= 9-09-10 22:58:05 UTC (rev 17521) @@ -0,0 +1,8 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Seam XML Tests +Bundle-SymbolicName: org.jboss.tools.seam.xml.test;singleton:=3Dtrue +Bundle-Version: 1.0.0 +Require-Bundle: org.eclipse.core.runtime +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: J2SE-1.5 Property changes on: trunk/seam/tests/org.jboss.tools.seam.xml.test/META-IN= F/MANIFEST.MF ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/tests/org.jboss.tools.seam.xml.test/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.xml.test/build.properties = (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.xml.test/build.properties 2009-09= -10 22:58:05 UTC (rev 17521) @@ -0,0 +1,4 @@ +source.. =3D src/ +output.. =3D bin/ +bin.includes =3D META-INF/,\ + . Property changes on: trunk/seam/tests/org.jboss.tools.seam.xml.test/build.p= roperties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/.classpath =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/.classpath = (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/.classpath 2009-09-10= 22:58:05 UTC (rev 17521) @@ -0,0 +1,7 @@ + + + + + + + Property changes on: trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/.cla= sspath ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/.project = (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/.project 2009-09-10 2= 2:58:05 UTC (rev 17521) @@ -0,0 +1,28 @@ + + + org.jboss.tools.seam.xml.ui.test + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + Property changes on: trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/.pro= ject ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/.settings/org.ecli= pse.jdt.core.prefs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/.settings/org.eclipse= .jdt.core.prefs (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/.settings/org.eclipse= .jdt.core.prefs 2009-09-10 22:58:05 UTC (rev 17521) @@ -0,0 +1,8 @@ +#Thu Sep 10 14:21:59 GMT-08:00 2009 +eclipse.preferences.version=3D1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=3Denabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=3D1.5 +org.eclipse.jdt.core.compiler.compliance=3D1.5 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=3Derror +org.eclipse.jdt.core.compiler.problem.enumIdentifier=3Derror +org.eclipse.jdt.core.compiler.source=3D1.5 Property changes on: trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/.set= tings/org.eclipse.jdt.core.prefs ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/META-INF/MANIFEST.= MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/META-INF/MANIFEST.MF = (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/META-INF/MANIFEST.MF = 2009-09-10 22:58:05 UTC (rev 17521) @@ -0,0 +1,8 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: XML UI Tests +Bundle-SymbolicName: org.jboss.tools.seam.xml.ui.test +Bundle-Version: 1.0.0 +Require-Bundle: org.eclipse.core.runtime +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: J2SE-1.5 Property changes on: trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/META= -INF/MANIFEST.MF ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/build.properties = (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/build.properties 2009= -09-10 22:58:05 UTC (rev 17521) @@ -0,0 +1,4 @@ +source.. =3D src/ +output.. =3D bin/ +bin.includes =3D META-INF/,\ + . Property changes on: trunk/seam/tests/org.jboss.tools.seam.xml.ui.test/buil= d.properties ___________________________________________________________________ Name: svn:mime-type + text/plain --===============8417826374190511698==-- From jbosstools-commits at lists.jboss.org Thu Sep 10 19:03:28 2009 Content-Type: multipart/mixed; boundary="===============8739913127439195451==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17522 - trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/project/facet. Date: Thu, 10 Sep 2009 19:03:27 -0400 Message-ID: <200909102303.n8AN3RF2004397@svn01.web.mwc.hst.phx2.redhat.com> --===============8739913127439195451== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-10 19:03:27 -0400 (Thu, 10 Sep 2009) New Revision: 17522 Removed: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam= /core/test/project/facet/ZupUtilsTest.java Log: https://jira.jboss.org/jira/browse/JBIDE-3892 - Increase JUnit test's cover= age up to 60% Clean up tests Deleted: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tool= s/seam/core/test/project/facet/ZupUtilsTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/sea= m/core/test/project/facet/ZupUtilsTest.java 2009-09-10 22:58:05 UTC (rev 17= 521) +++ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/sea= m/core/test/project/facet/ZupUtilsTest.java 2009-09-10 23:03:27 UTC (rev 17= 522) @@ -1,20 +0,0 @@ -package org.jboss.tools.seam.core.test.project.facet; - -import java.io.File; -import java.io.IOException; - -import org.eclipse.core.runtime.FileLocator; -import org.eclipse.core.runtime.Platform; -import org.jboss.tools.seam.internal.core.project.facet.ZipUtils; - -import junit.framework.TestCase; - -public class ZupUtilsTest extends TestCase { - - public void testGetZipFiles() throws IOException { - File jar =3D FileLocator.getBundleFile(Platform.getBundle("org.eclipse.c= ore.runtime")); - String destinationName =3D System.getProperty("java.io.tmpdir"); - ZipUtils.getZipFiles(jar.getAbsolutePath(), destinationName, ""); - } - -} --===============8739913127439195451==-- From jbosstools-commits at lists.jboss.org Thu Sep 10 20:26:00 2009 Content-Type: multipart/mixed; boundary="===============9084735025416816854==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17523 - in trunk/jst/tests/org.jboss.tools.jst.web.kb.test: src/org/jboss/tools/jst/web/kb/test and 1 other directory. Date: Thu, 10 Sep 2009 20:26:00 -0400 Message-ID: <200909110026.n8B0Q0fU025216@svn01.web.mwc.hst.phx2.redhat.com> --===============9084735025416816854== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-10 20:26:00 -0400 (Thu, 10 Sep 2009) New Revision: 17523 Modified: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.cl= asspath trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/= web/kb/test/JstWebKbAllTests.java trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/= web/kb/test/WebKbTest.java Log: Added some new tests for KB plug-in. Modified: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbMo= del/.classpath =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.c= lasspath 2009-09-10 23:03:27 UTC (rev 17522) +++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/projects/TestKbModel/.c= lasspath 2009-09-11 00:26:00 UTC (rev 17523) @@ -8,10 +8,10 @@ - + - + \ No newline at end of file Modified: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/too= ls/jst/web/kb/test/JstWebKbAllTests.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst= /web/kb/test/JstWebKbAllTests.java 2009-09-10 23:03:27 UTC (rev 17522) +++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst= /web/kb/test/JstWebKbAllTests.java 2009-09-11 00:26:00 UTC (rev 17523) @@ -13,6 +13,8 @@ import junit.framework.Test; import junit.framework.TestSuite; = +import org.jboss.tools.test.util.ProjectImportTestSetup; + /** * @author Alexey Kazakov */ @@ -20,7 +22,10 @@ = public static Test suite() { TestSuite suite =3D new TestSuite(JstWebKbAllTests.class.getName()); - suite.addTest(WebKbTest.suite()); + suite.addTest(new ProjectImportTestSetup(new TestSuite(WebKbTest.class), + "org.jboss.tools.jst.web.kb.test", + new String[]{"projects/TestKbModel"}, + new String[]{"TestKbModel"})); suite.addTestSuite(KbModelTest.class); return suite; } Modified: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/too= ls/jst/web/kb/test/WebKbTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst= /web/kb/test/WebKbTest.java 2009-09-10 23:03:27 UTC (rev 17522) +++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst= /web/kb/test/WebKbTest.java 2009-09-11 00:26:00 UTC (rev 17523) @@ -10,20 +10,47 @@ *************************************************************************= *****/ = package org.jboss.tools.jst.web.kb.test; = -import junit.framework.Test; import junit.framework.TestCase; -import junit.framework.TestSuite; = +import org.eclipse.core.resources.IProject; +import org.jboss.tools.jst.web.kb.internal.taglib.CustomTagLibAttribute; +import org.jboss.tools.jst.web.kb.taglib.CustomTagLibManager; +import org.jboss.tools.jst.web.kb.taglib.ICustomTagLibrary; +import org.jboss.tools.test.util.JobUtils; +import org.jboss.tools.test.util.ProjectImportTestSetup; + /** * @author Alexey Kazakov */ public class WebKbTest extends TestCase { = - public void testKb() { - //TODO + private IProject testProject; + private static final String[] CUSTOM_TAG_LIB_URIS =3D {"http://richfaces.= org/a4j", "http://richfaces.org/rich", "http://java.sun.com/jsf/core", "htt= p://java.sun.com/jsf/html", "http://java.sun.com/jsf/facelets", "http://www= .w3.org/1999/xhtml/facelets", "http://jboss.com/products/seam/taglib", "htt= p://java.sun.com/JSP/Page", "http://struts.apache.org/tags-html", "taglibs/= componentExtension.xml"}; + + protected void setUp() throws Exception { + if(testProject=3D=3Dnull) { + testProject =3D ProjectImportTestSetup.loadProject("TestKbModel"); + JobUtils.waitForIdle(); + JobUtils.delay(2000); + } } = - public static Test suite() { - return new TestSuite(WebKbTest.class); + public void testCustomTagLibs() { + ICustomTagLibrary[] libs =3D CustomTagLibManager.getInstance().getLibrar= ies(); + for (ICustomTagLibrary lib : libs) { + boolean found =3D false; + for (String uri : CUSTOM_TAG_LIB_URIS) { + if(uri.equals(lib.getURI())) { + found =3D true; + break; + } + } + assertTrue("Custom tag lib " + lib.getURI() + " is not loaded.", found); + } } -} \ No newline at end of file + + public void testCustomExtensions() { + CustomTagLibAttribute[] attributes =3D CustomTagLibManager.getInstance()= .getComponentExtensions(); + assertNotNull("Can't load component extensions.", attributes); + assertFalse("Can't load component extensions.", attributes.length=3D=3D0= ); + }} \ No newline at end of file --===============9084735025416816854==-- From jbosstools-commits at lists.jboss.org Thu Sep 10 20:27:56 2009 Content-Type: multipart/mixed; boundary="===============5295180701674178047==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17524 - in trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core: src/org/jboss/ide/eclipse/as/wtp/core and 3 other directories. Date: Thu, 10 Sep 2009 20:27:56 -0400 Message-ID: <200909110027.n8B0RuOn025446@svn01.web.mwc.hst.phx2.redhat.com> --===============5295180701674178047== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: rob.stryker(a)jboss.com Date: 2009-09-10 20:27:56 -0400 (Thu, 10 Sep 2009) New Revision: 17524 Added: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/util/ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/util/LimitedContainerVirtualFolder.java trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/vcf/OutputFolderReferenceResolver.java trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/vcf/OutputFoldersVirtualComponent.java Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/plugin.xml trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/modules/JBTProjectModuleDelegate.java trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/vcf/JBTVirtualComponent.java Log: JBIDE-4320 - custom module factories and extensions BOUYA Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/plugin.xml 2009-09-1= 1 00:26:00 UTC (rev 17523) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/plugin.xml 2009-09-1= 1 00:27:56 UTC (rev 17524) @@ -2,5 +2,12 @@ + + + + = Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/= ide/eclipse/as/wtp/core/modules/JBTProjectModuleDelegate.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/modules/JBTProjectModuleDelegate.java 2009-09-11 00:26:00= UTC (rev 17523) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/modules/JBTProjectModuleDelegate.java 2009-09-11 00:27:56= UTC (rev 17524) @@ -1,16 +1,23 @@ package org.jboss.ide.eclipse.as.wtp.core.modules; = +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IProject; +import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.Path; -import org.eclipse.jst.j2ee.internal.deployables.J2EEDeployableFactory; import org.eclipse.wst.common.componentcore.ArtifactEdit; import org.eclipse.wst.common.componentcore.ComponentCore; +import org.eclipse.wst.common.componentcore.internal.util.IModuleConstants; import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; +import org.eclipse.wst.common.componentcore.resources.IVirtualFolder; import org.eclipse.wst.common.componentcore.resources.IVirtualReference; import org.eclipse.wst.server.core.IModule; import org.eclipse.wst.server.core.ServerUtil; +import org.eclipse.wst.server.core.model.IModuleResource; import org.eclipse.wst.web.internal.deployables.ComponentDeployable; import org.jboss.ide.eclipse.as.wtp.core.vcf.JBTVirtualArchiveComponent; = @@ -24,7 +31,64 @@ super(project, aComponent); } = + = /* + * Let's make this clean and organized + * @see org.eclipse.wst.web.internal.deployables.ComponentDeployable#memb= ers() + */ + public IModuleResource[] members() throws CoreException { + members.clear(); + IVirtualComponent vc =3D ComponentCore.createComponent(getProject()); + if (vc !=3D null) { + addFromRootVirtualFolder(vc); + addConsumableReferences(vc); + addUtilMembers(vc); + } + = + IModuleResource[] mr =3D new IModuleResource[members.size()]; + members.toArray(mr); + return mr; + } + = + protected void addFromRootVirtualFolder(IVirtualComponent vc) throws Core= Exception { + IVirtualFolder vFolder =3D vc.getRootFolder(); + IModuleResource[] mr =3D getMembers(vFolder, Path.EMPTY); + int size =3D mr.length; + for (int j =3D 0; j < size; j++) { + members.add(mr[j]); + } + } + = + = + /* + * This will recursively search for consumed components, and children + * of consumed components, and will shove them into the members area. =3D= D = + */ + protected void addConsumableReferences(IVirtualComponent vc) throws CoreE= xception { + List consumableMembers =3D new ArrayList(); + IVirtualReference[] refComponents =3D vc.getReferences(); + for (int i =3D 0; i < refComponents.length; i++) { + IVirtualReference reference =3D refComponents[i]; + if (reference !=3D null && reference.getDependencyType()=3D=3DIVirtu= alReference.DEPENDENCY_TYPE_CONSUMES) { + IVirtualComponent consumedComponent =3D reference.getReferencedComp= onent(); + if (consumedComponent!=3Dnull) { + if (consumedComponent.getRootFolder()!=3Dnull) { + IVirtualFolder vFolder =3D consumedComponent.getRootFolder(); + IModuleResource[] mr =3D getMembers(vFolder, reference.getRuntime= Path().makeRelative()); + int size =3D mr.length; + for (int j =3D 0; j < size; j++) { + if (!members.contains(mr[j])) + members.add(mr[j]); + } + addUtilMembers(consumedComponent); + addConsumableReferences(consumedComponent); + } + } + } + } + } + = + /* * This method is meant to be overridden by subclasses. Return whether o= r not to add this file * to the members list. If it should be filtered out, or if it will be re= turned as a child = * module instead, return false. Otherwise return true. = @@ -45,7 +109,7 @@ } = /* - * Should we meld the jar / external jar / var reference in with the memb= ers() IModuleResource objects. + * Should we meld the jar / external jar / var / reference in with the me= mbers() IModuleResource objects. * If yes, the reference will appear like any other file. * If no, you are expected to handle this file as a child module and expo= se it yourself */ @@ -67,8 +131,17 @@ return module; } = + /** + * This should return the module factory which we are associated with. + * @return + */ protected abstract String getFactoryId(); = + /* + * Get the URI for this child module relative to the parent module + * (non-Javadoc) + * @see org.jboss.ide.eclipse.as.wtp.core.modules.IJBTModule#getURI(or= g.eclipse.wst.server.core.IModule) + */ public String getURI(IModule child) { if( component !=3D null && child !=3D null ) { IVirtualReference[] components =3D getReferences(component); Added: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide= /eclipse/as/wtp/core/util/LimitedContainerVirtualFolder.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/util/LimitedContainerVirtualFolder.java = (rev 0) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/util/LimitedContainerVirtualFolder.java 2009-09-11 00:27:= 56 UTC (rev 17524) @@ -0,0 +1,69 @@ +package org.jboss.ide.eclipse.as.wtp.core.util; + +import java.util.ArrayList; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +import org.eclipse.core.resources.IContainer; +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.IResource; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IPath; +import org.eclipse.wst.common.componentcore.ComponentCore; +import org.eclipse.wst.common.componentcore.internal.resources.VirtualFile; +import org.eclipse.wst.common.componentcore.internal.resources.VirtualFold= er; +import org.eclipse.wst.common.componentcore.resources.IVirtualResource; + +public class LimitedContainerVirtualFolder extends VirtualFolder { + + private IContainer[] containers; + public LimitedContainerVirtualFolder( + IProject aComponentProject, + IPath aRuntimePath, = + IContainer[] containers) { + super(aComponentProject, aRuntimePath); + this.containers =3D containers; + } + + public IContainer getUnderlyingFolder() { = + if( containers !=3D null && containers.length > 0 = + && containers[0] !=3D null ) + return containers[0]; + return null; + } + = + public IContainer[] getUnderlyingFolders() { + return containers =3D=3D null ? new IContainer[]{} : containers; + } + = + public IVirtualResource[] members(int memberFlags) throws CoreException { + List virtualResources =3D new ArrayList(); // result + Set allNames =3D new HashSet(); + = + for( int i =3D 0; i < containers.length; i++ ) { + IResource realResource =3D containers[i]; + if ((realResource !=3D null) && (realResource.getType() =3D=3D IResourc= e.FOLDER || realResource.getType() =3D=3D IResource.PROJECT)) { + IContainer realContainer =3D (IContainer) realResource; + IResource[] realChildResources =3D realContainer.members(memberFlags); + for (int realResourceIndex =3D 0; realResourceIndex < realChildResourc= es.length; realResourceIndex++) { + IResource child =3D realChildResources[realResourceIndex]; + String localName =3D child.getName(); + if (allNames.add(localName)) { + IPath newRuntimePath =3D getRuntimePath().append(localName); + if (child instanceof IFile) { + virtualResources.add(new VirtualFile(getProject(), newRuntimePath, = (IFile) child)); + } else { + virtualResources.add(ComponentCore.createFolder(getProject(), newRu= ntimePath)); + } + } + } + } + // An IResource.FILE would be an error condition (as this is a containe= r) + } + return virtualResources.toArray(new IVirtualResource[virtualResources.si= ze()]); + } + + = +} Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/= ide/eclipse/as/wtp/core/vcf/JBTVirtualComponent.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/JBTVirtualComponent.java 2009-09-11 00:26:00 UTC (rev= 17523) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/JBTVirtualComponent.java 2009-09-11 00:27:56 UTC (rev= 17524) @@ -210,6 +210,8 @@ * Overrides from VirtualComponent class * These are mostly here because of the extrapolation = * of createVirtualReference into its own method. + * = + * These can probably be removed in WTP 3.2 * *******************************************/ @Override public IVirtualReference[] getAllReferences() { = Added: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide= /eclipse/as/wtp/core/vcf/OutputFolderReferenceResolver.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/OutputFolderReferenceResolver.java = (rev 0) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/OutputFolderReferenceResolver.java 2009-09-11 00:27:5= 6 UTC (rev 17524) @@ -0,0 +1,63 @@ +package org.jboss.ide.eclipse.as.wtp.core.vcf; + +import org.eclipse.core.internal.resources.Workspace; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.core.runtime.IPath; +import org.eclipse.emf.common.util.URI; +import org.eclipse.wst.common.componentcore.ComponentCore; +import org.eclipse.wst.common.componentcore.internal.ComponentcorePackage; +import org.eclipse.wst.common.componentcore.internal.DependencyType; +import org.eclipse.wst.common.componentcore.internal.ReferencedComponent; +import org.eclipse.wst.common.componentcore.internal.impl.PlatformURLModul= eConnection; +import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; +import org.eclipse.wst.common.componentcore.resources.IVirtualReference; + +public class OutputFolderReferenceResolver implements IReferenceResolver { + public static final String OUTPUT_FOLDER_SEGMENT =3D "org.jboss.ide.eclip= se.as.wtp.core.vcf.outputFolder"; + public static final String OUTPUT_FOLDER_PROTOCOL =3D PlatformURLModuleCo= nnection.MODULE_PROTOCOL + +IPath.SEPARATOR+ OUTPUT_FOLDER_SEGMENT + IPath.SEPARATOR; + public OutputFolderReferenceResolver() { + } + + public boolean canResolve(IVirtualComponent context, + ReferencedComponent referencedComponent) { + URI handle =3D referencedComponent.getHandle(); + String s =3D handle.toString(); + if(s.startsWith(OUTPUT_FOLDER_PROTOCOL)) + return true; + return false; + } + + public boolean canResolve(IVirtualReference reference) { + if( reference.getReferencedComponent() instanceof OutputFoldersVirtualCo= mponent ) + return true; + return false; + } + + public IVirtualReference resolve(IVirtualComponent context, + ReferencedComponent referencedComponent) { + String project =3D referencedComponent.getHandle().segment(1); + IProject p =3D ResourcesPlugin.getWorkspace().getRoot().getProject(proje= ct); + IVirtualComponent comp =3D new OutputFoldersVirtualComponent(p, context); + IVirtualReference ref =3D ComponentCore.createReference(context, comp); + ref.setArchiveName(referencedComponent.getArchiveName()); + ref.setRuntimePath(referencedComponent.getRuntimePath()); + ref.setDependencyType(referencedComponent.getDependencyType().getValue()= ); + return ref; + } + + public ReferencedComponent resolve(IVirtualReference reference) { + if( reference.getReferencedComponent() instanceof OutputFoldersVirtualCo= mponent ) { + IProject p =3D reference.getReferencedComponent().getProject(); + ReferencedComponent rc =3D ComponentcorePackage.eINSTANCE.getComponentc= oreFactory().createReferencedComponent(); + rc.setArchiveName(reference.getArchiveName()); + rc.setRuntimePath(reference.getRuntimePath()); + rc.setHandle(URI.createURI(OUTPUT_FOLDER_PROTOCOL + p.getName())); + rc.setDependencyType(DependencyType.CONSUMES_LITERAL); + return rc; + } + return null; + } + +} Added: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide= /eclipse/as/wtp/core/vcf/OutputFoldersVirtualComponent.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/OutputFoldersVirtualComponent.java = (rev 0) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/OutputFoldersVirtualComponent.java 2009-09-11 00:27:5= 6 UTC (rev 17524) @@ -0,0 +1,112 @@ +package org.jboss.ide.eclipse.as.wtp.core.vcf; + +import java.util.Properties; + +import org.eclipse.core.resources.IContainer; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.Path; +import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities; +import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; +import org.eclipse.wst.common.componentcore.resources.IVirtualFolder; +import org.eclipse.wst.common.componentcore.resources.IVirtualReference; +import org.jboss.ide.eclipse.as.wtp.core.util.LimitedContainerVirtualFolde= r; + +public class OutputFoldersVirtualComponent implements IVirtualComponent { + + private IProject project; + private IVirtualComponent referencingComp; + public OutputFoldersVirtualComponent(IProject p, IVirtualComponent refere= ncingComponent) { + this.project =3D p; + this.referencingComp =3D referencingComponent; + } + = + public void create(int updateFlags, IProgressMonitor aMonitor) + throws CoreException { + // Ignore + } + + public boolean exists() { + return true; + } + + public IVirtualComponent getComponent() { + return this; + } + + public String getName() { + return getId(); + } + + public String getDeployedName() { + return getName(); + } + = + protected String getId() { + return OutputFolderReferenceResolver.OUTPUT_FOLDER_SEGMENT + Path.SEPARA= TOR + project.getName(); + } + + public IProject getProject() { + return project; + } + public IVirtualComponent[] getReferencingComponents() { + return referencingComp =3D=3D null ? new IVirtualComponent[]{} : new IVi= rtualComponent[]{referencingComp}; + } + + public IVirtualFolder getRootFolder() { + IContainer[] containers =3D J2EEProjectUtilities.getOutputContainers(pro= ject); + return new LimitedContainerVirtualFolder(project, new Path("/"), contain= ers); + } + + public Properties getMetaProperties() { + // TODO Auto-generated method stub + return null; + } + + public IPath[] getMetaResources() { + // TODO Auto-generated method stub + return null; + } + + public IVirtualReference getReference(String aComponentName) { + // Ignore + return null; + } + + public IVirtualReference[] getReferences() { + // Ignore; no children + return new IVirtualReference[]{}; + } + + public boolean isBinary() { + return false; + } + + public void setMetaProperties(Properties properties) { + // Ignore + } + + public void setMetaProperty(String name, String value) { + // Ignore + } + + public void setMetaResources(IPath[] theMetaResourcePaths) { + // Ignore + } + + public void setReferences(IVirtualReference[] theReferences) { + // Ignore + } + + public Object getAdapter(Class adapter) { + // Ignore + return null; + } + + public void addReferences(IVirtualReference[] references) { + // Ignore + } + +} --===============5295180701674178047==-- From jbosstools-commits at lists.jboss.org Thu Sep 10 20:46:47 2009 Content-Type: multipart/mixed; boundary="===============0692425593619118797==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17525 - trunk/seam/features/org.jboss.tools.seam.test.feature. Date: Thu, 10 Sep 2009 20:46:47 -0400 Message-ID: <200909110046.n8B0klge029299@svn01.web.mwc.hst.phx2.redhat.com> --===============0692425593619118797== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-10 20:46:47 -0400 (Thu, 10 Sep 2009) New Revision: 17525 Added: trunk/seam/features/org.jboss.tools.seam.test.feature/.classpath trunk/seam/features/org.jboss.tools.seam.test.feature/feature.xml Removed: trunk/seam/features/org.jboss.tools.seam.test.feature/.classpath trunk/seam/features/org.jboss.tools.seam.test.feature/.settings/ trunk/seam/features/org.jboss.tools.seam.test.feature/META-INF/ trunk/seam/features/org.jboss.tools.seam.test.feature/src/ Modified: trunk/seam/features/org.jboss.tools.seam.test.feature/.project trunk/seam/features/org.jboss.tools.seam.test.feature/build.properties Log: https://jira.jboss.org/jira/browse/JBIDE-3892 - Increase JUnit test's cover= age up to 60% seam feature structure fixed Deleted: trunk/seam/features/org.jboss.tools.seam.test.feature/.classpath =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/features/org.jboss.tools.seam.test.feature/.classpath 2009-0= 9-11 00:27:56 UTC (rev 17524) +++ trunk/seam/features/org.jboss.tools.seam.test.feature/.classpath 2009-0= 9-11 00:46:47 UTC (rev 17525) @@ -1,7 +0,0 @@ - - - - - - - Added: trunk/seam/features/org.jboss.tools.seam.test.feature/.classpath =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/features/org.jboss.tools.seam.test.feature/.classpath = (rev 0) +++ trunk/seam/features/org.jboss.tools.seam.test.feature/.classpath 2009-0= 9-11 00:46:47 UTC (rev 17525) @@ -0,0 +1,7 @@ + + + + + + + Property changes on: trunk/seam/features/org.jboss.tools.seam.test.feature/= .classpath ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: trunk/seam/features/org.jboss.tools.seam.test.feature/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/features/org.jboss.tools.seam.test.feature/.project 2009-09-= 11 00:27:56 UTC (rev 17524) +++ trunk/seam/features/org.jboss.tools.seam.test.feature/.project 2009-09-= 11 00:46:47 UTC (rev 17525) @@ -6,23 +6,12 @@ - org.eclipse.jdt.core.javabuilder + org.eclipse.pde.FeatureBuilder - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature + org.eclipse.pde.FeatureNature Modified: trunk/seam/features/org.jboss.tools.seam.test.feature/build.prope= rties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/features/org.jboss.tools.seam.test.feature/build.properties = 2009-09-11 00:27:56 UTC (rev 17524) +++ trunk/seam/features/org.jboss.tools.seam.test.feature/build.properties = 2009-09-11 00:46:47 UTC (rev 17525) @@ -1,4 +1 @@ -source.. =3D src/ -output.. =3D bin/ -bin.includes =3D META-INF/,\ - . +bin.includes =3D feature.xml Added: trunk/seam/features/org.jboss.tools.seam.test.feature/feature.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/features/org.jboss.tools.seam.test.feature/feature.xml = (rev 0) +++ trunk/seam/features/org.jboss.tools.seam.test.feature/feature.xml 2009-= 09-11 00:46:47 UTC (rev 17525) @@ -0,0 +1,66 @@ + + + + + [Enter Feature Description here.] + + + + [Enter Copyright Description here.] + + + + [Enter License Description here.] + + + + + + + + + + + + + + + + + Property changes on: trunk/seam/features/org.jboss.tools.seam.test.feature/= feature.xml ___________________________________________________________________ Name: svn:mime-type + text/plain --===============0692425593619118797==-- From jbosstools-commits at lists.jboss.org Fri Sep 11 11:03:19 2009 Content-Type: multipart/mixed; boundary="===============0028275471337376846==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17526 - in trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css: properties and 1 other directories. Date: Fri, 11 Sep 2009 11:03:19 -0400 Message-ID: <200909111503.n8BF3JXo001841@svn01.web.mwc.hst.phx2.redhat.com> --===============0028275471337376846== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: sdzmitrovich Date: 2009-09-11 11:03:19 -0400 (Fri, 11 Sep 2009) New Revision: 17526 Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/CSSSelectionListener.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/CSSStyleManager.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/pr= operties/CSSPropertyPage.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/vi= ew/CSSEditorView.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/vi= ew/CSSPreview.java Log: https://jira.jboss.org/jira/browse/JBIDE-4850 Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/common/CSSSelectionListener.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSSelectionListener.java 2009-09-11 00:46:47 UTC (rev 17525) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSSelectionListener.java 2009-09-11 15:03:19 UTC (rev 17526) @@ -59,7 +59,6 @@ private void startListening() { PlatformUI.getWorkbench().getActiveWorkbenchWindow() .getSelectionService().addPostSelectionListener(this); - } = private void stopListening() { Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/common/CSSStyleManager.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleManager.java 2009-09-11 00:46:47 UTC (rev 17525) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleManager.java 2009-09-11 15:03:19 UTC (rev 17526) @@ -24,8 +24,6 @@ import org.eclipse.wst.xml.core.internal.contentmodel.CMNamedNodeMap; import org.eclipse.wst.xml.core.internal.contentmodel.modelquery.ModelQuer= y; import org.eclipse.wst.xml.core.internal.modelquery.ModelQueryUtil; -import org.eclipse.wst.xml.core.internal.provisional.document.IDOMAttr; -import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement; import org.w3c.dom.Attr; import org.w3c.dom.Element; import org.w3c.dom.Node; @@ -65,8 +63,8 @@ if (styleRule !=3D null) container =3D new CSSStyleRuleContainer(styleRule); = - } else if ((selectedObject instanceof IDOMElement) - || (selectedObject instanceof IDOMAttr)) { + } else if ((selectedObject instanceof Element) + || (selectedObject instanceof Attr)) { = Element selectedElement =3D null; = Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/properties/CSSPropertyPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/p= roperties/CSSPropertyPage.java 2009-09-11 00:46:47 UTC (rev 17525) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/p= roperties/CSSPropertyPage.java 2009-09-11 15:03:19 UTC (rev 17526) @@ -11,8 +11,6 @@ = package org.jboss.tools.jst.css.properties; = -import java.util.Map; - import org.eclipse.core.databinding.DataBindingContext; import org.eclipse.core.databinding.observable.ChangeEvent; import org.eclipse.core.databinding.observable.IChangeListener; @@ -27,7 +25,6 @@ import org.eclipse.ui.part.IPageSite; import org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageCont= ributor; import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; -import org.jboss.tools.jst.css.common.CSSSelectionListener; import org.jboss.tools.jst.css.common.StyleContainer; import org.jboss.tools.jst.css.view.CSSEditorView; import org.jboss.tools.jst.jsp.outline.cssdialog.common.StyleAttributes; @@ -63,7 +60,7 @@ public void init(IPageSite pageSite) { super.init(pageSite); = - CSSSelectionListener.getInstance().addSelectionListener(this); + // CSSSelectionListener.getInstance().addSelectionListener(this); = // FIXED FOR JBIDE-4791 pageSite.setSelectionProvider(new ISelectionProvider() { @@ -87,7 +84,7 @@ = @Override public void dispose() { - CSSSelectionListener.getInstance().removeSelectionListener(this); + // CSSSelectionListener.getInstance().removeSelectionListener(this); super.dispose(); } = @@ -97,13 +94,7 @@ if ((this.part !=3D part) && (selection instanceof IStructuredSelection)= ) { IStructuredSelection structuredSelection =3D (IStructuredSelection) sel= ection; Object newSelectedObject =3D structuredSelection.getFirstElement(); - if (structuredSelection.getFirstElement() instanceof StyleContainer) { = - updateStyleAttributes(((StyleContainer) newSelectedObject) - .getStyleAttributes()); - - } - if ((selectedObject =3D=3D null) || (!selectedObject.equals(newSelectedObject))) super.selectionChanged(part, selection); @@ -113,13 +104,16 @@ = } = - private void updateStyleAttributes(Map attributes) { + public void update() { = - ((IObservable) getStyleAttributes().getAttributeMap()) - .removeChangeListener(this); - getStyleAttributes().setStyleProperties(attributes); - ((IObservable) getStyleAttributes().getAttributeMap()) - .addChangeListener(this); + if (selectedObject instanceof StyleContainer) { + ((IObservable) getStyleAttributes().getAttributeMap()) + .removeChangeListener(this); + getStyleAttributes().setStyleProperties( + ((StyleContainer) selectedObject).getStyleAttributes()); + ((IObservable) getStyleAttributes().getAttributeMap()) + .addChangeListener(this); + } = } = Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/view/CSSEditorView.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/v= iew/CSSEditorView.java 2009-09-11 00:46:47 UTC (rev 17525) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/v= iew/CSSEditorView.java 2009-09-11 15:03:19 UTC (rev 17526) @@ -13,12 +13,15 @@ = import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.SelectionChangedEvent; +import org.eclipse.ui.IViewSite; import org.eclipse.ui.IWorkbenchPart; +import org.eclipse.ui.PartInitException; import org.eclipse.ui.part.IContributedContentsView; import org.eclipse.ui.part.IPageBookViewPage; import org.eclipse.ui.views.properties.IPropertySheetPage; import org.eclipse.ui.views.properties.PropertySheet; import org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageCont= ributor; +import org.jboss.tools.jst.css.common.CSSSelectionListener; import org.jboss.tools.jst.css.properties.CSSPropertyPage; = /** @@ -30,8 +33,30 @@ static public String CONTRIBUTOR_ID =3D "org.eclipse.wst.css.core.csssour= ce.source"; //$NON-NLS-1$ = @Override + public void init(IViewSite site) throws PartInitException { + + super.init(site); + getSite().getPage().removeSelectionListener(this); + CSSSelectionListener.getInstance().addSelectionListener(this); + } + + @Override + public void dispose() { + + super.dispose(); + CSSSelectionListener.getInstance().removeSelectionListener(this); + + } + + @Override public void selectionChanged(IWorkbenchPart part, ISelection sel) { - // do nothing + super.selectionChanged(part, sel); + + // TODO find better way to react upon changing of node i source editor. + // Description of problem: when node is been editing PropertySheet will + // not send selection event to page as selection is same; + if (getCurrentPage() instanceof CSSPropertyPage) + ((CSSPropertyPage) getCurrentPage()).update(); } = @Override Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/view/CSSPreview.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/v= iew/CSSPreview.java 2009-09-11 00:46:47 UTC (rev 17525) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/v= iew/CSSPreview.java 2009-09-11 15:03:19 UTC (rev 17526) @@ -49,6 +49,8 @@ = private String previewContent =3D CSSUIMessages.CSSPreview_DefaultBrowser= Text; = + private String currentStyle =3D new String(); + private Map styleAttributes =3D new HashMap(); = @Override @@ -81,7 +83,6 @@ previewComposite.setLayoutData(gridData); = browser =3D new Browser(previewComposite, SWT.BORDER | SWT.MOZILLA); - browser.setText(generateBrowserPage()); browser.setLayoutData(gridData); browser.addMouseListener(new MouseAdapter() { public void mouseDoubleClick(MouseEvent e) { @@ -93,6 +94,8 @@ } }); = + updateBrowser(); + previewText =3D new Text(previewComposite, SWT.NONE | SWT.H_SCROLL); previewText.setLayoutData(gridData); previewText.setText(getPreviewContent()); @@ -100,14 +103,17 @@ public void focusLost(FocusEvent e) { if (e.widget =3D=3D previewText) { String text =3D previewText.getText(); - if (text =3D=3D null || text.equals(Constants.EMPTY)) { - setPreviewContent(CSSUIMessages.CSSPreview_DefaultBrowserText); - } else { - setPreviewContent(text); + if (!getPreviewContent().equals(text)) { + if (text =3D=3D null || text.equals(Constants.EMPTY)) { + setPreviewContent(CSSUIMessages.CSSPreview_DefaultBrowserText); + } else { + setPreviewContent(text); + } + updateBrowser(); } = browser.setEnabled(true); - browser.setText(generateBrowserPage()); + previewComposite.setMaximizedControl(browser); } } @@ -132,18 +138,10 @@ * @return String html text representation */ public String generateBrowserPage() { + String html =3D Constants.OPEN_DIV_TAG + getCurrentStyle() + + "\">" + getPreviewContent() + Constants.CLOSE_DIV_TAG; //$NON-NLS-1$ = - StringBuffer html =3D new StringBuffer(Constants.OPEN_DIV_TAG); - - for (Map.Entry styleItem : styleAttributes.entrySet()) { - - html.append(styleItem.getKey() + Constants.COLON - + styleItem.getValue() + Constants.SEMICOLON); - } - - html.append("\">" + getPreviewContent() + Constants.CLOSE_DIV_TAG); //$N= ON-NLS-1$ - - return html.toString(); + return html; } = public String getPreviewContent() { @@ -167,7 +165,13 @@ styleAttributes.clear(); } = - updateBrowser(); + String newStyle =3D getStyle(styleAttributes); + if (!newStyle.equals(currentStyle)) { + + currentStyle =3D newStyle; + updateBrowser(); + } + } = } @@ -176,4 +180,20 @@ browser.setText(generateBrowserPage()); } = + protected String getStyle(Map styleAttributes) { + + StringBuffer style =3D new StringBuffer(); + + for (Map.Entry styleItem : styleAttributes.entrySet()) { + + style.append(styleItem.getKey() + Constants.COLON + + styleItem.getValue() + Constants.SEMICOLON); + } + + return style.toString(); + } + + public String getCurrentStyle() { + return currentStyle; + } } --===============0028275471337376846==-- From jbosstools-commits at lists.jboss.org Fri Sep 11 12:04:05 2009 Content-Type: multipart/mixed; boundary="===============1507802063918029307==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17527 - in trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui: src/org/jboss/tools/hibernate/ui/diagram and 2 other directories. Date: Fri, 11 Sep 2009 12:04:04 -0400 Message-ID: <200909111604.n8BG44Np014754@svn01.web.mwc.hst.phx2.redhat.com> --===============1507802063918029307== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vyemialyanchyk Date: 2009-09-11 12:04:04 -0400 (Fri, 11 Sep 2009) New Revision: 17527 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/META-INF/MANIF= EST.MF trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/DiagramViewerMessages.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/DiagramViewerMessages.properties trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/DiagramContentOutlinePage.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/model/OrmDiagram.java Log: https://jira.jboss.org/jira/browse/JBIDE-4715 - possible to sort items alph= abetically Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/META-IN= F/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/META-INF/MANI= FEST.MF 2009-09-11 15:03:19 UTC (rev 17526) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/META-INF/MANI= FEST.MF 2009-09-11 16:04:04 UTC (rev 17527) @@ -16,6 +16,7 @@ org.eclipse.core.resources, org.hibernate.eclipse, org.eclipse.jdt.core, + org.eclipse.jdt.ui, org.hibernate.eclipse.console Bundle-Version: 2.0.0 Export-Package: org.jboss.tools.hibernate.ui.diagram, Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/DiagramViewerMessages.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/DiagramViewerMessages.java 2009-09-11 15:03:19 = UTC (rev 17526) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/DiagramViewerMessages.java 2009-09-11 16:04:04 = UTC (rev 17527) @@ -50,4 +50,7 @@ public static String MoveGuideCommand_Label; public static String DiagramContentOutlinePage_Outline; public static String DiagramContentOutlinePage_Overview; + public static String DiagramViewer_OutlinePage_Sort_label; + public static String DiagramViewer_OutlinePage_Sort_tooltip; + public static String DiagramViewer_OutlinePage_Sort_description; } Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/DiagramViewerMessages.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/DiagramViewerMessages.properties 2009-09-11 15:= 03:19 UTC (rev 17526) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/DiagramViewerMessages.properties 2009-09-11 16:= 04:04 UTC (rev 17527) @@ -26,3 +26,6 @@ MoveGuideCommand_Label=3DMove Guide DiagramContentOutlinePage_Outline=3DOutline DiagramContentOutlinePage_Overview=3DOverview +DiagramViewer_OutlinePage_Sort_label=3DSort +DiagramViewer_OutlinePage_Sort_tooltip=3DSort +DiagramViewer_OutlinePage_Sort_description=3DEnable Sorting Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/DiagramContentOutlinePage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/DiagramContentOutlinePage.java 2009-09-= 11 15:03:19 UTC (rev 17526) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/DiagramContentOutlinePage.java 2009-09-= 11 16:04:04 UTC (rev 17527) @@ -1,5 +1,5 @@ /*************************************************************************= ****** - * Copyright (c) 2007 Red Hat, Inc. + * Copyright (c) 2007-2009 Red Hat, Inc. * Distributed under license by Red Hat, Inc. All rights reserved. * This program is made available under the terms of the * Eclipse Public License v1.0 which accompanies this distribution, @@ -35,6 +35,7 @@ import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.jface.viewers.ISelectionChangedListener; import org.eclipse.swt.SWT; +import org.eclipse.swt.custom.BusyIndicator; import org.eclipse.swt.widgets.Canvas; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; @@ -166,6 +167,9 @@ "org.jboss.tools.hibernate.ui.diagram.editors.popup.outline.contextmenu= ", //$NON-NLS-1$ provider, getSite().getSelectionProvider()); IToolBarManager tbm =3D getSite().getActionBars().getToolBarManager(); + = + tbm.add(new LexicalSortingAction()); + showOutlineAction =3D new Action() { public void run() { showPage(ID_OUTLINE); @@ -347,4 +351,39 @@ return actionRegistry; } = + class LexicalSortingAction extends Action { + + @SuppressWarnings("restriction") + public LexicalSortingAction() { + super(); + setText(DiagramViewerMessages.DiagramViewer_OutlinePage_Sort_label); + org.eclipse.jdt.internal.ui.JavaPluginImages.setLocalImageDescriptors(t= his, "alphab_sort_co.gif"); //$NON-NLS-1$ + setToolTipText(DiagramViewerMessages.DiagramViewer_OutlinePage_Sort_too= ltip); + setDescription(DiagramViewerMessages.DiagramViewer_OutlinePage_Sort_des= cription); + + boolean checked =3D getOrmDiagram().isDeepIntoSort(); + valueChanged(checked); + } + + public void run() { + valueChanged(isChecked()); + } + + private void valueChanged(final boolean on) { + setChecked(on); + BusyIndicator.showWhile(outline.getDisplay(), new Runnable() { + public void run() { + if (on) { + getOrmDiagram().setDeepIntoSort(true); + getOrmDiagram().refresh(); + setContents(getOrmDiagram()); + } else { + getOrmDiagram().setDeepIntoSort(false); + getOrmDiagram().refresh(); + setContents(getOrmDiagram()); + } + } + }); + } + } } Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/model/OrmDiagram.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/model/OrmDiagram.java 2009-09-11 15:03:= 19 UTC (rev 17526) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/model/OrmDiagram.java 2009-09-11 16:04:= 04 UTC (rev 17527) @@ -72,7 +72,8 @@ private boolean gridEnabled =3D false; private double zoom =3D 1.0; private float fontHeight =3D 8.5f; - = + private boolean deepIntoSort =3D false; + // private boolean fileLoadSuccessfull =3D false; = @@ -86,7 +87,7 @@ entityNames =3D new String[1]; entityNames[0] =3D ioe.getEntityName(); recreateChildren(); - sortChildren(false); + sortChildren(deepIntoSort); loadFromFile(); refreshDiagramElements(); setDirty(false); @@ -107,7 +108,7 @@ entityNames[i] =3D ormElements[i].getEntityName(); } recreateChildren(); - sortChildren(false); + sortChildren(deepIntoSort); loadFromFile(); refreshDiagramElements(); setDirty(false); @@ -260,7 +261,7 @@ Properties properties =3D new Properties(); saveInProperties(properties); recreateChildren(); - sortChildren(false); + sortChildren(deepIntoSort); // -> load just from properties loadFromProperties(properties); refreshDiagramElements(); @@ -346,6 +347,8 @@ gridEnabled =3D Boolean.valueOf(str).booleanValue(); str =3D properties.getProperty("zoom", "1.0"); //$NON-NLS-1$ //$NON-NLS-= 2$ zoom =3D Double.valueOf(str).doubleValue(); + str =3D properties.getProperty("deepIntoSort", "false"); //$NON-NLS-1$ /= /$NON-NLS-2$ + deepIntoSort =3D Boolean.valueOf(str).booleanValue(); } = @Override @@ -354,6 +357,7 @@ properties.put("snapToGeometry", "" + snapToGeometry); //$NON-NLS-1$ //$= NON-NLS-2$ properties.put("gridEnabled", "" + gridEnabled); //$NON-NLS-1$ //$NON-NL= S-2$ properties.put("zoom", "" + zoom); //$NON-NLS-1$ //$NON-NLS-2$ + properties.put("deepIntoSort", "" + deepIntoSort); //$NON-NLS-1$ //$NON-= NLS-2$ super.saveInProperties(properties); } = @@ -504,4 +508,12 @@ public OrmLabelProvider getLabelProvider() { return labelProvider; } + = + public boolean isDeepIntoSort() { + return deepIntoSort; + } + + public void setDeepIntoSort(boolean deepIntoSort) { + this.deepIntoSort =3D deepIntoSort; + } } --===============1507802063918029307==-- From jbosstools-commits at lists.jboss.org Fri Sep 11 12:50:49 2009 Content-Type: multipart/mixed; boundary="===============3804838029024749853==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17528 - tags. Date: Fri, 11 Sep 2009 12:50:49 -0400 Message-ID: <200909111650.n8BGonGC023856@svn01.web.mwc.hst.phx2.redhat.com> --===============3804838029024749853== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: nickboldt Date: 2009-09-11 12:50:49 -0400 (Fri, 11 Sep 2009) New Revision: 17528 Added: tags/jbosstools-3.1.0.M3/ Log: tag as 3.1.0.M3 Copied: tags/jbosstools-3.1.0.M3 (from rev 17527, branches/jbosstools-3.1.0= .M3) --===============3804838029024749853==-- From jbosstools-commits at lists.jboss.org Fri Sep 11 12:53:56 2009 Content-Type: multipart/mixed; boundary="===============5918303106842946936==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17529 - in trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml: resources/meta and 3 other directories. Date: Fri, 11 Sep 2009 12:53:56 -0400 Message-ID: <200909111653.n8BGruPI024195@svn01.web.mwc.hst.phx2.redhat.com> --===============5918303106842946936== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-11 12:53:55 -0400 (Fri, 11 Sep 2009) New Revision: 17529 Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jboss= /tools/hibernate/xml/model/handlers/DeletePropertyHandler.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jboss= /tools/hibernate/xml/model/impl/ComplexAttrUtil.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jboss= /tools/hibernate/xml/model/impl/HibConfigComplexPropertyImpl.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jboss= /tools/hibernate/xml/model/impl/HibConfigSimplePropertyImpl.java Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin.xml trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/met= a/hibconfig3.meta trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jboss= /tools/hibernate/xml/model/HibConfigLoader.java Log: https://jira.jboss.org/jira/browse/JBIDE-2607 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin= .xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin.xml 2= 009-09-11 16:50:49 UTC (rev 17528) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin.xml 2= 009-09-11 16:53:55 UTC (rev 17529) @@ -91,9 +91,16 @@ class=3D"org.jboss.tools.hibernate.xml.model.impl.OrderedObject2Impl"/> + + = + + = \ No newline at end of file Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resour= ces/meta/hibconfig3.meta =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/me= ta/hibconfig3.meta 2009-09-11 16:50:49 UTC (rev 17528) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/me= ta/hibconfig3.meta 2009-09-11 16:53:55 UTC (rev 17529) @@ -3,7 +3,11 @@ "meta.dtd"> - + + + + + @@ -658,7 +662,9 @@ - + @@ -850,6 +856,9 @@ + + + @@ -864,9 +873,388 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -905,7 +1293,9 @@ - + @@ -935,7 +1325,8 @@ displayName=3D"Properties..." kind=3D"action" name=3D"Properties"/> - @@ -1081,7 +1472,7 @@ - @@ -1109,7 +1500,7 @@ - Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/or= g/jboss/tools/hibernate/xml/model/HibConfigLoader.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jbos= s/tools/hibernate/xml/model/HibConfigLoader.java 2009-09-11 16:50:49 UTC (r= ev 17528) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jbos= s/tools/hibernate/xml/model/HibConfigLoader.java 2009-09-11 16:53:55 UTC (r= ev 17529) @@ -11,10 +11,14 @@ package org.jboss.tools.hibernate.xml.model; = import org.jboss.tools.common.meta.XAttribute; +import org.jboss.tools.common.meta.XChild; import org.jboss.tools.common.meta.XModelEntity; import org.jboss.tools.common.model.XModelObject; import org.jboss.tools.common.model.loaders.impl.SimpleWebFileLoader; +import org.jboss.tools.common.model.project.ext.store.XMLStoreConstants; import org.jboss.tools.common.model.util.XModelObjectLoaderUtil; +import org.jboss.tools.hibernate.xml.model.impl.ComplexAttrUtil; +import org.jboss.tools.hibernate.xml.model.impl.HibConfigComplexPropertyIm= pl; import org.w3c.dom.Element; = public class HibConfigLoader extends SimpleWebFileLoader { @@ -53,7 +57,12 @@ protected void loadFolders(Element element, XModelObject o, String[] fold= ers) { for (int i =3D 0; i < folders.length; i++) { XModelObject c =3D o.getChildByPath(folders[i]); - if(c !=3D null) super.loadChildren(element, c); + if(c !=3D null) { + super.loadChildren(element, c); + if(i =3D=3D 0) { + assignComplexProperties(c); + } + } } } = @@ -81,5 +90,21 @@ } return super.isSaveable(entity, n, v, dv); } - = + + private void assignComplexProperties(XModelObject folder) { + XModelObject[] ps =3D folder.getChildren(HibConfigComplexPropertyImpl.EN= T_PROPERTY); + for (int i =3D 0; i < ps.length; i++) { + String n =3D ps[i].getAttributeValue(XMLStoreConstants.ATTR_NAME); + String v =3D ps[i].getAttributeValue(XMLStoreConstants.ATTR_VALUE); + XAttribute attr =3D ComplexAttrUtil.findComplexAttr(folder, n); + if(attr !=3D null) { + XModelEntity entity =3D attr.getModelEntity(); + XModelObject c =3D folder.getChildByPath(entity.getAttribute("name").g= etDefaultValue()); + if(c !=3D null) { + c.setAttributeValue(attr.getName(), v); + } + } + } + } + } Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/j= boss/tools/hibernate/xml/model/handlers/DeletePropertyHandler.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jbos= s/tools/hibernate/xml/model/handlers/DeletePropertyHandler.java = (rev 0) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jbos= s/tools/hibernate/xml/model/handlers/DeletePropertyHandler.java 2009-09-11 = 16:53:55 UTC (rev 17529) @@ -0,0 +1,39 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.hibernate.xml.model.handlers; + +import org.jboss.tools.common.meta.XAttribute; +import org.jboss.tools.common.meta.XModelEntity; +import org.jboss.tools.common.meta.action.impl.handlers.DefaultRemoveHandl= er; +import org.jboss.tools.common.model.XModelException; +import org.jboss.tools.common.model.XModelObject; +import org.jboss.tools.common.model.project.ext.store.XMLStoreConstants; +import org.jboss.tools.hibernate.xml.model.impl.ComplexAttrUtil; + +public class DeletePropertyHandler extends DefaultRemoveHandler { + + public DeletePropertyHandler() {} + + public void executeHandler(XModelObject object, java.util.Properties p= ) throws XModelException { + String name =3D object.getAttributeValue(XMLStoreConstants.ATTR_NAME); + XAttribute attr =3D ComplexAttrUtil.findComplexAttr(object.getParent(= ), name); + if(attr !=3D null) { + XModelEntity entity =3D attr.getModelEntity(); + XModelObject c =3D object.getParent().getChildByPath(entity.getAttribut= e(XMLStoreConstants.ATTR_NAME).getDefaultValue()); + if(c !=3D null) { + c.getModel().editObjectAttribute(c, attr.getName(), ""); + } + } else { + super.executeHandler(object, p); + } + } + +} Property changes on: trunk/hibernatetools/plugins/org.jboss.tools.hibernate= .xml/src/org/jboss/tools/hibernate/xml/model/handlers/DeletePropertyHandler= .java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/j= boss/tools/hibernate/xml/model/impl/ComplexAttrUtil.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jbos= s/tools/hibernate/xml/model/impl/ComplexAttrUtil.java = (rev 0) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jbos= s/tools/hibernate/xml/model/impl/ComplexAttrUtil.java 2009-09-11 16:53:55 U= TC (rev 17529) @@ -0,0 +1,38 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.hibernate.xml.model.impl; + +import org.jboss.tools.common.meta.XAttribute; +import org.jboss.tools.common.meta.XChild; +import org.jboss.tools.common.meta.XModelEntity; +import org.jboss.tools.common.model.XModelObject; + +public class ComplexAttrUtil { + + public static XAttribute findComplexAttr(XModelObject folder, String hPro= perty) { + XChild[] cs =3D folder.getModelEntity().getChildren(); + for (int i =3D 0; i < cs.length; i++) { + if(cs[i].getMaxCount() =3D=3D 1 && cs[i].isRequired()) { + String n =3D cs[i].getName(); + XModelEntity e =3D folder.getModelEntity().getMetaModel().getEntity(n); + if(e =3D=3D null) continue; + XAttribute[] as =3D e.getAttributes(); + for (int j =3D 0; j < as.length; j++) { + if(hProperty.equals(as[j].getProperty(HibConfigComplexPropertyImpl.H_= PROPERTY))) { + return as[j]; + } + } + } + } + return null; + } + +} Property changes on: trunk/hibernatetools/plugins/org.jboss.tools.hibernate= .xml/src/org/jboss/tools/hibernate/xml/model/impl/ComplexAttrUtil.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/j= boss/tools/hibernate/xml/model/impl/HibConfigComplexPropertyImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jbos= s/tools/hibernate/xml/model/impl/HibConfigComplexPropertyImpl.java = (rev 0) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jbos= s/tools/hibernate/xml/model/impl/HibConfigComplexPropertyImpl.java 2009-09-= 11 16:53:55 UTC (rev 17529) @@ -0,0 +1,58 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.hibernate.xml.model.impl; + +import org.jboss.tools.common.meta.XAttribute; +import org.jboss.tools.common.meta.action.impl.handlers.DefaultCreateHandl= er; +import org.jboss.tools.common.meta.action.impl.handlers.DefaultRemoveHandl= er; +import org.jboss.tools.common.model.XModelException; +import org.jboss.tools.common.model.XModelObject; +import org.jboss.tools.common.model.project.ext.store.XMLStoreConstants; + +public class HibConfigComplexPropertyImpl extends RegularObject2Impl { + private static final long serialVersionUID =3D 1L; + public static String H_PROPERTY =3D "h_property"; //$NON-NLS-1$ + public static String ENT_PROPERTY =3D "HibConfig3Property"; //$NON-NLS-1$ + static String ATTR_VALUE =3D "value"; //$NON-NLS-1$ + boolean lock =3D false; + + public HibConfigComplexPropertyImpl() { + } + + protected void onAttributeValueEdit(String name, String oldValue, String = newValue) throws XModelException { + if(getParent() =3D=3D null) return; + XAttribute a =3D getModelEntity().getAttribute(name); + if(a =3D=3D null) return; + String propertyName =3D a.getProperty(H_PROPERTY); + if(propertyName =3D=3D null || propertyName.length() =3D=3D 0) return; + if(lock) return; + lock =3D true; + try { + XModelObject o =3D getParent().getChildByPath(propertyName); + if(o =3D=3D null) { + if(newValue !=3D null && newValue.length() > 0) { + XModelObject c =3D getModel().createModelObject(ENT_PROPERTY, null); + c.setAttributeValue(ATTR_VALUE, newValue); + c.setAttributeValue(XMLStoreConstants.ATTR_NAME, propertyName); + DefaultCreateHandler.addCreatedObject(getParent(), c, -1); + } + } else { + if(newValue =3D=3D null || newValue.length() =3D=3D 0) { + DefaultRemoveHandler.removeFromParent(o); + } else { + getModel().editObjectAttribute(o, ATTR_VALUE, newValue); + } + } + } finally { + lock =3D false; + } + } +} Property changes on: trunk/hibernatetools/plugins/org.jboss.tools.hibernate= .xml/src/org/jboss/tools/hibernate/xml/model/impl/HibConfigComplexPropertyI= mpl.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/j= boss/tools/hibernate/xml/model/impl/HibConfigSimplePropertyImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jbos= s/tools/hibernate/xml/model/impl/HibConfigSimplePropertyImpl.java = (rev 0) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jbos= s/tools/hibernate/xml/model/impl/HibConfigSimplePropertyImpl.java 2009-09-1= 1 16:53:55 UTC (rev 17529) @@ -0,0 +1,55 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.hibernate.xml.model.impl; + +import org.jboss.tools.common.meta.XAttribute; +import org.jboss.tools.common.meta.XModelEntity; +import org.jboss.tools.common.model.XModelException; +import org.jboss.tools.common.model.XModelObject; +import org.jboss.tools.common.model.project.ext.store.XMLStoreConstants; + +public class HibConfigSimplePropertyImpl extends RegularObject2Impl { + private static final long serialVersionUID =3D 1L; + + public HibConfigSimplePropertyImpl() { + } + + protected void onAttributeValueEdit(String name, String oldValue, String = newValue) throws XModelException { + if(getParent() =3D=3D null) return; + if(name.equals(XMLStoreConstants.ATTR_VALUE)) { + XAttribute attr =3D ComplexAttrUtil.findComplexAttr(getParent(), getAtt= ributeValue(XMLStoreConstants.ATTR_NAME)); + if(attr !=3D null) { + XModelEntity entity =3D attr.getModelEntity(); + XModelObject c =3D getParent().getChildByPath(entity.getAttribute(XMLS= toreConstants.ATTR_NAME).getDefaultValue()); + if(c !=3D null) { + c.setAttributeValue(attr.getName(), newValue); + } + } + } else if(name.equals(XMLStoreConstants.ATTR_NAME)) { + XAttribute attr =3D ComplexAttrUtil.findComplexAttr(getParent(), oldVal= ue); + if(attr !=3D null) { + XModelEntity entity =3D attr.getModelEntity(); + XModelObject c =3D getParent().getChildByPath(entity.getAttribute(XMLS= toreConstants.ATTR_NAME).getDefaultValue()); + if(c !=3D null) { + c.setAttributeValue(attr.getName(), ""); + } + } + attr =3D ComplexAttrUtil.findComplexAttr(getParent(), newValue); + if(attr !=3D null) { + XModelEntity entity =3D attr.getModelEntity(); + XModelObject c =3D getParent().getChildByPath(entity.getAttribute(XMLS= toreConstants.ATTR_NAME).getDefaultValue()); + if(c !=3D null) { + c.setAttributeValue(attr.getName(), newValue); + } + } + } + } +} Property changes on: trunk/hibernatetools/plugins/org.jboss.tools.hibernate= .xml/src/org/jboss/tools/hibernate/xml/model/impl/HibConfigSimplePropertyIm= pl.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============5918303106842946936==-- From jbosstools-commits at lists.jboss.org Fri Sep 11 13:08:58 2009 Content-Type: multipart/mixed; boundary="===============8679304073977501180==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17530 - trunk/jsf/plugins/org.jboss.tools.jsf.verification/META-INF. Date: Fri, 11 Sep 2009 13:08:58 -0400 Message-ID: <200909111708.n8BH8wPK027672@svn01.web.mwc.hst.phx2.redhat.com> --===============8679304073977501180== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-11 13:08:58 -0400 (Fri, 11 Sep 2009) New Revision: 17530 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.verification/META-INF/MANIFEST.MF Log: jsv.verification plug-in activation error is fixed Modified: trunk/jsf/plugins/org.jboss.tools.jsf.verification/META-INF/MANIF= EST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.verification/META-INF/MANIFEST.MF= 2009-09-11 16:53:55 UTC (rev 17529) +++ trunk/jsf/plugins/org.jboss.tools.jsf.verification/META-INF/MANIFEST.MF= 2009-09-11 17:08:58 UTC (rev 17530) @@ -1,17 +1,13 @@ Manifest-Version: 1.0 Bundle-Name: %Bundle-Name.0 -Bundle-Activator: org.eclipse.core.internal.compatibility.PluginActiva - tor Bundle-ManifestVersion: 2 Bundle-Vendor: %providerName Bundle-SymbolicName: org.jboss.tools.jsf.verification;singleton:=3Dtrue Bundle-Localization: plugin -Provide-Package: org.jboss.tools.jsf.verification.vrules, - org.jboss.tools.jsf.verification.vrules.toview Require-Bundle: org.jboss.tools.common.verification, org.jboss.tools.jsf Bundle-Version: 2.0.0 -Eclipse-LazyStart: true Export-Package: org.jboss.tools.jsf.verification.vrules, org.jboss.tools.jsf.verification.vrules.toview Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Bundle-ActivationPolicy: lazy --===============8679304073977501180==-- From jbosstools-commits at lists.jboss.org Fri Sep 11 14:05:26 2009 Content-Type: multipart/mixed; boundary="===============0891041652403259729==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17531 - in trunk: documentation/guides/GettingStartedGuide/en/modules and 5 other directories. Date: Fri, 11 Sep 2009 14:05:26 -0400 Message-ID: <200909111805.n8BI5Q5s006813@svn01.web.mwc.hst.phx2.redhat.com> --===============0891041652403259729== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: smukhina Date: 2009-09-11 14:05:25 -0400 (Fri, 11 Sep 2009) New Revision: 17531 Modified: trunk/birt/docs/en/modules/birt_reports_deployment.xml trunk/documentation/guides/GettingStartedGuide/en/modules/getting_starte= d.xml trunk/hibernatetools/docs/reference/en/modules/preface.xml trunk/jbpm/docs/reference/en/modules/Introduction.xml trunk/jmx/docs/reference/en/modules/introduction.xml trunk/seam/docs/reference/en/modules/intro.xml trunk/ws/docs/reference/en/modules/overview.xml Log: JBDS-172 jboss tools wiki articles are looked through, relevant resources = links are created in the corresponding guides = Modified: trunk/birt/docs/en/modules/birt_reports_deployment.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/birt/docs/en/modules/birt_reports_deployment.xml 2009-09-11 17:08= :58 UTC (rev 17530) +++ trunk/birt/docs/en/modules/birt_reports_deployment.xml 2009-09-11 18:05= :25 UTC (rev 17531) @@ -1,3 +1,4 @@ + = Modified: trunk/documentation/guides/GettingStartedGuide/en/modules/getting= _started.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/documentation/guides/GettingStartedGuide/en/modules/getting_start= ed.xml 2009-09-11 17:08:58 UTC (rev 17530) +++ trunk/documentation/guides/GettingStartedGuide/en/modules/getting_start= ed.xml 2009-09-11 18:05:25 UTC (rev 17531) @@ -763,8 +763,12 @@ Studio Forum: JBoss Forum + + Wiki: JBo= ssToolsWiki = + = Subscription: JBDS - Subscription + Subscription + = = The latest documentation builds are available here.
Modified: trunk/hibernatetools/docs/reference/en/modules/preface.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/docs/reference/en/modules/preface.xml 2009-09-11 1= 7:08:58 UTC (rev 17530) +++ trunk/hibernatetools/docs/reference/en/modules/preface.xml 2009-09-11 1= 8:05:25 UTC (rev 17531) @@ -155,7 +155,8 @@ Other relevant resources on the topic = - All JBoss Developer Studio/JBoss Tools release documentation= you can find athttp://docs.jbo= ss.org/tools in the corresponding release directory. + All JBoss Developer Studio/JBoss Tools release documentation= you can find athttp://docs.jbo= ss.org/tools in the corresponding release directory. + There is some extra information about Hidernate on JBoss Wiki page. = The latest documentation builds are available at http://download.jbo= ss.org/jbosstools/nightly-docs.
= Modified: trunk/jbpm/docs/reference/en/modules/Introduction.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jbpm/docs/reference/en/modules/Introduction.xml 2009-09-11 17:08:= 58 UTC (rev 17530) +++ trunk/jbpm/docs/reference/en/modules/Introduction.xml 2009-09-11 18:05:= 25 UTC (rev 17531) @@ -146,7 +146,8 @@ =
Other relevant resources on the topic - All JBoss Developer Studio/JBoss Tools release documentation you c= an find athttp://docs.jboss.org= /tools in the corresponding release directory. + All JBoss Developer Studio/JBoss Tools release documentation you c= an find athttp://docs.jboss.org= /tools in the corresponding release directory. + There is some extra information on JBoss Wiki. The latest documentation builds are available at http://download.jboss.org/= jbosstools/nightly-docs.
= Modified: trunk/jmx/docs/reference/en/modules/introduction.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jmx/docs/reference/en/modules/introduction.xml 2009-09-11 17:08:5= 8 UTC (rev 17530) +++ trunk/jmx/docs/reference/en/modules/introduction.xml 2009-09-11 18:05:2= 5 UTC (rev 17531) @@ -138,6 +138,22 @@ = - + +
+ Other relevant resources on the topic + + You can find a set of benefits and other extra information o= n: + + + + JBoss Wiki + + + = + + + = + +
= Modified: trunk/seam/docs/reference/en/modules/intro.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/docs/reference/en/modules/intro.xml 2009-09-11 17:08:58 UTC = (rev 17530) +++ trunk/seam/docs/reference/en/modules/intro.xml 2009-09-11 18:05:25 UTC = (rev 17531) @@ -138,7 +138,8 @@ Other relevant resources on the topic = The Seam Framework<= /ulink> - Next generation enterprise Java development. - All JBoss Developer Studio/JBoss Tools release documentation= you can find athttp://docs.jbo= ss.org/tools in the corresponding release directory. + All JBoss Developer Studio/JBoss Tools release documentation= you can find athttp://docs.jbo= ss.org/tools in the corresponding release directory. + There is some extra information on JBoss Wiki. The latest documentation builds are available at http://download.jbo= ss.org/jbosstools/nightly-docs. Modified: trunk/ws/docs/reference/en/modules/overview.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/ws/docs/reference/en/modules/overview.xml 2009-09-11 17:08:58 UTC= (rev 17530) +++ trunk/ws/docs/reference/en/modules/overview.xml 2009-09-11 18:05:25 UTC= (rev 17531) @@ -65,6 +65,21 @@ = = +
+ Other relevant resources on the topic + + You can find some extra information on: + + + + JBossWS Tools Wiki FAQ. + + + + + = +
+ = = = --===============0891041652403259729==-- From jbosstools-commits at lists.jboss.org Fri Sep 11 16:59:11 2009 Content-Type: multipart/mixed; boundary="===============3936541686824050895==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17532 - in trunk: archives/plugins/org.jboss.ide.eclipse.archives.ui/META-INF and 81 other directories. Date: Fri, 11 Sep 2009 16:59:11 -0400 Message-ID: <200909112059.n8BKxBmD009800@svn01.web.mwc.hst.phx2.redhat.com> --===============3936541686824050895== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-11 16:59:09 -0400 (Fri, 11 Sep 2009) New Revision: 17532 Modified: trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/META-INF/MANI= FEST.MF trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/META-INF/MANIFE= ST.MF trunk/archives/tests/org.jboss.ide.eclipse.archives.test/META-INF/MANIFE= ST.MF trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/META-INF/MANIFE= ST.MF trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/META-INF/MANIFEST= .MF trunk/as/plugins/org.jboss.ide.eclipse.as.core/META-INF/MANIFEST.MF trunk/as/plugins/org.jboss.ide.eclipse.as.ui.mbeans/META-INF/MANIFEST.MF trunk/as/plugins/org.jboss.ide.eclipse.as.ui/META-INF/MANIFEST.MF trunk/as/tests/org.jboss.ide.eclipse.as.archives.integration.test/META-I= NF/MANIFEST.MF trunk/as/tests/org.jboss.ide.eclipse.as.test/META-INF/MANIFEST.MF trunk/common/plugins/org.jboss.tools.common.el.core/META-INF/MANIFEST.MF trunk/common/plugins/org.jboss.tools.common.el.ui/META-INF/MANIFEST.MF trunk/common/plugins/org.jboss.tools.common.gef/META-INF/MANIFEST.MF trunk/common/plugins/org.jboss.tools.common.meta.ui/META-INF/MANIFEST.MF trunk/common/plugins/org.jboss.tools.common.model.ui/META-INF/MANIFEST.MF trunk/common/plugins/org.jboss.tools.common.model/META-INF/MANIFEST.MF trunk/common/plugins/org.jboss.tools.common.projecttemplates/META-INF/MA= NIFEST.MF trunk/common/plugins/org.jboss.tools.common.text.ext/META-INF/MANIFEST.MF trunk/common/plugins/org.jboss.tools.common.text.xml/META-INF/MANIFEST.MF trunk/common/plugins/org.jboss.tools.common.verification.ui/META-INF/MAN= IFEST.MF trunk/common/plugins/org.jboss.tools.common.verification/META-INF/MANIFE= ST.MF trunk/common/plugins/org.jboss.tools.common/META-INF/MANIFEST.MF trunk/common/tests/org.jboss.tools.common.el.core.test/META-INF/MANIFEST= .MF trunk/common/tests/org.jboss.tools.common.model.test/META-INF/MANIFEST.MF trunk/common/tests/org.jboss.tools.common.test/META-INF/MANIFEST.MF trunk/common/tests/org.jboss.tools.common.verification.test/META-INF/MAN= IFEST.MF trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/META-INF/MANIF= EST.MF trunk/hibernatetools/plugins/org.hibernate.eclipse.console/META-INF/MANI= FEST.MF trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.apt.ui/META-INF/M= ANIFEST.MF trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/META-INF/MANIF= EST.MF trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/META-INF/MANIF= EST.MF trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/META-INF/M= ANIFEST.MF trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/META-INF/MANI= FEST.MF trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/M= ANIFEST.MF trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/META-INF/MA= NIFEST.MF trunk/jmx/plugins/org.jboss.tools.jmx.core/META-INF/MANIFEST.MF trunk/jmx/plugins/org.jboss.tools.jmx.ui/META-INF/MANIFEST.MF trunk/jmx/tests/org.jboss.tools.jmx.ui.test.interactive/META-INF/MANIFES= T.MF trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/META-INF/MANIFEST.MF trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/META-INF/MANIFES= T.MF trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/MANIFE= ST.MF trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/META-INF/MANIFEST.MF trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/META-INF/MANIFEST.MF trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/META-INF/MANIFEST.MF trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/META-INF/MANIFEST.MF trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl/META-INF/MANIFEST.MF trunk/jsf/plugins/org.jboss.tools.jsf.vpe.myfaces/META-INF/MANIFEST.MF trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/META-INF/MANIFEST.MF trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/META-INF/MANIFEST.MF trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF trunk/jsf/tests/org.jboss.tools.jsf.text.ext.test/META-INF/MANIFEST.MF trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/META-INF/MANIFEST.= MF trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/META-INF/MANIFEST.MF trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST= .MF trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/META-INF/MANIFEST.MF trunk/jst/plugins/org.jboss.tools.jst.firstrun/META-INF/MANIFEST.MF trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/META-INF/MANIFEST.MF trunk/jst/plugins/org.jboss.tools.jst.web.tiles/META-INF/MANIFEST.MF trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF trunk/jst/plugins/org.jboss.tools.jst.web.verification/META-INF/MANIFEST= .MF trunk/jst/plugins/org.jboss.tools.jst.web/META-INF/MANIFEST.MF trunk/jst/tests/org.jboss.tools.jst.web.test/META-INF/MANIFEST.MF trunk/seam/plugins/org.jboss.tools.seam.pages.xml/META-INF/MANIFEST.MF trunk/seam/plugins/org.jboss.tools.seam.text.ext/META-INF/MANIFEST.MF trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFEST.MF trunk/seam/plugins/org.jboss.tools.seam.ui/META-INF/MANIFEST.MF trunk/seam/plugins/org.jboss.tools.seam.xml.ui/META-INF/MANIFEST.MF trunk/seam/plugins/org.jboss.tools.seam.xml/META-INF/MANIFEST.MF trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam= /core/test/project/facet/AbstractSeamFacetTest.java trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam= /core/test/project/facet/Seam2FacetInstallDelegateTest.java trunk/seam/tests/org.jboss.tools.seam.pages.xml.test/META-INF/MANIFEST.MF trunk/tests/tests/org.jboss.tools.test/META-INF/MANIFEST.MF trunk/vpe/plugins/org.jboss.tools.vpe.docbook/META-INF/MANIFEST.MF trunk/vpe/plugins/org.jboss.tools.vpe.html/META-INF/MANIFEST.MF trunk/vpe/plugins/org.jboss.tools.vpe.jsp/META-INF/MANIFEST.MF trunk/vpe/plugins/org.jboss.tools.vpe.resref/META-INF/MANIFEST.MF trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFEST.MF trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/META-INF/MANIFEST.MF trunk/vpe/plugins/org.jboss.tools.vpe/META-INF/MANIFEST.MF trunk/vpe/tests/org.jboss.tools.vpe.html.test/META-INF/MANIFEST.MF trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/META-INF/MANIFEST.MF trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/META-INF/MANIFEST.MF Log: https://jira.jboss.org/jira/browse/JBIDE-4474 = manifests were cleaned up to be Bundle-ManifestVersion: 2 Modified: trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/META-I= NF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/META-INF/MAN= IFEST.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/META-INF/MAN= IFEST.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -12,7 +12,7 @@ org.eclipse.core.resources, org.eclipse.core.runtime, org.eclipse.core.variables -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-ClassPath: archivescore.jar, archivescore-eclipse.jar, lib/concurrent-1.3.4.jar, Modified: trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/META-INF= /MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/META-INF/MANIF= EST.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/META-INF/MANIF= EST.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -13,7 +13,7 @@ org.eclipse.debug.ui;bundle-version=3D"3.4.0", org.eclipse.core.variables;bundle-version=3D"3.2.100", org.eclipse.ui.navigator;bundle-version=3D"3.3.100" -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.jboss.ide.eclipse.archives.ui, org.jboss.ide.eclipse.archives.ui.actions, org.jboss.ide.eclipse.archives.ui.preferences, Modified: trunk/archives/tests/org.jboss.ide.eclipse.archives.test/META-INF= /MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/archives/tests/org.jboss.ide.eclipse.archives.test/META-INF/MANIF= EST.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/archives/tests/org.jboss.ide.eclipse.archives.test/META-INF/MANIF= EST.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -18,7 +18,7 @@ org.eclipse.jface;bundle-version=3D"3.4.0", org.eclipse.jdt.core;bundle-version=3D"3.4.4", org.jboss.ide.eclipse.archives.jdt.integration;bundle-version=3D"1.0.0" -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-ClassPath: archivestest.jar Export-Package: org.jboss.ide.eclipse.archives.test, org.jboss.ide.eclipse.archives.test.core, Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/META-INF= /MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/META-INF/MANIF= EST.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/META-INF/MANIF= EST.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -13,7 +13,7 @@ org.eclipse.wst.common.project.facet.core, org.eclipse.jst.common.project.facet.core, org.jboss.ide.eclipse.as.core -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.jboss.ide.eclipse.as.classpath.core, org.jboss.ide.eclipse.as.classpath.core.ejb3, org.jboss.ide.eclipse.as.classpath.core.jee, Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/META-INF/M= ANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/META-INF/MANIFES= T.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/META-INF/MANIFES= T.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -13,7 +13,7 @@ org.eclipse.jdt.ui, org.eclipse.jdt.core, org.eclipse.core.resources -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Vendor: %Bundle-Vendor.0 Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/META-INF/MANIFEST.= MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.core/META-INF/MANIFEST.MF 200= 9-09-11 18:05:25 UTC (rev 17531) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/META-INF/MANIFEST.MF 200= 9-09-11 20:59:09 UTC (rev 17532) @@ -17,7 +17,7 @@ org.jboss.tools.jmx.core;bundle-version=3D"0.2.1", org.eclipse.core.variables;bundle-version=3D"3.2.200", org.jboss.ide.eclipse.as.wtp.core;bundle-version=3D"1.0.0" -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.jboss.ide.eclipse.as.core, org.jboss.ide.eclipse.as.core.extensions.descriptors, org.jboss.ide.eclipse.as.core.extensions.events, Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/META-INF/MANIFEST.MF 2009-= 09-11 18:05:25 UTC (rev 17531) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/META-INF/MANIFEST.MF 2009-= 09-11 20:59:09 UTC (rev 17532) @@ -47,7 +47,7 @@ org.jboss.tools.jmx.ui, org.jboss.tools.jmx.core, org.eclipse.jst.j2ee.core -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.jboss.ide.eclipse.as.ui, org.jboss.ide.eclipse.as.ui.dialogs, org.jboss.ide.eclipse.as.ui.views.server.extensions, Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui.mbeans/META-INF/MANI= FEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.ui.mbeans/META-INF/MANIFEST.M= F 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui.mbeans/META-INF/MANIFEST.M= F 2009-09-11 20:59:09 UTC (rev 17532) @@ -22,7 +22,7 @@ org.eclipse.ui.ide, org.eclipse.core.filesystem, org.jboss.ide.eclipse.as.ui -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.jboss.ide.eclipse.as.ui.mbeans.editors.proposals Bundle-Vendor: %Bundle-Vendor.0 Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/as/tests/org.jboss.ide.eclipse.as.archives.integration.test= /META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/tests/org.jboss.ide.eclipse.as.archives.integration.test/META-= INF/MANIFEST.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/as/tests/org.jboss.ide.eclipse.as.archives.integration.test/META-= INF/MANIFEST.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -4,7 +4,7 @@ Bundle-SymbolicName: org.jboss.ide.eclipse.as.archives.integration.test Bundle-Version: 1.0.0 Bundle-Activator: org.jboss.ide.eclipse.as.archives.integration.test.ASArc= hivesIntegrationTest -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-ClassPath: jbossasarchivesintegrationtest.jar Bundle-Vendor: %Bundle-Vendor.0 Bundle-Localization: plugin Modified: trunk/as/tests/org.jboss.ide.eclipse.as.test/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/tests/org.jboss.ide.eclipse.as.test/META-INF/MANIFEST.MF 2009-= 09-11 18:05:25 UTC (rev 17531) +++ trunk/as/tests/org.jboss.ide.eclipse.as.test/META-INF/MANIFEST.MF 2009-= 09-11 20:59:09 UTC (rev 17532) @@ -21,7 +21,7 @@ org.jboss.tools.jmx.core.test, org.jboss.ide.eclipse.as.ui;bundle-version=3D"1.0.0", org.eclipse.ui.navigator;bundle-version=3D"3.3.101" -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-ClassPath: jbossastest.jar Bundle-Vendor: %Bundle-Vendor.0 Bundle-Localization: plugin Modified: trunk/common/plugins/org.jboss.tools.common/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common/META-INF/MANIFEST.MF 2009-0= 9-11 18:05:25 UTC (rev 17531) +++ trunk/common/plugins/org.jboss.tools.common/META-INF/MANIFEST.MF 2009-0= 9-11 20:59:09 UTC (rev 17532) @@ -13,11 +13,13 @@ Bundle-Vendor: %providerName Bundle-SymbolicName: org.jboss.tools.common;singleton:=3Dtrue Bundle-Localization: plugin -Provide-Package: org.jboss.tools.common, +Export-Package: org.jboss.tools.common, + org.jboss.tools.common.log, org.jboss.tools.common.reporting, + org.jboss.tools.common.text, org.jboss.tools.common.util, org.jboss.tools.common.xml, - org.jboss.tools.common.log, + org.jboss.tools.common.zip, org.apache.commons.codec, org.apache.commons.codec.binary, org.apache.commons.codec.digest, @@ -34,7 +36,6 @@ org.apache.commons.httpclient.util, org.apache.commons.lang, org.apache.commons.lang.builder, - org.apache.commons.lang.enum, org.apache.commons.lang.exception, org.apache.commons.lang.math, org.apache.commons.lang.time, @@ -139,11 +140,4 @@ Bundle-Version: 2.0.0.qualifier Bundle-ActivationPolicy: lazy Bundle-ManifestVersion: 2 -Export-Package: org.jboss.tools.common, - org.jboss.tools.common.log, - org.jboss.tools.common.reporting, - org.jboss.tools.common.text, - org.jboss.tools.common.util, - org.jboss.tools.common.xml, - org.jboss.tools.common.zip Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/common/plugins/org.jboss.tools.common.el.core/META-INF/MANI= FEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/META-INF/MANIFEST.M= F 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/common/plugins/org.jboss.tools.common.el.core/META-INF/MANIFEST.M= F 2009-09-11 20:59:09 UTC (rev 17532) @@ -1,11 +1,12 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ManifestVersion: 2 +Bundle-ActivationPolicy: lazy Bundle-Vendor: %providerName Bundle-Localization: plugin Bundle-Name: %Bundle-Name.0 -Bundle-SymbolicName: org.jboss.tools.common.el.core;singleton=3Dtrue +Bundle-SymbolicName: org.jboss.tools.common.el.core;singleton:=3Dtrue Bundle-Version: 2.0.0 -Provide-Package: org.jboss.tools.common.el.core, +Export-Package: org.jboss.tools.common.el.core, org.jboss.tools.common.el.core.model, org.jboss.tools.common.el.core.parser, org.jboss.tools.common.el.core.resolver @@ -15,6 +16,6 @@ org.eclipse.wst.sse.ui, org.jboss.tools.common, org.jboss.tools.common.model, - org.jboss.tools.common.resref.core;reprovide=3Dtrue, + org.jboss.tools.common.resref.core;visibility:=3Dreexport, org.eclipse.ui Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/common/plugins/org.jboss.tools.common.el.ui/META-INF/MANIFE= ST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.ui/META-INF/MANIFEST.MF = 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/common/plugins/org.jboss.tools.common.el.ui/META-INF/MANIFEST.MF = 2009-09-11 20:59:09 UTC (rev 17532) @@ -1,13 +1,11 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ManifestVersion: 2 +Bundle-ActivationPolicy: lazy Bundle-Localization: plugin Bundle-Name: %Bundle-Name.0 Bundle-SymbolicName: org.jboss.tools.common.el.ui Bundle-Version: 1.0.0 -Provide-Package: org.jboss.tools.common.el, - org.jboss.tools.common.el.global, - org.jboss.tools.common.el.ui, - org.jboss.tools.common.el.vpe +Export-Package: org.jboss.tools.common.el.ui Bundle-Activator: org.jboss.tools.common.el.ui.Activator Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime, Modified: trunk/common/plugins/org.jboss.tools.common.gef/META-INF/MANIFEST= .MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.gef/META-INF/MANIFEST.MF 20= 09-09-11 18:05:25 UTC (rev 17531) +++ trunk/common/plugins/org.jboss.tools.common.gef/META-INF/MANIFEST.MF 20= 09-09-11 20:59:09 UTC (rev 17532) @@ -1,10 +1,11 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ManifestVersion: 2 +Bundle-ActivationPolicy: lazy Bundle-Name: %pluginName Bundle-Vendor: %providerName Bundle-SymbolicName: org.jboss.tools.common.gef Bundle-Localization: plugin -Provide-Package: org.jboss.tools.common.gef, +Export-Package: org.jboss.tools.common.gef, org.jboss.tools.common.gef.action, org.jboss.tools.common.gef.alignment.xpl, org.jboss.tools.common.gef.edit, @@ -12,7 +13,6 @@ org.jboss.tools.common.gef.editor.xpl, org.jboss.tools.common.gef.figures, org.jboss.tools.common.gef.figures.xpl, - org.jboss.tools.common.gef.messages, org.jboss.tools.common.gef.outline.xpl, org.jboss.tools.common.gef.xpl Require-Bundle: org.jboss.tools.common, Modified: trunk/common/plugins/org.jboss.tools.common.meta.ui/META-INF/MANI= FEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.meta.ui/META-INF/MANIFEST.M= F 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/common/plugins/org.jboss.tools.common.meta.ui/META-INF/MANIFEST.M= F 2009-09-11 20:59:09 UTC (rev 17532) @@ -1,6 +1,7 @@ Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 Bundle-Name: %Bundle-Name.0 -Bundle-SymbolicName: org.jboss.tools.common.meta.ui; singleton:=3Dtrue +Bundle-SymbolicName: org.jboss.tools.common.meta.ui;singleton:=3Dtrue Bundle-Version: 2.0.0 Bundle-ClassPath: meta-model.jar Bundle-Vendor: %providerName @@ -8,23 +9,23 @@ Require-Bundle: org.jboss.tools.common.model, org.eclipse.jdt.core, org.eclipse.ui, - org.eclipse.ui.ide;optional=3Dtrue, - org.eclipse.ui.views;optional=3Dtrue, - org.eclipse.ui.editors;optional=3Dtrue, - org.eclipse.jface.text;optional=3Dtrue, - org.eclipse.ui.workbench.texteditor;optional=3Dtrue, + org.eclipse.ui.ide;resolution:=3Doptional, + org.eclipse.ui.views;resolution:=3Doptional, + org.eclipse.ui.editors;resolution:=3Doptional, + org.eclipse.jface.text;resolution:=3Doptional, + org.eclipse.ui.workbench.texteditor;resolution:=3Doptional, org.eclipse.ui.ide, org.eclipse.jface.text, org.eclipse.ui.workbench.texteditor, org.eclipse.jdt.ui, org.eclipse.help, - org.eclipse.help.base;optional=3Dtrue, + org.eclipse.help.base;resolution:=3Doptional, org.eclipse.search, org.eclipse.debug.core, org.jboss.tools.common.model.ui, org.eclipse.wst.web -Eclipse-LazyStart: true -Provide-Package: org.jboss.tools.common.meta.ui.editor, +Bundle-ActivationPolicy: lazy +Export-Package: org.jboss.tools.common.meta.ui.editor, org.jboss.tools.common.meta.ui, org.jboss.tools.common.meta.ui.form, org.jboss.tools.common.meta.ui.attribute.editor, Modified: trunk/common/plugins/org.jboss.tools.common.model/META-INF/MANIFE= ST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/META-INF/MANIFEST.MF = 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/common/plugins/org.jboss.tools.common.model/META-INF/MANIFEST.MF = 2009-09-11 20:59:09 UTC (rev 17532) @@ -1,13 +1,14 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ManifestVersion: 2 +Bundle-ActivationPolicy: lazy Bundle-Name: %Bundle-Name.0 Bundle-ClassPath: model.jar,lib/j2ee.jar,lib/Bundles.jar Bundle-Activator: org.jboss.tools.common.model.plugin.ModelPlugin Bundle-Vendor: %providerName Plugin-Class: org.jboss.tools.common.model.plugin.ModelPlugin -Bundle-SymbolicName: org.jboss.tools.common.model; singleton:=3Dtrue +Bundle-SymbolicName: org.jboss.tools.common.model;singleton=3Dtrue Bundle-Localization: plugin -Provide-Package: org.jboss.tools.common.ant.model, +Export-Package: org.jboss.tools.common.ant.model, org.jboss.tools.common.ant.model.handlers, org.jboss.tools.common.ant.parser, org.jboss.tools.common.java.jsp.model, @@ -38,14 +39,11 @@ org.jboss.tools.common.model.undo, org.jboss.tools.common.model.util, org.jboss.tools.common.model.util.extension, - org.jboss.tools.common.model.wizard, - org.jboss.tools.common.util.lcspack, org.jboss.tools.common.model.project, org.jboss.tools.common.model.handlers, org.jboss.tools.common.model.java.handlers, org.jboss.tools.common.model.markers, org.jboss.tools.common.java.generation, - org.jboss.tools.common.java.model.helpers, org.jboss.tools.common.meta.action.impl, org.jboss.tools.common.meta.action.impl.handlers, org.jboss.tools.common.meta.constraint.impl, @@ -60,7 +58,6 @@ org.jboss.tools.common.model.icons.impl, org.jboss.tools.common.model.loaders, org.jboss.tools.common.model.loaders.impl, - org.jboss.tools.common.model.ref.impl, org.jboss.tools.common.model.search, org.jboss.tools.common.model.search.impl, org.jboss.tools.jst.web.tld, Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/META-INF/MAN= IFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/META-INF/MANIFEST.= MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/META-INF/MANIFEST.= MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -1,18 +1,13 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ManifestVersion: 2 +Bundle-ActivationPolicy: lazy Bundle-Name: %pluginName Bundle-ClassPath: model_ui.jar Bundle-Activator: org.jboss.tools.common.model.ui.ModelUIPlugin Bundle-Vendor: %providerName -Bundle-SymbolicName: org.jboss.tools.common.model.ui; singleton:=3Dtrue +Bundle-SymbolicName: org.jboss.tools.common.model.ui;singleton:=3Dtrue Bundle-Localization: plugin -Provide-Package: dtds, - org.apache.oro.io, - org.apache.oro.text, - org.apache.oro.text.awk, - org.apache.oro.text.perl, - org.apache.oro.text.regex, - org.apache.oro.util, +Export-Package: dtds, org.jboss.tools.common.core.jdt, org.jboss.tools.common.core.resources, org.jboss.tools.common.editor, @@ -32,7 +27,6 @@ org.jboss.tools.common.model.ui.dialogs, org.jboss.tools.common.model.ui.dnd, org.jboss.tools.common.model.ui.editor, - org.jboss.tools.common.model.ui.editors, org.jboss.tools.common.model.ui.editors.dnd, org.jboss.tools.common.model.ui.editors.dnd.composite, org.jboss.tools.common.model.ui.editors.dnd.context, @@ -48,7 +42,6 @@ org.jboss.tools.common.model.ui.problem, org.jboss.tools.common.model.ui.reporting, org.jboss.tools.common.model.ui.resources, - org.jboss.tools.common.model.ui.sample, org.jboss.tools.common.model.ui.select, org.jboss.tools.common.model.ui.swt.util, org.jboss.tools.common.model.ui.templates, @@ -56,14 +49,12 @@ org.jboss.tools.common.model.ui.templates.configuration, org.jboss.tools.common.model.ui.templates.model, org.jboss.tools.common.model.ui.templates.preferences, - org.jboss.tools.common.model.ui.templates.xml, org.jboss.tools.common.model.ui.texteditors, org.jboss.tools.common.model.ui.texteditors.dnd, org.jboss.tools.common.model.ui.texteditors.preferences, org.jboss.tools.common.model.ui.texteditors.propertyeditor, org.jboss.tools.common.model.ui.texteditors.xmleditor, org.jboss.tools.common.model.ui.util, - org.jboss.tools.common.model.ui.viewers, org.jboss.tools.common.model.ui.viewers.xpl, org.jboss.tools.common.model.ui.views.navigator, org.jboss.tools.common.model.ui.views.palette, Modified: trunk/common/plugins/org.jboss.tools.common.projecttemplates/META= -INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.projecttemplates/META-INF/M= ANIFEST.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/common/plugins/org.jboss.tools.common.projecttemplates/META-INF/M= ANIFEST.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -4,12 +4,12 @@ Bundle-Activator: org.jboss.tools.common.projecttemplates.ProjectTemplates= Plugin Bundle-ManifestVersion: 2 Bundle-Vendor: %providerName -Provide-Package: org.jboss.tools.common.projecttemplates +Export-Package: org.jboss.tools.common.projecttemplates Bundle-Localization: plugin Bundle-SymbolicName: org.jboss.tools.common.projecttemplates;singleton:=3D= true Require-Bundle: org.eclipse.core.runtime, org.eclipse.ui, org.jboss.tools.common Bundle-Version: 2.0.0 -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/common/plugins/org.jboss.tools.common.text.ext/META-INF/MAN= IFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.text.ext/META-INF/MANIFEST.= MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/common/plugins/org.jboss.tools.common.text.ext/META-INF/MANIFEST.= MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -1,5 +1,5 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Activator: org.jboss.tools.common.text.ext.ExtensionsPlugin Export-Package: org.jboss.tools.common.text.ext, org.jboss.tools.common.text.ext.hyperlink, Modified: trunk/common/plugins/org.jboss.tools.common.text.xml/META-INF/MAN= IFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.text.xml/META-INF/MANIFEST.= MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/common/plugins/org.jboss.tools.common.text.xml/META-INF/MANIFEST.= MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -1,24 +1,20 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ManifestVersion: 2 +Bundle-ActivationPolicy: lazy Bundle-Name: %Bundle-Name.0 Bundle-ClassPath: xmleditor.jar, . Bundle-Activator: org.jboss.tools.common.text.xml.XmlEditorPlugin Bundle-Vendor: %providerName -Bundle-SymbolicName: org.jboss.tools.common.text.xml; singleton:=3Dtrue +Bundle-SymbolicName: org.jboss.tools.common.text.xml;singleton:=3Dtrue Bundle-Localization: plugin -Provide-Package: icons.xpl, - org.jboss.tools.common.text.xml, +Export-Package: org.jboss.tools.common.text.xml, org.jboss.tools.common.text.xml.contentassist, org.jboss.tools.common.text.xml.internal.ui.preferencies, - org.jboss.tools.common.text.xml.internal.ui.xmleditor, - org.jboss.tools.common.text.xml.kb, org.jboss.tools.common.text.xml.ui, org.jboss.tools.common.text.xml.ui.xpl, org.jboss.tools.common.text.xml.xpl, - org.jboss.tools.jst.jsp.preferences, org.jboss.tools.jst.jsp.preferences.xpl, - org.jboss.tools.jst.jsp.text, org.jboss.tools.jst.jsp.text.xpl Require-Bundle: org.jboss.tools.common, org.eclipse.core.runtime, Modified: trunk/common/plugins/org.jboss.tools.common.verification/META-INF= /MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.verification/META-INF/MANIF= EST.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/common/plugins/org.jboss.tools.common.verification/META-INF/MANIF= EST.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -1,11 +1,12 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ManifestVersion: 2 +Bundle-ActivationPolicy: lazy Bundle-Name: %Bundle-Name.0 Bundle-Activator: org.jboss.tools.common.verification.vrules.plugin.Verifi= cationPlugin Bundle-Vendor: %providerName -Bundle-SymbolicName: org.jboss.tools.common.verification; singleton:=3Dtrue +Bundle-SymbolicName: org.jboss.tools.common.verification;singleton:=3Dtrue Bundle-Localization: plugin -Provide-Package: org.jboss.tools.common.verification.vrules, +Export-Package: org.jboss.tools.common.verification.vrules, org.jboss.tools.common.verification.vrules.impl, org.jboss.tools.common.verification.vrules.layer, org.jboss.tools.common.verification.vrules.core.resources Modified: trunk/common/plugins/org.jboss.tools.common.verification.ui/META-= INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.verification.ui/META-INF/MA= NIFEST.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/common/plugins/org.jboss.tools.common.verification.ui/META-INF/MA= NIFEST.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -1,12 +1,13 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ManifestVersion: 2 +Bundle-ActivationPolicy: lazy Bundle-Name: %pluginName Bundle-Activator: org.jboss.tools.common.verification.ui.XStudioVerif icationPlugin Bundle-Vendor: %providerName -Bundle-SymbolicName: org.jboss.tools.common.verification.ui; singleton:=3D= true +Bundle-SymbolicName: org.jboss.tools.common.verification.ui;singleton:=3Dt= rue Bundle-Localization: plugin -Provide-Package: org.jboss.tools.common.verification.ui.vrules.action, +Export-Package: org.jboss.tools.common.verification.ui.vrules.action, org.jboss.tools.common.verification.ui.vrules.preferences, org.jboss.tools.common.verification.ui.vrules.wizard, org.jboss.tools.common.verification.ui.vrules.wizard.config, Modified: trunk/common/tests/org.jboss.tools.common.el.core.test/META-INF/M= ANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/tests/org.jboss.tools.common.el.core.test/META-INF/MANIFES= T.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/common/tests/org.jboss.tools.common.el.core.test/META-INF/MANIFES= T.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -14,6 +14,6 @@ org.jboss.tools.common.el.core, org.jboss.tools.common.test, org.jboss.tools.tests -Provide-Package: org.jboss.tools.common.el.core.test +Export-Package: org.jboss.tools.common.el.core.test Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/common/tests/org.jboss.tools.common.model.test/META-INF/MAN= IFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/tests/org.jboss.tools.common.model.test/META-INF/MANIFEST.= MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/common/tests/org.jboss.tools.common.model.test/META-INF/MANIFEST.= MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -14,6 +14,5 @@ org.jboss.tools.common.test, org.jboss.tools.tests, org.jboss.tools.common.model.ui -Provide-Package: org.jboss.tools.common.model.test Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/common/tests/org.jboss.tools.common.test/META-INF/MANIFEST.= MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/tests/org.jboss.tools.common.test/META-INF/MANIFEST.MF 200= 9-09-11 18:05:25 UTC (rev 17531) +++ trunk/common/tests/org.jboss.tools.common.test/META-INF/MANIFEST.MF 200= 9-09-11 20:59:09 UTC (rev 17532) @@ -10,8 +10,7 @@ org.junit, org.jboss.tools.common, org.jboss.tools.tests -Provide-Package: org.jboss.tools.common.test.util -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.jboss.tools.common.reporting.test, org.jboss.tools.common.test, org.jboss.tools.common.test.util, Modified: trunk/common/tests/org.jboss.tools.common.verification.test/META-= INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/tests/org.jboss.tools.common.verification.test/META-INF/MA= NIFEST.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/common/tests/org.jboss.tools.common.verification.test/META-INF/MA= NIFEST.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -13,6 +13,5 @@ org.jboss.tools.common.model, org.jboss.tools.common.verification, org.jboss.tools.common.test -Provide-Package: org.jboss.tools.common.verification.test Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/META-IN= F/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/META-INF/MANI= FEST.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/freemarker/plugins/org.jboss.ide.eclipse.freemarker/META-INF/MANI= FEST.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -19,7 +19,7 @@ org.eclipse.debug.ui, org.eclipse.jdt.core, org.eclipse.jdt.ui -Eclipse-AutoStart: true +Bundle-ActivationPolicy: lazy Bundle-ClassPath: freemarker-ide.jar, freemarker-2.3.8.jar Bundle-Vendor: %providerName Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/META-I= NF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/META-INF/MAN= IFEST.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/META-INF/MAN= IFEST.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -76,5 +76,5 @@ org.eclipse.datatools.connectivity, org.eclipse.jpt.core, org.eclipse.jpt.db -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.apt.ui/MET= A-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.apt.ui/META-INF/= MANIFEST.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.apt.ui/META-INF/= MANIFEST.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -5,7 +5,7 @@ Bundle-Version: 3.2.0.beta8 Bundle-Activator: org.hibernate.eclipse.jdt.apt.ui.Activator Bundle-Vendor: %Bundle-Vendor.0 -Bundle-Localization: plugin = +Bundle-Localization: plugin Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime, org.eclipse.jdt.apt.core, @@ -13,5 +13,5 @@ org.hibernate.eclipse.console, org.eclipse.core.resources, org.hibernate.eclipse -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/META-IN= F/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/META-INF/MANI= FEST.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/META-INF/MANI= FEST.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -20,7 +20,7 @@ org.eclipse.ui.editors, org.eclipse.ltk.core.refactoring, org.eclipse.ltk.ui.refactoring -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.hibernate.eclipse.jdt.ui, org.hibernate.eclipse.jdt.ui.internal, org.hibernate.eclipse.jdt.ui.internal.jpa.actions, Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/META-IN= F/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/META-INF/MANI= FEST.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/META-INF/MANI= FEST.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -38,5 +38,5 @@ org.eclipse.wst.dtd.core, org.eclipse.wst.common.ui, org.eclipse.pde.core -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/META-I= NF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/META-INF/MAN= IFEST.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/META-INF/MAN= IFEST.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -1,11 +1,12 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ManifestVersion: 2 +Bundle-ActivationPolicy: lazy Bundle-Name: %pluginName Bundle-Activator: org.jboss.tools.hibernate.xml.HibernateXMLPlugin Bundle-Vendor: %providerName -Bundle-SymbolicName: org.jboss.tools.hibernate.xml; singleton:=3Dtrue +Bundle-SymbolicName: org.jboss.tools.hibernate.xml;singleton:=3Dtrue Bundle-Localization: plugin -Provide-Package: org.jboss.tools.hibernate.xml, +Export-Package: org.jboss.tools.hibernate.xml, org.jboss.tools.hibernate.xml.model, org.jboss.tools.hibernate.xml.model.handlers, org.jboss.tools.hibernate.xml.model.impl Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/MET= A-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/META-INF/= MANIFEST.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/META-INF/= MANIFEST.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -1,11 +1,12 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ManifestVersion: 2 +Bundle-ActivationPolicy: lazy Bundle-Name: %pluginName Bundle-Activator: org.jboss.tools.hibernate.ui.xml.HibernateUIXMLPlugin Bundle-Vendor: %providerName -Bundle-SymbolicName: org.jboss.tools.hibernate.xml.ui; singleton:=3Dtrue +Bundle-SymbolicName: org.jboss.tools.hibernate.xml.ui;singleton:=3Dtrue Bundle-Localization: plugin -Provide-Package: org.jboss.tools.hibernate.ui.xml, +Export-Package: org.jboss.tools.hibernate.ui.xml, org.jboss.tools.hibernate.ui.xml.editor, org.jboss.tools.hibernate.ui.xml.form Require-Bundle: org.eclipse.ui.ide, Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/MET= A-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/= MANIFEST.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/= MANIFEST.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -55,7 +55,7 @@ org.jboss.tools.tests, org.eclipse.debug.ui, org.eclipse.ui.workbench.texteditor;bundle-version=3D"3.5.0" -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Activator: org.hibernate.eclipse.console.test.HibernateConsoleTestP= lugin Eclipse-RegisterBuddy: org.hibernate.eclipse Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/META= -INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/META-INF/M= ANIFEST.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/META-INF/M= ANIFEST.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -13,7 +13,7 @@ org.eclipse.jdt.core, org.hibernate.eclipse.jdt.ui, org.eclipse.jdt.launching -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.hibernate.eclipse.jdt.ui.test Bundle-Activator: org.hibernate.eclipse.jdt.ui.test.HibernateJDTuiTestPlug= in Bundle-ClassPath: org.hibernate.eclipse.jdt.ui.test.jar Modified: trunk/jmx/plugins/org.jboss.tools.jmx.core/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jmx/plugins/org.jboss.tools.jmx.core/META-INF/MANIFEST.MF 2009-09= -11 18:05:25 UTC (rev 17531) +++ trunk/jmx/plugins/org.jboss.tools.jmx.core/META-INF/MANIFEST.MF 2009-09= -11 20:59:09 UTC (rev 17532) @@ -16,4 +16,3 @@ Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: J2SE-1.5 Bundle-ActivationPolicy: lazy -Eclipse-LazyStart: true Modified: trunk/jmx/plugins/org.jboss.tools.jmx.ui/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jmx/plugins/org.jboss.tools.jmx.ui/META-INF/MANIFEST.MF 2009-09-1= 1 18:05:25 UTC (rev 17531) +++ trunk/jmx/plugins/org.jboss.tools.jmx.ui/META-INF/MANIFEST.MF 2009-09-1= 1 20:59:09 UTC (rev 17532) @@ -16,4 +16,3 @@ Export-Package: org.jboss.tools.jmx.ui.extensions, org.jboss.tools.jmx.ui.internal.views.navigator Bundle-ActivationPolicy: lazy -Eclipse-LazyStart: true Modified: trunk/jmx/tests/org.jboss.tools.jmx.ui.test.interactive/META-INF/= MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jmx/tests/org.jboss.tools.jmx.ui.test.interactive/META-INF/MANIFE= ST.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/jmx/tests/org.jboss.tools.jmx.ui.test.interactive/META-INF/MANIFE= ST.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -9,6 +9,6 @@ org.eclipse.core.runtime, org.eclipse.ui.forms, org.jboss.tools.jmx.ui -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Bundle-Localization: plugin Modified: trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF 2009-09-11 1= 8:05:25 UTC (rev 17531) +++ trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF 2009-09-11 2= 0:59:09 UTC (rev 17532) @@ -6,7 +6,7 @@ Bundle-Vendor: %providerName Bundle-SymbolicName: org.jboss.tools.jsf;singleton:=3Dtrue Bundle-Localization: plugin -Provide-Package: org.jboss.tools.jsf, +Export-Package: org.jboss.tools.jsf, org.jboss.tools.jsf.messages, org.jboss.tools.jsf.facelet.model, org.jboss.tools.jsf.model, @@ -42,5 +42,5 @@ org.eclipse.wst.validation, org.eclipse.jdt.core.manipulation;bundle-version=3D"1.3.0" Bundle-Version: 2.0.0 -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/META-INF/MANIFEST.= MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/META-INF/MANIFEST.MF 200= 9-09-11 18:05:25 UTC (rev 17531) +++ trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/META-INF/MANIFEST.MF 200= 9-09-11 20:59:09 UTC (rev 17532) @@ -6,7 +6,7 @@ Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime, org.eclipse.help -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Vendor: %Bundle-Vendor.0 Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/META-INF/MANIFEST.= MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/META-INF/MANIFEST.MF 200= 9-09-11 18:05:25 UTC (rev 17531) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/META-INF/MANIFEST.MF 200= 9-09-11 20:59:09 UTC (rev 17532) @@ -1,5 +1,5 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Name: %Bundle-Name.0 Bundle-Activator: org.jboss.tools.jsf.text.ext.JSFExtensionsPlugin Bundle-ManifestVersion: 2 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/META-INF/= MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/META-INF/MANIFE= ST.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/META-INF/MANIFE= ST.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -1,5 +1,5 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Name: %Bundle-Name.0 Bundle-Activator: org.jboss.tools.jsf.text.ext.facelets.FaceletsExtensions= Plugin Bundle-ManifestVersion: 2 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF= /MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/MANIF= EST.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/MANIF= EST.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -1,5 +1,5 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Name: %Bundle-Name.0 Bundle-Activator: org.jboss.tools.jsf.text.ext.richfaces.RichfacesExtensio= nsPlugin Bundle-ManifestVersion: 2 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF 2009-09-1= 1 18:05:25 UTC (rev 17531) +++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF 2009-09-1= 1 20:59:09 UTC (rev 17532) @@ -6,7 +6,7 @@ Bundle-Vendor: %providerName Bundle-SymbolicName: org.jboss.tools.jsf.ui;singleton:=3Dtrue Bundle-Localization: plugin -Provide-Package: org.jboss.tools.jsf.ui, +Export-Package: org.jboss.tools.jsf.ui, org.jboss.tools.jsf.ui.action, org.jboss.tools.jsf.ui.action.handler, org.jboss.tools.jsf.ui.adopt, @@ -48,5 +48,5 @@ org.eclipse.core.expressions, org.jboss.tools.common.gef;bundle-version=3D"2.0.0" Bundle-Version: 2.0.0 -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/META-INF/MANIF= EST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/META-INF/MANIFEST.MF= 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/META-INF/MANIFEST.MF= 2009-09-11 20:59:09 UTC (rev 17532) @@ -13,6 +13,6 @@ org.jboss.tools.jsf.vpe.richfaces;bundle-version=3D"2.1.0", org.jboss.tools.jsf.vpe.jsf;bundle-version=3D"2.1.0", org.eclipse.jface.text;bundle-version=3D"3.5.0" -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Vendor: %Bundle-Vendor.0 Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/META-INF/MANIF= EST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/META-INF/MANIFEST.MF= 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/META-INF/MANIFEST.MF= 2009-09-11 20:59:09 UTC (rev 17532) @@ -1,5 +1,5 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Name: %pluginName Bundle-ClassPath: vpefacelets.jar Bundle-Activator: org.jboss.tools.jsf.vpe.facelets.FaceletsPlugin Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/META-INF/MANIFEST.MF 2009= -09-11 18:05:25 UTC (rev 17531) +++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/META-INF/MANIFEST.MF 2009= -09-11 20:59:09 UTC (rev 17532) @@ -15,7 +15,7 @@ org.eclipse.jst.jsp.core, org.eclipse.wst.html.core, org.jboss.tools.vpe.html -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.jboss.tools.jsf.vpe.jsf.template, org.jboss.tools.jsf.vpe.jsf.template.selectitem, org.jboss.tools.jsf.vpe.jsf.template.util, Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl/META-INF/MANIFEST.= MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl/META-INF/MANIFEST.MF 200= 9-09-11 18:05:25 UTC (rev 17531) +++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl/META-INF/MANIFEST.MF 200= 9-09-11 20:59:09 UTC (rev 17532) @@ -16,7 +16,7 @@ org.eclipse.wst.html.core, org.jboss.tools.vpe.html, org.jboss.tools.jsf.vpe.jsf;bundle-version=3D"2.1.0" -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.jboss.tools.jsf.vpe.jstl.template Bundle-Localization: plugin Import-Package: org.jboss.tools.jst.web.tld Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.myfaces/META-INF/MANIFE= ST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.myfaces/META-INF/MANIFEST.MF = 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.myfaces/META-INF/MANIFEST.MF = 2009-09-11 20:59:09 UTC (rev 17532) @@ -12,7 +12,7 @@ org.mozilla.xpcom, org.jboss.tools.jst.jsp, org.eclipse.jface.text;bundle-version=3D"3.5.0" -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.jboss.tools.jsf.vpe.myfaces, org.jboss.tools.jsf.vpe.myfaces.template Bundle-ClassPath: jsf-vpe-myfaces.jar Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/META-INF/MANI= FEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/META-INF/MANIFEST.M= F 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/META-INF/MANIFEST.M= F 2009-09-11 20:59:09 UTC (rev 17532) @@ -16,7 +16,7 @@ org.mozilla.xpcom, org.eclipse.wst.sse.core, org.jboss.tools.vpe.xulrunner -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Vendor: %Bundle-Vendor.0 Bundle-ClassPath: lib/jhighlight-1.0.jar, . Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/META-INF/MANIFEST.= MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/META-INF/MANIFEST.MF 200= 9-09-11 18:05:25 UTC (rev 17531) +++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/META-INF/MANIFEST.MF 200= 9-09-11 20:59:09 UTC (rev 17532) @@ -17,7 +17,7 @@ org.jboss.tools.jsf.vpe.jsf;bundle-version=3D"2.1.0", org.eclipse.jface.text;bundle-version=3D"3.5.0" Bundle-Vendor: %Bundle-Vendor.0 -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-ClassPath: lib/antlr.jar, . Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/jsf/tests/org.jboss.tools.jsf.text.ext.test/META-INF/MANIFE= ST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.text.ext.test/META-INF/MANIFEST.MF = 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/jsf/tests/org.jboss.tools.jsf.text.ext.test/META-INF/MANIFEST.MF = 2009-09-11 20:59:09 UTC (rev 17532) @@ -17,7 +17,7 @@ org.jboss.tools.common.model, org.jboss.tools.common.test, org.jboss.tools.tests -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Vendor: %Bundle-Vendor.0 Export-Package: org.jboss.tools.jsf.text.ext.test Bundle-ClassPath: jsf-text-ext-tests.jar Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/META-INF/MA= NIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/META-INF/MANIFEST= .MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/META-INF/MANIFEST= .MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -17,7 +17,7 @@ org.jboss.tools.jst.web, org.jboss.tools.vpe.xulrunner, org.mozilla.xpcom -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.jboss.tools.jsf.vpe.facelets.test Bundle-ClassPath: facelets-tests.jar Bundle-Vendor: %Bundle-Vendor.0 Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/META-INF/MAN= IFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/META-INF/MANIFEST.= MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/META-INF/MANIFEST.= MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -9,7 +9,7 @@ org.jboss.tools.vpe.ui.test, org.eclipse.core.resources, org.junit -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.jboss.tools.jsf.vpe.myfaces.test Bundle-ClassPath: myfaces-test.jar Bundle-Vendor: %Bundle-Vendor.0 Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/M= ANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFES= T.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFES= T.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -22,7 +22,7 @@ org.jboss.tools.vpe.resref;bundle-version=3D"2.0.0", org.jboss.tools.common.el.ui;bundle-version=3D"1.0.0", org.jboss.tools.common.el.core;bundle-version=3D"2.0.0" -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-ClassPath: vpe-rf-test.jar Export-Package: org.jboss.tools.jsf.vpe.richfaces.test Bundle-Vendor: %Bundle-Vendor.0 Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/META-INF/MANIFE= ST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/META-INF/MANIFEST.MF = 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/META-INF/MANIFEST.MF = 2009-09-11 20:59:09 UTC (rev 17532) @@ -15,7 +15,7 @@ org.jboss.tools.jst.jsp, org.jboss.tools.vpe.xulrunner, org.mozilla.xpcom -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-ClassPath: vpe-seam-test.jar Export-Package: org.jboss.tools.jsf.vpe.seam.test Bundle-Vendor: %Bundle-Vendor.0 Modified: trunk/jst/plugins/org.jboss.tools.jst.firstrun/META-INF/MANIFEST.= MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.firstrun/META-INF/MANIFEST.MF 200= 9-09-11 18:05:25 UTC (rev 17531) +++ trunk/jst/plugins/org.jboss.tools.jst.firstrun/META-INF/MANIFEST.MF 200= 9-09-11 20:59:09 UTC (rev 17532) @@ -14,7 +14,7 @@ org.eclipse.datatools.connectivity.db.generic, org.jboss.tools.common;bundle-version=3D"2.0.0" Bundle-Activator: org.jboss.tools.jst.firstrun.JstFirstRunPlugin -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.jboss.tools.jst.firstrun Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF 2009-09-= 11 18:05:25 UTC (rev 17531) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF 2009-09-= 11 20:59:09 UTC (rev 17532) @@ -3,23 +3,31 @@ Bundle-Name: %Bundle-Name.0 Bundle-ClassPath: jspeditor.jar Bundle-Activator: org.jboss.tools.jst.jsp.JspEditorPlugin +Bundle-ManifestVersion: 2 Bundle-Vendor: %providerName -Bundle-SymbolicName: org.jboss.tools.jst.jsp; singleton:=3Dtrue +Bundle-SymbolicName: org.jboss.tools.jst.jsp;singleton:=3Dtrue Bundle-Localization: plugin -Provide-Package: org.jboss.tools.jst.jsp, +Export-Package: org.jboss.tools.jst.jsp, org.jboss.tools.jst.jsp.contentassist, + org.jboss.tools.jst.jsp.contentassist.actions, org.jboss.tools.jst.jsp.contentassist.xpl, org.jboss.tools.jst.jsp.drop.treeviewer.model, org.jboss.tools.jst.jsp.drop.treeviewer.ui, org.jboss.tools.jst.jsp.editor, + org.jboss.tools.jst.jsp.format, org.jboss.tools.jst.jsp.jspeditor, + org.jboss.tools.jst.jsp.messages, org.jboss.tools.jst.jsp.outline, org.jboss.tools.jst.jsp.outline.cssdialog, - org.jboss.tools.jst.jsp.outline.common, + org.jboss.tools.jst.jsp.outline.cssdialog.common, + org.jboss.tools.jst.jsp.outline.cssdialog.parsers, + org.jboss.tools.jst.jsp.outline.cssdialog.tabs, + org.jboss.tools.jst.jsp.outline.cssdialog.widgets, org.jboss.tools.jst.jsp.preferences, org.jboss.tools.jst.jsp.support.kb, org.jboss.tools.jst.jsp.text, - org.jboss.tools.jst.jsp.ui.action + org.jboss.tools.jst.jsp.ui.action, + org.jboss.tools.jst.jsp.util Require-Bundle: org.jboss.tools.common.el.core, org.jboss.tools.common.model.ui, org.jboss.tools.jst.web, @@ -42,7 +50,4 @@ org.jboss.tools.jst.web.kb, org.eclipse.core.databinding.property;bundle-version=3D"1.2.0" Bundle-Version: 2.0.0 -Export-Package: org.jboss.tools.jst.jsp.outline.cssdialog.common, - org.jboss.tools.jst.jsp.outline.cssdialog.parsers, - org.jboss.tools.jst.jsp.outline.cssdialog.tabs Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/jst/plugins/org.jboss.tools.jst.web/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/META-INF/MANIFEST.MF 2009-09-= 11 18:05:25 UTC (rev 17531) +++ trunk/jst/plugins/org.jboss.tools.jst.web/META-INF/MANIFEST.MF 2009-09-= 11 20:59:09 UTC (rev 17532) @@ -1,5 +1,5 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-ManifestVersion: 2 Bundle-Name: %Bundle-Name.0 Bundle-ClassPath: web.jar Modified: trunk/jst/plugins/org.jboss.tools.jst.web.tiles/META-INF/MANIFEST= .MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.tiles/META-INF/MANIFEST.MF 20= 09-09-11 18:05:25 UTC (rev 17531) +++ trunk/jst/plugins/org.jboss.tools.jst.web.tiles/META-INF/MANIFEST.MF 20= 09-09-11 20:59:09 UTC (rev 17532) @@ -1,11 +1,12 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ManifestVersion: 2 +Bundle-ActivationPolicy: lazy Bundle-Name: %Bundle-Name.0 Bundle-ClassPath: web-tiles.jar Bundle-Vendor: %providerName Bundle-SymbolicName: org.jboss.tools.jst.web.tiles;singleton:=3Dtrue Bundle-Localization: plugin -Provide-Package: org.jboss.tools.jst.web.tiles, +Export-Package: org.jboss.tools.jst.web.tiles, org.jboss.tools.jst.web.tiles.model, org.jboss.tools.jst.web.tiles.model.handlers, org.jboss.tools.jst.web.tiles.model.helpers Modified: trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/META-INF/MANIF= EST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/META-INF/MANIFEST.MF= 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/META-INF/MANIFEST.MF= 2009-09-11 20:59:09 UTC (rev 17532) @@ -1,12 +1,13 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ManifestVersion: 2 +Bundle-ActivationPolicy: lazy Bundle-Name: %pluginName Bundle-ClassPath: tilesui.jar Bundle-Activator: org.jboss.tools.jst.web.tiles.ui.TilesUIPlugin Bundle-Vendor: %providerName Bundle-SymbolicName: org.jboss.tools.jst.web.tiles.ui;singleton:=3Dtrue Bundle-Localization: plugin -Provide-Package: org.jboss.tools.jst.web.tiles.ui, +Export-Package: org.jboss.tools.jst.web.tiles.ui, org.jboss.tools.jst.web.tiles.ui, org.jboss.tools.jst.web.tiles.ui.attribute.adapter, org.jboss.tools.jst.web.tiles.ui.editor, Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF 2009-= 09-11 18:05:25 UTC (rev 17531) +++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF 2009-= 09-11 20:59:09 UTC (rev 17532) @@ -1,34 +1,29 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ManifestVersion: 2 +Bundle-ActivationPolicy: lazy Bundle-Name: %Bundle-Name.0 Bundle-ClassPath: webui.jar Bundle-Activator: org.jboss.tools.jst.web.ui.WebUiPlugin Bundle-Vendor: %providerName Bundle-SymbolicName: org.jboss.tools.jst.web.ui;singleton:=3Dtrue Bundle-Localization: plugin -Provide-Package: org.jboss.tools.common.model.ui.texteditors.preferences, - org.jboss.tools.jst.jsp.jspeditor.jsppreview, - org.jboss.tools.jst.web.ui, +Export-Package: org.jboss.tools.jst.web.ui, org.jboss.tools.jst.web.ui.action, org.jboss.tools.jst.web.ui.action.adf, - org.jboss.tools.jst.web.ui.action.server, org.jboss.tools.jst.web.ui.attribute.adapter, org.jboss.tools.jst.web.ui.editors, org.jboss.tools.jst.web.ui.editors.forms, org.jboss.tools.jst.web.ui.editors.webapp.form, org.jboss.tools.jst.web.ui.internal.preferences, - org.jboss.tools.jst.web.ui.messages, org.jboss.tools.jst.web.ui.navigator, org.jboss.tools.jst.web.ui.navigator.decorator, org.jboss.tools.jst.web.ui.operation, - org.jboss.tools.jst.web.ui.registration, org.jboss.tools.jst.web.ui.wizards.appregister, org.jboss.tools.jst.web.ui.wizards.links, org.jboss.tools.jst.web.ui.wizards.newfile, org.jboss.tools.jst.web.ui.wizards.palette, org.jboss.tools.jst.web.ui.wizards.process, - org.jboss.tools.jst.web.ui.wizards.project, - org.jboss.tools.vpe + org.jboss.tools.jst.web.ui.wizards.project Require-Bundle: org.eclipse.ui.ide, org.jboss.tools.common.model.ui, org.jboss.tools.jst.web, Modified: trunk/jst/plugins/org.jboss.tools.jst.web.verification/META-INF/M= ANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.verification/META-INF/MANIFES= T.MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/jst/plugins/org.jboss.tools.jst.web.verification/META-INF/MANIFES= T.MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -4,7 +4,7 @@ tor Bundle-ManifestVersion: 2 Bundle-Vendor: %providerName -Provide-Package: org.jboss.tools.jst.web.verification.vrules +Export-Package: org.jboss.tools.jst.web.verification.vrules Bundle-Localization: plugin Bundle-SymbolicName: org.jboss.tools.jst.web.verification;singleton:=3Dtrue Require-Bundle: org.eclipse.core.runtime.compatibility, @@ -14,5 +14,5 @@ org.jboss.tools.common.verification, org.jboss.tools.jst.web Bundle-Version: 2.0.0 -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/jst/tests/org.jboss.tools.jst.web.test/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.web.test/META-INF/MANIFEST.MF 2009-= 09-11 18:05:25 UTC (rev 17531) +++ trunk/jst/tests/org.jboss.tools.jst.web.test/META-INF/MANIFEST.MF 2009-= 09-11 20:59:09 UTC (rev 17532) @@ -12,7 +12,7 @@ org.eclipse.core.resources, org.jboss.tools.common.model, org.jboss.tools.tests;bundle-version=3D"2.0.0" -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Vendor: %Bundle-Vendor.0 Export-Package: org.jboss.tools.jst.web.test Bundle-ClassPath: jst-web-tests.jar Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/META-INF/MANIFE= ST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/META-INF/MANIFEST.MF = 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/META-INF/MANIFEST.MF = 2009-09-11 20:59:09 UTC (rev 17532) @@ -1,5 +1,5 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Name: %pluginName Bundle-Activator: org.jboss.tools.seam.pages.xml.SeamPagesXMLPlugin Bundle-ManifestVersion: 2 Modified: trunk/seam/plugins/org.jboss.tools.seam.text.ext/META-INF/MANIFES= T.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.text.ext/META-INF/MANIFEST.MF 2= 009-09-11 18:05:25 UTC (rev 17531) +++ trunk/seam/plugins/org.jboss.tools.seam.text.ext/META-INF/MANIFEST.MF 2= 009-09-11 20:59:09 UTC (rev 17532) @@ -1,5 +1,5 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Name: %Bundle-Name.0 Bundle-Activator: org.jboss.tools.seam.text.ext.SeamExtPlugin Bundle-ManifestVersion: 2 Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui/META-INF/MANIFEST.MF 2009-09= -11 18:05:25 UTC (rev 17531) +++ trunk/seam/plugins/org.jboss.tools.seam.ui/META-INF/MANIFEST.MF 2009-09= -11 20:59:09 UTC (rev 17532) @@ -40,7 +40,7 @@ org.jboss.tools.jsf, org.jboss.tools.jst.web.ui;bundle-version=3D"2.0.0", org.eclipse.jst.j2ee.web;bundle-version=3D"1.1.300" -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.jboss.tools.seam.ui, org.jboss.tools.seam.ui.actions, org.jboss.tools.seam.ui.builder, Modified: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFES= T.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFEST.MF 2= 009-09-11 18:05:25 UTC (rev 17531) +++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFEST.MF 2= 009-09-11 20:59:09 UTC (rev 17532) @@ -1,9 +1,10 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Name: %pluginName Bundle-Activator: org.jboss.tools.seam.ui.pages.SeamUiPagesPlugin +Bundle-ManifestVersion: 2 Bundle-Vendor: %providerName -Provide-Package: org.jboss.tools.seam.ui.pages, +Export-Package: org.jboss.tools.seam.ui.pages, org.jboss.tools.seam.ui.pages.editor, org.jboss.tools.seam.ui.pages.editor.commands, org.jboss.tools.seam.ui.pages.editor.dnd, @@ -17,10 +18,7 @@ org.jboss.tools.seam.ui.pages.editor.palette, org.jboss.tools.seam.ui.pages.editor.print, org.jboss.tools.seam.ui.pages.editor.wizard -Export-Package: org.jboss.tools.seam.ui.pages, - org.jboss.tools.seam.ui.pages.editor, - org.jboss.tools.seam.ui.pages.editor.edit -Bundle-SymbolicName: org.jboss.tools.seam.ui.pages;singleton:=3Dtrue +Bundle-SymbolicName: org.jboss.tools.seam.ui.pages;singleton=3Dtrue Bundle-Localization: plugin Require-Bundle: org.eclipse.ui, org.eclipse.gef, Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.xml/META-INF/MANIFEST.MF 2009-0= 9-11 18:05:25 UTC (rev 17531) +++ trunk/seam/plugins/org.jboss.tools.seam.xml/META-INF/MANIFEST.MF 2009-0= 9-11 20:59:09 UTC (rev 17532) @@ -1,12 +1,12 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Name: %pluginName Bundle-Activator: org.jboss.tools.seam.xml.SeamXMLPlugin Bundle-ManifestVersion: 2 Bundle-Vendor: %providerName Bundle-SymbolicName: org.jboss.tools.seam.xml;singleton:=3Dtrue Bundle-Localization: plugin -Provide-Package: org.jboss.tools.seam.xml, +Export-Package: org.jboss.tools.seam.xml, org.jboss.tools.seam.xml.components.model, org.jboss.tools.seam.xml.components.model.handlers, org.jboss.tools.seam.xml.components.model.constraint Modified: trunk/seam/plugins/org.jboss.tools.seam.xml.ui/META-INF/MANIFEST.= MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.xml.ui/META-INF/MANIFEST.MF 200= 9-09-11 18:05:25 UTC (rev 17531) +++ trunk/seam/plugins/org.jboss.tools.seam.xml.ui/META-INF/MANIFEST.MF 200= 9-09-11 20:59:09 UTC (rev 17532) @@ -1,13 +1,14 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ManifestVersion: 2 +Bundle-ActivationPolicy: lazy Bundle-Name: %pluginName Bundle-Activator: org.jboss.tools.seam.xml.ui.SeamXMLUiPlugin Bundle-Vendor: %providerName -Provide-Package: org.jboss.tools.seam.xml.ui, +Export-Package: org.jboss.tools.seam.xml.ui, org.jboss.tools.seam.xml.ui.editor.form, org.jboss.tools.seam.xml.ui.editor.form.core, org.jboss.tools.seam.xml.ui.wizard.newfile -Bundle-SymbolicName: org.jboss.tools.seam.xml.ui; singleton:=3Dtrue +Bundle-SymbolicName: org.jboss.tools.seam.xml.ui;singleton:=3Dtrue Bundle-Localization: plugin Require-Bundle: org.eclipse.jface.text, org.eclipse.jdt.ui, Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/too= ls/seam/core/test/project/facet/AbstractSeamFacetTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/sea= m/core/test/project/facet/AbstractSeamFacetTest.java 2009-09-11 18:05:25 UT= C (rev 17531) +++ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/sea= m/core/test/project/facet/AbstractSeamFacetTest.java 2009-09-11 20:59:09 UT= C (rev 17532) @@ -1,6 +1,7 @@ package org.jboss.tools.seam.core.test.project.facet; = import java.io.File; +import java.text.MessageFormat; import java.util.ArrayList; import java.util.HashSet; import java.util.List; @@ -88,13 +89,23 @@ = } = + public static final String SYS_PROP_IS_NOT_DEFINED =3D "System property {= 0} is not defined"; protected File getSeamHomeFolder() { - return new File( - System.getProperty("jbosstools.test.seam.1.2.1.eap.home", = - "C:/jbdevstudio/jboss-eap/seam")); + String seamHomeFolder =3D System.getProperty(getSystemPropertyName()); + if(seamHomeFolder=3D=3Dnull) { + throw new IllegalStateException( + MessageFormat.format(SYS_PROP_IS_NOT_DEFINED, getSystemPropertyName()) + ); + } + return new File(seamHomeFolder); } = + public static final String SEAM_EAP_121_HOME_PROPERY =3D "jbosstools.test= .seam.1.2.1.eap.home"; = + protected String getSystemPropertyName() { + return SEAM_EAP_121_HOME_PROPERY; + } + = protected void tearDown() = throws Exception Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/too= ls/seam/core/test/project/facet/Seam2FacetInstallDelegateTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/sea= m/core/test/project/facet/Seam2FacetInstallDelegateTest.java 2009-09-11 18:= 05:25 UTC (rev 17531) +++ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/sea= m/core/test/project/facet/Seam2FacetInstallDelegateTest.java 2009-09-11 20:= 59:09 UTC (rev 17532) @@ -97,10 +97,10 @@ = } = - @Override - protected File getSeamHomeFolder() { - return new File(System.getProperty("jbosstools.test.seam.2.0.1.GA.home", = - "E:\\Java\\JBoss\\Seam\\jboss-seam-2.0.1.GA")); + public static final String SEAM_201GA_HOME_PROPERY =3D "jbosstools.test.s= eam.2.0.1.GA.home"; + + protected String getSystemPropertyName() { + return SEAM_201GA_HOME_PROPERY; } = @Override Modified: trunk/seam/tests/org.jboss.tools.seam.pages.xml.test/META-INF/MAN= IFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.pages.xml.test/META-INF/MANIFEST.= MF 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/seam/tests/org.jboss.tools.seam.pages.xml.test/META-INF/MANIFEST.= MF 2009-09-11 20:59:09 UTC (rev 17532) @@ -31,6 +31,5 @@ org.eclipse.jface, org.eclipse.jdt.core.manipulation, org.eclipse.jst.jsf.core -Provide-Package: org.jboss.tools.seam.pages.xml.test Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/tests/tests/org.jboss.tools.test/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/tests/tests/org.jboss.tools.test/META-INF/MANIFEST.MF 2009-09-11 = 18:05:25 UTC (rev 17531) +++ trunk/tests/tests/org.jboss.tools.test/META-INF/MANIFEST.MF 2009-09-11 = 20:59:09 UTC (rev 17532) @@ -10,8 +10,7 @@ org.junit, org.eclipse.ui.ide, org.apache.xerces;bundle-version=3D"2.9.0" -Provide-Package: org.jboss.ide.tests.util -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.jboss.tools.test.util, org.jboss.tools.test.util.xpl, org.jboss.tools.tests Modified: trunk/vpe/plugins/org.jboss.tools.vpe/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/META-INF/MANIFEST.MF 2009-09-11 1= 8:05:25 UTC (rev 17531) +++ trunk/vpe/plugins/org.jboss.tools.vpe/META-INF/MANIFEST.MF 2009-09-11 2= 0:59:09 UTC (rev 17532) @@ -1,19 +1,18 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Name: %pluginName Bundle-ClassPath: vpe.jar Bundle-Activator: org.jboss.tools.vpe.VpePlugin +Bundle-ManifestVersion: 2 Bundle-Vendor: %providerName Bundle-SymbolicName: org.jboss.tools.vpe;singleton:=3Dtrue Bundle-Localization: plugin -Provide-Package: meta, +Export-Package: = org.jboss.tools.vpe, org.jboss.tools.vpe.dnd, org.jboss.tools.vpe.editor, org.jboss.tools.vpe.editor.bundle, org.jboss.tools.vpe.editor.context, - org.jboss.tools.vpe.editor.dnd, - org.jboss.tools.vpe.editor.dnd.composite, org.jboss.tools.vpe.editor.dnd.context, org.jboss.tools.vpe.editor.dnd.context.xpl, org.jboss.tools.vpe.editor.mapping, @@ -22,8 +21,10 @@ org.jboss.tools.vpe.editor.menu.xpl, org.jboss.tools.vpe.editor.mozilla, org.jboss.tools.vpe.editor.preferences, + org.jboss.tools.vpe.editor.proxy, org.jboss.tools.vpe.editor.selection, org.jboss.tools.vpe.editor.template, + org.jboss.tools.vpe.editor.template.custom, org.jboss.tools.vpe.editor.template.dnd, org.jboss.tools.vpe.editor.template.expression, org.jboss.tools.vpe.editor.template.resize, @@ -34,10 +35,7 @@ org.jboss.tools.vpe.editor.toolbar.format.handler, org.jboss.tools.vpe.editor.util, org.jboss.tools.vpe.editor.xpl, - org.jboss.tools.vpe.el, - org.jboss.tools.vpe.el.messages, org.jboss.tools.vpe.messages, - org.jboss.tools.vpe.resref, org.jboss.tools.vpe.selbar Require-Bundle: org.eclipse.jface.text, org.jboss.tools.jst.jsp, Modified: trunk/vpe/plugins/org.jboss.tools.vpe.docbook/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe.docbook/META-INF/MANIFEST.MF 2009= -09-11 18:05:25 UTC (rev 17531) +++ trunk/vpe/plugins/org.jboss.tools.vpe.docbook/META-INF/MANIFEST.MF 2009= -09-11 20:59:09 UTC (rev 17532) @@ -7,7 +7,7 @@ org.eclipse.core.runtime, org.jboss.tools.jst.jsp, org.jboss.tools.vpe -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Vendor: %Bundle-Vendor.0 Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/vpe/plugins/org.jboss.tools.vpe.html/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe.html/META-INF/MANIFEST.MF 2009-09= -11 18:05:25 UTC (rev 17531) +++ trunk/vpe/plugins/org.jboss.tools.vpe.html/META-INF/MANIFEST.MF 2009-09= -11 20:59:09 UTC (rev 17532) @@ -12,7 +12,7 @@ org.jboss.tools.jst.jsp, org.jboss.tools.common, org.eclipse.jface.text;bundle-version=3D"3.5.0" -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Localization: plugin Export-Package: org.jboss.tools.vpe.html.template Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/vpe/plugins/org.jboss.tools.vpe.jsp/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe.jsp/META-INF/MANIFEST.MF 2009-09-= 11 18:05:25 UTC (rev 17531) +++ trunk/vpe/plugins/org.jboss.tools.vpe.jsp/META-INF/MANIFEST.MF 2009-09-= 11 20:59:09 UTC (rev 17532) @@ -12,6 +12,6 @@ org.eclipse.core.resources, org.jboss.tools.jst.jsp, org.jboss.tools.common -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/vpe/plugins/org.jboss.tools.vpe.resref/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe.resref/META-INF/MANIFEST.MF 2009-= 09-11 18:05:25 UTC (rev 17531) +++ trunk/vpe/plugins/org.jboss.tools.vpe.resref/META-INF/MANIFEST.MF 2009-= 09-11 20:59:09 UTC (rev 17532) @@ -14,7 +14,7 @@ org.jboss.tools.common.resref.core;bundle-version=3D"1.0.0", org.jboss.tools.common.resref.ui;bundle-version=3D"1.0.0";visibility:=3Dr= eexport, org.jboss.tools.common.el.core;bundle-version=3D"2.0.0" -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.jboss.tools.vpe.resref, org.jboss.tools.vpe.resref.core Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFES= T.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFEST.MF 2= 009-09-11 18:05:25 UTC (rev 17531) +++ trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFEST.MF 2= 009-09-11 20:59:09 UTC (rev 17532) @@ -1,11 +1,12 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ManifestVersion: 2 +Bundle-ActivationPolicy: lazy Bundle-Name: %pluginName Bundle-Activator: org.jboss.tools.vpe.ui.palette.PalettePlugin Bundle-Vendor: %providerName Bundle-SymbolicName: org.jboss.tools.vpe.ui.palette Bundle-Localization: plugin -Provide-Package: org.jboss.tools.vpe.ui.palette,org.jboss.tools.vpe.ui.pal= ette.model +Export-Package: org.jboss.tools.vpe.ui.palette,org.jboss.tools.vpe.ui.pale= tte.model Require-Bundle: org.eclipse.ui.ide, org.eclipse.jface.text, org.eclipse.ui, Modified: trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/META-INF/MANIFEST= .MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/META-INF/MANIFEST.MF 20= 09-09-11 18:05:25 UTC (rev 17531) +++ trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/META-INF/MANIFEST.MF 20= 09-09-11 20:59:09 UTC (rev 17532) @@ -8,7 +8,7 @@ org.eclipse.core.runtime, org.mozilla.xpcom, org.jboss.tools.common -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.jboss.tools.vpe.xulrunner;uses:=3D"org.eclipse.jface.r= esource,org.eclipse.ui.plugin,org.osgi.framework", org.jboss.tools.vpe.xulrunner.browser;uses:=3D"org.mozilla.interfaces,org= .eclipse.swt.widgets,org.mozilla.xpcom", org.jboss.tools.vpe.xulrunner.browser.util, Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/tests/org.jboss.tools.vpe.html.test/META-INF/MANIFEST.MF 2009= -09-11 18:05:25 UTC (rev 17531) +++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/META-INF/MANIFEST.MF 2009= -09-11 20:59:09 UTC (rev 17532) @@ -17,7 +17,7 @@ org.jboss.tools.vpe.xulrunner, org.mozilla.xpcom, org.jboss.tools.vpe.ui.test -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-ClassPath: html-test.jar Bundle-Vendor: %Bundle-Vendor.0 Bundle-Localization: plugin Modified: trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/META-INF/MANIFEST.MF 2009-= 09-11 18:05:25 UTC (rev 17531) +++ trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/META-INF/MANIFEST.MF 2009-= 09-11 20:59:09 UTC (rev 17532) @@ -15,7 +15,7 @@ org.jboss.tools.jst.jsp, org.jboss.tools.vpe.xulrunner, org.mozilla.xpcom -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.jboss.tools.vpe.jsp.test Bundle-ClassPath: jsp-tests.jar Bundle-Vendor: %Bundle-Vendor.0 Modified: trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/META-INF/MANIF= EST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/META-INF/MANIFEST.MF= 2009-09-11 18:05:25 UTC (rev 17531) +++ trunk/vpe/tests/org.jboss.tools.vpe.xulrunner.test/META-INF/MANIFEST.MF= 2009-09-11 20:59:09 UTC (rev 17532) @@ -11,7 +11,7 @@ org.jboss.tools.common, org.jboss.tools.vpe.xulrunner, org.mozilla.xpcom -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.jboss.tools.vpe.xulrunner.test, org.jboss.tools.vpe.xulrunner.view Bundle-ClassPath: vpe-mozilla-tests.jar --===============3936541686824050895==-- From jbosstools-commits at lists.jboss.org Fri Sep 11 17:05:18 2009 Content-Type: multipart/mixed; boundary="===============8001122830944345283==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17533 - trunk/jst/tests/org.jboss.tools.jst.jsp.test/META-INF. Date: Fri, 11 Sep 2009 17:05:18 -0400 Message-ID: <200909112105.n8BL5I9w011700@svn01.web.mwc.hst.phx2.redhat.com> --===============8001122830944345283== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-11 17:05:18 -0400 (Fri, 11 Sep 2009) New Revision: 17533 Modified: trunk/jst/tests/org.jboss.tools.jst.jsp.test/META-INF/MANIFEST.MF Log: https://jira.jboss.org/jira/browse/JBIDE-4474 = manifests were cleaned up to be Bundle-ManifestVersion: 2 Modified: trunk/jst/tests/org.jboss.tools.jst.jsp.test/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.jsp.test/META-INF/MANIFEST.MF 2009-= 09-11 20:59:09 UTC (rev 17532) +++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/META-INF/MANIFEST.MF 2009-= 09-11 21:05:18 UTC (rev 17533) @@ -16,7 +16,8 @@ org.jboss.tools.jst.jsp, org.jboss.tools.common.text.ext, org.jboss.tools.jst.web, - org.jboss.tools.vpe.ui.test + org.jboss.tools.vpe.ui.test, + org.jboss.tools.common.text.xml;bundle-version=3D"2.0.0" Export-Package: = org.jboss.tools.jst.jsp.test, org.jboss.tools.jst.jsp.test.ca --===============8001122830944345283==-- From jbosstools-commits at lists.jboss.org Fri Sep 11 19:19:05 2009 Content-Type: multipart/mixed; boundary="===============1554358292729730183==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17534 - trunk/birt/plugins/org.jboss.tools.birt.core/resources. Date: Fri, 11 Sep 2009 19:19:04 -0400 Message-ID: <200909112319.n8BNJ4k7005534@svn01.web.mwc.hst.phx2.redhat.com> --===============1554358292729730183== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: snjeza Date: 2009-09-11 19:19:04 -0400 (Fri, 11 Sep 2009) New Revision: 17534 Modified: trunk/birt/plugins/org.jboss.tools.birt.core/resources/jboss-seam-birt.j= ar Log: https://jira.jboss.org/jira/browse/JBIDE-4855 TestNG Tests don't work when = the JBoss BIRT Integration facet is added to a Seam project Modified: trunk/birt/plugins/org.jboss.tools.birt.core/resources/jboss-seam= -birt.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============1554358292729730183==-- From jbosstools-commits at lists.jboss.org Fri Sep 11 20:20:30 2009 Content-Type: multipart/mixed; boundary="===============7564807178062561435==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17535 - trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver. Date: Fri, 11 Sep 2009 20:20:18 -0400 Message-ID: <200909120020.n8C0KIgF017577@svn01.web.mwc.hst.phx2.redhat.com> --===============7564807178062561435== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-11 20:20:17 -0400 (Fri, 11 Sep 2009) New Revision: 17535 Added: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ELResolution.java trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ELResolver2.java trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ELSegment.java Log: https://jira.jboss.org/jira/browse/JBIDE-4860 Added new interfaces for new = EL resolvers. Added: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/to= ols/common/el/core/resolver/ELResolution.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolution.java (rev 0) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolution.java 2009-09-12 00:20:17 UTC (rev 175= 35) @@ -0,0 +1,62 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.common.el.core.resolver; + +import java.util.List; + +import org.eclipse.jdt.core.IJavaElement; +import org.jboss.tools.common.el.core.model.ELExpression; + +/** + * Describes a result of EL resolving action. + * @author Alexey Kazakov + */ +public interface ELResolution { + + /** + * @return all segments of this EL operand. + */ + List getSegments(); + + /** + * @return source EL operand. + */ + ELExpression getSourceOperand(); + + /** + * @return EL context. + */ + ELContext getContext(); + + /** + * Finds the segment which is resolved to given java element. + * @param element + * @return + */ + ELSegment findSegmentByJavaElement(IJavaElement element); + + /** + * Finds the segment which is located at given offset. + * @param offcet relative source EL operand. + * @return + */ + ELSegment findSegmentByOffset(int offcet); + + /** + * @return unresolved segment. May return null. + */ + ELSegment getUnresolvedSegment(); + + /** + * @return true if there is any unresolved segment. + */ + boolean hasUnresolvedSegment(); +} \ No newline at end of file Property changes on: trunk/common/plugins/org.jboss.tools.common.el.core/sr= c/org/jboss/tools/common/el/core/resolver/ELResolution.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/to= ols/common/el/core/resolver/ELResolver2.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolver2.java (rev 0) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolver2.java 2009-09-12 00:20:17 UTC (rev 1753= 5) @@ -0,0 +1,39 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.common.el.core.resolver; + +import java.util.List; + +import org.jboss.tools.common.el.core.model.ELExpression; +import org.jboss.tools.common.text.TextProposal; + +/** + * Represents EL Resolver. + * TODO replace old ELResolver interface with this one. + * @author Alexey Kazakov + */ +public interface ELResolver2 { + + /** + * @param context + * @param el + * @return proposal list + */ + List getProposals(ELContext context, String el); + + /** + * Resolves EL operand. + * @param context + * @param operand + * @return + */ + ELResolution resolve(ELContext context, ELExpression operand); +} \ No newline at end of file Property changes on: trunk/common/plugins/org.jboss.tools.common.el.core/sr= c/org/jboss/tools/common/el/core/resolver/ELResolver2.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/to= ols/common/el/core/resolver/ELSegment.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELSegment.java (rev 0) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELSegment.java 2009-09-12 00:20:17 UTC (rev 17535) @@ -0,0 +1,41 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.common.el.core.resolver; + +import org.eclipse.jdt.core.IJavaElement; +import org.jboss.tools.common.el.core.model.ELInvocationExpression; + +/** + * Describes a segment of EL operand. + * @author Alexey Kazakov + */ +public interface ELSegment { + + /** + * @return source EL token. + */ + ELInvocationExpression getToken(); + + /** + * @return member info object of resolved segment. May return null. + */ + TypeInfoCollector.MemberInfo getMemberInfo(); + + /** + * @return Java Element which represent this resolve segment. May return = null. = + */ + IJavaElement getJavaElement(); + + /** + * @return true if the segment has been resolved. + */ + boolean isResolved(); +} \ No newline at end of file Property changes on: trunk/common/plugins/org.jboss.tools.common.el.core/sr= c/org/jboss/tools/common/el/core/resolver/ELSegment.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============7564807178062561435==-- From jbosstools-commits at lists.jboss.org Fri Sep 11 20:37:39 2009 Content-Type: multipart/mixed; boundary="===============2488251101973958127==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17536 - trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib. Date: Fri, 11 Sep 2009 20:37:39 -0400 Message-ID: <200909120037.n8C0bdw0020391@svn01.web.mwc.hst.phx2.redhat.com> --===============2488251101973958127== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-11 20:37:39 -0400 (Fri, 11 Sep 2009) New Revision: 17536 Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web= /kb/internal/taglib/FacetNameProposalType.java Log: https://jira.jboss.org/jira/browse/JBIDE-3875 Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst= /web/kb/internal/taglib/FacetNameProposalType.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/internal/taglib/FacetNameProposalType.java (re= v 0) +++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/internal/taglib/FacetNameProposalType.java 2009-09-12 00:37:39 UTC (re= v 17536) @@ -0,0 +1,82 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.jst.web.kb.internal.taglib; + +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.jface.resource.ImageDescriptor; +import org.eclipse.swt.graphics.Image; +import org.jboss.tools.common.text.TextProposal; +import org.jboss.tools.jst.web.kb.IPageContext; +import org.jboss.tools.jst.web.kb.KbQuery; +import org.jboss.tools.jst.web.kb.PageProcessor; +import org.jboss.tools.jst.web.kb.WebKbPlugin; +import org.jboss.tools.jst.web.kb.taglib.IFaceletTagLibrary; +import org.jboss.tools.jst.web.kb.taglib.ITagLibrary; + +/** + * @author Alexey Kazakov + */ +public class FacetNameProposalType extends CustomProposalType { + + private static final String IMAGE_NAME =3D "EnumerationProposal.gif"; //$= NON-NLS-1$ + private static Image ICON; + + private IPageContext context; + + /* (non-Javadoc) + * @see org.jboss.tools.jst.web.kb.internal.taglib.CustomProposalType#get= Proposals(org.jboss.tools.jst.web.kb.KbQuery) + */ + @Override + public TextProposal[] getProposals(KbQuery query) { + String[] parentTags =3D query.getParentTags(); + if(parentTags.length>1) { + String parentTag =3D parentTags[parentTags.length-2]; + if(parentTag.contains(":")) { //$NON-NLS-1$ + KbQuery newQuery =3D new KbQuery(); + newQuery.setMask(false); + newQuery.setType(KbQuery.Type.TAG_NAME); + newQuery.setValue(parentTag); + PageProcessor.getInstance().getComponents(query, context); + ITagLibrary[] libs =3D context.getLibraries(); + for (ITagLibrary l : libs) { + if(l instanceof IFaceletTagLibrary) { + //TODO + } + } + } + } + List facetNames =3D new ArrayList(); + List proposals =3D new ArrayList(); + for (String facetName : facetNames) { + if(facetName.startsWith(query.getValue())) { + TextProposal proposal =3D new TextProposal(); + proposal.setLabel(facetName); + proposal.setReplacementString(facetName); + proposal.setPosition(facetName.length()); + if(ICON=3D=3Dnull) { + ICON =3D ImageDescriptor.createFromFile(WebKbPlugin.class, IMAGE_NAME= ).createImage(); + } + proposals.add(proposal); + } + } + return proposals.toArray(new TextProposal[0]); + } + + /* (non-Javadoc) + * @see org.jboss.tools.jst.web.kb.internal.taglib.CustomProposalType#ini= t(org.jboss.tools.jst.web.kb.IPageContext) + */ + @Override + protected void init(IPageContext context) { + this.context =3D context; + } +} \ No newline at end of file Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/j= boss/tools/jst/web/kb/internal/taglib/FacetNameProposalType.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============2488251101973958127==-- From jbosstools-commits at lists.jboss.org Sat Sep 12 18:43:26 2009 Content-Type: multipart/mixed; boundary="===============2726714829479836740==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17537 - trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/META-INF. Date: Sat, 12 Sep 2009 18:43:26 -0400 Message-ID: <200909122243.n8CMhQPf018961@svn01.web.mwc.hst.phx2.redhat.com> --===============2726714829479836740== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-12 18:43:26 -0400 (Sat, 12 Sep 2009) New Revision: 17537 Modified: trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/META-INF/MANIF= EST.MF Log: https://jira.jboss.org/jira/browse/JBIDE-4474 mozilla.xpcom packages were removed from export Modified: trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/META-IN= F/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/META-INF/MANI= FEST.MF 2009-09-12 00:37:39 UTC (rev 17536) +++ trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/META-INF/MANI= FEST.MF 2009-09-12 22:43:26 UTC (rev 17537) @@ -7,7 +7,6 @@ Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime, org.jboss.tools.vpe.ui.test;visibility:=3Dreexport, - org.mozilla.xpcom, org.jboss.tools.common.text.ext, org.jboss.tools.common.model, org.jboss.tools.vpe.xulrunner, --===============2726714829479836740==-- From jbosstools-commits at lists.jboss.org Sat Sep 12 18:52:11 2009 Content-Type: multipart/mixed; boundary="===============0731210265521379488==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17538 - in trunk: bpel/plugins/org.eclipse.bpel.apache.ode.deploy.ui/META-INF and 14 other directories. Date: Sat, 12 Sep 2009 18:52:11 -0400 Message-ID: <200909122252.n8CMqBJ3021118@svn01.web.mwc.hst.phx2.redhat.com> --===============0731210265521379488== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-12 18:52:11 -0400 (Sat, 12 Sep 2009) New Revision: 17538 Removed: trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jboss/too= ls/bpel/as/integration/Activator.java trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jboss/too= ls/bpel/as/integration/JBossServerBPELPublisher.java Modified: trunk/bpel/plugins/org.eclipse.bpel.apache.ode.deploy.model/META-INF/MAN= IFEST.MF trunk/bpel/plugins/org.eclipse.bpel.apache.ode.deploy.ui/META-INF/MANIFE= ST.MF trunk/bpel/plugins/org.eclipse.bpel.apache.ode.runtime/META-INF/MANIFEST= .MF trunk/bpel/plugins/org.eclipse.bpel.common.ui/META-INF/MANIFEST.MF trunk/bpel/plugins/org.eclipse.bpel.runtimes/META-INF/MANIFEST.MF trunk/bpel/plugins/org.eclipse.bpel.validator/META-INF/MANIFEST.MF trunk/bpel/plugins/org.eclipse.bpel.wsil.model/META-INF/MANIFEST.MF trunk/esb/plugins/org.jboss.tools.esb.core/META-INF/MANIFEST.MF trunk/esb/plugins/org.jboss.tools.esb.project.ui/META-INF/MANIFEST.MF trunk/esb/plugins/org.jboss.tools.esb.ui/META-INF/MANIFEST.MF trunk/esb/tests/org.jboss.tools.esb.core.test/META-INF/MANIFEST.MF trunk/hibernatetools/plugins/org.hibernate.eclipse.help/META-INF/MANIFES= T.MF trunk/hibernatetools/plugins/org.hibernate.eclipse/META-INF/MANIFEST.MF trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/META-INF/MANIF= EST.MF trunk/tptp/plugins/org.jboss.tools.eclipse.as.tptp/META-INF/MANIFEST.MF Log: https://jira.jboss.org/jira/browse/JBIDE-4474 Eclipse-LazyStart: true replaced with Bundle-ActivationPolicy: lazy Modified: trunk/bpel/plugins/org.eclipse.bpel.apache.ode.deploy.model/META-= INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.apache.ode.deploy.model/META-INF/MA= NIFEST.MF 2009-09-12 22:43:26 UTC (rev 17537) +++ trunk/bpel/plugins/org.eclipse.bpel.apache.ode.deploy.model/META-INF/MA= NIFEST.MF 2009-09-12 22:52:11 UTC (rev 17538) @@ -17,4 +17,4 @@ org.eclipse.xsd;bundle-version=3D"[2.4.0,3.0.0)", org.eclipse.core.runtime;bundle-version=3D"[3.4.0,4.0.0)", javax.wsdl;bundle-version=3D"[1.5.0,1.6.0)" -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Modified: trunk/bpel/plugins/org.eclipse.bpel.apache.ode.deploy.ui/META-INF= /MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.apache.ode.deploy.ui/META-INF/MANIF= EST.MF 2009-09-12 22:43:26 UTC (rev 17537) +++ trunk/bpel/plugins/org.eclipse.bpel.apache.ode.deploy.ui/META-INF/MANIF= EST.MF 2009-09-12 22:52:11 UTC (rev 17538) @@ -22,6 +22,6 @@ org.eclipse.bpel.ui;bundle-version=3D"0.4.0", org.eclipse.jdt.core;bundle-version=3D"3.5.0", org.eclipse.wst.common.modulecore;bundle-version=3D"1.1.300" -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Vendor: Eclipse.org Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/bpel/plugins/org.eclipse.bpel.apache.ode.runtime/META-INF/M= ANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.apache.ode.runtime/META-INF/MANIFES= T.MF 2009-09-12 22:43:26 UTC (rev 17537) +++ trunk/bpel/plugins/org.eclipse.bpel.apache.ode.runtime/META-INF/MANIFES= T.MF 2009-09-12 22:52:11 UTC (rev 17538) @@ -27,5 +27,5 @@ org.eclipse.bpel.apache.ode.deploy.model;bundle-version=3D"0.4.0" Bundle-Activator: org.eclipse.bpel.apache.ode.runtime.OdePlugin Export-Package: org.eclipse.bpel.apache.ode.runtime -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/bpel/plugins/org.eclipse.bpel.common.ui/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.common.ui/META-INF/MANIFEST.MF 2009= -09-12 22:43:26 UTC (rev 17537) +++ trunk/bpel/plugins/org.eclipse.bpel.common.ui/META-INF/MANIFEST.MF 2009= -09-12 22:52:11 UTC (rev 17538) @@ -12,7 +12,7 @@ org.eclipse.gef;bundle-version=3D"[3.4.0,4.0.0)", org.eclipse.emf.ecore.change;bundle-version=3D"[2.4.0,3.0.0)", org.eclipse.bpel.model;bundle-version=3D"0.4.0" -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.eclipse.bpel.common.ui, org.eclipse.bpel.common.ui.assist, org.eclipse.bpel.common.ui.calendar, Modified: trunk/bpel/plugins/org.eclipse.bpel.runtimes/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.runtimes/META-INF/MANIFEST.MF 2009-= 09-12 22:43:26 UTC (rev 17537) +++ trunk/bpel/plugins/org.eclipse.bpel.runtimes/META-INF/MANIFEST.MF 2009-= 09-12 22:52:11 UTC (rev 17538) @@ -23,7 +23,7 @@ org.eclipse.wst.wsdl;bundle-version=3D"[1.1.200,2.0.0)", javax.wsdl;bundle-version=3D"[1.5.0,1.6.0)", org.eclipse.jst.common.frameworks;bundle-version=3D"1.1.300" -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Export-Package: org.eclipse.bpel.runtimes, org.eclipse.bpel.runtimes.facets, org.eclipse.bpel.runtimes.module, Modified: trunk/bpel/plugins/org.eclipse.bpel.validator/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.validator/META-INF/MANIFEST.MF 2009= -09-12 22:43:26 UTC (rev 17537) +++ trunk/bpel/plugins/org.eclipse.bpel.validator/META-INF/MANIFEST.MF 2009= -09-12 22:52:11 UTC (rev 17538) @@ -18,7 +18,7 @@ org.eclipse.wst.xml.core;bundle-version=3D"[1.1.300,2.0.0)", org.eclipse.bpel.xpath10;bundle-version=3D"0.4.0", javax.wsdl;bundle-version=3D"[1.5.0,1.6.0)" -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Bundle-ClassPath: bin, meta/ Modified: trunk/bpel/plugins/org.eclipse.bpel.wsil.model/META-INF/MANIFEST.= MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.wsil.model/META-INF/MANIFEST.MF 200= 9-09-12 22:43:26 UTC (rev 17537) +++ trunk/bpel/plugins/org.eclipse.bpel.wsil.model/META-INF/MANIFEST.MF 200= 9-09-12 22:52:11 UTC (rev 17538) @@ -26,5 +26,5 @@ org.eclipse.bpel.wsil.model.inspection" Require-Bundle: org.eclipse.core.runtime;bundle-version=3D"[3.4.0,4.0.0)", org.eclipse.emf.ecore.xmi;bundle-version=3D"[2.4.0,3.0.0)";visibility:=3D= reexport -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Deleted: trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jbo= ss/tools/bpel/as/integration/Activator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jboss/to= ols/bpel/as/integration/Activator.java 2009-09-12 22:43:26 UTC (rev 17537) +++ trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jboss/to= ols/bpel/as/integration/Activator.java 2009-09-12 22:52:11 UTC (rev 17538) @@ -1,50 +0,0 @@ -package org.jboss.tools.bpel.as.integration; - -import org.eclipse.ui.plugin.AbstractUIPlugin; -import org.osgi.framework.BundleContext; - -/** - * The activator class controls the plug-in life cycle - */ -public class Activator extends AbstractUIPlugin { - - // The plug-in ID - public static final String PLUGIN_ID =3D "org.jboss.tools.bpel.as.integra= tion"; - - // The shared instance - private static Activator plugin; - = - /** - * The constructor - */ - public Activator() { - } - - /* - * (non-Javadoc) - * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.B= undleContext) - */ - public void start(BundleContext context) throws Exception { - super.start(context); - plugin =3D this; - } - - /* - * (non-Javadoc) - * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.Bu= ndleContext) - */ - public void stop(BundleContext context) throws Exception { - plugin =3D null; - super.stop(context); - } - - /** - * Returns the shared instance - * - * @return the shared instance - */ - public static Activator getDefault() { - return plugin; - } - -} Deleted: trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jbo= ss/tools/bpel/as/integration/JBossServerBPELPublisher.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jboss/to= ols/bpel/as/integration/JBossServerBPELPublisher.java 2009-09-12 22:43:26 U= TC (rev 17537) +++ trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jboss/to= ols/bpel/as/integration/JBossServerBPELPublisher.java 2009-09-12 22:52:11 U= TC (rev 17538) @@ -1,37 +0,0 @@ -package org.jboss.tools.bpel.as.integration; - -import org.eclipse.bpel.runtimes.IBPELModuleFacetConstants; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.wst.common.project.facet.core.IFacetedProject; -import org.eclipse.wst.common.project.facet.core.IProjectFacet; -import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager; -import org.eclipse.wst.server.core.IModule; -import org.eclipse.wst.server.core.IServer; -import org.jboss.ide.eclipse.as.core.publishers.JstPublisher; -import org.jboss.ide.eclipse.as.core.server.IJBossServerPublisher; - -public class JBossServerBPELPublisher extends JstPublisher implements - IJBossServerPublisher { - - public JBossServerBPELPublisher() { - } - - public boolean accepts(String method, IServer server, IModule[] module) { - return "local".equals(method) && accepts(server, module); - } - = - public boolean accepts(IServer server, IModule[] module) { - IProject project =3D module[0].getProject(); - if(project =3D=3D null) return false; - = - try { - IFacetedProject fp =3D ProjectFacetsManager.create(project); - IProjectFacet pf =3D ProjectFacetsManager.getProjectFacet(IBPELModuleFa= cetConstants.BPEL20_PROJECT_FACET); - return fp.hasProjectFacet(pf); - } catch (Exception e) { - return false; - } - = - } -} Modified: trunk/esb/plugins/org.jboss.tools.esb.core/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/plugins/org.jboss.tools.esb.core/META-INF/MANIFEST.MF 2009-09= -12 22:43:26 UTC (rev 17537) +++ trunk/esb/plugins/org.jboss.tools.esb.core/META-INF/MANIFEST.MF 2009-09= -12 22:52:11 UTC (rev 17538) @@ -1,5 +1,5 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Name: %pluginName Bundle-ClassPath: esb.jar Bundle-Activator: org.jboss.tools.esb.core.ESBCorePlugin @@ -7,7 +7,7 @@ Bundle-Vendor: %providerName Bundle-SymbolicName: org.jboss.tools.esb.core;singleton:=3Dtrue Bundle-Localization: plugin -Provide-Package: org.jboss.tools.esb.core, +Export-Package: org.jboss.tools.esb.core, org.jboss.tools.esb.core.model, org.jboss.tools.esb.core.model.handlers Require-Bundle: org.jboss.tools.jst.web;visibility:=3Dreexport, Modified: trunk/esb/plugins/org.jboss.tools.esb.project.ui/META-INF/MANIFES= T.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/plugins/org.jboss.tools.esb.project.ui/META-INF/MANIFEST.MF 2= 009-09-12 22:43:26 UTC (rev 17537) +++ trunk/esb/plugins/org.jboss.tools.esb.project.ui/META-INF/MANIFEST.MF 2= 009-09-12 22:52:11 UTC (rev 17538) @@ -34,7 +34,7 @@ org.eclipse.jdt.ui;bundle-version=3D"3.4.1", org.jboss.ide.eclipse.as.ui;bundle-version=3D"1.0.0", org.jboss.ide.eclipse.as.wtp.core;bundle-version=3D"1.0.0" -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-Vendor: %Bundle-Vendor.0 Export-Package: org.jboss.tools.esb.project.ui Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/esb/plugins/org.jboss.tools.esb.ui/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/plugins/org.jboss.tools.esb.ui/META-INF/MANIFEST.MF 2009-09-1= 2 22:43:26 UTC (rev 17537) +++ trunk/esb/plugins/org.jboss.tools.esb.ui/META-INF/MANIFEST.MF 2009-09-1= 2 22:52:11 UTC (rev 17538) @@ -1,10 +1,11 @@ Manifest-Version: 1.0 -Eclipse-LazyStart: true +Bundle-ManifestVersion: 2 +Bundle-ActivationPolicy: lazy Bundle-Name: %pluginName Bundle-ClassPath: esb-ui.jar Bundle-Activator: org.jboss.tools.esb.ui.ESBUiPlugin Bundle-Vendor: %providerName -Provide-Package: org.jboss.tools.esb.ui, +Export-Package: org.jboss.tools.esb.ui, org.jboss.tools.esb.ui.editor.form, org.jboss.tools.esb.ui.wizard.newfile Bundle-SymbolicName: org.jboss.tools.esb.ui; singleton:=3Dtrue Modified: trunk/esb/tests/org.jboss.tools.esb.core.test/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/tests/org.jboss.tools.esb.core.test/META-INF/MANIFEST.MF 2009= -09-12 22:43:26 UTC (rev 17537) +++ trunk/esb/tests/org.jboss.tools.esb.core.test/META-INF/MANIFEST.MF 2009= -09-12 22:52:11 UTC (rev 17538) @@ -22,6 +22,5 @@ org.jboss.tools.jst.firstrun, org.eclipse.wst.server.core, org.eclipse.datatools.connectivity -Provide-Package: org.jboss.tools.esb.core.test Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse/META-INF/MANIF= EST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse/META-INF/MANIFEST.MF= 2009-09-12 22:43:26 UTC (rev 17537) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse/META-INF/MANIFEST.MF= 2009-09-12 22:52:11 UTC (rev 17538) @@ -516,6 +516,6 @@ org.eclipse.ui.console, org.eclipse.jface, org.eclipse.datatools.connectivity -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Eclipse-BuddyPolicy: registered Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.help/META-INF/= MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse.help/META-INF/MANIFE= ST.MF 2009-09-12 22:43:26 UTC (rev 17537) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse.help/META-INF/MANIFE= ST.MF 2009-09-12 22:52:11 UTC (rev 17538) @@ -10,5 +10,5 @@ Export-Package: org.hibernate.eclipse.help Require-Bundle: org.eclipse.help, org.eclipse.help.ui -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/META-IN= F/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/META-INF/MANI= FEST.MF 2009-09-12 22:43:26 UTC (rev 17537) +++ trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/META-INF/MANI= FEST.MF 2009-09-12 22:52:11 UTC (rev 17538) @@ -11,7 +11,7 @@ org.jboss.tools.common.model, org.jboss.tools.vpe.xulrunner, org.junit -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Bundle-ClassPath: struts-test.jar Export-Package: org.jboss.tools.struts.vpe.struts.test Bundle-Vendor: %Bundle-Vendor.0 Modified: trunk/tptp/plugins/org.jboss.tools.eclipse.as.tptp/META-INF/MANIF= EST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/tptp/plugins/org.jboss.tools.eclipse.as.tptp/META-INF/MANIFEST.MF= 2009-09-12 22:43:26 UTC (rev 17537) +++ trunk/tptp/plugins/org.jboss.tools.eclipse.as.tptp/META-INF/MANIFEST.MF= 2009-09-12 22:52:11 UTC (rev 17538) @@ -14,5 +14,4 @@ org.eclipse.tptp.platform.profile.server.core, org.eclipse.tptp.platform.instrumentation.ui Bundle-ActivationPolicy: lazy -Eclipse-LazyStart: true Bundle-RequiredExecutionEnvironment: J2SE-1.5 --===============0731210265521379488==-- From jbosstools-commits at lists.jboss.org Sat Sep 12 19:08:12 2009 Content-Type: multipart/mixed; boundary="===============0751888152450059078==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17539 - trunk/documentation/qa/tools/emma. Date: Sat, 12 Sep 2009 19:08:12 -0400 Message-ID: <200909122308.n8CN8CcJ024181@svn01.web.mwc.hst.phx2.redhat.com> --===============0751888152450059078== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-12 19:08:12 -0400 (Sat, 12 Sep 2009) New Revision: 17539 Removed: trunk/documentation/qa/tools/emma/reports/ Log: repository clean up. 2 years old coverage reports were removed from documen= tation/qa/tools project --===============0751888152450059078==-- From jbosstools-commits at lists.jboss.org Sun Sep 13 02:36:26 2009 Content-Type: multipart/mixed; boundary="===============1232064998446876210==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17540 - in trunk/documentation/whatsnew: as/images and 13 other directories. Date: Sun, 13 Sep 2009 02:36:26 -0400 Message-ID: <200909130636.n8D6aQPH014583@svn01.web.mwc.hst.phx2.redhat.com> --===============1232064998446876210== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-13 02:36:24 -0400 (Sun, 13 Sep 2009) New Revision: 17540 Added: trunk/documentation/whatsnew/images/propertiesfilter-enabled.png trunk/documentation/whatsnew/images/xhtml_validator_preferences.png trunk/documentation/whatsnew/images/xhtml_validator_progress.png Removed: trunk/documentation/whatsnew/images/profpertiesfilter-disabled.jpg trunk/documentation/whatsnew/images/propertiesfilter-enabled.jpg trunk/documentation/whatsnew/images/xhtml_validator_preferences.jpg trunk/documentation/whatsnew/images/xhtml_validator_progress.jpg Modified: trunk/documentation/whatsnew/as/deploy-to-server-view.png trunk/documentation/whatsnew/as/deploy-to-server.png trunk/documentation/whatsnew/as/images/elexceptionlinking.png trunk/documentation/whatsnew/as/images/jmxconsole.png trunk/documentation/whatsnew/as/images/serverdefaultarguments.png trunk/documentation/whatsnew/as/images/serverpublishstate.png trunk/documentation/whatsnew/as/jmx-usernamepassword.png trunk/documentation/whatsnew/birt/images/HbDataSet.png trunk/documentation/whatsnew/birt/images/HbDataSource1.png trunk/documentation/whatsnew/birt/images/HbDataSource2.png trunk/documentation/whatsnew/birt/images/birttag1.png trunk/documentation/whatsnew/birt/images/examplereport.png trunk/documentation/whatsnew/core/core-news-3.1.0.M2.html trunk/documentation/whatsnew/hibernate/images/cfgpropertyvaluecompletion= .png trunk/documentation/whatsnew/hibernate/images/dynamicsqlhighlighting.png trunk/documentation/whatsnew/hibernate/images/openmappingdblclick.png trunk/documentation/whatsnew/hibernate/images/reloadconfiguration.png trunk/documentation/whatsnew/hibernate/images/sortedconfiguration.png trunk/documentation/whatsnew/hibernate/images/structuredcfgxml.png trunk/documentation/whatsnew/hibernate/images/structuredhbmxml.png trunk/documentation/whatsnew/images/1secdefaultpublish.png trunk/documentation/whatsnew/images/archivescustomvariablesupport.png trunk/documentation/whatsnew/images/as_dblclickforedit.png trunk/documentation/whatsnew/images/as_deployoptions.png trunk/documentation/whatsnew/images/as_serverlog.png trunk/documentation/whatsnew/images/as_serverports.png trunk/documentation/whatsnew/images/as_showin.png trunk/documentation/whatsnew/images/bpmn2jpdl_exportwiz.png trunk/documentation/whatsnew/images/change_seam_parent.png trunk/documentation/whatsnew/images/consoleconfig_validation.png trunk/documentation/whatsnew/images/customprojectexamples.png trunk/documentation/whatsnew/images/daligenentities.png trunk/documentation/whatsnew/images/dalihibernateplatform.png trunk/documentation/whatsnew/images/datamodel_support.png trunk/documentation/whatsnew/images/deploy_projects_compressed.png trunk/documentation/whatsnew/images/diagramoutline.png trunk/documentation/whatsnew/images/dragndrop_jboss_serversview.png trunk/documentation/whatsnew/images/el_rendered.png trunk/documentation/whatsnew/images/el_rendered_001.png trunk/documentation/whatsnew/images/el_validator_prefs.png trunk/documentation/whatsnew/images/enable_folding_vpe.png trunk/documentation/whatsnew/images/enhance_pagesxmleditor.png trunk/documentation/whatsnew/images/esb_classpathcontainer.png trunk/documentation/whatsnew/images/esb_icons.png trunk/documentation/whatsnew/images/esb_missingruntime.png trunk/documentation/whatsnew/images/esb_projectstructure.png trunk/documentation/whatsnew/images/esb_projwiz.png trunk/documentation/whatsnew/images/esb_touch.png trunk/documentation/whatsnew/images/esbexport.png trunk/documentation/whatsnew/images/esbxmleditor.png trunk/documentation/whatsnew/images/example_wizard_select.png trunk/documentation/whatsnew/images/examples_filter.png trunk/documentation/whatsnew/images/examples_in_help.png trunk/documentation/whatsnew/images/examples_quickfix.png trunk/documentation/whatsnew/images/explore_server_view.png trunk/documentation/whatsnew/images/exporter_property_editor.png trunk/documentation/whatsnew/images/externalcss_editing.png trunk/documentation/whatsnew/images/generate_entities.png trunk/documentation/whatsnew/images/hibernate_dtp_connection.png trunk/documentation/whatsnew/images/hibernateaskbeforedelcfg.png trunk/documentation/whatsnew/images/hibernatecfgfilewizoption.png trunk/documentation/whatsnew/images/hibernatediagramstructureoutline.png trunk/documentation/whatsnew/images/hibernateexportasimage.png trunk/documentation/whatsnew/images/hibernateloadconsolepopup.png trunk/documentation/whatsnew/images/hibernatequeryexecutitonproperties.p= ng trunk/documentation/whatsnew/images/hideselectionbar_in_view.png trunk/documentation/whatsnew/images/hqlcriteriaprefill.png trunk/documentation/whatsnew/images/japanesei18n.png trunk/documentation/whatsnew/images/jbds_additionalservers.png trunk/documentation/whatsnew/images/jboss5server.png trunk/documentation/whatsnew/images/jbossws_facet.png trunk/documentation/whatsnew/images/jmx_perspective.png trunk/documentation/whatsnew/images/jpatoolsmenu.png trunk/documentation/whatsnew/images/jsfcompletions.png trunk/documentation/whatsnew/images/m2_facet.png trunk/documentation/whatsnew/images/multiple_faces_config.png trunk/documentation/whatsnew/images/navigation_page_dialog.png trunk/documentation/whatsnew/images/new_css_dialog_perf.png trunk/documentation/whatsnew/images/onetooneconfig.png trunk/documentation/whatsnew/images/orderedcompletions.png trunk/documentation/whatsnew/images/orgprod_seperation.png trunk/documentation/whatsnew/images/pagesxml_graphicaloutline.png trunk/documentation/whatsnew/images/pagesxml_structuraloutline.png trunk/documentation/whatsnew/images/pagesxmleditor.png trunk/documentation/whatsnew/images/persistence_xml_hibernate.png trunk/documentation/whatsnew/images/portlet_facet.png trunk/documentation/whatsnew/images/portlet_libraries.png trunk/documentation/whatsnew/images/portlet_runtime_preference.png trunk/documentation/whatsnew/images/portlet_wizard_simplification.png trunk/documentation/whatsnew/images/profiler_preferred_launcher.png trunk/documentation/whatsnew/images/project_example_wizard.png trunk/documentation/whatsnew/images/projectarchivelibs.png trunk/documentation/whatsnew/images/projectarchives_error.png trunk/documentation/whatsnew/images/projectarchivesinprojextexplorer.png trunk/documentation/whatsnew/images/quickconfigurationclone.png trunk/documentation/whatsnew/images/renameseamcomponent.png trunk/documentation/whatsnew/images/resourcebundle_rendering.png trunk/documentation/whatsnew/images/restore_defaults_palette.png trunk/documentation/whatsnew/images/richfaces_openon.png trunk/documentation/whatsnew/images/richfaces_palette_icons.png trunk/documentation/whatsnew/images/richlayoutpanel.png trunk/documentation/whatsnew/images/seam21alphaok.png trunk/documentation/whatsnew/images/seam_21facet.png trunk/documentation/whatsnew/images/seam_actionwarning.png trunk/documentation/whatsnew/images/seam_changeversion.png trunk/documentation/whatsnew/images/seam_el_preference.png trunk/documentation/whatsnew/images/seam_openon_viewid.png trunk/documentation/whatsnew/images/seam_openwebbrowser.png trunk/documentation/whatsnew/images/seam_pages_codecomplete_id.png trunk/documentation/whatsnew/images/seam_pages_editor_preferences.png trunk/documentation/whatsnew/images/seam_pages_idbrowser.png trunk/documentation/whatsnew/images/seamearprojectvalidator.png trunk/documentation/whatsnew/images/seamfacet_warning.png trunk/documentation/whatsnew/images/seamfindrefpopup.png trunk/documentation/whatsnew/images/seamflexibleprojectlayout.png trunk/documentation/whatsnew/images/seamjavafindrefsearchresult.png trunk/documentation/whatsnew/images/seamopencomponent.png trunk/documentation/whatsnew/images/seamrefactorsettings.png trunk/documentation/whatsnew/images/seamsettingsvalidation.png trunk/documentation/whatsnew/images/selective_seam_generate_entities.png trunk/documentation/whatsnew/images/serveres_beta_view.png trunk/documentation/whatsnew/images/serverpreferences.png trunk/documentation/whatsnew/images/setuptemplatecontextmenu.png trunk/documentation/whatsnew/images/show_non_visual_tags.png trunk/documentation/whatsnew/images/shownon-visual tags.png trunk/documentation/whatsnew/images/sitefilter_projectexamples.png trunk/documentation/whatsnew/images/smooks_editor.png trunk/documentation/whatsnew/images/smooks_wizard.png trunk/documentation/whatsnew/images/smooksconfigstyleeditor.png trunk/documentation/whatsnew/images/smookstools_addsmooksresourcelistact= ion.png trunk/documentation/whatsnew/images/smookstools_autoaddproperties.png trunk/documentation/whatsnew/images/smookstools_beanid_ref_contentassist= .png trunk/documentation/whatsnew/images/smookstools_bindings_context_content= assist.png trunk/documentation/whatsnew/images/smookstools_contentassist_javabeanme= thods.png trunk/documentation/whatsnew/images/smookstools_contentassist_javabeanpr= operties.png trunk/documentation/whatsnew/images/smookstools_contentassist_javatypese= arching.png trunk/documentation/whatsnew/images/smookstools_contentassist_selectorge= neration.png trunk/documentation/whatsnew/images/smookstools_contentassist_tooltip.png trunk/documentation/whatsnew/images/smookstools_selector_generate_dialog= .png trunk/documentation/whatsnew/images/smookstools_validationoneditor.png trunk/documentation/whatsnew/images/smookstools_validationpreferencespag= e.png trunk/documentation/whatsnew/images/step1_generate_jpa.png trunk/documentation/whatsnew/images/step2_generatejpa.png trunk/documentation/whatsnew/images/strict_launchconfig.png trunk/documentation/whatsnew/images/structured_pagesxmleditor.png trunk/documentation/whatsnew/images/tabbed_pagedesign_options.png trunk/documentation/whatsnew/images/unbalanced_el.png trunk/documentation/whatsnew/images/unknown_tag_template.png trunk/documentation/whatsnew/images/unknown_tag_template_001.png trunk/documentation/whatsnew/images/unknown_tag_template_dialog.png trunk/documentation/whatsnew/images/vpe_code_folding.png trunk/documentation/whatsnew/images/vpe_error_screen.png trunk/documentation/whatsnew/images/vpe_iconcompletion.png trunk/documentation/whatsnew/images/vpespliteditor.png trunk/documentation/whatsnew/images/webservice_client_wizard.png trunk/documentation/whatsnew/images/xhtml_validator_example.png trunk/documentation/whatsnew/images/xhtmltemplates.png trunk/documentation/whatsnew/images/xmlmenu_src.png trunk/documentation/whatsnew/jbpm/images/log-notification.png trunk/documentation/whatsnew/jbpm/images/new-esb-notifier.png trunk/documentation/whatsnew/jbpm/images/reservation-service.png trunk/documentation/whatsnew/jst/images/facesconfigca.png trunk/documentation/whatsnew/jst/jst-news-3.1.0.M2.html trunk/documentation/whatsnew/jst/touch-descriptors.png trunk/documentation/whatsnew/portlet/images/portletnews1.png trunk/documentation/whatsnew/portlet/images/portletnews2.png trunk/documentation/whatsnew/portlet/images/portletnews3.png trunk/documentation/whatsnew/portlet/images/portletnews4.png trunk/documentation/whatsnew/portlet/images/portletnews5.png trunk/documentation/whatsnew/portlet/images/portletnews6.png trunk/documentation/whatsnew/portlet/images/portletnews7.png trunk/documentation/whatsnew/portlet/images/portletnews8.png trunk/documentation/whatsnew/portlet/images/portletnews9.png trunk/documentation/whatsnew/rhds/rhds-eap-seamgen.png trunk/documentation/whatsnew/rhds/rhds-eap.png trunk/documentation/whatsnew/rhds/rhds-welcomescreen.png trunk/documentation/whatsnew/seam/componentsxmleditor.png trunk/documentation/whatsnew/seam/el-componentsxml.png trunk/documentation/whatsnew/seam/el-java.png trunk/documentation/whatsnew/seam/el-xhtml.png trunk/documentation/whatsnew/seam/images/bpmopenons.png trunk/documentation/whatsnew/seam/images/decorateca.png trunk/documentation/whatsnew/seam/images/droolsopenons.png trunk/documentation/whatsnew/seam/images/hqlcriteriaquicknavigation.png trunk/documentation/whatsnew/seam/images/inlinequeryvalidation.png trunk/documentation/whatsnew/seam/images/inopenons.png trunk/documentation/whatsnew/seam/images/seampreferences.png trunk/documentation/whatsnew/seam/images/serverselection.png trunk/documentation/whatsnew/seam/seam-enabledisable.png trunk/documentation/whatsnew/seam/seam-generate-entities.png trunk/documentation/whatsnew/seam/seam-packagepresentation-flat.png trunk/documentation/whatsnew/seam/seam-packagepresentation-hierarchical.= png trunk/documentation/whatsnew/seam/seam-runtimes.png trunk/documentation/whatsnew/seam/seam-x-wizards.png trunk/documentation/whatsnew/seam/seamcomponents-filter.png trunk/documentation/whatsnew/seam/seamcomponents-labelscopepresentation.= png trunk/documentation/whatsnew/seam/seamcomponents-nodescopepresentation.p= ng trunk/documentation/whatsnew/seam/seamcomponents-referenced-projects-fil= ter.png trunk/documentation/whatsnew/seam/seamcomponentsview-projectexplorer.png trunk/documentation/whatsnew/seam/seamcomponentsview.png trunk/documentation/whatsnew/seam/seamvalidator-duplicatecomponentexampl= e.png trunk/documentation/whatsnew/seam/seamvalidator-preferences.png trunk/documentation/whatsnew/seam/seamwebprojectwizard.png trunk/documentation/whatsnew/seam/seamwtp-ear.png trunk/documentation/whatsnew/seam/seamwtp-war.png trunk/documentation/whatsnew/seam/showview-seam components.png trunk/documentation/whatsnew/seam/xmldirectedit.png trunk/documentation/whatsnew/template/images/sample-snapshot.png trunk/documentation/whatsnew/vpe/images/context-menu.png trunk/documentation/whatsnew/vpe/images/css-dialog-calling.png trunk/documentation/whatsnew/vpe/images/css-editor-dialog.png trunk/documentation/whatsnew/vpe/images/el-configuration.png trunk/documentation/whatsnew/vpe/images/jsfcca.png trunk/documentation/whatsnew/vpe/images/preview-tab.png trunk/documentation/whatsnew/vpe/images/richfaces_3_1_0.png trunk/documentation/whatsnew/vpe/images/selection-bar.png trunk/documentation/whatsnew/vpe/images/vpe-custom-tags-rendering.png trunk/documentation/whatsnew/vpe/images/vpe-horizontal-split.png trunk/documentation/whatsnew/vpe/images/vpe-vertical-split.png Log: repository cleanup. images were converted to be indexed 256 colors. Modified: trunk/documentation/whatsnew/as/deploy-to-server-view.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/as/deploy-to-server.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/as/images/elexceptionlinking.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/as/images/jmxconsole.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/as/images/serverdefaultarguments.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/as/images/serverpublishstate.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/as/jmx-usernamepassword.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/birt/images/HbDataSet.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/birt/images/HbDataSource1.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/birt/images/HbDataSource2.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/birt/images/birttag1.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/birt/images/examplereport.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/core/core-news-3.1.0.M2.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/documentation/whatsnew/core/core-news-3.1.0.M2.html 2009-09-12 23= :08:12 UTC (rev 17539) +++ trunk/documentation/whatsnew/core/core-news-3.1.0.M2.html 2009-09-13 06= :36:24 UTC (rev 17540) @@ -51,7 +51,7 @@

The JBoss Tools properties editor now has a filter function allowing = you to type in key or value and the editor will show only the properties th= at matches.

= -

+

=

Related Jira=

Modified: trunk/documentation/whatsnew/hibernate/images/cfgpropertyvaluecom= pletion.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/hibernate/images/dynamicsqlhighlight= ing.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/hibernate/images/openmappingdblclick= .png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/hibernate/images/reloadconfiguration= .png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/hibernate/images/sortedconfiguration= .png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/hibernate/images/structuredcfgxml.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/hibernate/images/structuredhbmxml.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/1secdefaultpublish.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/archivescustomvariablesupport= .png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/as_dblclickforedit.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/as_deployoptions.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/as_serverlog.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/as_serverports.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/as_showin.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/bpmn2jpdl_exportwiz.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/change_seam_parent.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/consoleconfig_validation.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/customprojectexamples.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/daligenentities.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/dalihibernateplatform.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/datamodel_support.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/deploy_projects_compressed.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/diagramoutline.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/dragndrop_jboss_serversview.p= ng =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/el_rendered.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/el_rendered_001.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/el_validator_prefs.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/enable_folding_vpe.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/enhance_pagesxmleditor.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/esb_classpathcontainer.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/esb_icons.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/esb_missingruntime.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/esb_projectstructure.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/esb_projwiz.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/esb_touch.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/esbexport.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/esbxmleditor.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/example_wizard_select.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/examples_filter.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/examples_in_help.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/examples_quickfix.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/explore_server_view.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/exporter_property_editor.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/externalcss_editing.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/generate_entities.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/hibernate_dtp_connection.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/hibernateaskbeforedelcfg.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/hibernatecfgfilewizoption.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/hibernatediagramstructureoutl= ine.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/hibernateexportasimage.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/hibernateloadconsolepopup.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/hibernatequeryexecutitonprope= rties.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/hideselectionbar_in_view.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/hqlcriteriaprefill.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/japanesei18n.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/jbds_additionalservers.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/jboss5server.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/jbossws_facet.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/jmx_perspective.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/jpatoolsmenu.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/jsfcompletions.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/m2_facet.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/multiple_faces_config.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/navigation_page_dialog.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/new_css_dialog_perf.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/onetooneconfig.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/orderedcompletions.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/orgprod_seperation.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/pagesxml_graphicaloutline.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/pagesxml_structuraloutline.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/pagesxmleditor.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/persistence_xml_hibernate.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/portlet_facet.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/portlet_libraries.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/portlet_runtime_preference.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/portlet_wizard_simplification= .png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/profiler_preferred_launcher.p= ng =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/documentation/whatsnew/images/profpertiesfilter-disabled.jpg =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/project_example_wizard.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/projectarchivelibs.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/projectarchives_error.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/projectarchivesinprojextexplo= rer.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/documentation/whatsnew/images/propertiesfilter-enabled.jpg =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Added: trunk/documentation/whatsnew/images/propertiesfilter-enabled.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/propertiesfilter-e= nabled.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/documentation/whatsnew/images/quickconfigurationclone.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/renameseamcomponent.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/resourcebundle_rendering.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/restore_defaults_palette.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/richfaces_openon.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/richfaces_palette_icons.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/richlayoutpanel.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/seam21alphaok.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/seam_21facet.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/seam_actionwarning.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/seam_changeversion.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/seam_el_preference.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/seam_openon_viewid.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/seam_openwebbrowser.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/seam_pages_codecomplete_id.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/seam_pages_editor_preferences= .png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/seam_pages_idbrowser.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/seamearprojectvalidator.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/seamfacet_warning.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/seamfindrefpopup.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/seamflexibleprojectlayout.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/seamjavafindrefsearchresult.p= ng =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/seamopencomponent.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/seamrefactorsettings.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/seamsettingsvalidation.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/selective_seam_generate_entit= ies.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/serveres_beta_view.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/serverpreferences.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/setuptemplatecontextmenu.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/show_non_visual_tags.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/shownon-visual tags.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/sitefilter_projectexamples.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/smooks_editor.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/smooks_wizard.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/smooksconfigstyleeditor.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/smookstools_addsmooksresource= listaction.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/smookstools_autoaddproperties= .png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/smookstools_beanid_ref_conten= tassist.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/smookstools_bindings_context_= contentassist.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/smookstools_contentassist_jav= abeanmethods.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/smookstools_contentassist_jav= abeanproperties.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/smookstools_contentassist_jav= atypesearching.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/smookstools_contentassist_sel= ectorgeneration.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/smookstools_contentassist_too= ltip.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/smookstools_selector_generate= _dialog.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/smookstools_validationonedito= r.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/smookstools_validationprefere= ncespage.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/step1_generate_jpa.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/step2_generatejpa.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/strict_launchconfig.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/structured_pagesxmleditor.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/tabbed_pagedesign_options.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/unbalanced_el.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/unknown_tag_template.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/unknown_tag_template_001.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/unknown_tag_template_dialog.p= ng =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/vpe_code_folding.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/vpe_error_screen.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/vpe_iconcompletion.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/vpespliteditor.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/webservice_client_wizard.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/xhtml_validator_example.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/documentation/whatsnew/images/xhtml_validator_preferences.jpg =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Added: trunk/documentation/whatsnew/images/xhtml_validator_preferences.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/xhtml_validator_pr= eferences.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Deleted: trunk/documentation/whatsnew/images/xhtml_validator_progress.jpg =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Added: trunk/documentation/whatsnew/images/xhtml_validator_progress.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/xhtml_validator_pr= ogress.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/documentation/whatsnew/images/xhtmltemplates.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/images/xmlmenu_src.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/jbpm/images/log-notification.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/jbpm/images/new-esb-notifier.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/jbpm/images/reservation-service.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/jst/images/facesconfigca.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/jst/jst-news-3.1.0.M2.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/documentation/whatsnew/jst/jst-news-3.1.0.M2.html 2009-09-12 23:0= 8:12 UTC (rev 17539) +++ trunk/documentation/whatsnew/jst/jst-news-3.1.0.M2.html 2009-09-13 06:3= 6:24 UTC (rev 17540) @@ -77,10 +77,10 @@

=

It can be enabled/disabled in the normal Validation preferences

-

+

=

When running the Progress view shows the details and provide a Cancel = button to stop the validation early.

-

+

=

= Modified: trunk/documentation/whatsnew/jst/touch-descriptors.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/portlet/images/portletnews1.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/portlet/images/portletnews2.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/portlet/images/portletnews3.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/portlet/images/portletnews4.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/portlet/images/portletnews5.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/portlet/images/portletnews6.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/portlet/images/portletnews7.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/portlet/images/portletnews8.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/portlet/images/portletnews9.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/rhds/rhds-eap-seamgen.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/rhds/rhds-eap.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/rhds/rhds-welcomescreen.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/componentsxmleditor.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/el-componentsxml.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/el-java.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/el-xhtml.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/images/bpmopenons.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/images/decorateca.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/images/droolsopenons.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/images/hqlcriteriaquicknavigati= on.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/images/inlinequeryvalidation.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/images/inopenons.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/images/seampreferences.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/images/serverselection.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/seam-enabledisable.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/seam-generate-entities.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/seam-packagepresentation-flat.p= ng =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/seam-packagepresentation-hierar= chical.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/seam-runtimes.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/seam-x-wizards.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/seamcomponents-filter.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/seamcomponents-labelscopepresen= tation.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/seamcomponents-nodescopepresent= ation.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/seamcomponents-referenced-proje= cts-filter.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/seamcomponentsview-projectexplo= rer.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/seamcomponentsview.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/seamvalidator-duplicatecomponen= texample.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/seamvalidator-preferences.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/seamwebprojectwizard.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/seamwtp-ear.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/seamwtp-war.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/showview-seam components.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/seam/xmldirectedit.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/template/images/sample-snapshot.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/vpe/images/context-menu.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/vpe/images/css-dialog-calling.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/vpe/images/css-editor-dialog.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/vpe/images/el-configuration.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/vpe/images/jsfcca.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/vpe/images/preview-tab.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/vpe/images/richfaces_3_1_0.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/vpe/images/selection-bar.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/vpe/images/vpe-custom-tags-rendering= .png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/vpe/images/vpe-horizontal-split.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/documentation/whatsnew/vpe/images/vpe-vertical-split.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============1232064998446876210==-- From jbosstools-commits at lists.jboss.org Sun Sep 13 02:39:15 2009 Content-Type: multipart/mixed; boundary="===============6265281233629075116==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17541 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/doc/newandnoteworthy. Date: Sun, 13 Sep 2009 02:39:15 -0400 Message-ID: <200909130639.n8D6dF45014881@svn01.web.mwc.hst.phx2.redhat.com> --===============6265281233629075116== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-13 02:39:14 -0400 (Sun, 13 Sep 2009) New Revision: 17541 Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/doc/newandnot= eworthy/criteriaeditor.png trunk/hibernatetools/plugins/org.hibernate.eclipse.console/doc/newandnot= eworthy/hqlcriteriaquicknavigation.png trunk/hibernatetools/plugins/org.hibernate.eclipse.console/doc/newandnot= eworthy/hqlpropertycodecompletion.png trunk/hibernatetools/plugins/org.hibernate.eclipse.console/doc/newandnot= eworthy/inlinequeryvalidation.png trunk/hibernatetools/plugins/org.hibernate.eclipse.console/doc/newandnot= eworthy/overlaycontenttypes.png Log: some images were converted to indexed 64 colors to be 5K instead of 400K Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/doc/ne= wandnoteworthy/criteriaeditor.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/doc/ne= wandnoteworthy/hqlcriteriaquicknavigation.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/doc/ne= wandnoteworthy/hqlpropertycodecompletion.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/doc/ne= wandnoteworthy/inlinequeryvalidation.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/doc/ne= wandnoteworthy/overlaycontenttypes.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============6265281233629075116==-- From jbosstools-commits at lists.jboss.org Sun Sep 13 17:39:21 2009 Content-Type: multipart/mixed; boundary="===============7117802153402699257==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17542 - in trunk: portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/preferences and 1 other directory. Date: Sun, 13 Sep 2009 17:39:20 -0400 Message-ID: <200909132139.n8DLdKeb026877@svn01.web.mwc.hst.phx2.redhat.com> --===============7117802153402699257== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: snjeza Date: 2009-09-13 17:39:20 -0400 (Sun, 13 Sep 2009) New Revision: 17542 Modified: trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven= /seam/preferences/SeamConfiguratorPreferencePage.java trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/por= tlet/ui/internal/preferences/JBossPortletPreferencePage.java Log: https://jira.jboss.org/jira/browse/JBIDE-4871 JBoss Portlet preferences are= n't saved after restarting Eclipse Modified: trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tool= s/maven/seam/preferences/SeamConfiguratorPreferencePage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/mave= n/seam/preferences/SeamConfiguratorPreferencePage.java 2009-09-13 06:39:14 = UTC (rev 17541) +++ trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/mave= n/seam/preferences/SeamConfiguratorPreferencePage.java 2009-09-13 21:39:20 = UTC (rev 17542) @@ -66,8 +66,14 @@ @Override protected void performDefaults() { configureSeamButton.setSelection(MavenSeamActivator.CONFIGURE_SEAM_VALUE= ); + configureSeamRuntimeButton.setSelection(MavenSeamActivator.CONFIGURE_SEA= M_RUNTIME_VALUE); + configureSeamArtifactsButton.setSelection(MavenSeamActivator.CONFIGURE_S= EAM_ARTIFACTS_VALUE); IPreferenceStore store =3D MavenSeamActivator.getDefault().getPreference= Store(); store.setValue(MavenSeamActivator.CONFIGURE_SEAM, MavenSeamActivator.CON= FIGURE_SEAM_VALUE); + store.setValue(MavenSeamActivator.CONFIGURE_SEAM_RUNTIME, MavenSeamActiv= ator.CONFIGURE_SEAM_RUNTIME_VALUE); + store.setValue(MavenSeamActivator.CONFIGURE_SEAM_ARTIFACTS, MavenSeamAct= ivator.CONFIGURE_SEAM_ARTIFACTS_VALUE); + configureSeamRuntimeButton.setEnabled(configureSeamButton.getSelection()= ); + configureSeamArtifactsButton.setEnabled(configureSeamButton.getSelection= ()); super.performDefaults(); } = @@ -75,6 +81,8 @@ public boolean performOk() { IPreferenceStore store =3D MavenSeamActivator.getDefault().getPreference= Store(); store.setValue(MavenSeamActivator.CONFIGURE_SEAM, configureSeamButton.ge= tSelection()); + store.setValue(MavenSeamActivator.CONFIGURE_SEAM_RUNTIME, configureSeamR= untimeButton.getSelection()); + store.setValue(MavenSeamActivator.CONFIGURE_SEAM_ARTIFACTS, configureSea= mArtifactsButton.getSelection()); return super.performOk(); } = Modified: trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/to= ols/portlet/ui/internal/preferences/JBossPortletPreferencePage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/preferences/JBossPortletPreferencePage.java 2009-09-13 06= :39:14 UTC (rev 17541) +++ trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/po= rtlet/ui/internal/preferences/JBossPortletPreferencePage.java 2009-09-13 21= :39:20 UTC (rev 17542) @@ -39,13 +39,17 @@ @Override protected void performDefaults() { button.setSelection(PortletCoreActivator.DEFAULT_CHECK_RUNTIMES); + Preferences preferences =3D PortletCoreActivator.getDefault().getPluginP= references(); + preferences.setValue(PortletCoreActivator.CHECK_RUNTIMES, PortletCoreAct= ivator.DEFAULT_CHECK_RUNTIMES); + PortletCoreActivator.getDefault().savePluginPreferences(); super.performDefaults(); } = @Override public boolean performOk() { Preferences preferences =3D PortletCoreActivator.getDefault().getPluginP= references(); - preferences.setDefault(PortletCoreActivator.CHECK_RUNTIMES, button.getSe= lection()); + preferences.setValue(PortletCoreActivator.CHECK_RUNTIMES, button.getSele= ction()); + PortletCoreActivator.getDefault().savePluginPreferences(); return super.performOk(); } = --===============7117802153402699257==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 08:36:20 2009 Content-Type: multipart/mixed; boundary="===============1698932037354271621==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17543 - in trunk/smooks/plugins: org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv12/provider and 29 other directories. Date: Mon, 14 Sep 2009 08:36:20 -0400 Message-ID: <200909141236.n8ECaK2G004879@svn01.web.mwc.hst.phx2.redhat.com> --===============1698932037354271621== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: DartPeng Date: 2009-09-14 08:36:19 -0400 (Mon, 14 Sep 2009) New Revision: 17543 Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/ChildrenSelectionWizard.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/ChildrenSelectionWizardPage.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/ContainerChildrenTablePanelCreator.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/ModelChildrenTablePanelCreator.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/ModelMultiChildrenTabelPanelCreator.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/MultiContainerChildrenAddtionTablePanel.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/SmooksReaderFormPage.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/csv12/Csv12ReaderUICreator.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/json12/Json12ReaderUICreator.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/navigator/MessageFilterNavigator.htm Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smo= oks/model/csv/provider/CsvReaderItemProvider.java trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smo= oks/model/csv12/provider/CSV12ReaderItemProvider.java trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smo= oks/model/edi/provider/EDIReaderItemProvider.java trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smo= oks/model/edi12/provider/EDI12ReaderItemProvider.java trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smo= oks/model/graphics/ext/SmooksGraphicsExtType.java trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smo= oks/model/graphics/ext/impl/SmooksGraphicsExtTypeImpl.java trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smo= oks/model/json/impl/JsonReaderImpl.java trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smo= oks/model/json/provider/JsonReaderItemProvider.java trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smo= oks/model/json/provider/KeyItemProvider.java trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smo= oks/model/json12/impl/Json12ReaderImpl.java trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smo= oks/model/json12/provider/Json12ReaderItemProvider.java trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smo= oks/model/json12/provider/KeyItemProvider.java trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smo= oks/model/smooks/provider/ReaderTypeItemProvider.java trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smo= oks10/model/smooks/util/SmooksModelUtils.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/FileSelectionWizard.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/FileSelectionWizardPage.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/NewOrModifySmooksElementDialog.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/PropertyUICreator.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/PropertyUICreatorManager.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/SelectorCreationDialog.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/SmooksConfigurationFormPage.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/SmooksConfigurationOverviewPage.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/SmooksConfigurationReaderPage.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/SmooksMultiFormEditor.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/csv/CSVDataParser.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/csv/CSVInputDataWizard.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/csv/CsvReaderUICreator.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/csv12/CSV12InputDataWizard.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/csv12/Csv12ReaderBindingPropertyUICreator.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/csv12/Csv12ReaderMapBindingPropertyUICreator.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/edi/EDIDataParser.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/edi/EDIDataWizard.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/javabean/BindingsPropertyUICreator.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/javabean12/JavaBean12PropertyUICreator.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/json/JsonDataWizard.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/json/JsonReaderUICreator.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/json12/Json12DataWizard.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/rule10/Rules10RulebaseUICreator.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/smooks/ConditionTypeUICreator.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/smooks/ReaderTypeUICreator.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/smooks/ResourceTypeUICreator.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/uitls/JsonInputDataParser.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/uitls/SmooksUIUtils.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/editors/wizard/ViewerInitorStore.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/navigator/DefaultSetting.htm trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/validate/SelectorValidator.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/wizards/NewSmooksElementWizardPage.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/configuration/wizards/SmooksConfigurationFileNewWizard.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/edimap/editor/EDIMapFormPage.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/editor/AbstractSmooksFormEditor.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/gef/tree/figures/TreeNodeFigure.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/graphical/editors/SmooksGraphicalEditorPaletteRootCreator.java trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smook= s/graphical/editors/SmooksGraphicalEditorPart.java Log: JBIDE-4878 DONE Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/to= ols/smooks/model/csv/provider/CsvReaderItemProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/csv/provider/CsvReaderItemProvider.java 2009-09-13 21:39:20 UTC = (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/csv/provider/CsvReaderItemProvider.java 2009-09-14 12:36:19 UTC = (rev 17543) @@ -200,10 +200,11 @@ */ @Override public String getText(Object object) { - String label =3D ((CsvReader)object).getTargetProfile(); - return label =3D=3D null || label.length() =3D=3D 0 ? - getString("_UI_CsvReader_type") : - getString("_UI_CsvReader_type") + " " + label; + return "CSV"; +// String label =3D ((CsvReader)object).getTargetProfile(); +// return label =3D=3D null || label.length() =3D=3D 0 ? +// getString("_UI_CsvReader_type") : +// getString("_UI_CsvReader_type") + " " + label; } = /** Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/to= ols/smooks/model/csv12/provider/CSV12ReaderItemProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/csv12/provider/CSV12ReaderItemProvider.java 2009-09-13 21:39:20 = UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/csv12/provider/CSV12ReaderItemProvider.java 2009-09-14 12:36:19 = UTC (rev 17543) @@ -299,10 +299,11 @@ * @generated */ public String getText(Object object) { - String label =3D ((CSV12Reader)object).getRecordElementName(); - return label =3D=3D null || label.length() =3D=3D 0 ? - getString("_UI_CSV12Reader_type") : - getString("_UI_CSV12Reader_type") + " " + label; + return "CSV"; +// String label =3D ((CSV12Reader)object).getRecordElementName(); +// return label =3D=3D null || label.length() =3D=3D 0 ? +// getString("_UI_CSV12Reader_type") : +// getString("_UI_CSV12Reader_type") + " " + label; } = /** Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/to= ols/smooks/model/edi/provider/EDIReaderItemProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/edi/provider/EDIReaderItemProvider.java 2009-09-13 21:39:20 UTC = (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/edi/provider/EDIReaderItemProvider.java 2009-09-14 12:36:19 UTC = (rev 17543) @@ -131,10 +131,11 @@ */ @Override public String getText(Object object) { - String label =3D ((EDIReader)object).getTargetProfile(); - return label =3D=3D null || label.length() =3D=3D 0 ? - getString("_UI_EDIReader_type") : - getString("_UI_EDIReader_type") + " " + label; + return "EDI"; +// String label =3D ((EDIReader)object).getTargetProfile(); +// return label =3D=3D null || label.length() =3D=3D 0 ? +// getString("_UI_EDIReader_type") : +// getString("_UI_EDIReader_type") + " " + label; } = /** Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/to= ols/smooks/model/edi12/provider/EDI12ReaderItemProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/edi12/provider/EDI12ReaderItemProvider.java 2009-09-13 21:39:20 = UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/edi12/provider/EDI12ReaderItemProvider.java 2009-09-14 12:36:19 = UTC (rev 17543) @@ -153,10 +153,11 @@ * @generated */ public String getText(Object object) { - String label =3D ((EDI12Reader)object).getTargetProfile(); - return label =3D=3D null || label.length() =3D=3D 0 ? - getString("_UI_EDI12Reader_type") : - getString("_UI_EDI12Reader_type") + " " + label; + return "EDI"; +// String label =3D ((EDI12Reader)object).getTargetProfile(); +// return label =3D=3D null || label.length() =3D=3D 0 ? +// getString("_UI_EDI12Reader_type") : +// getString("_UI_EDI12Reader_type") + " " + label; } = /** Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/to= ols/smooks/model/graphics/ext/SmooksGraphicsExtType.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/graphics/ext/SmooksGraphicsExtType.java 2009-09-13 21:39:20 UTC = (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/graphics/ext/SmooksGraphicsExtType.java 2009-09-14 12:36:19 UTC = (rev 17543) @@ -139,6 +139,8 @@ * @generated */ void setInputType(String value); + = + void setInputType(String value , boolean fireEvent); = /** * Returns the value of the 'Name' attribute. Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/to= ols/smooks/model/graphics/ext/impl/SmooksGraphicsExtTypeImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/graphics/ext/impl/SmooksGraphicsExtTypeImpl.java 2009-09-13 21:3= 9:20 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/graphics/ext/impl/SmooksGraphicsExtTypeImpl.java 2009-09-14 12:3= 6:19 UTC (rev 17543) @@ -292,6 +292,11 @@ inputType =3D newInputType; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.SMOO= KS_GRAPHICS_EXT_TYPE__INPUT_TYPE, oldInputType, inputType)); + List listeners =3D this.getChangeListeners(); + for (Iterator iterator =3D listeners.iterato= r(); iterator.hasNext();) { + ISmooksGraphChangeListener iSmooksGraphChangeListener =3D (ISmooksGraph= ChangeListener) iterator.next(); + iSmooksGraphChangeListener.graphPropertyChange(GraphPackage.Literals.SM= OOKS_GRAPHICS_EXT_TYPE__INPUT_TYPE, inputType); + } } = /** @@ -543,5 +548,13 @@ return changeListeners; } = + public void setInputType(String value, boolean fireEvent) { + if(fireEvent){ + setInputType(value); + }else{ + inputType =3D value; + } + } = + } //SmooksGraphicsExtTypeImpl Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/to= ols/smooks/model/json/impl/JsonReaderImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/json/impl/JsonReaderImpl.java 2009-09-13 21:39:20 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/json/impl/JsonReaderImpl.java 2009-09-14 12:36:19 UTC (rev 17543) @@ -12,6 +12,7 @@ import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.jboss.tools.smooks.model.json.JsonFactory; import org.jboss.tools.smooks.model.json.JsonPackage; import org.jboss.tools.smooks.model.json.JsonReader; import org.jboss.tools.smooks.model.json.KeyMap; @@ -222,6 +223,7 @@ */ protected JsonReaderImpl() { super(); + this.setKeyMap(JsonFactory.eINSTANCE.createKeyMap()); } = /** Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/to= ols/smooks/model/json/provider/JsonReaderItemProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/json/provider/JsonReaderItemProvider.java 2009-09-13 21:39:20 UT= C (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/json/provider/JsonReaderItemProvider.java 2009-09-14 12:36:19 UT= C (rev 17543) @@ -278,10 +278,11 @@ */ @Override public String getText(Object object) { - String label =3D ((JsonReader)object).getArrayElementName(); - return label =3D=3D null || label.length() =3D=3D 0 ? - getString("_UI_JsonReader_type") : - getString("_UI_JsonReader_type") + " " + label; + return "JSON"; +// String label =3D ((JsonReader)object).getArrayElementName(); +// return label =3D=3D null || label.length() =3D=3D 0 ? +// getString("_UI_JsonReader_type") : +// getString("_UI_JsonReader_type") + " " + label; } = /** Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/to= ols/smooks/model/json/provider/KeyItemProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/json/provider/KeyItemProvider.java 2009-09-13 21:39:20 UTC (rev = 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/json/provider/KeyItemProvider.java 2009-09-14 12:36:19 UTC (rev = 17543) @@ -156,10 +156,16 @@ */ @Override public String getText(Object object) { - String label =3D ((Key)object).getValue(); - return label =3D=3D null || label.length() =3D=3D 0 ? - getString("_UI_Key_type") : - getString("_UI_Key_type") + " " + label; + String label =3D ((Key)object).getTo(); + String from =3D ((Key)object).getFrom(); + String returnText =3D "-> "; + if(from !=3D null){ + returnText =3D from + " -> "; + } + if(label !=3D null){ + returnText =3D returnText + label; + } + return returnText; } = /** Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/to= ols/smooks/model/json12/impl/Json12ReaderImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/json12/impl/Json12ReaderImpl.java 2009-09-13 21:39:20 UTC (rev 1= 7542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/json12/impl/Json12ReaderImpl.java 2009-09-14 12:36:19 UTC (rev 1= 7543) @@ -14,6 +14,7 @@ import org.eclipse.emf.ecore.InternalEObject; = import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.jboss.tools.smooks.model.json12.Json12Factory; import org.jboss.tools.smooks.model.json12.Json12Package; import org.jboss.tools.smooks.model.json12.Json12Reader; import org.jboss.tools.smooks.model.json12.KeyMap; @@ -255,6 +256,7 @@ */ protected Json12ReaderImpl() { super(); + this.setKeyMap(Json12Factory.eINSTANCE.createKeyMap()); } = /** Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/to= ols/smooks/model/json12/provider/Json12ReaderItemProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/json12/provider/Json12ReaderItemProvider.java 2009-09-13 21:39:2= 0 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/json12/provider/Json12ReaderItemProvider.java 2009-09-14 12:36:1= 9 UTC (rev 17543) @@ -299,10 +299,11 @@ * @generated */ public String getText(Object object) { - String label =3D ((Json12Reader)object).getArrayElementName(); - return label =3D=3D null || label.length() =3D=3D 0 ? - getString("_UI_Json12Reader_type") : - getString("_UI_Json12Reader_type") + " " + label; + return "JSON"; +// String label =3D ((Json12Reader)object).getArrayElementName(); +// return label =3D=3D null || label.length() =3D=3D 0 ? +// getString("_UI_Json12Reader_type") : +// getString("_UI_Json12Reader_type") + " " + label; } = /** Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/to= ols/smooks/model/json12/provider/KeyItemProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/json12/provider/KeyItemProvider.java 2009-09-13 21:39:20 UTC (re= v 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/json12/provider/KeyItemProvider.java 2009-09-14 12:36:19 UTC (re= v 17543) @@ -11,12 +11,9 @@ import java.util.Collection; import java.util.List; = - import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.common.util.ResourceLocator; - import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; @@ -153,10 +150,16 @@ * @generated */ public String getText(Object object) { - String label =3D ((Key)object).getValue(); - return label =3D=3D null || label.length() =3D=3D 0 ? - getString("_UI_Key_type") : - getString("_UI_Key_type") + " " + label; + String label =3D ((Key)object).getTo(); + String from =3D ((Key)object).getFrom(); + String returnText =3D "-> "; + if(from !=3D null){ + returnText =3D from + " -> "; + } + if(label !=3D null){ + returnText =3D returnText + label; + } + return returnText; } = /** Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/to= ols/smooks/model/smooks/provider/ReaderTypeItemProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/smooks/provider/ReaderTypeItemProvider.java 2009-09-13 21:39:20 = UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks/model/smooks/provider/ReaderTypeItemProvider.java 2009-09-14 12:36:19 = UTC (rev 17543) @@ -139,10 +139,11 @@ */ @Override public String getText(Object object) { - String label =3D ((ReaderType)object).getTargetProfile(); - return label =3D=3D null || label.length() =3D=3D 0 ? - getString("_UI_ReaderType_type") : - getString("_UI_ReaderType_type") + " " + label; + return "Custom"; +// String label =3D ((ReaderType)object).getTargetProfile(); +// return label =3D=3D null || label.length() =3D=3D 0 ? +// getString("_UI_ReaderType_type") : +// getString("_UI_ReaderType_type") + " " + label; } = /** Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/to= ols/smooks10/model/smooks/util/SmooksModelUtils.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks10/model/smooks/util/SmooksModelUtils.java 2009-09-13 21:39:20 UTC (rev= 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/sm= ooks10/model/smooks/util/SmooksModelUtils.java 2009-09-14 12:36:19 UTC (rev= 17543) @@ -51,11 +51,13 @@ = public static final String INPUT_TYPE_JAVA =3D "java"; = + public static final String INPUT_TYPE_CUSTOME =3D "custom"; + public static final String INPUT_TYPE_JSON_1_1 =3D "json"; = - public static final String INPUT_TYPE_CSV_1_1 =3D "csv"; + public static final String INPUT_TYPE_CSV =3D "csv"; = - public static final String INPUT_TYPE_CSV_1_2 =3D "csv_1_2"; + public static final String INPUT_TYPE_CSV_1_2 =3D "csv"; = public static final String PARAM_NAME_CLASS =3D "class"; = @@ -76,12 +78,12 @@ public static final String BEAN_ID =3D "beanId"; = public static final String BINDINGS =3D "bindings"; - = + public static final String INPUT_TYPE_EDI_1_1 =3D "EDI"; = - public static final String INPUT_TYPE_EDI_1_2 =3D "EDI_1_2"; + public static final String INPUT_TYPE_EDI_1_2 =3D "EDI"; = - public static final String INPUT_TYPE_JSON_1_2 =3D "json_1_2"; + public static final String INPUT_TYPE_JSON_1_2 =3D "json"; = public static EStructuralFeature ATTRIBUTE_PROPERTY =3D ExtendedMetaData.= INSTANCE.demandFeature(null, "property", false); @@ -511,7 +513,7 @@ List list =3D input= .getParam(); if (INPUT_TYPE_JAVA.equals(input.getType()) || INPUT_TYPE_XML.equals(inp= ut.getType()) || INPUT_TYPE_XSD.equals(input.getType()) || INPUT_TYPE_JSON_1_1.equal= s(input.getType()) - || INPUT_TYPE_JSON_1_2.equals(input.getType()) || INPUT_TYPE_CSV_1_1.e= quals(input.getType()) + || INPUT_TYPE_JSON_1_2.equals(input.getType()) || INPUT_TYPE_CSV.equal= s(input.getType()) || INPUT_TYPE_EDI_1_1.equals(input.getType()) || INPUT_TYPE_EDI_1_2.eq= uals(input.getType()) || INPUT_TYPE_CSV_1_2.equals(input.getType())) { for (Iterator iterator =3D list.iterator(); iterator.hasNext();) { Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/s= mooks/configuration/editors/ChildrenSelectionWizard.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/ChildrenSelectionWizard.java = (rev 0) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/ChildrenSelectionWizard.java 2009-09-14 12:36:19 U= TC (rev 17543) @@ -0,0 +1,76 @@ +/*************************************************************************= ****** + * Copyright (c) 2008 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.smooks.configuration.editors; + +import java.util.Collection; + +import org.eclipse.emf.edit.command.CommandParameter; +import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; +import org.eclipse.jface.wizard.IWizard; +import org.eclipse.jface.wizard.Wizard; +import org.eclipse.jface.wizard.WizardDialog; +import org.eclipse.swt.widgets.Shell; + +/** + * @author Dart + * = + */ +public class ChildrenSelectionWizard extends Wizard { + + private ChildrenSelectionWizardPage page; + + private PrivateWizardDialog dialog; + + public ChildrenSelectionWizard(Shell shell, Collection childrenDescrip= tor, + AdapterFactoryEditingDomain editingDomain) { + super(); + dialog =3D new PrivateWizardDialog(shell, this){ + = + }; + page =3D new ChildrenSelectionWizardPage(childrenDescriptor, editingDoma= in, "children selection", + "Select children", null); + page.setWizardDialog(dialog); + } + = + public CommandParameter getChildDescriptor(){ + return (CommandParameter)page.getChild(); + } + + public int open() { + return dialog.open(); + } + + /* + * (non-Javadoc) + * = + * @see org.eclipse.jface.wizard.Wizard#performFinish() + */ + @Override + public boolean performFinish() { + return true; + } + + @Override + public void addPages() { + this.addPage(page); + } + = + class PrivateWizardDialog extends WizardDialog{ + + public PrivateWizardDialog(Shell parentShell, IWizard newWizard) { + super(parentShell, newWizard); + } + public void pressOK(){ + this.okPressed(); + } + } + +} Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org= /jboss/tools/smooks/configuration/editors/ChildrenSelectionWizard.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/s= mooks/configuration/editors/ChildrenSelectionWizardPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/ChildrenSelectionWizardPage.java = (rev 0) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/ChildrenSelectionWizardPage.java 2009-09-14 12:36:= 19 UTC (rev 17543) @@ -0,0 +1,183 @@ +/*************************************************************************= ****** + * Copyright (c) 2008 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.smooks.configuration.editors; + +import java.util.ArrayList; +import java.util.Collection; + +import org.eclipse.emf.edit.command.CommandParameter; +import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.jface.resource.ImageDescriptor; +import org.eclipse.jface.viewers.DoubleClickEvent; +import org.eclipse.jface.viewers.IDoubleClickListener; +import org.eclipse.jface.viewers.ISelectionChangedListener; +import org.eclipse.jface.viewers.IStructuredContentProvider; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.viewers.LabelProvider; +import org.eclipse.jface.viewers.SelectionChangedEvent; +import org.eclipse.jface.viewers.TableViewer; +import org.eclipse.jface.viewers.Viewer; +import org.eclipse.jface.wizard.WizardPage; +import org.eclipse.swt.SWT; +import org.eclipse.swt.graphics.Image; +import org.eclipse.swt.layout.FillLayout; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.widgets.Composite; +import org.jboss.tools.smooks.configuration.editors.ChildrenSelectionWizar= d.PrivateWizardDialog; + +/** + * @author Dart + * = + */ +public class ChildrenSelectionWizardPage extends WizardPage { + + private Collection childrenDescriptor =3D new ArrayList(); + + private AdapterFactoryEditingDomain editingDomain =3D null; + + protected Object child; + + private PrivateWizardDialog dialog; + + /* + * (non-Javadoc) + * = + * @see + * org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.wi= dgets + * .Composite) + */ + public void createControl(Composite parent) { + Composite mainComposite =3D new Composite(parent, SWT.NONE); + + GridData gd =3D new GridData(GridData.FILL_BOTH); + mainComposite.setLayoutData(gd); + + mainComposite.setLayout(new FillLayout()); + + final TableViewer tableViewer =3D new TableViewer(mainComposite, SWT.BOR= DER | SWT.FULL_SELECTION); + tableViewer.setContentProvider(new ChildrenDescriptorContentProvider()); + tableViewer.setLabelProvider(new ChildrenDescriptorLabelProvider()); + tableViewer.addSelectionChangedListener(new ISelectionChangedListener() { + + public void selectionChanged(SelectionChangedEvent event) { + child =3D null; + if (!((IStructuredSelection) tableViewer.getSelection()).isEmpty()) { + child =3D ((IStructuredSelection) tableViewer.getSelection()).getFirs= tElement(); + updatePage(); + } + } + }); + tableViewer.addDoubleClickListener(new IDoubleClickListener() { + = + public void doubleClick(DoubleClickEvent event) { + dialog.close(); + } + }); + if(childrenDescriptor !=3D null){ + tableViewer.setInput(childrenDescriptor); + } + updatePage(); + setControl(mainComposite); + } + + public Object getChild() { + return child; + } + + protected void updatePage() { + String error =3D null; + if (child =3D=3D null) { + error =3D "Please choose a child type"; + } + + this.setErrorMessage(error); + this.setPageComplete(error =3D=3D null); + } + + public ChildrenSelectionWizardPage(Collection childrenDescriptor, + AdapterFactoryEditingDomain editingDomain, String pageName, String titl= e, ImageDescriptor titleImage) { + super(pageName, title, titleImage); + this.childrenDescriptor =3D childrenDescriptor; + this.editingDomain =3D editingDomain; + this.setTitle("Select a Child's Type"); + this.setDescription("Select a child's type"); + } + + public ChildrenSelectionWizardPage(Collection childrenDescriptor, + AdapterFactoryEditingDomain editingDomain,String pageName) { + super(pageName); + this.childrenDescriptor =3D childrenDescriptor; + this.editingDomain =3D editingDomain; + this.setTitle("Select a Child's Type"); + this.setDescription("Select a child's type"); + } + + private Object getValue(Object element) { + if (element instanceof CommandParameter) { + Object v =3D ((CommandParameter) element).getValue(); + v =3D AdapterFactoryEditingDomain.unwrap(v); + return v; + } + return element; + } + + private class ChildrenDescriptorContentProvider implements IStructuredCon= tentProvider { + + public Object[] getElements(Object inputElement) { + if (inputElement instanceof Collection) { + return ((Collection) inputElement).toArray(); + } + return new Object[] {}; + } + + public void dispose() { + // TODO Auto-generated method stub + + } + + public void inputChanged(Viewer viewer, Object oldInput, Object newInput= ) { + // TODO Auto-generated method stub + + } + + } + + private class ChildrenDescriptorLabelProvider extends LabelProvider { + + @Override + public Image getImage(Object element) { + element =3D getValue(element); + IItemLabelProvider provider =3D (IItemLabelProvider) editingDomain.getA= dapterFactory().adapt(element, + IItemLabelProvider.class); + Object img =3D provider.getImage(element); + if(img instanceof Image){ + return ((Image)img); + } + return null; + + } + + @Override + public String getText(Object element) { + element =3D getValue(element); + IItemLabelProvider provider =3D (IItemLabelProvider) editingDomain.getA= dapterFactory().adapt(element, + IItemLabelProvider.class); + return provider.getText(element); + } + + } + + public void setWizardDialog(PrivateWizardDialog dialog) { + this.dialog =3D dialog; + } + +} Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org= /jboss/tools/smooks/configuration/editors/ChildrenSelectionWizardPage.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/s= mooks/configuration/editors/ContainerChildrenTablePanelCreator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/ContainerChildrenTablePanelCreator.java = (rev 0) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/ContainerChildrenTablePanelCreator.java 2009-09-14= 12:36:19 UTC (rev 17543) @@ -0,0 +1,105 @@ +/*************************************************************************= ****** + * Copyright (c) 2008 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.smooks.configuration.editors; + +import org.eclipse.emf.common.command.Command; +import org.eclipse.emf.common.command.CompoundCommand; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.edit.command.RemoveCommand; +import org.eclipse.emf.edit.domain.EditingDomain; +import org.eclipse.ui.IEditorPart; +import org.eclipse.ui.forms.widgets.FormToolkit; +import org.jboss.tools.smooks.editor.ISmooksModelProvider; + +/** + * @author Dart + * = + */ +public class ContainerChildrenTablePanelCreator extends ModelChildrenTable= PanelCreator { + + private EStructuralFeature containerFeature =3D null; + + private EObject rootModel; + + public ContainerChildrenTablePanelCreator(ISmooksModelProvider smooksMode= lProvider, EObject rootModel, + FormToolkit toolkit, IEditorPart editorPart) { + super(smooksModelProvider, null, toolkit, editorPart); + this.rootModel =3D rootModel; + } + + public EStructuralFeature getContainerFeature() { + return containerFeature; + } + + public void setContainerFeature(EStructuralFeature containerFeature) { + this.containerFeature =3D containerFeature; + } + + public EObject getRootModel() { + return rootModel; + } + + public void setRootModel(EObject rootModel) { + this.rootModel =3D rootModel; + } + + @Override + protected boolean performNewChild() { + if (getRootModel() !=3D null) { + EObject rootModel =3D getRootModel(); + EStructuralFeature feature =3D getContainerFeature(); + if (feature !=3D null) { + Object container =3D rootModel.eGet(feature); + if (container =3D=3D null) { + container =3D newContainerModel(); + if (container !=3D null){ + rootModel.eSet(containerFeature, container); + this.setParentModel((EObject) container); + if(getChildrenTableViewer() !=3D null){ + getChildrenTableViewer().setInput(getParentModel()); + } + } + }else{ + this.setParentModel((EObject) container); + if(getChildrenTableViewer() !=3D null){ + getChildrenTableViewer().setInput(getParentModel()); + } + } + = + return true; + } + } + return false; + } + + protected EObject newContainerModel() { + return null; + } + + @Override + protected void performRunRemoveCommand(CompoundCommand compoundCommand, E= ditingDomain editingDomain) { + if (this.getParentModel() !=3D null) { + EObject h =3D getParentModel(); + if (h.eContents().size() =3D=3D 1) { + Command command1 =3D RemoveCommand.create(editingDomain, h); + compoundCommand.append(command1); + this.setParentModel(null); + } + } + super.performRunRemoveCommand(compoundCommand, editingDomain); + } + + @Override + protected void endRemoveChild() { + super.endRemoveChild(); + } +} Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org= /jboss/tools/smooks/configuration/editors/ContainerChildrenTablePanelCreato= r.java ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/FileSelectionWizard.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/FileSelectionWizard.java 2009-09-13 21:39:20 UTC (= rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/FileSelectionWizard.java 2009-09-14 12:36:19 UTC (= rev 17543) @@ -38,7 +38,7 @@ = @Override public void addPages() { - fileSelectionWizardPage =3D new FileSelectionWizardPage("File Selection"= ); + fileSelectionWizardPage =3D new FileSelectionWizardPage("File Selection"= ,null); fileSelectionWizardPage.setFilters(viewerFilters); fileSelectionWizardPage.setInitSelections(getInitSelections()); fileSelectionWizardPage.setMultiSelect(isMultiSelect()); Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/FileSelectionWizardPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/FileSelectionWizardPage.java 2009-09-13 21:39:20 U= TC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/FileSelectionWizardPage.java 2009-09-14 12:36:19 U= TC (rev 17543) @@ -17,11 +17,11 @@ * @author Dart Peng (dpeng(a)redhat.com) Date Apr 13, 2009 */ public class FileSelectionWizardPage extends AbstractFileSelectionWizardPa= ge { - = + private ProtableFileStringProcessor processor =3D null; - = - public FileSelectionWizardPage(String pageName) { - super(pageName , new String[]{}); + + public FileSelectionWizardPage(String pageName, Object[] initSelection) { + super(pageName, new String[] {}); processor =3D new ProtableFileStringProcessor(); setFilePathProcessor(processor); setTitle("File Selection"); @@ -40,12 +40,11 @@ return null; } = - @Override protected String processFileSystemFilePath(String path) { - if(getFilePathProcessor() !=3D null){ + if (getFilePathProcessor() !=3D null) { String s =3D getFilePathProcessor().processFileSystemPath(path); - if(s !=3D null){ + if (s !=3D null) { return s; } } @@ -54,18 +53,17 @@ = @Override protected String processWorkSpaceFilePath(IFile file) { - if(getFilePathProcessor() !=3D null){ + if (getFilePathProcessor() !=3D null) { String s =3D getFilePathProcessor().processWorkBenchPath(file); - if(s !=3D null){ + if (s !=3D null) { return s; } } return this.processor.processWorkBenchPath(file); } = + private class ProtableFileStringProcessor implements IFilePathProcessor { = - private class ProtableFileStringProcessor implements IFilePathProcessor{ - public String processWorkBenchPath(IFile file) { String s =3D file.getFullPath().toPortableString(); return s; @@ -74,7 +72,7 @@ public String processFileSystemPath(String filePath) { return filePath; } - = + } = } Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/s= mooks/configuration/editors/ModelChildrenTablePanelCreator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/ModelChildrenTablePanelCreator.java = (rev 0) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/ModelChildrenTablePanelCreator.java 2009-09-14 12:= 36:19 UTC (rev 17543) @@ -0,0 +1,407 @@ +/*************************************************************************= ****** + * Copyright (c) 2008 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.smooks.configuration.editors; + +import org.eclipse.emf.common.command.Command; +import org.eclipse.emf.common.command.CompoundCommand; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.edit.command.MoveCommand; +import org.eclipse.emf.edit.command.RemoveCommand; +import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; +import org.eclipse.emf.edit.domain.EditingDomain; +import org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider; +import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider; +import org.eclipse.jface.dialogs.Dialog; +import org.eclipse.jface.viewers.DecoratingLabelProvider; +import org.eclipse.jface.viewers.DoubleClickEvent; +import org.eclipse.jface.viewers.IDoubleClickListener; +import org.eclipse.jface.viewers.ISelectionChangedListener; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.viewers.SelectionChangedEvent; +import org.eclipse.jface.viewers.TableViewer; +import org.eclipse.swt.SWT; +import org.eclipse.swt.events.SelectionAdapter; +import org.eclipse.swt.events.SelectionEvent; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Button; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.ui.IEditorPart; +import org.eclipse.ui.forms.widgets.FormToolkit; +import org.jboss.tools.smooks.configuration.SmooksConfigurationActivator; +import org.jboss.tools.smooks.editor.ISmooksModelProvider; +import org.jboss.tools.smooks.model.common.AbstractAnyType; + +/** + * @author Dart + * = + */ +public class ModelChildrenTablePanelCreator { + + private ISmooksModelProvider smooksModelProvider; + + protected TableViewer childrenTableViewer; + + private Button newChildButton; + + private Button removeRemoveButton; + + private Button upChildButton; + + private Button downChildButton; + + private Button childPropertiesButton; + + private EObject parentModel; + + private FormToolkit toolkit; + + private IEditorPart editorPart; + + public ModelChildrenTablePanelCreator(ISmooksModelProvider smooksModelPro= vider, EObject parentModel, + FormToolkit toolkit, IEditorPart editorPart) { + this.parentModel =3D parentModel; + this.smooksModelProvider =3D smooksModelProvider; + this.toolkit =3D toolkit; + this.editorPart =3D editorPart; + } + + public Composite createChildrenTablePanel(Composite parent) { + Composite mainComposite =3D toolkit.createComposite(parent); + GridLayout gl =3D new GridLayout(); + gl.numColumns =3D 2; + mainComposite.setLayout(gl); + createChildrenTablePanel(mainComposite, toolkit); + return mainComposite; + } + + protected void createChildrenTablePanel(Composite mainComposite, FormTool= kit toolkit) { + if (smooksModelProvider !=3D null) { + AdapterFactoryEditingDomain editingDomain =3D (AdapterFactoryEditingDom= ain) smooksModelProvider + .getEditingDomain(); + EObject parentModel =3D getParentModel(); + + childrenTableViewer =3D new TableViewer(mainComposite); + GridData gd =3D new GridData(GridData.FILL_BOTH); + childrenTableViewer.getControl().setLayoutData(gd); + toolkit.paintBordersFor(mainComposite); + Composite buttonArea =3D toolkit.createComposite(mainComposite); + gd =3D new GridData(GridData.FILL_VERTICAL); + gd.widthHint =3D 30; + GridLayout bgl =3D new GridLayout(); + buttonArea.setLayout(bgl); + + newChildButton =3D toolkit.createButton(buttonArea, "New", SWT.NONE); + gd =3D new GridData(GridData.FILL_HORIZONTAL); + gd.verticalAlignment =3D GridData.BEGINNING; + newChildButton.setLayoutData(gd); + + removeRemoveButton =3D toolkit.createButton(buttonArea, "Remove", SWT.N= ONE); + gd =3D new GridData(GridData.FILL_HORIZONTAL); + gd.verticalAlignment =3D GridData.BEGINNING; + removeRemoveButton.setLayoutData(gd); + + upChildButton =3D toolkit.createButton(buttonArea, "Up", SWT.NONE); + gd =3D new GridData(GridData.FILL_HORIZONTAL); + gd.verticalAlignment =3D GridData.BEGINNING; + upChildButton.setLayoutData(gd); + + downChildButton =3D toolkit.createButton(buttonArea, "Down", SWT.NONE); + gd =3D new GridData(GridData.FILL_HORIZONTAL); + gd.verticalAlignment =3D GridData.BEGINNING; + downChildButton.setLayoutData(gd); + + childPropertiesButton =3D toolkit.createButton(buttonArea, "Properties.= .", SWT.NONE); + gd =3D new GridData(GridData.FILL_HORIZONTAL); + gd.verticalAlignment =3D GridData.BEGINNING; + childPropertiesButton.setLayoutData(gd); + + childrenTableViewer + .setContentProvider(new AdapterFactoryContentProvider(editingDomain.g= etAdapterFactory()) { + + @Override + public boolean hasChildren(Object object) { + return false; + } + + }); + + childrenTableViewer.setLabelProvider(new DecoratingLabelProvider(new Ad= apterFactoryLabelProvider( + editingDomain.getAdapterFactory()) { + + /* + * (non-Javadoc) + * = + * @see + * org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider + * # getText(java.lang.Object) + */ + @Override + public String getText(Object object) { + Object obj =3D AdapterFactoryEditingDomain.unwrap(object); + if (obj instanceof AbstractAnyType) { + return super.getText(obj); + } + return super.getText(object); + } + + }, SmooksConfigurationActivator.getDefault().getWorkbench().getDecorato= rManager().getLabelDecorator())); + + if (parentModel !=3D null) { + childrenTableViewer.setInput(parentModel); + } + + childrenTableViewer.addDoubleClickListener(new IDoubleClickListener() { + + public void doubleClick(DoubleClickEvent event) { + openChildPropertiesModifyDialog(); + } + }); + + childrenTableViewer.addSelectionChangedListener(new ISelectionChangedLi= stener() { + + public void selectionChanged(SelectionChangedEvent event) { + updateButtons(); + } + }); + + hookButtons(); + updateButtons(); + } + } + + protected TableViewer getChildrenTableViewer() { + return childrenTableViewer; + } + + protected EObject newChildModel() { + return null; + } + + protected EStructuralFeature getChildrenFeature() { + return null; + } + + protected boolean performNewChild() { + return true; + } + + protected void endNewChild() { + + } + + protected void performRemoveChild() { + + } + + protected void endRemoveChild() { + + } + + protected void hookButtons() { + newChildButton.addSelectionListener(new SelectionAdapter() { + + @Override + public void widgetSelected(SelectionEvent e) { + if (getSmooksVersion() =3D=3D null) { + return; + } + if (performNewChild()) { + EObject childModel =3D newChildModel(); + EObject parent =3D getParentModel(); + if (parent =3D=3D null || childModel =3D=3D null) { + return; + } + EStructuralFeature profileFeature =3D getChildrenFeature(); + try { + NewOrModifySmooksElementDialog dialog =3D new NewOrModifySmooksEleme= ntDialog(editorPart + .getEditorSite().getShell(), profileFeature, childModel, parent, t= oolkit, + smooksModelProvider, editorPart, false); + + if (dialog.open() =3D=3D Dialog.OK) { + endNewChild(); + } + } catch (Throwable e1) { + e1.printStackTrace(); + } + } + super.widgetSelected(e); + } + + }); + removeRemoveButton.addSelectionListener(new SelectionAdapter() { + + @Override + public void widgetSelected(SelectionEvent e) { + IStructuredSelection selection =3D (IStructuredSelection) childrenTabl= eViewer.getSelection(); + if (selection =3D=3D null) + return; + Object obj =3D selection.getFirstElement(); + if (obj instanceof EObject) { + performRemoveChild(); + EObject profile =3D (EObject) obj; + EObject parent =3D getParentModel(); + if (parent =3D=3D null) + return; + CompoundCommand compoundCommand =3D new CompoundCommand(); + Command command =3D RemoveCommand.create(smooksModelProvider.getEditi= ngDomain(), profile); + compoundCommand.append(command); + performRunRemoveCommand(compoundCommand, smooksModelProvider.getEditi= ngDomain()); + smooksModelProvider.getEditingDomain().getCommandStack().execute(comp= oundCommand); + endRemoveChild(); + } + } + + }); + upChildButton.addSelectionListener(new SelectionAdapter() { + + @Override + public void widgetSelected(SelectionEvent e) { + IStructuredSelection selection =3D (IStructuredSelection) childrenTabl= eViewer.getSelection(); + if (selection =3D=3D null) + return; + Object obj =3D selection.getFirstElement(); + if (obj instanceof EObject) { + EObject profilesType =3D getParentModel(); + if (profilesType =3D=3D null) + return; + EObject v =3D (EObject) AdapterFactoryEditingDomain.unwrap(obj); + EObject parent =3D v.eContainer(); + int index =3D parent.eContents().indexOf(v); + Command command =3D MoveCommand.create(smooksModelProvider.getEditing= Domain(), parent, null, obj, + index - 1); + smooksModelProvider.getEditingDomain().getCommandStack().execute(comm= and); + } + } + + }); + downChildButton.addSelectionListener(new SelectionAdapter() { + + @Override + public void widgetSelected(SelectionEvent e) { + IStructuredSelection selection =3D (IStructuredSelection) childrenTabl= eViewer.getSelection(); + if (selection =3D=3D null) + return; + Object obj =3D selection.getFirstElement(); + if (obj instanceof EObject) { + EObject profilesType =3D getParentModel(); + if (profilesType =3D=3D null) + return; + EObject v =3D (EObject) AdapterFactoryEditingDomain.unwrap(obj); + EObject parent =3D v.eContainer(); + int index =3D parent.eContents().indexOf(v); + Command command =3D MoveCommand.create(smooksModelProvider.getEditing= Domain(), parent, null, obj, + index + 1); + smooksModelProvider.getEditingDomain().getCommandStack().execute(comm= and); + } + } + + }); + childPropertiesButton.addSelectionListener(new SelectionAdapter() { + + @Override + public void widgetSelected(SelectionEvent e) { + openChildPropertiesModifyDialog(); + super.widgetSelected(e); + } + + }); + + } + + protected void performRunRemoveCommand(CompoundCommand compoundCommand, E= ditingDomain editDomain) { + + } + + protected void updateButtons() { + if (getSmooksVersion() =3D=3D null) { + childPropertiesButton.setEnabled(false); + newChildButton.setEnabled(false); + removeRemoveButton.setEnabled(false); + upChildButton.setEnabled(false); + downChildButton.setEnabled(false); + return; + } + childPropertiesButton.setEnabled(true); + removeRemoveButton.setEnabled(true); + IStructuredSelection selection =3D (IStructuredSelection) childrenTableV= iewer.getSelection(); + if (selection =3D=3D null) { + childPropertiesButton.setEnabled(false); + removeRemoveButton.setEnabled(false); + upChildButton.setEnabled(false); + downChildButton.setEnabled(false); + } else { + if (selection.getFirstElement() =3D=3D null) { + childPropertiesButton.setEnabled(false); + removeRemoveButton.setEnabled(false); + upChildButton.setEnabled(false); + downChildButton.setEnabled(false); + return; + } + + Object obj =3D selection.getFirstElement(); + if (obj instanceof EObject) { + EObject profilesType =3D getParentModel(); + if (profilesType =3D=3D null) + return; + EObject v =3D (EObject) AdapterFactoryEditingDomain.unwrap(obj); + EObject parent =3D v.eContainer(); + int index =3D parent.eContents().indexOf(v); + Command command =3D MoveCommand.create(smooksModelProvider.getEditingD= omain(), parent, null, obj, + index - 1); + upChildButton.setEnabled(command.canExecute()); + + Command command1 =3D MoveCommand.create(smooksModelProvider.getEditing= Domain(), parent, null, obj, + index + 1); + downChildButton.setEnabled(command1.canExecute()); + } + + if (selection.size() > 1) { + childPropertiesButton.setEnabled(false); + removeRemoveButton.setEnabled(false); + } + } + + } + + protected void openChildPropertiesModifyDialog() { + IStructuredSelection selection =3D (IStructuredSelection) childrenTableV= iewer.getSelection(); + if (selection =3D=3D null) + return; + Object obj =3D selection.getFirstElement(); + if (obj instanceof EObject) { + EObject child =3D (EObject) obj; + EObject parent =3D getParentModel(); + EStructuralFeature childFeature =3D getChildrenFeature(); + + NewOrModifySmooksElementDialog dialog =3D new NewOrModifySmooksElementD= ialog(editorPart.getEditorSite() + .getShell(), childFeature, child, parent, toolkit, smooksModelProvide= r, editorPart, true); + dialog.open(); + } + } + + public EObject getParentModel() { + return parentModel; + } + + public void setParentModel(EObject parentModel) { + this.parentModel =3D parentModel; + } + + public String getSmooksVersion() { + if (this.smooksModelProvider !=3D null) { + return this.smooksModelProvider.getSmooksGraphicsExt().getPlatformVersi= on(); + } + return null; + } + +} Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org= /jboss/tools/smooks/configuration/editors/ModelChildrenTablePanelCreator.ja= va ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/s= mooks/configuration/editors/ModelMultiChildrenTabelPanelCreator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/ModelMultiChildrenTabelPanelCreator.java = (rev 0) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/ModelMultiChildrenTabelPanelCreator.java 2009-09-1= 4 12:36:19 UTC (rev 17543) @@ -0,0 +1,90 @@ +/*************************************************************************= ****** + * Copyright (c) 2008 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.smooks.configuration.editors; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.edit.command.CommandParameter; +import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; +import org.eclipse.jface.dialogs.Dialog; +import org.eclipse.swt.widgets.Shell; +import org.eclipse.ui.IEditorPart; +import org.eclipse.ui.forms.widgets.FormToolkit; +import org.jboss.tools.smooks.editor.ISmooksModelProvider; + +/** + * @author Dart + * = + */ +public class ModelMultiChildrenTabelPanelCreator extends ModelChildrenTabl= ePanelCreator { + + private Shell shell; + + private Collection children; + + private AdapterFactoryEditingDomain editingDomain; + + private EStructuralFeature feature; + + private EObject newChild =3D null; + + public ModelMultiChildrenTabelPanelCreator(Shell shell, Collection chi= ldren, + AdapterFactoryEditingDomain editingDomain, ISmooksModelProvider smooksM= odelProvider, EObject parentModel, + FormToolkit toolkit, IEditorPart editorPart) { + super(smooksModelProvider, parentModel, toolkit, editorPart); + this.shell =3D shell; + this.children =3D children; + this.editingDomain =3D editingDomain; + } + + @Override + protected boolean performNewChild() { + List cloneChildren =3D new ArrayList(); + cloneChildren.addAll(children); + ChildrenSelectionWizard wizard =3D new ChildrenSelectionWizard(shell, cl= oneChildren, editingDomain); + if (wizard.open() =3D=3D Dialog.OK) { + CommandParameter param =3D wizard.getChildDescriptor(); + if (param !=3D null) { + feature =3D getChildFeature(param); + newChild =3D getNewChildInstance(param); + + if (feature !=3D null && newChild !=3D null) { + return super.performNewChild(); + } + + } + } + return false; + } + + protected EObject getNewChildInstance(CommandParameter param) { + return param.getEValue(); + } + + protected EStructuralFeature getChildFeature(CommandParameter param) { + return param.getEStructuralFeature(); + } + + @Override + protected EStructuralFeature getChildrenFeature() { + return feature; + } + + @Override + protected EObject newChildModel() { + return newChild; + } + +} Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org= /jboss/tools/smooks/configuration/editors/ModelMultiChildrenTabelPanelCreat= or.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/s= mooks/configuration/editors/MultiContainerChildrenAddtionTablePanel.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/MultiContainerChildrenAddtionTablePanel.java = (rev 0) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/MultiContainerChildrenAddtionTablePanel.java 2009-= 09-14 12:36:19 UTC (rev 17543) @@ -0,0 +1,91 @@ +/*************************************************************************= ****** + * Copyright (c) 2008 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.smooks.configuration.editors; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.edit.command.CommandParameter; +import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; +import org.eclipse.jface.dialogs.Dialog; +import org.eclipse.swt.widgets.Shell; +import org.eclipse.ui.IEditorPart; +import org.eclipse.ui.forms.widgets.FormToolkit; +import org.jboss.tools.smooks.editor.ISmooksModelProvider; + +/** + * @author Dart + * = + */ +public class MultiContainerChildrenAddtionTablePanel extends ContainerChil= drenTablePanelCreator { + + private Shell shell; + + private Collection children; + + private AdapterFactoryEditingDomain editingDomain; + + private EStructuralFeature feature; + + private EObject newChild =3D null; + + public MultiContainerChildrenAddtionTablePanel(Shell shell, Collection= children, + AdapterFactoryEditingDomain editingDomain, ISmooksModelProvider smooksM= odelProvider, EObject rootModel, + FormToolkit toolkit, IEditorPart editorPart) { + super(smooksModelProvider, rootModel, toolkit, editorPart); + this.shell =3D shell; + this.children =3D children; + this.editingDomain =3D editingDomain; + } + + @Override + protected boolean performNewChild() { + List cloneChildren =3D new ArrayList(); + cloneChildren.addAll(children); + ChildrenSelectionWizard wizard =3D new ChildrenSelectionWizard(shell, cl= oneChildren, editingDomain); + if (wizard.open() =3D=3D Dialog.OK) { + CommandParameter param =3D wizard.getChildDescriptor(); + if (param !=3D null) { + feature =3D getChildFeature(param); + newChild =3D getNewChildInstance(param); + + if (feature !=3D null && newChild !=3D null) { + return super.performNewChild(); + } + + } + } + return false; + } + + protected EObject getNewChildInstance(CommandParameter parameter) { + if(parameter =3D=3D null) return null; + return parameter.getEValue(); + } + + protected EStructuralFeature getChildFeature(CommandParameter parameter) { + if(parameter =3D=3D null) return null; + return parameter.getEStructuralFeature(); + } + + @Override + protected EStructuralFeature getChildrenFeature() { + return feature; + } + + @Override + protected EObject newChildModel() { + return newChild; + } +} Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org= /jboss/tools/smooks/configuration/editors/MultiContainerChildrenAddtionTabl= ePanel.java ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/NewOrModifySmooksElementDialog.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/NewOrModifySmooksElementDialog.java 2009-09-13 21:= 39:20 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/NewOrModifySmooksElementDialog.java 2009-09-14 12:= 36:19 UTC (rev 17543) @@ -12,8 +12,10 @@ = import org.eclipse.emf.common.command.Command; import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EReference; import org.eclipse.emf.ecore.EStructuralFeature; import org.eclipse.emf.edit.command.AddCommand; +import org.eclipse.emf.edit.command.SetCommand; import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; import org.eclipse.emf.edit.domain.EditingDomain; import org.eclipse.emf.edit.provider.IItemPropertySource; @@ -79,7 +81,7 @@ protected void createButtonsForButtonBar(Composite parent) { // create OK and Cancel buttons by default String okLabel =3D IDialogConstants.OK_LABEL; - if(modify){ + if (modify) { okLabel =3D "Close"; } createButton(parent, IDialogConstants.OK_ID, okLabel, true); @@ -120,8 +122,17 @@ try { if (!modify && parentModel !=3D null && modelProvider !=3D null && feat= ure !=3D null) { EditingDomain editingDomain =3D modelProvider.getEditingDomain(); - Command command =3D AddCommand.create(editingDomain, parentModel, feat= ure, model); - editingDomain.getCommandStack().execute(command); + Command command =3D null; + + if (feature instanceof EReference) { + if (((EReference) feature).isMany()) { + command =3D AddCommand.create(editingDomain, parentModel, feature, m= odel); + } else { + command =3D SetCommand.create(editingDomain, parentModel, feature, m= odel); + } + } + if (command !=3D null) + editingDomain.getCommandStack().execute(command); } } catch (Exception e) { e.printStackTrace(); Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/PropertyUICreator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/PropertyUICreator.java 2009-09-13 21:39:20 UTC (re= v 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/PropertyUICreator.java 2009-09-14 12:36:19 UTC (re= v 17543) @@ -15,7 +15,11 @@ import java.util.Iterator; import java.util.List; = +import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IResource; +import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.core.runtime.Path; +import org.eclipse.emf.common.util.URI; import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; @@ -149,9 +153,22 @@ public AttributeFieldEditPart createFileSelectionFieldEditor(FormToolkit = toolkit, Composite parent, IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute fe= ature, ISmooksModelProvider formEditor) { + final ISmooksModelProvider provider =3D formEditor; IFieldDialog dialog =3D new IFieldDialog() { public Object open(Shell shell) { FileSelectionWizard wizard =3D new FileSelectionWizard(); + EObject model =3D provider.getSmooksModel(); + if(model !=3D null){ + URI uri =3D model.eResource().getURI(); + if(uri.isPlatformResource()){ + String path =3D uri.toPlatformString(true); + IResource workspaceResource =3D ResourcesPlugin.getWorkspace().getRo= ot().findMember(new Path(path)); + if(workspaceResource instanceof IFile){ + workspaceResource =3D ((IFile)workspaceResource).getParent(); + } + wizard.setInitSelections(new Object[]{workspaceResource}); + } + } wizard.setViewerFilters(getFileDialogViewerFilters()); WizardDialog dialog =3D new WizardDialog(shell, wizard); if (dialog.open() =3D=3D Dialog.OK) { @@ -200,7 +217,7 @@ IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute fe= ature, ISmooksModelProvider formEditor) { if (model instanceof EObject) - return SmooksUIUtils.createJavaTypeSearchFieldEditor(parent, toolkit, p= ropertyDescriptor, (EObject) model); + return SmooksUIUtils.createJavaTypeSearchFieldEditor(parent, toolkit, p= ropertyDescriptor, (EObject) model , formEditor); return null; } = Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/PropertyUICreatorManager.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/PropertyUICreatorManager.java 2009-09-13 21:39:20 = UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/PropertyUICreatorManager.java 2009-09-14 12:36:19 = UTC (rev 17543) @@ -17,6 +17,7 @@ import org.jboss.tools.smooks.configuration.editors.csv.CsvReaderUICreator; import org.jboss.tools.smooks.configuration.editors.csv12.Csv12ReaderBindi= ngPropertyUICreator; import org.jboss.tools.smooks.configuration.editors.csv12.Csv12ReaderMapBi= ndingPropertyUICreator; +import org.jboss.tools.smooks.configuration.editors.csv12.Csv12ReaderUICre= ator; import org.jboss.tools.smooks.configuration.editors.datasource.DataSourceJ= ndiUICreator; import org.jboss.tools.smooks.configuration.editors.datasource.DirectUICre= ator; import org.jboss.tools.smooks.configuration.editors.dbrouting.ExecutorUICr= eator; @@ -59,6 +60,7 @@ import org.jboss.tools.smooks.configuration.editors.json.JsonReaderUICreat= or; import org.jboss.tools.smooks.configuration.editors.json.KeyMapUICreator; import org.jboss.tools.smooks.configuration.editors.json.KeyUICreator; +import org.jboss.tools.smooks.configuration.editors.json12.Json12ReaderUIC= reator; import org.jboss.tools.smooks.configuration.editors.persistence12.DeleterU= ICreator; import org.jboss.tools.smooks.configuration.editors.persistence12.FlusherU= ICreator; import org.jboss.tools.smooks.configuration.editors.persistence12.Inserter= UICreator; @@ -92,6 +94,7 @@ import org.jboss.tools.smooks.model.calc.impl.CounterImpl; import org.jboss.tools.smooks.model.csv.impl.CsvReaderImpl; import org.jboss.tools.smooks.model.csv12.impl.BindingImpl; +import org.jboss.tools.smooks.model.csv12.impl.CSV12ReaderImpl; import org.jboss.tools.smooks.model.csv12.impl.MapBindingImpl; import org.jboss.tools.smooks.model.datasource.impl.DataSourceJndiImpl; import org.jboss.tools.smooks.model.datasource.impl.DirectImpl; @@ -123,6 +126,7 @@ import org.jboss.tools.smooks.model.json.impl.JsonReaderImpl; import org.jboss.tools.smooks.model.json.impl.KeyImpl; import org.jboss.tools.smooks.model.json.impl.KeyMapImpl; +import org.jboss.tools.smooks.model.json12.impl.Json12ReaderImpl; import org.jboss.tools.smooks.model.medi.impl.ComponentImpl; import org.jboss.tools.smooks.model.medi.impl.DelimitersImpl; import org.jboss.tools.smooks.model.medi.impl.DescriptionImpl; @@ -249,6 +253,9 @@ map.put(KeyImpl.class, new KeyUICreator()); map.put(KeyMapImpl.class, new KeyMapUICreator()); map.put(JsonReaderImpl.class, new JsonReaderUICreator()); + = + // for JSON 1.2 + map.put(Json12ReaderImpl.class, new Json12ReaderUICreator()); = // for CSV map.put(CsvReaderImpl.class, new CsvReaderUICreator()); @@ -316,6 +323,7 @@ // for CSV Reader v1.2 map.put(BindingImpl.class, new Csv12ReaderBindingPropertyUICreator()); map.put(MapBindingImpl.class, new Csv12ReaderMapBindingPropertyUICreator= ()); + map.put(CSV12ReaderImpl.class, new Csv12ReaderUICreator()); = // for EDI Reader v1.2 map.put(EDI12ReaderImpl.class, new EDIReader12UICreator()); Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/SelectorCreationDialog.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/SelectorCreationDialog.java 2009-09-13 21:39:20 UT= C (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/SelectorCreationDialog.java 2009-09-14 12:36:19 UT= C (rev 17543) @@ -42,7 +42,6 @@ import org.eclipse.ui.forms.events.IHyperlinkListener; import org.eclipse.ui.forms.widgets.FormToolkit; import org.eclipse.ui.forms.widgets.Hyperlink; -import org.jboss.tools.smooks.configuration.SmooksConfigurationActivator; import org.jboss.tools.smooks.configuration.editors.csv.CSVDataParser; import org.jboss.tools.smooks.configuration.editors.edi.EDIDataParser; import org.jboss.tools.smooks.configuration.editors.javabean.JavaBeanModel; @@ -269,7 +268,7 @@ t.printStackTrace(); } } - if (SmooksModelUtils.INPUT_TYPE_CSV_1_1.equals(type) + if (SmooksModelUtils.INPUT_TYPE_CSV.equals(type) || SmooksModelUtils.INPUT_TYPE_CSV_1_2.equals(type)) { CSVDataParser parser =3D new CSVDataParser(); try { @@ -351,7 +350,7 @@ } } } catch (Exception e) { - SmooksConfigurationActivator.getDefault().log(e); +// SmooksConfigurationActivator.getDefault().log(e); } } return list; Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/SmooksConfigurationFormPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/SmooksConfigurationFormPage.java 2009-09-13 21:39:= 20 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/SmooksConfigurationFormPage.java 2009-09-14 12:36:= 19 UTC (rev 17543) @@ -44,7 +44,6 @@ = public SmooksConfigurationFormPage(FormEditor editor, String id, String t= itle) { super(editor, id, title); - ((SmooksMultiFormEditor) editor).getSmooksGraphicsExt().addSmooksGraphCh= angeListener(this); } = public SmooksConfigurationFormPage(String id, String title) { Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/SmooksConfigurationOverviewPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/SmooksConfigurationOverviewPage.java 2009-09-13 21= :39:20 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/SmooksConfigurationOverviewPage.java 2009-09-14 12= :36:19 UTC (rev 17543) @@ -49,6 +49,7 @@ import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Text; +import org.eclipse.ui.forms.IFormColors; import org.eclipse.ui.forms.IManagedForm; import org.eclipse.ui.forms.editor.FormEditor; import org.eclipse.ui.forms.editor.FormPage; @@ -57,6 +58,7 @@ import org.eclipse.ui.forms.widgets.FormText; import org.eclipse.ui.forms.widgets.FormToolkit; import org.eclipse.ui.forms.widgets.ScrolledForm; +import org.eclipse.ui.forms.widgets.ScrolledPageBook; import org.eclipse.ui.forms.widgets.Section; import org.jboss.tools.smooks.configuration.SmooksConfigurationActivator; import org.jboss.tools.smooks.configuration.SmooksConstants; @@ -114,8 +116,6 @@ public SmooksConfigurationOverviewPage(FormEditor editor, String id, Stri= ng title, ISmooksModelProvider provider) { super(editor, id, title); this.smooksModelProvider =3D provider; - ((SmooksMultiFormEditor) editor).getSmooksGraphicsExt().addSmooksGraphCh= angeListener(this); - } = public SmooksConfigurationOverviewPage(String id, String title, ISmooksMo= delProvider provider) { @@ -133,19 +133,27 @@ gl.marginHeight =3D 0; gl.marginWidth =3D 0; form.getBody().setLayout(gl); - Composite mainComposite =3D toolkit.createComposite(form.getBody()); = + ScrolledPageBook pageBook =3D new ScrolledPageBook(form.getBody()); + pageBook.setBackground(toolkit.getColors().getBackground()); + Composite mainComposite =3D pageBook.createPage(pageBook); + pageBook.showPage(pageBook); + + // Composite mainComposite =3D toolkit.createComposite(form.getBody()); + GridData gd =3D new GridData(GridData.FILL_BOTH); - mainComposite.setLayoutData(gd); + pageBook.setLayoutData(gd); = GridLayout mgl =3D new GridLayout(); mgl.numColumns =3D 2; mgl.marginHeight =3D 13; + mgl.horizontalSpacing =3D 20; mainComposite.setLayout(mgl); = settingSection =3D toolkit.createSection(mainComposite, Section.DESCRIPT= ION | Section.TITLE_BAR); settingSection.setLayout(new FillLayout()); - settingSection.setText("Smooks config"); + settingSection.setText("Smooks configuration"); + settingSection.setDescription("Set the description for this Smooks confi= guration file."); Composite settingComposite =3D toolkit.createComposite(settingSection); settingSection.setClient(settingComposite); gd =3D new GridData(); @@ -155,7 +163,7 @@ GridLayout sgl =3D new GridLayout(); settingComposite.setLayout(sgl); sgl.numColumns =3D 2; - sgl.verticalSpacing =3D 12; + // sgl.verticalSpacing =3D 8; = createSettingSection(settingComposite, toolkit); = @@ -163,6 +171,7 @@ = globalParamSection =3D toolkit.createSection(mainComposite, Section.DESC= RIPTION | Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED); + globalParamSection.setDescription("Define the global parameters for the = Smooks configuration file"); globalParamSection.setText("Global Paramters"); globalParamSection.setLayout(new FillLayout()); Composite globalParamComposite =3D toolkit.createComposite(globalParamSe= ction); @@ -181,7 +190,8 @@ generalSettingSection =3D toolkit.createSection(mainComposite, Section.D= ESCRIPTION | Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED); generalSettingSection.setLayout(new FillLayout()); - generalSettingSection.setText("Default Setting"); + generalSettingSection.setText("Smooks Default Setting"); + generalSettingSection.setDescription("Define the Smooks configuration fi= le default setting"); defaultSettingComposite =3D toolkit.createComposite(generalSettingSectio= n); generalSettingSection.setClient(defaultSettingComposite); gd =3D new GridData(); @@ -198,6 +208,7 @@ conditionSection =3D toolkit.createSection(mainComposite, Section.DESCRI= PTION | Section.TITLE_BAR | Section.TWISTIE); conditionSection.setText("Conditions"); + conditionSection.setDescription("Define the conditions"); conditionSection.setLayout(new FillLayout()); Composite conditionComposite =3D toolkit.createComposite(conditionSectio= n); conditionSection.setClient(conditionComposite); @@ -214,6 +225,7 @@ = profilesSection =3D toolkit.createSection(mainComposite, Section.DESCRIP= TION | Section.TITLE_BAR | Section.TWISTIE); + profilesSection.setDescription("Define the profiles"); profilesSection.setText("Profiles"); profilesSection.setLayout(new FillLayout()); Composite profilesComposite =3D toolkit.createComposite(profilesSection); @@ -232,12 +244,14 @@ } = private void createSettingSection(Composite settingComposite, FormToolkit= toolkit) { - toolkit.createLabel(settingComposite, "Smooks Platform Version : "); + toolkit.createLabel(settingComposite, "Smooks Platform Version : ").setF= oreground( + toolkit.getColors().getColor(IFormColors.TITLE)); int type =3D SWT.BORDER; if (SmooksUIUtils.isLinuxOS()) { type =3D SWT.BORDER; } final Combo combo =3D new Combo(settingComposite, type | SWT.READ_ONLY); + combo.setEnabled(false); GridData gd =3D new GridData(GridData.FILL_HORIZONTAL); combo.setLayoutData(gd); for (int i =3D 0; i < SmooksConstants.SMOOKS_VERSIONS.length; i++) { @@ -258,7 +272,7 @@ } }); = - toolkit.createLabel(settingComposite, "Name : "); + toolkit.createLabel(settingComposite, "Name : ").setForeground(toolkit.g= etColors().getColor(IFormColors.TITLE)); final Text nameText =3D toolkit.createText(settingComposite, "", SWT.NON= E); nameText.setLayoutData(gd); String name =3D smooksModelProvider.getSmooksGraphicsExt().getName(); @@ -275,7 +289,8 @@ = toolkit.paintBordersFor(settingComposite); = - toolkit.createLabel(settingComposite, "Author : "); + toolkit.createLabel(settingComposite, "Author : ").setForeground( + toolkit.getColors().getColor(IFormColors.TITLE)); final Text authorText =3D toolkit.createText(settingComposite, "", SWT.N= ONE); authorText.setLayoutData(gd); = @@ -291,6 +306,8 @@ } }); = + toolkit.createLabel(settingComposite, ""); + toolkit.paintBordersFor(settingComposite); } = @@ -1195,32 +1212,21 @@ } } = - private void createSmooksEditorNavigator(Composite mainComposite, FormToo= lkit toolkit) { - Composite mainNavigatorComposite =3D toolkit.createComposite(mainComposi= te); - GridData gd =3D new GridData(GridData.FILL_BOTH); - gd.verticalSpan =3D 5; - mainNavigatorComposite.setLayoutData(gd); - - GridLayout gl =3D new GridLayout(); - gl.numColumns =3D 2; - gl.marginWidth =3D 0; - gl.marginHeight =3D 0; - mainNavigatorComposite.setLayout(gl); - - Section navigator =3D toolkit.createSection(mainNavigatorComposite, Sect= ion.DESCRIPTION | Section.TITLE_BAR); - navigator.setText("Smooks Editor Navigator"); + private void createNavigatorSection(Composite mainNavigatorComposite, For= mToolkit toolkit, String title, + String navigatorFilePath) { + Section navigator =3D toolkit.createSection(mainNavigatorComposite, Sect= ion.TITLE_BAR); + navigator.setText(title); navigator.setLayout(new FillLayout()); Composite navigatorComposite =3D toolkit.createComposite(navigator); navigator.setClient(navigatorComposite); = - gd =3D new GridData(GridData.FILL_HORIZONTAL); + GridData gd =3D new GridData(GridData.FILL_HORIZONTAL); gd.verticalAlignment =3D GridData.BEGINNING; navigator.setLayoutData(gd); = FormText formText =3D toolkit.createFormText(navigatorComposite, true); StringBuffer buf =3D new StringBuffer(); - InputStream inputStream =3D this.getClass().getResourceAsStream( - "/org/jboss/tools/smooks/configuration/navigator/DefaultSetting.htm"); + InputStream inputStream =3D this.getClass().getResourceAsStream(navigato= rFilePath); BufferedReader reader =3D null; if (inputStream !=3D null) { try { @@ -1265,8 +1271,28 @@ navigatorComposite.setLayout(new GridLayout()); gd =3D new GridData(GridData.FILL_BOTH); formText.setLayoutData(gd); + + toolkit.createLabel(navigatorComposite, ""); } = + private void createSmooksEditorNavigator(Composite mainComposite, FormToo= lkit toolkit) { + Composite mainNavigatorComposite =3D toolkit.createComposite(mainComposi= te); + GridData gd =3D new GridData(GridData.FILL_BOTH); + gd.verticalSpan =3D 5; + mainNavigatorComposite.setLayoutData(gd); + + GridLayout gl =3D new GridLayout(); + // gl.numColumns =3D 2; + gl.marginWidth =3D 0; + gl.marginHeight =3D 0; + mainNavigatorComposite.setLayout(gl); + + createNavigatorSection(mainNavigatorComposite, toolkit, "Configuring Smo= oks Input", + "/org/jboss/tools/smooks/configuration/navigator/DefaultSetting.htm"); + createNavigatorSection(mainNavigatorComposite, toolkit, "Configuring Mes= sage Filter(s)", + "/org/jboss/tools/smooks/configuration/navigator/MessageFilterNavigato= r.htm"); + } + protected void activeNavigatorLink(String href) { if (href =3D=3D null) return; @@ -1323,13 +1349,15 @@ private void createDefaultSection(Composite parent, FormToolkit toolkit) { ModelPanelCreator defaultSettingPanelCreator =3D getDefaultSettingPanelC= reator(); EObject model =3D getSmooksResourceList(); - AdapterFactoryEditingDomain editingDomain =3D (AdapterFactoryEditingDoma= in) smooksModelProvider - .getEditingDomain(); - IItemPropertySource itemPropertySource =3D (IItemPropertySource) editing= Domain.getAdapterFactory().adapt(model, - IItemPropertySource.class); if (model !=3D null) { - defaultSettingPanelCreator.createModelPanel(model, toolkit, parent, ite= mPropertySource, - smooksModelProvider, getEditor()); + AdapterFactoryEditingDomain editingDomain =3D (AdapterFactoryEditingDom= ain) smooksModelProvider + .getEditingDomain(); + IItemPropertySource itemPropertySource =3D (IItemPropertySource) editin= gDomain.getAdapterFactory().adapt( + model, IItemPropertySource.class); + if (model !=3D null) { + defaultSettingPanelCreator.createModelPanel(model, toolkit, parent, it= emPropertySource, + smooksModelProvider, getEditor()); + } } = } Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/SmooksConfigurationReaderPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/SmooksConfigurationReaderPage.java 2009-09-13 21:3= 9:20 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/SmooksConfigurationReaderPage.java 2009-09-14 12:3= 6:19 UTC (rev 17543) @@ -51,7 +51,7 @@ public class SmooksConfigurationReaderPage extends SmooksConfigurationForm= Page { = private CheckboxTableViewer inputDataViewer; - = + boolean lockCheck =3D false; = public SmooksConfigurationReaderPage(FormEditor editor, String id, String= title) { @@ -169,7 +169,8 @@ inputDataViewer.addCheckStateListener(new ICheckStateListener() { = public void checkStateChanged(CheckStateChangedEvent event) { - if(lockCheck) return; + if (lockCheck) + return; boolean checked =3D event.getChecked(); InputType inputType =3D (InputType) event.getElement(); List params =3D inputType.getParam(); @@ -218,7 +219,7 @@ } } } - = + EObject ext =3D inputType; while (ext !=3D null && !(ext instanceof SmooksGraphicsExtType)) { ext =3D ext.eContainer(); @@ -227,11 +228,12 @@ if (ext !=3D null && ext instanceof SmooksGraphicsExtType) { List listeners =3D ((SmooksGraphicsExtTyp= e) ext).getChangeListeners(); for (Iterator iterator =3D listeners.iterator(); iterator.hasNext(= );) { - ISmooksGraphChangeListener smooksGraphChangeListener =3D (ISmooksGra= phChangeListener) iterator.next(); + ISmooksGraphChangeListener smooksGraphChangeListener =3D (ISmooksGra= phChangeListener) iterator + .next(); smooksGraphChangeListener.inputTypeChanged((SmooksGraphicsExtType) e= xt); } } - = + } }); TableColumn header =3D new TableColumn(inputDataViewer.getTable(), SWT.N= ONE); @@ -306,7 +308,8 @@ } = public void inputTypeChanged(SmooksGraphicsExtType extType) { - inputDataViewer.refresh(); + if (inputDataViewer !=3D null) + inputDataViewer.refresh(); } = } Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/SmooksMultiFormEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/SmooksMultiFormEditor.java 2009-09-13 21:39:20 UTC= (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/SmooksMultiFormEditor.java 2009-09-14 12:36:19 UTC= (rev 17543) @@ -24,6 +24,8 @@ import org.eclipse.ui.PartInitException; import org.jboss.tools.smooks.editor.AbstractSmooksFormEditor; import org.jboss.tools.smooks.graphical.editors.SmooksGraphicalEditorPart; +import org.jboss.tools.smooks.model.graphics.ext.ISmooksGraphChangeListene= r; +import org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType; = /** * = @@ -39,8 +41,10 @@ = private SmooksConfigurationOverviewPage overViewPage; = - private SmooksConfigurationFormPage readerPage; + private SmooksConfigurationFormPage readerPage1; = + private SmooksReaderFormPage readerPage; + = private ISelection selection; = private Collection selectionChangeListener =3D= new ArrayList(); @@ -55,6 +59,7 @@ overViewPage =3D createSmooksConfigurationOverviewPage(); addValidateListener(overViewPage); addSourceSynchronizeListener(overViewPage); + addSmooksGraphExtetionListener(overViewPage); try { int index =3D this.addPage(overViewPage); setPageText(index, "Overview"); @@ -62,12 +67,23 @@ e.printStackTrace(); } = - readerPage =3D createSmooksConfigurationReaderPage(); +// readerPage1 =3D createSmooksConfigurationReaderPage(); +// addValidateListener(readerPage1); +// addSourceSynchronizeListener(readerPage1); +// try { +// int index =3D this.addPage(readerPage1); +// setPageText(index, "Reader"); +// } catch (PartInitException e) { +// e.printStackTrace(); +// } + = + readerPage =3D new SmooksReaderFormPage(this, "reader_page" , "Input"); addValidateListener(readerPage); addSourceSynchronizeListener(readerPage); + addSmooksGraphExtetionListener(readerPage); try { int index =3D this.addPage(readerPage); - setPageText(index, "Reader"); + setPageText(index, "Input"); } catch (PartInitException e) { e.printStackTrace(); } @@ -75,6 +91,7 @@ configurationPage =3D createSmooksConfigurationFormPage(); addValidateListener(configurationPage); addSourceSynchronizeListener(configurationPage); + addSmooksGraphExtetionListener(configurationPage); try { int index =3D this.addPage(configurationPage); setPageText(index, "Message Filter"); @@ -82,20 +99,21 @@ e.printStackTrace(); } = - graphicalPage =3D new SmooksGraphicalEditorPart(this); - addSourceSynchronizeListener(graphicalPage); - try { - int index =3D this.addPage(graphicalPage, getEditorInput()); - setPageText(index, "Graph"); - } catch (PartInitException e) { - e.printStackTrace(); - } +// graphicalPage =3D new SmooksGraphicalEditorPart(this); +// addSourceSynchronizeListener(graphicalPage); +// addSmooksGraphExtetionListener(graphicalPage); +// try { +// int index =3D this.addPage(graphicalPage, getEditorInput()); +// setPageText(index, "Graph"); +// } catch (PartInitException e) { +// e.printStackTrace(); +// } = super.addPages(); } = private SmooksConfigurationReaderPage createSmooksConfigurationReaderPage= () { - return new SmooksConfigurationReaderPage(this, "reader_page", "Reader Pa= ge"); + return new SmooksConfigurationReaderPage(this, "reader_page1", "Reader P= age"); } = private SmooksConfigurationOverviewPage createSmooksConfigurationOverview= Page() { @@ -179,4 +197,18 @@ l.selectionChanged(new SelectionChangedEvent(this, getSelection())); } } + = + public void addSmooksGraphExtetionListener(ISmooksGraphChangeListener lis= tener){ + SmooksGraphicsExtType ex =3D getSmooksGraphicsExt(); + if(ex !=3D null){ + ex.addSmooksGraphChangeListener(listener); + } + } + = + public void removeSmooksGraphExtetionListener(ISmooksGraphChangeListener = listener){ + SmooksGraphicsExtType ex =3D getSmooksGraphicsExt(); + if(ex !=3D null){ + ex.removeSmooksGraphChangeListener(listener); + } + } } Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/s= mooks/configuration/editors/SmooksReaderFormPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/SmooksReaderFormPage.java = (rev 0) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/SmooksReaderFormPage.java 2009-09-14 12:36:19 UTC = (rev 17543) @@ -0,0 +1,1052 @@ +/*************************************************************************= ****** + * Copyright (c) 2008 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.smooks.configuration.editors; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Properties; + +import org.eclipse.draw2d.ColorConstants; +import org.eclipse.emf.common.command.Command; +import org.eclipse.emf.common.command.CompoundCommand; +import org.eclipse.emf.common.util.Diagnostic; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.ecore.util.EcoreUtil; +import org.eclipse.emf.ecore.util.FeatureMapUtil; +import org.eclipse.emf.edit.command.AddCommand; +import org.eclipse.emf.edit.command.CommandParameter; +import org.eclipse.emf.edit.command.RemoveCommand; +import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.jface.dialogs.Dialog; +import org.eclipse.jface.viewers.CheckStateChangedEvent; +import org.eclipse.jface.viewers.CheckboxTableViewer; +import org.eclipse.jface.viewers.DoubleClickEvent; +import org.eclipse.jface.viewers.ICheckStateListener; +import org.eclipse.jface.viewers.ICheckStateProvider; +import org.eclipse.jface.viewers.IDoubleClickListener; +import org.eclipse.jface.viewers.ISelectionChangedListener; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.viewers.ITableColorProvider; +import org.eclipse.jface.viewers.SelectionChangedEvent; +import org.eclipse.jface.viewers.TreeViewer; +import org.eclipse.swt.SWT; +import org.eclipse.swt.events.SelectionAdapter; +import org.eclipse.swt.events.SelectionEvent; +import org.eclipse.swt.events.SelectionListener; +import org.eclipse.swt.graphics.Color; +import org.eclipse.swt.layout.FillLayout; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Button; +import org.eclipse.swt.widgets.Combo; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Control; +import org.eclipse.swt.widgets.TableColumn; +import org.eclipse.ui.forms.IManagedForm; +import org.eclipse.ui.forms.editor.FormEditor; +import org.eclipse.ui.forms.editor.FormPage; +import org.eclipse.ui.forms.events.HyperlinkEvent; +import org.eclipse.ui.forms.events.IHyperlinkListener; +import org.eclipse.ui.forms.widgets.FormToolkit; +import org.eclipse.ui.forms.widgets.Hyperlink; +import org.eclipse.ui.forms.widgets.ScrolledForm; +import org.eclipse.ui.forms.widgets.ScrolledPageBook; +import org.eclipse.ui.forms.widgets.Section; +import org.jboss.tools.smooks.configuration.editors.uitls.SmooksUIUtils; +import org.jboss.tools.smooks.configuration.editors.wizard.StructuredDataS= electionWizard; +import org.jboss.tools.smooks.configuration.validate.ISmooksModelValidateL= istener; +import org.jboss.tools.smooks.editor.ISmooksModelProvider; +import org.jboss.tools.smooks.editor.ISourceSynchronizeListener; +import org.jboss.tools.smooks.model.csv.CsvPackage; +import org.jboss.tools.smooks.model.csv.CsvReader; +import org.jboss.tools.smooks.model.csv12.CSV12Reader; +import org.jboss.tools.smooks.model.csv12.Csv12Package; +import org.jboss.tools.smooks.model.edi.EDIReader; +import org.jboss.tools.smooks.model.edi.EdiPackage; +import org.jboss.tools.smooks.model.edi12.EDI12Reader; +import org.jboss.tools.smooks.model.edi12.Edi12Package; +import org.jboss.tools.smooks.model.graphics.ext.GraphFactory; +import org.jboss.tools.smooks.model.graphics.ext.GraphPackage; +import org.jboss.tools.smooks.model.graphics.ext.ISmooksGraphChangeListene= r; +import org.jboss.tools.smooks.model.graphics.ext.InputType; +import org.jboss.tools.smooks.model.graphics.ext.ParamType; +import org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType; +import org.jboss.tools.smooks.model.json.JsonPackage; +import org.jboss.tools.smooks.model.json.JsonReader; +import org.jboss.tools.smooks.model.json12.Json12Package; +import org.jboss.tools.smooks.model.json12.Json12Reader; +import org.jboss.tools.smooks.model.smooks.AbstractReader; +import org.jboss.tools.smooks.model.smooks.DocumentRoot; +import org.jboss.tools.smooks.model.smooks.ReaderType; +import org.jboss.tools.smooks.model.smooks.SmooksPackage; +import org.jboss.tools.smooks.model.smooks.SmooksResourceListType; +import org.jboss.tools.smooks10.model.smooks.util.SmooksModelUtils; + +/** + * @author Dart + * = + */ +public class SmooksReaderFormPage extends FormPage implements ISmooksModel= ValidateListener, ISmooksGraphChangeListener, + ISourceSynchronizeListener { + + private CheckboxTableViewer inputDataViewer; + private TreeViewer inputModelViewer; + private Combo readerCombo; + + private List readerTypeList =3D new ArrayList(); + private Composite readerConfigComposite; + private ModelPanelCreator modelPanelCreator; + protected boolean lockCheck =3D false; + + public SmooksReaderFormPage(FormEditor editor, String id, String title) { + super(editor, id, title); + ((SmooksMultiFormEditor) editor).getSmooksGraphicsExt().addSmooksGraphCh= angeListener(this); + } + + public SmooksReaderFormPage(String id, String title) { + super(id, title); + } + + @Override + protected void createFormContent(IManagedForm managedForm) { + final ScrolledForm form =3D managedForm.getForm(); + FormToolkit toolkit =3D managedForm.getToolkit(); + toolkit.decorateFormHeading(form.getForm()); + form.setText("Input"); + // // create master details UI + // createMasterDetailBlock(managedForm); + Composite leftComposite =3D toolkit.createComposite(form.getBody()); + GridData gd =3D new GridData(GridData.FILL_BOTH); + gd.widthHint =3D 700; + leftComposite.setLayoutData(gd); + + Composite rightComposite =3D toolkit.createComposite(form.getBody()); + gd =3D new GridData(GridData.FILL_BOTH); + rightComposite.setLayoutData(gd); + + GridLayout lgl =3D new GridLayout(); + lgl.marginWidth =3D 0; + lgl.marginHeight =3D 0; + leftComposite.setLayout(lgl); + + GridLayout rgl =3D new GridLayout(); + rgl.marginWidth =3D 0; + rgl.marginHeight =3D 0; + rightComposite.setLayout(rgl); + + createReaderSection(toolkit, leftComposite); + createInputDataSection(toolkit, rightComposite); + createReaderConfigSection(toolkit, leftComposite); + createInputModelViewerSection(toolkit, rightComposite); + + handleReaderCombo(readerCombo); + + GridLayout gridLayout =3D new GridLayout(); + gridLayout.marginHeight =3D 13; + gridLayout.numColumns =3D 2; + gridLayout.horizontalSpacing =3D 20; + gridLayout.makeColumnsEqualWidth =3D true; + form.getBody().setLayout(gridLayout); + } + + private void createInputModelViewerSection(FormToolkit toolkit, Composite= parent) { + Section section =3D toolkit.createSection(parent, Section.TITLE_BAR | Se= ction.DESCRIPTION); + GridData gd =3D new GridData(GridData.FILL_BOTH); + // gd.verticalAlignment =3D GridData.BEGINNING; + section.setLayoutData(gd); + section.setText("Input Model View"); + section.setDescription("View the XML structure model of the input data"); + FillLayout flayout =3D new FillLayout(); + section.setLayout(flayout); + + Composite mainContainer =3D toolkit.createComposite(section); + GridLayout gl =3D new GridLayout(); + mainContainer.setLayout(gl); + section.setClient(mainContainer); + + Hyperlink refreshLink =3D toolkit.createHyperlink(mainContainer, "Refres= h Input Model Viewer", SWT.NONE); + refreshLink.addHyperlinkListener(new IHyperlinkListener() { + + public void linkExited(HyperlinkEvent e) { + // TODO Auto-generated method stub + + } + + public void linkEntered(HyperlinkEvent e) { + // TODO Auto-generated method stub + + } + + public void linkActivated(HyperlinkEvent e) { + refreshInputModelView(); + } + }); + + Composite viewerContainer =3D toolkit.createComposite(mainContainer); + gd =3D new GridData(GridData.FILL_BOTH); + viewerContainer.setLayoutData(gd); + + FillLayout fillLayout =3D new FillLayout(); + fillLayout.marginHeight =3D 1; + fillLayout.marginWidth =3D 1; + viewerContainer.setBackground(GraphicsConstants.BORDER_CORLOER); + viewerContainer.setLayout(fillLayout); + inputModelViewer =3D new TreeViewer(viewerContainer, SWT.NONE); + inputModelViewer.setContentProvider(new CompoundStructuredDataContentPro= vider()); + inputModelViewer.setLabelProvider(new CompoundStructuredDataLabelProvide= r()); + List inputList =3D generateInputData(); + inputModelViewer.setInput(inputList); + inputModelViewer.addDoubleClickListener(new IDoubleClickListener() { + public void doubleClick(DoubleClickEvent event) { + } + }); + inputModelViewer.addSelectionChangedListener(new ISelectionChangedListen= er() { + public void selectionChanged(SelectionChangedEvent event) { + // currentSelection =3D ((IStructuredSelection) + // event.getSelection()).getFirstElement(); + } + }); + SmooksUIUtils.expandSelectorViewer(inputList, inputModelViewer); + + } + + protected List generateInputData() { + Object obj =3D ((SmooksMultiFormEditor) getEditor()).getSmooksModel(); + SmooksResourceListType resourceList =3D null; + if (obj instanceof DocumentRoot) { + resourceList =3D ((DocumentRoot) obj).getSmooksResourceList(); + } + return SelectorCreationDialog.generateInputData(getSmooksGraphicsExtType= (), resourceList); + } + + private void createReaderConfigSection(FormToolkit toolkit, Composite par= ent) { + Section section =3D toolkit.createSection(parent, Section.TITLE_BAR); + GridData gd =3D new GridData(GridData.FILL_BOTH); + section.setLayoutData(gd); + section.setText("Input Configuration"); + section.setDescription("Configurate the input data"); + FillLayout flayout =3D new FillLayout(); + section.setLayout(flayout); + + ScrolledPageBook pageBook =3D new ScrolledPageBook(section); + pageBook.setBackground(toolkit.getColors().getBackground()); + section.setClient(pageBook); + + readerConfigComposite =3D pageBook.createPage(pageBook); + pageBook.showPage(pageBook); + + GridLayout gl =3D new GridLayout(); + gl.numColumns =3D 2; + readerConfigComposite.setLayout(gl); + + initReaderConfigSection(); + } + + private void createReaderSection(FormToolkit toolkit, Composite parent) { + Section section =3D toolkit.createSection(parent, Section.TITLE_BAR | Se= ction.DESCRIPTION); + GridData gd =3D new GridData(GridData.FILL_HORIZONTAL); + gd.verticalAlignment =3D GridData.BEGINNING; + section.setLayoutData(gd); + section.setText("Input Type"); + section.setDescription("Select the input type"); + FillLayout flayout =3D new FillLayout(); + section.setLayout(flayout); + + Composite mainComposite =3D toolkit.createComposite(section); + section.setClient(mainComposite); + GridLayout gl =3D new GridLayout(); + gl.numColumns =3D 2; + mainComposite.setLayout(gl); + + toolkit.createLabel(mainComposite, "Input Type : "); + + readerCombo =3D new Combo(mainComposite, SWT.NONE | SWT.READ_ONLY); + gd =3D new GridData(GridData.FILL_HORIZONTAL); + readerCombo.setLayoutData(gd); + + toolkit.createLabel(mainComposite, " "); + + bindingReaderCombo(); + + initReaderCombo(); + + gd =3D new GridData(GridData.FILL_HORIZONTAL); + readerCombo.setLayoutData(gd); + + toolkit.paintBordersFor(mainComposite); + } + + private void initReaderConfigSection() { + Object reader =3D getCurrentReaderModel(); + String type =3D getSmooksGraphicsExtType().getInputType(); + if (reader instanceof EObject && type !=3D null) { + SmooksResourceListType list =3D getSmooksConfigResourceList(); + createReaderPanel((EObject) list.getAbstractReader().get(0)); + } else { + disposeCompositeControls(readerConfigComposite, null); + } + } + + private void selectCorrectReaderItem(Object reader) { + for (int i =3D 0; i < readerTypeList.size(); i++) { + Object r =3D readerTypeList.get(i); + if (r instanceof EObject) { + if (r.getClass() =3D=3D reader.getClass()) { + readerCombo.select(i); + break; + } + } + } + } + + private String getCurrentReaderType() { + Object reader =3D getCurrentReaderModel(); + if (reader instanceof XMLReader) { + return SmooksModelUtils.INPUT_TYPE_XML; + } + if (reader instanceof JavaReader) { + return SmooksModelUtils.INPUT_TYPE_JAVA; + } + if (reader instanceof XSDReader) { + return SmooksModelUtils.INPUT_TYPE_XSD; + } + if (reader instanceof EObject) { + Object obj =3D ((EObject) reader); + + if (obj instanceof CsvReader || obj instanceof CSV12Reader) { + return SmooksModelUtils.INPUT_TYPE_CSV; + } + if (obj instanceof EDIReader || obj instanceof EDI12Reader) { + return SmooksModelUtils.INPUT_TYPE_EDI_1_1; + } + if (obj instanceof JsonReader || obj instanceof Json12Reader) { + return SmooksModelUtils.INPUT_TYPE_JSON_1_1; + } + if (obj instanceof ReaderType) { + return SmooksModelUtils.INPUT_TYPE_CUSTOME; + } + } + return null; + } + + private void initReaderCombo() { + if (readerCombo =3D=3D null) + return; + SmooksResourceListType rlist =3D getSmooksConfigResourceList(); + if (rlist =3D=3D null) { + readerCombo.select(-1); + return; + } + SmooksGraphicsExtType ext =3D getSmooksGraphicsExtType(); + String inputType =3D ext.getInputType(); + + if (inputType =3D=3D null) { + // for the first time to open the file. + if (rlist.getAbstractReader().isEmpty()) { + readerCombo.select(0); + return; + } else { + } + } + if (SmooksModelUtils.INPUT_TYPE_XML.equals(inputType)) { + readerCombo.select(1); + } + if (SmooksModelUtils.INPUT_TYPE_JAVA.equals(inputType)) { + readerCombo.select(2); + } + if (SmooksModelUtils.INPUT_TYPE_XSD.equals(inputType)) { + readerCombo.select(3); + } + + if (SmooksModelUtils.INPUT_TYPE_CSV.equals(inputType)) { + if (!rlist.getAbstractReader().isEmpty()) { + AbstractReader reader =3D rlist.getAbstractReader().get(0); + if (CsvReader.class.isInstance(reader) || CSV12Reader.class.isInstance= (reader)) { + selectCorrectReaderItem(reader); + } + } + } + if (SmooksModelUtils.INPUT_TYPE_EDI_1_1.equals(inputType)) { + if (!rlist.getAbstractReader().isEmpty()) { + AbstractReader reader =3D rlist.getAbstractReader().get(0); + if (EDIReader.class.isInstance(reader) || EDI12Reader.class.isInstance= (reader)) { + selectCorrectReaderItem(reader); + } + } + } + if (SmooksModelUtils.INPUT_TYPE_JSON_1_1.equals(inputType)) { + if (!rlist.getAbstractReader().isEmpty()) { + AbstractReader reader =3D rlist.getAbstractReader().get(0); + if (JsonReader.class.isInstance(reader) || Json12Reader.class.isInstan= ce(reader)) { + selectCorrectReaderItem(reader); + } + } + } + if (SmooksModelUtils.INPUT_TYPE_CUSTOME.equals(inputType)) { + if (!rlist.getAbstractReader().isEmpty()) { + AbstractReader reader =3D rlist.getAbstractReader().get(0); + if (ReaderType.class.isInstance(reader)) { + selectCorrectReaderItem(reader); + } + } + } + return; + } + + private void handleReaderCombo(final Combo combo) { + combo.addSelectionListener(new SelectionListener() { + + public void widgetSelected(SelectionEvent e) { + Object newreader =3D getCurrentReaderModel(); + if (newreader =3D=3D null) + return; + String type =3D getCurrentReaderType(); + if (type =3D=3D null) { + getSmooksGraphicsExtType().eUnset(GraphPackage.Literals.SMOOKS_GRAPHI= CS_EXT_TYPE__INPUT_TYPE); + } else { + getSmooksGraphicsExtType().setInputType(type); + } + readerChanged(newreader); + } + + public void widgetDefaultSelected(SelectionEvent e) { + // TODO Auto-generated method stub + + } + }); + } + + private Object createReaderEntry(Object reader, boolean clone) { + if (clone) { + reader =3D EcoreUtil.copy((EObject) reader); + } + if (reader instanceof CsvReader) { + return FeatureMapUtil.createEntry(CsvPackage.Literals.CSV_DOCUMENT_ROOT= __READER, reader); + } + if (reader instanceof CSV12Reader) { + return FeatureMapUtil.createEntry(Csv12Package.Literals.CSV12_DOCUMENT_= ROOT__READER, reader); + } + if (reader instanceof EDIReader) { + return FeatureMapUtil.createEntry(EdiPackage.Literals.EDI_DOCUMENT_ROOT= __READER, reader); + } + if (reader instanceof EDI12Reader) { + return FeatureMapUtil.createEntry(Edi12Package.Literals.EDI12_DOCUMENT_= ROOT__READER, reader); + } + if (reader instanceof JsonReader) { + return FeatureMapUtil.createEntry(JsonPackage.Literals.JSON_DOCUMENT_RO= OT__READER, reader); + } + if (reader instanceof Json12Reader) { + return FeatureMapUtil.createEntry(Json12Package.Literals.JSON12_DOCUMEN= T_ROOT__READER, reader); + } + if (reader instanceof ReaderType) { + return FeatureMapUtil.createEntry(SmooksPackage.Literals.DOCUMENT_ROOT_= _READER, reader); + } + return null; + } + + private Command createRemoveReaderCommand() { + SmooksResourceListType rlist =3D getSmooksConfigResourceList(); + List readerList =3D rlist.getAbstractReader(); + CompoundCommand compoundCommand =3D new CompoundCommand(); + for (Iterator iterator =3D readerList.iterator(); iterator.hasNext();= ) { + AbstractReader abstractReader =3D (AbstractReader) iterator.next(); + Object readerEntry =3D createReaderEntry(abstractReader, false); + if (readerEntry =3D=3D null) + continue; + Command removeCommand =3D RemoveCommand.create(getEditingDomain(), rlis= t, + SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GRO= UP, readerEntry); + if (removeCommand.canExecute()) { + compoundCommand.append(removeCommand); + } + } + if (compoundCommand.isEmpty()) { + return null; + } + return compoundCommand; + } + + private void readerChanged(Object reader) { + = + CompoundCommand compoundCommand =3D new CompoundCommand(); + Command removeCommand =3D createRemoveReaderCommand(); + if (removeCommand !=3D null && removeCommand.canExecute()) { + compoundCommand.append(removeCommand); + } + if (readerConfigComposite !=3D null) { + disposeCompositeControls(readerConfigComposite, null); + } + boolean hasRun =3D false; + if (reader instanceof EObject) { + Object obj =3D ((EObject) reader); + obj =3D AdapterFactoryEditingDomain.unwrap(obj); + Command command =3D AddCommand.create(getEditingDomain(), getSmooksConf= igResourceList(), + SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GRO= UP, createReaderEntry(obj, + false)); + if (command.canExecute()) { + compoundCommand.append(command); + } + if (!compoundCommand.isEmpty()) { + getEditingDomain().getCommandStack().execute(compoundCommand); + hasRun =3D true; + createReaderPanel((EObject) obj); + } + } + + if (!hasRun) { + if (!compoundCommand.isEmpty()) { + getEditingDomain().getCommandStack().execute(compoundCommand); + } + } + + deactiveAllInputFile(); + + if (inputDataViewer !=3D null) { + inputDataViewer.refresh(); + } + refreshInputModelView(); + } + + private void deactiveAllInputFile() { + SmooksGraphicsExtType ext =3D getSmooksGraphicsExtType(); + List inputList =3D ext.getInput(); + for (Iterator iterator =3D inputList.iterator(); iterator.hasNext();)= { + InputType inputType =3D (InputType) iterator.next(); + setInputDataActiveStatus(false, inputType); + } + } + + private void createReaderPanel(EObject reader) { + disposeCompositeControls(readerConfigComposite, null); + try { + ModelPanelCreator modelPanelCreator =3D getModelPanelCreator(); + IItemPropertySource ps =3D (IItemPropertySource) getEditingDomain().get= AdapterFactory().adapt(reader, + IItemPropertySource.class); + modelPanelCreator.createModelPanel(reader, getManagedForm().getToolkit(= ), readerConfigComposite, ps, + (ISmooksModelProvider) getEditor(), getEditor()); + readerConfigComposite.getParent().layout(); + } catch (Exception e) { + e.printStackTrace(); + } + } + + private ModelPanelCreator getModelPanelCreator() { + if (modelPanelCreator =3D=3D null) { + modelPanelCreator =3D new ModelPanelCreator(); + } + return modelPanelCreator; + } + + private void bindingReaderCombo() { + if (readerCombo =3D=3D null) + return; + + readerCombo.removeAll(); + readerTypeList.clear(); + + readerCombo.add("No Input"); + readerTypeList.add(new NullReader()); + readerCombo.add("XML"); + readerTypeList.add(new XMLReader()); + readerCombo.add("Java"); + readerTypeList.add(new JavaReader()); + readerCombo.add("XSD/WSDL"); + readerTypeList.add(new XSDReader()); + = + SmooksResourceListType resourceList =3D getSmooksConfigResourceList(); + = + if(resourceList =3D=3D null){ + return; + } + + AdapterFactoryEditingDomain editDomain =3D getEditingDomain(); + IEditingDomainItemProvider provider =3D (IEditingDomainItemProvider) edi= tDomain.getAdapterFactory().adapt( + resourceList, IEditingDomainItemProvider.class); + Collection collections =3D provider.getNewChildDescriptors(resourceLi= st, editDomain, null); + + SmooksGraphicsExtType extType =3D getSmooksGraphicsExtType(); + String version =3D extType.getPlatformVersion(); + OnlyReaderViewerFilter filter =3D new OnlyReaderViewerFilter(); + for (Iterator iterator =3D collections.iterator(); iterator.hasNext()= ;) { + Object object =3D (Object) iterator.next(); + if (object instanceof CommandParameter) { + Object value =3D ((CommandParameter) object).getValue(); + + value =3D AdapterFactoryEditingDomain.unwrap(value); + + if (filter.select(null, null, value)) { + if (SmooksUIUtils.isUnSupportElement(version, (EObject) value)) { + continue; + } + + IItemLabelProvider lp =3D (IItemLabelProvider) editDomain.getAdapterF= actory().adapt(value, + IItemLabelProvider.class); + String text =3D lp.getText(value); + readerCombo.add(text); + readerTypeList.add(value); + } + } + } + } + + private void setInputDataActiveStatus(boolean active, InputType inputType= ) { + List params =3D inputType.getParam(); + boolean newOne =3D true; + for (Iterator iterator =3D params.iterator(); iterator.hasNext();) { + ParamType paramType =3D (ParamType) iterator.next(); + if (SmooksModelUtils.PARAM_NAME_ACTIVED.equals(paramType.getName())) { + paramType.setValue(String.valueOf(active)); + newOne =3D false; + break; + } + } + if (newOne) { + ParamType p =3D GraphFactory.eINSTANCE.createParamType(); + p.setName(SmooksModelUtils.PARAM_NAME_ACTIVED); + p.setValue(String.valueOf(active)); + inputType.getParam().add(p); + } + SmooksGraphicsExtType ext =3D getSmooksGraphicsExtType(); + if (ext !=3D null) { + List listeners =3D ((SmooksGraphicsExtType)= ext).getChangeListeners(); + for (Iterator iterator =3D listeners.iterator(); iterator.hasNext();= ) { + ISmooksGraphChangeListener smooksGraphChangeListener =3D (ISmooksGraph= ChangeListener) iterator.next(); + smooksGraphChangeListener.inputTypeChanged((SmooksGraphicsExtType) ext= ); + } + } + } + + protected void createInputDataSection(FormToolkit toolkit, Composite pare= nt) { + Section section =3D toolkit.createSection(parent, Section.TITLE_BAR | Se= ction.DESCRIPTION); + GridData gd =3D new GridData(GridData.FILL_HORIZONTAL); + section.setLayoutData(gd); + section.setText("Input Data"); + section.setDescription("Add a file to be the input data"); + FillLayout flayout =3D new FillLayout(); + section.setLayout(flayout); + + Composite mainComposite =3D toolkit.createComposite(section, SWT.NONE); + GridLayout gl =3D new GridLayout(); + gl.numColumns =3D 2; + mainComposite.setLayout(gl); + section.setClient(mainComposite); + + Composite tableComposite =3D toolkit.createComposite(mainComposite, SWT.= NONE); + FillLayout fillLayout =3D new FillLayout(); + fillLayout.marginHeight =3D 1; + fillLayout.marginWidth =3D 1; + gd =3D new GridData(GridData.FILL_BOTH); + gd.heightHint =3D 200; + tableComposite.setLayoutData(gd); + tableComposite.setBackground(GraphicsConstants.BORDER_CORLOER); + tableComposite.setLayout(fillLayout); + + inputDataViewer =3D CheckboxTableViewer.newCheckList(tableComposite, SWT= .MULTI | SWT.FULL_SELECTION); + // inputDataViewer.set + inputDataViewer.setCheckStateProvider(new ICheckStateProvider() { + + public boolean isGrayed(Object element) { + return isIncorrectInputType((InputType) element); + } + + public boolean isChecked(Object element) { + if (element instanceof InputType) { + List params =3D ((InputType) element).getParam(); + for (Iterator iterator =3D params.iterator(); iterator.hasNext();)= { + ParamType paramType =3D (ParamType) iterator.next(); + if (SmooksModelUtils.PARAM_NAME_ACTIVED.equals(paramType.getName()))= { + String value =3D paramType.getValue(); + if (value =3D=3D null) + return false; + value =3D value.trim(); + return "true".equalsIgnoreCase(value); + } + } + } + return false; + } + }); + inputDataViewer.addCheckStateListener(new ICheckStateListener() { + + public void checkStateChanged(CheckStateChangedEvent event) { + if (lockCheck) + return; + boolean checked =3D event.getChecked(); + InputType inputType =3D (InputType) event.getElement(); + if (isIncorrectInputType(inputType)) { + lockCheck =3D true; + inputDataViewer.setChecked(inputType, false); + lockCheck =3D false; + return; + } + List params =3D inputType.getParam(); + + if (checked) { + boolean newOne =3D true; + for (Iterator iterator =3D params.iterator(); iterator.hasNext();)= { + ParamType paramType =3D (ParamType) iterator.next(); + if (SmooksModelUtils.PARAM_NAME_ACTIVED.equals(paramType.getName()))= { + paramType.setValue(String.valueOf(checked)); + newOne =3D false; + break; + } + } + if (newOne) { + ParamType p =3D GraphFactory.eINSTANCE.createParamType(); + p.setName(SmooksModelUtils.PARAM_NAME_ACTIVED); + p.setValue(String.valueOf(checked)); + inputType.getParam().add(p); + } + + Object[] checkedObjects =3D inputDataViewer.getCheckedElements(); + for (int i =3D 0; i < checkedObjects.length; i++) { + InputType type =3D (InputType) checkedObjects[i]; + if (type =3D=3D event.getElement()) + continue; + List params1 =3D type.getParam(); + for (Iterator iterator =3D params1.iterator(); iterator.hasNext()= ;) { + ParamType paramType =3D (ParamType) iterator.next(); + if (SmooksModelUtils.PARAM_NAME_ACTIVED.equals(paramType.getName())= ) { + paramType.setValue(String.valueOf(!checked)); + break; + } + } + lockCheck =3D true; + inputDataViewer.setChecked(type, false); + lockCheck =3D false; + } + + } else { + for (Iterator iterator =3D params.iterator(); iterator.hasNext();)= { + ParamType paramType =3D (ParamType) iterator.next(); + if (SmooksModelUtils.PARAM_NAME_ACTIVED.equals(paramType.getName()))= { + paramType.setValue(String.valueOf(checked)); + break; + } + } + } + + SmooksGraphicsExtType ext =3D getSmooksGraphicsExtType(); + if (ext !=3D null) { + List listeners =3D ((SmooksGraphicsExtTyp= e) ext).getChangeListeners(); + for (Iterator iterator =3D listeners.iterator(); iterator.hasNext(= );) { + ISmooksGraphChangeListener smooksGraphChangeListener =3D (ISmooksGra= phChangeListener) iterator + .next(); + smooksGraphChangeListener.inputTypeChanged((SmooksGraphicsExtType) e= xt); + } + } + + } + }); + TableColumn header =3D new TableColumn(inputDataViewer.getTable(), SWT.N= ONE); + header.setText("Type"); + header.setWidth(100); + TableColumn pathColumn =3D new TableColumn(inputDataViewer.getTable(), S= WT.NONE); + pathColumn.setText("Path"); + pathColumn.setWidth(300); + + // TableColumn extColumn =3D new TableColumn(inputDataViewer.getTable(), + // SWT.NONE); + // extColumn.setText("Extension Paramers"); + // extColumn.setWidth(400); + inputDataViewer.setContentProvider(new ExtentionInputContentProvider()); + inputDataViewer.setLabelProvider(new InputDataViewerLabelProvider()); + inputDataViewer.getTable().setHeaderVisible(true); + inputDataViewer.getTable().setLinesVisible(true); + SmooksGraphicsExtType extType =3D getSmooksGraphicsExtType(); + if (extType !=3D null) { + inputDataViewer.setInput(extType); + } + Composite buttonComposite =3D toolkit.createComposite(mainComposite, SWT= .NONE); + gd =3D new GridData(GridData.FILL_VERTICAL); + buttonComposite.setLayoutData(gd); + GridLayout l =3D new GridLayout(); + buttonComposite.setLayout(l); + + Button addButton =3D toolkit.createButton(buttonComposite, "Add", SWT.FL= AT); + gd =3D new GridData(GridData.FILL_HORIZONTAL); + addButton.setLayoutData(gd); + addButton.addSelectionListener(new SelectionAdapter() { + + public void widgetSelected(SelectionEvent e) { + showInputDataWizard(); + } + + }); + + Button removeButton =3D toolkit.createButton(buttonComposite, "Delete", = SWT.FLAT); + gd =3D new GridData(GridData.FILL_HORIZONTAL); + removeButton.setLayoutData(gd); + removeButton.addSelectionListener(new SelectionAdapter() { + + public void widgetSelected(SelectionEvent e) { + IStructuredSelection selection =3D (IStructuredSelection) inputDataVie= wer.getSelection(); + if (selection !=3D null) { + SmooksGraphicsExtType extType =3D getSmooksGraphicsExtType(); + if (extType !=3D null) { + boolean canSave =3D false; + Object[] objs =3D selection.toArray(); + for (int i =3D 0; i < objs.length; i++) { + Object obj =3D objs[i]; + if (obj instanceof InputType) { + extType.getInput().remove(obj); + canSave =3D true; + } + } + + if (!canSave) + return; + + List listeners =3D extType.getChangeList= eners(); + for (Iterator iterator =3D listeners.iterator(); iterator.hasNext= ();) { + ISmooksGraphChangeListener smooksGraphChangeListener =3D (ISmooksGr= aphChangeListener) iterator + .next(); + smooksGraphChangeListener.inputTypeChanged(extType); + } + } + } + } + }); + } + + protected SmooksGraphicsExtType getSmooksGraphicsExtType() { + SmooksGraphicsExtType extType =3D ((SmooksMultiFormEditor) getEditor()).= getSmooksGraphicsExt(); + return extType; + } + + protected AdapterFactoryEditingDomain getEditingDomain() { + AdapterFactoryEditingDomain editDomain =3D (AdapterFactoryEditingDomain)= ((SmooksMultiFormEditor) this + .getEditor()).getEditingDomain(); + return editDomain; + } + + protected SmooksResourceListType getSmooksConfigResourceList() { + EObject doc =3D ((SmooksMultiFormEditor) this.getEditor()).getSmooksMode= l(); + if (doc instanceof DocumentRoot) { + return ((DocumentRoot) doc).getSmooksResourceList(); + } + return null; + } + + protected void showInputDataWizard() { + StructuredDataSelectionWizard wizard =3D new StructuredDataSelectionWiza= rd(); + wizard.setInput(getEditorInput()); + wizard.setSite(getEditorSite()); + wizard.setForcePreviousAndNextButtons(true); + StructuredDataSelectionWizardDailog dialog =3D new StructuredDataSelecti= onWizardDailog( + getEditorSite().getShell(), wizard, getSmooksGraphicsExtType(), (Smook= sMultiFormEditor) getEditor()); + if (dialog.show() =3D=3D Dialog.OK) { + SmooksGraphicsExtType extType =3D getSmooksGraphicsExtType(); + String type =3D dialog.getType(); + String path =3D dialog.getPath(); + Properties pros =3D dialog.getProperties(); + SmooksUIUtils.recordInputDataInfomation(null, extType, type, path, pros= ); + } + } + + private void refreshInputModelView() { + if (inputModelViewer !=3D null) { + List input =3D generateInputData(); + inputModelViewer.setInput(input); + SmooksUIUtils.expandSelectorViewer(input, inputModelViewer); + } + } + + public void inputTypeChanged(SmooksGraphicsExtType extType) { + if (inputDataViewer !=3D null) + inputDataViewer.refresh(); + refreshInputModelView(); + } + + protected void disposeCompositeControls(Composite composite, Control[] ig= noreControl) { + if (composite !=3D null) { + Control[] children =3D composite.getChildren(); + for (int i =3D 0; i < children.length; i++) { + Control child =3D children[i]; + if (ignoreControl !=3D null) { + for (int j =3D 0; j < ignoreControl.length; j++) { + if (child =3D=3D ignoreControl[j]) { + continue; + } + } + } + child.dispose(); + child =3D null; + } + } + } + + private Object getCurrentReaderModel() { + if (readerCombo =3D=3D null || readerCombo.isDisposed()) + return null; + int index =3D readerCombo.getSelectionIndex(); + if (index < 0) + return null; + return readerTypeList.get(index); + } + + public void sourceChange(Object model) { + SmooksResourceListType list =3D getSmooksConfigResourceList(); + SmooksGraphicsExtType ext =3D getSmooksGraphicsExtType(); + if (list =3D=3D null) { + ext.setInputType(null, false); + } else { + if (list.getAbstractReader().isEmpty()) { + ext.setInputType(null, false); + } else { + AbstractReader reader =3D list.getAbstractReader().get(0); + if (CsvReader.class.isInstance(reader) || CSV12Reader.class.isInstance= (reader)) { + ext.setInputType(SmooksModelUtils.INPUT_TYPE_CSV); + } + if (EDIReader.class.isInstance(reader) || EDI12Reader.class.isInstance= (reader)) { + ext.setInputType(SmooksModelUtils.INPUT_TYPE_EDI_1_1); + } + if (JsonReader.class.isInstance(reader) || Json12Reader.class.isInstan= ce(reader)) { + ext.setInputType(SmooksModelUtils.INPUT_TYPE_JSON_1_1); + } + if (ReaderType.class.isInstance(reader)) { + ext.setInputType(SmooksModelUtils.INPUT_TYPE_CUSTOME); + } + } + + } + bindingReaderCombo(); + initReaderCombo(); + initReaderConfigSection(); + deactiveAllInputFile(); + if (inputDataViewer !=3D null) { + inputDataViewer.refresh(); + } + refreshInputModelView(); + } + + public void graphChanged(SmooksGraphicsExtType extType) { + // TODO Auto-generated method stub + + } + + public void graphPropertyChange(EStructuralFeature featre, Object value) { + // TODO Auto-generated method stub + + } + + public void validateEnd(List diagnosticResult) { + Object model =3D getCurrentReaderModel(); + if (model =3D=3D null) + return; + if (model instanceof EObject) { + this.getModelPanelCreator().markPropertyUI(diagnosticResult, (EObject) = model); + } + } + + public void validateStart() { + + } + + protected boolean isIncorrectInputType(InputType element) { + if (element =3D=3D null) + return false; + if (element instanceof InputType) { + String type =3D ((InputType) element).getType(); + int index =3D readerCombo.getSelectionIndex(); + if (index =3D=3D -1) + return true; + + Object reader =3D readerTypeList.get(index); + if (reader instanceof NullReader) { + return true; + } + if (reader instanceof XMLReader || reader instanceof XSDReader || reade= r instanceof JavaReader) { + + } + + if (reader instanceof XMLReader) { + if (!SmooksModelUtils.INPUT_TYPE_XML.equals(type)) { + return true; + } + } + if (reader instanceof XSDReader) { + if (!SmooksModelUtils.INPUT_TYPE_XSD.equals(type)) { + return true; + } + } + if (reader instanceof JavaReader) { + if (!SmooksModelUtils.INPUT_TYPE_JAVA.equals(type)) { + return true; + } + } + + if (reader instanceof EObject) { + Object obj =3D ((EObject) reader); + obj =3D AdapterFactoryEditingDomain.unwrap(obj); + if (obj instanceof EDIReader || obj instanceof EDI12Reader) { + if (!SmooksModelUtils.INPUT_TYPE_EDI_1_1.equals(type)) { + return true; + } + } + if (obj instanceof CsvReader || obj instanceof CSV12Reader) { + if (!SmooksModelUtils.INPUT_TYPE_CSV.equals(type)) { + return true; + } + } + if (obj instanceof JsonReader || obj instanceof Json12Reader) { + if (!SmooksModelUtils.INPUT_TYPE_JSON_1_1.equals(type)) { + return true; + } + } + if (obj instanceof ReaderType) { + if (!SmooksModelUtils.INPUT_TYPE_CUSTOME.equals(type)) { + return true; + } + } + } + } + return false; + } + + private class NullReader { + + } + + private class XMLReader { + + } + + private class XSDReader { + + } + + private class JavaReader { + + } + + private class InputDataViewerLabelProvider extends ExtentionInputLabelPro= vider implements ITableColorProvider { + + public Color getBackground(Object element, int columnIndex) { + if (isIncorrectInputType((InputType) element)) { + // return ColorConstants.darkGray; + } + return null; + } + + public Color getForeground(Object element, int columnIndex) { + if (isIncorrectInputType((InputType) element)) { + return ColorConstants.lightGray; + } + return null; + } + } +} Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org= /jboss/tools/smooks/configuration/editors/SmooksReaderFormPage.java ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/csv/CSVDataParser.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/csv/CSVDataParser.java 2009-09-13 21:39:20 UTC (re= v 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/csv/CSVDataParser.java 2009-09-14 12:36:19 UTC (re= v 17543) @@ -29,10 +29,8 @@ import org.jboss.tools.smooks.model.csv.CsvReader; import org.jboss.tools.smooks.model.csv12.CSV12Reader; import org.jboss.tools.smooks.model.graphics.ext.InputType; -import org.jboss.tools.smooks.model.graphics.ext.ParamType; import org.jboss.tools.smooks.model.smooks.AbstractReader; import org.jboss.tools.smooks.model.smooks.SmooksResourceListType; -import org.jboss.tools.smooks10.model.smooks.util.SmooksModelUtils; import org.milyn.Smooks; import org.milyn.csv.CSVReaderConfigurator; import org.milyn.payload.StringResult; @@ -99,85 +97,30 @@ = public TagList parseCSV(InputStream stream, InputType inputType, SmooksRe= sourceListType resourceList) throws DocumentException, ParserConfigurationException { - String type =3D inputType.getType(); - List paramList =3D inputType.getParam(); - String fields =3D null; - String separator =3D null; - String quoteChar =3D null; - String skiplines =3D null; - String encoding =3D null; - String rootName =3D null; - String recordName =3D null; - - for (Iterator iterator =3D paramList.iterator(); iterator.hasNext();)= { - ParamType paramType =3D (ParamType) iterator.next(); - if (paramType.getName().equals(LINK_CSV_READER)) { - if (paramType.getValue().equalsIgnoreCase("true") && resourceList !=3D= null) { - List readers =3D resourceList.getAbstractReader(); - int count =3D 0; - int index =3D -1; - for (Iterator iterator2 =3D readers.iterator(); iterator2.hasNext(= );) { - AbstractReader abstractReader =3D (AbstractReader) iterator2.next(); - if (SmooksModelUtils.INPUT_TYPE_CSV_1_1.equals(type)) { - if (abstractReader instanceof CsvReader) { - count++; - if (index =3D=3D -1) { - index =3D readers.indexOf(abstractReader); - } - } - } - - if (SmooksModelUtils.INPUT_TYPE_CSV_1_2.equals(type)) { - if (abstractReader instanceof CSV12Reader) { - count++; - if (index =3D=3D -1) { - index =3D readers.indexOf(abstractReader); - } - } - } - } - - if (count > 1) { - // throw new - // RuntimeException("The smooks config file should have only one JSO= N reader"); - } - if (index !=3D -1) { - return parseCSV(stream, readers.get(index)); - // return parseJsonFile(stream, (JsonReader) - // readers.get(index)); - } - + List readers =3D resourceList.getAbstractReader(); + int count =3D 0; + int index =3D -1; + for (Iterator iterator2 =3D readers.iterator(); iterator2.hasNext();)= { + AbstractReader abstractReader =3D (AbstractReader) iterator2.next(); + if (abstractReader instanceof CsvReader || abstractReader instanceof CS= V12Reader) { + count++; + if (index =3D=3D -1) { + index =3D readers.indexOf(abstractReader); } } - if (paramType.getName().equals(FIELDS)) { - fields =3D paramType.getValue(); - try { - // fields =3D fields.replace(';', ','); - } catch (Throwable t) { = - } - } - if (paramType.getName().equals(SEPARATOR)) { - separator =3D paramType.getValue(); - } - if (paramType.getName().equals(SKIPLINES)) { - skiplines =3D paramType.getValue(); - } - if (paramType.getName().equals(QUOTECHAR)) { - quoteChar =3D paramType.getValue(); - } - if (paramType.getName().equals(ENCODING)) { - encoding =3D paramType.getValue(); - } - if (paramType.getName().equals(ROOT_ELEMENT_NAME)) { - rootName =3D paramType.getValue(); - } - if (paramType.getName().equals(RECORD_NAME)) { - recordName =3D paramType.getValue(); - } } = - return this.parseCSV(stream, fields, rootName, recordName, separator, qu= oteChar, skiplines, encoding); + if (count > 1) { + // throw new + // RuntimeException("The smooks config file should have only one JSON r= eader"); + } + if (index !=3D -1) { + return parseCSV(stream, readers.get(index)); + // return parseJsonFile(stream, (JsonReader) + // readers.get(index)); + } + return null; } = public TagList parseCSV(String filePath, String fields, String rootName, = String recordName, String separator, @@ -224,9 +167,9 @@ if (recordName !=3D null) { readerConfigurator.setRecordElementName(recordName); } - = + readerConfigurator.setEncoding(Charset.forName(encoding)); -// readerConfigurator.setIndent(indent) + // readerConfigurator.setIndent(indent) = smooks.setReaderConfig(readerConfigurator); = Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/csv/CSVInputDataWizard.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/csv/CSVInputDataWizard.java 2009-09-13 21:39:20 UT= C (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/csv/CSVInputDataWizard.java 2009-09-14 12:36:19 UT= C (rev 17543) @@ -46,22 +46,22 @@ = public CSVInputDataWizard() { super(); - this.setWindowTitle("CSV Input Data Wizard (version 1.1)"); + this.setWindowTitle("CSV Input Data Wizard"); } = @Override public void addPages() { - if (configPage =3D=3D null) { - configPage =3D new CSVDataConfigurationWizardPage("CSV Configurations P= age"); - configPage.setSmooksResourceList(resourceList); - } +// if (configPage =3D=3D null) { +// configPage =3D new CSVDataConfigurationWizardPage("CSV Configurations= Page"); +// configPage.setSmooksResourceList(resourceList); +// } = if (pathPage =3D=3D null) { - pathPage =3D new CSVDataPathWizardPage("CSV Path Page", new String[] {}= ,configPage); + pathPage =3D new CSVDataPathWizardPage("CSV Path Page", new String[] {"= csv"},configPage); } = this.addPage(pathPage); - this.addPage(configPage); +// this.addPage(configPage); super.addPages(); } = @@ -123,6 +123,9 @@ } = public boolean canFinish() { + if(pathPage !=3D null){ + return pathPage.isPageComplete(); + } if (configPage !=3D null && pathPage !=3D null) { if (configPage.isPageComplete() && pathPage.isPageComplete()) return true; @@ -149,7 +152,7 @@ * IStructuredDataSelectionWizard#getInputDataTypeID() */ public String getInputDataTypeID() { - return SmooksModelUtils.INPUT_TYPE_CSV_1_1; + return SmooksModelUtils.INPUT_TYPE_CSV; } = /* Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/csv/CsvReaderUICreator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/csv/CsvReaderUICreator.java 2009-09-13 21:39:20 UT= C (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/csv/CsvReaderUICreator.java 2009-09-14 12:36:19 UT= C (rev 17543) @@ -10,13 +10,35 @@ *************************************************************************= *****/ package org.jboss.tools.smooks.configuration.editors.csv; = +import java.util.ArrayList; +import java.util.List; + import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.jface.viewers.CellEditor; +import org.eclipse.jface.viewers.ICellModifier; +import org.eclipse.jface.viewers.IStructuredContentProvider; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.viewers.LabelProvider; +import org.eclipse.jface.viewers.TableViewer; +import org.eclipse.jface.viewers.TextCellEditor; +import org.eclipse.jface.viewers.Viewer; +import org.eclipse.swt.SWT; +import org.eclipse.swt.events.SelectionEvent; +import org.eclipse.swt.events.SelectionListener; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Group; +import org.eclipse.swt.widgets.Item; import org.eclipse.ui.IEditorPart; import org.eclipse.ui.forms.widgets.FormToolkit; import org.jboss.tools.smooks.configuration.editors.AttributeFieldEditPart; import org.jboss.tools.smooks.configuration.editors.PropertyUICreator; +import org.jboss.tools.smooks.configuration.editors.uitls.SmooksUIUtils; import org.jboss.tools.smooks.editor.ISmooksModelProvider; import org.jboss.tools.smooks.model.csv.CsvPackage; = @@ -25,6 +47,14 @@ */ public class CsvReaderUICreator extends PropertyUICreator { = + private TableViewer fieldsViewer; + + private List fieldsList =3D new ArrayList(); + + private Button addButton; + + private Button removeButton; + /* * (non-Javadoc) * = @@ -34,9 +64,10 @@ * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Objec= t, * org.eclipse.emf.ecore.EAttribute) */ - public AttributeFieldEditPart createPropertyUI(FormToolkit toolkit, Compo= site parent, IItemPropertyDescriptor propertyDescriptor, Object model, - EAttribute feature, ISmooksModelProvider formEditor, IEditorPart part) { - = + public AttributeFieldEditPart createPropertyUI(FormToolkit toolkit, Compo= site parent, + IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute fe= ature, + ISmooksModelProvider formEditor, IEditorPart part) { + if (feature =3D=3D CsvPackage.eINSTANCE.getCsvReader_Encoding()) { } if (feature =3D=3D CsvPackage.eINSTANCE.getCsvReader_Fields()) { @@ -48,7 +79,244 @@ if (feature =3D=3D CsvPackage.eINSTANCE.getCsvReader_SkipLines()) { } = - return super.createPropertyUI(toolkit, parent, propertyDescriptor, model= , feature, formEditor,part); + return super.createPropertyUI(toolkit, parent, propertyDescriptor, model= , feature, formEditor, part); } = + @Override + public boolean ignoreProperty(EAttribute feature) { + if (feature.equals(CsvPackage.Literals.CSV_READER__FIELDS)) { + return true; + } + return super.ignoreProperty(feature); + } + + @Override + public List createExtendUIOnBottom(AdapterFactory= EditingDomain editingdomain, + FormToolkit toolkit, Composite parent, Object model, ISmooksModelProvid= er formEditor, IEditorPart editorPart) { + createFiledsComposite(editingdomain, toolkit, parent, model, formEditor); + return super.createExtendUIOnBottom(editingdomain, toolkit, parent, mode= l, formEditor, editorPart); + } + + private void createFiledsComposite(AdapterFactoryEditingDomain editingdom= ain, FormToolkit toolkit, + Composite parent, Object model, ISmooksModelProvider formEditor) { + fieldsList.clear(); + GridData gd =3D new GridData(GridData.FILL_HORIZONTAL); + gd.heightHint =3D 200; + gd.horizontalSpan =3D 2; + Group fieldsComposite =3D new Group(parent, SWT.NONE); + fieldsComposite.setBackground(toolkit.getColors().getBackground()); + fieldsComposite.setText("Fields"); + fieldsComposite.setLayoutData(gd); + GridLayout gl =3D new GridLayout(); + gl.numColumns =3D 2; + fieldsComposite.setLayout(gl); + + IItemPropertySource propertySource =3D (IItemPropertySource) editingdoma= in.getAdapterFactory().adapt(model, + IItemPropertySource.class); + final IItemPropertyDescriptor descriptor =3D propertySource.getPropertyD= escriptor(model, + CsvPackage.Literals.CSV_READER__FIELDS); + + final Object readOnlyMoel =3D model; + + String fields =3D (String) SmooksUIUtils.getEditValue(descriptor, model); + + gd =3D new GridData(GridData.FILL_BOTH); + fieldsViewer =3D new TableViewer(fieldsComposite, SWT.BORDER | SWT.MULTI= | SWT.FULL_SELECTION); + fieldsViewer.getControl().setLayoutData(gd); + fieldsViewer.getTable().setLinesVisible(true); + fieldsViewer.setContentProvider(new FieldsContentProvider()); + fieldsViewer.setLabelProvider(new FieldsLabelProvider()); + + CellEditor fieldCellEditor =3D new TextCellEditor(fieldsViewer.getTable(= ), SWT.BORDER); + + fieldsViewer.getTable().setLinesVisible(true); + + fieldsViewer.setCellEditors(new CellEditor[] { fieldCellEditor }); + + fieldsViewer.setColumnProperties(new String[] { "field" }); + + fieldsViewer.setCellModifier(new ICellModifier() { + + public void modify(Object element, String property, Object value) { + Object el =3D null; + if (element instanceof Item) { + el =3D ((Item) element).getData(); + } + if (el =3D=3D null) + return; + if (el instanceof FieldText && value instanceof String) { + if (property.equals("field")) { + + if (value.toString().equals(((FieldText) el).getText())) { + return; + } + ((FieldText) el).setText(value.toString()); + + fieldsViewer.refresh(el); + setFieldsValue(readOnlyMoel, descriptor); + } + + } + } + + public Object getValue(Object element, String property) { + if (element instanceof FieldText) { + if (property.equals("field")) { + return ((FieldText) element).getText(); + } + } + + return null; + } + + public boolean canModify(Object element, String property) { + if (element instanceof FieldText) { + if (property.equals("field")) { + return true; + } + } + return false; + } + }); + if (fields =3D=3D null) { + fields =3D ""; + } + fillFieldsList(fields); + fieldsViewer.setInput(fieldsList); + + Composite buttonComposite =3D toolkit.createComposite(fieldsComposite); + gd =3D new GridData(GridData.FILL_VERTICAL); + gd.widthHint =3D 100; + buttonComposite.setLayoutData(gd); + + GridLayout bgl =3D new GridLayout(); + buttonComposite.setLayout(bgl); + + gd =3D new GridData(GridData.FILL_HORIZONTAL); + + addButton =3D new Button(buttonComposite, SWT.NONE); + addButton.setLayoutData(gd); + addButton.setText("Add Field"); + + removeButton =3D new Button(buttonComposite, SWT.NONE); + removeButton.setLayoutData(gd); + removeButton.setText("Remove"); + + this.addButton.addSelectionListener(new SelectionListener() { + + public void widgetSelected(SelectionEvent e) { + addButton.setEnabled(false); + try { + FieldText field =3D new FieldText("field"); + fieldsList.add(field); + fieldsViewer.refresh(); + setFieldsValue(readOnlyMoel, descriptor); + } catch (Throwable t) { + + } finally { + addButton.setEnabled(true); + } + } + + public void widgetDefaultSelected(SelectionEvent e) { + // TODO Auto-generated method stub + + } + }); + + this.removeButton.addSelectionListener(new SelectionListener() { + + public void widgetSelected(SelectionEvent e) { + IStructuredSelection s =3D (IStructuredSelection) fieldsViewer.getSele= ction(); + fieldsList.removeAll(s.toList()); + fieldsViewer.refresh(); + setFieldsValue(readOnlyMoel, descriptor); + } + + public void widgetDefaultSelected(SelectionEvent e) { + + } + }); + } + + private void setFieldsValue(Object model, IItemPropertyDescriptor ps) { + String fieldsString =3D ""; + for (int i =3D 0; i < fieldsList.size(); i++) { + FieldText fieldText =3D fieldsList.get(i); + fieldsString +=3D fieldText.getText(); + if (i < fieldsList.size() - 1) { + fieldsString +=3D ","; + } + } + ps.setPropertyValue(model, fieldsString); + } + + private void fillFieldsList(String fieldsString) { + if (fieldsString =3D=3D null) + return; + String input =3D fieldsString.toString(); + input =3D input.trim(); + if (input.indexOf(",") !=3D -1) { + String[] fields =3D input.split(","); + if (fields !=3D null && fields.length > 0) { + for (int i =3D 0; i < fields.length; i++) { + String field =3D fields[i]; + if (field !=3D null) { + field =3D field.trim(); + fieldsList.add(new FieldText(field)); + } + } + } + }else{ + fieldsList.add(new FieldText(input)); + } + } + + private class FieldsLabelProvider extends LabelProvider { + + @Override + public String getText(Object element) { + if (element instanceof FieldText) { + return ((FieldText) element).getText(); + } + return super.getText(element); + } + + } + + private class FieldsContentProvider implements IStructuredContentProvider= { + + public void dispose() { + // TODO Auto-generated method stub + + } + + public void inputChanged(Viewer viewer, Object oldInput, Object newInput= ) { + + } + + public Object[] getElements(Object inputElement) { + if (inputElement instanceof List) { + return ((List) inputElement).toArray(); + } + return new Object[] {}; + } + } + + private class FieldText { + private String text =3D null; + + public FieldText(String t) { + setText(t); + } + + public String getText() { + return text; + } + + public void setText(String text) { + this.text =3D text; + } + + } } \ No newline at end of file Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/csv12/CSV12InputDataWizard.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/csv12/CSV12InputDataWizard.java 2009-09-13 21:39:2= 0 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/csv12/CSV12InputDataWizard.java 2009-09-14 12:36:1= 9 UTC (rev 17543) @@ -45,25 +45,26 @@ private CSV12DataConfigurationWizardPage configPage; = private CSV12DataPathWizardPage pathPage; - = + public CSV12InputDataWizard() { super(); - this.setWindowTitle("CSV Input Data Wizard (version 1.2)"); + this.setWindowTitle("CSV Input Data Wizard"); } = @Override public void addPages() { - if (configPage =3D=3D null) { - configPage =3D new CSV12DataConfigurationWizardPage("CSV Configurations= Page"); - configPage.setSmooksResourceList(resourceList); - } - = + // if (configPage =3D=3D null) { + // configPage =3D new + // CSV12DataConfigurationWizardPage("CSV Configurations Page"); + // configPage.setSmooksResourceList(resourceList); + // } + if (pathPage =3D=3D null) { - pathPage =3D new CSV12DataPathWizardPage("CSV Path Page", new String[] = {},configPage); + pathPage =3D new CSV12DataPathWizardPage("CSV Path Page", new String[] = { "csv" }, configPage); } - = + this.addPage(pathPage); - this.addPage(configPage); + // this.addPage(configPage); super.addPages(); } = @@ -93,22 +94,22 @@ = } if (skip >=3D 0) { - reader.setSkipLines(BigInteger.valueOf(skip)); + reader.setSkipLines(BigInteger.valueOf(skip)); } = String quoteChar =3D configPage.getQuoteChar(); reader.setQuote(quoteChar); - = + String rootName =3D configPage.getRootName(); - if(rootName !=3D null){ + if (rootName !=3D null) { reader.setRootElementName(rootName); } - = + String recordName =3D configPage.getRecordName(); - if(recordName !=3D null){ + if (recordName !=3D null) { reader.setRecordElementName(recordName); } - = + String indent =3D configPage.getIndent(); if (indent !=3D null && indent.length() !=3D 0) { boolean indentValue =3D Boolean.valueOf(indent).booleanValue(); @@ -138,8 +139,11 @@ } return true; } - = + public boolean canFinish() { + if (pathPage !=3D null) { + return pathPage.isPageComplete(); + } if (configPage !=3D null && pathPage !=3D null) { if (configPage.isPageComplete() && pathPage.isPageComplete()) return true; @@ -166,7 +170,7 @@ * IStructuredDataSelectionWizard#getInputDataTypeID() */ public String getInputDataTypeID() { - return SmooksModelUtils.INPUT_TYPE_CSV_1_2; + return SmooksModelUtils.INPUT_TYPE_CSV; } = /* @@ -223,12 +227,12 @@ if (quoteChar !=3D null && quoteChar.length() !=3D 0) { pro.put(CSVDataParser.QUOTECHAR, quoteChar); } - = + String rootName =3D configPage.getRootName(); if (rootName !=3D null && rootName.length() !=3D 0) { pro.put(CSVDataParser.ROOT_ELEMENT_NAME, rootName); } - = + String recordName =3D configPage.getRecordName(); if (recordName !=3D null && recordName.length() !=3D 0) { pro.put(CSVDataParser.RECORD_NAME, recordName); @@ -238,7 +242,7 @@ if (skiplines !=3D null && skiplines.length() !=3D 0) { pro.put(CSVDataParser.SKIPLINES, skiplines); } - = + String indent =3D configPage.getIndent(); if (indent !=3D null && indent.length() !=3D 0) { pro.setProperty(JsonInputDataParser.INDENT, indent); Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/csv12/Csv12ReaderBindingPropertyUICreator.ja= va =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/csv12/Csv12ReaderBindingPropertyUICreator.java 200= 9-09-13 21:39:20 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/csv12/Csv12ReaderBindingPropertyUICreator.java 200= 9-09-14 12:36:19 UTC (rev 17543) @@ -10,6 +10,7 @@ *************************************************************************= *****/ package org.jboss.tools.smooks.configuration.editors.csv12; = + import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; @@ -58,13 +59,13 @@ IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute fe= ature, ISmooksModelProvider formEditor, IEditorPart part) { if (feature =3D=3D Csv12Package.Literals.BINDING__CLASS) { - return createBeanClassTextWithButton(parent, toolkit, propertyDescripto= r, model); + return createBeanClassTextWithButton(parent, toolkit, propertyDescripto= r, model , formEditor); } return super.createPropertyUI(toolkit, parent, propertyDescriptor, model= , feature, formEditor, part); } = protected AttributeFieldEditPart createBeanClassTextWithButton(Composite = composite, FormToolkit toolkit, - final IItemPropertyDescriptor propertyDescriptor, final Object model) { - return SmooksUIUtils.createJavaTypeSearchFieldEditor(composite, toolkit,= propertyDescriptor, (EObject) model); + final IItemPropertyDescriptor propertyDescriptor, final Object model , = ISmooksModelProvider provider) { + return SmooksUIUtils.createJavaTypeSearchFieldEditor(composite, toolkit,= propertyDescriptor, (EObject) model , provider); } } Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/csv12/Csv12ReaderMapBindingPropertyUICreator= .java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/csv12/Csv12ReaderMapBindingPropertyUICreator.java = 2009-09-13 21:39:20 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/csv12/Csv12ReaderMapBindingPropertyUICreator.java = 2009-09-14 12:36:19 UTC (rev 17543) @@ -57,13 +57,13 @@ IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute fe= ature, ISmooksModelProvider formEditor, IEditorPart part) { if (feature =3D=3D Csv12Package.Literals.BINDING__CLASS) { - return createBeanClassTextWithButton(parent, toolkit, propertyDescripto= r, model); + return createBeanClassTextWithButton(parent, toolkit, propertyDescripto= r, model , formEditor); } return super.createPropertyUI(toolkit, parent, propertyDescriptor, model= , feature, formEditor, part); } = protected AttributeFieldEditPart createBeanClassTextWithButton(Composite = composite, FormToolkit toolkit, - final IItemPropertyDescriptor propertyDescriptor, final Object model) { - return SmooksUIUtils.createJavaTypeSearchFieldEditor(composite, toolkit,= propertyDescriptor, (EObject) model); + final IItemPropertyDescriptor propertyDescriptor, final Object model , = ISmooksModelProvider provider) { + return SmooksUIUtils.createJavaTypeSearchFieldEditor(composite, toolkit,= propertyDescriptor, (EObject) model , provider); } } Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/s= mooks/configuration/editors/csv12/Csv12ReaderUICreator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/csv12/Csv12ReaderUICreator.java = (rev 0) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/csv12/Csv12ReaderUICreator.java 2009-09-14 12:36:1= 9 UTC (rev 17543) @@ -0,0 +1,357 @@ +/*************************************************************************= ****** + * Copyright (c) 2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.smooks.configuration.editors.csv12; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +import org.eclipse.draw2d.ColorConstants; +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.jface.viewers.CellEditor; +import org.eclipse.jface.viewers.ICellModifier; +import org.eclipse.jface.viewers.IStructuredContentProvider; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.viewers.LabelProvider; +import org.eclipse.jface.viewers.TableViewer; +import org.eclipse.jface.viewers.TextCellEditor; +import org.eclipse.jface.viewers.Viewer; +import org.eclipse.swt.SWT; +import org.eclipse.swt.events.SelectionEvent; +import org.eclipse.swt.events.SelectionListener; +import org.eclipse.swt.layout.FillLayout; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Button; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Group; +import org.eclipse.swt.widgets.Item; +import org.eclipse.swt.widgets.Shell; +import org.eclipse.ui.IEditorPart; +import org.eclipse.ui.forms.widgets.FormToolkit; +import org.jboss.tools.smooks.configuration.editors.AttributeFieldEditPart; +import org.jboss.tools.smooks.configuration.editors.ModelMultiChildrenTabe= lPanelCreator; +import org.jboss.tools.smooks.configuration.editors.PropertyUICreator; +import org.jboss.tools.smooks.configuration.editors.uitls.SmooksUIUtils; +import org.jboss.tools.smooks.editor.ISmooksModelProvider; +import org.jboss.tools.smooks.model.csv12.CSV12Reader; +import org.jboss.tools.smooks.model.csv12.Csv12Package; + +/** + * @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009 + */ +public class Csv12ReaderUICreator extends PropertyUICreator { + + private TableViewer fieldsViewer; + + private List fieldsList =3D new ArrayList(); + + private Button addButton; + + private Button removeButton; + + /* + * (non-Javadoc) + * = + * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator# + * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit, + * org.eclipse.swt.widgets.Composite, + * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Objec= t, + * org.eclipse.emf.ecore.EAttribute) + */ + public AttributeFieldEditPart createPropertyUI(FormToolkit toolkit, Compo= site parent, + IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute fe= ature, + ISmooksModelProvider formEditor, IEditorPart part) { + + return super.createPropertyUI(toolkit, parent, propertyDescriptor, model= , feature, formEditor, part); + } + + @Override + public List createExtendUIOnBottom(AdapterFactory= EditingDomain editingdomain, + FormToolkit toolkit, Composite parent, Object model, ISmooksModelProvid= er formEditor, IEditorPart editorPart) { + createFiledsComposite(editingdomain, toolkit, parent, model, formEditor); + createParametersGroup(parent, (CSV12Reader) model, toolkit, formEditor, = editorPart); + return super.createExtendUIOnBottom(editingdomain, toolkit, parent, mode= l, formEditor, editorPart); + } + + @Override + public boolean ignoreProperty(EAttribute feature) { + if (feature.equals(Csv12Package.Literals.CSV12_READER__FIELDS)) { + return true; + } + return super.ignoreProperty(feature); + } + + private void createParametersGroup(Composite parent, CSV12Reader reader, = FormToolkit toolkit, + ISmooksModelProvider modelProvider, IEditorPart editorPart) { + Group group =3D new Group(parent, SWT.NONE); + group.setText("Features"); + group.setBackground(ColorConstants.white); + FillLayout fl =3D new FillLayout(); + group.setLayout(fl); + final AdapterFactoryEditingDomain editingDomain =3D (AdapterFactoryEditi= ngDomain) modelProvider + .getEditingDomain(); + final Shell shell =3D parent.getShell(); + IEditingDomainItemProvider p =3D (IEditingDomainItemProvider) editingDom= ain.getAdapterFactory().adapt(reader, + IEditingDomainItemProvider.class); + final Collection children =3D p.getNewChildDescriptors(reader, editin= gDomain, null); + + ModelMultiChildrenTabelPanelCreator creator =3D new ModelMultiChildrenTa= belPanelCreator(shell, children, + editingDomain, modelProvider, reader, toolkit, editorPart) { + // + // @Override + // protected EStructuralFeature getChildFeature(CommandParameter + // model) { + // return model.getEStructuralFeature(); + // } + // + // @Override + // protected EObject getNewChildInstance(CommandParameter feature2) + // { + // return feature2.getEValue(); + // } + + }; + + creator.createChildrenTablePanel(group); + GridData gd =3D new GridData(GridData.FILL_HORIZONTAL); + gd.heightHint =3D 180; + gd.horizontalSpan =3D 2; + group.setLayoutData(gd); + } + + private void createFiledsComposite(AdapterFactoryEditingDomain editingdom= ain, FormToolkit toolkit, + Composite parent, Object model, ISmooksModelProvider formEditor) { + fieldsList.clear(); + GridData gd =3D new GridData(GridData.FILL_HORIZONTAL); + gd.heightHint =3D 150; + gd.horizontalSpan =3D 2; + Group fieldsComposite =3D new Group(parent, SWT.NONE); + fieldsComposite.setBackground(toolkit.getColors().getBackground()); + fieldsComposite.setText("Fields"); + fieldsComposite.setLayoutData(gd); + GridLayout gl =3D new GridLayout(); + gl.numColumns =3D 2; + fieldsComposite.setLayout(gl); + + IItemPropertySource propertySource =3D (IItemPropertySource) editingdoma= in.getAdapterFactory().adapt(model, + IItemPropertySource.class); + final IItemPropertyDescriptor descriptor =3D propertySource.getPropertyD= escriptor(model, + Csv12Package.Literals.CSV12_READER__FIELDS); + + final Object readOnlyMoel =3D model; + + String fields =3D (String) SmooksUIUtils.getEditValue(descriptor, model); + + gd =3D new GridData(GridData.FILL_BOTH); + fieldsViewer =3D new TableViewer(fieldsComposite, SWT.BORDER | SWT.MULTI= | SWT.FULL_SELECTION); + fieldsViewer.getControl().setLayoutData(gd); + fieldsViewer.getTable().setLinesVisible(true); + fieldsViewer.setContentProvider(new FieldsContentProvider()); + fieldsViewer.setLabelProvider(new FieldsLabelProvider()); + + CellEditor fieldCellEditor =3D new TextCellEditor(fieldsViewer.getTable(= ), SWT.BORDER); + + fieldsViewer.getTable().setLinesVisible(true); + + fieldsViewer.setCellEditors(new CellEditor[] { fieldCellEditor }); + + fieldsViewer.setColumnProperties(new String[] { "field" }); + + fieldsViewer.setCellModifier(new ICellModifier() { + + public void modify(Object element, String property, Object value) { + Object el =3D null; + if (element instanceof Item) { + el =3D ((Item) element).getData(); + } + if (el =3D=3D null) + return; + if (el instanceof FieldText && value instanceof String) { + if (property.equals("field")) { + + if (value.toString().equals(((FieldText) el).getText())) { + return; + } + ((FieldText) el).setText(value.toString()); + + fieldsViewer.refresh(el); + setFieldsValue(readOnlyMoel, descriptor); + } + + } + } + + public Object getValue(Object element, String property) { + if (element instanceof FieldText) { + if (property.equals("field")) { + return ((FieldText) element).getText(); + } + } + + return null; + } + + public boolean canModify(Object element, String property) { + if (element instanceof FieldText) { + if (property.equals("field")) { + return true; + } + } + return false; + } + }); + if (fields =3D=3D null) { + fields =3D ""; + } + fillFieldsList(fields); + fieldsViewer.setInput(fieldsList); + + Composite buttonComposite =3D toolkit.createComposite(fieldsComposite); + gd =3D new GridData(GridData.FILL_VERTICAL); + gd.widthHint =3D 100; + buttonComposite.setLayoutData(gd); + + GridLayout bgl =3D new GridLayout(); + buttonComposite.setLayout(bgl); + + gd =3D new GridData(GridData.FILL_HORIZONTAL); + + addButton =3D new Button(buttonComposite, SWT.NONE); + addButton.setLayoutData(gd); + addButton.setText("Add Field"); + + removeButton =3D new Button(buttonComposite, SWT.NONE); + removeButton.setLayoutData(gd); + removeButton.setText("Remove"); + + this.addButton.addSelectionListener(new SelectionListener() { + + public void widgetSelected(SelectionEvent e) { + // addButton.setEnabled(false); + try { + FieldText field =3D new FieldText("field"); + fieldsList.add(field); + fieldsViewer.refresh(); + setFieldsValue(readOnlyMoel, descriptor); + } catch (Throwable t) { + t.printStackTrace(); + } finally { + // addButton.setEnabled(true); + } + } + + public void widgetDefaultSelected(SelectionEvent e) { + // TODO Auto-generated method stub + + } + }); + + this.removeButton.addSelectionListener(new SelectionListener() { + + public void widgetSelected(SelectionEvent e) { + IStructuredSelection s =3D (IStructuredSelection) fieldsViewer.getSele= ction(); + fieldsList.removeAll(s.toList()); + fieldsViewer.refresh(); + setFieldsValue(readOnlyMoel, descriptor); + } + + public void widgetDefaultSelected(SelectionEvent e) { + + } + }); + } + + private void setFieldsValue(Object model, IItemPropertyDescriptor ps) { + String fieldsString =3D ""; + for (int i =3D 0; i < fieldsList.size(); i++) { + FieldText fieldText =3D fieldsList.get(i); + fieldsString +=3D fieldText.getText(); + if (i < fieldsList.size() - 1) { + fieldsString +=3D ","; + } + } + ps.setPropertyValue(model, fieldsString); + } + + private void fillFieldsList(String fieldsString) { + if (fieldsString =3D=3D null) + return; + String input =3D fieldsString.toString(); + input =3D input.trim(); + if (input.indexOf(",") !=3D -1) { + String[] fields =3D input.split(","); + if (fields !=3D null && fields.length > 0) { + for (int i =3D 0; i < fields.length; i++) { + String field =3D fields[i]; + if (field !=3D null) { + field =3D field.trim(); + fieldsList.add(new FieldText(field)); + } + } + } + }else{ + fieldsList.add(new FieldText(input)); + } + } + + private class FieldsLabelProvider extends LabelProvider { + + @Override + public String getText(Object element) { + if (element instanceof FieldText) { + return ((FieldText) element).getText(); + } + return super.getText(element); + } + + } + + private class FieldsContentProvider implements IStructuredContentProvider= { + + public void dispose() { + // TODO Auto-generated method stub + + } + + public void inputChanged(Viewer viewer, Object oldInput, Object newInput= ) { + + } + + public Object[] getElements(Object inputElement) { + if (inputElement instanceof List) { + return ((List) inputElement).toArray(); + } + return new Object[] {}; + } + } + + private class FieldText { + private String text =3D null; + + public FieldText(String t) { + setText(t); + } + + public String getText() { + return text; + } + + public void setText(String text) { + this.text =3D text; + } + + } +} \ No newline at end of file Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org= /jboss/tools/smooks/configuration/editors/csv12/Csv12ReaderUICreator.java ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/edi/EDIDataParser.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/edi/EDIDataParser.java 2009-09-13 21:39:20 UTC (re= v 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/edi/EDIDataParser.java 2009-09-14 12:36:19 UTC (re= v 17543) @@ -108,58 +108,32 @@ = public TagList parseEDIFile(InputStream stream, InputType inputType, Smoo= ksResourceListType resourceList) throws IOException, DocumentException { - - List paramList =3D inputType.getParam(); - String encoding =3D null; - String mappingModel =3D null; - String validate =3D null; - String type =3D inputType.getType(); - - for (Iterator iterator =3D paramList.iterator(); iterator.hasNext();)= { - ParamType paramType =3D (ParamType) iterator.next(); - if (paramType.getName().equals(USE_AVAILABEL_READER)) { - if (paramType.getValue().equalsIgnoreCase("true") && resourceList !=3D= null) { - List readers =3D resourceList.getAbstractReader(); - int count =3D 0; - int index =3D -1; - for (Iterator iterator2 =3D readers.iterator(); iterator2.hasNext(= );) { - AbstractReader abstractReader =3D (AbstractReader) iterator2.next(); - if (abstractReader instanceof EDIReader && SmooksModelUtils.INPUT_TY= PE_EDI_1_1.equals(type)) { - count++; - if (index =3D=3D -1) { - index =3D readers.indexOf(abstractReader); - } - } - if (abstractReader instanceof EDI12Reader && SmooksModelUtils.INPUT_= TYPE_EDI_1_2.equals(type)) { - count++; - if (index =3D=3D -1) { - index =3D readers.indexOf(abstractReader); - } - } - } - - if (count > 1) { - // throw new - // RuntimeException("The smooks config file should have only one JSO= N reader"); - } - if (index !=3D -1) { - return parseEDIFile(stream, (EObject) readers.get(index)); - } - +// String encoding =3D null; +// String mappingModel =3D null; +// String validate =3D null; +// String type =3D inputType.getType(); + List readers =3D resourceList.getAbstractReader(); + int count =3D 0; + int index =3D -1; + for (Iterator iterator2 =3D readers.iterator(); iterator2.hasNext();)= { + AbstractReader abstractReader =3D (AbstractReader) iterator2.next(); + if (abstractReader instanceof EDIReader || abstractReader instanceof ED= I12Reader) { + count++; + if (index =3D=3D -1) { + index =3D readers.indexOf(abstractReader); } } - if (paramType.getName().equals(ENCODING)) { - encoding =3D paramType.getValue(); - } - if (paramType.getName().equals(MAPPING_MODEL)) { - mappingModel =3D paramType.getValue(); - } - if (paramType.getName().equals(VALIDATE)) { - validate =3D paramType.getValue(); - } } = - return parseEDIFile(stream, mappingModel, encoding,validate, resourceLis= t); + if (count > 1) { + // throw new + // RuntimeException("The smooks config file should have only one JSON r= eader"); + } + if (index !=3D -1) { + return parseEDIFile(stream, (EObject) readers.get(index)); + } + return null; +// return parseEDIFile(stream, mappingModel, encoding,validate, resourceL= ist); } = public TagList parseEDIFile(InputStream ediInputStream, EObject readerObj= , IProject project) throws IOException, Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/edi/EDIDataWizard.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/edi/EDIDataWizard.java 2009-09-13 21:39:20 UTC (re= v 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/edi/EDIDataWizard.java 2009-09-14 12:36:19 UTC (re= v 17543) @@ -49,11 +49,12 @@ = @Override public void addPages() { - ediFilePage =3D new EDIDataPathWizardPage("EDI Data Page", new String[] = {}); + ediFilePage =3D new EDIDataPathWizardPage("EDI Data Page", new String[] = {"edi"}); this.addPage(ediFilePage); = - mappingFilePage =3D new EDIMappingDataPathWizardPage("EDI Config Page", = null); - this.addPage(mappingFilePage); + // mappingFilePage =3D new EDIMappingDataPathWizardPage("EDI Config Page= ", + // null); + // this.addPage(mappingFilePage); super.addPages(); } = @@ -64,20 +65,22 @@ */ @Override public boolean performFinish() { - if (mappingFilePage.isUseAvaliableReader()) { - return true; + if (mappingFilePage !=3D null) { + if (mappingFilePage.isUseAvaliableReader()) { + return true; + } + if (mappingFilePage.isCreateNewReader()) { + String encoding =3D mappingFilePage.getEncoding(); + String path =3D mappingFilePage.getFilePath(); + EDIReader reader =3D EdiFactory.eINSTANCE.createEDIReader(); + reader.setEncoding(encoding); + reader.setMappingModel(path); + Command command =3D AddCommand.create(editingDomain, resourceList, + SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GR= OUP, FeatureMapUtil + .createEntry(EdiPackage.Literals.EDI_DOCUMENT_ROOT__READER, reader= )); + editingDomain.getCommandStack().execute(command); + } } - if (mappingFilePage.isCreateNewReader()) { - String encoding =3D mappingFilePage.getEncoding(); - String path =3D mappingFilePage.getFilePath(); - EDIReader reader =3D EdiFactory.eINSTANCE.createEDIReader(); - reader.setEncoding(encoding); - reader.setMappingModel(path); - Command command =3D AddCommand.create(editingDomain, resourceList, - SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GRO= UP, FeatureMapUtil - .createEntry(EdiPackage.Literals.EDI_DOCUMENT_ROOT__READER, reader)= ); - editingDomain.getCommandStack().execute(command); - } return true; } = @@ -111,14 +114,17 @@ */ public Properties getProperties() { Properties pros =3D new Properties(); - if (mappingFilePage.isUseAvaliableReader() || mappingFilePage.isCreateNe= wReader()) { - pros.put(EDIDataParser.USE_AVAILABEL_READER, "true"); - return pros; + if (mappingFilePage !=3D null) { + if (mappingFilePage.isUseAvaliableReader() || mappingFilePage.isCreateN= ewReader()) { + pros.put(EDIDataParser.USE_AVAILABEL_READER, "true"); + return pros; + } + + String encoding =3D mappingFilePage.getEncoding(); + pros.put(EDIDataParser.ENCODING, encoding); + String path =3D mappingFilePage.getFilePath(); + pros.put(EDIDataParser.MAPPING_MODEL, path); } - String encoding =3D mappingFilePage.getEncoding(); - pros.put(EDIDataParser.ENCODING, encoding); - String path =3D mappingFilePage.getFilePath(); - pros.put(EDIDataParser.MAPPING_MODEL, path); return pros; } = Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/javabean/BindingsPropertyUICreator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/javabean/BindingsPropertyUICreator.java 2009-09-13= 21:39:20 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/javabean/BindingsPropertyUICreator.java 2009-09-14= 12:36:19 UTC (rev 17543) @@ -98,7 +98,7 @@ IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute fe= ature, ISmooksModelProvider formEditor, IEditorPart part) { if (feature =3D=3D JavabeanPackage.eINSTANCE.getBindingsType_Class()) { - return createBeanClassTextWithButton(parent, toolkit, propertyDescripto= r, model); + return createBeanClassTextWithButton(parent, toolkit, propertyDescripto= r, model , formEditor); } return super.createPropertyUI(toolkit, parent, propertyDescriptor, model= , feature, formEditor, part); } @@ -295,7 +295,7 @@ } = protected AttributeFieldEditPart createBeanClassTextWithButton(Composite = composite, FormToolkit toolkit, - final IItemPropertyDescriptor propertyDescriptor, final Object model) { - return SmooksUIUtils.createJavaTypeSearchFieldEditor(composite, toolkit,= propertyDescriptor, (EObject) model); + final IItemPropertyDescriptor propertyDescriptor, final Object model , = ISmooksModelProvider provider) { + return SmooksUIUtils.createJavaTypeSearchFieldEditor(composite, toolkit,= propertyDescriptor, (EObject) model , provider); } } Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/javabean12/JavaBean12PropertyUICreator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/javabean12/JavaBean12PropertyUICreator.java 2009-0= 9-13 21:39:20 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/javabean12/JavaBean12PropertyUICreator.java 2009-0= 9-14 12:36:19 UTC (rev 17543) @@ -103,7 +103,7 @@ IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute fe= ature, ISmooksModelProvider formEditor, IEditorPart part) { if (feature =3D=3D Javabean12Package.eINSTANCE.getBeanType_Class()) { - return createBeanClassTextWithButton(parent, toolkit, propertyDescripto= r, model); + return createBeanClassTextWithButton(parent, toolkit, propertyDescripto= r, model , formEditor); } return super.createPropertyUI(toolkit, parent, propertyDescriptor, model= , feature, formEditor, part); } @@ -300,7 +300,7 @@ } = protected AttributeFieldEditPart createBeanClassTextWithButton(Composite = composite, FormToolkit toolkit, - final IItemPropertyDescriptor propertyDescriptor, final Object model) { - return SmooksUIUtils.createJavaTypeSearchFieldEditor(composite, toolkit,= propertyDescriptor, (EObject) model); + final IItemPropertyDescriptor propertyDescriptor, final Object model , = ISmooksModelProvider provider) { + return SmooksUIUtils.createJavaTypeSearchFieldEditor(composite, toolkit,= propertyDescriptor, (EObject) model , provider); } } Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/json/JsonDataWizard.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/json/JsonDataWizard.java 2009-09-13 21:39:20 UTC (= rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/json/JsonDataWizard.java 2009-09-14 12:36:19 UTC (= rev 17543) @@ -59,6 +59,9 @@ } = public boolean canFinish() { + if(pathPage !=3D null){ + return pathPage.isPageComplete(); + } if (configPage !=3D null && pathPage !=3D null) { if (configPage.isPageComplete() && pathPage.isPageComplete()) return true; @@ -75,15 +78,15 @@ public void addPages() { super.addPages(); if (pathPage =3D=3D null) { - pathPage =3D new JsonDataPathWizardPage("Json Input Data Selection ", n= ew String[] {}); + pathPage =3D new JsonDataPathWizardPage("JSON Input Data Selection ", n= ew String[] {"jsn"}); = } - if (configPage =3D=3D null) { - configPage =3D new JsonDataConfiguraitonWizardPage("Json data configura= tion page"); - configPage.setSmooksResourceList(resourceList); - } +// if (configPage =3D=3D null) { +// configPage =3D new JsonDataConfiguraitonWizardPage("Json data configu= ration page"); +// configPage.setSmooksResourceList(resourceList); +// } this.addPage(pathPage); - this.addPage(configPage); +// this.addPage(configPage); } = /* Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/json/JsonReaderUICreator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/json/JsonReaderUICreator.java 2009-09-13 21:39:20 = UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/json/JsonReaderUICreator.java 2009-09-14 12:36:19 = UTC (rev 17543) @@ -10,15 +10,28 @@ *************************************************************************= *****/ package org.jboss.tools.smooks.configuration.editors.json; = +import java.util.List; + +import org.eclipse.draw2d.ColorConstants; import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.swt.SWT; +import org.eclipse.swt.layout.FillLayout; +import org.eclipse.swt.layout.GridData; import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Group; import org.eclipse.ui.IEditorPart; import org.eclipse.ui.forms.widgets.FormToolkit; import org.jboss.tools.smooks.configuration.editors.AttributeFieldEditPart; +import org.jboss.tools.smooks.configuration.editors.ModelChildrenTablePane= lCreator; import org.jboss.tools.smooks.configuration.editors.PropertyUICreator; import org.jboss.tools.smooks.editor.ISmooksModelProvider; +import org.jboss.tools.smooks.model.json.JsonFactory; import org.jboss.tools.smooks.model.json.JsonPackage; +import org.jboss.tools.smooks.model.json.JsonReader; = /** * @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009 @@ -54,4 +67,40 @@ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model= , feature, formEditor, part); } = + @Override + public List createExtendUIOnBottom(AdapterFactory= EditingDomain editingdomain, + FormToolkit toolkit, Composite parent, Object model, ISmooksModelProvid= er formEditor, IEditorPart editorPart) { + if (model instanceof JsonReader) { + EObject keyMap =3D ((JsonReader) model).getKeyMap(); + if (keyMap !=3D null) { + Group group =3D new Group(parent, SWT.NONE); + group.setText("Key Maps"); + group.setBackground(ColorConstants.white); + FillLayout fl =3D new FillLayout(); + group.setLayout(fl); + + ModelChildrenTablePanelCreator creator =3D new ModelChildrenTablePanel= Creator(formEditor, keyMap, + toolkit, editorPart) { + + @Override + protected EStructuralFeature getChildrenFeature() { + return JsonPackage.Literals.KEY_MAP__KEY; + } + + @Override + protected EObject newChildModel() { + return JsonFactory.eINSTANCE.createKey(); + } + }; + creator.createChildrenTablePanel(group); + GridData gd =3D new GridData(GridData.FILL_HORIZONTAL); + gd.heightHint =3D 200; + gd.horizontalSpan =3D 2; + group.setLayoutData(gd); + } + } + + return super.createExtendUIOnBottom(editingdomain, toolkit, parent, mode= l, formEditor, editorPart); + } + } \ No newline at end of file Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/json12/Json12DataWizard.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/json12/Json12DataWizard.java 2009-09-13 21:39:20 U= TC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/json12/Json12DataWizard.java 2009-09-14 12:36:19 U= TC (rev 17543) @@ -55,10 +55,13 @@ = public Json12DataWizard() { super(); - this.setWindowTitle("JSON Input Data Wizard (version 1.2)"); + this.setWindowTitle("JSON Input Data Wizard"); } = public boolean canFinish() { + if(pathPage !=3D null){ + return pathPage.isPageComplete(); + } if (configPage !=3D null && pathPage !=3D null) { if (configPage.isPageComplete() && pathPage.isPageComplete()) return true; @@ -78,12 +81,12 @@ pathPage =3D new Json12DataPathWizardPage("Json Input Data Selection ",= new String[] {}); = } - if (configPage =3D=3D null) { - configPage =3D new Json12DataConfiguraitonWizardPage("Json data configu= ration page"); - configPage.setSmooksResourceList(resourceList); - } +// if (configPage =3D=3D null) { +// configPage =3D new Json12DataConfiguraitonWizardPage("Json data confi= guration page"); +// configPage.setSmooksResourceList(resourceList); +// } this.addPage(pathPage); - this.addPage(configPage); +// this.addPage(configPage); } = /* Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/s= mooks/configuration/editors/json12/Json12ReaderUICreator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/json12/Json12ReaderUICreator.java = (rev 0) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/json12/Json12ReaderUICreator.java 2009-09-14 12:36= :19 UTC (rev 17543) @@ -0,0 +1,92 @@ +/*************************************************************************= ****** + * Copyright (c) 2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.smooks.configuration.editors.json12; + +import java.util.List; + +import org.eclipse.draw2d.ColorConstants; +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.swt.SWT; +import org.eclipse.swt.layout.FillLayout; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Group; +import org.eclipse.ui.IEditorPart; +import org.eclipse.ui.forms.widgets.FormToolkit; +import org.jboss.tools.smooks.configuration.editors.AttributeFieldEditPart; +import org.jboss.tools.smooks.configuration.editors.ModelChildrenTablePane= lCreator; +import org.jboss.tools.smooks.configuration.editors.PropertyUICreator; +import org.jboss.tools.smooks.editor.ISmooksModelProvider; +import org.jboss.tools.smooks.model.json12.Json12Factory; +import org.jboss.tools.smooks.model.json12.Json12Package; +import org.jboss.tools.smooks.model.json12.Json12Reader; + +/** + * @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009 + */ +public class Json12ReaderUICreator extends PropertyUICreator { + + /* + * (non-Javadoc) + * = + * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator# + * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit, + * org.eclipse.swt.widgets.Composite, + * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Objec= t, + * org.eclipse.emf.ecore.EAttribute) + */ + public AttributeFieldEditPart createPropertyUI(FormToolkit toolkit, Compo= site parent, + IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute fe= ature, + ISmooksModelProvider formEditor, IEditorPart part) { + return super.createPropertyUI(toolkit, parent, propertyDescriptor, model= , feature, formEditor, part); + } + + @Override + public List createExtendUIOnBottom(AdapterFactory= EditingDomain editingdomain, + FormToolkit toolkit, Composite parent, Object model, ISmooksModelProvid= er formEditor, IEditorPart editorPart) { + if (model instanceof Json12Reader) { + EObject keyMap =3D ((Json12Reader) model).getKeyMap(); + if (keyMap !=3D null) { + Group group =3D new Group(parent, SWT.NONE); + group.setText("Key Maps"); + group.setBackground(ColorConstants.white); + FillLayout fl =3D new FillLayout(); + group.setLayout(fl); + + ModelChildrenTablePanelCreator creator =3D new ModelChildrenTablePanel= Creator(formEditor, keyMap, + toolkit, editorPart) { + + @Override + protected EStructuralFeature getChildrenFeature() { + return Json12Package.Literals.KEY_MAP__KEY; + } + + @Override + protected EObject newChildModel() { + return Json12Factory.eINSTANCE.createKey(); + } + }; + creator.createChildrenTablePanel(group); + GridData gd =3D new GridData(GridData.FILL_HORIZONTAL); + gd.heightHint =3D 200; + gd.horizontalSpan =3D 2; + group.setLayoutData(gd); + } + } + + return super.createExtendUIOnBottom(editingdomain, toolkit, parent, mode= l, formEditor, editorPart); + } + +} \ No newline at end of file Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org= /jboss/tools/smooks/configuration/editors/json12/Json12ReaderUICreator.java ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/rule10/Rules10RulebaseUICreator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/rule10/Rules10RulebaseUICreator.java 2009-09-13 21= :39:20 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/rule10/Rules10RulebaseUICreator.java 2009-09-14 12= :36:19 UTC (rev 17543) @@ -55,13 +55,13 @@ IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute fe= ature, ISmooksModelProvider formEditor, IEditorPart part) { if (feature =3D=3D Rules10Package.Literals.RULE_BASE__PROVIDER) { - return createBeanClassTextWithButton(parent, toolkit, propertyDescripto= r, model); + return createBeanClassTextWithButton(parent, toolkit, propertyDescripto= r, model , formEditor); } return super.createPropertyUI(toolkit, parent, propertyDescriptor, model= , feature, formEditor, part); } = protected AttributeFieldEditPart createBeanClassTextWithButton(Composite = composite, FormToolkit toolkit, - final IItemPropertyDescriptor propertyDescriptor, final Object model) { - return SmooksUIUtils.createJavaTypeSearchFieldEditor(composite, toolkit,= propertyDescriptor, (EObject) model); + final IItemPropertyDescriptor propertyDescriptor, final Object model , = ISmooksModelProvider provider) { + return SmooksUIUtils.createJavaTypeSearchFieldEditor(composite, toolkit,= propertyDescriptor, (EObject) model , provider); } } Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/smooks/ConditionTypeUICreator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/smooks/ConditionTypeUICreator.java 2009-09-13 21:3= 9:20 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/smooks/ConditionTypeUICreator.java 2009-09-14 12:3= 6:19 UTC (rev 17543) @@ -47,18 +47,18 @@ */ public AttributeFieldEditPart createPropertyUI(FormToolkit toolkit, Compo= site parent, IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute fe= ature, - ISmooksModelProvider formEditor,IEditorPart part) { + ISmooksModelProvider modelProvider,IEditorPart part) { if (feature =3D=3D SmooksPackage.eINSTANCE.getConditionType_Value()) { } if (feature =3D=3D SmooksPackage.eINSTANCE.getConditionType_Evaluator())= { - return SmooksUIUtils.createJavaTypeSearchFieldEditor(parent, toolkit, p= ropertyDescriptor, (EObject) model); + return SmooksUIUtils.createJavaTypeSearchFieldEditor(parent, toolkit, p= ropertyDescriptor, (EObject) model , modelProvider); } if (feature =3D=3D SmooksPackage.eINSTANCE.getConditionType_Id()) { } if (feature =3D=3D SmooksPackage.eINSTANCE.getConditionType_IdRef()) { } = - return super.createPropertyUI(toolkit, parent, propertyDescriptor, model= , feature, formEditor,part); + return super.createPropertyUI(toolkit, parent, propertyDescriptor, model= , feature, modelProvider,part); } = /* Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/smooks/ReaderTypeUICreator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/smooks/ReaderTypeUICreator.java 2009-09-13 21:39:2= 0 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/smooks/ReaderTypeUICreator.java 2009-09-14 12:36:1= 9 UTC (rev 17543) @@ -10,14 +10,32 @@ *************************************************************************= *****/ package org.jboss.tools.smooks.configuration.editors.smooks; = +import java.util.Collection; +import java.util.List; + +import org.eclipse.draw2d.ColorConstants; import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.edit.command.CommandParameter; +import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.swt.SWT; +import org.eclipse.swt.layout.FillLayout; +import org.eclipse.swt.layout.GridData; import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Group; +import org.eclipse.swt.widgets.Shell; import org.eclipse.ui.IEditorPart; import org.eclipse.ui.forms.widgets.FormToolkit; import org.jboss.tools.smooks.configuration.editors.AttributeFieldEditPart; +import org.jboss.tools.smooks.configuration.editors.ContainerChildrenTable= PanelCreator; +import org.jboss.tools.smooks.configuration.editors.MultiContainerChildren= AddtionTablePanel; import org.jboss.tools.smooks.configuration.editors.PropertyUICreator; import org.jboss.tools.smooks.editor.ISmooksModelProvider; +import org.jboss.tools.smooks.model.smooks.ReaderType; +import org.jboss.tools.smooks.model.smooks.SmooksFactory; import org.jboss.tools.smooks.model.smooks.SmooksPackage; = /** @@ -36,8 +54,8 @@ */ public AttributeFieldEditPart createPropertyUI(FormToolkit toolkit, Compo= site parent, IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute fe= ature, - ISmooksModelProvider formEditor,IEditorPart part) { - return super.createPropertyUI(toolkit, parent, propertyDescriptor, model= , feature, formEditor,part); + ISmooksModelProvider formEditor, IEditorPart part) { + return super.createPropertyUI(toolkit, parent, propertyDescriptor, model= , feature, formEditor, part); } = @Override @@ -47,5 +65,135 @@ } return super.isJavaTypeFeature(attribute); } - = + + @Override + public List createExtendUIOnBottom(AdapterFactory= EditingDomain editingdomain, + FormToolkit toolkit, Composite parent, Object model, ISmooksModelProvid= er formEditor, IEditorPart editorPart) { + if (model instanceof ReaderType) { + createHandlerGroup(parent, (ReaderType) model, toolkit, formEditor, edi= torPart); + createFeaturesGroup(parent, (ReaderType) model, toolkit, formEditor, ed= itorPart); + createParametersGroup(parent, (ReaderType) model, toolkit, formEditor, = editorPart); + } + + return super.createExtendUIOnBottom(editingdomain, toolkit, parent, mode= l, formEditor, editorPart); + } + + private void createParametersGroup(Composite parent, ReaderType reader, F= ormToolkit toolkit, + ISmooksModelProvider modelProvider, IEditorPart editorPart) { + Group group =3D new Group(parent, SWT.NONE); + group.setText("Parameters"); + group.setBackground(ColorConstants.white); + FillLayout fl =3D new FillLayout(); + group.setLayout(fl); + + ContainerChildrenTablePanelCreator creator =3D new ContainerChildrenTabl= ePanelCreator(modelProvider, reader, + toolkit, editorPart) { + + @Override + protected EObject newContainerModel() { + return SmooksFactory.eINSTANCE.createParamsType(); + } + + @Override + protected EStructuralFeature getChildrenFeature() { + return SmooksPackage.Literals.PARAMS_TYPE__PARAM; + } + + @Override + protected EObject newChildModel() { + return SmooksFactory.eINSTANCE.createParamType(); + } + }; + creator.setParentModel(reader.getParams()); + creator.setContainerFeature(SmooksPackage.Literals.READER_TYPE__PARAMS); + creator.createChildrenTablePanel(group); + GridData gd =3D new GridData(GridData.FILL_HORIZONTAL); + gd.heightHint =3D 180; + gd.horizontalSpan =3D 2; + group.setLayoutData(gd); + } + + private void createFeaturesGroup(Composite parent, ReaderType reader, For= mToolkit toolkit, + ISmooksModelProvider modelProvider, IEditorPart editorPart) { + Group group =3D new Group(parent, SWT.NONE); + group.setText("Features"); + group.setBackground(ColorConstants.white); + FillLayout fl =3D new FillLayout(); + group.setLayout(fl); + final AdapterFactoryEditingDomain editingDomain =3D (AdapterFactoryEditi= ngDomain) modelProvider + .getEditingDomain(); + final Shell shell =3D parent.getShell(); + Object temp =3D SmooksFactory.eINSTANCE.createFeaturesType(); + IEditingDomainItemProvider p =3D (IEditingDomainItemProvider) editingDom= ain.getAdapterFactory().adapt(temp, + IEditingDomainItemProvider.class); + final Collection children =3D p.getNewChildDescriptors(temp, editingD= omain, null); + + MultiContainerChildrenAddtionTablePanel creator =3D new MultiContainerCh= ildrenAddtionTablePanel(shell, children, + editingDomain, modelProvider, reader, toolkit, editorPart) { + + @Override + protected EStructuralFeature getChildFeature(CommandParameter cp) { + return cp.getEStructuralFeature(); + } + + @Override + protected EObject getNewChildInstance(CommandParameter cp) { + Object feature =3D cp.getEStructuralFeature(); + if (feature.equals(SmooksPackage.Literals.FEATURES_TYPE__SET_ON)) + return SmooksFactory.eINSTANCE.createSetOnType(); + if (feature.equals(SmooksPackage.Literals.FEATURES_TYPE__SET_OFF)) + return SmooksFactory.eINSTANCE.createSetOffType(); + return null; + } + + @Override + protected EObject newContainerModel() { + return SmooksFactory.eINSTANCE.createFeaturesType(); + } + + }; + creator.setParentModel(reader.getFeatures()); + creator.setContainerFeature(SmooksPackage.Literals.READER_TYPE__FEATURES= ); + creator.createChildrenTablePanel(group); + GridData gd =3D new GridData(GridData.FILL_HORIZONTAL); + gd.heightHint =3D 180; + gd.horizontalSpan =3D 2; + group.setLayoutData(gd); + } + + private void createHandlerGroup(Composite parent, ReaderType reader, Form= Toolkit toolkit, + ISmooksModelProvider modelProvider, IEditorPart editorPart) { + Group group =3D new Group(parent, SWT.NONE); + group.setText("Handlers"); + group.setBackground(ColorConstants.white); + FillLayout fl =3D new FillLayout(); + group.setLayout(fl); + + ContainerChildrenTablePanelCreator creator =3D new ContainerChildrenTabl= ePanelCreator(modelProvider, reader, + toolkit, editorPart) { + + @Override + protected EObject newContainerModel() { + return SmooksFactory.eINSTANCE.createHandlersType(); + } + + @Override + protected EStructuralFeature getChildrenFeature() { + return SmooksPackage.Literals.HANDLERS_TYPE__HANDLER; + } + + @Override + protected EObject newChildModel() { + return SmooksFactory.eINSTANCE.createHandlerType(); + } + }; + creator.setParentModel(reader.getHandlers()); + creator.setContainerFeature(SmooksPackage.Literals.READER_TYPE__HANDLERS= ); + creator.createChildrenTablePanel(group); + GridData gd =3D new GridData(GridData.FILL_HORIZONTAL); + gd.heightHint =3D 180; + gd.horizontalSpan =3D 2; + group.setLayoutData(gd); + } + } \ No newline at end of file Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/smooks/ResourceTypeUICreator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/smooks/ResourceTypeUICreator.java 2009-09-13 21:39= :20 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/smooks/ResourceTypeUICreator.java 2009-09-14 12:36= :19 UTC (rev 17543) @@ -38,13 +38,13 @@ */ public AttributeFieldEditPart createPropertyUI(FormToolkit toolkit, Compo= site parent, IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute fe= ature, - ISmooksModelProvider formEditor, IEditorPart part) { + ISmooksModelProvider modelProvider, IEditorPart part) { if (feature =3D=3D SmooksPackage.eINSTANCE.getResourceType_Value()) { - return SmooksUIUtils.createJavaTypeSearchFieldEditor(parent, toolkit, p= ropertyDescriptor, (EObject) model); + return SmooksUIUtils.createJavaTypeSearchFieldEditor(parent, toolkit, p= ropertyDescriptor, (EObject) model , modelProvider); } if (feature =3D=3D SmooksPackage.eINSTANCE.getResourceType_Type()) { } - return super.createPropertyUI(toolkit, parent, propertyDescriptor, model= , feature, formEditor,part); + return super.createPropertyUI(toolkit, parent, propertyDescriptor, model= , feature, modelProvider,part); } = } \ No newline at end of file Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/uitls/JsonInputDataParser.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/uitls/JsonInputDataParser.java 2009-09-13 21:39:20= UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/uitls/JsonInputDataParser.java 2009-09-14 12:36:19= UTC (rev 17543) @@ -25,7 +25,6 @@ import org.jboss.tools.smooks.configuration.editors.xml.TagList; import org.jboss.tools.smooks.configuration.editors.xml.XMLObjectAnalyzer; import org.jboss.tools.smooks.model.graphics.ext.InputType; -import org.jboss.tools.smooks.model.graphics.ext.ParamType; import org.jboss.tools.smooks.model.json.JsonReader; import org.jboss.tools.smooks.model.json.Key; import org.jboss.tools.smooks.model.json.KeyMap; @@ -33,7 +32,6 @@ import org.jboss.tools.smooks.model.json12.Json12Reader; import org.jboss.tools.smooks.model.smooks.AbstractReader; import org.jboss.tools.smooks.model.smooks.SmooksResourceListType; -import org.jboss.tools.smooks10.model.smooks.util.SmooksModelUtils; import org.milyn.Smooks; import org.milyn.cdr.Parameter; import org.milyn.json.JSONReaderConfigurator; @@ -120,91 +118,28 @@ public IXMLStructuredObject parseJsonFile(InputStream stream, InputType i= nputType, SmooksResourceListType resourceList) throws FileNotFoundException, Pars= erConfigurationException, DocumentException, InvocationTargetException { - List paramList =3D inputType.getParam(); - String rootName =3D null; - String arrayElementName =3D null; - String keyWhitspaceReplacement =3D null; - String keyPrefixOnNumeric =3D null; - String illegalElementNameCharReplacement =3D null; - String nullValueReplacement =3D null; - String encoding =3D null; - String indent =3D null; = - String type =3D inputType.getType(); - - Map keyMap =3D new HashMap(); - - for (Iterator iterator =3D paramList.iterator(); iterator.hasNext();)= { - ParamType paramType =3D (ParamType) iterator.next(); - if (paramType.getName().equals(LINK_JSON_READER)) { - if (paramType.getValue().equalsIgnoreCase("true") && resourceList !=3D= null) { - List readers =3D resourceList.getAbstractReader(); - int count =3D 0; - int index =3D -1; - for (Iterator iterator2 =3D readers.iterator(); iterator2.hasNext(= );) { - AbstractReader abstractReader =3D (AbstractReader) iterator2.next(); - if (SmooksModelUtils.INPUT_TYPE_JSON_1_1.equals(type)) { - if (abstractReader instanceof JsonReader) { - count++; - if (index =3D=3D -1) { - index =3D readers.indexOf(abstractReader); - } - } - } - if (SmooksModelUtils.INPUT_TYPE_JSON_1_2.equals(type)) { - if (abstractReader instanceof Json12Reader) { - count++; - if (index =3D=3D -1) { - index =3D readers.indexOf(abstractReader); - } - } - } - } - - if (count > 1) { - // throw new - // RuntimeException("The smooks config file should have only one JSO= N reader"); - } - if (index !=3D -1) { - return parseJsonFile(stream, readers.get(index)); - } - + List readers =3D resourceList.getAbstractReader(); + int count =3D 0; + int index =3D -1; + for (Iterator iterator2 =3D readers.iterator(); iterator2.hasNext();)= { + AbstractReader abstractReader =3D (AbstractReader) iterator2.next(); + if (abstractReader instanceof JsonReader || abstractReader instanceof J= son12Reader) { + count++; + if (index =3D=3D -1) { + index =3D readers.indexOf(abstractReader); } } - if (paramType.getName().equals(ROOT_NAME)) { - rootName =3D paramType.getValue(); - } - if (paramType.getName().startsWith(KEY)) { - String name =3D paramType.getName().substring(KEY.length(), paramType.= getName().length()); - String value =3D paramType.getValue(); - keyMap.put(name, value); - } - if (paramType.getName().equals(ARRAY_ELEMENT_NAME)) { - arrayElementName =3D paramType.getValue(); - } - if (paramType.getName().equals(ILLEGAL_REPLACE)) { - illegalElementNameCharReplacement =3D paramType.getValue(); - } - if (paramType.getName().equals(PREFIX_ON_NUMERIC)) { - keyPrefixOnNumeric =3D paramType.getValue(); - } - if (paramType.getName().equals(SPACE_REPLACE)) { - keyWhitspaceReplacement =3D paramType.getValue(); - } - if (paramType.getName().equals(ENCODING2)) { - encoding =3D paramType.getValue(); - } - if (paramType.getName().equals(NULL_REPLACE)) { - nullValueReplacement =3D paramType.getValue(); - } - - if (paramType.getName().equals(INDENT)) { - indent =3D paramType.getValue(); - } } = - return this.parseJsonFile(stream, rootName, arrayElementName, keyWhitspa= ceReplacement, keyPrefixOnNumeric, - illegalElementNameCharReplacement, nullValueReplacement, keyMap, inden= t, encoding); + if (count > 1) { + // throw new + // RuntimeException("The smooks config file should have only one JSON r= eader"); + } + if (index !=3D -1) { + return parseJsonFile(stream, readers.get(index)); + } + return null; } = public IXMLStructuredObject parseJsonFile(String filePath, InputType inpu= tType, SmooksResourceListType resourceList) Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/uitls/SmooksUIUtils.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/uitls/SmooksUIUtils.java 2009-09-13 21:39:20 UTC (= rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/uitls/SmooksUIUtils.java 2009-09-14 12:36:19 UTC (= rev 17543) @@ -134,15 +134,20 @@ import org.jboss.tools.smooks.contentassist.TypeContentProposalProvider; import org.jboss.tools.smooks.contentassist.TypeProposalLabelProvider; import org.jboss.tools.smooks.core.SmooksCoreActivator; +import org.jboss.tools.smooks.editor.ISmooksModelProvider; import org.jboss.tools.smooks.gef.tree.editparts.TreeNodeEditPart; import org.jboss.tools.smooks.gef.tree.model.TreeNodeModel; import org.jboss.tools.smooks.model.calc.CalcPackage; import org.jboss.tools.smooks.model.calc.Counter; import org.jboss.tools.smooks.model.csv.CsvPackage; +import org.jboss.tools.smooks.model.csv.CsvReader; +import org.jboss.tools.smooks.model.csv12.CSV12Reader; import org.jboss.tools.smooks.model.csv12.Csv12Package; import org.jboss.tools.smooks.model.datasource.DatasourcePackage; import org.jboss.tools.smooks.model.datasource.Direct; +import org.jboss.tools.smooks.model.edi.EDIReader; import org.jboss.tools.smooks.model.edi.EdiPackage; +import org.jboss.tools.smooks.model.edi12.EDI12Reader; import org.jboss.tools.smooks.model.edi12.Edi12Package; import org.jboss.tools.smooks.model.esbrouting.EsbroutingPackage; import org.jboss.tools.smooks.model.esbrouting.RouteBean; @@ -171,12 +176,15 @@ import org.jboss.tools.smooks.model.jmsrouting12.JMS12Router; import org.jboss.tools.smooks.model.jmsrouting12.Jmsrouting12Package; import org.jboss.tools.smooks.model.json.JsonPackage; +import org.jboss.tools.smooks.model.json.JsonReader; import org.jboss.tools.smooks.model.json12.Json12Package; +import org.jboss.tools.smooks.model.json12.Json12Reader; import org.jboss.tools.smooks.model.persistence12.Persistence12Package; import org.jboss.tools.smooks.model.rules10.Rules10Package; import org.jboss.tools.smooks.model.smooks.AbstractReader; import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig; import org.jboss.tools.smooks.model.smooks.ConditionType; +import org.jboss.tools.smooks.model.smooks.ReaderType; import org.jboss.tools.smooks.model.smooks.ResourceConfigType; import org.jboss.tools.smooks.model.smooks.SmooksPackage; import org.jboss.tools.smooks.model.smooks.SmooksResourceListType; @@ -1103,10 +1111,15 @@ } = public static AttributeFieldEditPart createJavaTypeSearchFieldEditor(Comp= osite parent, FormToolkit toolkit, - final IItemPropertyDescriptor propertyDescriptor, final EObject model) { + final IItemPropertyDescriptor propertyDescriptor, final EObject model ,= ISmooksModelProvider modelProvider) { if (model instanceof EObject) { AttributeFieldEditPart editpart =3D new AttributeFieldEditPart(); - final Resource resource =3D ((EObject) model).eResource(); + Resource r =3D ((EObject) model).eResource(); + if(r =3D=3D null){ + r =3D modelProvider.getSmooksModel().eResource(); + } + final Resource resource =3D r; + if(resource =3D=3D null) return null; URI uri =3D resource.getURI(); IResource workspaceResource =3D null; if (uri.isPlatformResource()) { @@ -2334,6 +2347,7 @@ } = public static IXMLStructuredObject getChildNodeWithName(String name, IXML= StructuredObject parent) { + if(parent =3D=3D null) return null; String tempName =3D name; boolean isAttribute =3D false; if (isAttributeName(tempName)) { @@ -2825,4 +2839,30 @@ } return SmooksConstants.VERSION_1_2; } + + public static String judgeInputType(EObject smooksModel) { + String inputType =3D null; + if (smooksModel instanceof DocumentRoot) { + return null; + } + + if (smooksModel instanceof org.jboss.tools.smooks.model.smooks.DocumentR= oot) { + SmooksResourceListType rlist =3D ((org.jboss.tools.smooks.model.smooks.= DocumentRoot)smooksModel).getSmooksResourceList(); + if(rlist.getAbstractReader().isEmpty()) return null; + AbstractReader reader =3D rlist.getAbstractReader().get(0); + if (CsvReader.class.isInstance(reader) || CSV12Reader.class.isInstance(= reader)) { + inputType =3D SmooksModelUtils.INPUT_TYPE_CSV; + } + if (EDIReader.class.isInstance(reader) || EDI12Reader.class.isInstance(= reader)) { + inputType =3D SmooksModelUtils.INPUT_TYPE_EDI_1_1; + } + if (JsonReader.class.isInstance(reader) || Json12Reader.class.isInstanc= e(reader)) { + inputType =3D SmooksModelUtils.INPUT_TYPE_JSON_1_1; + } + if (ReaderType.class.isInstance(reader)) { + inputType =3D SmooksModelUtils.INPUT_TYPE_CUSTOME; + } + } + return inputType; + } } Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/editors/wizard/ViewerInitorStore.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/wizard/ViewerInitorStore.java 2009-09-13 21:39:20 = UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/editors/wizard/ViewerInitorStore.java 2009-09-14 12:36:19 = UTC (rev 17543) @@ -144,7 +144,7 @@ = // for json 1.1 BaseViewerInitor jsonViewerInitor =3D new BaseViewerInitor(); - String name =3D "Json 1.1"; + String name =3D "JSON"; String description =3D "Select Json data file as the input data."; String iconPath =3D null; String typeID =3D SmooksModelUtils.INPUT_TYPE_JSON_1_1; @@ -174,7 +174,8 @@ json12ViewerInitor.setTreeContentProvider(new XMLStructuredDataContentPr= ovider()); json12ViewerInitor.setStructuredDataLoadWizard(new Json12DataWizard()); json12ViewerInitor.setWizardIconPath(GraphicsConstants.IMAGE_JAVA_FILE); - map.put(typeID, json12ViewerInitor); + // don't add this +// map.put(typeID, json12ViewerInitor); = = // for java @@ -232,10 +233,10 @@ = // for Csv 1.1 BaseViewerInitor csvViewerInitor =3D new BaseViewerInitor(); - name =3D "CSV 1.1"; - description =3D "Select CSV data file as the input data (version 1.1)."; + name =3D "CSV"; + description =3D "Select CSV data file as the input data."; iconPath =3D null; - typeID =3D SmooksModelUtils.INPUT_TYPE_CSV_1_1; + typeID =3D SmooksModelUtils.INPUT_TYPE_CSV; = csvViewerInitor.setName(name); csvViewerInitor.setDescription(description); @@ -260,11 +261,11 @@ csv12ViewerInitor.setLabelProvider(new XMLStructuredDataLabelProvider()); csv12ViewerInitor.setTreeContentProvider(new XMLStructuredDataContentPro= vider()); csv12ViewerInitor.setStructuredDataLoadWizard(new CSV12InputDataWizard()= ); - map.put(typeID, csv12ViewerInitor); +// map.put(typeID, csv12ViewerInitor); = // for EDI 1.1 BaseViewerInitor ediViewerInitor =3D new BaseViewerInitor(); - name =3D "EDI 1.1"; + name =3D "EDI"; description =3D "Select EDI data file as the input data."; iconPath =3D null; typeID =3D SmooksModelUtils.INPUT_TYPE_EDI_1_1; @@ -294,7 +295,7 @@ edi12ViewerInitor.setTreeContentProvider(new XMLStructuredDataContentPro= vider()); edi12ViewerInitor.setStructuredDataLoadWizard(new EDIReader12DataWizard(= )); // jsonViewerInitor.setWizardIconPath(GraphicsConstants.IMAGE_JAVA_FILE); - map.put(typeID, edi12ViewerInitor); +// map.put(typeID, edi12ViewerInitor); = = return map; Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/navigator/DefaultSetting.htm =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/navigator/DefaultSetting.htm 2009-09-13 21:39:20 UTC (rev = 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/navigator/DefaultSetting.htm 2009-09-14 12:36:19 UTC (rev = 17543) @@ -1,18 +1,7 @@
-

Overview : Define the default setting , edit the global paramters and define the condition, profile.

-

Reader : Edit the 'Reader' of Smooks in thi= s = -page. Reader page can also add/remove input = -message.
-Smooks tools generate the 'selector' via the input data and smooks reader = , open the SelectorDialog, -User can
select the element node to generate 'selector' for it.

-

-Message Filter : Add/Remove Java bean = binding , Routers and so on. -

+

Input : Define a new input type +and edit the input type configurations.

+

Input Messages: Specify the sample messages to use for Smooks Input

-
\ No newline at end of file +

--> \ No newline at end of file Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/s= mooks/configuration/navigator/MessageFilterNavigator.htm =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/navigator/MessageFilterNavigator.htm = (rev 0) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/navigator/MessageFilterNavigator.htm 2009-09-14 12:36:19 U= TC (rev 17543) @@ -0,0 +1,5 @@ +
+

Message Filter : Specify beans for = binding message data, routing messages, and so on.

+
\ No newline at end of file Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org= /jboss/tools/smooks/configuration/navigator/MessageFilterNavigator.htm ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/validate/SelectorValidator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/validate/SelectorValidator.java 2009-09-13 21:39:20 UTC (r= ev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/validate/SelectorValidator.java 2009-09-14 12:36:19 UTC (r= ev 17543) @@ -150,15 +150,19 @@ .getActiveWorkbenchWindow(); IWorkbenchPage activePage =3D window.getActivePage(); if (activePage !=3D null) { - IEditorPart part =3D activePage.findEditor(input); - if (part !=3D null && part instanceof AbstractSmooksFormEditor) { - extType =3D ((AbstractSmooksFormEditor) part).getSmooksGraphicsExt= (); - if (extType !=3D null) { - List l =3D SelectorCreationDialog.generateInputData(extTy= pe, finalList); - if (l !=3D null) { - list.addAll(l); + try { + IEditorPart part =3D activePage.findEditor(input); + if (part !=3D null && part instanceof AbstractSmooksFormEditor) { + extType =3D ((AbstractSmooksFormEditor) part).getSmooksGraphicsEx= t(); + if (extType !=3D null) { + List l =3D SelectorCreationDialog.generateInputData(extT= ype, finalList); + if (l !=3D null) { + list.addAll(l); + } } } + } catch (Throwable t) { + t.printStackTrace(); } } } Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/wizards/NewSmooksElementWizardPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/wizards/NewSmooksElementWizardPage.java 2009-09-13 21:39:2= 0 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/wizards/NewSmooksElementWizardPage.java 2009-09-14 12:36:1= 9 UTC (rev 17543) @@ -41,13 +41,10 @@ import org.jboss.tools.smooks.configuration.editors.actions.Database11Acti= onGrouper; import org.jboss.tools.smooks.configuration.editors.actions.Datasources11A= ctionGrouper; import org.jboss.tools.smooks.configuration.editors.actions.FragmentRoutin= g11ActionGrouper; -import org.jboss.tools.smooks.configuration.editors.actions.FragmentRoutin= g12ActionGrouper; import org.jboss.tools.smooks.configuration.editors.actions.ISmooksActionG= rouper; import org.jboss.tools.smooks.configuration.editors.actions.JavaBean11Acti= onGrouper; -import org.jboss.tools.smooks.configuration.editors.actions.JavaBean12Acti= onGrouper; import org.jboss.tools.smooks.configuration.editors.actions.PersistenceAct= ionGrouper; import org.jboss.tools.smooks.configuration.editors.actions.Reader11Action= Grouper; -import org.jboss.tools.smooks.configuration.editors.actions.Reader12Action= Grouper; import org.jboss.tools.smooks.configuration.editors.actions.Scripting11Act= ionGrouper; import org.jboss.tools.smooks.configuration.editors.actions.Templating11Ac= tionGrouper; import org.jboss.tools.smooks.configuration.editors.actions.Validation10Ac= tionGrouper; Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/configuration/wizards/SmooksConfigurationFileNewWizard.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/wizards/SmooksConfigurationFileNewWizard.java 2009-09-13 2= 1:39:20 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/configuration/wizards/SmooksConfigurationFileNewWizard.java 2009-09-14 1= 2:36:19 UTC (rev 17543) @@ -59,7 +59,7 @@ containerSelectionPage =3D new SmooksFileContainerSelectionPage("Smooks = Configuration File", (IStructuredSelection) selection); addPage(containerSelectionPage); - = + versionSelectionPage =3D new SmooksVersionSelectionPage("Smooks Version = Selection"); addPage(versionSelectionPage); } @@ -126,7 +126,7 @@ } stream.close(); // create ext file: - createExtentionFile(extFile,version, monitor); + createExtentionFile(extFile, version, null, monitor); } catch (IOException e) { SmooksConfigurationActivator.getDefault().log(e); } @@ -145,12 +145,13 @@ }); monitor.worked(1); } - = - public static void createExtentionFile(IFile file , String version , IPro= gressMonitor monitor) throws CoreException, IOException{ - if(monitor =3D=3D null){ + + public static void createExtentionFile(IFile file, String version, String= inputType, IProgressMonitor monitor) + throws CoreException, IOException { + if (monitor =3D=3D null) { monitor =3D new NullProgressMonitor(); } - InputStream stream1 =3D createExtContentStream(version); + InputStream stream1 =3D createExtContentStream(version, inputType); if (file.exists()) { file.setContents(stream1, true, true, monitor); } else { @@ -159,9 +160,21 @@ stream1.close(); } = - public static InputStream createExtContentStream(String version) { - String contents =3D "\n" - + " "; + public static InputStream createExtContentStream(String version, String i= nputType) { + String typeContents =3D null; + if (inputType !=3D null) { + typeContents =3D "inputType =3D \"" + inputType + "\""; + } + String contents=3D ""; + if (typeContents =3D=3D null) { + contents =3D "\n" + + " "; + }else{ + contents =3D "\n" + + " "; + } return new ByteArrayInputStream(contents.getBytes()); } = @@ -192,8 +205,7 @@ } = private void throwCoreException(String message) throws CoreException { - IStatus status =3D new Status(IStatus.ERROR, SmooksConfigurationActivato= r.PLUGIN_ID, IStatus.OK, - message, null); + IStatus status =3D new Status(IStatus.ERROR, SmooksConfigurationActivato= r.PLUGIN_ID, IStatus.OK, message, null); throw new CoreException(status); } = Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/edimap/editor/EDIMapFormPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/edimap/editor/EDIMapFormPage.java 2009-09-13 21:39:20 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/edimap/editor/EDIMapFormPage.java 2009-09-14 12:36:19 UTC (rev 17543) @@ -1036,7 +1036,8 @@ public List createLinkModel() { if (graphicalRootModel !=3D null && segments !=3D null) { List segmentList =3D segments.getSegment(); - return linkNode(segmentList); + List links =3D linkNode(segmentList); + return links; } return Collections.emptyList(); } @@ -1124,7 +1125,7 @@ if (data =3D=3D model) { return treeNodeModel; } - AbstractSmooksGraphicalModel m =3D findEDIGraphicalModel(model, treeNod= eModel.getChildrenWithoutDynamic()); + AbstractSmooksGraphicalModel m =3D findEDIGraphicalModel(model, treeNod= eModel.getChildren()); if (m !=3D null) { return m; } Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/editor/AbstractSmooksFormEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/editor/AbstractSmooksFormEditor.java 2009-09-13 21:39:20 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/editor/AbstractSmooksFormEditor.java 2009-09-14 12:36:19 UTC (rev 17543) @@ -89,10 +89,10 @@ import org.jboss.tools.smooks10.model.smooks.util.SmooksResourceFactoryImp= l; = public class AbstractSmooksFormEditor extends FormEditor implements IEditi= ngDomainProvider, - ISmooksModelValidateListener , ISmooksModelProvider , ISmooksGraphChange= Listener{ - = + ISmooksModelValidateListener, ISmooksModelProvider, ISmooksGraphChangeLi= stener { + protected List sourceSynchronizeListener =3D = new ArrayList(); - = + public static final String EDITOR_ID =3D "org.jboss.tools.smooks.edimap.e= ditors.MultiPageEditor"; = protected StructuredTextEditor textEditor =3D null; @@ -123,12 +123,12 @@ super(); initEditingDomain(); } - = - public void addSourceSynchronizeListener(ISourceSynchronizeListener liste= ner){ + + public void addSourceSynchronizeListener(ISourceSynchronizeListener liste= ner) { this.sourceSynchronizeListener.add(listener); } - = - public void removeSourceSynchronizeListener(ISourceSynchronizeListener li= stener){ + + public void removeSourceSynchronizeListener(ISourceSynchronizeListener li= stener) { this.sourceSynchronizeListener.remove(listener); } = @@ -222,7 +222,7 @@ = protected void initEditingDomain() { adapterFactory =3D new ComposedAdapterFactory(ComposedAdapterFactory.Des= criptor.Registry.INSTANCE); - = + // add smooks 1.1.2 EMF item provider model adapterFactory.addAdapterFactory(new ResourceItemProviderAdapterFactory(= )); adapterFactory.addAdapterFactory(new XslItemProviderAdapterFactory()); @@ -243,7 +243,7 @@ adapterFactory.addAdapterFactory(new FileRoutingItemProviderAdapterFacto= ry()); adapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactor= y()); adapterFactory.addAdapterFactory(new EsbroutingItemProviderAdapterFactor= y()); - = + // add smooks 1.2 EMF itemprovider adapterFactory.addAdapterFactory(new Json12ItemProviderAdapterFactory()); adapterFactory.addAdapterFactory(new Edi12ItemProviderAdapterFactory()); @@ -253,7 +253,7 @@ adapterFactory.addAdapterFactory(new Validation10ItemProviderAdapterFact= ory()); adapterFactory.addAdapterFactory(new Jmsrouting12ItemProviderAdapterFact= ory()); adapterFactory.addAdapterFactory(new Persistence12ItemProviderAdapterFac= tory()); - = + BasicCommandStack commandStack =3D new BasicCommandStack(); handleCommandStack(commandStack); editingDomain =3D new AdapterFactoryEditingDomain(adapterFactory, comman= dStack, new HashMap()); @@ -278,14 +278,14 @@ */ @Override protected void addPages() { -// configurationPage =3D createSmooksConfigurationFormPage(); -// addValidateListener(configurationPage); -// try { -// int index =3D this.addPage(configurationPage); -// setPageText(index, "Design"); -// } catch (PartInitException e) { -// e.printStackTrace(); -// } + // configurationPage =3D createSmooksConfigurationFormPage(); + // addValidateListener(configurationPage); + // try { + // int index =3D this.addPage(configurationPage); + // setPageText(index, "Design"); + // } catch (PartInitException e) { + // e.printStackTrace(); + // } = textEditor =3D createTextEditor(); try { @@ -304,7 +304,8 @@ } = /** - * @param smooksGraphicsExt the smooksGraphicsExt to set + * @param smooksGraphicsExt + * the smooksGraphicsExt to set */ public void setSmooksGraphicsExt(SmooksGraphicsExtType smooksGraphicsExt)= { this.smooksGraphicsExt =3D smooksGraphicsExt; @@ -361,8 +362,8 @@ }; return xmlEditor; } - = - protected void createNewModelViaTextPage(){ + + protected void createNewModelViaTextPage() { IDocument document =3D textEditor.getDocumentProvider().getDocument(text= Editor.getEditorInput()); String conents =3D document.get(); Resource resource =3D editingDomain.getResourceSet().getResources().get(= 0); @@ -372,13 +373,13 @@ this.smooksModel =3D resource.getContents().get(0); } catch (IOException e) { smooksModel =3D null; - SmooksConfigurationActivator.getDefault().log(e); + // SmooksConfigurationActivator.getDefault().log(e); } for (Iterator iterator =3D this.sourceSynchronizeListener.iterator();= iterator.hasNext();) { ISourceSynchronizeListener l =3D (ISourceSynchronizeListener) iterator.= next(); - try{ - l.sourceChange(smooksModel); - }catch(Exception e){ + try { + l.sourceChange(smooksModel); + } catch (Exception e) { e.printStackTrace(); } } @@ -386,12 +387,18 @@ = protected void handleDocumentChange() { createNewModelViaTextPage(); - validator.startValidate(smooksModel.eResource().getContents(), editingDo= main); + try { + validator.startValidate(smooksModel.eResource().getContents(), editingD= omain); + } catch (Throwable e) { + + } } = -// protected SmooksConfigurationFormPage createSmooksConfigurationFormPage= () { -// return new SmooksConfigurationFormPage(this, "DesignPage", "Design Pag= e"); -// } + // protected SmooksConfigurationFormPage createSmooksConfigurationFormPag= e() + // { + // return new SmooksConfigurationFormPage(this, "DesignPage", + // "Design Page"); + // } = protected void initSaveOptions(Map options) { = @@ -410,7 +417,7 @@ if (activeEditor !=3D null && activeEditor =3D=3D textEditor) { textEditor.doSave(monitor); ((BasicCommandStack) editingDomain.getCommandStack()).saveIsDone(); - = + } else { Map options =3D Collections.emptyMap(); initSaveOptions(options); @@ -431,7 +438,7 @@ } getSmooksGraphicsExt().eResource().save(Collections.emptyMap()); graphChanged =3D false; - = + firePropertyChange(PROP_DIRTY); if (this.smooksModel !=3D null) { validator.startValidate(smooksModel.eResource().getContents(), editing= Domain); @@ -471,7 +478,8 @@ if (extFile !=3D null && !extFile.exists()) { try { String version =3D SmooksUIUtils.judgeSmooksPlatformVersion(smooksMod= el); - SmooksConfigurationFileNewWizard.createExtentionFile(extFile, version= , null); + String inputType =3D SmooksUIUtils.judgeInputType(smooksModel); + SmooksConfigurationFileNewWizard.createExtentionFile(extFile, version= , inputType, null); } catch (Throwable t) { // ignore } @@ -567,19 +575,20 @@ } = public void graphChanged(SmooksGraphicsExtType extType) { - = + } = public void inputTypeChanged(SmooksGraphicsExtType extType) { - graphChanged =3D true; + graphChanged =3D true; firePropertyChange(PROP_DIRTY); } = public void graphPropertyChange(EStructuralFeature featre, Object value) { - if(featre.equals(GraphPackage.Literals.SMOOKS_GRAPHICS_EXT_TYPE__AUTHOR)= || = - featre.equals(GraphPackage.Literals.SMOOKS_GRAPHICS_EXT_TYPE__PLATFORM= _VERSION) || - featre.equals(GraphPackage.Literals.SMOOKS_GRAPHICS_EXT_TYPE__NAME)){ - graphChanged =3D true; + if (featre.equals(GraphPackage.Literals.SMOOKS_GRAPHICS_EXT_TYPE__AUTHOR) + || featre.equals(GraphPackage.Literals.SMOOKS_GRAPHICS_EXT_TYPE__PLATF= ORM_VERSION) + || featre.equals(GraphPackage.Literals.SMOOKS_GRAPHICS_EXT_TYPE__NAME) + || featre.equals(GraphPackage.Literals.SMOOKS_GRAPHICS_EXT_TYPE__INPUT= _TYPE)) { + graphChanged =3D true; firePropertyChange(PROP_DIRTY); } } Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/gef/tree/figures/TreeNodeFigure.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/gef/tree/figures/TreeNodeFigure.java 2009-09-13 21:39:20 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/gef/tree/figures/TreeNodeFigure.java 2009-09-14 12:36:19 UTC (rev 17543) @@ -54,9 +54,9 @@ private boolean expand =3D false; = private TreeNodeModel model; - = + private boolean focus; - = + private boolean selected; = public TreeNodeFigure(TreeNodeModel model) { @@ -79,7 +79,7 @@ public TreeNodeModel getModel() { return model; } - = + public boolean isExpand() { return expand; } @@ -87,11 +87,10 @@ public void setModel(TreeNodeModel model) { this.model =3D model; } - = + public Label getLabel() { return label; } - = = /** * @return the focus @@ -101,7 +100,8 @@ } = /** - * @param focus the focus to set + * @param focus + * the focus to set */ public void setFocus(boolean focus) { this.focus =3D focus; @@ -116,7 +116,8 @@ } = /** - * @param selected the selected to set + * @param selected + * the selected to set */ public void setSelected(boolean selected) { this.selected =3D selected; @@ -128,21 +129,22 @@ ToolbarLayout layout =3D new ToolbarLayout(); layout.setVertical(false); panelFigure.setLayoutManager(layout); - Figure spaceFigure =3D new Figure(){ + Figure spaceFigure =3D new Figure() { @Override public Dimension getPreferredSize(int hint, int hint2) { return new Dimension(SPACE_INT, 0); } }; panelFigure.add(spaceFigure); - contentFigure =3D new Figure(){ + contentFigure =3D new Figure() { = @Override protected void paintFigure(Graphics graphics) { super.paintFigure(graphics); -// graphics.drawRectangle(getBounds().x + 1 , getBounds().y + 1 , getBo= unds().width - 2 ,getBounds().height - 2 ); + // graphics.drawRectangle(getBounds().x + 1 , getBounds().y + 1 + // , getBounds().width - 2 ,getBounds().height - 2 ); } - = + }; panelFigure.add(contentFigure); contentFigure.setLayoutManager(new ToolbarLayout()); @@ -156,21 +158,25 @@ @Override public Dimension getPreferredSize(int hint, int hint2) { if (expand) { -// contentFigure.setSize(-1, -1); -// LayoutManager manager =3D contentFigure.getLayoutManager(); -// if(manager !=3D null){ -// manager.invalidate(); -// } + // contentFigure.setSize(-1, -1); + // LayoutManager manager =3D contentFigure.getLayoutManager(); + // if(manager !=3D null){ + // manager.invalidate(); + // } return super.getPreferredSize(hint, hint2); } else { LayoutManager layout =3D labelContainer.getLayoutManager(); if (layout !=3D null) layout.invalidate(); labelContainer.invalidateTree(); - Dimension size =3D labelContainer.getPreferredSize(hint, hint2); - Insets insets =3D getBorder().getInsets(null); - return new Dimension(size.width + insets.left + insets.right, - size.height + insets.bottom + insets.top); + try { + Dimension size =3D labelContainer.getPreferredSize(hint, hint2); + Insets insets =3D getBorder().getInsets(null); + return new Dimension(size.width + insets.left + insets.right, size.hei= ght + insets.bottom + insets.top); + } catch (Throwable t) { + return new Dimension(100,100); + } +// return super.getPreferredSize(hint, hint2); } } = @@ -196,35 +202,34 @@ } = }); - ((Clickable) clickNode) - .addMouseMotionListener(new MouseMotionListener() { + ((Clickable) clickNode).addMouseMotionListener(new MouseMotionListener()= { = - public void mouseDragged(MouseEvent me) { - } + public void mouseDragged(MouseEvent me) { + } = - public void mouseEntered(MouseEvent me) { - boolean hasChildren =3D model.hasChildren(); - if (!hasChildren) - return; - mouseEnter =3D true; - clickNode.repaint(); - } + public void mouseEntered(MouseEvent me) { + boolean hasChildren =3D model.hasChildren(); + if (!hasChildren) + return; + mouseEnter =3D true; + clickNode.repaint(); + } = - public void mouseExited(MouseEvent me) { - boolean hasChildren =3D model.hasChildren(); - if (!hasChildren) - return; - mouseEnter =3D false; - clickNode.repaint(); - } + public void mouseExited(MouseEvent me) { + boolean hasChildren =3D model.hasChildren(); + if (!hasChildren) + return; + mouseEnter =3D false; + clickNode.repaint(); + } = - public void mouseHover(MouseEvent me) { - } + public void mouseHover(MouseEvent me) { + } = - public void mouseMoved(MouseEvent me) { - } + public void mouseMoved(MouseEvent me) { + } = - }); + }); clickNode.setSize(new Dimension(CLICKNODE_WIDTH, CLICKNODE_HEIGHT)); = Figure imageFigure =3D new Figure() { @@ -235,15 +240,14 @@ Image i =3D model.getImage(); if (i !=3D null) ; - graphics.drawImage(i, getBounds().getTopLeft().x, - getBounds().getTopLeft().y + 2); + graphics.drawImage(i, getBounds().getTopLeft().x, getBounds().getTopL= eft().y + 2); } } }; imageFigure.setSize(new Dimension(18, 18)); = label =3D new Label(); - if(isFocus()){ + if (isFocus()) { } if (model !=3D null) { label.setText(model.getText()); @@ -270,17 +274,17 @@ public void setLabelText(String text) { label.setText(text); } - = - public void paint(Graphics graphics){ - if(isFocus()){ + + public void paint(Graphics graphics) { + if (isFocus()) { label.setForegroundColor(ColorConstants.blue); - }else{ + } else { label.setForegroundColor(ColorConstants.black); } - = - if(isSelected()){ + + if (isSelected()) { label.setForegroundColor(ColorConstants.lightBlue); - }else{ + } else { label.setForegroundColor(ColorConstants.black); } super.paint(graphics); @@ -294,20 +298,16 @@ boolean hasChildren =3D model.hasChildren(); if (hasChildren) { if (expand) { - Point point1 =3D new Point(center.x - width / 2, center.y - width - / 4); + Point point1 =3D new Point(center.x - width / 2, center.y - width / 4); Point point2 =3D new Point(point1.x + width, point1.y); - Point point3 =3D new Point(point1.x + width / 2, point1.y + width - / 2); + Point point3 =3D new Point(point1.x + width / 2, point1.y + width / 2); pointList.addPoint(point1); pointList.addPoint(point2); pointList.addPoint(point3); } else { - Point point1 =3D new Point(center.x - width / 4, center.y - width - / 2); + Point point1 =3D new Point(center.x - width / 4, center.y - width / 2); Point point2 =3D new Point(point1.x, point1.y + width); - Point point3 =3D new Point(point1.x + width / 2, point1.y + width - / 2); + Point point3 =3D new Point(point1.x + width / 2, point1.y + width / 2); pointList.addPoint(point1); pointList.addPoint(point2); pointList.addPoint(point3); @@ -321,13 +321,13 @@ graphics.popState(); } } - = - public void expandNode(){ + + public void expandNode() { expand =3D false; changeTreeExpansionState(); } - = - public void collapsedNode(){ + + public void collapsedNode() { expand =3D true; changeTreeExpansionState(); } @@ -344,12 +344,9 @@ if (parent !=3D null) { Rectangle oldRectangle =3D parent.getClientArea(); expand =3D !expand; - for (Iterator iterator =3D this.treeListener - .iterator(); iterator.hasNext();) { - ITreeFigureListener listener =3D (ITreeFigureListener) iterator - .next(); - TreeFigureExpansionEvent event =3D new TreeFigureExpansionEvent( - this); + for (Iterator iterator =3D this.treeListener.iter= ator(); iterator.hasNext();) { + ITreeFigureListener listener =3D (ITreeFigureListener) iterator.next(= ); + TreeFigureExpansionEvent event =3D new TreeFigureExpansionEvent(this); if (!expand) { listener.treeCollapsed(event); } else { @@ -366,15 +363,15 @@ Rectangle newRectangle =3D parent.getClientArea(); int w =3D Math.max(oldRectangle.width, newRectangle.width); int h =3D Math.max(oldRectangle.height, newRectangle.height); -// IFigure currentParent =3D contentFigure.getParent(); -// currentParent.invalidateTree(); -// LayoutManager layout =3D currentParent.getLayoutManager(); -// if(layout !=3D null){ -// layout.layout(currentParent); -// } + // IFigure currentParent =3D contentFigure.getParent(); + // currentParent.invalidateTree(); + // LayoutManager layout =3D currentParent.getLayoutManager(); + // if(layout !=3D null){ + // layout.layout(currentParent); + // } IFigure panel =3D parent.getParent(); if (panel !=3D null) { -// panel.repaint(); + // panel.repaint(); panel.repaint(oldRectangle.x, oldRectangle.y, w, h); } } Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/graphical/editors/SmooksGraphicalEditorPaletteRootCreator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/graphical/editors/SmooksGraphicalEditorPaletteRootCreator.java 2009-09-1= 3 21:39:20 UTC (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/graphical/editors/SmooksGraphicalEditorPaletteRootCreator.java 2009-09-1= 4 12:36:19 UTC (rev 17543) @@ -10,36 +10,124 @@ *************************************************************************= *****/ package org.jboss.tools.smooks.graphical.editors; = +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.edit.command.CommandParameter; +import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.gef.palette.ConnectionCreationToolEntry; +import org.eclipse.gef.palette.CreationToolEntry; import org.eclipse.gef.palette.MarqueeToolEntry; import org.eclipse.gef.palette.PaletteDrawer; import org.eclipse.gef.palette.PaletteRoot; import org.eclipse.gef.palette.SelectionToolEntry; import org.eclipse.gef.requests.CreationFactory; +import org.jboss.tools.smooks.configuration.editors.actions.Calc11ActionGr= ouper; +import org.jboss.tools.smooks.configuration.editors.actions.Database11Acti= onGrouper; +import org.jboss.tools.smooks.configuration.editors.actions.Datasources11A= ctionGrouper; +import org.jboss.tools.smooks.configuration.editors.actions.FragmentRoutin= g11ActionGrouper; +import org.jboss.tools.smooks.configuration.editors.actions.ISmooksActionG= rouper; +import org.jboss.tools.smooks.configuration.editors.actions.JavaBean11Acti= onGrouper; +import org.jboss.tools.smooks.configuration.editors.actions.PersistenceAct= ionGrouper; +import org.jboss.tools.smooks.configuration.editors.actions.Reader11Action= Grouper; +import org.jboss.tools.smooks.configuration.editors.actions.Scripting11Act= ionGrouper; +import org.jboss.tools.smooks.configuration.editors.actions.Templating11Ac= tionGrouper; +import org.jboss.tools.smooks.configuration.editors.actions.Validation10Ac= tionGrouper; import org.jboss.tools.smooks.gef.tree.model.TreeNodeConnection; +import org.jboss.tools.smooks.model.smooks.SmooksResourceListType; = /** * @author Dart dpeng(a)redhat.com - * + * = */ public class SmooksGraphicalEditorPaletteRootCreator { - public PaletteRoot createPaletteRoot(){ - PaletteRoot root=3D new PaletteRoot(); - PaletteDrawer drawer =3D new PaletteDrawer("Tools"); + + protected AdapterFactoryEditingDomain editingDomain; + + protected SmooksResourceListType resourceList; + + public SmooksGraphicalEditorPaletteRootCreator(AdapterFactoryEditingDomai= n editingDomain, + SmooksResourceListType resourceList) { + this.editingDomain =3D editingDomain; + this.resourceList =3D resourceList; + } + + public PaletteRoot createPaletteRoot() { + PaletteRoot root =3D new PaletteRoot(); + PaletteDrawer drawer =3D new PaletteDrawer("Noraml Tools"); drawer.add(new SelectionToolEntry()); drawer.add(new MarqueeToolEntry()); CreationFactory factory =3D new CreationFactory() { - = + public Object getObjectType() { return TreeNodeConnection.class; } - = + public Object getNewObject() { return null; } }; drawer.add(new ConnectionCreationToolEntry("Link", "Link", factory, null= , null)); root.add(drawer); + = + createPaletteDrawer(root); + = return root; } + + private void createPaletteDrawer(PaletteRoot root) { + if(resourceList =3D=3D null) return; + = + IEditingDomainItemProvider provider =3D (IEditingDomainItemProvider) edi= tingDomain.getAdapterFactory().adapt( + this.resourceList, IEditingDomainItemProvider.class); + if (provider !=3D null) { + Collection newChildrenDescripter =3D provider.getNewChildDescriptors= (this.resourceList, editingDomain, + null); + List grouperList =3D getSmooksActionGrouper(); + for (Iterator iterator =3D grouperList.iterator(); iterator.hasNext(= );) { + ISmooksActionGrouper iSmooksActionGrouper =3D (ISmooksActionGrouper) i= terator.next(); + PaletteDrawer drawer =3D new PaletteDrawer(iSmooksActionGrouper.getGro= upName()); + fillDrawer(drawer, newChildrenDescripter, iSmooksActionGrouper); + root.add(drawer); + } + } + } + + private void fillDrawer(PaletteDrawer drawer, Collection allchildren, = ISmooksActionGrouper grouper) { + for (Iterator iterator =3D allchildren.iterator(); iterator.hasNext()= ;) { + Object object =3D (Object) iterator.next(); + + if (grouper.belongsToGroup(object)) { + if (object instanceof CommandParameter) { + Object v =3D ((CommandParameter) object).getValue(); + v =3D AdapterFactoryEditingDomain.unwrap(v); + EClass clazz =3D ((EObject) v).eClass(); + CreationToolEntry toolEntry =3D new CreationToolEntry(clazz.getName()= , "", null, null, null); + drawer.add(toolEntry); + } + } + } + } + + private List getSmooksActionGrouper() { + List grouperList =3D new ArrayList(); + + grouperList.add(new JavaBean11ActionGrouper()); + grouperList.add(new Reader11ActionGrouper()); + grouperList.add(new Calc11ActionGrouper()); + grouperList.add(new Database11ActionGrouper()); + grouperList.add(new Datasources11ActionGrouper()); + grouperList.add(new FragmentRouting11ActionGrouper()); + grouperList.add(new Scripting11ActionGrouper()); + grouperList.add(new Templating11ActionGrouper()); + grouperList.add(new PersistenceActionGrouper()); + grouperList.add(new Validation10ActionGrouper()); + return grouperList; + } + } Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tool= s/smooks/graphical/editors/SmooksGraphicalEditorPart.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/graphical/editors/SmooksGraphicalEditorPart.java 2009-09-13 21:39:20 UTC= (rev 17542) +++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smoo= ks/graphical/editors/SmooksGraphicalEditorPart.java 2009-09-14 12:36:19 UTC= (rev 17543) @@ -73,6 +73,7 @@ import org.jboss.tools.smooks.graphical.editors.model.JavaBeanGraphModel; import org.jboss.tools.smooks.model.graphics.ext.FigureType; import org.jboss.tools.smooks.model.graphics.ext.GraphType; +import org.jboss.tools.smooks.model.graphics.ext.ISmooksGraphChangeListene= r; import org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType; import org.jboss.tools.smooks.model.smooks.DocumentRoot; import org.jboss.tools.smooks.model.smooks.SmooksResourceListType; @@ -83,7 +84,7 @@ * = */ public class SmooksGraphicalEditorPart extends GraphicalEditorWithPalette = implements ISelectionChangedListener, - ISourceSynchronizeListener { + ISourceSynchronizeListener, ISmooksGraphChangeListener { = public static final int EXECUTE_COMMAND =3D 0; = @@ -509,6 +510,32 @@ } } = + protected List createInputDataGraphModel() { + List inputGraphModel =3D new ArrayList(); + if (inputDataList !=3D null && root !=3D null) { + for (Iterator iterator =3D inputDataList.iterator(); iterator.hasNex= t();) { + Object object =3D (Object) iterator.next(); + ITreeContentProvider contentProvider =3D new XMLStructuredDataContentP= rovider(); + ILabelProvider labelProvider =3D new XMLStructuredDataLabelProvider(); + InputDataRootModel containerModel =3D new InputDataRootModel(); + + if (object instanceof JavaBeanModel) { + contentProvider =3D new JavabeanContentProvider(); + labelProvider =3D new JavabeanlabelProvider(); + + } + containerModel.getChildren().add((IXMLStructuredObject) object); + if (containerModel !=3D null) { + TreeContainerModel container =3D new InputDataContianerModel(containe= rModel, contentProvider, + labelProvider); + root.addTreeNode(container); + inputGraphModel.add(container); + } + } + } + return inputGraphModel; + } + @Override protected void hookGraphicalViewer() { // super.hookGraphicalViewer(); @@ -524,27 +551,11 @@ = } Object obj =3D smooksModelProvider.getSmooksModel(); + if(obj =3D=3D null) return; AdapterFactoryEditingDomain editingDomain =3D (AdapterFactoryEditingDoma= in) smooksModelProvider .getEditingDomain(); if (inputDataList !=3D null && obj !=3D null && obj instanceof DocumentR= oot && editingDomain !=3D null) { - for (Iterator iterator =3D inputDataList.iterator(); iterator.hasNex= t();) { - Object object =3D (Object) iterator.next(); - ITreeContentProvider contentProvider =3D new XMLStructuredDataContentP= rovider(); - ILabelProvider labelProvider =3D new XMLStructuredDataLabelProvider(); - InputDataRootModel containerModel =3D new InputDataRootModel(); - - if (object instanceof JavaBeanModel) { - contentProvider =3D new JavabeanContentProvider(); - labelProvider =3D new JavabeanlabelProvider(); - - } - containerModel.getChildren().add((IXMLStructuredObject) object); - if (containerModel !=3D null) { - TreeContainerModel container =3D new InputDataContianerModel(containe= rModel, contentProvider, - labelProvider); - root.addTreeNode(container); - } - } + createInputDataGraphModel(); SmooksResourceListType listType =3D ((DocumentRoot) obj).getSmooksResou= rceList(); List arcList =3D listType.getAbstractResourceConfig(); for (Iterator iterator =3D arcList.iterator(); iterator.hasNext();) { @@ -693,7 +704,7 @@ } = protected void expandConnectedModels(Collection conne= ctions) { - if (connections =3D=3D null) + if (connections =3D=3D null || connections.isEmpty()) return; List expanedTreeNodeList =3D new ArrayList= (); for (Iterator iterator =3D connections.iterator(); iterator.hasNext()= ;) { @@ -785,7 +796,63 @@ = @Override protected PaletteRoot getPaletteRoot() { - SmooksGraphicalEditorPaletteRootCreator creator =3D new SmooksGraphicalE= ditorPaletteRootCreator(); + SmooksGraphicalEditorPaletteRootCreator creator =3D new SmooksGraphicalE= ditorPaletteRootCreator( + (AdapterFactoryEditingDomain) this.smooksModelProvider.getEditingDomai= n(), getSmooksResourceListType()); return creator.createPaletteRoot(); } + = + private SmooksResourceListType getSmooksResourceListType(){ + if(smooksModelProvider !=3D null){ + Object obj =3D smooksModelProvider.getSmooksModel(); + smooksResourceList =3D null; + if (obj instanceof DocumentRoot) { + smooksResourceList =3D ((DocumentRoot) obj).getSmooksResourceList(); + } + return smooksResourceList; + } + return null; + } + + public void graphChanged(SmooksGraphicsExtType extType) { + + } + + public void graphPropertyChange(EStructuralFeature featre, Object value) { + + } + + public void inputTypeChanged(SmooksGraphicsExtType extType) { + if (root !=3D null) { + List newInputDataList =3D SelectorCreationDialog.generateInputD= ata(smooksModelProvider + .getSmooksGraphicsExt(), getSmooksResourceListType()); + + List inputs =3D new ArrayList(); + List children =3D root.getChildren(); + // remove all input data graph model + for (Iterator iterator =3D children.iterator(); iterator.hasNext();)= { + AbstractSmooksGraphicalModel abstractSmooksGraphicalModel =3D (Abstrac= tSmooksGraphicalModel) iterator + .next(); + if (abstractSmooksGraphicalModel instanceof InputDataContianerModel) { + inputs.add((InputDataContianerModel) abstractSmooksGraphicalModel); + } + } + + for (Iterator iterator =3D inputs.iterator(); iterator.hasNext();) { + InputDataContianerModel inputModel =3D (InputDataContianerModel) itera= tor.next(); + AbstractSmooksGraphicalModel.disconnectAllConnections(inputModel); + root.removeTreeNode(inputModel); + } + + inputDataList.clear(); + inputDataList.addAll(newInputDataList); + + // renew input data graph model + List inputGraphModel =3D createInputDataG= raphModel(); + if (inputGraphModel !=3D null && !inputGraphModel.isEmpty()) { + List connections =3D createConnectionModel(); + createConnection(inputGraphModel, connections); + expandConnectedModels(connections); + } + } + } } --===============1698932037354271621==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 08:49:56 2009 Content-Type: multipart/mixed; boundary="===============2532397884719650052==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17544 - in trunk/smooks/docs/reference/en: images/quick_start and 1 other directories. Date: Mon, 14 Sep 2009 08:49:56 -0400 Message-ID: <200909141249.n8ECnuGA006311@svn01.web.mwc.hst.phx2.redhat.com> --===============2532397884719650052== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: chukhutsina Date: 2009-09-14 08:49:56 -0400 (Mon, 14 Sep 2009) New Revision: 17544 Added: trunk/smooks/docs/reference/en/images/quick_start/quick_start9a.png trunk/smooks/docs/reference/en/images/quick_start/quick_start9b.png trunk/smooks/docs/reference/en/images/quick_start/quick_start9c.png trunk/smooks/docs/reference/en/images/quick_start/sourcemodel_structured= .jpg trunk/smooks/docs/reference/en/images/quick_start/targetmodel_structured= .jpg Modified: trunk/smooks/docs/reference/en/images/introduction/introduction2.png trunk/smooks/docs/reference/en/images/quick_start/quick_start6.png trunk/smooks/docs/reference/en/images/quick_start/quick_start9.png trunk/smooks/docs/reference/en/images/quick_start/quick_start_6a.png trunk/smooks/docs/reference/en/modules/quick_start.xml Log:

https://jira.jboss.org/jira/browse/JBDS-821 -Updated Quick Start section= according to the new design and functionality of the Smooks-tools.

Modified: trunk/smooks/docs/reference/en/images/introduction/introduction2.= png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/smooks/docs/reference/en/images/quick_start/quick_start6.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/smooks/docs/reference/en/images/quick_start/quick_start9.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Added: trunk/smooks/docs/reference/en/images/quick_start/quick_start9a.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/smooks/docs/reference/en/images/quick_start/quic= k_start9a.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/smooks/docs/reference/en/images/quick_start/quick_start9b.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/smooks/docs/reference/en/images/quick_start/quic= k_start9b.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/smooks/docs/reference/en/images/quick_start/quick_start9c.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/smooks/docs/reference/en/images/quick_start/quic= k_start9c.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/smooks/docs/reference/en/images/quick_start/quick_start_6a.= png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Added: trunk/smooks/docs/reference/en/images/quick_start/sourcemodel_struct= ured.jpg =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/smooks/docs/reference/en/images/quick_start/sour= cemodel_structured.jpg ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/smooks/docs/reference/en/images/quick_start/targetmodel_struct= ured.jpg =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/smooks/docs/reference/en/images/quick_start/targ= etmodel_structured.jpg ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/smooks/docs/reference/en/modules/quick_start.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/docs/reference/en/modules/quick_start.xml 2009-09-14 12:36= :19 UTC (rev 17543) +++ trunk/smooks/docs/reference/en/modules/quick_start.xml 2009-09-14 12:49= :56 UTC (rev 17544) @@ -16,7 +16,7 @@
Download Smooks Java-to-Java Example Visit smooks examples page to download the "java-to-java" example pr= oject. Tip: @@ -26,6 +26,57 @@ them into the eclipse Java project.
+
+ Mapping rules + At the begining of working with Smooks tools, + we need to understand the Java-to-Java mapping rules of this example. + The transform input Java class is example.sourcemod= el.Order , its structure looks like this : + +
+ Order class + + + + + +
+ Let's describe the structure of example.source= model.Order in short: + + Order class contains a Header clas= s and a List class. + The Header class has cu= stomerName,customerNumber,priorit= y as properties. + In Order class the objects of the OrderItem class are s= tored in the List. + OrderItem has price,prod= uctId,quantity as its properties. + + Let's look at the transform target Java class : LineOrder. + On the screen below you can see its structure: +
+ LineOrder class + + + + + +
+ + LineOrder class contains 3 propert= ies:customerId,customerName,priority and an array of lineItems. + The Header class has cus= tomerName,customerNumber,priority= as its properties. + OrderItem objects are stored in a List. + + Now it's the time to define the mapping rules to transform the inp= ut source java class to the target java class: + + Each instance of the Order class should be mapped with = an instance of the LineOrder class. + The value of customerName of the H= eader class should be assigned to the customerName pro= perty of a LineOrder instance. + The value of customerNumber of the= Header class should be assigned to the customerId pro= perty of a LineOrder instance. + The value of priority of the Heade= r class should be assigned to the priority property of= LineOrder instance. + For the orderitems List of the Ord= er instance, it's necessary to map a new lineItems array instance of LineOr= der , + and each OrderItem instance in the orderItems List should be transforme= d to a LineItem instance, + those instances will be put into the lineItems array. + The value of productId of the Orde= rItem instance should be assigned to the 'productCode' of LineItem.<= /listitem> + The value of price of OrderItem s= hould be assigned to the unitPrice of LineItem.= + = + +
+ =
Smooks Configuration File Wizard Select the Smooks Java-to-Java example project that you created an= d right-click, @@ -118,7 +169,14 @@ - + On the bottom of this editor there are 5 tabs, they are : + = + Overview, Reader, Message Filter, Graph, Source. +
+ Adding the input data + At first, we need to add the Order class as the input data. + To do this, click the Reader tab, swich to the Reader/Input editor pag= e + = -
+ = = -
- Choosing the transform data - To choose the transform data you should open Reader tab and click Add button in the Input Data section. @@ -235,10 +290,10 @@ = - Let's select the Order class from the example project as the sour= ce JavaBean class and the ListOrder class as the target JavaBean class.When= you selected the necessary java classes, click + Let's select the Order class from the example project as the sour= ce JavaBean class.After that click Finish - and you should see all added java classes displayed in the= Input Data Section - . + and you should see the just added java class, being displa= yed in the Input Data Section. +
Displaying the Structure of the Transformed Data @@ -247,8 +302,74 @@
+
+
+ Adding the target Bean + After adding the input data, let's switch to the Message Filter p= age: +
+ Displaying the Structure of the Transformed Data + + + + + +
+ Click the Add button, the Add Chil= d wizard page will be shown, let's select the Java Bin= ding v1.2 -> Bean v1.2 and click OK to add the Bean : + +
+ Add Child wizard + + + + + +
+ Then we can find on the Message Filter page the Bean v1= .2 item added, click on it ,a Bean v1.2 section should appear t= o the right of the page. + The section represents a GUI for editing Bean v1.2 properties: +
+ Bean v1.2 section + + + + + +
+ You should input + lineOrder as the Bean's id in the "Bean Id" field.Then you = should click Browse button + near the Class textfield and select LineOrder as = the Bean's class. + + + When you enter a value for the Class text field, + you can type 'Alt + /' and the content assist pop dialog will be show= n, + so it's will increase the efficiency. If 'Alt + /' doesn't work, + try to use the 'Ctrl + space'('Key Assist' of Eclipse). + + + Let's click the Add Binding link at the bott= om of this page, + it will show a dialog to ask the binding of what Bean properties you w= ill prefer to add. + Select all and click OK, you will see a list of Binding elements added= under the Bean item. + Then you should add an array of beans called lineItems<= /property> and a Bean LineItem.These two classes and Id values are: + Array Bean: + + BeanId : lineItems; + Class : example.trgmodel.LineItem[] + + LineItem Bean : + + BeanId : lineItem; + Class : example.trgmodel.LineItem + + + + In Smooks , to be an array of Beans , the class value should end with = '[]'. This means that this bean is an array type. + = + + + To finish this work, use the Add Binding lin= k to add all the bindings for the Bean. +
+ = + =
-
Mapping = @@ -296,7 +417,7 @@ = Make sense? - You should right click Resource List , select + You should open Design tab and click Add button. In opened Add Child Wi= zard,please, select Add Smooks Resource>Java Binding>Bindings. = First of all, you should bind --===============2532397884719650052==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 09:21:22 2009 Content-Type: multipart/mixed; boundary="===============4952438669594681675==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17545 - trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wizard/project. Date: Mon, 14 Sep 2009 09:21:17 -0400 Message-ID: <200909141321.n8EDLHHX012569@svn01.web.mwc.hst.phx2.redhat.com> --===============4952438669594681675== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-14 09:21:17 -0400 (Mon, 14 Sep 2009) New Revision: 17545 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiza= rd/project/ImportProjectFoldersPage.java Log: https://jira.jboss.org/jira/browse/JBIDE-3506 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/= ui/wizard/project/ImportProjectFoldersPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiz= ard/project/ImportProjectFoldersPage.java 2009-09-14 12:49:56 UTC (rev 1754= 4) +++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiz= ard/project/ImportProjectFoldersPage.java 2009-09-14 13:21:17 UTC (rev 1754= 5) @@ -79,8 +79,10 @@ XAttributeData[] ad =3D entityData.getAttributeData(); for (int i =3D 0; i < ad.length; i++) ad[i].setValue(""); //$NON-NLS-1$ = - context.setServletVersion(JSFPreference.DEFAULT_JSF_IMPORT_SERVLET_VERSI= ON.getValue()); - = + if(context.getServletVersion() =3D=3D null) { + context.setServletVersion(JSFPreference.DEFAULT_JSF_IMPORT_SERVLET_VERS= ION.getValue()); + } + = JSFTemplate t =3D new JSFTemplate(); String[] versions =3D t.getVersionList(); HUtil.hackAttributeConstraintList(new XEntityData[]{entityData}, 0, ATTR= IBUTES[3], versions); @@ -254,5 +256,5 @@ FieldEditor f =3D support.getFieldEditorByName("version"); //$NON-NLS-1$ f.setEnabled(b, supportControl); = } - = + } --===============4952438669594681675==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 09:49:47 2009 Content-Type: multipart/mixed; boundary="===============8637856813248669697==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17546 - trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/smooks/test/csvparser. Date: Mon, 14 Sep 2009 09:49:47 -0400 Message-ID: <200909141349.n8EDnlPF016914@svn01.web.mwc.hst.phx2.redhat.com> --===============8637856813248669697== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: DartPeng Date: 2009-09-14 09:49:46 -0400 (Mon, 14 Sep 2009) New Revision: 17546 Modified: trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools/= smooks/test/csvparser/CsvParserTest.java Log: JBIDE-4878 Change the unit test case Modified: trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss= /tools/smooks/test/csvparser/CsvParserTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools= /smooks/test/csvparser/CsvParserTest.java 2009-09-14 13:21:17 UTC (rev 1754= 5) +++ trunk/smooks/tests/org.jboss.tools.smooks.core.test/src/org/jboss/tools= /smooks/test/csvparser/CsvParserTest.java 2009-09-14 13:49:46 UTC (rev 1754= 6) @@ -101,11 +101,11 @@ IXMLStructuredObject child =3D tag.getChildren().get(0); assertEquals("csv-record", child.getNodeName()); = - checkNode("a",tag); - checkNode("b",tag); - checkNode("c",tag); - checkNode("d",tag); - checkNode("e",tag); + checkNode("firstname",tag); + checkNode("lastname",tag); + checkNode("gender",tag); + checkNode("age",tag); + checkNode("country",tag); } = private void checkTagList1(TagList tagList){ --===============8637856813248669697==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 11:06:25 2009 Content-Type: multipart/mixed; boundary="===============6059433639820331910==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17547 - in trunk/maven/plugins: org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/project/facet and 1 other directory. Date: Mon, 14 Sep 2009 11:06:25 -0400 Message-ID: <200909141506.n8EF6Pxb030543@svn01.web.mwc.hst.phx2.redhat.com> --===============6059433639820331910== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: snjeza Date: 2009-09-14 11:06:24 -0400 (Mon, 14 Sep 2009) New Revision: 17547 Modified: trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven= /core/libprov/MavenLibraryProviderInstallOperation.java trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/u= i/internal/project/facet/MavenFacetInstallPage.java Log: https://jira.jboss.org/jira/browse/JBIDE-4881 Maven Library Provider doesn'= t save correctly changes made by a user Modified: trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tool= s/maven/core/libprov/MavenLibraryProviderInstallOperation.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/mave= n/core/libprov/MavenLibraryProviderInstallOperation.java 2009-09-14 13:49:4= 6 UTC (rev 17546) +++ trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/mave= n/core/libprov/MavenLibraryProviderInstallOperation.java 2009-09-14 15:06:2= 4 UTC (rev 17547) @@ -58,14 +58,11 @@ URIConverter.WriteableOutputStream uws =3D null; FileWriter fw =3D null; try { - if (providerFile.exists()) { - url =3D providerFile.toURL(); - } else { - Map params =3D provider.getParams(); - String pomURLString =3D params.get("template"); //$NON-NLS-1$ - URL platformURL =3D new URL(pomURLString); - url =3D FileLocator.resolve(platformURL); - } + Map params =3D provider.getParams(); + String pomURLString =3D params.get("template"); //$NON-NLS-1$ + URL platformURL =3D new URL(pomURLString); + url =3D FileLocator.resolve(platformURL); + = libraryResource =3D MavenCoreActivator.loadResource(url); libraryResource.getContents().clear(); libraryResource.getContents().add(libraryModel); @@ -84,12 +81,16 @@ try { uws.flush(); uws.close(); - } catch (IOException ignore) {} + } catch (IOException e) { + MavenCoreActivator.log(e); + } } if (fw !=3D null) { try { fw.close(); - } catch (IOException ignore) {} + } catch (IOException e) { + MavenCoreActivator.log(e); + } } if (libraryResource !=3D null) { libraryResource.unload(); Modified: trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/= maven/ui/internal/project/facet/MavenFacetInstallPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/= ui/internal/project/facet/MavenFacetInstallPage.java 2009-09-14 13:49:46 UT= C (rev 17546) +++ trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/= ui/internal/project/facet/MavenFacetInstallPage.java 2009-09-14 15:06:24 UT= C (rev 17547) @@ -67,7 +67,10 @@ composite.setLayoutData(gd); = String projectName =3D getDataModel().getStringProperty(IFacetProjectCre= ationDataModelProperties.FACET_PROJECT_NAME); - IProject project =3D ResourcesPlugin.getWorkspace().getRoot().getProject= (projectName); + IProject project =3D null; + if (projectName !=3D null && projectName.trim().length() > 0) { + project =3D ResourcesPlugin.getWorkspace().getRoot().getProject(project= Name); + } boolean mavenProjectExists =3D false; if (project !=3D null && project.isOpen()) { try { --===============6059433639820331910==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 12:17:42 2009 Content-Type: multipart/mixed; boundary="===============4336600847026990973==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17548 - in trunk: jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/preferences and 8 other directories. Date: Mon, 14 Sep 2009 12:17:42 -0400 Message-ID: <200909141617.n8EGHgPb013490@svn01.web.mwc.hst.phx2.redhat.com> --===============4336600847026990973== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dmaliarevich Date: 2009-09-14 12:17:42 -0400 (Mon, 14 Sep 2009) New Revision: 17548 Added: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/pr= eferences/IVpePreferencesPage.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/pre= ferences/SliderFieldEditor.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/pre= ferences/VpeComboFieldEditor.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/pre= ferences/VpePreferencesPage.java Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/JSPMultiPageEditor.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/JSPTextEditor.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vpe= EditorPart.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vpe= VisualDomBuilder.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/bun= dle/BundleMap.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/moz= illa/MozillaEditor.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/pre= ferences/VpeEditorPreferencesPage.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/tem= plate/VpeAnyCreator.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xpl= /CustomSashForm.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xpl= /EditorSettings.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xpl= /SashSetting.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/V= peUIMessages.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/m= essages.properties trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar/Sel= ectionBar.java Log: https://jira.jboss.org/jira/browse/JBIDE-4671, VPE Preference Page was rema= de. Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/jspeditor/JSPMultiPageEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/JSPMultiPageEditor.java 2009-09-14 15:06:24 UTC (rev 17547) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/JSPMultiPageEditor.java 2009-09-14 16:17:42 UTC (rev 17548) @@ -7,7 +7,7 @@ * * Contributors: * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = + *************************************************************************= *****/ package org.jboss.tools.jst.jsp.jspeditor; = import java.util.Properties; @@ -79,7 +79,7 @@ import org.jboss.tools.jst.jsp.JspEditorPlugin; import org.jboss.tools.jst.jsp.editor.IVisualEditor; import org.jboss.tools.jst.jsp.editor.IVisualEditorFactory; -import org.jboss.tools.jst.jsp.preferences.VpePreference; +import org.jboss.tools.jst.jsp.preferences.IVpePreferencesPage; import org.jboss.tools.jst.web.tld.VpeTaglibManager; import org.jboss.tools.jst.web.tld.VpeTaglibManagerProvider; = @@ -88,20 +88,13 @@ XModelTreeListener, ITextEditor, IGotoMarker, VpeTaglibManagerProvider, IReusableEditor, ITextEditorExtension, ITextEditorExtension2, ITextEditorExtension3, INavigationLocationProvider, IMultiPageEditor { - = + public static final String EDITOR_ID =3D "org.jboss.tools.jst.jsp.jspedit= or.JSPTextEditor"; //$NON-NLS-1$ - = - //option loads preview tab - private static final String PREVIEW_TAB=3D"Preview"; //$NON-NLS-1$ - //visual tab - private static final String VISUAL_SOURCE_TAB=3D"Visual/Source"; //$NON-N= LS-1$ - = - private static final String VPE_VISUAL_EDITOR_IMPL_ID=3D"org.jboss.tools.= vpe.org.jboss.tools.vpe.editor.VpeEditorPartFactory"; //$NON-NLS-1$ - //source tab - private static final String SOURCE_TAB=3D"Source"; //$NON-NLS-1$ - = - private static final String VISUAL_EDITOR_IMPL_EXTENSION_POINT_NAME=3D"vi= sulaEditorImplementations"; //$NON-NLS-1$ = + private static final String VPE_VISUAL_EDITOR_IMPL_ID =3D "org.jboss.tool= s.vpe.org.jboss.tools.vpe.editor.VpeEditorPartFactory"; //$NON-NLS-1$ + + private static final String VISUAL_EDITOR_IMPL_EXTENSION_POINT_NAME =3D "= visulaEditorImplementations"; //$NON-NLS-1$ + private IVisualEditor visualEditor; = private int visualSourceIndex; @@ -109,19 +102,19 @@ private JSPTextEditor sourceEditor; = private int sourceIndex; - = + /** composite control for default web-browser */ - //private IVisualEditor previewWebBrowser; - = + // private IVisualEditor previewWebBrowser; + /** index of tab contain default web-browser */ private int previewIndex; = -// private boolean osWindows =3D true; + // private boolean osWindows =3D true; = protected XModelTreeListenerSWTSync syncListener =3D new XModelTreeListen= erSWTSync( this); = -// private int oldPage =3D -1; + // private int oldPage =3D -1; = private ConfigurableContentOutlinePage outlinePage =3D null; = @@ -135,7 +128,7 @@ static IVisualEditorFactory visualEditorFactory; = static { - //Fix For JBIDE-2674 + // Fix For JBIDE-2674 try { IExtension visualEditorExtension =3D Platform.getExtensionRegistry() .getExtension(JspEditorPlugin.PLUGIN_ID, @@ -165,47 +158,23 @@ } = private void loadSelectedTab() { - IFile file =3D getFile(); - try { - String q =3D (file =3D=3D null) ? null : file.getPersistentProperty(per= sistentTabQualifiedName); - if (q =3D=3D null) { - if (VISUAL_SOURCE_TAB.equalsIgnoreCase(VpePreference.EDITOR_VIEW_OPTION - .getValue())) - selectedPageIndex =3D 0; - else if (SOURCE_TAB - .equalsIgnoreCase(VpePreference.EDITOR_VIEW_OPTION - .getValue())) - selectedPageIndex =3D 1; - else if (PREVIEW_TAB - .equalsIgnoreCase(VpePreference.EDITOR_VIEW_OPTION - .getValue())) - selectedPageIndex =3D 2; - else - selectedPageIndex =3D 0; - } else { - int qi =3D Integer.parseInt(q); - = - if (qi >=3D 0 && qi < getTabFolder().getItemCount()) - selectedPageIndex =3D qi; - } - - } catch (CoreException e) { - JspEditorPlugin.getPluginLog().logError(e); + String defaultVpeTab =3D JspEditorPlugin.getDefault() + .getPreferenceStore().getString( + IVpePreferencesPage.DEFAULT_VPE_TAB); + if (IVpePreferencesPage.DEFAULT_VPE_TAB_VISUAL_SOURCE_VALUE + .equalsIgnoreCase(defaultVpeTab)) { selectedPageIndex =3D 0; + } else if (IVpePreferencesPage.DEFAULT_VPE_TAB_SOURCE_VALUE + .equalsIgnoreCase(defaultVpeTab)) { + selectedPageIndex =3D 1; + } else if (IVpePreferencesPage.DEFAULT_VPE_TAB_PREVIEW_VALUE + .equalsIgnoreCase(defaultVpeTab)) { + selectedPageIndex =3D 2; + } else { + selectedPageIndex =3D 0; } } = - private void saveSelectedTab() { - IFile file =3D getFile(); - if(file =3D=3D null || !file.exists()) return; - String q =3D "" + selectedPageIndex; //$NON-NLS-1$ - try { - file.setPersistentProperty(persistentTabQualifiedName, q); - } catch (CoreException e) { - JspEditorPlugin.getPluginLog().logWarning(e); - } - } - public void superPageChange(int newPageIndex) { Control control =3D getControl(visualSourceIndex); if (control !=3D null) { @@ -232,28 +201,27 @@ } } = - protected void pageChange(int newPageIndex) { + public void pageChange(int newPageIndex) { selectedPageIndex =3D newPageIndex; - if(visualEditor!=3Dnull) { - if (newPageIndex =3D=3D visualSourceIndex) { - if (visualEditor.getVisualEditor() =3D=3D null) { - visualEditor.createVisualEditor(); - } - visualEditor.setVisualMode(IVisualEditor.VISUALSOURCE_MODE); - = - }else if (newPageIndex =3D=3D sourceIndex) - visualEditor.setVisualMode(IVisualEditor.SOURCE_MODE); - else if (newPageIndex =3D=3D previewIndex) { - if (visualEditor.getPreviewWebBrowser() =3D=3D null) { - visualEditor.createPreviewBrowser(); - } - visualEditor.setVisualMode(IVisualEditor.PREVIEW_MODE); = + if (visualEditor !=3D null) { + if (newPageIndex =3D=3D visualSourceIndex) { + if (visualEditor.getVisualEditor() =3D=3D null) { + visualEditor.createVisualEditor(); } - } = + visualEditor.setVisualMode(IVisualEditor.VISUALSOURCE_MODE); + } else if (newPageIndex =3D=3D sourceIndex) + visualEditor.setVisualMode(IVisualEditor.SOURCE_MODE); + else if (newPageIndex =3D=3D previewIndex) { + if (visualEditor.getPreviewWebBrowser() =3D=3D null) { + visualEditor.createPreviewBrowser(); + } + visualEditor.setVisualMode(IVisualEditor.PREVIEW_MODE); + } + } superPageChange(newPageIndex); - = + } - = + public void setInput(IEditorInput input) { super.setInput(XModelObjectEditorInput.checkInput(input)); if (getEditorInput() instanceof IModelObjectEditorInput) { @@ -264,10 +232,9 @@ && sourceEditor.getEditorInput() !=3D getEditorInput() && sourceEditor.getEditorInput() !=3D null) { if (sourceEditor instanceof AbstractTextEditor) { - ((AbstractTextEditor) sourceEditor) - .setInput(getEditorInput()); + ((AbstractTextEditor) sourceEditor).setInput(getEditorInput()); } - if(visualEditor!=3Dnull) { + if (visualEditor !=3D null) { visualEditor.setInput(getEditorInput()); } updateTitle(); @@ -277,7 +244,8 @@ = private void updateFile() { IFile file =3D getFile(); - if (file =3D=3D null) return; + if (file =3D=3D null) + return; try { file.refreshLocal(0, null); } catch (CoreException e) { @@ -299,11 +267,11 @@ * = */ private ISelectionProvider selectionProvider =3D null; - - private JSPMultiPageEditorSite site; = + private JSPMultiPageEditorSite site; + protected IEditorSite createSite(IEditorPart editor) { - site =3D new JSPMultiPageEditorSite(this, editor) { + site =3D new JSPMultiPageEditorSite(this, editor) { private ISelectionChangedListener postSelectionChangedListener =3D null; = private ISelectionChangedListener getPostSelectionChangedListener() { @@ -333,7 +301,7 @@ } = public String getId() { - return getSite().getId(); = + return getSite().getId(); } = /** @@ -373,21 +341,21 @@ } } = - - public void dispose() { - ISelectionProvider provider =3D getSelectionProvider(); + public void dispose() { + ISelectionProvider provider =3D getSelectionProvider(); if (provider !=3D null) { provider .removeSelectionChangedListener(getSelectionChangedListener()); - } - if (provider instanceof IPostSelectionProvider && postSelectionChanged= Listener !=3D null) { - ((IPostSelectionProvider) provider) - .removePostSelectionChangedListener(postSelectionChangedListener); - = - } - postSelectionChangedListener =3D null; - super.dispose(); - } + } + if (provider instanceof IPostSelectionProvider + && postSelectionChangedListener !=3D null) { + ((IPostSelectionProvider) provider) + .removePostSelectionChangedListener(postSelectionChangedListener); + + } + postSelectionChangedListener =3D null; + super.dispose(); + } }; return site; } @@ -402,51 +370,51 @@ createPagesForVPE(); loadSelectedTab(); = -// if (selectedPageIndex =3D=3D sourceIndex) { -// visualEditor.setVisualMode(IVisualEditor.SOURCE_MODE); -// // switchOutlineToJSPEditor(); -// } -// if (selectedPageIndex =3D=3D 2) { -// setActivePage(0); -// pageChange(0); -// if (visualEditor !=3D null) -// visualEditor.maximizeSource(); -// selectedPageIndex=3D0; -// } else if (selectedPageIndex =3D=3D 1) { -// setActivePage(0); -// pageChange(0); -// if (visualEditor !=3D null) -// visualEditor.maximizeVisual(); -// selectedPageIndex=3D0; -// } else { -// selectedPageIndex=3D0; -// setActivePage(selectedPageIndex); -// pageChange(selectedPageIndex); -// } + // if (selectedPageIndex =3D=3D sourceIndex) { + // visualEditor.setVisualMode(IVisualEditor.SOURCE_MODE); + // // switchOutlineToJSPEditor(); + // } + // if (selectedPageIndex =3D=3D 2) { + // setActivePage(0); + // pageChange(0); + // if (visualEditor !=3D null) + // visualEditor.maximizeSource(); + // selectedPageIndex=3D0; + // } else if (selectedPageIndex =3D=3D 1) { + // setActivePage(0); + // pageChange(0); + // if (visualEditor !=3D null) + // visualEditor.maximizeVisual(); + // selectedPageIndex=3D0; + // } else { + // selectedPageIndex=3D0; + // setActivePage(selectedPageIndex); + // pageChange(selectedPageIndex); + // } switch (selectedPageIndex) { - = + case 0: { - //source/visual mode + // source/visual mode setActivePage(selectedPageIndex); pageChange(selectedPageIndex); break; - } + } case 1: { - //source mode + // source mode setActivePage(selectedPageIndex); pageChange(selectedPageIndex); break; - } + } case 2: { - //preview mode - setActivePage(selectedPageIndex); - pageChange(selectedPageIndex); - break; + // preview mode + setActivePage(selectedPageIndex); + pageChange(selectedPageIndex); + break; } default: { - //by default we sets source/visual mode = + // by default we sets source/visual mode setActivePage(0); - pageChange(0); = + pageChange(0); break; } } @@ -458,31 +426,32 @@ = private void createPagesForVPE() { sourceEditor =3D new JSPTextEditor(this); - if(visualEditorFactory!=3Dnull) { + if (visualEditorFactory !=3D null) { visualEditor =3D visualEditorFactory.createVisualEditor(this, sourceEditor, false); } try { - if(visualEditor!=3Dnull) { + if (visualEditor !=3D null) { visualSourceIndex =3D addPage(visualEditor, getEditorInput()); - setPageText(visualSourceIndex, JSPEditorMessages.JSPMultiPageEditor_Ta= bLabel_VisualSource); = + setPageText( + visualSourceIndex, + JSPEditorMessages.JSPMultiPageEditor_TabLabel_VisualSource); setPartName(visualEditor.getTitle()); } } catch (PartInitException e) { JspEditorPlugin.getPluginLog().logError(e); } - /*try { - visualIndex =3D addPage(visualEditor, getEditorInput()); - setPageText(visualIndex, JSPEditorMessages - .getString(VISUAL_TAB_LABEL)); - setPartName(visualEditor.getTitle()); - } catch (PartInitException e) { - JspEditorPlugin.getPluginLog().logError(e); - }*/ + /* + * try { visualIndex =3D addPage(visualEditor, getEditorInput()); + * setPageText(visualIndex, JSPEditorMessages + * .getString(VISUAL_TAB_LABEL)); setPartName(visualEditor.getTitle()); + * } catch (PartInitException e) { + * JspEditorPlugin.getPluginLog().logError(e); } + */ = try { - String sourceTabLabel =3D JSPEditorMessages.JSPMultiPageEditor_TabLabel= _Source; = - if(visualEditor!=3Dnull) { + String sourceTabLabel =3D JSPEditorMessages.JSPMultiPageEditor_TabLabel= _Source; + if (visualEditor !=3D null) { sourceIndex =3D addPage(visualEditor, getEditorInput()); setPageText(sourceIndex, sourceTabLabel); setPartName(visualEditor.getTitle()); @@ -497,9 +466,10 @@ = // Add tab contain default web-browser try { - if(visualEditor!=3Dnull) { + if (visualEditor !=3D null) { previewIndex =3D addPage(visualEditor, getEditorInput()); - setPageText(previewIndex, JSPEditorMessages.JSPMultiPageEditor_TabLabe= l_Preview); = + setPageText(previewIndex, + JSPEditorMessages.JSPMultiPageEditor_TabLabel_Preview); setPartName(visualEditor.getTitle()); } } catch (PartInitException e) { @@ -530,7 +500,7 @@ sourceEditor.addPropertyListener(pcl); sourceEditor.doSaveAs(); sourceEditor.removePropertyListener(pcl); - try { = + try { if (old.isModified()) new DiscardFileHandler().executeHandler(old, new Properties()); } catch (XModelException e) { @@ -539,8 +509,8 @@ } = public void gotoMarker(final IMarker marker) { - //setActivePage(IVisualEditor.VISUALSOURCE_MODE); - //pageChange(IVisualEditor.VISUALSOURCE_MODE); + // setActivePage(IVisualEditor.VISUALSOURCE_MODE); + // pageChange(IVisualEditor.VISUALSOURCE_MODE); setActivePage(IVisualEditor.SOURCE_MODE); pageChange(IVisualEditor.SOURCE_MODE); IGotoMarker adapter =3D (IGotoMarker) sourceEditor @@ -575,7 +545,6 @@ } = public void dispose() { - saveSelectedTab(); IEditorActionBarContributor contributor =3D getEditorSite() .getActionBarContributor(); if (contributor !=3D null @@ -583,18 +552,18 @@ ((MultiPageEditorActionBarContributor) contributor) .setActivePage(null); } - if(visualEditor!=3Dnull) { + if (visualEditor !=3D null) { visualEditor.dispose(); } - site.dispose(); + site.dispose(); outlinePage =3D null; XModelObject o =3D getModelObject(); if (o !=3D null) { o.getModel().removeModelTreeListener(syncListener); } - if (syncListener !=3D null) - syncListener.dispose(); - syncListener=3Dnull; + if (syncListener !=3D null) + syncListener.dispose(); + syncListener =3D null; if (o !=3D null && o.isModified() && o.isActive()) { try { ((FolderImpl) o.getParent()).discardChildFile(o); @@ -607,14 +576,14 @@ = public Object getAdapter(Class adapter) { if (IContentOutlinePage.class.equals(adapter)) { - = - if (visualEditor !=3D null) { + + if (visualEditor !=3D null) { if (outlinePage =3D=3D null) outlinePage =3D (ConfigurableContentOutlinePage) visualEditor .getAdapter(adapter); return outlinePage; } - = + } else if (IPropertySheetPage.class.equals(adapter)) { if (sourceEditor !=3D null) return sourceEditor.getAdapter(adapter); @@ -703,10 +672,10 @@ } = public VpeTaglibManager getTaglibManager() { - if(sourceEditor!=3Dnull) { - if(sourceEditor.getPageContext() instanceof VpeTaglibManager) - = - return (VpeTaglibManager)sourceEditor.getPageContext(); + if (sourceEditor !=3D null) { + if (sourceEditor.getPageContext() instanceof VpeTaglibManager) + + return (VpeTaglibManager) sourceEditor.getPageContext(); } return null; } @@ -793,6 +762,19 @@ } return null; } + = + public void updatePartAccordingToPreferences() { + String tabIndex =3D JspEditorPlugin.getDefault().getPreferenceStore() + .getString(IVpePreferencesPage.DEFAULT_VPE_TAB); + try { + int ind =3D Integer.parseInt(tabIndex); + getTabFolder().setSelection(ind); + pageChange(ind); + } catch (NumberFormatException e) { + JspEditorPlugin.getPluginLog().logError(e); + } + } + = } = class ResourceChangeListener implements IResourceChangeListener { @@ -850,8 +832,8 @@ if (e.getJspEditor() !=3D null && e.getJspEditor().getEditorInput() !=3D e .getEditorInput()) { - ((AbstractTextEditor) e.getJspEditor()) - .setInput(e2); + ((AbstractTextEditor) e.getJspEditor()) + .setInput(e2); } ((XModelObjectEditorInput) ei).synchronize(); } @@ -911,4 +893,5 @@ } return null; } + = } \ No newline at end of file Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/jspeditor/JSPTextEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/JSPTextEditor.java 2009-09-14 15:06:24 UTC (rev 17547) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/JSPTextEditor.java 2009-09-14 16:17:42 UTC (rev 17548) @@ -128,7 +128,7 @@ import org.jboss.tools.jst.jsp.outline.JSPContentOutlineConfiguration; import org.jboss.tools.jst.jsp.outline.JSPPropertySheetConfiguration; import org.jboss.tools.jst.jsp.outline.ValueHelper; -import org.jboss.tools.jst.jsp.preferences.VpePreference; +import org.jboss.tools.jst.jsp.preferences.IVpePreferencesPage; import org.jboss.tools.jst.jsp.text.xpl.IStructuredTextOccurrenceStructure= Provider; import org.jboss.tools.jst.jsp.text.xpl.StructuredTextOccurrenceStructureP= roviderRegistry; import org.jboss.tools.jst.jsp.ui.action.ExtendedFormatAction; @@ -743,9 +743,8 @@ .getDropCommand(flavor, JSPTagProposalFactory.getInstance()); = - boolean promptAttributes =3D "yes" //$NON-NLS-1$ - .equals(VpePreference.ALWAYS_REQUEST_FOR_ATTRIBUTE - .getValue()); + boolean promptAttributes =3D JspEditorPlugin.getDefault().getPreferen= ceStore().getBoolean( + IVpePreferencesPage.ASK_TAG_ATTRIBUTES_ON_TAG_INSERT); dropCommand .getDefaultModel() .setPromptForTagAttributesRequired(promptAttributes); Added: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/js= p/preferences/IVpePreferencesPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/p= references/IVpePreferencesPage.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/p= references/IVpePreferencesPage.java 2009-09-14 16:17:42 UTC (rev 17548) @@ -0,0 +1,34 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jst.jsp.preferences; + +public interface IVpePreferencesPage { + + static final String SHOW_BORDER_FOR_UNKNOWN_TAGS =3D "Show Border for Unk= nown Tags"; //$NON-NLS-1$ + static final String SHOW_NON_VISUAL_TAGS =3D "Show non-visual tags"; //$N= ON-NLS-1$ + static final String SHOW_SELECTION_TAG_BAR =3D "Show Selection Tag Bar"; = //$NON-NLS-1$ + static final String SHOW_RESOURCE_BUNDLES_USAGE_AS_EL =3D "Show Resource = Bundles Usage as EL Expressions"; //$NON-NLS-1$ + static final String ASK_TAG_ATTRIBUTES_ON_TAG_INSERT =3D "Ask for tag att= ributes during tag insert"; //$NON-NLS-1$ + static final String ASK_CONFIRMATION_ON_CLOSING_SELECTION_BAR =3D "Ask fo= r confirmation when closing Selection Bar"; //$NON-NLS-1$ + static final String DEFAULT_VPE_TAB =3D "Default VPE Tab"; //$NON-NLS-1$ + static final String VISUAL_SOURCE_EDITORS_SPLITTING =3D "Visual/Source Ed= itors Splitting"; //$NON-NLS-1$ + static final String VISUAL_SOURCE_EDITORS_WEIGHTS =3D "Size of Visual Edi= tor Pane 0-100%"; //$NON-NLS-1$ + = + static final String DEFAULT_VPE_TAB_VISUAL_SOURCE_VALUE =3D "0"; //$NON-N= LS-1$ + static final String DEFAULT_VPE_TAB_SOURCE_VALUE =3D "1"; //$NON-NLS-1$ + static final String DEFAULT_VPE_TAB_PREVIEW_VALUE =3D "2"; //$NON-NLS-1$ + = + static final String SPLITTING_VERT_TOP_SOURCE_VALUE =3D "1"; //$NON-NLS-1$ + static final String SPLITTING_VERT_TOP_VISUAL_VALUE =3D "2"; //$NON-NLS-1$ + static final String SPLITTING_HORIZ_LEFT_SOURCE_VALUE =3D "3"; //$NON-NLS= -1$ + static final String SPLITTING_HORIZ_LEFT_VISUAL_VALUE =3D "4"; //$NON-NLS= -1$ + = +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jbos= s/tools/jst/jsp/preferences/IVpePreferencesPage.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:keywords + Author Id Revision Date Name: svn:eol-style + native Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/VpeEditorPart.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eEditorPart.java 2009-09-14 15:06:24 UTC (rev 17547) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eEditorPart.java 2009-09-14 16:17:42 UTC (rev 17548) @@ -10,9 +10,6 @@ *************************************************************************= *****/ package org.jboss.tools.vpe.editor; = -import java.beans.PropertyChangeEvent; -import java.beans.PropertyChangeListener; - import org.eclipse.compare.Splitter; import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.ExecutionEvent; @@ -20,7 +17,6 @@ import org.eclipse.core.commands.IHandler; import org.eclipse.core.resources.IFile; import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.QualifiedName; import org.eclipse.jface.action.IAction; @@ -78,8 +74,10 @@ import org.jboss.tools.common.model.event.XModelTreeListener; import org.jboss.tools.common.model.ui.editor.IModelObjectEditorInput; import org.jboss.tools.common.model.ui.util.ModelUtilities; +import org.jboss.tools.jst.jsp.JspEditorPlugin; import org.jboss.tools.jst.jsp.editor.IVisualEditor; import org.jboss.tools.jst.jsp.jspeditor.StorageRevisionEditorInputAdapter; +import org.jboss.tools.jst.jsp.preferences.IVpePreferencesPage; import org.jboss.tools.jst.jsp.preferences.VpePreference; import org.jboss.tools.vpe.IVpeHelpContextIds; import org.jboss.tools.vpe.VpePlugin; @@ -100,6 +98,7 @@ private IHandlerActivation sourceActivation,visualActivation, jumpingActi= vation; private IHandler sourceMaxmin,visualMaxmin, jumping; private Composite cmpEd; + private Composite cmpEdTl; private CustomSashForm container; protected EditorSettings editorSettings; private StructuredTextEditor sourceEditor =3D null; @@ -355,23 +354,6 @@ return sizes; } = - protected void saveSplitterPosition(int[] weights) { - IEditorInput input =3D getEditorInput(); - if (!(input instanceof IFileEditorInput)) - return; - IFile file =3D ((IFileEditorInput) input).getFile(); - try { - String s =3D String.valueOf(weights[0]); - file.setPersistentProperty(SPLITTER_POSITION_KEY1, s); - s =3D String.valueOf(weights[1]); - file.setPersistentProperty(SPLITTER_POSITION_KEY2, s); - s =3D String.valueOf(weights[2]); - file.setPersistentProperty(SPLITTER_POSITION_KEY3, s); - } catch (CoreException e) { - VpePlugin.getPluginLog().logError(e); - } - } - public void setVisualMode(int type) { switch (type) { case VISUALSOURCE_MODE: @@ -503,7 +485,7 @@ /* * Container composite for editor part */ - Composite cmpEdTl =3D new Composite(parent, SWT.NONE); + cmpEdTl =3D new Composite(parent, SWT.NONE); GridLayout layoutEdTl =3D new GridLayout(2, false); layoutEdTl.verticalSpacing =3D 0; layoutEdTl.marginHeight =3D 0; @@ -570,12 +552,7 @@ } = container.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); - String splitting =3D VpePreference.VISUAL_SOURCE_EDITORS_SPLITTING - .getValue(); - if (CustomSashForm.LAYOUT_HORIZONTAL_SOURCE_LEFT - .equalsIgnoreCase(splitting) - || CustomSashForm.LAYOUT_VERTICAL_SOURCE_TOP - .equalsIgnoreCase(splitting)) { + if (CustomSashForm.isSourceEditorFirst()) { sourceContent =3D new Composite(container, SWT.NONE); visualContent =3D new Composite(container, SWT.NONE); } else { @@ -598,24 +575,11 @@ } }; int[] weights =3D loadSplitterPosition(); - if (weights !=3D null) + if (weights !=3D null) { container.setWeights(weights); + } container.setSashBorders(new boolean[] { true, true, true }); - = - final PropertyChangeListener weightsChangeListener =3D new PropertyChang= eListener() { - public void propertyChange(PropertyChangeEvent event) { - saveSplitterPosition(container.getWeights()); - } - }; - container.addWeightsChangeListener(weightsChangeListener); - container.addDisposeListener(new DisposeListener() { = - public void widgetDisposed(DisposeEvent e) { - container.removeWeightsChangeListener(weightsChangeListener); - container.removeDisposeListener(this); - } - = - }); controlListener =3D new ControlListener() { public void controlMoved(ControlEvent event) {} public void controlResized(ControlEvent event) { @@ -813,7 +777,7 @@ }; } = - private void fillContainer() { + public void fillContainer() { /* * https://jira.jboss.org/jira/browse/JBIDE-4152 * = @@ -825,11 +789,13 @@ */ CustomSashForm newContainer =3D new CustomSashForm(cmpEd, CustomSashForm .getSplittingFromPreferences()); + newContainer.setOrientation(CustomSashForm.getSplittingFromPreferences()= ); + /* * Reset editor's settings. = */ if (editorSettings !=3D null) { - editorSettings.dispose(); + editorSettings.clearOldSettings(); editorSettings.addSetting(new SashSetting(newContainer)); } newContainer.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); @@ -839,12 +805,7 @@ * Correct layout by selecting the order of components adding. * All three editors should be added to the new container. */ - String splitting =3D VpePreference.VISUAL_SOURCE_EDITORS_SPLITTING - .getValue(); - if (CustomSashForm.LAYOUT_HORIZONTAL_SOURCE_LEFT - .equalsIgnoreCase(splitting) - || CustomSashForm.LAYOUT_VERTICAL_SOURCE_TOP - .equalsIgnoreCase(splitting)) { + if (CustomSashForm.isSourceEditorFirst()) { sourceContent.setParent(newContainer); visualContent.setParent(newContainer); } else { @@ -860,7 +821,6 @@ if (null !=3D container.getMaximizedControl()) { newContainer.setMaximizedControl(container.getMaximizedControl()); } - = /* * Dispose the old container: * it'll be excluded from parent composite's layout. @@ -873,28 +833,43 @@ * Reset the container. */ container =3D newContainer; - int[] weights =3D loadSplitterPosition(); - if (weights !=3D null) { - container.setWeights(weights); + = + /* + * Set up new sash weights + */ + int defaultWeight =3D JspEditorPlugin.getDefault().getPreferenceStore() + .getInt(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_WEIGHTS); + int[] weights =3D container.getWeights(); + if (defaultWeight =3D=3D 0) { + if (CustomSashForm.isSourceEditorFirst()) { + container.maxDown(); + } else { + container.maxUp(); + } + } else if (defaultWeight =3D=3D 1000) { + if (CustomSashForm.isSourceEditorFirst()) { + container.maxUp(); + } else { + container.maxDown(); + } + } else { + if (CustomSashForm.isSourceEditorFirst()) { + weights[0] =3D 1000 - defaultWeight; + weights[1] =3D defaultWeight; + } else { + weights[0] =3D defaultWeight; + weights[1] =3D 1000 - defaultWeight; + } + if ((weights !=3D null) && !container.isDisposed()){ + container.setWeights(weights); + } } + = container.setSashBorders(new boolean[] { true, true, true }); = /* * Reinit listeners on the new container. */ - final PropertyChangeListener weightsChangeListener =3D new PropertyChang= eListener() { - public void propertyChange(PropertyChangeEvent event) { - saveSplitterPosition(container.getWeights()); - } - }; - container.addWeightsChangeListener(weightsChangeListener); - container.addDisposeListener(new DisposeListener() { - public void widgetDisposed(DisposeEvent e) { - container.removeWeightsChangeListener(weightsChangeListener); - container.removeDisposeListener(this); - } - - }); controlListener =3D new ControlListener() { public void controlMoved(ControlEvent event) {} public void controlResized(ControlEvent event) { @@ -903,9 +878,9 @@ }; = /* - * Layout parent composite. + * Layout the parent container for CustomSashForm, Selection Bar. */ - cmpEd.layout(true, true); + cmpEdTl.layout(true, true); } = public void createVisualEditor() { @@ -1142,8 +1117,9 @@ } = public VpeController getController() { - if (visualEditor =3D=3D null) + if (visualEditor =3D=3D null) { return null; + } return visualEditor.getController(); } = @@ -1164,4 +1140,25 @@ if (container !=3D null) container.maxUp(); } + = + /* + * Updates current VpeEditorPart after = + * OK/Apply button on "Visual Page Editor" preference page + * has been pressed. + */ + public void updatePartAccordingToPreferences() { + /* + * When switching from Source view to Visual/Source + * controller could be null. + */ + if (getController() !=3D null) { + selectionBar.setVisible(selectionBar.getAlwaysVisibleOption()); + fillContainer(); + getController().getVisualBuilder().setShowInvisibleTags(JspEditorPlugi= n.getDefault().getPreferenceStore().getBoolean( + IVpePreferencesPage.SHOW_NON_VISUAL_TAGS)); + getController().getPageContext().getBundle().updateShowBundleUsageAsEL= (); + getController().visualRefresh(); + } + } + = } Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/VpeVisualDomBuilder.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eVisualDomBuilder.java 2009-09-14 15:06:24 UTC (rev 17547) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eVisualDomBuilder.java 2009-09-14 16:17:42 UTC (rev 17548) @@ -38,6 +38,8 @@ import org.eclipse.wst.xml.core.internal.document.NodeImpl; import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement; import org.jboss.tools.common.resref.core.ResourceReference; +import org.jboss.tools.jst.jsp.JspEditorPlugin; +import org.jboss.tools.jst.jsp.preferences.IVpePreferencesPage; import org.jboss.tools.jst.jsp.preferences.VpePreference; import org.jboss.tools.jst.web.tld.TaglibData; import org.jboss.tools.vpe.VpeDebug; @@ -185,8 +187,8 @@ // faceletFile =3D false; // } = - this.showInvisibleTags =3D Constants.YES_STRING - .equals(VpePreference.SHOW_INVISIBLE_TAGS.getValue()); + this.showInvisibleTags =3D JspEditorPlugin.getDefault().getPreferenceSto= re().getBoolean( + IVpePreferencesPage.SHOW_NON_VISUAL_TAGS); = } = Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/bundle/BundleMap.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/bu= ndle/BundleMap.java 2009-09-14 15:06:24 UTC (rev 17547) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/bu= ndle/BundleMap.java 2009-09-14 16:17:42 UTC (rev 17548) @@ -47,7 +47,8 @@ import org.jboss.tools.common.model.event.XModelTreeListener; import org.jboss.tools.common.model.options.PreferenceModelUtilities; import org.jboss.tools.common.model.util.EclipseResourceUtil; -import org.jboss.tools.jst.jsp.preferences.VpePreference; +import org.jboss.tools.jst.jsp.JspEditorPlugin; +import org.jboss.tools.jst.jsp.preferences.IVpePreferencesPage; import org.jboss.tools.jst.web.project.WebProject; import org.jboss.tools.jst.web.project.list.WebPromptingProvider; import org.jboss.tools.vpe.VpePlugin; @@ -64,7 +65,8 @@ private BundleEntry[] bundles =3D new BundleEntry[0]; private Map usedKeys =3D new HashMap(); = - boolean isShowBundleUsageAsEL =3D "yes".equals(VpePreference.SHOW_RESO= URCE_BUNDLES.getValue()); //$NON-NLS-1$ + boolean isShowBundleUsageAsEL =3D JspEditorPlugin.getDefault().getPref= erenceStore().getBoolean( + IVpePreferencesPage.SHOW_RESOURCE_BUNDLES_USAGE_AS_EL); = XModelTreeListener modelListener =3D new ML(); = public void init(StructuredTextEditor editor){ @@ -461,7 +463,15 @@ } } = - + public void updateShowBundleUsageAsEL() { + boolean b =3D JspEditorPlugin.getDefault().getPreferenceStore().getBoole= an( + IVpePreferencesPage.SHOW_RESOURCE_BUNDLES_USAGE_AS_EL); + if(isShowBundleUsageAsEL !=3D b) { + isShowBundleUsageAsEL =3D b; + refresh(); + } = + } + = static class Expression { public String prefix; public String propertyName; @@ -503,11 +513,7 @@ class ML implements XModelTreeListener { = public void nodeChanged(XModelTreeEvent event) { - boolean b =3D "yes".equals(VpePreference.SHOW_RESOURCE_BUNDLES.getVa= lue()); //$NON-NLS-1$ - if(isShowBundleUsageAsEL !=3D b) { - isShowBundleUsageAsEL =3D b; - refresh(); - } = + updateShowBundleUsageAsEL(); } = public void structureChanged(XModelTreeEvent event) { Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/mozilla/MozillaEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mo= zilla/MozillaEditor.java 2009-09-14 15:06:24 UTC (rev 17547) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mo= zilla/MozillaEditor.java 2009-09-14 16:17:42 UTC (rev 17548) @@ -64,8 +64,8 @@ import org.eclipse.ui.editors.text.ILocationProvider; import org.eclipse.ui.internal.part.StatusPart; import org.eclipse.ui.part.EditorPart; -import org.jboss.tools.common.model.XModelException; -import org.jboss.tools.jst.jsp.preferences.VpePreference; +import org.jboss.tools.jst.jsp.JspEditorPlugin; +import org.jboss.tools.jst.jsp.preferences.IVpePreferencesPage; import org.jboss.tools.vpe.VpePlugin; import org.jboss.tools.vpe.editor.VpeController; import org.jboss.tools.vpe.editor.preferences.VpeEditorPreferencesPage; @@ -78,7 +78,6 @@ import org.jboss.tools.vpe.editor.util.DocTypeUtil; import org.jboss.tools.vpe.editor.util.FileUtil; import org.jboss.tools.vpe.editor.util.HTML; -import org.jboss.tools.vpe.editor.xpl.CustomSashForm; import org.jboss.tools.vpe.messages.VpeUIMessages; import org.jboss.tools.vpe.resref.core.ReferenceWizard; import org.jboss.tools.vpe.resref.core.VpeResourcesDialog; @@ -133,20 +132,27 @@ private String doctype; = private static Map layoutIcons; - private static List layoutNames; + private static Map layoutNames; + private static List layoutValues; static { layoutIcons =3D new HashMap(); - layoutIcons.put(CustomSashForm.LAYOUT_HORIZONTAL_SOURCE_LEFT, ICON_OR= IENTATION_SOURCE_LEFT); - layoutIcons.put(CustomSashForm.LAYOUT_VERTICAL_SOURCE_TOP, ICON_ORIEN= TATION_SOURCE_TOP); - layoutIcons.put(CustomSashForm.LAYOUT_HORIZONTAL_VISUAL_LEFT, ICON_OR= IENTATION_SOURCE_RIGHT); - layoutIcons.put(CustomSashForm.LAYOUT_VERTICAL_VISUAL_TOP, ICON_ORIEN= TATION_SOURCE_BOTTOM); + layoutIcons.put(IVpePreferencesPage.SPLITTING_HORIZ_LEFT_SOURCE_VALUE= , ICON_ORIENTATION_SOURCE_LEFT); + layoutIcons.put(IVpePreferencesPage.SPLITTING_VERT_TOP_SOURCE_VALUE, = ICON_ORIENTATION_SOURCE_TOP); + layoutIcons.put(IVpePreferencesPage.SPLITTING_HORIZ_LEFT_VISUAL_VALUE= , ICON_ORIENTATION_SOURCE_RIGHT); + layoutIcons.put(IVpePreferencesPage.SPLITTING_VERT_TOP_VISUAL_VALUE, = ICON_ORIENTATION_SOURCE_BOTTOM); = - layoutNames =3D new ArrayList(); - layoutNames.add(CustomSashForm.LAYOUT_HORIZONTAL_SOURCE_LEFT); - layoutNames.add(CustomSashForm.LAYOUT_VERTICAL_SOURCE_TOP); - layoutNames.add(CustomSashForm.LAYOUT_HORIZONTAL_VISUAL_LEFT); - layoutNames.add(CustomSashForm.LAYOUT_VERTICAL_VISUAL_TOP); + layoutNames =3D new HashMap(); + layoutNames.put(IVpePreferencesPage.SPLITTING_HORIZ_LEFT_SOURCE_VALUE= , VpeUIMessages.SPLITTING_HORIZ_LEFT_SOURCE); + layoutNames.put(IVpePreferencesPage.SPLITTING_VERT_TOP_SOURCE_VALUE, = VpeUIMessages.SPLITTING_VERT_TOP_SOURCE); + layoutNames.put(IVpePreferencesPage.SPLITTING_HORIZ_LEFT_VISUAL_VALUE= , VpeUIMessages.SPLITTING_HORIZ_LEFT_VISUAL); + layoutNames.put(IVpePreferencesPage.SPLITTING_VERT_TOP_VISUAL_VALUE, = VpeUIMessages.SPLITTING_VERT_TOP_VISUAL); = + layoutValues=3D new ArrayList(); + layoutValues.add(IVpePreferencesPage.SPLITTING_HORIZ_LEFT_SOURCE_VALU= E); + layoutValues.add(IVpePreferencesPage.SPLITTING_VERT_TOP_SOURCE_VALUE); + layoutValues.add(IVpePreferencesPage.SPLITTING_HORIZ_LEFT_VISUAL_VALU= E); + layoutValues.add(IVpePreferencesPage.SPLITTING_VERT_TOP_VISUAL_VALUE); + } = /** @@ -259,46 +265,64 @@ * https://jira.jboss.org/jira/browse/JBIDE-4152 * Compute initial icon state and add it to the tool bar. */ - int currentOrientationIndex =3D layoutNames.indexOf(VpePreference.VISUAL= _SOURCE_EDITORS_SPLITTING.getValue()); + int currentOrientationIndex =3D layoutValues.indexOf(JspEditorPlugin + .getDefault().getPreferenceStore().getString( + IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING)); int newIndx =3D currentOrientationIndex+1; - if (newIndx =3D=3D layoutNames.size()) { - newIndx =3D newIndx % layoutNames.size(); + if (newIndx =3D=3D layoutValues.size()) { + newIndx =3D newIndx % layoutValues.size(); } - String newOrientation =3D layoutNames.get(newIndx); + String newOrientation =3D layoutValues.get(newIndx); = final ToolItem rotateEditorsItem =3D createToolItem(verBar, SWT.BUTTON1, - layoutIcons.get(newOrientation), - ICON_ORIENTATION_SOURCE_LEFT_DISABLED, newOrientation, true); + layoutIcons.get(newOrientation), + ICON_ORIENTATION_SOURCE_LEFT_DISABLED, = + layoutNames.get(newOrientation), true); + = rotateEditorsItem.addListener(SWT.Selection, new Listener() { public void handleEvent(Event event) { - try { - /* - * Rotate editors orientation clockwise. - * Store this new orientation to the preferences. - */ - int currentOrientationIndex =3D layoutNames.indexOf(VpePreference.V= ISUAL_SOURCE_EDITORS_SPLITTING.getValue()); - int newIndx =3D currentOrientationIndex+1; - if (newIndx =3D=3D layoutNames.size()) { - newIndx =3D newIndx % layoutNames.size(); - } - String newOrientation =3D layoutNames.get(newIndx); - VpePreference.VISUAL_SOURCE_EDITORS_SPLITTING.setValue(newOrientati= on); + /* + * Rotate editors orientation clockwise. Store this new + * orientation to the preferences. + */ + int currentOrientationIndex =3D layoutValues + .indexOf(JspEditorPlugin + .getDefault() + .getPreferenceStore() + .getString( + IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING)); + int newIndx =3D currentOrientationIndex + 1; + if (newIndx =3D=3D layoutValues.size()) { + newIndx =3D newIndx % layoutValues.size(); + } + String newOrientation =3D layoutValues.get(newIndx); + JspEditorPlugin.getDefault().getPreferenceStore().setValue( + IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING, + newOrientation); = - /* - * Compute next step orientation and display appropriate icon. - */ - currentOrientationIndex =3D layoutNames.indexOf(VpePreference.VISUA= L_SOURCE_EDITORS_SPLITTING.getValue()); - newIndx =3D currentOrientationIndex+1; - if (newIndx =3D=3D layoutNames.size()) { - newIndx =3D newIndx % layoutNames.size(); - } - newOrientation =3D layoutNames.get(newIndx); - rotateEditorsItem.setImage(ImageDescriptor - .createFromFile(MozillaEditor.class, layoutIcons.get(newOrientatio= n)).createImage()); - rotateEditorsItem.setToolTipText(newOrientation); - } catch (XModelException e) { - VpePlugin.getPluginLog().logError(e); - } + /* + * Compute next step orientation and display appropriate icon. + */ + currentOrientationIndex =3D layoutValues + .indexOf(JspEditorPlugin + .getDefault() + .getPreferenceStore() + .getString( + IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING)); + newIndx =3D currentOrientationIndex + 1; + if (newIndx =3D=3D layoutValues.size()) { + newIndx =3D newIndx % layoutValues.size(); + } + newOrientation =3D layoutValues.get(newIndx); + rotateEditorsItem.setImage(ImageDescriptor.createFromFile( + MozillaEditor.class, layoutIcons.get(newOrientation)) + .createImage()); + rotateEditorsItem.setToolTipText(layoutNames.get(newOrientation)); + /* + * Call filContainer() from VpeEditorPart + * to redraw CustomSashForm with new layout. + */ + getController().getPageContext().getEditPart().fillContainer(); } }); = @@ -356,8 +380,8 @@ // create menu item MenuItem menuItem =3D new MenuItem(dropDownMenu.getDropDownMenu(), SWT.= PUSH); // get default value of flag - boolean showInvisibleTags =3D Constants.YES_STRING - .equals(VpePreference.SHOW_INVISIBLE_TAGS.getValue()); + boolean showInvisibleTags =3D JspEditorPlugin.getDefault().getPreferenc= eStore().getBoolean( + IVpePreferencesPage.SHOW_NON_VISUAL_TAGS); = // set text menuItem.setText(showInvisibleTags ? VpeUIMessages.HIDE_NON_VISUAL_TAGS Added: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor= /preferences/SliderFieldEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/pr= eferences/SliderFieldEditor.java (rev 0) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/pr= eferences/SliderFieldEditor.java 2009-09-14 16:17:42 UTC (rev 17548) @@ -0,0 +1,186 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.vpe.editor.preferences; + +import org.eclipse.jface.preference.FieldEditor; +import org.eclipse.swt.SWT; +import org.eclipse.swt.events.SelectionAdapter; +import org.eclipse.swt.events.SelectionEvent; +import org.eclipse.swt.graphics.Point; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Control; +import org.eclipse.swt.widgets.Label; +import org.eclipse.swt.widgets.Slider; + +public class SliderFieldEditor extends FieldEditor { + + private static final String SLIDER_LABEL_DEFAULT_TEXT =3D "50% "; //$NON-= NLS-1$ + private static final String SLIDER_LABEL_MAX_SIZE_TEXT =3D "100% "; //$NO= N-NLS-1$ + private static final int MAX_SLIDER_VALUE =3D 1000; + private static final int MIN_SLIDER_VALUE =3D 0; + private static final int INCREMENT_SLIDER_VALUE =3D 10; + private static final int DEFAULT_SLIDER_VALUE =3D 500; + = + private Composite sliderComposite; + private Label sliderLabel; + private Slider slider; + private int value; + = + public SliderFieldEditor(String name, String labelText, Composite parent)= { + super(name, labelText, parent); + } + + @Override + protected void adjustForNumColumns(int numColumns) { + if (numColumns > 1) { + Control control =3D getLabelControl(); + int left =3D numColumns; + if (control !=3D null) { + ((GridData)control.getLayoutData()).horizontalSpan =3D 1; + left =3D left - 1; + } + if (sliderComposite !=3D null) { + ((GridData)sliderComposite.getLayoutData()).horizontalSpan =3D left; + } + } else { + Control control =3D getLabelControl(); + if (control !=3D null) { + ((GridData)control.getLayoutData()).horizontalSpan =3D 1; + } + if (sliderComposite !=3D null) { + ((GridData)sliderComposite.getLayoutData()).horizontalSpan =3D 1; + } + } + } + + @Override + protected void createControl(Composite parent) { + doFillIntoGrid(parent, 2); + } + = + @Override + protected void doFillIntoGrid(Composite parent, int numColumns) { + int sliderSpan =3D 1; + if (numColumns > 1) { + sliderSpan =3D numColumns - 1; + } + Control control =3D getLabelControl(parent); + GridData gd =3D new GridData(); + gd.horizontalSpan =3D 1; + control.setLayoutData(gd); + control =3D getSliderComposite(parent); + gd =3D new GridData(); + gd.horizontalSpan =3D sliderSpan; + gd.horizontalAlignment =3D GridData.FILL; + control.setLayoutData(gd); + control.setFont(parent.getFont()); + } + + @Override + protected void doLoad() { + updateSliderForValue(getPreferenceStore().getInt(getPreferenceName())); + } + + @Override + protected void doLoadDefault() { + updateSliderForValue(getPreferenceStore().getDefaultInt(getPreferenceNam= e())); + } + + @Override + protected void doStore() { + if (value < 0) { + getPreferenceStore().setToDefault(getPreferenceName()); + return; + } + getPreferenceStore().setValue(getPreferenceName(), value); + } + + @Override + public int getNumberOfControls() { + return 2; + } + = + private Composite getSliderComposite(Composite parent) { + if (sliderComposite =3D=3D null) { + /* + * Create composite control with label and slider in it. = + */ + sliderComposite =3D new Composite(parent, SWT.NONE); + GridLayout gridLayout =3D new GridLayout(); + gridLayout.numColumns =3D 2; + gridLayout.marginWidth =3D 0; + gridLayout.marginHeight =3D 0; + gridLayout.horizontalSpacing =3D HORIZONTAL_GAP; + sliderComposite.setLayout(gridLayout); + GridData gd =3D new GridData(SWT.FILL, SWT.NONE, true, false, 1, 1); + sliderComposite.setLayoutData(gd); + = + /* + * Create slider label + */ + sliderLabel =3D new Label(sliderComposite,SWT.NONE); + gd =3D new GridData(SWT.LEFT, SWT.NONE, false, false, 1, 1); + sliderLabel.setLayoutData(gd); + /* + * Compute label size + */ + sliderLabel.setText(SLIDER_LABEL_MAX_SIZE_TEXT); + Point size =3D sliderLabel.computeSize(SWT.DEFAULT, SWT.DEFAULT); + sliderLabel.setSize(size); + sliderLabel.setText(SLIDER_LABEL_DEFAULT_TEXT); + + /* + * Create slider + */ + slider =3D new Slider(sliderComposite, SWT.HORIZONTAL); + gd =3D new GridData(SWT.FILL, SWT.NONE, true, false, 1, 1); + slider.setLayoutData(gd); + slider.setMaximum(MAX_SLIDER_VALUE + slider.getThumb()); + slider.setMinimum(MIN_SLIDER_VALUE); + slider.setIncrement(INCREMENT_SLIDER_VALUE); + slider.setSelection(DEFAULT_SLIDER_VALUE); + = + slider.addSelectionListener(new SelectionAdapter() { + @Override + public void widgetSelected(SelectionEvent e) { + updateSlider(); + } + }); + } + = + return sliderComposite; + } + = + private void updateSlider() { + int oldValue =3D value; + value =3D slider.getSelection(); + if (oldValue !=3D value) { + setPresentsDefaultValue(false); + String weightsString =3D "" + (value /10) + "%"; //$NON-NLS-1$ //$NON-= NLS-2$ + slider.setToolTipText(weightsString); + sliderLabel.setText(weightsString); + fireValueChanged(VALUE, oldValue, value); + } + } + = + private void updateSliderForValue(int value) { + if (slider !=3D null) { + String weightsString =3D "" + (value /10) + "%"; //$NON-NLS-1$ //$NON-= NLS-2$ + this.value =3D value; + slider.setSelection(value); + slider.setToolTipText(weightsString); + sliderLabel.setText(weightsString); + } + } + +} Property changes on: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/to= ols/vpe/editor/preferences/SliderFieldEditor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:keywords + Author Id Revision Date Name: svn:eol-style + native Added: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor= /preferences/VpeComboFieldEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/pr= eferences/VpeComboFieldEditor.java (rev 0) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/pr= eferences/VpeComboFieldEditor.java 2009-09-14 16:17:42 UTC (rev 17548) @@ -0,0 +1,204 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.vpe.editor.preferences; + +import org.eclipse.core.runtime.Assert; +import org.eclipse.jface.preference.FieldEditor; +import org.eclipse.swt.SWT; +import org.eclipse.swt.events.SelectionAdapter; +import org.eclipse.swt.events.SelectionEvent; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.widgets.Combo; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Control; + +public class VpeComboFieldEditor extends FieldEditor { + + /** + * The Combo widget. + */ + private Combo fCombo; + = + /** + * The value (not the name) of the currently selected item in the Combo w= idget. + */ + private String fValue; + = + /** + * The names (labels) and underlying values to populate the combo widget.= These should be + * arranged as: { {name1, value1}, {name2, value2}, ...} + */ + private String[][] fEntryNamesAndValues; + = + /** + * Create the combo box field editor. + * = + * @param name the name of the preference this field editor works on + * @param labelText the label text of the field editor + * @param entryNamesAndValues the names (labels) and underlying values to= populate the combo widget. These should be + * arranged as: { {name1, value1}, {name2, value2}, ...} + * @param parent the parent composite + */ + public VpeComboFieldEditor(String name, String labelText, + String[][] entryNamesAndValues, Composite parent) { + init(name, labelText); + Assert.isTrue(checkArray(entryNamesAndValues)); + fEntryNamesAndValues =3D entryNamesAndValues; + createControl(parent); + } + + /** + * Checks whether given String[][] is of "type" = + * String[][2]. + * + * @return true if it is ok, and false otherwise + */ + private boolean checkArray(String[][] table) { + if (table =3D=3D null) { + return false; + } + for (int i =3D 0; i < table.length; i++) { + String[] array =3D table[i]; + if (array =3D=3D null || array.length !=3D 2) { + return false; + } + } + return true; + } + = + /* (non-Javadoc) + * @see org.eclipse.jface.preference.FieldEditor#adjustForNumColumns(int) + */ + protected void adjustForNumColumns(int numColumns) { + if (numColumns > 1) { + Control control =3D getLabelControl(); + int left =3D numColumns; + if (control !=3D null) { + ((GridData)control.getLayoutData()).horizontalSpan =3D 1; + left =3D left - 1; + } + ((GridData)fCombo.getLayoutData()).horizontalSpan =3D left; + } else { + Control control =3D getLabelControl(); + if (control !=3D null) { + ((GridData)control.getLayoutData()).horizontalSpan =3D 1; + } + ((GridData)fCombo.getLayoutData()).horizontalSpan =3D 1; = + } + } + = + @Override + protected void createControl(Composite parent) { + doFillIntoGrid(parent, 1); + } + = + @Override + protected void doFillIntoGrid(Composite parent, int numColumns) { + /* + * Label + */ + Control control =3D getLabelControl(parent); + GridData gd =3D new GridData(SWT.FILL, SWT.NONE, true, false, 1, 1); + control.setLayoutData(gd); + = + /* + * Combo + */ + control =3D getComboBoxControl(parent); + gd =3D new GridData(SWT.FILL, SWT.NONE, true, false, 1, 1); + control.setLayoutData(gd); + control.setFont(parent.getFont()); + } + = + /* (non-Javadoc) + * @see org.eclipse.jface.preference.FieldEditor#doLoad() + */ + protected void doLoad() { + updateComboForValue(getPreferenceStore().getString(getPreferenceName())); + } + + /* (non-Javadoc) + * @see org.eclipse.jface.preference.FieldEditor#doLoadDefault() + */ + protected void doLoadDefault() { + updateComboForValue(getPreferenceStore().getDefaultString(getPreferenceN= ame())); + } + = + /* (non-Javadoc) + * @see org.eclipse.jface.preference.FieldEditor#doStore() + */ + protected void doStore() { + if (fValue =3D=3D null) { + getPreferenceStore().setToDefault(getPreferenceName()); + return; + } + getPreferenceStore().setValue(getPreferenceName(), fValue); + } + = + /* + * Lazily create and return the Combo control. + */ + protected Combo getComboBoxControl(Composite parent) { + if (fCombo =3D=3D null) { + fCombo =3D new Combo(parent, SWT.READ_ONLY); + fCombo.setFont(parent.getFont()); + for (int i =3D 0; i < fEntryNamesAndValues.length; i++) { + fCombo.add(fEntryNamesAndValues[i][0], i); + } + = + fCombo.addSelectionListener(new SelectionAdapter() { + public void widgetSelected(SelectionEvent evt) { + String oldValue =3D fValue; + String name =3D fCombo.getText(); + fValue =3D getValueForName(name); + setPresentsDefaultValue(false); + fireValueChanged(VALUE, oldValue, fValue); = + } + }); + } + return fCombo; + } + = + /* + * Given the name (label) of an entry, return the corresponding value. + */ + protected String getValueForName(String name) { + for (int i =3D 0; i < fEntryNamesAndValues.length; i++) { + String[] entry =3D fEntryNamesAndValues[i]; + if (name.equals(entry[0])) { + return entry[1]; + } + } + return fEntryNamesAndValues[0][0]; + } + = + /* + * Set the name in the combo widget to match the specified value. + */ + protected void updateComboForValue(String value) { + fValue =3D value; + for (int i =3D 0; i < fEntryNamesAndValues.length; i++) { + if (value.equals(fEntryNamesAndValues[i][1])) { + fCombo.setText(fEntryNamesAndValues[i][0]); + return; + } + } + if (fEntryNamesAndValues.length > 0) { + fValue =3D fEntryNamesAndValues[0][1]; + fCombo.setText(fEntryNamesAndValues[0][0]); + } + } + + @Override + public int getNumberOfControls() { + return 2; + } +} Property changes on: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/to= ols/vpe/editor/preferences/VpeComboFieldEditor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:keywords + Author Id Revision Date Name: svn:eol-style + native Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/preferences/VpeEditorPreferencesPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/pr= eferences/VpeEditorPreferencesPage.java 2009-09-14 15:06:24 UTC (rev 17547) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/pr= eferences/VpeEditorPreferencesPage.java 2009-09-14 16:17:42 UTC (rev 17548) @@ -10,24 +10,18 @@ *************************************************************************= *****/ = package org.jboss.tools.vpe.editor.preferences; = -import org.eclipse.core.runtime.Preferences; import org.eclipse.jface.preference.PreferenceDialog; import org.eclipse.ui.IWorkbenchPreferencePage; import org.eclipse.ui.PlatformUI; import org.eclipse.ui.dialogs.PreferencesUtil; import org.jboss.tools.common.model.ui.preferences.TabbedPreferencesPage; -import org.jboss.tools.common.model.ui.preferences.XMOBasedPreferencesPage; -import org.jboss.tools.common.model.ui.util.ModelUtilities; -import org.jboss.tools.jst.jsp.preferences.VpePreference; -import org.jboss.tools.vpe.VpePlugin; -import org.jboss.tools.vpe.messages.VpeUIMessages; = public class VpeEditorPreferencesPage extends TabbedPreferencesPage implem= ents IWorkbenchPreferencePage { = = public static final String ID =3D "org.jboss.tools.vpe.editor"; //$NON-N= LS-1$ public VpeEditorPreferencesPage() { - addPreferencePage(new GeneralPage()); + addPreferencePage(new VpePreferencesPage()); addPreferencePage(new TemplatesPreferencePage()); } = @@ -41,13 +35,4 @@ prefsdlg.open(); } = - static class GeneralPage extends XMOBasedPreferencesPage { - public GeneralPage() { - super(ModelUtilities.getPreferenceModel().getByPath(VpePreference.VPE_E= DITOR_PATH)); - } - - public String getTitle() { - return VpeUIMessages.GENERAL; - } - } } \ No newline at end of file Added: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor= /preferences/VpePreferencesPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/pr= eferences/VpePreferencesPage.java (rev 0) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/pr= eferences/VpePreferencesPage.java 2009-09-14 16:17:42 UTC (rev 17548) @@ -0,0 +1,184 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.vpe.editor.preferences; + +import org.eclipse.jface.preference.BooleanFieldEditor; +import org.eclipse.jface.preference.FieldEditorPreferencePage; +import org.eclipse.jface.preference.IPreferenceStore; +import org.eclipse.swt.SWT; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Control; +import org.eclipse.swt.widgets.Group; +import org.eclipse.ui.IEditorPart; +import org.eclipse.ui.IEditorReference; +import org.eclipse.ui.IWorkbench; +import org.eclipse.ui.IWorkbenchPreferencePage; +import org.jboss.tools.jst.jsp.JspEditorPlugin; +import org.jboss.tools.jst.jsp.editor.IVisualEditor; +import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor; +import org.jboss.tools.jst.jsp.preferences.IVpePreferencesPage; +import org.jboss.tools.vpe.VpePlugin; +import org.jboss.tools.vpe.editor.VpeEditorPart; +import org.jboss.tools.vpe.messages.VpeUIMessages; + +public class VpePreferencesPage extends FieldEditorPreferencePage implemen= ts + IWorkbenchPreferencePage, IVpePreferencesPage { + + private static final String[][] DEFAULT_VPE_TAB_COMBO_BOX_VALUES =3D { + { VpeUIMessages.DEFAULT_VPE_TAB_VISUAL_SOURCE, + DEFAULT_VPE_TAB_VISUAL_SOURCE_VALUE }, + { VpeUIMessages.DEFAULT_VPE_TAB_SOURCE, + DEFAULT_VPE_TAB_SOURCE_VALUE }, + { VpeUIMessages.DEFAULT_VPE_TAB_PREVIEW, + DEFAULT_VPE_TAB_PREVIEW_VALUE } }; + private static final String[][] SPLITTING_COMBO_BOX_VALUES =3D { + { VpeUIMessages.SPLITTING_VERT_TOP_SOURCE, + SPLITTING_VERT_TOP_SOURCE_VALUE }, + { VpeUIMessages.SPLITTING_VERT_TOP_VISUAL, + SPLITTING_VERT_TOP_VISUAL_VALUE }, + { VpeUIMessages.SPLITTING_HORIZ_LEFT_SOURCE, + SPLITTING_HORIZ_LEFT_SOURCE_VALUE }, + { VpeUIMessages.SPLITTING_HORIZ_LEFT_VISUAL, + SPLITTING_HORIZ_LEFT_VISUAL_VALUE } }; + = + private Composite pageContainer; + private Group visualAppearanceGroup; + private Group confirmationGroup; + private Group tabsGroup; + = + public VpePreferencesPage() { + super(); + setPreferenceStore(getPreferenceStore()); + } + + public void init(IWorkbench workbench) { + /* + * Do nothing + */ + } + + public String getTitle() { + return VpeUIMessages.GENERAL_TAB_TITLE; + } + = + @Override + protected Control createContents(Composite parent) { + = + pageContainer =3D new Composite(parent, SWT.NONE); + GridLayout layout =3D new GridLayout(); + layout.numColumns =3D 1; + layout.marginHeight =3D 10; + layout.marginWidth =3D 10; + layout.horizontalSpacing =3D 10; + layout.verticalSpacing =3D 10; + GridData gd =3D new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1); + pageContainer.setLayout(layout); + pageContainer.setLayoutData(gd); + = + visualAppearanceGroup =3D new Group(pageContainer, SWT.SHADOW_ETCH= ED_IN); + visualAppearanceGroup.setText(VpeUIMessages.VISUAL_APPEARANCE_GROU= P_TITLE); + layout =3D new GridLayout(); + layout.marginHeight =3D 10; + layout.marginWidth =3D 10; + layout.horizontalSpacing =3D 10; + layout.verticalSpacing =3D 10; + visualAppearanceGroup.setLayout(layout); + gd =3D new GridData(SWT.FILL, SWT.NONE, true, false, 1, 1); + visualAppearanceGroup.setLayoutData(gd); + = + confirmationGroup =3D new Group(pageContainer, SWT.SHADOW_ETCHED_IN); + confirmationGroup.setText(VpeUIMessages.CONFIRMATION_GROUP_TITLE); + layout =3D new GridLayout(); + layout.marginHeight =3D 10; + layout.marginWidth =3D 10; + layout.horizontalSpacing =3D 10; + layout.verticalSpacing =3D 10; + confirmationGroup.setLayout(layout); + gd =3D new GridData(SWT.FILL, SWT.NONE, true, false, 1, 1); + confirmationGroup.setLayoutData(gd); + = + tabsGroup =3D new Group(pageContainer, SWT.SHADOW_ETCHED_IN); + tabsGroup.setText(VpeUIMessages.TABS_GROUP_TITLE); + layout =3D new GridLayout(); + layout.marginHeight =3D 10; + layout.marginWidth =3D 10; + tabsGroup.setLayout(layout); + gd =3D new GridData(SWT.FILL, SWT.NONE, true, false, 1, 1); + tabsGroup.setLayoutData(gd); + = + createFieldEditors(); + initialize(); + checkState(); + = + return pageContainer; + } + = + @Override + protected Composite getFieldEditorParent() { + return pageContainer; + } + + @Override + protected void createFieldEditors() { + addField(new BooleanFieldEditor(SHOW_BORDER_FOR_UNKNOWN_TAGS, + VpeUIMessages.SHOW_BORDER_FOR_UNKNOWN_TAGS, visualAppearanceGroup)); + addField(new BooleanFieldEditor(SHOW_NON_VISUAL_TAGS, + VpeUIMessages.SHOW_NON_VISUAL_TAGS, visualAppearanceGroup)); + addField(new BooleanFieldEditor(SHOW_SELECTION_TAG_BAR, + VpeUIMessages.SHOW_SELECTION_TAG_BAR, visualAppearanceGroup)); + addField(new BooleanFieldEditor(SHOW_RESOURCE_BUNDLES_USAGE_AS_EL, + VpeUIMessages.SHOW_RESOURCE_BUNDLES_USAGE_AS_EL, visualAppearanceGroup= )); + addField(new BooleanFieldEditor(ASK_TAG_ATTRIBUTES_ON_TAG_INSERT, + VpeUIMessages.ASK_TAG_ATTRIBUTES_ON_TAG_INSERT, confirmationGroup)); + addField(new BooleanFieldEditor(ASK_CONFIRMATION_ON_CLOSING_SELECTION_BA= R, + VpeUIMessages.ASK_CONFIRMATION_ON_CLOSING_SELECTION_BAR, confirmationG= roup)); + addField(new VpeComboFieldEditor(DEFAULT_VPE_TAB, + VpeUIMessages.DEFAULT_VPE_TAB, DEFAULT_VPE_TAB_COMBO_BOX_VALUES, tabsG= roup)); + addField(new VpeComboFieldEditor(VISUAL_SOURCE_EDITORS_SPLITTING, + VpeUIMessages.VISUAL_SOURCE_EDITORS_SPLITTING, SPLITTING_COMBO_BOX_VAL= UES, tabsGroup)); + addField(new SliderFieldEditor(VISUAL_SOURCE_EDITORS_WEIGHTS, + VpeUIMessages.VISUAL_SOURCE_EDITORS_WEIGHTS, tabsGroup)); + } + + @Override + public boolean performOk() { + super.performOk(); + IEditorReference[] editors =3D VpePlugin.getDefault().getWorkbench().get= ActiveWorkbenchWindow().getActivePage().getEditorReferences(); + for (IEditorReference editor : editors) { + IEditorPart editorPart =3D editor.getEditor(false); + if ((editorPart !=3D null) && (editorPart instanceof JSPMultiPageEditor= )) { + JSPMultiPageEditor mpe =3D (JSPMultiPageEditor)editorPart; + IVisualEditor visualEditor =3D (mpe).getVisualEditor(); + if (visualEditor instanceof VpeEditorPart) { + VpeEditorPart vep =3D (VpeEditorPart) visualEditor; + /* + * Update visual editor + */ + vep.updatePartAccordingToPreferences(); + /* + * Change selected tab + */ + mpe.updatePartAccordingToPreferences(); + } + } + } + = + return true; + } + + @Override + public IPreferenceStore getPreferenceStore() { + return JspEditorPlugin.getDefault().getPreferenceStore(); + } + = +} Property changes on: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/to= ols/vpe/editor/preferences/VpePreferencesPage.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:keywords + Author Id Revision Date Name: svn:eol-style + native Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/template/VpeAnyCreator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/te= mplate/VpeAnyCreator.java 2009-09-14 15:06:24 UTC (rev 17547) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/te= mplate/VpeAnyCreator.java 2009-09-14 16:17:42 UTC (rev 17548) @@ -15,7 +15,8 @@ import java.util.Map; import java.util.Set; = -import org.jboss.tools.jst.jsp.preferences.VpePreference; +import org.jboss.tools.jst.jsp.JspEditorPlugin; +import org.jboss.tools.jst.jsp.preferences.IVpePreferencesPage; import org.jboss.tools.vpe.VpePlugin; import org.jboss.tools.vpe.editor.context.VpePageContext; import org.jboss.tools.vpe.editor.template.expression.VpeExpression; @@ -180,7 +181,8 @@ = String styleString =3D getExprValue(pageContext, styleExpr, sourceNode); = - if ("yes".equalsIgnoreCase(VpePreference.SHOW_BORDER_FOR_UNKNOWN_TAGS.ge= tValue())) { //$NON-NLS-1$ + if (JspEditorPlugin.getDefault().getPreferenceStore().getBoolean( + IVpePreferencesPage.SHOW_BORDER_FOR_UNKNOWN_TAGS)) { styleString =3D "border: 1px solid green;" +styleString; //$NON-NLS-1$ } = Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/xpl/CustomSashForm.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xp= l/CustomSashForm.java 2009-09-14 15:06:24 UTC (rev 17547) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xp= l/CustomSashForm.java 2009-09-14 16:17:42 UTC (rev 17548) @@ -29,7 +29,8 @@ import org.eclipse.swt.widgets.Event; import org.eclipse.swt.widgets.Listener; import org.eclipse.swt.widgets.Sash; -import org.jboss.tools.jst.jsp.preferences.VpePreference; +import org.jboss.tools.jst.jsp.JspEditorPlugin; +import org.jboss.tools.jst.jsp.preferences.IVpePreferencesPage; import org.jboss.tools.vpe.messages.VpeUIMessages; = /** @@ -45,10 +46,6 @@ public class CustomSashForm extends SashForm { = public static final String copyright =3D "(c) Copyright IBM Corporation 2= 002."; //$NON-NLS-1$ - public static final String LAYOUT_VERTICAL_SOURCE_TOP =3D "Vertical Sourc= e on top"; //$NON-NLS-1$ - public static final String LAYOUT_VERTICAL_VISUAL_TOP =3D "Vertical Visua= l on top"; //$NON-NLS-1$ - public static final String LAYOUT_HORIZONTAL_SOURCE_LEFT =3D "Horizontal = Source to the left"; //$NON-NLS-1$ - public static final String LAYOUT_HORIZONTAL_VISUAL_LEFT =3D "Horizontal = Visual to the left"; //$NON-NLS-1$ /** * Custom style bits. They set whether max to one side of the other * is not permitted. For example, if NO_MAX_UP, then there will be only @@ -81,17 +78,11 @@ /* * Init the sash weight with the default value. = */ - String defaultWeightString =3D VpePreference.SOURCE_VISUAL_EDITORS_W= EIGHTS.getValue(); - try { - int defaultWeight =3D Integer.parseInt(defaultWeightString); + int defaultWeight =3D JspEditorPlugin.getDefault().getPreferenceStore() + .getInt(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_WEIGHTS); if (defaultWeight > 0) { weight =3D defaultWeight; } - } catch (NumberFormatException e) { - /* - * Do nothing - */ - } } }; = @@ -382,7 +373,8 @@ if (currentSashInfo.cursorOver !=3D i) { currentSashInfo.cursorOver =3D i; currentSashInfo.sash.redraw(); - String splitting =3D VpePreference.VISUAL_SOURCE_EDITORS_SPLITTING= .getValue(); + String splitting =3D JspEditorPlugin.getDefault().getPreferenceSto= re() + .getString(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING); switch (locs[ARROW_TYPE_INDEX]) { case UP_ARROW: case DOWN_ARROW: @@ -393,20 +385,20 @@ * https://jira.jboss.org/jira/browse/JBIDE-4270 * Tooltip text should correspond panes position. */ - if (LAYOUT_HORIZONTAL_SOURCE_LEFT.equalsIgnoreCase(splitting) - || LAYOUT_VERTICAL_SOURCE_TOP.equalsIgnoreCase(splitting)) { - currentSashInfo.sash.setToolTipText(VpeUIMessages.MAX_VISUAL_PANE= ); - } else { - currentSashInfo.sash.setToolTipText(VpeUIMessages.MAX_SOURCE_PANE= ); - } + if (IVpePreferencesPage.SPLITTING_HORIZ_LEFT_SOURCE_VALUE.equalsI= gnoreCase(splitting) + || IVpePreferencesPage.SPLITTING_VERT_TOP_SOURCE_VALUE.equalsIg= noreCase(splitting)) { + currentSashInfo.sash.setToolTipText(VpeUIMessages.MAX_VISUAL_PAN= E); + } else { + currentSashInfo.sash.setToolTipText(VpeUIMessages.MAX_SOURCE_PAN= E); + } break; case DOWN_MAX_ARROW: - if (LAYOUT_HORIZONTAL_SOURCE_LEFT.equalsIgnoreCase(splitting) - || LAYOUT_VERTICAL_SOURCE_TOP.equalsIgnoreCase(splitting)) { - currentSashInfo.sash.setToolTipText(VpeUIMessages.MAX_SOURCE_PANE= ); - } else { - currentSashInfo.sash.setToolTipText(VpeUIMessages.MAX_VISUAL_PANE= ); - } + if (IVpePreferencesPage.SPLITTING_HORIZ_LEFT_SOURCE_VALUE.equalsI= gnoreCase(splitting) + || IVpePreferencesPage.SPLITTING_VERT_TOP_SOURCE_VALUE.equalsIg= noreCase(splitting)) { + currentSashInfo.sash.setToolTipText(VpeUIMessages.MAX_SOURCE_PAN= E); + } else { + currentSashInfo.sash.setToolTipText(VpeUIMessages.MAX_VISUAL_PAN= E); + } break; } } @@ -1098,16 +1090,7 @@ gc.drawLine(x+3, y+1, x+3, y+6); gc.drawLine(x+2, y+1, x+2, y+7); } - = - public int getSavedWeight() { - if (currentSashInfo!=3Dnull) - return currentSashInfo.weight; - else - return -1; - } - - = protected Sash getSash() { Control[] kids =3D getChildren(); for (int i =3D 0; i < kids.length; i++) { @@ -1117,13 +1100,6 @@ return null; } = - public void setCurrentSavedWeight(int weight) { - if (weight>=3D0 && currentSashInfo!=3Dnull) { - recomputeSashInfo(false); - currentSashInfo.weight=3Dweight; - } - } - = /** * Adds a custom sashform listener. This listener will be removed when = * this control is disposed. @@ -1178,20 +1154,36 @@ } = public void changeOrientation() { - int prefsOrientation =3D getSplittingFromPreferences(); - if (getOrientation() !=3D prefsOrientation) { - setOrientation(prefsOrientation); - } = + int prefsOrientation =3D getSplittingFromPreferences(); + if (getOrientation() !=3D prefsOrientation) { + setOrientation(prefsOrientation); + } } = public static int getSplittingFromPreferences() { - String splitting =3D VpePreference.VISUAL_SOURCE_EDITORS_SPLITTING.ge= tValue(); - if (LAYOUT_HORIZONTAL_SOURCE_LEFT.equalsIgnoreCase(splitting) - || LAYOUT_HORIZONTAL_VISUAL_LEFT.equalsIgnoreCase(splitting)) { - return SWT.HORIZONTAL; - } else { - return SWT.VERTICAL; - } + String splitting =3D JspEditorPlugin.getDefault().getPreferenceStore() + .getString(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING); + if (IVpePreferencesPage.SPLITTING_HORIZ_LEFT_SOURCE_VALUE + .equalsIgnoreCase(splitting) + || IVpePreferencesPage.SPLITTING_HORIZ_LEFT_VISUAL_VALUE + .equalsIgnoreCase(splitting)) { + return SWT.HORIZONTAL; + } else { + return SWT.VERTICAL; + } } = + public static boolean isSourceEditorFirst() { + boolean sourceEditorFirst =3D false; + String splitting =3D JspEditorPlugin.getDefault().getPreferenceStore() + .getString(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING); + if (IVpePreferencesPage.SPLITTING_HORIZ_LEFT_SOURCE_VALUE + .equalsIgnoreCase(splitting) + || IVpePreferencesPage.SPLITTING_VERT_TOP_SOURCE_VALUE + .equalsIgnoreCase(splitting)) { + sourceEditorFirst =3D true; + } + return sourceEditorFirst; + } + = } Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/xpl/EditorSettings.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xp= l/EditorSettings.java 2009-09-14 15:06:24 UTC (rev 17547) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xp= l/EditorSettings.java 2009-09-14 16:17:42 UTC (rev 17548) @@ -67,6 +67,10 @@ editor=3Dnull; } = + public void clearOldSettings() { + settings.clear(); + } + = public void setInput(FileEditorInput input) { file =3D input.getFile(); for (int i =3D 0; i < settings.size(); i++) { Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/xpl/SashSetting.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xp= l/SashSetting.java 2009-09-14 15:06:24 UTC (rev 17547) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xp= l/SashSetting.java 2009-09-14 16:17:42 UTC (rev 17548) @@ -9,8 +9,8 @@ import org.eclipse.swt.events.ControlListener; import org.eclipse.swt.widgets.Control; import org.eclipse.ui.IEditorPart; -import org.jboss.tools.jst.jsp.preferences.VpePreference; -import org.jboss.tools.vpe.VpePlugin; +import org.jboss.tools.jst.jsp.JspEditorPlugin; +import org.jboss.tools.jst.jsp.preferences.IVpePreferencesPage; = = = @@ -30,128 +30,47 @@ private QualifiedName name; private CustomSashForm sash; = - private ControlListener listener=3Dnull; private Control listenedControl=3Dnull; = private int weights[]; = - /** - * Save both the current weights, and the (potential) save - * weights. The first value is the size of the = - * current weights - * = - * @since 1.1.0 - */ - protected void updateWeights() { - weights =3D sash.getWeights(); - StringBuffer sb =3D new StringBuffer(); - for (int i =3D 0; i < weights.length; i++) { - if (i>0) - sb.append(EditorSettings.SEPERATOR); - sb.append(weights[i]); - } - sb.append(EditorSettings.SEPERATOR); - sb.append(-1); // seperate between current weights, and saved weights - sb.append(EditorSettings.SEPERATOR); - sb.append(sash.getSavedWeight()); - try { - //fix for JBIDE-3805 - if(resource.exists()) { - resource.setPersistentProperty(name,sb.toString()); - } - } catch (CoreException e) { - VpePlugin.getPluginLog().logError(e); - } - } - = public SashSetting(CustomSashForm s) { sash =3D s; = } = - protected void addListener() { - if (listener=3D=3Dnull && !sash.isDisposed()) { - listener =3D new ControlListener() { = - public void controlResized(ControlEvent e) { - updateWeights(); - } = - public void controlMoved(ControlEvent e) { - updateWeights(); = - } = - }; - listenedControl =3D sash.getChildren()[0]; - listenedControl.addControlListener(listener); = - } = - } - = - protected void removeListener() { - if (listenedControl!=3Dnull && !listenedControl.isDisposed()) { - listenedControl.removeControlListener(listener); - listener=3Dnull; - listenedControl=3Dnull; - } - } - = public void apply() { - try { - String val =3D resource.getPersistentProperty(name); - if (val!=3Dnull) { - StringTokenizer st =3D new StringTokenizer(val,EditorSettings.SEPERATO= R); - weights =3D new int[st.countTokens()]; - int index =3D 0; = - while(st.hasMoreTokens()) { - String s =3D st.nextToken(); - weights[index++]=3DInteger.parseInt(s); + /* + * Set weights from the preference page + */ + int defaultWeight =3D JspEditorPlugin.getDefault().getPreferenceStore() + .getInt(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_WEIGHTS); + int[] weights =3D sash.getWeights(); + if (weights.length > 2) { + if (defaultWeight =3D=3D 0) { + if (CustomSashForm.isSourceEditorFirst()) { + sash.maxDown(); + } else { + sash.maxUp(); } - for (index =3D 0; index < weights.length; index++) { - if (weights[index]<0) - break; = + } else if (defaultWeight =3D=3D 1000) { + if (CustomSashForm.isSourceEditorFirst()) { + sash.maxUp(); + } else { + sash.maxDown(); } - int saved =3D -1; - if (index=3D0) - sash.setCurrentSavedWeight(saved); } else { - /* - * Set weights from the preference page - */ - String stringValue =3D VpePreference.SOURCE_VISUAL_EDITORS_WEIGHTS.get= Value(); - try { - int intValue =3D Integer.parseInt(stringValue); - int[] weights =3D sash.getWeights(); - if (weights.length > 2) { - if (intValue =3D=3D 0) { - sash.maxDown(); - } else if (intValue =3D=3D 1000) { - sash.maxUp(); - } else { - weights[0] =3D intValue; - weights[1] =3D 1000 - intValue; - sash.setWeights(weights); - } - } - } catch (NumberFormatException e) { - // Do nothing + if (CustomSashForm.isSourceEditorFirst()) { + weights[0] =3D 1000 - defaultWeight; + weights[1] =3D defaultWeight; + } else { + weights[0] =3D defaultWeight; + weights[1] =3D 1000 - defaultWeight; } + sash.setWeights(weights); } - } catch (CoreException e1) { - VpePlugin.getPluginLog().logError(e1); } - addListener(); } = - - public void dispose() { = - removeListener(); - } - public void setQualifier(String q) { name =3D new QualifiedName(q,id); = } @@ -163,4 +82,8 @@ public void setResource(IResource r) { resource =3D r; = } + + public void dispose() { + = + } } Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/mes= sages/VpeUIMessages.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/= VpeUIMessages.java 2009-09-14 15:06:24 UTC (rev 17547) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/= VpeUIMessages.java 2009-09-14 16:17:42 UTC (rev 17548) @@ -113,4 +113,25 @@ public static String INCLUDED_CSS_FILES_ABOUT; public static String INCLUDED_TAG_LIBS_ABOUT; public static String SUBSTITUTED_EL_EXPRESSIONS_ABOUT; + = + public static String GENERAL_TAB_TITLE; + public static String VPE_PREFERENCES_PAGE_DESCRIPTION; + public static String SHOW_BORDER_FOR_UNKNOWN_TAGS; + public static String SHOW_SELECTION_TAG_BAR; + public static String SHOW_RESOURCE_BUNDLES_USAGE_AS_EL; + public static String ASK_TAG_ATTRIBUTES_ON_TAG_INSERT; + public static String ASK_CONFIRMATION_ON_CLOSING_SELECTION_BAR; + public static String DEFAULT_VPE_TAB; + public static String VISUAL_SOURCE_EDITORS_SPLITTING; + public static String VISUAL_SOURCE_EDITORS_WEIGHTS; + public static String DEFAULT_VPE_TAB_VISUAL_SOURCE; + public static String DEFAULT_VPE_TAB_SOURCE; + public static String DEFAULT_VPE_TAB_PREVIEW; + public static String SPLITTING_VERT_TOP_SOURCE; + public static String SPLITTING_VERT_TOP_VISUAL; + public static String SPLITTING_HORIZ_LEFT_SOURCE; + public static String SPLITTING_HORIZ_LEFT_VISUAL; + public static String VISUAL_APPEARANCE_GROUP_TITLE; + public static String CONFIRMATION_GROUP_TITLE; + public static String TABS_GROUP_TITLE; } Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/mes= sages/messages.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/= messages.properties 2009-09-14 15:06:24 UTC (rev 17547) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/= messages.properties 2009-09-14 16:17:42 UTC (rev 17548) @@ -6,8 +6,8 @@ PREFERENCES=3DPreferences REFRESH=3DRefresh PAGE_DESIGN_OPTIONS=3DPage Design Options -HIDE_SELECTION_BAR=3DHide Selection Bar -SHOW_SELECTION_BAR=3DShow Selection Bar +HIDE_SELECTION_BAR=3DHide selection bar +SHOW_SELECTION_BAR=3DShow selection bar MOZILLA_LOADING_ERROR=3DCould not open the Visual Page Editor: {0} MOZILLA_LOADING_ERROR_LINK_TEXT=3DSee JBoss Tools Visual Editor FAQ # START NON-TRANSLATABLE @@ -91,4 +91,28 @@ ACTUAL_RUN_TIME_FOLDERS_ABOUT=3DThese options will be used by Visual Page = Editor for replacing absolute and relative path values when generating a pr= eview INCLUDED_CSS_FILES_ABOUT=3DThese CSS files will be linked by Visual Page E= ditor when generating a preview INCLUDED_TAG_LIBS_ABOUT=3DThese Taglibs will be used by Visual Page Editor= for getting appropriate template for generating a preview, if this Taglibs= doesn't included on page -SUBSTITUTED_EL_EXPRESSIONS_ABOUT=3DThese EL expressions will be substitute= d by Visual Page Editor when generating a preview \ No newline at end of file +SUBSTITUTED_EL_EXPRESSIONS_ABOUT=3DThese EL expressions will be substitute= d by Visual Page Editor when generating a preview + +# Visual Page Editor Preference Page +GENERAL_TAB_TITLE=3DGeneral +VPE_PREFERENCES_PAGE_DESCRIPTION=3DVisual Page Editor settings +SHOW_BORDER_FOR_UNKNOWN_TAGS=3DShow border for unknown tags +SHOW_SELECTION_TAG_BAR=3DShow selection tag bar +SHOW_RESOURCE_BUNDLES_USAGE_AS_EL=3DShow resource bundles usage as EL expr= essions +ASK_TAG_ATTRIBUTES_ON_TAG_INSERT=3DAsk for tag attributes during tag insert +ASK_CONFIRMATION_ON_CLOSING_SELECTION_BAR=3DAsk for confirmation when clos= ing Selection Bar +DEFAULT_VPE_TAB=3DSelect the default active editor's tab for files that ha= ven't been previously opened in the VPE +VISUAL_SOURCE_EDITORS_SPLITTING=3DVisual/Source editors splitting +VISUAL_SOURCE_EDITORS_WEIGHTS=3DSize of the Visual Editor pane (0-100%) +VISUAL_APPEARANCE_GROUP_TITLE=3DVisual appearance +CONFIRMATION_GROUP_TITLE=3DConfirmation and details +TABS_GROUP_TITLE=3DTabs + +# Visual Page Editor Preference Page List Items +DEFAULT_VPE_TAB_VISUAL_SOURCE=3DVisual/Source +DEFAULT_VPE_TAB_SOURCE=3DSource +DEFAULT_VPE_TAB_PREVIEW=3DPreview +SPLITTING_VERT_TOP_SOURCE=3DVertical splitting with Source Editor on the t= op +SPLITTING_VERT_TOP_VISUAL=3DVertical splitting with Visual Editor on the t= op +SPLITTING_HORIZ_LEFT_SOURCE=3DHorizontal splitting with Source Editor to t= he left +SPLITTING_HORIZ_LEFT_VISUAL=3DHorizontal splitting with Visual Editor to t= he left \ No newline at end of file Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/sel= bar/SelectionBar.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar/Se= lectionBar.java 2009-09-14 15:06:24 UTC (rev 17547) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar/Se= lectionBar.java 2009-09-14 16:17:42 UTC (rev 17548) @@ -50,6 +50,8 @@ import org.jboss.tools.common.model.ui.attribute.adapter.AdapterFactory; import org.jboss.tools.common.model.ui.attribute.adapter.IModelPropertyEdi= torAdapter; import org.jboss.tools.common.model.ui.util.ModelUtilities; +import org.jboss.tools.jst.jsp.JspEditorPlugin; +import org.jboss.tools.jst.jsp.preferences.IVpePreferencesPage; import org.jboss.tools.jst.jsp.preferences.VpePreference; import org.jboss.tools.vpe.editor.VpeController; import org.jboss.tools.vpe.editor.selection.VpeSourceSelection; @@ -126,7 +128,7 @@ = final Listener closeListener =3D new Listener() { public void handleEvent(Event event) { - if (!getHideWithoutPromptOption()) { + if (askConfirmationOnClosingSelectionBar()) { MessageDialogWithToggle dialog =3D MessageDialogWithToggle .openOkCancelConfirm( PlatformUI.getWorkbench() @@ -134,14 +136,13 @@ .getShell(), VpeUIMessages.CONFIRM_SELECTION_BAR_DIALOG_TITLE, VpeUIMessages.CONFIRM_SELECTION_BAR_DIALOG_MESSAGE, - VpeUIMessages.CONFIRM_SELECTION_BAR_DIALOG_TOGGLE_MESSAGE, - false, null, null); +// VpeUIMessages.CONFIRM_SELECTION_BAR_DIALOG_TOGGLE_MESSAGE, + VpeUIMessages.ASK_CONFIRMATION_ON_CLOSING_SELECTION_BAR, + askConfirmationOnClosingSelectionBar(), null, null); if (dialog.getReturnCode() !=3D IDialogConstants.OK_ID) { return; } - if (dialog.getToggleState()) { - setHideWithoutPromptOption(true); - } + setAskConfirmationOnClosingSelectionBar(dialog.getToggleState()); } = setAlwaysVisibleOption(false); @@ -203,24 +204,19 @@ } = public boolean getAlwaysVisibleOption() { - return VpePreference.SHOW_SELECTION_TAG_BAR.getValue().equals(PREFERENCE= _YES); + return JspEditorPlugin.getDefault().getPreferenceStore().getBoolean( + IVpePreferencesPage.SHOW_SELECTION_TAG_BAR); } = - public void setHideWithoutPromptOption(boolean hideWithoutPrompt) { - final String optionValue; - if (hideWithoutPrompt) { - optionValue =3D PREFERENCE_YES; - } else { - optionValue =3D PREFERENCE_NO; - } - - setPersistentOption(VpePreference.ATT_ALWAYS_HIDE_SELECTION_BAR_WITHOUT_= PROMT, - optionValue); + public void setAskConfirmationOnClosingSelectionBar(boolean askConfirmati= on) { + JspEditorPlugin.getDefault().getPreferenceStore().setValue( + IVpePreferencesPage.ASK_CONFIRMATION_ON_CLOSING_SELECTION_BAR, + askConfirmation); } = - public boolean getHideWithoutPromptOption() { - return VpePreference.ALWAYS_HIDE_SELECTION_BAR_WITHOUT_PROMT - .getValue().equals(PREFERENCE_YES); + public boolean askConfirmationOnClosingSelectionBar() { + return JspEditorPlugin.getDefault().getPreferenceStore().getBoolean( + IVpePreferencesPage.ASK_CONFIRMATION_ON_CLOSING_SELECTION_BAR); } = /** --===============4336600847026990973==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 12:18:22 2009 Content-Type: multipart/mixed; boundary="===============7626745031587518802==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17549 - in trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute: editor and 1 other directory. Date: Mon, 14 Sep 2009 12:18:22 -0400 Message-ID: <200909141618.n8EGIMgx013594@svn01.web.mwc.hst.phx2.redhat.com> --===============7626745031587518802== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-14 12:18:22 -0400 (Mon, 14 Sep 2009) New Revision: 17549 Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/attribute/adapter/CheckListAdapter.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/attribute/editor/CheckListFieldEditor.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/attribute/editor/ComboBoxFieldEditor.java Log: https://jira.jboss.org/jira/browse/JBIDE-2607 Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/attribute/adapter/CheckListAdapter.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/attribute/adapter/CheckListAdapter.java 2009-09-14 16:17:= 42 UTC (rev 17548) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/attribute/adapter/CheckListAdapter.java 2009-09-14 16:18:= 22 UTC (rev 17549) @@ -54,8 +54,9 @@ = public void checkAll() { StringBuffer sb =3D new StringBuffer(); + char separator =3D getSeparator(); for (int i =3D 0; i < tags.length; i++) { - if(i > 0) sb.append(';'); + if(i > 0) sb.append(separator); sb.append(tags[i]); } setValue(sb.toString()); @@ -138,4 +139,16 @@ return false; } } + + public char getSeparator() { + XAttribute a =3D getAttribute(); + if(a =3D=3D null && getAttributeData() !=3D null) { + a =3D getAttributeData().getAttribute(); + } + if(a !=3D null) { + String s =3D a.getProperty("separator"); + if("comma".equals(s)) return ','; + } + return ';'; + } } Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/attribute/editor/CheckListFieldEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/attribute/editor/CheckListFieldEditor.java 2009-09-14 16:= 17:42 UTC (rev 17548) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/attribute/editor/CheckListFieldEditor.java 2009-09-14 16:= 18:22 UTC (rev 17549) @@ -12,10 +12,13 @@ = import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; +import java.util.HashSet; +import java.util.Set; import java.util.StringTokenizer; = import org.jboss.tools.common.model.ui.IValueChangeListener; import org.jboss.tools.common.model.ui.IValueProvider; +import org.jboss.tools.common.model.ui.attribute.adapter.CheckListAdapter; import org.jboss.tools.common.model.ui.wizards.query.list.TreeItemSelectio= nManager; import org.eclipse.jface.util.IPropertyChangeListener; import org.eclipse.jface.viewers.IContentProvider; @@ -42,6 +45,8 @@ = private String stringValue; private TreeViewer viewer; + + String separator =3D ";"; = public CheckListFieldEditor() {} = @@ -128,6 +133,9 @@ contentProvider =3D (IContentProvider)propertyEditor.getAdapter(ITreeCo= ntentProvider.class); labelProvider =3D (ILabelProvider)propertyEditor.getAdapter(ILabelProvi= der.class); // Object input =3D propertyEditor.getInput(); + if(propertyEditor.getInput() instanceof CheckListAdapter) { + separator =3D "" + ((CheckListAdapter)propertyEditor.getInput()).getSe= parator(); + } } init(); } @@ -148,15 +156,15 @@ lock++; Tree tree =3D viewer.getTree(); TreeItem[] is =3D tree.getItems(); + Set vs =3D new HashSet(); + StringTokenizer values =3D new StringTokenizer(stringValue, ";,"); /= /$NON-NLS-1$ + while(values.hasMoreTokens()) { + String n =3D values.nextToken(); + vs.add(n); + } for (int i =3D 0; i < is.length; i++) { Object d =3D is[i].getData(); - StringTokenizer values =3D new StringTokenizer(stringValue, ";,"); = //$NON-NLS-1$ - while(values.hasMoreTokens()) { - String n =3D values.nextToken(); - if(n.equals(d)) { - is[i].setChecked(true); - } - } + is[i].setChecked(vs.contains(d)); } lock--; } @@ -182,12 +190,12 @@ if (value.equals(currentItem)) currentItemExists =3D true; else { - if(newValue.length() > 0 && !newValue.endsWith(";") && !newValue.endsW= ith(",")) newValue +=3D ";"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + if(newValue.length() > 0 && !newValue.endsWith(";") && !newValue.endsW= ith(",")) newValue +=3D separator; //$NON-NLS-1$ //$NON-NLS-2$ newValue +=3D value; } } if (!currentItemExists) { - if(newValue.length() > 0 && !newValue.endsWith(";") && !newValue.endsWi= th(",")) newValue +=3D ";"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + if(newValue.length() > 0 && !newValue.endsWith(";") && !newValue.endsWi= th(",")) newValue +=3D separator; //$NON-NLS-1$ //$NON-NLS-2$ newValue +=3D currentItem; } valueChanged(newValue); Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/attribute/editor/ComboBoxFieldEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/attribute/editor/ComboBoxFieldEditor.java 2009-09-14 16:1= 7:42 UTC (rev 17548) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/attribute/editor/ComboBoxFieldEditor.java 2009-09-14 16:1= 8:22 UTC (rev 17549) @@ -256,6 +256,7 @@ = = SimpleContentProposalProvider cpp =3D new SimpleContentProposalProvider= (set.toArray(new String[0])); + cpp.setFiltering(true); KeyStroke ks =3D AttributeContentProposalProviderFactory.getCtrlSpaceKe= yStroke(); = ContentProposalAdapter adapter =3D new ContentProposalAdapter( --===============7626745031587518802==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 12:36:00 2009 Content-Type: multipart/mixed; boundary="===============3832106362237919460==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17550 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor. Date: Mon, 14 Sep 2009 12:36:00 -0400 Message-ID: <200909141636.n8EGa01k018361@svn01.web.mwc.hst.phx2.redhat.com> --===============3832106362237919460== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-14 12:36:00 -0400 (Mon, 14 Sep 2009) New Revision: 17550 Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/attribute/editor/CheckListFieldEditor.java Log: https://jira.jboss.org/jira/browse/JBIDE-2607 Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/attribute/editor/CheckListFieldEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/attribute/editor/CheckListFieldEditor.java 2009-09-14 16:= 18:22 UTC (rev 17549) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/attribute/editor/CheckListFieldEditor.java 2009-09-14 16:= 36:00 UTC (rev 17550) @@ -16,6 +16,7 @@ import java.util.Set; import java.util.StringTokenizer; = +import org.jboss.tools.common.model.ui.IAttributeErrorProvider; import org.jboss.tools.common.model.ui.IValueChangeListener; import org.jboss.tools.common.model.ui.IValueProvider; import org.jboss.tools.common.model.ui.attribute.adapter.CheckListAdapter; @@ -123,6 +124,7 @@ = public void setEnabled(boolean enabled){ super.setEnabled(enabled); + updateErrorState(); } = public void setPropertyEditor(IPropertyEditor propertyEditor) { @@ -133,6 +135,7 @@ contentProvider =3D (IContentProvider)propertyEditor.getAdapter(ITreeCo= ntentProvider.class); labelProvider =3D (ILabelProvider)propertyEditor.getAdapter(ILabelProvi= der.class); // Object input =3D propertyEditor.getInput(); + setErrorProvider((IAttributeErrorProvider)propertyEditor.getAdapter(IAt= tributeErrorProvider.class)); if(propertyEditor.getInput() instanceof CheckListAdapter) { separator =3D "" + ((CheckListAdapter)propertyEditor.getInput()).getSe= parator(); } @@ -142,6 +145,7 @@ = int lock =3D 0; public void propertyChange(PropertyChangeEvent event) { + super.propertyChange(event); valueProvider.removeValueChangeListener(this); if (IPropertyEditor.VALUE.equals(event.getPropertyName())) { Object v =3D event.getNewValue(); @@ -244,4 +248,5 @@ = public void delete() { } + } --===============3832106362237919460==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 12:37:01 2009 Content-Type: multipart/mixed; boundary="===============3222499936000567711==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17551 - in trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml: resources/meta and 2 other directories. Date: Mon, 14 Sep 2009 12:37:00 -0400 Message-ID: <200909141637.n8EGb0V6018856@svn01.web.mwc.hst.phx2.redhat.com> --===============3222499936000567711== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-14 12:37:00 -0400 (Mon, 14 Sep 2009) New Revision: 17551 Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jboss= /tools/hibernate/xml/model/GrantActionsConstraint.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jboss= /tools/hibernate/xml/model/handlers/AddPropertySupport.java Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin.xml trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/met= a/hibconfig3.meta Log: https://jira.jboss.org/jira/browse/JBIDE-2607 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin= .xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin.xml 2= 009-09-14 16:36:00 UTC (rev 17550) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin.xml 2= 009-09-14 16:37:00 UTC (rev 17551) @@ -101,6 +101,11 @@ = + + = + = \ No newline at end of file Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resour= ces/meta/hibconfig3.meta =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/me= ta/hibconfig3.meta 2009-09-14 16:36:00 UTC (rev 17550) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/me= ta/hibconfig3.meta 2009-09-14 16:37:00 UTC (rev 17551) @@ -633,9 +633,21 @@ - + name=3D"entity-name" xmlname=3D"entity-name"> + + + + + + + + + + + + @@ -1097,7 +1109,12 @@ + PROPERTIES=3D"category=3Dgeneral;h_property=3Dhibernate.connection.poo= l_size" name=3D"pool size"> + + + + + @@ -1148,13 +1165,23 @@ + PROPERTIES=3D"category=3Dgeneral;h_property=3Dhibernate.jdbc.batch_siz= e" name=3D"batch size"> + + + + + + PROPERTIES=3D"category=3Dgeneral;h_property=3Dhibernate.jdbc.fetch_siz= e" name=3D"fetch size"> + + + + + - @@ -1307,7 +1334,10 @@ + name=3D"name" xmlname=3D"name"> + + + Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/j= boss/tools/hibernate/xml/model/GrantActionsConstraint.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jbos= s/tools/hibernate/xml/model/GrantActionsConstraint.java = (rev 0) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jbos= s/tools/hibernate/xml/model/GrantActionsConstraint.java 2009-09-14 16:37:00= UTC (rev 17551) @@ -0,0 +1,37 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.hibernate.xml.model; + +import java.util.StringTokenizer; + +import org.jboss.tools.common.meta.constraint.impl.XAttributeConstraintALi= st; + +public class GrantActionsConstraint extends XAttributeConstraintAList { + static String WILD_CARD =3D "*"; //$NON-NLS-1$ + static String MESSAGE =3D "value must be * or combination of read,insert,= update,delete"; //$NON-NLS-1$ + + public boolean accepts(String value) { + if(value.indexOf(WILD_CARD) >=3D 0 && !value.equals(WILD_CARD)) { + return false; + } + StringTokenizer st =3D new StringTokenizer(value, ","); //$NON-NLS= -1$ + while(st.hasMoreTokens()) { + String t =3D st.nextToken().trim(); + if(!values.contains(t)) return false; + } + return true; + } + + public String getError(String value) { + return accepts(value) ? null : MESSAGE; + } + +} Property changes on: trunk/hibernatetools/plugins/org.jboss.tools.hibernate= .xml/src/org/jboss/tools/hibernate/xml/model/GrantActionsConstraint.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/j= boss/tools/hibernate/xml/model/handlers/AddPropertySupport.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jbos= s/tools/hibernate/xml/model/handlers/AddPropertySupport.java = (rev 0) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jbos= s/tools/hibernate/xml/model/handlers/AddPropertySupport.java 2009-09-14 16:= 37:00 UTC (rev 17551) @@ -0,0 +1,61 @@ +package org.jboss.tools.hibernate.xml.model.handlers; + +import java.util.Properties; + +import org.jboss.tools.common.meta.XAttribute; +import org.jboss.tools.common.meta.action.impl.DefaultWizardDataValidator; +import org.jboss.tools.common.meta.action.impl.SpecialWizardSupport; +import org.jboss.tools.common.meta.action.impl.WizardDataValidator; +import org.jboss.tools.common.meta.action.impl.handlers.DefaultCreateHandl= er; +import org.jboss.tools.common.model.XModelException; +import org.jboss.tools.common.model.XModelObject; +import org.jboss.tools.common.model.project.ext.store.XMLStoreConstants; +import org.jboss.tools.hibernate.xml.model.impl.ComplexAttrUtil; + +public class AddPropertySupport extends SpecialWizardSupport { + + public AddPropertySupport() {} + + public void action(String name) throws XModelException { + if(FINISH.equals(name)) { + execute(); + setFinished(true); + } else if(CANCEL.equals(name)) { + setFinished(true); + } + } + = + public String[] getActionNames(int stepId) { + return new String[]{FINISH, CANCEL}; + } + + void execute() throws XModelException { + Properties p =3D extractStepData(0); + String entity =3D getEntityData()[0].getModelEntity().getName(); + XModelObject o =3D getTarget().getModel().createModelObject(entity, p); + DefaultCreateHandler.addCreatedObject(getTarget(), o, getProperties()); + } + + public WizardDataValidator getValidator(int step) { + validator.setSupport(this, step); + return validator; + } + + Validator validator =3D new Validator(); + + class Validator extends DefaultWizardDataValidator { + public void validate(Properties data) { + super.validate(data); + String name =3D data.getProperty(XMLStoreConstants.ATTR_NAME); + String value =3D data.getProperty(XMLStoreConstants.ATTR_VALUE); + XAttribute attr =3D ComplexAttrUtil.findComplexAttr(getTarget(), name); + if(attr !=3D null) { + String error =3D DefaultCreateHandler.getConstraintMessage(name, value= , attr.getConstraint()); + if(error !=3D null) { + message =3D error; + } + } + } + } + +} Property changes on: trunk/hibernatetools/plugins/org.jboss.tools.hibernate= .xml/src/org/jboss/tools/hibernate/xml/model/handlers/AddPropertySupport.ja= va ___________________________________________________________________ Name: svn:mime-type + text/plain --===============3222499936000567711==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 12:38:53 2009 Content-Type: multipart/mixed; boundary="===============0529374957371808211==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17552 - in trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui: src/org/jboss/tools/hibernate/ui/xml/editor and 1 other directories. Date: Mon, 14 Sep 2009 12:38:53 -0400 Message-ID: <200909141638.n8EGcr4m019195@svn01.web.mwc.hst.phx2.redhat.com> --===============0529374957371808211== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-14 12:38:53 -0400 (Mon, 14 Sep 2009) New Revision: 17552 Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jb= oss/tools/hibernate/ui/xml/editor/PropertyListAdapter.java Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/plugin.xml trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jb= oss/tools/hibernate/ui/xml/form/HibConfig3PropertyFormLayoutData.java Log: https://jira.jboss.org/jira/browse/JBIDE-2607 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/plu= gin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/plugin.xm= l 2009-09-14 16:37:00 UTC (rev 17551) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/plugin.xm= l 2009-09-14 16:38:53 UTC (rev 17552) @@ -54,4 +54,13 @@ + + + + + + + + + Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/or= g/jboss/tools/hibernate/ui/xml/editor/PropertyListAdapter.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/j= boss/tools/hibernate/ui/xml/editor/PropertyListAdapter.java = (rev 0) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/j= boss/tools/hibernate/ui/xml/editor/PropertyListAdapter.java 2009-09-14 16:3= 8:53 UTC (rev 17552) @@ -0,0 +1,55 @@ +package org.jboss.tools.hibernate.ui.xml.editor; + +import java.util.TreeSet; + +import org.jboss.tools.common.meta.XAttribute; +import org.jboss.tools.common.meta.XChild; +import org.jboss.tools.common.meta.XModelEntity; +import org.jboss.tools.common.model.XModelObject; +import org.jboss.tools.common.model.ui.attribute.IListContentProvider; +import org.jboss.tools.common.model.ui.attribute.adapter.DefaultComboBoxVa= lueAdapter; +import org.jboss.tools.common.model.ui.attribute.adapter.DefaultXAttribute= ListContentProvider; +import org.jboss.tools.hibernate.ui.xml.form.HibConfig3PropertyFormLayoutD= ata; +import org.jboss.tools.hibernate.xml.model.impl.HibConfigComplexPropertyIm= pl; + +public class PropertyListAdapter extends DefaultComboBoxValueAdapter { + + protected IListContentProvider createListContentProvider(XAttribute attri= bute) { + PropertyListContentProvider p =3D new PropertyListContentProvider(); + p.setContext(modelObject); + p.setAttribute(attribute); + return p; = + } + +} + +class PropertyListContentProvider extends DefaultXAttributeListContentProv= ider { + private XModelObject context; + = + public void setContext(XModelObject context) { + this.context =3D context; + } + + protected void loadTags() { + XModelObject f =3D context; + XModelEntity ent =3D f.getModelEntity().getMetaModel().getEntity(HibConf= ig3PropertyFormLayoutData.PROPERTY_FOLDER_ENTITY); + if(ent =3D=3D null) return; + XChild[] cs =3D ent.getChildren(); + TreeSet set =3D new TreeSet(); + + for (int i =3D 0; i < cs.length; i++) { + XModelEntity e =3D f.getModelEntity().getMetaModel().getEntity(cs[i].ge= tName()); + XAttribute[] as =3D e.getAttributes(); + for (int j =3D 0; j < as.length; j++) { + String prop =3D as[j].getProperty(HibConfigComplexPropertyImpl.H_PROPE= RTY); + if(prop !=3D null && prop.length() > 0) { + set.add(prop); + } + } + } + = + tags =3D set.toArray(new String[0]); = + } + = +} + Property changes on: trunk/hibernatetools/plugins/org.jboss.tools.hibernate= .xml.ui/src/org/jboss/tools/hibernate/ui/xml/editor/PropertyListAdapter.java ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src= /org/jboss/tools/hibernate/ui/xml/form/HibConfig3PropertyFormLayoutData.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/j= boss/tools/hibernate/ui/xml/form/HibConfig3PropertyFormLayoutData.java 2009= -09-14 16:37:00 UTC (rev 17551) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/j= boss/tools/hibernate/ui/xml/form/HibConfig3PropertyFormLayoutData.java 2009= -09-14 16:38:53 UTC (rev 17552) @@ -19,6 +19,7 @@ */ public class HibConfig3PropertyFormLayoutData { static String PROPERTY_ENTITY =3D "HibConfig3Property"; //$NON-NLS-1$ + public static String PROPERTY_FOLDER_ENTITY =3D "HibConfig3PropertiesFold= er"; //$NON-NLS-1$ = final static IFormData PROPERTY_LIST_DEFINITION =3D new FormData( Messages.HibConfig3PropertyFormLayoutData_List, @@ -32,7 +33,7 @@ final static IFormData PROPERTY_FOLDER_DEFINITION =3D new FormData( Messages.HibConfig3PropertyFormLayoutData_Folder, "", //"Description //$NON-NLS-1$ - "HibConfig3PropertiesFolder", //$NON-NLS-1$ + PROPERTY_FOLDER_ENTITY, new FormAttributeData[]{new FormAttributeData("name", 100, Messages.HibC= onfig3PropertyFormLayoutData_Name)}, //$NON-NLS-1$ new String[]{PROPERTY_ENTITY}, Hibernate3FormLayoutDataUtil.createDefaultFormActionData("CreateActions.= AddProperty") //$NON-NLS-1$ --===============0529374957371808211==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 12:39:06 2009 Content-Type: multipart/mixed; boundary="===============6846356178436732504==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17553 - in trunk/documentation/whatsnew: as and 6 other directories. Date: Mon, 14 Sep 2009 12:39:05 -0400 Message-ID: <200909141639.n8EGd5q0019235@svn01.web.mwc.hst.phx2.redhat.com> --===============6846356178436732504== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: max.andersen(a)jboss.com Date: 2009-09-14 12:39:05 -0400 (Mon, 14 Sep 2009) New Revision: 17553 Added: trunk/documentation/whatsnew/as/as-news-3.1.0.M3.html trunk/documentation/whatsnew/core/core-news-3.1.0.M3.html trunk/documentation/whatsnew/hibernate/hibernate-news-3.3.0.M3.html trunk/documentation/whatsnew/images/build_project_archives_action.png trunk/documentation/whatsnew/images/config_variable_in_filefilter.png trunk/documentation/whatsnew/images/css_properties_perspective.png trunk/documentation/whatsnew/images/default_fileset_for_servers.png trunk/documentation/whatsnew/images/forid_like_codeassist.png trunk/documentation/whatsnew/images/hc_pending_icon.png trunk/documentation/whatsnew/images/hibernate_rulers_grid_snap2geometry.= jpg trunk/documentation/whatsnew/images/hibernatenamedquerydaliui.png trunk/documentation/whatsnew/images/jbosslogo_server.png trunk/documentation/whatsnew/images/maven_library_provider.png trunk/documentation/whatsnew/images/new_hbm_xml_selection.png trunk/documentation/whatsnew/images/properties_regular_expression.png trunk/documentation/whatsnew/images/scrollable_toolbars.png trunk/documentation/whatsnew/images/selectionbar_optimized.png trunk/documentation/whatsnew/images/tagdocs.png trunk/documentation/whatsnew/jst/jst-news-3.1.0.M3.html trunk/documentation/whatsnew/maven/maven-news-1.0.0.M3.html trunk/documentation/whatsnew/vpe/vpe-news-3.1.0.M3.html Modified: trunk/documentation/whatsnew/index.html Log: new and noteworthy for M3 Added: trunk/documentation/whatsnew/as/as-news-3.1.0.M3.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/documentation/whatsnew/as/as-news-3.1.0.M3.html = (rev 0) +++ trunk/documentation/whatsnew/as/as-news-3.1.0.M3.html 2009-09-14 16:39:= 05 UTC (rev 17553) @@ -0,0 +1,95 @@ + + + + +JBoss AS Tools 2.1.0.M3 News + + + + +

JBoss AS Tools 3.1.0.M3 - New and Noteworthy

+ +

< Main Index Hibernate Tools >

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + = +
+
+

Server

+
+
+

+ Configure filesets for Servers

+

There is now a preference page for configuring default filesets f= or server types.

+ +

+ +

This can be used to setup which files inside the server configura= tion you wish to have easy access from the Server view, i.e. define **/*-lo= g4j.xml for JBoss servers if you want to easily access the logging configur= ation files.

+ +

= Related jira

+
+
+
+

+ JBoss configuration Variable

+

You can now use ${jboss_config} to refer to the sele= cted JBoss Configuration to allow for portable filesets.

+

+ +

Since this variable is an Eclipse Variable it can even be + used in launch configurations and similar places. Here a + specific server/runtime needs to be named, + i.e. ${jboss_config:JMyBoss4}. + +

= Related jira

+
+
+
+

+ Updated icons/images to new JBoss logo

+

The new wizards for Server types now uses the new JBoss logo

+ +

+ +

= Related jira

+
+
+
+ + + + + + Added: trunk/documentation/whatsnew/core/core-news-3.1.0.M3.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/documentation/whatsnew/core/core-news-3.1.0.M3.html = (rev 0) +++ trunk/documentation/whatsnew/core/core-news-3.1.0.M3.html 2009-09-14 16= :39:05 UTC (rev 17553) @@ -0,0 +1,90 @@ + + + + + + + +What's New + + +

What's New Core/General

+ +

< Main Index JST Tools >

+ + + + + + + + + = + + + + + + + + + + + + + + + + + +
+
+

Project Archives

+
+
Nested archives now supports incremental updates +

Previously nested project archives were possible to define, but updat= es in a nested archive were not always happening.

+ +

This is now fixed allowing you to have structures like the following:=

+ +

+ + x.jar + ear/x.ear + ear/x.ear/x.jar = + +

And when updating x.jar in the top-level the ear project's version of= x.jar will now also be updated.

+ +

Related Jira=

+ +

+
Build Project Archive Action +

There is now a "Build Project Archive" action which users can configu= re a hotkey for if they wish.

+

When invoked the project for the currently selected resource will be = built.

+

+ +

Related Jira=

+ +
+
+

Properties editor

+
+
Filter/Search Regular Expression +

The JBoss Tools properties editor's filter field now supports regular= expressions.

+ +

+ +

By default the Name and Value fields are just substring seach, but if= you enable "Expressions" you can use regular expressions.

+ +

Related Jira=

+
+ + + + + + Added: trunk/documentation/whatsnew/hibernate/hibernate-news-3.3.0.M3.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/documentation/whatsnew/hibernate/hibernate-news-3.3.0.M3.html = (rev 0) +++ trunk/documentation/whatsnew/hibernate/hibernate-news-3.3.0.M3.html 200= 9-09-14 16:39:05 UTC (rev 17553) @@ -0,0 +1,157 @@ + + + + + + + +Hibernate tools 3.3.0.M3 What's New + + +

Hibernate tools 3.3.0.M3 What's New

+ +

< Main Index Maven Tools >

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

Dali Integration

+
+
Validation via NamingStrategy +

When using Hibernate Platform with Dali (JPA Tooling) we now valida= te through the chosen NamingStrategy (if none chosen the default NamingStra= tegy is used).

+ +

This allows those users who have custom naming strategies in place = to utilize the nice Dali JPA validation of wether the reference table and c= olumn names are enabled.

+ +

Note: Remember for Dali validation to work you have to enable the J= PA facet on your project and have the chosen DTP connection be connected to= the database. If not, Dali will not perform any validation!

+ +

In case you do not want the NamingStrategy to be used, i.e. your Na= mingStrategy requires custom setup or have dependencies not available durin= g design time you can disable the use of it on the Hibernate project prefer= ence page.

+

+ + +

Releated jiras: 1, 2

+ +
+
+
Hibernate specific annotations +

The JPA UI and validation has been extended to cover a few more Hib= ernate specific annotations.

+ +
    +
  • @GenericGenerators (before only supported the singu= lar @GenericGenerator
  • +
  • @DiscriminatorFormula
  • +
  • @NamedQuery
  • +
  • @NamedNativeQuery
  • +
  • @Embeddable with associations (not allowed in JPA s= pec, but ok in Hibernate)
  • +
+ +

This means that these annotations now have UI support and if possib= le also validated in Dali.

+ +

This screenshot shows a @NamedQuery being edited/shown in the UI. + +

+ +

+ + +

Releated jiras: 1, 2,3, 4, 5

+ + +
+
+

Wizards

+
+
hbm.xml Wizard now generates mapping for object graph +

When using New Hibernate Mapping wizard the generated hbm.xml now c= ontains basic mappings for properties and associations.

+ +

+ +

You can select a package or multiple individual classes and then from t= here the wizard will traverse the object graph and generate mappings for th= e full object graph.

+

Rel= ated jira

+ +
+
+

Views

+
+
Pending... node +

Creation/opening of a Console Configuration is now visualized with = a Pending... node until it completes.

+ +

+ +

Rel= ated jira

+ +
+
+
Mapping Diagram +

The mapping diagram now has support for showing Grid, Rules and Sna= p-to-Geometry.

+ +

+ +

Rel= ated jira

+ +
+
+
+ + + + + + Added: trunk/documentation/whatsnew/images/build_project_archives_action.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/build_project_arch= ives_action.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/config_variable_in_filefilter.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/config_variable_in= _filefilter.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/css_properties_perspective.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/css_properties_per= spective.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/default_fileset_for_servers.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/default_fileset_fo= r_servers.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/forid_like_codeassist.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/forid_like_codeass= ist.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/hc_pending_icon.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/hc_pending_icon.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/hibernate_rulers_grid_snap2geome= try.jpg =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/hibernate_rulers_g= rid_snap2geometry.jpg ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/hibernatenamedquerydaliui.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/hibernatenamedquer= ydaliui.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/jbosslogo_server.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/jbosslogo_server.p= ng ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/maven_library_provider.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/maven_library_prov= ider.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/new_hbm_xml_selection.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/new_hbm_xml_select= ion.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/properties_regular_expression.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/properties_regular= _expression.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/scrollable_toolbars.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/scrollable_toolbar= s.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/selectionbar_optimized.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/selectionbar_optim= ized.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/tagdocs.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/tagdocs.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/documentation/whatsnew/index.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/documentation/whatsnew/index.html 2009-09-14 16:38:53 UTC (rev 17= 552) +++ trunk/documentation/whatsnew/index.html 2009-09-14 16:39:05 UTC (rev 17= 553) @@ -24,6 +24,19 @@ = +

3.1.0.M3 = + = +

Core/General

= +

JST/JSF Tools

= +

JBoss AS Tools

= +

Hibernate Tool= s

= +

Maven Tools

= +

Visual Page Editor

+ = + + + +

3.1.0.M2 = =

Core/General

= Added: trunk/documentation/whatsnew/jst/jst-news-3.1.0.M3.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/documentation/whatsnew/jst/jst-news-3.1.0.M3.html = (rev 0) +++ trunk/documentation/whatsnew/jst/jst-news-3.1.0.M3.html 2009-09-14 16:3= 9:05 UTC (rev 17553) @@ -0,0 +1,103 @@ + + + + + + + +JST/JSF 3.1.0.M3 What's New + + +

JST/JSF 3.1.0.M3 What's New

+ +

< Main Index Server Tools >

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

OpenOn

+
+
+

EL Variables

OpenOn's are now available for source elements= .

+ +

Re= lated Jira

+
+
+

Code assist

+
+
+

Unified EL completion for Seam and JSF projects

EL completion for Seam and JSF projects are no= w unified (uses same codebase).

+ +

In previous releases there were small differences between how code comp= letion were done for projects with or without Seam configured, i.e. code co= mpletion for Seam variables were not available in Wizards and property shee= ts and some of the features of JBoss EL were not honored in JSF projects. + +

Related jiras: 1, 2

+

+
+

EL completion in style attributes

Code assist for EL variables are now available= in style attributes of XHTML files.

+ +

Re= lated Jira

+

+
+

Information hover for JSF tags

When code completing JSF/Facelets tags we now = show a information box with the related tag documentation. Descriptions are= fetched from TLD and facelet information.

+ +

+ +

Rel= ated Jira

+

+
+

Code assist for attributes expecting an ID in richfaces

Code assist now provides id completion for att= ributes that is known to work with ID's (for, focus, reRender, etc.). Both = single and multi-valued (comma separated) completion are supported.

+ +

+ = + = +

Re= lated Jira

+

+
+ + + + Added: trunk/documentation/whatsnew/maven/maven-news-1.0.0.M3.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/documentation/whatsnew/maven/maven-news-1.0.0.M3.html = (rev 0) +++ trunk/documentation/whatsnew/maven/maven-news-1.0.0.M3.html 2009-09-14 = 16:39:05 UTC (rev 17553) @@ -0,0 +1,69 @@ + + + + + + + +What's New in Maven Tools + + +

Maven Tools

+ +

< Main Index VPE Tools >

+ + + + + + + + + + + + + + + + + + + + + + +
+
+

Maven Integration

+
+
Maven WTP 3.1 Library Providers +

When creating or editing WTP projects with JBoss Tools Maven Integrat= ion enabled it is now possible to use Maven as the library provider.

+ +

+ +

For this release only the JSF facet have this enabled, but in future re= leases we will add more facet specific defaults (i.e. portal, seam, etc.).<= /p> + +

Note: be sure to use the latest m2eclipse development release with JB= oss Tools for this to work.

+

Related Jira=

+
+
+
Seam now looks at root.xml for dependencies +

The Maven integration for Seam now get all its dependencies based on = the POM file named build/root.xml.

+

This ensures your project will be created with the same dependencies = as the version of Seam you use in the tooling.

+ + +

Related Jira=

+
+
+
+ + + + + + Added: trunk/documentation/whatsnew/vpe/vpe-news-3.1.0.M3.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/documentation/whatsnew/vpe/vpe-news-3.1.0.M3.html = (rev 0) +++ trunk/documentation/whatsnew/vpe/vpe-news-3.1.0.M3.html 2009-09-14 16:3= 9:05 UTC (rev 17553) @@ -0,0 +1,138 @@ + + + + + + + +What's New Visual Page Editor + + +

What's New Visual Page Editor

+ +

< Main Index Core Tools >

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

CSS Editing

+
+
CSS Perspective +

There is now a CSS Editing perspective that provides a default layout= showing the CSS Properties and CSS Preview views.

+

Good when editing .css files where these views has their use.

+ +

+ = +

Related Jira=

+
+
+
+
+

Facelets

+
+
Custom components in .jar +

Support for custom components previously only + worked for exploded directory structure, it now also + work when you are using custom components from a + jar.

+ +

Related Jira=

+
+
+
Toolbar for smaller screens +

The toolbar and selection bar in Visual Page Editor now "collapses" s= eamlessly when there is less space available for it. A small arrow is shown= when needed and can be used to access the non-visible parts.

+ +

+

Related Jira=

+
+
+
Selection bar optimized +

The selection bar is now not updating on *every* change, but only whe= n it needs to - making it faster and not flickering when scrolling or typin= g.

+ +

+

Related Jira=

+
+
+
More components +

New Richfaces 3.3.1 and standard jsp/JSTL core and functions are now = rendered visually in the page editor.

+ +

Related Jira=

+
OpenOn for tag libs +

Files referenced in the source tag's of a facelet librar= y definition can now be open with OpenOn (F3 or Ctrl+Mouse).

+ +

Related Jira=

+
+
+
+ + + + + + --===============6846356178436732504==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 13:21:07 2009 Content-Type: multipart/mixed; boundary="===============0238800491356960831==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17554 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/meta. Date: Mon, 14 Sep 2009 13:21:07 -0400 Message-ID: <200909141721.n8EHL7aw031287@svn01.web.mwc.hst.phx2.redhat.com> --===============0238800491356960831== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-14 13:21:07 -0400 (Mon, 14 Sep 2009) New Revision: 17554 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/met= a/hibconfig3.meta Log: https://jira.jboss.org/jira/browse/JBIDE-2607 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resour= ces/meta/hibconfig3.meta =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/me= ta/hibconfig3.meta 2009-09-14 16:39:05 UTC (rev 17553) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/me= ta/hibconfig3.meta 2009-09-14 17:21:07 UTC (rev 17554) @@ -1072,7 +1072,8 @@ - + @@ -1088,25 +1089,14 @@
- - - - - - - - - - + PROPERTIES=3D"category=3Dgeneral;h_property=3Dhibernate.connection.url= " name=3D"url"/> + @@ -1116,11 +1106,26 @@ + PROPERTIES=3D"category=3Dadvanced;h_property=3Dhibernate.connection" n= ame=3D"connection"/> + + + + + + + + + + + + PROPERTIES=3D"category=3Dadvanced;h_property=3Dhibernate.connection.re= lease_mode" name=3D"release mode"> @@ -1130,10 +1135,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + PROPERTIES=3D"category=3Dgeneral;h_property=3Dhibernate.dialect" name= =3D"dialect"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + PROPERTIES=3D"category=3Dgeneral;h_property=3Dhibernate.show_sql" name= =3D"show sql"> + + + + + + + + + + + + + + + + + + + + + + + @@ -1273,15 +1360,169 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + --===============0238800491356960831==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 13:21:34 2009 Content-Type: multipart/mixed; boundary="===============8058816818123930102==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17555 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form. Date: Mon, 14 Sep 2009 13:21:34 -0400 Message-ID: <200909141721.n8EHLY0E031391@svn01.web.mwc.hst.phx2.redhat.com> --===============8058816818123930102== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-14 13:21:34 -0400 (Mon, 14 Sep 2009) New Revision: 17555 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jb= oss/tools/hibernate/ui/xml/form/Hibernate3FormLayoutData.java Log: https://jira.jboss.org/jira/browse/JBIDE-2607 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src= /org/jboss/tools/hibernate/ui/xml/form/Hibernate3FormLayoutData.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/j= boss/tools/hibernate/ui/xml/form/Hibernate3FormLayoutData.java 2009-09-14 1= 7:21:07 UTC (rev 17554) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/j= boss/tools/hibernate/ui/xml/form/Hibernate3FormLayoutData.java 2009-09-14 1= 7:21:34 UTC (rev 17555) @@ -10,14 +10,19 @@ *************************************************************************= *****/ = package org.jboss.tools.hibernate.ui.xml.form; = +import java.util.ArrayList; import java.util.Collections; +import java.util.List; import java.util.Map; = +import org.jboss.tools.common.meta.XModelEntity; +import org.jboss.tools.common.meta.impl.XModelMetaDataImpl; import org.jboss.tools.common.model.ui.forms.ArrayToMap; import org.jboss.tools.common.model.ui.forms.FormAttributeData; import org.jboss.tools.common.model.ui.forms.FormData; import org.jboss.tools.common.model.ui.forms.IFormData; import org.jboss.tools.common.model.ui.forms.IFormLayoutData; +import org.jboss.tools.common.model.ui.forms.ModelFormLayoutData; import org.jboss.tools.common.model.util.ClassLoaderUtil; = public class Hibernate3FormLayoutData implements IFormLayoutData { @@ -146,7 +151,7 @@ = }; = - private static Map FORM_LAYOUT_DEFINITION_MAP =3D Collections.unmodifiabl= eMap(new ArrayToMap(FORM_LAYOUT_DEFINITIONS)); + private static Map FORM_LAYOUT_DEFINITION_MAP =3D Collections.synchronize= dMap(new ArrayToMap(FORM_LAYOUT_DEFINITIONS)); = static Hibernate3FormLayoutData INSTANCE =3D new Hibernate3FormLayoutData= (); = @@ -157,7 +162,36 @@ public Hibernate3FormLayoutData() {} = public IFormData getFormData(String entityName) { - return (IFormData)FORM_LAYOUT_DEFINITION_MAP.get(entityName); + IFormData data =3D (IFormData)FORM_LAYOUT_DEFINITION_MAP.get(entityName); + if(data =3D=3D null) { + data =3D generateDefaultFormData(entityName); + } + return data; } + = + private IFormData generateDefaultFormData(String entityName) { + IFormData data =3D null; + XModelEntity entity =3D XModelMetaDataImpl.getInstance().getEntity(entit= yName); + if(entity !=3D null) { + data =3D generateDefaultFormData(entity); + } + if(data !=3D null) { + FORM_LAYOUT_DEFINITION_MAP.put(entityName, data); + } + return data; = + } + = + private IFormData generateDefaultFormData(XModelEntity entity) { + String entityName =3D entity.getName(); + List list =3D new ArrayList(); + IFormData g =3D ModelFormLayoutData.createGeneralFormData(entity); + if(g !=3D null) list.add(g); = + IFormData a =3D ModelFormLayoutData.createAdvancedFormData(entityName); + if(a !=3D null) list.add(a); + IFormData[] ds =3D list.toArray(new IFormData[0]); + IFormData data =3D new FormData(entityName, new String[]{null}, ds); + return data; + } + } --===============8058816818123930102==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 15:23:20 2009 Content-Type: multipart/mixed; boundary="===============3246188117215873963==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17556 - in trunk: cdi and 1 other directories. Date: Mon, 14 Sep 2009 15:23:20 -0400 Message-ID: <200909141923.n8EJNKuP023468@svn01.web.mwc.hst.phx2.redhat.com> --===============3246188117215873963== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-14 15:23:20 -0400 (Mon, 14 Sep 2009) New Revision: 17556 Added: trunk/cdi/ trunk/cdi/plugins/ trunk/cdi/plugins/org.jboss.tools.cdi.core/ Log: Share project "org.jboss.tools.cdi.core" into "https://svn.jboss.org/repos/= jbosstools" --===============3246188117215873963==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 15:24:15 2009 Content-Type: multipart/mixed; boundary="===============9184982922126031086==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17557 - in trunk/cdi/plugins/org.jboss.tools.cdi.core: .settings and 7 other directories. Date: Mon, 14 Sep 2009 15:24:15 -0400 Message-ID: <200909141924.n8EJOFVK023572@svn01.web.mwc.hst.phx2.redhat.com> --===============9184982922126031086== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-14 15:24:15 -0400 (Mon, 14 Sep 2009) New Revision: 17557 Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/.classpath trunk/cdi/plugins/org.jboss.tools.cdi.core/.project trunk/cdi/plugins/org.jboss.tools.cdi.core/.settings/ trunk/cdi/plugins/org.jboss.tools.cdi.core/.settings/org.eclipse.jdt.cor= e.prefs trunk/cdi/plugins/org.jboss.tools.cdi.core/META-INF/ trunk/cdi/plugins/org.jboss.tools.cdi.core/META-INF/MANIFEST.MF trunk/cdi/plugins/org.jboss.tools.cdi.core/build.properties trunk/cdi/plugins/org.jboss.tools.cdi.core/src/ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/= CDICorePlugin.java Log: Share project "org.jboss.tools.cdi.core" into "https://svn.jboss.org/repos/= jbosstools" Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/.classpath =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.core/.classpath = (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.core/.classpath 2009-09-14 19:24:= 15 UTC (rev 17557) @@ -0,0 +1,7 @@ + + + + + + + Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.core/.classpath ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.core/.project = (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.core/.project 2009-09-14 19:24:15= UTC (rev 17557) @@ -0,0 +1,28 @@ + + + org.jboss.tools.cdi.core + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.core/.project ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/.settings/org.eclipse.jdt= .core.prefs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.core/.settings/org.eclipse.jdt.co= re.prefs (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.core/.settings/org.eclipse.jdt.co= re.prefs 2009-09-14 19:24:15 UTC (rev 17557) @@ -0,0 +1,8 @@ +#Mon Sep 14 23:19:30 MSD 2009 +eclipse.preferences.version=3D1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=3Denabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=3D1.5 +org.eclipse.jdt.core.compiler.compliance=3D1.5 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=3Derror +org.eclipse.jdt.core.compiler.problem.enumIdentifier=3Derror +org.eclipse.jdt.core.compiler.source=3D1.5 Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.core/.settings/o= rg.eclipse.jdt.core.prefs ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.core/META-INF/MANIFEST.MF = (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.core/META-INF/MANIFEST.MF 2009-09= -14 19:24:15 UTC (rev 17557) @@ -0,0 +1,10 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %Bundle-Name +Bundle-SymbolicName: org.jboss.tools.cdi.core +Bundle-Version: 1.0.0 +Bundle-Activator: org.jboss.tools.cdi.core.CDICorePlugin +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: J2SE-1.5 Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.core/META-INF/MA= NIFEST.MF ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.core/build.properties = (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.core/build.properties 2009-09-14 = 19:24:15 UTC (rev 17557) @@ -0,0 +1,7 @@ +source.. =3D src/ +output.. =3D bin/ +bin.includes =3D plugin.xml,\ + META-INF/,\ + .,\ + OSGI-INF/l10n/bundle.properties +src.includes =3D src/ Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.core/build.prope= rties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/c= ore/CDICorePlugin.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /CDICorePlugin.java (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /CDICorePlugin.java 2009-09-14 19:24:15 UTC (rev 17557) @@ -0,0 +1,61 @@ +package org.jboss.tools.cdi.core; + +import org.eclipse.jface.resource.ImageDescriptor; +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class CDICorePlugin extends AbstractUIPlugin { + + // The plug-in ID + public static final String PLUGIN_ID =3D "org.jboss.tools.cdi.core"; + + // The shared instance + private static CDICorePlugin plugin; + = + /** + * The constructor + */ + public CDICorePlugin() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.B= undleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin =3D this; + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.Bu= ndleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin =3D null; + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static CDICorePlugin getDefault() { + return plugin; + } + + /** + * Returns an image descriptor for the image file at the given + * plug-in relative path + * + * @param path the path + * @return the image descriptor + */ + public static ImageDescriptor getImageDescriptor(String path) { + return imageDescriptorFromPlugin(PLUGIN_ID, path); + } +} Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jbo= ss/tools/cdi/core/CDICorePlugin.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============9184982922126031086==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 15:25:29 2009 Content-Type: multipart/mixed; boundary="===============3122404303907809152==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17558 - trunk/cdi/plugins/org.jboss.tools.cdi.core. Date: Mon, 14 Sep 2009 15:25:29 -0400 Message-ID: <200909141925.n8EJPThO023993@svn01.web.mwc.hst.phx2.redhat.com> --===============3122404303907809152== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-14 15:25:29 -0400 (Mon, 14 Sep 2009) New Revision: 17558 Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/build.properties Log: Share project "org.jboss.tools.cdi.core" into "https://svn.jboss.org/repos/= jbosstools" Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.core/build.properties 2009-09-14 = 19:24:15 UTC (rev 17557) +++ trunk/cdi/plugins/org.jboss.tools.cdi.core/build.properties 2009-09-14 = 19:25:29 UTC (rev 17558) @@ -2,6 +2,5 @@ output.. =3D bin/ bin.includes =3D plugin.xml,\ META-INF/,\ - .,\ - OSGI-INF/l10n/bundle.properties + . src.includes =3D src/ --===============3122404303907809152==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 15:28:35 2009 Content-Type: multipart/mixed; boundary="===============5268257846703087288==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17559 - trunk/cdi/plugins. Date: Mon, 14 Sep 2009 15:28:35 -0400 Message-ID: <200909141928.n8EJSZug024386@svn01.web.mwc.hst.phx2.redhat.com> --===============5268257846703087288== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-14 15:28:35 -0400 (Mon, 14 Sep 2009) New Revision: 17559 Added: trunk/cdi/plugins/org.jboss.tools.cdi.ui/ Log: Share project "org.jboss.tools.cdi.ui" into "https://svn.jboss.org/repos/jb= osstools" --===============5268257846703087288==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 15:28:54 2009 Content-Type: multipart/mixed; boundary="===============8196005490061414010==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17560 - in trunk/cdi/plugins/org.jboss.tools.cdi.ui: .settings and 7 other directories. Date: Mon, 14 Sep 2009 15:28:54 -0400 Message-ID: <200909141928.n8EJSsbF024428@svn01.web.mwc.hst.phx2.redhat.com> --===============8196005490061414010== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-14 15:28:54 -0400 (Mon, 14 Sep 2009) New Revision: 17560 Added: trunk/cdi/plugins/org.jboss.tools.cdi.ui/.classpath trunk/cdi/plugins/org.jboss.tools.cdi.ui/.project trunk/cdi/plugins/org.jboss.tools.cdi.ui/.settings/ trunk/cdi/plugins/org.jboss.tools.cdi.ui/.settings/org.eclipse.jdt.core.= prefs trunk/cdi/plugins/org.jboss.tools.cdi.ui/META-INF/ trunk/cdi/plugins/org.jboss.tools.cdi.ui/META-INF/MANIFEST.MF trunk/cdi/plugins/org.jboss.tools.cdi.ui/build.properties trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/Acti= vator.java Log: Share project "org.jboss.tools.cdi.ui" into "https://svn.jboss.org/repos/jb= osstools" Added: trunk/cdi/plugins/org.jboss.tools.cdi.ui/.classpath =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.ui/.classpath = (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/.classpath 2009-09-14 19:28:54= UTC (rev 17560) @@ -0,0 +1,7 @@ + + + + + + + Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.ui/.classpath ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/plugins/org.jboss.tools.cdi.ui/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.ui/.project = (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/.project 2009-09-14 19:28:54 U= TC (rev 17560) @@ -0,0 +1,28 @@ + + + org.jboss.tools.cdi.ui + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.ui/.project ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/plugins/org.jboss.tools.cdi.ui/.settings/org.eclipse.jdt.c= ore.prefs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.ui/.settings/org.eclipse.jdt.core= .prefs (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/.settings/org.eclipse.jdt.core= .prefs 2009-09-14 19:28:54 UTC (rev 17560) @@ -0,0 +1,8 @@ +#Mon Sep 14 23:26:36 MSD 2009 +eclipse.preferences.version=3D1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=3Denabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=3D1.5 +org.eclipse.jdt.core.compiler.compliance=3D1.5 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=3Derror +org.eclipse.jdt.core.compiler.problem.enumIdentifier=3Derror +org.eclipse.jdt.core.compiler.source=3D1.5 Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.ui/.settings/org= .eclipse.jdt.core.prefs ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/plugins/org.jboss.tools.cdi.ui/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.ui/META-INF/MANIFEST.MF = (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/META-INF/MANIFEST.MF 2009-09-1= 4 19:28:54 UTC (rev 17560) @@ -0,0 +1,11 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Context and Dependency Injection UI +Bundle-SymbolicName: org.jboss.tools.cdi.ui +Bundle-Version: 1.0.0 +Bundle-Activator: org.jboss.tools.cdi.ui.Activator +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.jboss.tools.cdi.core;bundle-version=3D"1.0.0" +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: J2SE-1.5 Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.ui/META-INF/MANI= FEST.MF ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/plugins/org.jboss.tools.cdi.ui/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.ui/build.properties = (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/build.properties 2009-09-14 19= :28:54 UTC (rev 17560) @@ -0,0 +1,8 @@ +source.. =3D src/ +output.. =3D bin/ +bin.includes =3D META-INF/,\ + . +src.includes =3D src/,\ + build.properties,\ + META-INF/,\ + .settings/ Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.ui/build.propert= ies ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/= Activator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/Act= ivator.java (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/Act= ivator.java 2009-09-14 19:28:54 UTC (rev 17560) @@ -0,0 +1,50 @@ +package org.jboss.tools.cdi.ui; + +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends AbstractUIPlugin { + + // The plug-in ID + public static final String PLUGIN_ID =3D "org.jboss.tools.cdi.ui"; + + // The shared instance + private static Activator plugin; + = + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.B= undleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin =3D this; + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.Bu= ndleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin =3D null; + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } + +} Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss= /tools/cdi/ui/Activator.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============8196005490061414010==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 15:49:35 2009 Content-Type: multipart/mixed; boundary="===============4686462042988449222==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17561 - in trunk/cdi: tests and 1 other directory. Date: Mon, 14 Sep 2009 15:49:35 -0400 Message-ID: <200909141949.n8EJnZ4K028485@svn01.web.mwc.hst.phx2.redhat.com> --===============4686462042988449222== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-14 15:49:34 -0400 (Mon, 14 Sep 2009) New Revision: 17561 Added: trunk/cdi/tests/ trunk/cdi/tests/org.jboss.tools.cdi.core.test/ Log: Share project "org.jboss.tools.cdi.core.test" into "https://svn.jboss.org/r= epos/jbosstools" --===============4686462042988449222==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 15:49:57 2009 Content-Type: multipart/mixed; boundary="===============4268169232468133667==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17562 - in trunk/cdi/tests/org.jboss.tools.cdi.core.test: .settings and 8 other directories. Date: Mon, 14 Sep 2009 15:49:56 -0400 Message-ID: <200909141949.n8EJnuaB028533@svn01.web.mwc.hst.phx2.redhat.com> --===============4268169232468133667== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-14 15:49:56 -0400 (Mon, 14 Sep 2009) New Revision: 17562 Added: trunk/cdi/tests/org.jboss.tools.cdi.core.test/.classpath trunk/cdi/tests/org.jboss.tools.cdi.core.test/.project trunk/cdi/tests/org.jboss.tools.cdi.core.test/.settings/ trunk/cdi/tests/org.jboss.tools.cdi.core.test/.settings/org.eclipse.jdt.= core.prefs trunk/cdi/tests/org.jboss.tools.cdi.core.test/META-INF/ trunk/cdi/tests/org.jboss.tools.cdi.core.test/META-INF/MANIFEST.MF trunk/cdi/tests/org.jboss.tools.cdi.core.test/build.properties trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/ trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/ trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/ trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/ trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/ trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/co= re/ trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/co= re/test/ trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/co= re/test/CDICoreAllTests.java Log: Share project "org.jboss.tools.cdi.core.test" into "https://svn.jboss.org/r= epos/jbosstools" Added: trunk/cdi/tests/org.jboss.tools.cdi.core.test/.classpath =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/tests/org.jboss.tools.cdi.core.test/.classpath = (rev 0) +++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/.classpath 2009-09-14 19:= 49:56 UTC (rev 17562) @@ -0,0 +1,7 @@ + + + + + + + Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.core.test/.classpa= th ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/tests/org.jboss.tools.cdi.core.test/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/tests/org.jboss.tools.cdi.core.test/.project = (rev 0) +++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/.project 2009-09-14 19:49= :56 UTC (rev 17562) @@ -0,0 +1,28 @@ + + + org.jboss.tools.cdi.core.test + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.core.test/.project ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/tests/org.jboss.tools.cdi.core.test/.settings/org.eclipse.= jdt.core.prefs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/tests/org.jboss.tools.cdi.core.test/.settings/org.eclipse.jdt= .core.prefs (rev 0) +++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/.settings/org.eclipse.jdt= .core.prefs 2009-09-14 19:49:56 UTC (rev 17562) @@ -0,0 +1,8 @@ +#Mon Sep 14 23:36:44 MSD 2009 +eclipse.preferences.version=3D1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=3Denabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=3D1.5 +org.eclipse.jdt.core.compiler.compliance=3D1.5 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=3Derror +org.eclipse.jdt.core.compiler.problem.enumIdentifier=3Derror +org.eclipse.jdt.core.compiler.source=3D1.5 Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.core.test/.setting= s/org.eclipse.jdt.core.prefs ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/tests/org.jboss.tools.cdi.core.test/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/tests/org.jboss.tools.cdi.core.test/META-INF/MANIFEST.MF = (rev 0) +++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/META-INF/MANIFEST.MF 2009= -09-14 19:49:56 UTC (rev 17562) @@ -0,0 +1,9 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Contexts and Dependency Injection Test +Bundle-SymbolicName: org.jboss.tools.cdi.core.test +Bundle-Version: 1.0.0 +Bundle-Vendor: JBoss by Red Hat +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Require-Bundle: org.jboss.tools.tests, + org.junit;bundle-version=3D"3.8.2" Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.core.test/META-INF= /MANIFEST.MF ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/tests/org.jboss.tools.cdi.core.test/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/tests/org.jboss.tools.cdi.core.test/build.properties = (rev 0) +++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/build.properties 2009-09-= 14 19:49:56 UTC (rev 17562) @@ -0,0 +1,4 @@ +source.. =3D src/ +output.. =3D bin/ +bin.includes =3D META-INF/,\ + . Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.core.test/build.pr= operties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cd= i/core/test/CDICoreAllTests.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/c= ore/test/CDICoreAllTests.java (rev 0) +++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/c= ore/test/CDICoreAllTests.java 2009-09-14 19:49:56 UTC (rev 17562) @@ -0,0 +1,33 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.cdi.core.test; + +import junit.framework.Test; +import junit.framework.TestSuite; + +import org.jboss.tools.tests.AbstractPluginsLoadTest; + +/** + * @author Alexey Kazakov + */ +public class CDICoreAllTests { + + public static Test suite() { + TestSuite suite =3D new TestSuite("CDI Core Tests"); + return suite; + } + + public class CDIPluginsLoadTest extends AbstractPluginsLoadTest { + public void testBundlesAreLoadedForSeamFeature(){ + testBundlesAreLoadedFor("org.jboss.tools.cdi.feature"); + } + } +} \ No newline at end of file Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/= jboss/tools/cdi/core/test/CDICoreAllTests.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============4268169232468133667==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 15:51:11 2009 Content-Type: multipart/mixed; boundary="===============5827609579792615849==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17563 - in trunk/cdi/plugins: org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core and 2 other directories. Date: Mon, 14 Sep 2009 15:51:10 -0400 Message-ID: <200909141951.n8EJpAo8028967@svn01.web.mwc.hst.phx2.redhat.com> --===============5827609579792615849== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-14 15:51:10 -0400 (Mon, 14 Sep 2009) New Revision: 17563 Added: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/CDIU= IPlugin.java Removed: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/Acti= vator.java Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/META-INF/MANIFEST.MF trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/= CDICorePlugin.java trunk/cdi/plugins/org.jboss.tools.cdi.ui/META-INF/MANIFEST.MF Log: Minor changes in initial classes for CDI tools. Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.core/META-INF/MANIFEST.MF 2009-09= -14 19:49:56 UTC (rev 17562) +++ trunk/cdi/plugins/org.jboss.tools.cdi.core/META-INF/MANIFEST.MF 2009-09= -14 19:51:10 UTC (rev 17563) @@ -1,10 +1,12 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 -Bundle-Name: %Bundle-Name +Bundle-Name: Context and Dependency Injection Core Bundle-SymbolicName: org.jboss.tools.cdi.core Bundle-Version: 1.0.0 Bundle-Activator: org.jboss.tools.cdi.core.CDICorePlugin Require-Bundle: org.eclipse.ui, - org.eclipse.core.runtime + org.eclipse.core.runtime, + org.jboss.tools.common Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Bundle-Vendor: JBoss by Red Hat Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cd= i/core/CDICorePlugin.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /CDICorePlugin.java 2009-09-14 19:49:56 UTC (rev 17562) +++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /CDICorePlugin.java 2009-09-14 19:51:10 UTC (rev 17563) @@ -1,20 +1,30 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ package org.jboss.tools.cdi.core; = import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.jboss.tools.common.log.BaseUIPlugin; import org.osgi.framework.BundleContext; = /** * The activator class controls the plug-in life cycle */ -public class CDICorePlugin extends AbstractUIPlugin { +public class CDICorePlugin extends BaseUIPlugin { = // The plug-in ID public static final String PLUGIN_ID =3D "org.jboss.tools.cdi.core"; = // The shared instance private static CDICorePlugin plugin; - = + /** * The constructor */ @@ -58,4 +68,4 @@ public static ImageDescriptor getImageDescriptor(String path) { return imageDescriptorFromPlugin(PLUGIN_ID, path); } -} +} \ No newline at end of file Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.ui/META-INF/MANIFEST.MF 2009-09-1= 4 19:49:56 UTC (rev 17562) +++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/META-INF/MANIFEST.MF 2009-09-1= 4 19:51:10 UTC (rev 17563) @@ -3,9 +3,11 @@ Bundle-Name: Context and Dependency Injection UI Bundle-SymbolicName: org.jboss.tools.cdi.ui Bundle-Version: 1.0.0 -Bundle-Activator: org.jboss.tools.cdi.ui.Activator +Bundle-Activator: org.jboss.tools.cdi.ui.CDIUIPlugin Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime, - org.jboss.tools.cdi.core;bundle-version=3D"1.0.0" + org.jboss.tools.cdi.core, + org.jboss.tools.common Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Bundle-Vendor: JBoss by Red Hat Deleted: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/u= i/Activator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/Act= ivator.java 2009-09-14 19:49:56 UTC (rev 17562) +++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/Act= ivator.java 2009-09-14 19:51:10 UTC (rev 17563) @@ -1,50 +0,0 @@ -package org.jboss.tools.cdi.ui; - -import org.eclipse.ui.plugin.AbstractUIPlugin; -import org.osgi.framework.BundleContext; - -/** - * The activator class controls the plug-in life cycle - */ -public class Activator extends AbstractUIPlugin { - - // The plug-in ID - public static final String PLUGIN_ID =3D "org.jboss.tools.cdi.ui"; - - // The shared instance - private static Activator plugin; - = - /** - * The constructor - */ - public Activator() { - } - - /* - * (non-Javadoc) - * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.B= undleContext) - */ - public void start(BundleContext context) throws Exception { - super.start(context); - plugin =3D this; - } - - /* - * (non-Javadoc) - * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.Bu= ndleContext) - */ - public void stop(BundleContext context) throws Exception { - plugin =3D null; - super.stop(context); - } - - /** - * Returns the shared instance - * - * @return the shared instance - */ - public static Activator getDefault() { - return plugin; - } - -} Copied: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui= /CDIUIPlugin.java (from rev 17560, trunk/cdi/plugins/org.jboss.tools.cdi.ui= /src/org/jboss/tools/cdi/ui/Activator.java) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/CDI= UIPlugin.java (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/CDI= UIPlugin.java 2009-09-14 19:51:10 UTC (rev 17563) @@ -0,0 +1,60 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.cdi.ui; + +import org.jboss.tools.common.log.BaseUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class CDIUIPlugin extends BaseUIPlugin { + + // The plug-in ID + public static final String PLUGIN_ID =3D "org.jboss.tools.cdi.ui"; + + // The shared instance + private static CDIUIPlugin plugin; + = + /** + * The constructor + */ + public CDIUIPlugin() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.B= undleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin =3D this; + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.Bu= ndleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin =3D null; + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static CDIUIPlugin getDefault() { + return plugin; + } + +} Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss= /tools/cdi/ui/CDIUIPlugin.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============5827609579792615849==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 15:57:59 2009 Content-Type: multipart/mixed; boundary="===============0954748212878822770==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17564 - trunk/cdi/tests. Date: Mon, 14 Sep 2009 15:57:59 -0400 Message-ID: <200909141957.n8EJvx94030069@svn01.web.mwc.hst.phx2.redhat.com> --===============0954748212878822770== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-14 15:57:59 -0400 (Mon, 14 Sep 2009) New Revision: 17564 Added: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/ Log: Share project "org.jboss.tools.cdi.ui.test" into "https://svn.jboss.org/rep= os/jbosstools" --===============0954748212878822770==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 15:58:52 2009 Content-Type: multipart/mixed; boundary="===============4162141965425180735==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17565 - in trunk/cdi/tests/org.jboss.tools.cdi.ui.test: .settings and 8 other directories. Date: Mon, 14 Sep 2009 15:58:52 -0400 Message-ID: <200909141958.n8EJwqqg030178@svn01.web.mwc.hst.phx2.redhat.com> --===============4162141965425180735== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-14 15:58:51 -0400 (Mon, 14 Sep 2009) New Revision: 17565 Added: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/.classpath trunk/cdi/tests/org.jboss.tools.cdi.ui.test/.project trunk/cdi/tests/org.jboss.tools.cdi.ui.test/.settings/ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/.settings/org.eclipse.jdt.co= re.prefs trunk/cdi/tests/org.jboss.tools.cdi.ui.test/META-INF/ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/META-INF/MANIFEST.MF trunk/cdi/tests/org.jboss.tools.cdi.ui.test/build.properties trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/core/ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/core= /test/ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/core= /test/CDIUIAllTests.java Log: Share project "org.jboss.tools.cdi.ui.test" into "https://svn.jboss.org/rep= os/jbosstools" Added: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/.classpath =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/tests/org.jboss.tools.cdi.ui.test/.classpath = (rev 0) +++ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/.classpath 2009-09-14 19:58= :51 UTC (rev 17565) @@ -0,0 +1,7 @@ + + + + + + + Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/.classpath ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/tests/org.jboss.tools.cdi.ui.test/.project = (rev 0) +++ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/.project 2009-09-14 19:58:5= 1 UTC (rev 17565) @@ -0,0 +1,28 @@ + + + org.jboss.tools.cdi.ui.test + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/.project ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/.settings/org.eclipse.jd= t.core.prefs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/tests/org.jboss.tools.cdi.ui.test/.settings/org.eclipse.jdt.c= ore.prefs (rev 0) +++ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/.settings/org.eclipse.jdt.c= ore.prefs 2009-09-14 19:58:51 UTC (rev 17565) @@ -0,0 +1,8 @@ +#Mon Sep 14 23:52:48 MSD 2009 +eclipse.preferences.version=3D1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=3Denabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=3D1.5 +org.eclipse.jdt.core.compiler.compliance=3D1.5 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=3Derror +org.eclipse.jdt.core.compiler.problem.enumIdentifier=3Derror +org.eclipse.jdt.core.compiler.source=3D1.5 Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/.settings/= org.eclipse.jdt.core.prefs ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/tests/org.jboss.tools.cdi.ui.test/META-INF/MANIFEST.MF = (rev 0) +++ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/META-INF/MANIFEST.MF 2009-0= 9-14 19:58:51 UTC (rev 17565) @@ -0,0 +1,10 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Contexts and Dependency Injection UI Test +Bundle-SymbolicName: org.jboss.tools.cdi.ui.test +Bundle-Version: 1.0.0 +Bundle-Vendor: JBoss by Red Hat +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Require-Bundle: org.junit, + org.jboss.tools.cdi.ui, + org.jboss.tools.tests Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/META-INF/M= ANIFEST.MF ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/tests/org.jboss.tools.cdi.ui.test/build.properties = (rev 0) +++ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/build.properties 2009-09-14= 19:58:51 UTC (rev 17565) @@ -0,0 +1,4 @@ +source.. =3D src/ +output.. =3D bin/ +bin.includes =3D META-INF/,\ + . Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/build.prop= erties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/= core/test/CDIUIAllTests.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/cor= e/test/CDIUIAllTests.java (rev 0) +++ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/cor= e/test/CDIUIAllTests.java 2009-09-14 19:58:51 UTC (rev 17565) @@ -0,0 +1,25 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.cdi.core.test; + +import junit.framework.Test; +import junit.framework.TestSuite; + +/** + * @author Alexey Kazakov + */ +public class CDIUIAllTests { + + public static Test suite() { + TestSuite suite =3D new TestSuite("CDI UI Tests"); + return suite; + } +} \ No newline at end of file Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jb= oss/tools/cdi/core/test/CDIUIAllTests.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============4162141965425180735==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 15:59:21 2009 Content-Type: multipart/mixed; boundary="===============8328886997092925146==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17566 - trunk/cdi/tests/org.jboss.tools.cdi.core.test/META-INF. Date: Mon, 14 Sep 2009 15:59:21 -0400 Message-ID: <200909141959.n8EJxLYo030236@svn01.web.mwc.hst.phx2.redhat.com> --===============8328886997092925146== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-14 15:59:21 -0400 (Mon, 14 Sep 2009) New Revision: 17566 Modified: trunk/cdi/tests/org.jboss.tools.cdi.core.test/META-INF/MANIFEST.MF Log: Added dependency to core plug-in Modified: trunk/cdi/tests/org.jboss.tools.cdi.core.test/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/tests/org.jboss.tools.cdi.core.test/META-INF/MANIFEST.MF 2009= -09-14 19:58:51 UTC (rev 17565) +++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/META-INF/MANIFEST.MF 2009= -09-14 19:59:21 UTC (rev 17566) @@ -6,4 +6,5 @@ Bundle-Vendor: JBoss by Red Hat Bundle-RequiredExecutionEnvironment: J2SE-1.5 Require-Bundle: org.jboss.tools.tests, - org.junit;bundle-version=3D"3.8.2" + org.junit, + org.jboss.tools.cdi.core --===============8328886997092925146==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 18:16:38 2009 Content-Type: multipart/mixed; boundary="===============7687476929596923188==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17567 - trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver. Date: Mon, 14 Sep 2009 18:16:37 -0400 Message-ID: <200909142216.n8EMGbxl025859@svn01.web.mwc.hst.phx2.redhat.com> --===============7687476929596923188== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-14 18:16:37 -0400 (Mon, 14 Sep 2009) New Revision: 17567 Added: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/JavaMemberElSegment.java Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ELSegment.java Log: https://jira.jboss.org/jira/browse/JBIDE-4860 Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss= /tools/common/el/core/resolver/ELSegment.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELSegment.java 2009-09-14 19:59:21 UTC (rev 17566) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELSegment.java 2009-09-14 22:16:37 UTC (rev 17567) @@ -10,8 +10,9 @@ *************************************************************************= *****/ = package org.jboss.tools.common.el.core.resolver; = -import org.eclipse.jdt.core.IJavaElement; +import org.eclipse.core.resources.IResource; import org.jboss.tools.common.el.core.model.ELInvocationExpression; +import org.jboss.tools.common.model.project.ext.ITextSourceReference; = /** * Describes a segment of EL operand. @@ -25,17 +26,17 @@ ELInvocationExpression getToken(); = /** - * @return member info object of resolved segment. May return null. + * @return true if the segment has been resolved. */ - TypeInfoCollector.MemberInfo getMemberInfo(); + boolean isResolved(); = /** - * @return Java Element which represent this resolve segment. May return = null. = + * @return resource of underlying object. */ - IJavaElement getJavaElement(); + IResource getResource(); = /** - * @return true if the segment has been resolved. + * @return source reference of underlying object. */ - boolean isResolved(); + ITextSourceReference getSourceReference(); } \ No newline at end of file Added: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/to= ols/common/el/core/resolver/JavaMemberElSegment.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/JavaMemberElSegment.java (= rev 0) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/JavaMemberElSegment.java 2009-09-14 22:16:37 UTC (= rev 17567) @@ -0,0 +1,40 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.common.el.core.resolver; + +import org.eclipse.jdt.core.IJavaElement; + +/** + * Describes a segment of EL operand which is a Java Element. = + * @author Alexey Kazakov + */ +public interface JavaMemberElSegment extends ELSegment { + + /** + * @return member info object of resolved segment. May return null. + */ + TypeInfoCollector.MemberInfo getMemberInfo(); + + /** + * @return Java Element which represent this resolve segment. May return = null. = + */ + IJavaElement getJavaElement(); + + /** + * @return true if an underlying object is field and this field has gette= r. + */ + boolean hasGetter(); + + /** + * @return true if an underlying object is field and this field has sette= r. + */ + boolean hasSetter(); +} \ No newline at end of file Property changes on: trunk/common/plugins/org.jboss.tools.common.el.core/sr= c/org/jboss/tools/common/el/core/resolver/JavaMemberElSegment.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============7687476929596923188==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 18:20:20 2009 Content-Type: multipart/mixed; boundary="===============2020684171713562839==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17568 - trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/text. Date: Mon, 14 Sep 2009 18:20:05 -0400 Message-ID: <200909142220.n8EMK5s3026083@svn01.web.mwc.hst.phx2.redhat.com> --===============2020684171713562839== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-14 18:20:05 -0400 (Mon, 14 Sep 2009) New Revision: 17568 Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/t= ext/TextProposal.java Log: JBIDE-512 context variable code completion dropdown should show their "sour= ce" JBIDE-2541 Show java-doc for EL content assist item The values of type, sourceType and JavaDoc are gathered to be displayed in = CA Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/c= ommon/text/TextProposal.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= text/TextProposal.java 2009-09-14 22:16:37 UTC (rev 17567) +++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= text/TextProposal.java 2009-09-14 22:20:05 UTC (rev 17568) @@ -45,12 +45,31 @@ private int relevance =3D R_NONE; private int position =3D -1; private boolean autoActivationContentAssistantAfterApplication =3D false; - + = + private String type; + private String sourceType; + = private int start =3D -1; private int end =3D -1; = PostProcessing postProcessing; = + public String getType() { + return type; + } + = + public void setType(String typeName) { + this.type =3D typeName; + } + = + public String getSourceType() { + return sourceType; + } + = + public void setSourceType(String sourceTypeName) { + this.sourceType =3D sourceTypeName; + } + = /** * = * @return @@ -85,7 +104,19 @@ * @return */ public String getLabel() { - return label; + String l =3D label !=3D null ? label : getReplacementString() =3D=3D nul= l ? "" : getReplacementString(); //$NON-NLS-1$ + = + StringBuffer dispLabel =3D new StringBuffer(l); + if (type !=3D null) { + dispLabel.append(" : "); //$NON-NLS-1$ + dispLabel.append(type); + } + if (sourceType !=3D null) { + dispLabel.append(" - "); //$NON-NLS-1$ + dispLabel.append(sourceType); + } + = + return dispLabel.toString(); } = /** --===============2020684171713562839==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 18:22:39 2009 Content-Type: multipart/mixed; boundary="===============0301279508221105043==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17569 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist. Date: Mon, 14 Sep 2009 18:22:39 -0400 Message-ID: <200909142222.n8EMMdmj026551@svn01.web.mwc.hst.phx2.redhat.com> --===============0301279508221105043== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-14 18:22:38 -0400 (Mon, 14 Sep 2009) New Revision: 17569 Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/co= ntentassist/FaceletPageContectAssistProcessor.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/co= ntentassist/JspContentAssistProcessor.java Log: JBIDE-512 context variable code completion dropdown should show their "sour= ce" JBIDE-2541 Show java-doc for EL content assist item The values of type, sourceType and JavaDoc are gathered to be displayed in = CA Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/contentassist/FaceletPageContectAssistProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/FaceletPageContectAssistProcessor.java 2009-09-14 22:20:05 UTC= (rev 17568) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/FaceletPageContectAssistProcessor.java 2009-09-14 22:22:38 UTC= (rev 17569) @@ -205,7 +205,13 @@ int cursorPosition =3D replacementString.length(); Image image =3D textProposal.getImage(); = - String displayString =3D prefix.getText().substring(0, replacementLengt= h) + textProposal.getReplacementString(); = + // JBIDE-512, JBIDE-2541 related changes =3D=3D=3D>>> +// String displayString =3D prefix.getText().substring(0, replacementLen= gth) + textProposal.getReplacementString(); + String displayString =3D textProposal.getLabel(); + if (displayString =3D=3D null) + displayString =3D textProposal.getReplacementString() =3D=3D null ? re= placementString : textProposal.getReplacementString(); + + // <<<=3D=3D=3D JBIDE-512, JBIDE-2541 related changes IContextInformation contextInformation =3D null; String additionalProposalInfo =3D textProposal.getContextInfo(); int relevance =3D textProposal.getRelevance(); Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/contentassist/JspContentAssistProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/JspContentAssistProcessor.java 2009-09-14 22:20:05 UTC (rev 17= 568) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/JspContentAssistProcessor.java 2009-09-14 22:22:38 UTC (rev 17= 569) @@ -603,7 +603,14 @@ int cursorPosition =3D replacementString.length(); Image image =3D textProposal.getImage(); = - String displayString =3D prefix.getText().substring(0, replacementLeng= th) + textProposal.getReplacementString(); = + // JBIDE-512, JBIDE-2541 related changes =3D=3D=3D>>> +// String displayString =3D prefix.getText().substring(0, replacementLe= ngth) + textProposal.getReplacementString(); + String displayString =3D textProposal.getLabel(); + if (displayString =3D=3D null) + displayString =3D textProposal.getReplacementString() =3D=3D null ? r= eplacementString : textProposal.getReplacementString(); + = + // <<<=3D=3D=3D JBIDE-512, JBIDE-2541 related changes + IContextInformation contextInformation =3D null; String additionalProposalInfo =3D (textProposal.getContextInfo() =3D= =3D null ? "" : textProposal.getContextInfo()); //$NON-NLS-1$ int relevance =3D textProposal.getRelevance(); --===============0301279508221105043==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 18:23:24 2009 Content-Type: multipart/mixed; boundary="===============6336060154858347917==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17570 - trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/el. Date: Mon, 14 Sep 2009 18:23:24 -0400 Message-ID: <200909142223.n8EMNO6P026601@svn01.web.mwc.hst.phx2.redhat.com> --===============6336060154858347917== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-14 18:23:24 -0400 (Mon, 14 Sep 2009) New Revision: 17570 Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web= /kb/el/AbstractELCompletionEngine.java Log: JBIDE-512 context variable code completion dropdown should show their "sour= ce" JBIDE-2541 Show java-doc for EL content assist item The values of type, sourceType and JavaDoc are gathered to be displayed in = CA Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/= jst/web/kb/el/AbstractELCompletionEngine.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/el/AbstractELCompletionEngine.java 2009-09-14 22:22:38 UTC (rev 17569) +++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/el/AbstractELCompletionEngine.java 2009-09-14 22:23:24 UTC (rev 17570) @@ -16,8 +16,11 @@ import java.util.TreeSet; = import org.eclipse.core.resources.IFile; +import org.eclipse.jdt.core.IJavaElement; +import org.eclipse.jdt.core.IMember; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.JavaModelException; +import org.eclipse.jdt.core.Signature; import org.eclipse.jface.text.BadLocationException; import org.eclipse.jface.text.IDocument; import org.eclipse.swt.graphics.Image; @@ -40,6 +43,8 @@ import org.jboss.tools.common.el.core.resolver.ElVarSearcher; import org.jboss.tools.common.el.core.resolver.TypeInfoCollector; import org.jboss.tools.common.el.core.resolver.Var; +import org.jboss.tools.common.el.core.resolver.TypeInfoCollector.MemberInf= o; +import org.jboss.tools.common.el.core.resolver.TypeInfoCollector.MemberPre= sentation; import org.jboss.tools.common.text.TextProposal; import org.jboss.tools.jst.web.kb.IPageContext; = @@ -248,18 +253,29 @@ ELOperandResolveStatus oldElStatus =3D resolveELOperand(file, operand, = returnEqualedVariablesOnly, false); status.getProposals().addAll(oldElStatus.getProposals()); } - + = + // JBIDE-512, JBIDE-2541 related changes =3D=3D=3D>>> + // TODO: Add type, sourceType and JavaDoc found if possible + // Reason of incomplete: there are no resolved members here, = + // The var value is to be resolved by the ELResolver to let us know + // what is the var's type if(!returnEqualedVariablesOnly && vars!=3Dnull) { - List varNameProposals =3D getVarNameProposals(vars, operand.toS= tring()); - if (varNameProposals !=3D null) { - for (String varNameProposal : varNameProposals) { + = + for (Var v : vars) { + String prefix =3D operand.toString(); + if(v.getName().startsWith(prefix)) { + String varNameProposal =3D v.getName().substring(prefix.length()); TextProposal proposal =3D new TextProposal(); proposal.setReplacementString(varNameProposal); + proposal.setLabel(v.getName()); proposal.setImage(getELProposalImage()); status.getProposals().add(proposal); } } } + // <<<=3D=3D=3D JBIDE-512, JBIDE-2541 related changes + + return status; } = @@ -330,14 +346,39 @@ // no vars are resolved = // the tokens are the part of var name ended with a separator (.) resolvedVariables =3D resolveVariables(file, expr, true, returnEqualedV= ariablesOnly); = + Set proposals =3D new TreeSet(TextProposal.= KB_PROPOSAL_ORDER); for (V var : resolvedVariables) { String varName =3D var.getName(); if(varName.startsWith(operand.getText())) { + // JBIDE-512, JBIDE-2541 related changes =3D=3D=3D>>> + MemberInfo member =3D getMemberInfoByVariable(var, true); + = + String sourceTypeName =3D member =3D=3D null ? null : member.getDecla= ringTypeQualifiedName(); + if (sourceTypeName !=3D null && sourceTypeName.indexOf('.') !=3D -1) = + sourceTypeName =3D Signature.getSimpleName(sourceTypeName); + String typeName =3D member =3D=3D null ? null : member.getType().getN= ame(); + if (typeName !=3D null && typeName.indexOf('.') !=3D -1) = + typeName =3D Signature.getSimpleName(typeName); + = + IJavaElement element =3D member =3D=3D null ? null : member.getJavaEl= ement(); + String attachedJavaDoc =3D null; + = + try { + attachedJavaDoc =3D element =3D=3D null ? null : element.getAttache= dJavadoc(null); + } catch (JavaModelException e) { + // Ignore + } + TextProposal proposal =3D new TextProposal(); proposal.setReplacementString(varName.substring(operand.getLength())); setImage(proposal, var); + proposal.setType(typeName); + proposal.setSourceType(sourceTypeName); + proposal.setContextInfo(attachedJavaDoc); + = proposals.add(proposal); + // <<<=3D=3D=3D JBIDE-512, JBIDE-2541 related changes } } status.setProposals(proposals); @@ -353,25 +394,53 @@ // For example @Factory and @DataModel. We should use @DataModel instea= d of @Factory // method which returns null. // See https://jira.jboss.org/jira/browse/JBIDE-3694 + = + // JBIDE-512, JBIDE-2541 related changes =3D=3D=3D>>> TypeInfoCollector.MemberInfo bijectedAttribute =3D null; for (V var : resolvedVariables) { if(isSingularAttribute(var)) { bijectedAttribute =3D getMemberInfoByVariable(var, true); } + MemberInfo member =3D getMemberInfoByVariable(var, true); + String sourceTypeName =3D member =3D=3D null ? null : member.getDeclar= ingTypeQualifiedName(); + if (sourceTypeName !=3D null && sourceTypeName.indexOf('.') !=3D -1) = + sourceTypeName =3D Signature.getSimpleName(sourceTypeName); + String typeName =3D member =3D=3D null ? null : member.getType().getNa= me(); + if (typeName !=3D null && typeName.indexOf('.') !=3D -1) = + typeName =3D Signature.getSimpleName(typeName); + IJavaElement element =3D member =3D=3D null ? null : member.getJavaEle= ment(); + String attachedJavaDoc =3D null; + = + try { + attachedJavaDoc =3D element =3D=3D null ? null : element.getAttachedJ= avadoc(null); + } catch (JavaModelException e) { + // Ignore + } + String varName =3D var.getName(); if(operand.getLength()<=3DvarName.length()) { TextProposal proposal =3D new TextProposal(); proposal.setReplacementString(varName.substring(operand.getLength())); + proposal.setLabel(varName); setImage(proposal, var); + proposal.setType(typeName); + proposal.setSourceType(sourceTypeName); + proposal.setContextInfo(attachedJavaDoc); proposals.add(proposal); } else if(returnEqualedVariablesOnly) { TextProposal proposal =3D new TextProposal(); proposal.setReplacementString(varName); + proposal.setLabel(varName); setImage(proposal, var); + proposal.setType(typeName); + proposal.setSourceType(sourceTypeName); + proposal.setContextInfo(attachedJavaDoc); proposals.add(proposal); } status.setMemberOfResolvedOperand(bijectedAttribute!=3Dnull?bijectedAt= tribute:getMemberInfoByVariable(var, true)); } + // <<<=3D=3D=3D JBIDE-512, JBIDE-2541 related changes + status.setLastResolvedToken(expr); status.setProposals(proposals); return status; @@ -505,6 +574,9 @@ status.setMapOrCollectionOrBundleAmoungTheTokens(); } = + = + // JBIDE-512, JBIDE-2541 related changes =3D=3D=3D>>> + /* Set methodPresentations =3D = infos.getMethodPresentationStrings(); if (methodPresentations !=3D null) { @@ -516,6 +588,43 @@ kbProposals.add(proposal); } } + */ + + Set methodPresentations =3D = + infos.getMethodPresentations(); + = + if (methodPresentations !=3D null) { + for (MemberPresentation presentation : methodPresentations) { + String presentationString =3D presentation.getPresentation(); + MemberInfo member =3D presentation.getMember(); + String sourceTypeName =3D member =3D=3D null ? null : member.getDecl= aringTypeQualifiedName(); + if (sourceTypeName !=3D null && sourceTypeName.indexOf('.') !=3D -1) = + sourceTypeName =3D Signature.getSimpleName(sourceTypeName); + String typeName =3D member =3D=3D null ? null : member.getType().get= Name(); + if (typeName !=3D null && typeName.indexOf('.') !=3D -1) = + typeName =3D Signature.getSimpleName(typeName); + IJavaElement element =3D member =3D=3D null ? null : member.getJavaE= lement(); + String attachedJavaDoc =3D null; + = + try { + attachedJavaDoc =3D element =3D=3D null ? null : element.getAttache= dJavadoc(null); + } catch (JavaModelException e) { + // Ignore + } + + TextProposal proposal =3D new TextProposal(); + proposal.setReplacementString(presentationString); + proposal.setLabel(presentationString); + proposal.setImage(getELProposalImage()); + proposal.setType(typeName); + proposal.setSourceType(sourceTypeName); + proposal.setContextInfo(attachedJavaDoc); + = + kbProposals.add(proposal); + } + } + + /* Set propertyPresentations =3D = infos.getPropertyPresentationStrings(status.getUnpairedGettersOrSette= rs()); if (propertyPresentations !=3D null) { @@ -527,6 +636,43 @@ kbProposals.add(proposal); } } + */ + + Set propertyPresentations =3D = + infos.getPropertyPresentations(status.getUnpairedGettersOrSetters()); + = + if (propertyPresentations !=3D null) { + for (MemberPresentation presentation : propertyPresentations) { + String presentationString =3D presentation.getPresentation(); + MemberInfo member =3D presentation.getMember(); + String sourceTypeName =3D member =3D=3D null ? null : member.getDecl= aringTypeQualifiedName(); + if (sourceTypeName !=3D null && sourceTypeName.indexOf('.') !=3D -1) = + sourceTypeName =3D Signature.getSimpleName(sourceTypeName); + String typeName =3D member =3D=3D null ? null : member.getType().get= Name(); + if (typeName !=3D null && typeName.indexOf('.') !=3D -1) = + typeName =3D Signature.getSimpleName(typeName); + IJavaElement element =3D member =3D=3D null ? null : member.getJavaE= lement(); + String attachedJavaDoc =3D null; + = + try { + attachedJavaDoc =3D element =3D=3D null ? null : element.getAttache= dJavadoc(null); + } catch (JavaModelException e) { + // Ignore + } + + TextProposal proposal =3D new TextProposal(); + proposal.setReplacementString(presentationString); + proposal.setLabel(presentationString); + proposal.setImage(getELProposalImage()); + proposal.setType(typeName); + proposal.setSourceType(sourceTypeName); + proposal.setContextInfo(attachedJavaDoc); + = + kbProposals.add(proposal); + } + } + // <<<=3D=3D=3D JBIDE-512, JBIDE-2541 related changes + } } else if(expr.getType() !=3D ELObjectType.EL_ARGUMENT_INVOCATION) @@ -576,12 +722,35 @@ break; } } else if (proposal.getPresentation().startsWith(filter)) { + // JBIDE-512, JBIDE-2541 related changes =3D=3D=3D>>> + // This is used for CA. + MemberInfo member =3D proposal.getMember(); + String sourceTypeName =3D member =3D=3D null ? null : member.getDecla= ringTypeQualifiedName(); + if (sourceTypeName !=3D null && sourceTypeName.indexOf('.') !=3D -1) = + sourceTypeName =3D Signature.getSimpleName(sourceTypeName); + String typeName =3D member =3D=3D null ? null : member.getType().getN= ame(); + if (typeName !=3D null && typeName.indexOf('.') !=3D -1) = + typeName =3D Signature.getSimpleName(typeName); + IJavaElement element =3D member =3D=3D null ? null : member.getJavaEl= ement(); + String attachedJavaDoc =3D null; + = + try { + attachedJavaDoc =3D element =3D=3D null ? null : element.getAttached= Javadoc(null); + } catch (JavaModelException e) { + // Ignore + } + TextProposal kbProposal =3D new TextProposal(); kbProposal.setReplacementString(proposal.getPresentation().substring(= filter.length())); + kbProposal.setLabel(proposal.getPresentation()); kbProposal.setImage(getELProposalImage()); + kbProposal.setType(typeName); + kbProposal.setSourceType(sourceTypeName); + kbProposal.setContextInfo(attachedJavaDoc); = kbProposals.add(kbProposal); + // <<<=3D=3D=3D JBIDE-512, JBIDE-2541 related changes } } } else if(expr.getType() =3D=3D ELObjectType.EL_ARGUMENT_INVOCATION) { @@ -645,6 +814,24 @@ } } else if (proposal.getPresentation().startsWith(filter)) { // This is used for CA. + // JBIDE-512, JBIDE-2541 related changes =3D=3D=3D>>> + + MemberInfo member =3D proposal.getMember(); + String sourceTypeName =3D member =3D=3D null ? null : member.getDecla= ringTypeQualifiedName(); + if (sourceTypeName !=3D null && sourceTypeName.indexOf('.') !=3D -1) = + sourceTypeName =3D Signature.getSimpleName(sourceTypeName); + String typeName =3D member =3D=3D null ? null : member.getType().getN= ame(); + if (typeName !=3D null && typeName.indexOf('.') !=3D -1) = + typeName =3D Signature.getSimpleName(typeName); + IJavaElement element =3D member =3D=3D null ? null : member.getJavaEl= ement(); + String attachedJavaDoc =3D null; + = + try { + attachedJavaDoc =3D element =3D=3D null ? null : element.getAttached= Javadoc(null); + } catch (JavaModelException e) { + // Ignore + } + TextProposal kbProposal =3D new TextProposal(); = String replacementString =3D proposal.getPresentation().substring(fil= ter.length()); @@ -654,8 +841,12 @@ = kbProposal.setReplacementString(replacementString); kbProposal.setImage(getELProposalImage()); - = + kbProposal.setType(typeName); + kbProposal.setSourceType(sourceTypeName); + kbProposal.setContextInfo(attachedJavaDoc); + = kbProposals.add(kbProposal); + // <<<=3D=3D=3D JBIDE-512, JBIDE-2541 related changes } } } --===============6336060154858347917==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 19:17:24 2009 Content-Type: multipart/mixed; boundary="===============8531372840857601003==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17571 - trunk/jmx. Date: Mon, 14 Sep 2009 19:17:24 -0400 Message-ID: <200909142317.n8ENHObm003014@svn01.web.mwc.hst.phx2.redhat.com> --===============8531372840857601003== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-14 19:17:23 -0400 (Mon, 14 Sep 2009) New Revision: 17571 Removed: trunk/jmx/.project Log: .project deleted from jmx component root folder to let import exixting proj= ect action to pick up all projects from jmx component Deleted: trunk/jmx/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jmx/.project 2009-09-14 22:23:24 UTC (rev 17570) +++ trunk/jmx/.project 2009-09-14 23:17:23 UTC (rev 17571) @@ -1,11 +0,0 @@ - - - org.jboss.tools.jmx.releng - - - - - - - - --===============8531372840857601003==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 19:24:52 2009 Content-Type: multipart/mixed; boundary="===============0725803186085142508==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17572 - trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver. Date: Mon, 14 Sep 2009 19:24:52 -0400 Message-ID: <200909142324.n8ENOq2V004128@svn01.web.mwc.hst.phx2.redhat.com> --===============0725803186085142508== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-14 19:24:52 -0400 (Mon, 14 Sep 2009) New Revision: 17572 Added: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ELResolutionImpl.java trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ELSegmentImpl.java trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/JavaMemberELSegmentImpl.java Log: https://jira.jboss.org/jira/browse/JBIDE-4860 Added: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/to= ols/common/el/core/resolver/ELResolutionImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolutionImpl.java (rev= 0) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolutionImpl.java 2009-09-14 23:24:52 UTC (rev= 17572) @@ -0,0 +1,88 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.common.el.core.resolver; + +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.jdt.core.IJavaElement; +import org.jboss.tools.common.el.core.model.ELExpression; + +/** + * @author Alexey Kazakov + */ +public class ELResolutionImpl implements ELResolution { + + protected ELContext context; + protected List segments =3D new ArrayList(); + protected ELExpression operand; + + /* (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.ELResolution#findSegmentB= yJavaElement(org.eclipse.jdt.core.IJavaElement) + */ + public ELSegment findSegmentByJavaElement(IJavaElement element) { + // TODO + return null; + } + + /* (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.ELResolution#findSegmentB= yOffset(int) + */ + public ELSegment findSegmentByOffset(int offcet) { + // TODO + return null; + } + + /* (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.ELResolution#getContext() + */ + public ELContext getContext() { + return context; + } + + /* (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.ELResolution#getSegments() + */ + public List getSegments() { + return segments; + } + + /** + * Adds a segment + * @param segment + */ + public void addSegment(ELSegment segment) { + segments.add(segment); + } + + /* (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.ELResolution#getSourceOpe= rand() + */ + public ELExpression getSourceOperand() { + return operand; + } + + /* (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.ELResolution#getUnresolve= dSegment() + */ + public ELSegment getUnresolvedSegment() { + // TODO + return null; + } + + /* (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.ELResolution#hasUnresolve= dSegment() + */ + public boolean hasUnresolvedSegment() { + // TODO + return false; + } +} \ No newline at end of file Property changes on: trunk/common/plugins/org.jboss.tools.common.el.core/sr= c/org/jboss/tools/common/el/core/resolver/ELResolutionImpl.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/to= ols/common/el/core/resolver/ELSegmentImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELSegmentImpl.java (rev 0) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELSegmentImpl.java 2009-09-14 23:24:52 UTC (rev 17= 572) @@ -0,0 +1,82 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.common.el.core.resolver; + +import org.eclipse.core.resources.IResource; +import org.jboss.tools.common.el.core.model.ELInvocationExpression; +import org.jboss.tools.common.model.project.ext.ITextSourceReference; + +/** + * @author Alexey Kazakov + */ +public class ELSegmentImpl implements ELSegment { + + protected IResource resource; + protected ITextSourceReference sourceReference; + protected ELInvocationExpression token; + protected boolean resolved =3D false; + + /* (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.ELSegment#getResource() + */ + public IResource getResource() { + return resource; + } + + /* (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.ELSegment#getSourceRefere= nce() + */ + public ITextSourceReference getSourceReference() { + return sourceReference; + } + + /* (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.ELSegment#getToken() + */ + public ELInvocationExpression getToken() { + return token; + } + + /* (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.ELSegment#isResolved() + */ + public boolean isResolved() { + return resolved; + } + + /** + * @param resource the resource to set + */ + public void setResource(IResource resource) { + this.resource =3D resource; + } + + /** + * @param sourceReference the sourceReference to set + */ + public void setSourceReference(ITextSourceReference sourceReference) { + this.sourceReference =3D sourceReference; + } + + /** + * @param token the token to set + */ + public void setToken(ELInvocationExpression token) { + this.token =3D token; + } + + /** + * @param resolved the resolved to set + */ + public void setResolved(boolean resolved) { + this.resolved =3D resolved; + } +} \ No newline at end of file Property changes on: trunk/common/plugins/org.jboss.tools.common.el.core/sr= c/org/jboss/tools/common/el/core/resolver/ELSegmentImpl.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/to= ols/common/el/core/resolver/JavaMemberELSegmentImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/JavaMemberELSegmentImpl.java = (rev 0) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/JavaMemberELSegmentImpl.java 2009-09-14 23:24:52 U= TC (rev 17572) @@ -0,0 +1,102 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.common.el.core.resolver; + +import org.eclipse.jdt.core.IJavaElement; +import org.jboss.tools.common.el.core.resolver.TypeInfoCollector.MemberInf= o; + +/** + * @author Alexey Kazakov + */ +public class JavaMemberELSegmentImpl extends ELSegmentImpl implements Java= MemberElSegment { + + protected IJavaElement element; + protected MemberInfo memberInfo; + protected boolean hasSetter; + protected boolean hasGetter; + + /* (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.JavaMemberElSegment#getJa= vaElement() + */ + public IJavaElement getJavaElement() { + return element; + } + + /* (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.JavaMemberElSegment#getMe= mberInfo() + */ + public MemberInfo getMemberInfo() { + return memberInfo; + } + + /* (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.JavaMemberElSegment#hasGe= tter() + */ + public boolean hasGetter() { + return hasGetter; + } + + /* (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.JavaMemberElSegment#hasSe= tter() + */ + public boolean hasSetter() { + return hasSetter; + } + + /** + * @return the element + */ + public IJavaElement getElement() { + return element; + } + + /** + * @param element the element to set + */ + public void setElement(IJavaElement element) { + this.element =3D element; + } + + /** + * @return the hasSetter + */ + public boolean isHasSetter() { + return hasSetter; + } + + /** + * @param hasSetter the hasSetter to set + */ + public void setHasSetter(boolean hasSetter) { + this.hasSetter =3D hasSetter; + } + + /** + * @return the hasGetter + */ + public boolean isHasGetter() { + return hasGetter; + } + + /** + * @param hasGetter the hasGetter to set + */ + public void setHasGetter(boolean hasGetter) { + this.hasGetter =3D hasGetter; + } + + /** + * @param memberInfo the memberInfo to set + */ + public void setMemberInfo(MemberInfo memberInfo) { + this.memberInfo =3D memberInfo; + } +} \ No newline at end of file Property changes on: trunk/common/plugins/org.jboss.tools.common.el.core/sr= c/org/jboss/tools/common/el/core/resolver/JavaMemberELSegmentImpl.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============0725803186085142508==-- From jbosstools-commits at lists.jboss.org Mon Sep 14 19:25:09 2009 Content-Type: multipart/mixed; boundary="===============3841224249980897214==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17573 - trunk/maven/features/org.jboss.tools.maven.sdk.feature. Date: Mon, 14 Sep 2009 19:25:09 -0400 Message-ID: <200909142325.n8ENP9xN004272@svn01.web.mwc.hst.phx2.redhat.com> --===============3841224249980897214== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-14 19:25:09 -0400 (Mon, 14 Sep 2009) New Revision: 17573 Modified: trunk/maven/features/org.jboss.tools.maven.sdk.feature/.project Log: renaming maven sdk feature to maven.sdk.feature instead of maven.feature Modified: trunk/maven/features/org.jboss.tools.maven.sdk.feature/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/features/org.jboss.tools.maven.sdk.feature/.project 2009-09= -14 23:24:52 UTC (rev 17572) +++ trunk/maven/features/org.jboss.tools.maven.sdk.feature/.project 2009-09= -14 23:25:09 UTC (rev 17573) @@ -1,6 +1,6 @@ - org.jboss.tools.maven.feature + org.jboss.tools.maven.sdk.feature --===============3841224249980897214==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 03:07:13 2009 Content-Type: multipart/mixed; boundary="===============1839910647209567693==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17574 - in trunk/documentation/whatsnew: smooks and 1 other directory. Date: Tue, 15 Sep 2009 03:07:13 -0400 Message-ID: <200909150707.n8F77DTt028284@svn01.web.mwc.hst.phx2.redhat.com> --===============1839910647209567693== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: DartPeng Date: 2009-09-15 03:07:12 -0400 (Tue, 15 Sep 2009) New Revision: 17574 Added: trunk/documentation/whatsnew/images/smookstools_addchildren_wizardpage.p= ng trunk/documentation/whatsnew/images/smookstools_addreader_wizardpage.png trunk/documentation/whatsnew/images/smookstools_csvdatawizard3.png trunk/documentation/whatsnew/images/smookstools_edi_config_wizardpage.png trunk/documentation/whatsnew/images/smookstools_edi_message_mapping_edit= or.png trunk/documentation/whatsnew/images/smookstools_edi_message_mapping_file= _wizard.png trunk/documentation/whatsnew/images/smookstools_edi_wizard_v12.png trunk/documentation/whatsnew/images/smookstools_inputdataselection_v12.p= ng trunk/documentation/whatsnew/images/smookstools_jsondatawizard3.png trunk/documentation/whatsnew/images/smookstools_message_filter_page.png trunk/documentation/whatsnew/images/smookstools_overview_page.png trunk/documentation/whatsnew/images/smookstools_reader_page.png trunk/documentation/whatsnew/smooks/smooks-news-1.1.0.M3.html Log: Add files and images for Smooks what-news Added: trunk/documentation/whatsnew/images/smookstools_addchildren_wizardpa= ge.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/smookstools_addchi= ldren_wizardpage.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/smookstools_addreader_wizardpage= .png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/smookstools_addrea= der_wizardpage.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/smookstools_csvdatawizard3.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/smookstools_csvdat= awizard3.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/smookstools_edi_config_wizardpag= e.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/smookstools_edi_co= nfig_wizardpage.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/smookstools_edi_message_mapping_= editor.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/smookstools_edi_me= ssage_mapping_editor.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/smookstools_edi_message_mapping_= file_wizard.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/smookstools_edi_me= ssage_mapping_file_wizard.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/smookstools_edi_wizard_v12.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/smookstools_edi_wi= zard_v12.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/smookstools_inputdataselection_v= 12.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/smookstools_inputd= ataselection_v12.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/smookstools_jsondatawizard3.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/smookstools_jsonda= tawizard3.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/smookstools_message_filter_page.= png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/smookstools_messag= e_filter_page.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/smookstools_overview_page.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/smookstools_overvi= ew_page.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/images/smookstools_reader_page.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/whatsnew/images/smookstools_reader= _page.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/documentation/whatsnew/smooks/smooks-news-1.1.0.M3.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/documentation/whatsnew/smooks/smooks-news-1.1.0.M3.html = (rev 0) +++ trunk/documentation/whatsnew/smooks/smooks-news-1.1.0.M3.html 2009-09-1= 5 07:07:12 UTC (rev 17574) @@ -0,0 +1,135 @@ + + + + + + + +Smooks tools 1.1.0.M3 What's New + + +

Smooks tools 1.1.0.M3 What's New

+ +

< Main Index Hibernate >

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

Smooks Configuration Editor

+
+
Multiple Page Editor +

Overview page. Configurate the high level informations of + Smooks configuration file.

+ +

+ +

Reader Page. Add/Remove the Reader model in this page.

+ +

+ +

Message Filter Page. This page inherits many functions from the + Design page , it can add/remove the message filter resources.

+ +

+
+
+
Support + the Smooks configuration file 1.2.1 version +

The Smooks editor support the Smooks configuration file which + is related to Smooks 1.2.1 platform.

+ +

+ +

+ +
+
+
Support + CSV,JSON,EDI input type data +

Support CSV , JSON , EDI input type data

+ +

+ +

CSV input Reader configuration wizard page.

+ +

+ +

EDI input Reader configuration wizard page.

+ +

+ +

JSON input Reader configuration wizard page.

+ +

+ +
+
+

EDI Message Mapping Graphical Editor

+
+
EDI + Message Mapping Graphical Editor +

EDI Message Mapping File Wizard.

+ +

+ +

+ +

EDI Message Mapping Graphical Editor. It can edit the + EDI-Message-Mapping configuration file.

+ +

<= /p> + +

+
+
+ + + + + + Property changes on: trunk/documentation/whatsnew/smooks/smooks-news-1.1.0.= M3.html ___________________________________________________________________ Name: svn:mime-type + text/plain --===============1839910647209567693==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 03:22:09 2009 Content-Type: multipart/mixed; boundary="===============8158836364443153914==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17575 - trunk/tests/features/org.jboss.tools.all.test.feature. Date: Tue, 15 Sep 2009 03:22:09 -0400 Message-ID: <200909150722.n8F7M9eb031348@svn01.web.mwc.hst.phx2.redhat.com> --===============8158836364443153914== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-15 03:22:09 -0400 (Tue, 15 Sep 2009) New Revision: 17575 Modified: trunk/tests/features/org.jboss.tools.all.test.feature/feature.xml Log: css.tests were included to the all.test feature Modified: trunk/tests/features/org.jboss.tools.all.test.feature/feature.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/tests/features/org.jboss.tools.all.test.feature/feature.xml 2009-= 09-15 07:07:12 UTC (rev 17574) +++ trunk/tests/features/org.jboss.tools.all.test.feature/feature.xml 2009-= 09-15 07:22:09 UTC (rev 17575) @@ -1,232 +1,246 @@ - - - - - [Enter Feature Description here.] - - - - [Enter Copyright Description here.] - - - Red Hat, Inc. licenses these features and plugins to you under -certain open source licenses (or aggregations of such licenses), which -in a particular case may include the Eclipse Public License, the GNU -Lesser General Public License, and/or certain other open source -licenses. For precise licensing details, consult the corresponding -source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, -Raleigh NC 27606 USA. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + [Enter Feature Description here.] + + + + [Enter Copyright Description here.] + + + + Red Hat, Inc. licenses these features and plugins to you under +certain open source licenses (or aggregations of such licenses), which +in a particular case may include the Eclipse Public License, the GNU +Lesser General Public License, and/or certain other open source +licenses. For precise licensing details, consult the corresponding +source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, +Raleigh NC 27606 USA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --===============8158836364443153914==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 03:26:26 2009 Content-Type: multipart/mixed; boundary="===============6137889577567552106==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17576 - in trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources: JBIDE3247/.settings and 10 other directories. Date: Tue, 15 Sep 2009 03:26:26 -0400 Message-ID: <200909150726.n8F7QQEr032093@svn01.web.mwc.hst.phx2.redhat.com> --===============6137889577567552106== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-15 03:26:25 -0400 (Tue, 15 Sep 2009) New Revision: 17576 Removed: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/.se= ttings/.jsdtscope trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/.se= ttings/org.eclipse.wst.jsdt.ui.superType.container trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/.se= ttings/org.eclipse.wst.jsdt.ui.superType.name trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/Web= Content/WEB-INF/lib/common-annotations.jar trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/Web= Content/WEB-INF/lib/commons-beanutils.jar trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/Web= Content/WEB-INF/lib/commons-collections.jar trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/Web= Content/WEB-INF/lib/commons-digester.jar trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/Web= Content/WEB-INF/lib/commons-logging.jar trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/Web= Content/WEB-INF/lib/jstl.jar trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFacelet= sTestProject/.settings/.jsdtscope trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFacelet= sTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.container trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFacelet= sTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.name trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFacelet= sTestProject/WebContent/WEB-INF/classes/demo/ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFacelet= sTestProject/ant/ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebC= ontent/WEB-INF/lib/jsf-api.jar trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/ant/ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/JavaS= ource/demo/User.java trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebCo= ntent/WEB-INF/classes/demo/ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebCo= ntent/WEB-INF/lib/common-annotations.jar trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebCo= ntent/WEB-INF/lib/commons-beanutils.jar trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebCo= ntent/WEB-INF/lib/commons-collections.jar trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebCo= ntent/WEB-INF/lib/commons-digester.jar trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebCo= ntent/WEB-INF/lib/commons-logging.jar trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebCo= ntent/WEB-INF/lib/jstl.jar trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/ant/ Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/.cl= asspath trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/.pr= oject trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/Web= Content/WEB-INF/lib/jsf-facelets.jar trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/Web= Content/WEB-INF/lib/standard.jar trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFacelet= sTestProject/.project trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebC= ontent/WEB-INF/lib/jsf-impl.jar trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebCo= ntent/WEB-INF/lib/jboss-seam-ui.jar trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebCo= ntent/WEB-INF/lib/richfaces-ui-3.1.6.SR1.jar trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebCo= ntent/WEB-INF/lib/standard.jar Log: surplus resources were deleted from jsf.vpe.jsf tests test projects: 1. jars that doesn't contain tlds 2. unused resources like ant scripts 3. validation and verification builders were removed 4. jstd feature settings and feature were removed surplus resources are not needed to pass those tests Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3= 247/.classpath =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/.c= lasspath 2009-09-15 07:22:09 UTC (rev 17575) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/.c= lasspath 2009-09-15 07:26:25 UTC (rev 17576) @@ -4,6 +4,6 @@ - + Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3= 247/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/.p= roject 2009-09-15 07:22:09 UTC (rev 17575) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/.p= roject 2009-09-15 07:26:25 UTC (rev 17576) @@ -6,11 +6,6 @@ - org.eclipse.wst.jsdt.core.javascriptValidator - - - - org.eclipse.wst.common.project.facet.core.builder @@ -20,16 +15,6 @@ - - org.eclipse.wst.validation.validationbuilder - - - - - org.jboss.tools.common.verification.verifybuilder - - - org.eclipse.jem.workbench.JavaEMFNature @@ -37,6 +22,5 @@ org.eclipse.wst.common.modulecore.ModuleCoreNature org.jboss.tools.jsf.jsfnature org.eclipse.wst.common.project.facet.core.nature - org.eclipse.wst.jsdt.core.jsNature
Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE32= 47/.settings/.jsdtscope =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/.s= ettings/.jsdtscope 2009-09-15 07:22:09 UTC (rev 17575) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/.s= ettings/.jsdtscope 2009-09-15 07:26:25 UTC (rev 17576) @@ -1,11 +0,0 @@ - - - - - - - - - - - Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE32= 47/.settings/org.eclipse.wst.jsdt.ui.superType.container =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/.s= ettings/org.eclipse.wst.jsdt.ui.superType.container 2009-09-15 07:22:09 UTC= (rev 17575) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/.s= ettings/org.eclipse.wst.jsdt.ui.superType.container 2009-09-15 07:26:25 UTC= (rev 17576) @@ -1 +0,0 @@ -org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE32= 47/.settings/org.eclipse.wst.jsdt.ui.superType.name =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/.s= ettings/org.eclipse.wst.jsdt.ui.superType.name 2009-09-15 07:22:09 UTC (rev= 17575) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/.s= ettings/org.eclipse.wst.jsdt.ui.superType.name 2009-09-15 07:26:25 UTC (rev= 17576) @@ -1 +0,0 @@ -Window \ No newline at end of file Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE32= 47/WebContent/WEB-INF/lib/common-annotations.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE32= 47/WebContent/WEB-INF/lib/commons-beanutils.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE32= 47/WebContent/WEB-INF/lib/commons-collections.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE32= 47/WebContent/WEB-INF/lib/commons-digester.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE32= 47/WebContent/WEB-INF/lib/commons-logging.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3= 247/WebContent/WEB-INF/lib/jsf-facelets.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE32= 47/WebContent/WEB-INF/lib/jstl.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3= 247/WebContent/WEB-INF/lib/standard.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/custom= FaceletsTestProject/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFacele= tsTestProject/.project 2009-09-15 07:22:09 UTC (rev 17575) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFacele= tsTestProject/.project 2009-09-15 07:26:25 UTC (rev 17576) @@ -6,11 +6,6 @@ - org.eclipse.wst.jsdt.core.javascriptValidator - - - - org.eclipse.wst.common.project.facet.core.builder @@ -20,16 +15,6 @@ - - org.eclipse.wst.validation.validationbuilder - - - - - org.jboss.tools.common.verification.verifybuilder - - - org.eclipse.jem.workbench.JavaEMFNature @@ -37,6 +22,5 @@ org.eclipse.wst.common.modulecore.ModuleCoreNature org.jboss.tools.jsf.jsfnature org.eclipse.wst.common.project.facet.core.nature - org.eclipse.wst.jsdt.core.jsNature Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customF= aceletsTestProject/.settings/.jsdtscope =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFacele= tsTestProject/.settings/.jsdtscope 2009-09-15 07:22:09 UTC (rev 17575) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFacele= tsTestProject/.settings/.jsdtscope 2009-09-15 07:26:25 UTC (rev 17576) @@ -1,11 +0,0 @@ - - - - - - - - - - - Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customF= aceletsTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.container =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFacele= tsTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.container 2009-09= -15 07:22:09 UTC (rev 17575) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFacele= tsTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.container 2009-09= -15 07:26:25 UTC (rev 17576) @@ -1 +0,0 @@ -org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customF= aceletsTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.name =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFacele= tsTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.name 2009-09-15 0= 7:22:09 UTC (rev 17575) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/customFacele= tsTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.name 2009-09-15 0= 7:26:25 UTC (rev 17576) @@ -1 +0,0 @@ -Window \ No newline at end of file Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2tes= t/WebContent/WEB-INF/lib/jsf-api.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2te= st/WebContent/WEB-INF/lib/jsf-impl.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest= /JavaSource/demo/User.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/Java= Source/demo/User.java 2009-09-15 07:22:09 UTC (rev 17575) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/Java= Source/demo/User.java 2009-09-15 07:26:25 UTC (rev 17576) @@ -1,33 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package demo; - -/** - * Created by JBoss Developer Studio - */ -public class User { - - private String name; - - /** - * @return User Name - */ - public String getName() { - return name; - } - - /** - * @param User Name - */ - public void setName(String name) { - this.name =3D name; - } -} \ No newline at end of file Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest= /WebContent/WEB-INF/lib/common-annotations.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest= /WebContent/WEB-INF/lib/commons-beanutils.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest= /WebContent/WEB-INF/lib/commons-collections.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest= /WebContent/WEB-INF/lib/commons-digester.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest= /WebContent/WEB-INF/lib/commons-logging.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTes= t/WebContent/WEB-INF/lib/jboss-seam-ui.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest= /WebContent/WEB-INF/lib/jstl.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTes= t/WebContent/WEB-INF/lib/richfaces-ui-3.1.6.SR1.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTes= t/WebContent/WEB-INF/lib/standard.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============6137889577567552106==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 08:12:59 2009 Content-Type: multipart/mixed; boundary="===============8685647879557091375==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17577 - in trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common: model/ui/texteditors/preferences and 1 other directory. Date: Tue, 15 Sep 2009 08:12:58 -0400 Message-ID: <200909151212.n8FCCwKA024557@svn01.web.mwc.hst.phx2.redhat.com> --===============8685647879557091375== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-15 08:12:58 -0400 (Tue, 15 Sep 2009) New Revision: 17577 Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/editor/ObjectMultiPageEditor.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/editor/OpenEditorWizard.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/texteditors/preferences/EditorsPreferencesPage.java Log: https://jira.jboss.org/jira/browse/JBIDE-4885 Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/editor/ObjectMultiPageEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/editor/ObjectMultiPageEditor.java 2009-09-15 07:26:25 UTC (rev 175= 76) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/editor/ObjectMultiPageEditor.java 2009-09-15 12:12:58 UTC (rev 175= 77) @@ -491,8 +491,23 @@ = boolean lock2 =3D false; = + boolean waitForMerge =3D false; + int waitingEventsCount =3D 0; + = public void nodeChanged(XModelTreeEvent event) { if(lock2) return; + if(event.getDetails() =3D=3D XModelTreeEvent.BEFORE_MERGE && event.getMo= delObject() =3D=3D getModelObject()) { + waitForMerge =3D true; + waitingEventsCount =3D 0; + return; + } + if(event.getDetails() =3D=3D XModelTreeEvent.AFTER_MERGE && event.getMod= elObject() =3D=3D getModelObject()) { + waitForMerge =3D false; + System.out.println("waitingEventsCount=3D" + waitingEventsCount); + waitingEventsCount =3D 0; + } + waitingEventsCount++; + if(waitForMerge) return; if(needsUpdate()) { Display.getDefault().syncExec(new U()); } @@ -500,6 +515,8 @@ = public void structureChanged(XModelTreeEvent event) { if(lock2) return; + waitingEventsCount++; + if(waitForMerge) return; if(needsUpdate()) { Display.getDefault().syncExec(new U()); } @@ -1238,140 +1255,5 @@ return false; } = - private void showWarning() throws XModelException { - boolean isShowingWarning =3D "yes".equals(Preference.SHOW_NATURE_WARNING= .getValue()); //$NON-NLS-1$ - if(!isShowingWarning) return; - ServiceDialog d =3D PreferenceModelUtilities.getPreferenceModel().getSer= vice(); - Properties p =3D new Properties(); - String[] natures =3D this.natures; - if(natures =3D=3D null) natures =3D NatureOptionList.getAllNatures(); - NatureOption[] options =3D new NatureOption[natures.length]; - for (int i =3D 0; i < options.length; i++) { - String[] ds =3D NatureOptionList.getNatureDescription(natures[i]); - if(ds =3D=3D null) continue; - options[i] =3D new NatureOption(ds[1], ds[2]); - options[i].setActionClass(ds[3]); - options[i].setResource(resource); - } - String message =3D WizardKeys.getString(warningKey); - p.setProperty(ServiceDialog.DIALOG_MESSAGE, message); - String box =3D WizardKeys.getString("SharableEditors.natureWarning.box.m= essage"); //$NON-NLS-1$ - Option showOption =3D new Option(box); - int k =3D 0; - for (int i =3D 0; i < options.length; i++) { - if(options[i] !=3D null && options[i].register(p, k)) ++k; - } - = - if(showOption.register(p, k)) { - p.setProperty(ServiceDialog.SEPARATOR + "_" + k, "true"); //$NON-NLS-1$= //$NON-NLS-2$ - ++k; - } - - p.setProperty("title", "Warning"); //$NON-NLS-1$ - p.put(ServiceDialog.BUTTONS, new String[]{"OK"}); - d.openConfirm(p); - for (int i =3D 0; i < options.length; i++) { - if(options[i] !=3D null && options[i].isSelected(p)) { - options[i].run(); - if(input instanceof IFileEditorInput) { - input =3D XModelObjectEditorInput.checkInput(new FileEditorInput(((IF= ileEditorInput)input).getFile())); - } - } - } - if(showOption.isSelected(p)) { - showOption.run(); - } - } - = } = -class Option extends ServiceDialogOption { - = - public Option(String text) { - super(text); - } - = - public void run() throws XModelException { - Preference.SHOW_NATURE_WARNING.setValue("no"); //$NON-NLS-1$ - } -} - -class NatureOptionList { - //use extension point to avoid hardcode = - static String[][] natureOptionDescriptions =3D new String[][]{ - {"org.jboss.tools.jsf.jsfnature", //$NON-NLS-1$ - "JSF", = - "org.jboss.tools.jsf.ui", //$NON-NLS-1$ - "org.jboss.tools.jsf.ui.action.AddJSFNatureActionDelegate"}, //$NON-NLS= -1$ - {"org.jboss.tools.struts.strutsnature", //$NON-NLS-1$ - "Struts", - "org.jboss.tools.struts.ui", //$NON-NLS-1$ - "org.jboss.tools.struts.ui.internal.action.AddStrutsNatureActionDelegat= e" //$NON-NLS-1$ - }, - }; - static Map natureOptionDescriptionsMap =3D new HashMap(); - = - static { - for (int i =3D 0; i < natureOptionDescriptions.length; i++) { - natureOptionDescriptionsMap.put(natureOptionDescriptions[i][0], natureO= ptionDescriptions[i]); - } - } - = - public static String[] getAllNatures() { - String[] ns =3D new String[natureOptionDescriptions.length]; - for (int i =3D 0; i < ns.length; i++) ns[i] =3D natureOptionDescriptions= [i][0]; - return ns; - } - = - public static String[] getNatureDescription(String nature) { - return (String[])natureOptionDescriptionsMap.get(nature); - } -} - -class NatureOption extends ServiceDialogOption { - String plugin; - String actionClass; - IResource resource =3D null; - = - public NatureOption(String name, String plugin) { - super(MessageFormat.format("Add {0} Capabilities now", name)); - this.plugin =3D plugin; - } - = - public void setActionClass(String actionClass) { - this.actionClass =3D actionClass; - } - = - public void setResource(IResource resource) { - this.resource =3D resource; - } - = - public boolean register(Properties p, int k) { - if(Platform.getBundle(plugin) =3D=3D null) { - property =3D null; - return false; - } - return super.register(p, k); - } - - public void run() throws XModelException { - Bundle bundle =3D Platform.getBundle(plugin); - if(bundle =3D=3D null) return; - IActionDelegate delegate =3D null; - try { - delegate =3D (IActionDelegate)bundle.loadClass(actionClass).newInstance= (); - } catch (ClassNotFoundException e) { - //ignore - } catch (InstantiationException e) { - //ignore - } catch (IllegalAccessException e) { - //ignore - } - if(delegate =3D=3D null) return; - delegate.selectionChanged(null, new StructuredSelection(resource)); - delegate.run(null); - } - -} - - Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/editor/OpenEditorWizard.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/editor/OpenEditorWizard.java 2009-09-15 07:26:25 UTC (rev 17576) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/editor/OpenEditorWizard.java 2009-09-15 12:12:58 UTC (rev 17577) @@ -18,6 +18,7 @@ import org.jboss.tools.common.model.ServiceDialog; import org.jboss.tools.common.model.XModelException; import org.jboss.tools.common.model.XModelObject; +import org.jboss.tools.common.model.options.Preference; import org.jboss.tools.common.model.options.PreferenceModelUtilities; import org.jboss.tools.common.model.ui.ModelUIPlugin; import org.jboss.tools.common.model.ui.editor.IModelObjectEditorInput; @@ -42,7 +43,7 @@ if(id !=3D null && (id.length() =3D=3D 0 || id.equals("DefaultEditor"))= ) { //$NON-NLS-1$ id =3D null; } else { - boolean b =3D "yes".equals(PreferenceModelUtilities.getPreferenceModel= ().getByPath("%Options%/Struts Studio/Editors").getAttributeValue("useRedHa= tEditors")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + boolean b =3D "yes".equals(PreferenceModelUtilities.getPreferenceModel= ().getByPath(Preference.EDITOR_PATH).getAttributeValue("useRedHatEditors"))= ; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ if(!b) id =3D null; } IModelObjectEditorInput input =3D XModelObjectEditorInput.createInstanc= e(object); Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/texteditors/preferences/EditorsPreferencesPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/texteditors/preferences/EditorsPreferencesPage.java 2009-= 09-15 07:26:25 UTC (rev 17576) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/texteditors/preferences/EditorsPreferencesPage.java 2009-= 09-15 12:12:58 UTC (rev 17577) @@ -13,6 +13,7 @@ import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import org.eclipse.core.runtime.Platform; +import org.jboss.tools.common.model.options.Preference; import org.jboss.tools.common.model.ui.ModelUIPlugin; import org.jboss.tools.common.model.ui.preferences.XMOBasedPreferencesPage; import org.jboss.tools.common.model.ui.util.ModelUtilities; @@ -25,7 +26,7 @@ = public static final String EDITOR_PREFERENCES_ID =3D "org.jboss.tools.com= mon.xstudio.editors"; //$NON-NLS-1$ = - static String PATH =3D "%Options%/Struts Studio/Editors"; //$NON-NLS-1$ + static String PATH =3D Preference.EDITOR_PATH; = public EditorsPreferencesPage() { super(_getPreferenceModel().getByPath(PATH)); --===============8685647879557091375==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 08:14:21 2009 Content-Type: multipart/mixed; boundary="===============1813972395611012940==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17578 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/preferences. Date: Tue, 15 Sep 2009 08:14:21 -0400 Message-ID: <200909151214.n8FCELpL024714@svn01.web.mwc.hst.phx2.redhat.com> --===============1813972395611012940== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-15 08:14:21 -0400 (Tue, 15 Sep 2009) New Revision: 17578 Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/pr= eferences/VpePreference.java Log: https://jira.jboss.org/jira/browse/JBIDE-4885 Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/preferences/VpePreference.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/p= references/VpePreference.java 2009-09-15 12:12:58 UTC (rev 17577) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/p= references/VpePreference.java 2009-09-15 12:14:21 UTC (rev 17578) @@ -27,7 +27,7 @@ public static String ATT_ALWAYS_HIDE_SELECTION_BAR_WITHOUT_PROMT=3D"alway= s hide selection bar without prompt"; //$NON-NLS-1$ public static String ATT_SHOW_INVISIBLE_TAGS=3D"show non-visual tags"; //= $NON-NLS-1$ public static String SHOW_COMMENTS_VALUE; - public static String VPE_EDITOR_PATH =3D "%Options%/Struts Studio/Editors= /Visual Page Editor"; //$NON-NLS-1$ + public static String VPE_EDITOR_PATH =3D Preference.EDITOR_PATH + "/Visua= l Page Editor"; //$NON-NLS-1$ public static final Preference SHOW_COMMENTS =3D new VpePreference(VPE_ED= ITOR_PATH, ATT_SHOW_COMMENTS); public static final Preference SHOW_BORDER_FOR_UNKNOWN_TAGS =3D new VpePr= eference(VPE_EDITOR_PATH, ATT_SHOW_BORDER_FOR_UNKNOWN_TAGS); public static final Preference SHOW_BORDER_FOR_ALL_TAGS =3D new VpePrefer= ence(VPE_EDITOR_PATH, ATT_SHOW_BORDER_FOR_ALL_TAGS); --===============1813972395611012940==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 08:14:54 2009 Content-Type: multipart/mixed; boundary="===============5598275568298728954==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17579 - trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/preferences. Date: Tue, 15 Sep 2009 08:14:54 -0400 Message-ID: <200909151214.n8FCEsSe024786@svn01.web.mwc.hst.phx2.redhat.com> --===============5598275568298728954== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-15 08:14:54 -0400 (Tue, 15 Sep 2009) New Revision: 17579 Modified: trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/strut= s/ui/preferences/WebFlowTabbedPreferencesPage.java Log: https://jira.jboss.org/jira/browse/JBIDE-4885 Modified: trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tool= s/struts/ui/preferences/WebFlowTabbedPreferencesPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/stru= ts/ui/preferences/WebFlowTabbedPreferencesPage.java 2009-09-15 12:14:21 UTC= (rev 17578) +++ trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/stru= ts/ui/preferences/WebFlowTabbedPreferencesPage.java 2009-09-15 12:14:54 UTC= (rev 17579) @@ -10,6 +10,7 @@ *************************************************************************= *****/ = package org.jboss.tools.struts.ui.preferences; = +import org.jboss.tools.common.model.options.Preference; import org.jboss.tools.common.model.ui.preferences.*; import org.eclipse.ui.*; import org.jboss.tools.common.meta.constraint.impl.XAttributeConstraintALi= st; @@ -18,7 +19,7 @@ import org.jboss.tools.struts.ui.StrutsUIPlugin; = public class WebFlowTabbedPreferencesPage extends TabbedPreferencesPage im= plements IWorkbenchPreferencePage { - public static String STRUTS_EDITOR_PATH =3D "%Options%/Struts Studio/Edit= ors/Web Flow Diagram"; + public static String STRUTS_EDITOR_PATH =3D Preference.EDITOR_PATH + "/We= b Flow Diagram"; public static String ADD_PAGE_PATH =3D StrutsPreference.ADD_PAGE_PATH; = public WebFlowTabbedPreferencesPage() { --===============5598275568298728954==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 08:18:31 2009 Content-Type: multipart/mixed; boundary="===============1883751629796437031==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17580 - trunk/jst/plugins/org.jboss.tools.jst.web.tiles/src/org/jboss/tools/jst/web/tiles. Date: Tue, 15 Sep 2009 08:18:30 -0400 Message-ID: <200909151218.n8FCIUmD025483@svn01.web.mwc.hst.phx2.redhat.com> --===============1883751629796437031== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-15 08:18:30 -0400 (Tue, 15 Sep 2009) New Revision: 17580 Modified: trunk/jst/plugins/org.jboss.tools.jst.web.tiles/src/org/jboss/tools/jst/= web/tiles/TilesPreference.java Log: https://jira.jboss.org/jira/browse/JBIDE-4885 Modified: trunk/jst/plugins/org.jboss.tools.jst.web.tiles/src/org/jboss/too= ls/jst/web/tiles/TilesPreference.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.tiles/src/org/jboss/tools/jst= /web/tiles/TilesPreference.java 2009-09-15 12:14:54 UTC (rev 17579) +++ trunk/jst/plugins/org.jboss.tools.jst.web.tiles/src/org/jboss/tools/jst= /web/tiles/TilesPreference.java 2009-09-15 12:18:30 UTC (rev 17580) @@ -15,7 +15,7 @@ = public class TilesPreference extends WebPreference { = - public static final String TILES_DIAGRAM_PATH =3D "%Options%/Struts Stu= dio/Editors/Tiles Diagram"; //$NON-NLS-1$ + public static final String TILES_DIAGRAM_PATH =3D Preference.EDITOR_PAT= H + "/Tiles Diagram"; //$NON-NLS-1$ public static final Preference VERTICAL_SPACING =3D new TilesPreference(T= ILES_DIAGRAM_PATH, "verticalSpacing"); //$NON-NLS-1$ public static final Preference HORIZONTAL_SPACING =3D new TilesPreference= (TILES_DIAGRAM_PATH, "horizontalSpacing"); //$NON-NLS-1$ public static final Preference TILES_ALIGNMENT =3D new TilesPreference(TI= LES_DIAGRAM_PATH, "alignment"); //$NON-NLS-1$ --===============1883751629796437031==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 08:20:33 2009 Content-Type: multipart/mixed; boundary="===============2874428622973959463==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17581 - trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/preferences. Date: Tue, 15 Sep 2009 08:20:28 -0400 Message-ID: <200909151220.n8FCKS4T025970@svn01.web.mwc.hst.phx2.redhat.com> --===============2874428622973959463== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-15 08:20:28 -0400 (Tue, 15 Sep 2009) New Revision: 17581 Modified: trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/j= st/web/tiles/ui/preferences/TilesEditorTabbedPreferencesPage.java Log: https://jira.jboss.org/jira/browse/JBIDE-4885 Modified: trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/= tools/jst/web/tiles/ui/preferences/TilesEditorTabbedPreferencesPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/= jst/web/tiles/ui/preferences/TilesEditorTabbedPreferencesPage.java 2009-09-= 15 12:18:30 UTC (rev 17580) +++ trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/= jst/web/tiles/ui/preferences/TilesEditorTabbedPreferencesPage.java 2009-09-= 15 12:20:28 UTC (rev 17581) @@ -17,10 +17,11 @@ = import org.jboss.tools.common.model.XModel; import org.jboss.tools.common.model.XModelObject; +import org.jboss.tools.common.model.options.Preference; import org.jboss.tools.common.model.plugin.ModelPlugin; = public class TilesEditorTabbedPreferencesPage extends TabbedPreferencesPag= e implements IWorkbenchPreferencePage { - public static String TILES_EDITOR_PATH =3D "%Options%/Struts Studio/Edito= rs/Tiles Diagram"; //$NON-NLS-1$ + public static String TILES_EDITOR_PATH =3D Preference.EDITOR_PATH + "/Til= es Diagram"; //$NON-NLS-1$ = public TilesEditorTabbedPreferencesPage() { XModel model =3D getPreferenceModel(); = --===============2874428622973959463==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 08:24:57 2009 Content-Type: multipart/mixed; boundary="===============2573000272563719456==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17582 - trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts. Date: Tue, 15 Sep 2009 08:24:57 -0400 Message-ID: <200909151224.n8FCOvvW026475@svn01.web.mwc.hst.phx2.redhat.com> --===============2573000272563719456== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-15 08:24:57 -0400 (Tue, 15 Sep 2009) New Revision: 17582 Modified: trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/S= trutsPreference.java Log: https://jira.jboss.org/jira/browse/JBIDE-4885 Modified: trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/s= truts/StrutsPreference.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/= StrutsPreference.java 2009-09-15 12:20:28 UTC (rev 17581) +++ trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/= StrutsPreference.java 2009-09-15 12:24:57 UTC (rev 17582) @@ -30,7 +30,7 @@ = public static final Preference DEFAULT_STRUTS_IMPORT_SERVLET_VERSION =3D= new StrutsPreference(OPTIONS_IMPORT_PROJECT_PATH, "Servlet Version"); //$N= ON-NLS-1$ = - public static final String WEB_FLOW_DIAGRAM_PATH =3D "%Options%/Struts = Studio/Editors/Web Flow Diagram"; //$NON-NLS-1$ + public static final String WEB_FLOW_DIAGRAM_PATH =3D Preference.EDITOR_= PATH + "/Web Flow Diagram"; //$NON-NLS-1$ public static final Preference REMOVE_PAGE_AND_FILE =3D new StrutsPrefere= nce(WEB_FLOW_DIAGRAM_PATH, "removePageWithFile"); //$NON-NLS-1$ public static final Preference DO_NOT_SHOW_DIAGRAM =3D new StrutsPreferen= ce(WEB_FLOW_DIAGRAM_PATH, "doNotShowDiagram"); //$NON-NLS-1$ public static final Preference ENABLE_CONTROL_MODE_ON_TRANSITION_COMPLETE= D =3D new StrutsPreference(WEB_FLOW_DIAGRAM_PATH, "enableControlModeOnTrans= itionCompleted"); //$NON-NLS-1$ --===============2573000272563719456==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 08:25:40 2009 Content-Type: multipart/mixed; boundary="===============0387664578869143684==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17583 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor. Date: Tue, 15 Sep 2009 08:25:39 -0400 Message-ID: <200909151225.n8FCPd9f026837@svn01.web.mwc.hst.phx2.redhat.com> --===============0387664578869143684== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-15 08:25:39 -0400 (Tue, 15 Sep 2009) New Revision: 17583 Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/editor/ObjectMultiPageEditor.java Log: https://jira.jboss.org/jira/browse/JBIDE-4885 Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/editor/ObjectMultiPageEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/editor/ObjectMultiPageEditor.java 2009-09-15 12:24:57 UTC (rev 175= 82) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/editor/ObjectMultiPageEditor.java 2009-09-15 12:25:39 UTC (rev 175= 83) @@ -146,7 +146,7 @@ private void loadSelectedTab() { IFile file =3D getFile(); try { - if("yes".equals(PreferenceModelUtilities.getPreferenceModel().getByPath= ("%Options%/Struts Studio/Editors").getAttributeValue("selectSourceTab"))) = { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + if("yes".equals(PreferenceModelUtilities.getPreferenceModel().getByPath= (Preference.EDITOR_PATH).getAttributeValue("selectSourceTab"))) { //$NON-NL= S-1$ //$NON-NLS-2$ //$NON-NLS-3$ selectedPageIndex =3D getSourcePageIndex(); } else if(file =3D=3D null) { loadSelectedTabForStorage(); --===============0387664578869143684==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 08:26:35 2009 Content-Type: multipart/mixed; boundary="===============3629005187539499331==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17584 - trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf. Date: Tue, 15 Sep 2009 08:26:35 -0400 Message-ID: <200909151226.n8FCQZkb026965@svn01.web.mwc.hst.phx2.redhat.com> --===============3629005187539499331== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-15 08:26:34 -0400 (Tue, 15 Sep 2009) New Revision: 17584 Modified: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/JSFPrefere= nce.java Log: https://jira.jboss.org/jira/browse/JBIDE-4885 Modified: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/JSF= Preference.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/JSFPrefer= ence.java 2009-09-15 12:25:39 UTC (rev 17583) +++ trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/JSFPrefer= ence.java 2009-09-15 12:26:34 UTC (rev 17584) @@ -18,7 +18,7 @@ public static final String OPTIONS_JSF_PROJECT_PATH =3D OPTIONS_JSFSTUDIO= _PATH + "/Project"; //$NON-NLS-1$ public static final String OPTIONS_JSF_NEW_PROJECT_PATH =3D OPTIONS_JSF_P= ROJECT_PATH + "/New Project"; //$NON-NLS-1$ public static final String OPTIONS_JSF_IMPORT_PROJECT_PATH =3D OPTIONS_JS= F_PROJECT_PATH + "/Import Project"; //$NON-NLS-1$ - public static String JSF_EDITOR_PATH =3D "%Options%/Struts Studio/Editors= /JSF Flow Diagram"; //$NON-NLS-1$ + public static String JSF_EDITOR_PATH =3D Preference.EDITOR_PATH + "/JSF F= low Diagram"; //$NON-NLS-1$ public static String JSF_ADD_VIEW_PATH =3D JSF_EDITOR_PATH + "/Add View";= //$NON-NLS-1$ = public static final Preference USE_DEFAULT_JSF_PROJECT_ROOT =3D new JSFPr= eference(OPTIONS_JSF_NEW_PROJECT_PATH, "Use Default Path"); //$NON-NLS-1$ --===============3629005187539499331==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 08:58:14 2009 Content-Type: multipart/mixed; boundary="===============1945527647436138272==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17585 - in trunk/common/plugins/org.jboss.tools.common.model: src/org/jboss/tools/common/model/options and 1 other directory. Date: Tue, 15 Sep 2009 08:58:14 -0400 Message-ID: <200909151258.n8FCwEGg000324@svn01.web.mwc.hst.phx2.redhat.com> --===============1945527647436138272== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-15 08:58:14 -0400 (Tue, 15 Sep 2009) New Revision: 17585 Modified: trunk/common/plugins/org.jboss.tools.common.model/resources/meta/options= _general.xml trunk/common/plugins/org.jboss.tools.common.model/resources/meta/studio_= eclipse_option.meta trunk/common/plugins/org.jboss.tools.common.model/resources/meta/studio_= option.meta trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/options/Preference.java Log: https://jira.jboss.org/jira/browse/JBIDE-4885 Node 'Editors' moved to Option root Modified: trunk/common/plugins/org.jboss.tools.common.model/resources/meta/= options_general.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/resources/meta/option= s_general.xml 2009-09-15 12:26:34 UTC (rev 17584) +++ trunk/common/plugins/org.jboss.tools.common.model/resources/meta/option= s_general.xml 2009-09-15 12:58:14 UTC (rev 17585) @@ -4431,6 +4431,10 @@ + + + - - - \ No newline at end of file Modified: trunk/common/plugins/org.jboss.tools.common.model/resources/meta/= studio_eclipse_option.meta =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/resources/meta/studio= _eclipse_option.meta 2009-09-15 12:26:34 UTC (rev 17584) +++ trunk/common/plugins/org.jboss.tools.common.model/resources/meta/studio= _eclipse_option.meta 2009-09-15 12:58:14 UTC (rev 17585) @@ -193,52 +193,6 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1139,7 +1093,6 @@ - @@ -1373,6 +1326,16 @@
+ + + + + + + + + + Modified: trunk/common/plugins/org.jboss.tools.common.model/resources/meta/= studio_option.meta =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/resources/meta/studio= _option.meta 2009-09-15 12:26:34 UTC (rev 17584) +++ trunk/common/plugins/org.jboss.tools.common.model/resources/meta/studio= _option.meta 2009-09-15 12:58:14 UTC (rev 17585) @@ -1,5 +1,6 @@ - + @@ -22,17 +23,12 @@ - - - - - - + - - @@ -95,6 +89,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -105,13 +139,9 @@ - - - - - + @@ -156,25 +186,20 @@ - - - - - - + - + @@ -185,7 +210,9 @@ - + + + @@ -194,11 +221,9 @@ - - @@ -215,11 +240,9 @@ - - @@ -228,10 +251,7 @@ - - - + name=3D"location filters" visibility=3D"false" xmlname=3D"LOCATION_FIL= TERS"/> @@ -262,19 +282,12 @@ - - - - + name=3D"browser prefix" xmlname=3D"BROWSER_PREFIX"/> - - - + name=3D"uddi urls" visibility=3D"false" xmlname=3D"UDDI_URLS"/> @@ -289,11 +302,9 @@ - - @@ -310,10 +321,7 @@ - - - - + Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/t= ools/common/model/options/Preference.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/options/Preference.java 2009-09-15 12:26:34 UTC (rev 17584) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/options/Preference.java 2009-09-15 12:58:14 UTC (rev 17585) @@ -22,7 +22,7 @@ private String option; private String attributeName; public static final String OPTIONS_PATH =3D "%Options%"; //$NON-NLS-1$ - public static String EDITOR_PATH =3D "%Options%/Struts Studio/Editors"; /= /$NON-NLS-1$ + public static String EDITOR_PATH =3D "%Options%/Editors"; //$NON-NLS-1$ public static final Preference SHOW_NATURE_WARNING =3D new Preference(EDI= TOR_PATH, "natureWarning"); //$NON-NLS-1$ = protected Preference(String optionPath, String attributeName) { --===============1945527647436138272==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 10:29:50 2009 Content-Type: multipart/mixed; boundary="===============6833297556530535492==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17586 - in trunk/jst: plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/common and 5 other directories. Date: Tue, 15 Sep 2009 10:29:50 -0400 Message-ID: <200909151429.n8FEToWJ021746@svn01.web.mwc.hst.phx2.redhat.com> --===============6833297556530535492== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: sdzmitrovich Date: 2009-09-15 10:29:50 -0400 (Tue, 15 Sep 2009) New Revision: 17586 Added: trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConten= t/pages/JBIDE/4850/ trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConten= t/pages/JBIDE/4850/cssViewTest.jsp trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css= /test/jbide/ExtendingCSSViewTest_JBIDE4850.java Modified: trunk/jst/plugins/org.jboss.tools.jst.css/META-INF/MANIFEST.MF trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/CSSSelectionListener.java trunk/jst/tests/org.jboss.tools.jst.css.test/META-INF/MANIFEST.MF trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css= /test/AbstractCSSViewTest.java trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css= /test/CSSAllTests.java trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css= /test/CSSViewTest.java trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css= /test/jbide/InputFractionalValueTest_JBIDE4790.java trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css= /test/jbide/SelectionLosingByPropertySheet_JBIDE4791.java Log: JBIDE-4850 Modified: trunk/jst/plugins/org.jboss.tools.jst.css/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/META-INF/MANIFEST.MF 2009-09-= 15 12:58:14 UTC (rev 17585) +++ trunk/jst/plugins/org.jboss.tools.jst.css/META-INF/MANIFEST.MF 2009-09-= 15 14:29:50 UTC (rev 17586) @@ -19,6 +19,7 @@ Bundle-RequiredExecutionEnvironment: J2SE-1.5 Bundle-ActivationPolicy: lazy Export-Package: org.jboss.tools.jst.css, + org.jboss.tools.jst.css.common, org.jboss.tools.jst.css.messages, org.jboss.tools.jst.css.properties, org.jboss.tools.jst.css.view Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/common/CSSSelectionListener.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSSelectionListener.java 2009-09-15 12:58:14 UTC (rev 17585) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSSelectionListener.java 2009-09-15 14:29:50 UTC (rev 17586) @@ -59,11 +59,15 @@ private void startListening() { PlatformUI.getWorkbench().getActiveWorkbenchWindow() .getSelectionService().addPostSelectionListener(this); +// PlatformUI.getWorkbench().getActiveWorkbenchWindow() +// .getSelectionService().addSelectionListener(this); } = private void stopListening() { PlatformUI.getWorkbench().getActiveWorkbenchWindow() .getSelectionService().removePostSelectionListener(this); + // PlatformUI.getWorkbench().getActiveWorkbenchWindow() + // .getSelectionService().addSelectionListener(this); = } = Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/META-INF/MANIFEST.MF 2009-= 09-15 12:58:14 UTC (rev 17585) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/META-INF/MANIFEST.MF 2009-= 09-15 14:29:50 UTC (rev 17586) @@ -20,7 +20,10 @@ org.jboss.tools.jst.css, org.eclipse.core.databinding, org.eclipse.ui.views.properties.tabbed, - org.jboss.tools.jst.jsp + org.jboss.tools.jst.jsp, + org.eclipse.wst.xml.core, + org.jboss.tools.common.text.ext, + org.jboss.tools.jst.web Bundle-Vendor: %Bundle-Vendor.0 Bundle-Localization: plugin Bundle-ActivationPolicy: lazy Added: trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebCo= ntent/pages/JBIDE/4850/cssViewTest.jsp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConte= nt/pages/JBIDE/4850/cssViewTest.jsp (rev 0) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConte= nt/pages/JBIDE/4850/cssViewTest.jsp 2009-09-15 14:29:50 UTC (rev 17586) @@ -0,0 +1,16 @@ +<%@ taglib uri=3D"http://java.sun.com/jsf/core" prefix=3D"f"%> +<%@ taglib uri=3D"http://java.sun.com/jsf/html" prefix=3D"h"%> + + + + + + + + + + + + + + \ No newline at end of file Property changes on: trunk/jst/tests/org.jboss.tools.jst.css.test/resources= /cssTest/WebContent/pages/JBIDE/4850/cssViewTest.jsp ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + native Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/= jst/css/test/AbstractCSSViewTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/AbstractCSSViewTest.java 2009-09-15 12:58:14 UTC (rev 17585) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/AbstractCSSViewTest.java 2009-09-15 14:29:50 UTC (rev 17586) @@ -21,12 +21,17 @@ import org.eclipse.core.runtime.CoreException; import org.eclipse.ui.IEditorPart; import org.eclipse.ui.IViewPart; +import org.eclipse.ui.IWorkbenchPage; +import org.eclipse.ui.IWorkbenchPart; import org.eclipse.ui.PartInitException; import org.eclipse.ui.PlatformUI; import org.eclipse.ui.part.FileEditorInput; import org.eclipse.wst.sse.core.StructuredModelManager; import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel; import org.eclipse.wst.sse.ui.StructuredTextEditor; +import org.jboss.tools.jst.css.properties.CSSPropertyPage; +import org.jboss.tools.jst.css.view.CSSEditorView; +import org.jboss.tools.test.util.JobUtils; = /** * @author Sergey Dzmitrovich @@ -43,6 +48,7 @@ public static final String CSS_EDITOR_ID =3D "org.eclipse.wst.css.core.cs= ssource.source"; //$NON-NLS-1$ public static final String CSS_PERSPECTIVE =3D "org.jboss.tools.jst.cssPe= rspective"; //$NON-NLS-1$ public static final String IMPORT_PROJECT_NAME =3D "cssTest"; //$NON-NLS-= 1$ + public static final String CSS_PREVIEW_SELECTED_OBJECT =3D "selectedObjec= t"; //$NON-NLS-1$ = /** * = @@ -88,13 +94,19 @@ public void setSelection(StructuredTextEditor textEditor, int offset, int length) { = - PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage() - .activate(textEditor); + activatePart(textEditor); = textEditor.selectAndReveal(offset, length); = + JobUtils.delay(1000); + } = + protected void activatePart(IWorkbenchPart part) { + PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage() + .activate(part); + } + /** * = */ @@ -118,6 +130,23 @@ = /** * = + * @param viewId + * @return + * @throws PartInitException + */ + public void hideView(String viewId) throws PartInitException { + IWorkbenchPage activePage =3D PlatformUI.getWorkbench() + .getActiveWorkbenchWindow().getActivePage(); + + IViewPart viewPart =3D activePage.findView(viewId); + if (viewPart !=3D null) + PlatformUI.getWorkbench().getActiveWorkbenchWindow() + .getActivePage().hideView(viewPart); + + } + + /** + * = * @param file * @return */ @@ -146,6 +175,18 @@ return getFieldValue(object, object.getClass(), fieldName); } = + protected Object getSelectedObject(CSSEditorView view) + throws SecurityException, IllegalArgumentException, + NoSuchFieldException, IllegalAccessException { + + CSSPropertyPage page =3D (CSSPropertyPage) view.getCurrentPage(); + + assertNotNull(page); + + return getFieldValue(page, CSS_PREVIEW_SELECTED_OBJECT); + + } + /** * = * @param object Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/= jst/css/test/CSSAllTests.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/CSSAllTests.java 2009-09-15 12:58:14 UTC (rev 17585) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/CSSAllTests.java 2009-09-15 14:29:50 UTC (rev 17586) @@ -14,6 +14,7 @@ import junit.framework.Test; import junit.framework.TestSuite; = +import org.jboss.tools.jst.css.test.jbide.ExtendingCSSViewTest_JBIDE4850; import org.jboss.tools.jst.css.test.jbide.InputFractionalValueTest_JBIDE47= 90; import org.jboss.tools.jst.css.test.jbide.SelectionLosingByPropertySheet_J= BIDE4791; import org.jboss.tools.test.util.ProjectImportTestSetup; @@ -32,9 +33,10 @@ = TestSuite suite =3D new TestSuite("Tests for CSS views"); //$NON-NLS-1$ // $JUnit-BEGIN$ -// suite.addTestSuite(CSSViewTest.class); -// suite.addTestSuite(InputFractionalValueTest_JBIDE4790.class); + suite.addTestSuite(CSSViewTest.class); + suite.addTestSuite(InputFractionalValueTest_JBIDE4790.class); suite.addTestSuite(SelectionLosingByPropertySheet_JBIDE4791.class); + suite.addTestSuite(ExtendingCSSViewTest_JBIDE4850.class); // $JUnit-END$ = return new ProjectImportTestSetup( Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/= jst/css/test/CSSViewTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/CSSViewTest.java 2009-09-15 12:58:14 UTC (rev 17585) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/CSSViewTest.java 2009-09-15 14:29:50 UTC (rev 17586) @@ -30,6 +30,7 @@ import org.eclipse.wst.css.core.internal.provisional.document.ICSSModel; import org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleShe= et; import org.eclipse.wst.sse.ui.StructuredTextEditor; +import org.jboss.tools.jst.css.common.StyleContainer; import org.jboss.tools.jst.css.properties.CSSPropertyPage; import org.jboss.tools.jst.css.view.CSSEditorView; import org.jboss.tools.jst.css.view.CSSPreview; @@ -43,12 +44,12 @@ */ public class CSSViewTest extends AbstractCSSViewTest { = - public static final String TEST_PAGE_NAME =3D "test.css"; //$NON-NLS-1$ = + public static final String SELECTED_OBJECT_FIELD =3D "selectedObject"; //= $NON-NLS-1$ + public static final int COUNT_TABS =3D 5; = - /** * = * @throws PartInitException @@ -75,10 +76,6 @@ = assertNotNull(view); = - CSSPropertyPage page =3D (CSSPropertyPage) view.getCurrentPage(); - - assertNotNull(page); - ICSSModel model =3D (ICSSModel) getStructuredModel(pageFile); = assertNotNull(model); @@ -96,18 +93,18 @@ = setSelection(editor, offset, 0); = - JobUtils.delay(1000); = - Object selectedObject =3D getFieldValue(page, "selectedObject"); //$NON-= NLS-1$ + Object selectedObject =3D getSelectedObject(view); + assertTrue(selectedObject instanceof StyleContainer); + assertEquals(cssRule, ((StyleContainer) selectedObject) + .getStyleObject()); = setSelection(editor, 0, 0); = - JobUtils.delay(1000); = - selectedObject =3D getFieldValue(page, "selectedObject"); //$NON-NLS-1$ + selectedObject =3D getSelectedObject(view); + assertNull(selectedObject); = - assertNotSame(cssRule, selectedObject); - } = public void testEditorViewTabs() throws CoreException, SecurityException, @@ -149,7 +146,6 @@ = setSelection(editor, offset, 0); = - JobUtils.delay(1000); = TabbedPropertyRegistry registry =3D (TabbedPropertyRegistry) getFieldVal= ue( page, TabbedPropertySheetPage.class, "registry");//$NON-NLS-1$ @@ -214,7 +210,6 @@ = setSelection(editor, offset, 0); = - JobUtils.delay(1000); = assertFalse(browserPage.equals(view.generateBrowserPage())); = Added: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst= /css/test/jbide/ExtendingCSSViewTest_JBIDE4850.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/ExtendingCSSViewTest_JBIDE4850.java (r= ev 0) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/ExtendingCSSViewTest_JBIDE4850.java 2009-09-15 14:29:50 UTC (r= ev 17586) @@ -0,0 +1,124 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jst.css.test.jbide; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion; +import org.eclipse.wst.sse.ui.StructuredTextEditor; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel; +import org.jboss.tools.jst.css.common.StyleContainer; +import org.jboss.tools.jst.css.test.AbstractCSSViewTest; +import org.jboss.tools.jst.css.view.CSSEditorView; +import org.jboss.tools.test.util.JobUtils; +import org.w3c.dom.Element; + +/** + * @author Sergey Dzmitrovich + * = + */ +public class ExtendingCSSViewTest_JBIDE4850 extends AbstractCSSViewTest { + + public static final String TEST_PAGE_NAME =3D "JBIDE/4850/cssViewTest.jsp= "; //$NON-NLS-1$ + + /** jsp editor id */ + public static final String JSP_EDITOR_ID =3D "org.eclipse.jst.jsp.core.js= psource.source";//"org.jboss.tools.jst.jsp.jspeditor.JSPTextEditor"; //$NON= -NLS-1$ + + public static final String TESTED_ELEMENT_ID =3D "cssViewTest"; //$NON-NL= S-1$ + + public static final String TESTED_STYLE_ID =3D "styleID"; //$NON-NLS-1$ + + public void testInlineStyleEditing() throws CoreException, + SecurityException, IllegalArgumentException, NoSuchFieldException, + IllegalAccessException { + + IFile pageFile =3D getComponentPath(TEST_PAGE_NAME, getProjectName()); + + assertNotNull(pageFile); + + StructuredTextEditor editor =3D (StructuredTextEditor) openEditor( + pageFile, JSP_EDITOR_ID); + + JobUtils.waitForIdle(); + + assertNotNull(editor); + + CSSEditorView view =3D (CSSEditorView) openView(CSS_EDITOR_VIEW); + + assertNotNull(view); + + IDOMModel model =3D (IDOMModel) getStructuredModel(pageFile); + + assertNotNull(model); + + IDOMDocument document =3D model.getDocument(); + + assertNotNull(document); + + Element element =3D document.getElementById(TESTED_ELEMENT_ID); + + assertNotNull(element); + + int offset =3D ((IndexedRegion) element).getStartOffset(); + + setSelection(editor, offset, 0); + + Object selectedObject =3D getSelectedObject(view); + + assertTrue(selectedObject instanceof StyleContainer); + + assertSame(element, ((StyleContainer) selectedObject).getStyleObject()); + + } + + public void testStyleTagEditing() throws CoreException, SecurityException, + IllegalArgumentException, NoSuchFieldException, + IllegalAccessException { + + IFile pageFile =3D getComponentPath(TEST_PAGE_NAME, getProjectName()); + + assertNotNull(pageFile); + + StructuredTextEditor editor =3D (StructuredTextEditor) openEditor( + pageFile, JSP_EDITOR_ID); + + JobUtils.waitForIdle(); + + assertNotNull(editor); + + CSSEditorView view =3D (CSSEditorView) openView(CSS_EDITOR_VIEW); + + assertNotNull(view); + + IDOMModel model =3D (IDOMModel) getStructuredModel(pageFile); + + assertNotNull(model); + + IDOMDocument document =3D model.getDocument(); + + assertNotNull(document); + + Element element =3D document.getElementById(TESTED_STYLE_ID); + + assertNotNull(element); + + int offset =3D ((IDOMElement) element).getStartEndOffset(); + + setSelection(editor, offset, 0); + + Object selectedObject =3D getSelectedObject(view); + + assertTrue(selectedObject instanceof StyleContainer); + + } +} Property changes on: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/j= boss/tools/jst/css/test/jbide/ExtendingCSSViewTest_JBIDE4850.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + native Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/= jst/css/test/jbide/InputFractionalValueTest_JBIDE4790.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/InputFractionalValueTest_JBIDE4790.java 2009-09-15 12:58:14 UT= C (rev 17585) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/InputFractionalValueTest_JBIDE4790.java 2009-09-15 14:29:50 UT= C (rev 17586) @@ -111,7 +111,7 @@ newTestedValue); = } catch (DOMException e) { - fail("Changing of attribute's value leads to DOMException. Probably it = is regression of JBIDE-4790 "); //$NON-NLS-1$ + fail("Changing of attribute's value leads to DOMException. Probably it = is problem concerned with of JBIDE-4790 "); //$NON-NLS-1$ } testedValue =3D declaration.getPropertyValue(TEST_CSS_ATTRIBUTE_NAME); = Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/= jst/css/test/jbide/SelectionLosingByPropertySheet_JBIDE4791.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/SelectionLosingByPropertySheet_JBIDE4791.java 2009-09-15 12:58= :14 UTC (rev 17585) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/SelectionLosingByPropertySheet_JBIDE4791.java 2009-09-15 14:29= :50 UTC (rev 17586) @@ -82,9 +82,9 @@ .getFirstElement()); = CSSEditorView view =3D (CSSEditorView) openView(CSS_EDITOR_VIEW); - = - JobUtils.delay(2000); = + JobUtils.delay(1000); + selection =3D (ISelection) getFieldValue(propertySheet, SELECTION_FIELD_NAME); = --===============6833297556530535492==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 10:54:19 2009 Content-Type: multipart/mixed; boundary="===============2997398118455008710==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17587 - trunk/struts/plugins/org.jboss.tools.struts. Date: Tue, 15 Sep 2009 10:54:19 -0400 Message-ID: <200909151454.n8FEsJhA026524@svn01.web.mwc.hst.phx2.redhat.com> --===============2997398118455008710== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-15 10:54:19 -0400 (Tue, 15 Sep 2009) New Revision: 17587 Modified: trunk/struts/plugins/org.jboss.tools.struts/Preferences.xml Log: Modified: trunk/struts/plugins/org.jboss.tools.struts/Preferences.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts/Preferences.xml 2009-09-15 = 14:29:50 UTC (rev 17586) +++ trunk/struts/plugins/org.jboss.tools.struts/Preferences.xml 2009-09-15 = 14:54:19 UTC (rev 17587) @@ -1,6 +1,13 @@ + + + @@ -68,13 +75,6 @@ NAME=3D"Default Error Messages" SCOPE=3D"project" text=3D"errors.req= uired=3D{0} is required.\n\nerrors.minlength=3D{0} can not be less than {1}= characters.\nerrors.maxlength=3D{0} can not be greater than {1} characters= .\nerrors.invalid=3D{0} is invalid.\n \nerrors.byte=3D{0} must be a byte.\n= errors.short=3D{0} must be a short.\nerrors.integer=3D{0} must be an intege= r.\nerrors.long=3D{0} must be a long.\nerrors.float=3D{0} must be a float.\= nerrors.double=3D{0} must be a double.\n \nerrors.date=3D{0} is not a date.= \nerrors.range=3D{0} is not in the range {1} through {2}.\nerrors.creditcar= d=3D{0} is an invalid credit card number.\nerrors.email=3D{0} is an invalid= e-mail address.\n"/> - - - --===============2997398118455008710==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 11:02:31 2009 Content-Type: multipart/mixed; boundary="===============8595291632845890993==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17588 - in trunk/seam/plugins: org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/search and 1 other directory. Date: Tue, 15 Sep 2009 11:02:31 -0400 Message-ID: <200909151502.n8FF2Vna028239@svn01.web.mwc.hst.phx2.redhat.com> --===============8595291632845890993== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dazarov Date: 2009-09-15 11:02:30 -0400 (Tue, 15 Sep 2009) New Revision: 17588 Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/refactoring/SeamRefactorSearcher.java trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/refactoring/SeamRenameMethodParticipant.java trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/s= earch/SeamELReferencesQueryParticipant.java Log: https://jira.jboss.org/jira/browse/JBIDE-4856 Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/refactoring/SeamRefactorSearcher.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java 2009-09-15 14:54:19 UTC = (rev 17587) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java 2009-09-15 15:02:30 UTC = (rev 17588) @@ -253,10 +253,10 @@ if(expression !=3D null){ if(expression instanceof ELPropertyInvocation){ ELPropertyInvocation pi =3D (ELPropertyInvocation)expression; - match(file, offset+pi.getStartPosition(), pi.getName().getStart()+p= i.getName().getLength()-pi.getStartPosition()); + match(file, offset+pi.getName().getStart(), pi.getName().getLength(= )); }else if(expression instanceof ELMethodInvocation){ ELMethodInvocation mi =3D (ELMethodInvocation)expression; - match(file, offset+mi.getStartPosition(), mi.getName().getStart()+m= i.getName().getLength()-mi.getStartPosition()); + match(file, offset+mi.getName().getStart(), mi.getName().getLength(= )); } } } @@ -325,12 +325,16 @@ protected abstract void match(IFile file, int offset, int length); = public static String getPropertyName(String methodName){ - if(methodName.startsWith(GET) || methodName.startsWith(SET)) - return methodName.substring(3).toLowerCase(); + if(methodName.startsWith(GET) || methodName.startsWith(SET)){ + String name =3D methodName.substring(3); + return name.substring(0, 1).toLowerCase()+name.substring(1); + } = - if(methodName.startsWith(IS)) - return methodName.substring(2).toLowerCase(); + if(methodName.startsWith(IS)){ + String name =3D methodName.substring(2); + return name.substring(0, 1).toLowerCase()+name.substring(1); + } = - return methodName.toLowerCase(); + return methodName; } } Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/refactoring/SeamRenameMethodParticipant.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRenameMethodParticipant.java 2009-09-15 14:54:= 19 UTC (rev 17587) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRenameMethodParticipant.java 2009-09-15 15:02:= 30 UTC (rev 17588) @@ -10,33 +10,52 @@ ************************************************************************= ******/ package org.jboss.tools.seam.internal.core.refactoring; = +import java.util.ArrayList; + import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.OperationCanceledException; import org.eclipse.jdt.core.IMethod; import org.eclipse.ltk.core.refactoring.Change; +import org.eclipse.ltk.core.refactoring.CompositeChange; import org.eclipse.ltk.core.refactoring.RefactoringStatus; +import org.eclipse.ltk.core.refactoring.TextFileChange; import org.eclipse.ltk.core.refactoring.participants.CheckConditionsContex= t; import org.eclipse.ltk.core.refactoring.participants.RenameParticipant; +import org.eclipse.ltk.internal.core.refactoring.Messages; +import org.eclipse.text.edits.MultiTextEdit; +import org.eclipse.text.edits.ReplaceEdit; +import org.eclipse.text.edits.TextEdit; +import org.jboss.tools.common.el.core.model.ELInvocationExpression; +import org.jboss.tools.common.el.core.model.ELMethodInvocation; +import org.jboss.tools.common.el.core.model.ELPropertyInvocation; +import org.jboss.tools.seam.core.SeamCoreMessages; = public class SeamRenameMethodParticipant extends RenameParticipant{ private IMethod method; private String oldName; private String newName; private SeamRenameMethodSearcher searcher; + private RefactoringStatus status; + private CompositeChange rootChange; + private TextFileChange lastChange; + private ArrayList keys =3D new ArrayList(); = = @Override public RefactoringStatus checkConditions(IProgressMonitor pm, CheckConditionsContext context) throws OperationCanceledException { - return null; + searcher.findELReferences(); + = + return status; } = @Override public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException { - return null; + return rootChange; } = @Override @@ -47,16 +66,49 @@ @Override protected boolean initialize(Object element) { if(element instanceof IMethod){ + status =3D new RefactoringStatus(); + = + rootChange =3D new CompositeChange(""); method =3D (IMethod)element; - oldName =3D method.getElementName(); - newName =3D getArguments().getNewName(); = + oldName =3D SeamRenameMethodSearcher.getPropertyName(method.getElementN= ame()); + newName =3D SeamRenameMethodSearcher.getPropertyName(getArguments().get= NewName()); searcher =3D new SeamRenameMethodSearcher((IFile)method.getResource(), = oldName); return true; } return false; } = + protected TextFileChange getChange(IFile file){ + if(lastChange !=3D null && lastChange.getFile().equals(file)) + return lastChange; + = + for(int i=3D0; i < rootChange.getChildren().length; i++){ + TextFileChange change =3D (TextFileChange)rootChange.getChildren()[i]; + if(change.getFile().equals(file)){ + lastChange =3D change; + return lastChange; + } + } + lastChange =3D new TextFileChange(file.getName(), file); + MultiTextEdit root =3D new MultiTextEdit(); + lastChange.setEdit(root); + rootChange.add(lastChange); + = + return lastChange; + } + = + private void change(IFile file, int offset, int length, String text){ + //System.out.println("change file - "+file.getFullPath()+" offset - "+of= fset+" len - "+length+" text <"+text+">"); + String key =3D file.getFullPath().toString()+" "+offset; + if(!keys.contains(key)){ + TextFileChange change =3D getChange(file); + TextEdit edit =3D new ReplaceEdit(offset, length, text); + //change.addEdit(edit); + keys.add(key); + } + } + = class SeamRenameMethodSearcher extends SeamRefactorSearcher{ public SeamRenameMethodSearcher(IFile file, String name){ super(file, name); @@ -64,11 +116,37 @@ = @Override protected boolean isFileCorrect(IFile file) { - return false; + if(!file.isSynchronized(IResource.DEPTH_ZERO)){ + status.addFatalError(Messages.format(SeamCoreMessages.SEAM_RENAME_PROC= ESSOR_OUT_OF_SYNC_FILE, file.getFullPath().toString())); + return false; + }else if(file.isPhantom()){ + status.addFatalError(Messages.format(SeamCoreMessages.SEAM_RENAME_PROC= ESSOR_ERROR_PHANTOM_FILE, file.getFullPath().toString())); + return false; + }else if(file.isReadOnly()){ + status.addFatalError(Messages.format(SeamCoreMessages.SEAM_RENAME_PROC= ESSOR_ERROR_READ_ONLY_FILE, file.getFullPath().toString())); + return false; + } + return true; } + = + protected ELInvocationExpression findComponentReference(ELInvocationExpr= ession invocationExpression){ + ELInvocationExpression invExp =3D invocationExpression; + while(invExp !=3D null){ + if(invExp instanceof ELMethodInvocation || invExp instanceof ELPropert= yInvocation){ + if(invExp.getMemberName() !=3D null && invExp.getMemberName().equals(= propertyName)) + return invExp; + else + invExp =3D invExp.getLeft(); + }else{ + invExp =3D invExp.getLeft(); + } + } + return null; + } = @Override protected void match(IFile file, int offset, int length) { + change(file, offset, length, newName); } } = Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/se= am/ui/search/SeamELReferencesQueryParticipant.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= search/SeamELReferencesQueryParticipant.java 2009-09-15 14:54:19 UTC (rev 1= 7587) +++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= search/SeamELReferencesQueryParticipant.java 2009-09-15 15:02:30 UTC (rev 1= 7588) @@ -93,7 +93,7 @@ ELInvocationExpression invExp =3D invocationExpression; while(invExp !=3D null){ if(invExp instanceof ELMethodInvocation || invExp instanceof ELPropert= yInvocation){ - if(invExp.getMemberName() !=3D null && invExp.getMemberName().equalsI= gnoreCase(propertyName)) + if(invExp.getMemberName() !=3D null && invExp.getMemberName().equals(= propertyName)) return invExp; else invExp =3D invExp.getLeft(); --===============8595291632845890993==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 11:11:24 2009 Content-Type: multipart/mixed; boundary="===============7802102969468560644==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17591 - in trunk/jsf/plugins/org.jboss.tools.jsf: resources/help and 1 other directory. Date: Tue, 15 Sep 2009 11:11:24 -0400 Message-ID: <200909151511.n8FFBOBM030782@svn01.web.mwc.hst.phx2.redhat.com> --===============7802102969468560644== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-15 11:11:23 -0400 (Tue, 15 Sep 2009) New Revision: 17591 Modified: trunk/jsf/plugins/org.jboss.tools.jsf/Preferences.xml trunk/jsf/plugins/org.jboss.tools.jsf/resources/help/keys-jsf.properties trunk/jsf/plugins/org.jboss.tools.jsf/resources/help/keys-jsf_ja.propert= ies Log: https://jira.jboss.org/jira/browse/JBIDE-4885 Extension point added and eclipse options splitted between common and jst Modified: trunk/jsf/plugins/org.jboss.tools.jsf/Preferences.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf/Preferences.xml 2009-09-15 15:10:= 31 UTC (rev 17590) +++ trunk/jsf/plugins/org.jboss.tools.jsf/Preferences.xml 2009-09-15 15:11:= 23 UTC (rev 17591) @@ -1,6 +1,13 @@ + + + @@ -68,13 +75,6 @@ NAME=3D"Default Error Messages" SCOPE=3D"project" text=3D"errors.req= uired=3D{0} is required.\n\nerrors.minlength=3D{0} can not be less than {1}= characters.\nerrors.maxlength=3D{0} can not be greater than {1} characters= .\nerrors.invalid=3D{0} is invalid.\n \nerrors.byte=3D{0} must be a byte.\n= errors.short=3D{0} must be a short.\nerrors.integer=3D{0} must be an intege= r.\nerrors.long=3D{0} must be a long.\nerrors.float=3D{0} must be a float.\= nerrors.double=3D{0} must be a double.\n \nerrors.date=3D{0} is not a date.= \nerrors.range=3D{0} is not in the range {1} through {2}.\nerrors.creditcar= d=3D{0} is an invalid credit card number.\nerrors.email=3D{0} is an invalid= e-mail address.\n"/> - - - Modified: trunk/jsf/plugins/org.jboss.tools.jsf/resources/help/keys-jsf.pro= perties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf/resources/help/keys-jsf.propertie= s 2009-09-15 15:10:31 UTC (rev 17590) +++ trunk/jsf/plugins/org.jboss.tools.jsf/resources/help/keys-jsf.propertie= s 2009-09-15 15:11:23 UTC (rev 17591) @@ -661,3 +661,43 @@ FaceletTaglibConverter_Properties.Title=3DFacelet Converter FaceletTaglibValidator_Properties.Title=3DFacelet Validator FaceletTaglibSource_Properties.Title=3DFacelet Tag Source + +# New Eclipse4Web JSF Project wizard +newJSFLightProjectPage1_introduction=3DThe Create New Project Wizard is us= ed for creating a brand new project. If you already have a pre-existing pro= ject, just use the Import Project Wizard to start working with it in Eclips= e4Web. +newJSFLightProjectPage1_name =3D Project Name +newJSFLightProjectPage1_location =3D Location +newJSFLightProjectPage1_use_default_path =3D Use default path +newJSFLightProjectPage1_version =3D JSF Environment +newJSFLightProjectPage1_template =3D Template + +newJSFLightProjectPage1_specifyProjectName =3D Specify Project Name +newJSFLightProjectPage1_specifyLocation =3D Specify location +newJSFLightProjectPage1_locationError =3D Location Error +newJSFLightProjectPage1_projectExistsMessage =3D Project already exists + +# New JSF Project wizard +NEW_JSF_PROJECT_WIZARD_WINDOW_TITLE =3D New JSF Project +NEW_JSF_PROJECT_WIZARD_CREATE_STRUTS_PROJECT =3D Create JSF Project + +newJSFProjectPage1_introduction=3DThe Create New Project Wizard is used fo= r creating a brand new project. If you already have a pre-existing project,= just use the Import Project Wizard to start working with it in JBoss Tools. +newJSFProjectPage1_name =3D Project Name +newJSFProjectPage1_location =3D Location +newJSFProjectPage1_use_default_path =3D Use default path +newJSFProjectPage1_version =3D JSF Environment +newJSFProjectPage1_template =3D Template + +newJSFProjectPage1_specifyProjectName =3D Specify Project Name +newJSFProjectPage1_specifyLocation =3D Specify location +newJSFProjectPage1_locationError =3D Location Error +newJSFProjectPage1_projectExistsMessage =3D Project already exists +# Errors +NewJSFProjectWizard.CannotCreateLocation.WindowTitle =3D Error +NewJSFProjectWizard.CannotCreateLocation.ErrorMessage =3D Cannot create sp= ecify location + +org.jboss.tools.jsf.ui.wizard.project.ImportJSFWarWizard.mainPageTitle=3DJ= SF project + +IMPORT_JSF_PROJECT_WIZARD_WINDOW_TITLE =3D Import JSF Project +ADD_JSF_NATURE =3D Add JSF Capabilities + +SharableImportJSFProject.Register_Web_Context_in_server.xml=3DRegister Web= Context in server.xml +SharableNewJSFProject.Register_Web_Context_in_server.xml=3DRegister Web Co= ntext in server.xml Modified: trunk/jsf/plugins/org.jboss.tools.jsf/resources/help/keys-jsf_ja.= properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf/resources/help/keys-jsf_ja.proper= ties 2009-09-15 15:10:31 UTC (rev 17590) +++ trunk/jsf/plugins/org.jboss.tools.jsf/resources/help/keys-jsf_ja.proper= ties 2009-09-15 15:11:23 UTC (rev 17591) @@ -328,3 +328,36 @@ JSFValidatorExtension_CreateTag.WindowTitle=3D\u30BF\u30B0\u306E\u8FFD\u52= A0 JSFValidatorExtension_CreateTag.Title=3D\u30BF\u30B0 JSFConfigExtensions_Properties.Title=3D\u62E1\u5F35 + +newJSFLightProjectPage1_introduction=3D\u65B0\u898F\u30D7\u30ED\u30B8\u30A= 7\u30AF\u30C8\u4F5C\u6210\u30A6\u30A3\u30B6\u30FC\u30C9\u306F\u3001\u65B0\u= 898F\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u4F5C\u6210\u306B\u4F7F\u752= 8\u3057\u307E\u3059\u3002\u65E2\u5B58\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u= 30C8\u304C\u3042\u308B\u306A\u3089\u3070\u3001JBoss Tools \u3067\u305D\u306= E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u5229\u7528\u3059\u308B\u306B\u= 306F\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30FB\u30A4\u30F3\u30DD\u30FC\u30C= 8\u30FB\u30A6\u30A3\u30B6\u30FC\u30C9\u3092\u4F7F\u7528\u3057\u3066\u304F\u= 3060\u3055\u3044\u3002 +newJSFLightProjectPage1_name=3D\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u540D +newJSFLightProjectPage1_location=3D\u30ED\u30B1\u30FC\u30B7\u30E7\u30F3 +newJSFLightProjectPage1_use_default_path=3D\u30C7\u30D5\u30A9\u30EB\u30C8\= u30FB\u30D1\u30B9\u3092\u4F7F\u7528 +newJSFLightProjectPage1_version=3DJSF \u74B0\u5883 +newJSFLightProjectPage1_template=3D\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8 +newJSFLightProjectPage1_specifyProjectName=3D\u30D7\u30ED\u30B8\u30A7\u30A= F\u30C8\u540D\u3092\u6307\u5B9A +newJSFLightProjectPage1_specifyLocation=3D\u30ED\u30B1\u30FC\u30B7\u30E7\u= 30F3\u3092\u6307\u5B9A\u3057\u307E\u3059 +newJSFLightProjectPage1_locationError=3D\u30ED\u30B1\u30FC\u30B7\u30E7\u30= F3\u30FB\u30A8\u30E9\u30FC +newJSFLightProjectPage1_projectExistsMessage=3D\u30D7\u30ED\u30B8\u30A7\u3= 0AF\u30C8\u306F\u65E2\u306B\u5B58\u5728\u3057\u307E\u3059 +NEW_JSF_PROJECT_WIZARD_WINDOW_TITLE=3D\u65B0\u898F JSF \u30D7\u30ED\u30B8\= u30A7\u30AF\u30C8 +NEW_JSF_PROJECT_WIZARD_CREATE_STRUTS_PROJECT=3DJSF \u30D7\u30ED\u30B8\u30A= 7\u30AF\u30C8\u306E\u4F5C\u6210 +newJSFProjectPage1_introduction=3D\u65B0\u898F\u30D7\u30ED\u30B8\u30A7\u30= AF\u30C8\u4F5C\u6210\u30A6\u30A3\u30B6\u30FC\u30C9\u306F\u3001\u65B0\u898F\= u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u4F5C\u6210\u306B\u4F7F\u7528\u30= 57\u307E\u3059\u3002\u65E2\u5B58\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\= u304C\u3042\u308B\u306A\u3089\u3070\u3001JBoss Tools \u3067\u305D\u306E\u30= D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u5229\u7528\u3059\u308B\u306B\u306F\= u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30FB\u30A4\u30F3\u30DD\u30FC\u30C8\u30= FB\u30A6\u30A3\u30B6\u30FC\u30C9\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\= u3055\u3044\u3002 +newJSFProjectPage1_name=3D\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u540D +newJSFProjectPage1_location=3D\u30ED\u30B1\u30FC\u30B7\u30E7\u30F3 +newJSFProjectPage1_use_default_path=3D\u30C7\u30D5\u30A9\u30EB\u30C8\u30FB= \u30D1\u30B9\u3092\u4F7F\u7528 +newJSFProjectPage1_version=3DJSF \u74B0\u5883 +newJSFProjectPage1_template=3D\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8 +newJSFProjectPage1_specifyProjectName=3D\u30D7\u30ED\u30B8\u30A7\u30AF\u30= C8\u540D\u3092\u6307\u5B9A +newJSFProjectPage1_specifyLocation=3D\u30ED\u30B1\u30FC\u30B7\u30E7\u30F3\= u3092\u6307\u5B9A\u3057\u307E\u3059 +newJSFProjectPage1_locationError=3D\u30ED\u30B1\u30FC\u30B7\u30E7\u30F3\u3= 0FB\u30A8\u30E9\u30FC +newJSFProjectPage1_projectExistsMessage=3D\u30D7\u30ED\u30B8\u30A7\u30AF\u= 30C8\u306F\u65E2\u306B\u5B58\u5728\u3057\u307E\u3059 +NewJSFProjectWizard.CannotCreateLocation.WindowTitle=3D\u30A8\u30E9\u30FC +NewJSFProjectWizard.CannotCreateLocation.ErrorMessage=3D\u6307\u5B9A\u3055= \u308C\u305F\u30ED\u30B1\u30FC\u30B7\u30E7\u30F3\u3092\u4F5C\u6210\u3067\u3= 04D\u307E\u305B\u3093 + +org.jboss.tools.jsf.ui.wizard.project.ImportJSFWarWizard.mainPageTitle=3DJ= SF \u30D7\u30ED\u30B8\u30A7\u30AF\u30C8 + +IMPORT_JSF_PROJECT_WIZARD_WINDOW_TITLE=3DJSF \u30D7\u30ED\u30B8\u30A7\u30A= F\u30C8\u306E\u30A4\u30F3\u30DD\u30FC\u30C8 +ADD_JSF_NATURE=3DJSF \u6A5F\u80FD\u306E\u8FFD\u52A0 + +SharableImportJSFProject.Register_Web_Context_in_server.xml=3Dserver.xml \= u306B Web \u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u3092\u767B\u9332 +SharableNewJSFProject.Register_Web_Context_in_server.xml=3Dserver.xml \u30= 6B Web \u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u3092\u767B\u9332 --===============7802102969468560644==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 11:12:07 2009 Content-Type: multipart/mixed; boundary="===============8822525229575765114==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17592 - trunk/struts/plugins/org.jboss.tools.struts/resources/help. Date: Tue, 15 Sep 2009 11:12:07 -0400 Message-ID: <200909151512.n8FFC7MM030880@svn01.web.mwc.hst.phx2.redhat.com> --===============8822525229575765114== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-15 11:12:06 -0400 (Tue, 15 Sep 2009) New Revision: 17592 Added: trunk/struts/plugins/org.jboss.tools.struts/resources/help/keys-struts_j= a.properties Modified: trunk/struts/plugins/org.jboss.tools.struts/resources/help/keys-struts.p= roperties Log: https://jira.jboss.org/jira/browse/JBIDE-4885 Extension point added and eclipse options split between common and jst Modified: trunk/struts/plugins/org.jboss.tools.struts/resources/help/keys-s= truts.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts/resources/help/keys-struts.= properties 2009-09-15 15:11:23 UTC (rev 17591) +++ trunk/struts/plugins/org.jboss.tools.struts/resources/help/keys-struts.= properties 2009-09-15 15:12:06 UTC (rev 17592) @@ -938,3 +938,88 @@ SharableStrutsEditor.showShortcutIcon=3DShow shortcut icon SharableStrutsEditor.showShortcutPath=3DShow shortcut path SharableStrutsEditor.Show_Grid=3DShow grid + +SharableStruts10Support.servlet_class=3DServlet Class +SharableStruts10Support.url_pattern=3DURL Pattern +SharableStruts10Support.tld_files=3DTLD Files +SharableStruts11Support.servlet_class=3DServlet Class +SharableStruts11Support.url_pattern=3DURL Pattern +SharableStruts11Support.tld_files=3DTLD Files + +SharableStrutsEditor.doNotShowDiagram=3DDo not show diagram tab + +# New Struts Project wizard +NEW_STRUTS_PROJECT_WIZARD_WINDOW_TITLE =3D New Struts Project +NEW_STRUTS_PROJECT_WIZARD_CREATE_STRUTS_PROJECT =3D Create Struts Project + +newStrutsProjectPage1_introduction=3DThe Create New Project Wizard is used= for creating a brand new project. If you already have a pre-existing proje= ct, just use the Import Project Wizard to start working with it in JBoss To= ols. +newStrutsProjectPage1_name =3D Project Name +newStrutsProjectPage1_location =3D Location +newStrutsProjectPage1_use_default_path =3D Use default path +newStrutsProjectPage1_version =3D Struts Environment +newStrutsProjectPage1_template =3D Template +WebPrjCreateStepDirs_servletVersion=3DServlet Version + +newStrutsProjectPage1_specifyProjectName =3D Specify Project Name +newStrutsProjectPage1_specifyLocation =3D Specify location +newStrutsProjectPage1_locationError =3D Location Error +newStrutsProjectPage1_projectExistsMessage =3D Project already exists +# Errors +NewStrutsProjectWizard.CannotCreateLocation.WindowTitle =3D Error +NewStrutsProjectWizard.CannotCreateLocation.ErrorMessage =3D Cannot create= specify location + +# New Eclipse4Web Struts Project wizard +newStrutsLightProjectPage1_introduction=3DThe Create New Project Wizard is= used for creating a brand new project. If you already have a pre-existing = project, just use the Import Project Wizard to start working with it in Ecl= ipse4Web. +newStrutsLightProjectPage1_name =3D Project Name +newStrutsLightProjectPage1_location =3D Location +newStrutsLightProjectPage1_use_default_path =3D Use default path +newStrutsLightProjectPage1_version =3D Struts Environment +newStrutsLightProjectPage1_template =3D Template + +newStrutsLightProjectPage1_specifyProjectName =3D Specify Project Name +newStrutsLightProjectPage1_specifyLocation =3D Specify location +newStrutsLightProjectPage1_locationError =3D Location Error +newStrutsLightProjectPage1_projectExistsMessage =3D Project already exists + +# Import Struts Project wizard +IMPORT_STRUTS_PROJECT_WIZARD_WINDOW_TITLE =3D Import Struts Project +IMPORT_STRUTS_PROJECT_WIZARD_PROJECT_LOCATION =3D Project Location +IMPORT_STRUTS_PROJECT_SELECT_WEB_XML =3D Please select web.xml location +IMPORT_STRUTS_PROJECT_WIZARD_PROJECT_MODULES =3D Project Modules +IMPORT_STRUTS_PROJECT_CONFIGURE_PROJECT_MODULES =3D Configure Project Modu= les +IMPORT_STRUTS_PROJECT_WIZARD_PROJECT_FOLDERS =3D Project Folders +IMPORT_STRUTS_PROJECT_SELECT_PROJECT_FOLDERS =3D Select Project Folders + +ADD_STRUTS_NATURE =3D Add Struts Capabilities + +org.jboss.tools.struts.ui.wizard.project.ImportStrutsWarWizard.mainPageTit= le=3DStruts project + +IMPORT_STRUTS_PROJECT_EARLIER_VERSION_WARNING=3DThis project has been crea= ted in an earlier version of Struts Studio. Select Yes if you want import a= nd convert this project to the current version. Once this project is conver= ted you will not be able to open it in a previous version. Select No if you= want to cancel project import and leave it as it is. + +#Wizard-Labels.begin + +# Generate java code - step 1 +StrutsGen11_Start_actions =3D Generate classes for Actions +StrutsGen11_Start_formbeans =3D Generate classes for FormBeans +StrutsGen11_Start_forwards =3D Generate classes for Forwards +StrutsGen11_Start_exceptions =3D Generate classes for Exceptions +StrutsGen11_Start_overwrite =3D Overwrite existing files +StrutsGen11_Start_base_package =3D Base package +# Generate java code - step 2 +StrutsGen11_Actions_base_class =3D Base class +StrutsGen11_Actions_properties =3D Generate JavaBeans properties +StrutsGen11_Actions_global_forwards =3D Generate constraints for global fo= rwards +StrutsGen11_Actions_local_forwards =3D Generate constraints for local forw= ards +# Generate java code - step 3 +StrutsGen11_FormBeans_base_class =3D Base class +StrutsGen11_FormBeans_properties =3D Generate JavaBeans properties +# Generate java code - step 4 +StrutsGen11_Forwards_base_class =3D Base class +StrutsGen11_Forwards_properties =3D Generate JavaBeans properties +# Generate java code - step 5 +StrutsGen11_Exceptions_base_class =3D Base class +StrutsGen11_Exceptions_properties =3D Generate JavaBeans properties + +#Wizard-Labels.end + + Added: trunk/struts/plugins/org.jboss.tools.struts/resources/help/keys-stru= ts_ja.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts/resources/help/keys-struts_= ja.properties (rev 0) +++ trunk/struts/plugins/org.jboss.tools.struts/resources/help/keys-struts_= ja.properties 2009-09-15 15:12:06 UTC (rev 17592) @@ -0,0 +1,61 @@ +SharableStruts10Support.servlet_class=3D\u30B5\u30FC\u30D6\u30EC\u30C3\u30= C8\u30FB\u30AF\u30E9\u30B9 +SharableStruts10Support.url_pattern=3DURL \u30D1\u30BF\u30FC\u30F3 +SharableStruts10Support.tld_files=3DTLD \u30D5\u30A1\u30A4\u30EB +SharableStruts11Support.servlet_class=3D\u30B5\u30FC\u30D6\u30EC\u30C3\u30= C8\u30FB\u30AF\u30E9\u30B9 +SharableStruts11Support.url_pattern=3DURL \u30D1\u30BF\u30FC\u30F3 +SharableStruts11Support.tld_files=3DTLD \u30D5\u30A1\u30A4\u30EB + +SharableStrutsEditor.doNotShowDiagram=3D\u30C0\u30A4\u30A2\u30B0\u30E9\u30= E0\u30FB\u30BF\u30D6\u3092\u8868\u793A\u3057\u306A\u3044 + +NEW_STRUTS_PROJECT_WIZARD_WINDOW_TITLE=3D\u65B0\u898F Struts \u30D7\u30ED\= u30B8\u30A7\u30AF\u30C8 +NEW_STRUTS_PROJECT_WIZARD_CREATE_STRUTS_PROJECT=3DStruts \u30D7\u30ED\u30B= 8\u30A7\u30AF\u30C8\u306E\u4F5C\u6210 +newStrutsProjectPage1_introduction=3D\u65B0\u898F\u30D7\u30ED\u30B8\u30A7\= u30AF\u30C8\u4F5C\u6210\u30A6\u30A3\u30B6\u30FC\u30C9\u306F\u3001\u65B0\u89= 8F\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u4F5C\u6210\u306B\u4F7F\u7528\= u3057\u307E\u3059\u3002\u65E2\u5B58\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30= C8\u304C\u3042\u308B\u306A\u3089\u3070\u3001JBoss Tools \u3067\u305D\u306E\= u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u5229\u7528\u3059\u308B\u306B\u30= 6F\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30FB\u30A4\u30F3\u30DD\u30FC\u30C8\= u30FB\u30A6\u30A3\u30B6\u30FC\u30C9\u3092\u4F7F\u7528\u3057\u3066\u304F\u30= 60\u3055\u3044\u3002 +newStrutsProjectPage1_name=3D\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u540D +newStrutsProjectPage1_location=3D\u30ED\u30B1\u30FC\u30B7\u30E7\u30F3 +newStrutsProjectPage1_use_default_path=3D\u30C7\u30D5\u30A9\u30EB\u30C8\u3= 0FB\u30D1\u30B9\u3092\u4F7F\u7528 +newStrutsProjectPage1_version=3DStruts \u74B0\u5883 +newStrutsProjectPage1_template=3D\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8 +WebPrjCreateStepDirs_servletVersion=3D\u30B5\u30FC\u30D6\u30EC\u30C3\u30C8= \u30FB\u30D0\u30FC\u30B8\u30E7\u30F3 +newStrutsProjectPage1_specifyProjectName=3D\u30D7\u30ED\u30B8\u30A7\u30AF\= u30C8\u540D\u3092\u6307\u5B9A +newStrutsProjectPage1_specifyLocation=3D\u30ED\u30B1\u30FC\u30B7\u30E7\u30= F3\u3092\u6307\u5B9A\u3057\u307E\u3059 +newStrutsProjectPage1_locationError=3D\u30ED\u30B1\u30FC\u30B7\u30E7\u30F3= \u30FB\u30A8\u30E9\u30FC +newStrutsProjectPage1_projectExistsMessage=3D\u30D7\u30ED\u30B8\u30A7\u30A= F\u30C8\u306F\u65E2\u306B\u5B58\u5728\u3057\u307E\u3059 +NewStrutsProjectWizard.CannotCreateLocation.WindowTitle=3D\u30A8\u30E9\u30= FC +NewStrutsProjectWizard.CannotCreateLocation.ErrorMessage=3D\u6307\u5B9A\u3= 055\u308C\u305F\u30ED\u30B1\u30FC\u30B7\u30E7\u30F3\u3092\u4F5C\u6210\u3067= \u304D\u307E\u305B\u3093 +newStrutsLightProjectPage1_introduction=3D\u65B0\u898F\u30D7\u30ED\u30B8\u= 30A7\u30AF\u30C8\u4F5C\u6210\u30A6\u30A3\u30B6\u30FC\u30C9\u306F\u3001\u65B= 0\u898F\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u4F5C\u6210\u306B\u4F7F\u= 7528\u3057\u307E\u3059\u3002\u65E2\u5B58\u306E\u30D7\u30ED\u30B8\u30A7\u30A= F\u30C8\u304C\u3042\u308B\u306A\u3089\u3070\u3001JBoss Tools \u3067\u305D\u= 306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u5229\u7528\u3059\u308B\u306= B\u306F\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30FB\u30A4\u30F3\u30DD\u30FC\u= 30C8\u30FB\u30A6\u30A3\u30B6\u30FC\u30C9\u3092\u4F7F\u7528\u3057\u3066\u304= F\u3060\u3055\u3044\u3002 +newStrutsLightProjectPage1_name=3D\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u54= 0D +newStrutsLightProjectPage1_location=3D\u30ED\u30B1\u30FC\u30B7\u30E7\u30F3 +newStrutsLightProjectPage1_use_default_path=3D\u30C7\u30D5\u30A9\u30EB\u30= C8\u30FB\u30D1\u30B9\u3092\u4F7F\u7528 +newStrutsLightProjectPage1_version=3DStruts \u74B0\u5883 +newStrutsLightProjectPage1_template=3D\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8 +newStrutsLightProjectPage1_specifyProjectName=3D\u30D7\u30ED\u30B8\u30A7\u= 30AF\u30C8\u540D\u3092\u6307\u5B9A +newStrutsLightProjectPage1_specifyLocation=3D\u30ED\u30B1\u30FC\u30B7\u30E= 7\u30F3\u3092\u6307\u5B9A\u3057\u307E\u3059 +newStrutsLightProjectPage1_locationError=3D\u30ED\u30B1\u30FC\u30B7\u30E7\= u30F3\u30FB\u30A8\u30E9\u30FC +newStrutsLightProjectPage1_projectExistsMessage=3D\u30D7\u30ED\u30B8\u30A7= \u30AF\u30C8\u306F\u65E2\u306B\u5B58\u5728\u3057\u307E\u3059 +IMPORT_STRUTS_PROJECT_WIZARD_WINDOW_TITLE=3DStruts \u30D7\u30ED\u30B8\u30A= 7\u30AF\u30C8\u306E\u30A4\u30F3\u30DD\u30FC\u30C8 +IMPORT_STRUTS_PROJECT_WIZARD_PROJECT_LOCATION=3D\u30D7\u30ED\u30B8\u30A7\u= 30AF\u30C8\u30FB\u30ED\u30B1\u30FC\u30B7\u30E7\u30F3 +IMPORT_STRUTS_PROJECT_SELECT_WEB_XML=3Dweb.xml \u30ED\u30B1\u30FC\u30B7\u3= 0E7\u30F3\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044 +IMPORT_STRUTS_PROJECT_WIZARD_PROJECT_MODULES=3D\u30D7\u30ED\u30B8\u30A7\u3= 0AF\u30C8\u30FB\u30E2\u30B8\u30E5\u30FC\u30EB +IMPORT_STRUTS_PROJECT_CONFIGURE_PROJECT_MODULES=3D\u30D7\u30ED\u30B8\u30A7= \u30AF\u30C8\u30FB\u30E2\u30B8\u30E5\u30FC\u30EB\u306E\u69CB\u6210 +IMPORT_STRUTS_PROJECT_WIZARD_PROJECT_FOLDERS=3D\u30D7\u30ED\u30B8\u30A7\u3= 0AF\u30C8\u30FB\u30D5\u30A9\u30EB\u30C0\u30FC +IMPORT_STRUTS_PROJECT_SELECT_PROJECT_FOLDERS=3D\u30D7\u30ED\u30B8\u30A7\u3= 0AF\u30C8\u30FB\u30D5\u30A9\u30EB\u30C0\u30FC\u306E\u9078\u629E +ADD_STRUTS_NATURE=3DStruts \u6A5F\u80FD\u306E\u8FFD\u52A0 +org.jboss.tools.struts.ui.wizard.project.ImportStrutsWarWizard.mainPageTit= le=3DStruts \u30D7\u30ED\u30B8\u30A7\u30AF\u30C8 +IMPORT_STRUTS_PROJECT_EARLIER_VERSION_WARNING=3DThis project has been crea= ted in an earlier version of Struts Studio. Select Yes if you want import a= nd convert this project to the current version. Once this project is conver= ted you will not be able to open it in a previous version. Select No if you= want to cancel project import and leave it as it is. + +StrutsGen11_Start_actions=3DGenerate classes for Actions +StrutsGen11_Start_formbeans=3DGenerate classes for FormBeans +StrutsGen11_Start_forwards=3DGenerate classes for Forwards +StrutsGen11_Start_exceptions=3DGenerate classes for Exceptions +StrutsGen11_Start_overwrite=3D\u65E2\u5B58\u30D5\u30A1\u30A4\u30EB\u306E\u= 4E0A\u66F8\u304D +StrutsGen11_Start_base_package=3DBase package +StrutsGen11_Actions_base_class=3D\u30D9\u30FC\u30B9\u30FB\u30AF\u30E9\u30B9 +StrutsGen11_Actions_properties=3DGenerate JavaBeans properties +StrutsGen11_Actions_global_forwards=3DGenerate constraints for global forw= ards +StrutsGen11_Actions_local_forwards=3DGenerate constraints for local forwar= ds +StrutsGen11_FormBeans_base_class=3D\u30D9\u30FC\u30B9\u30FB\u30AF\u30E9\u3= 0B9 +StrutsGen11_FormBeans_properties=3DGenerate JavaBeans properties +StrutsGen11_Forwards_base_class=3D\u30D9\u30FC\u30B9\u30FB\u30AF\u30E9\u30= B9 +StrutsGen11_Forwards_properties=3DGenerate JavaBeans properties +StrutsGen11_Exceptions_base_class=3D\u30D9\u30FC\u30B9\u30FB\u30AF\u30E9\u= 30B9 +StrutsGen11_Exceptions_properties=3DGenerate JavaBeans properties Property changes on: trunk/struts/plugins/org.jboss.tools.struts/resources/= help/keys-struts_ja.properties ___________________________________________________________________ Name: svn:mime-type + text/plain --===============8822525229575765114==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 11:20:29 2009 Content-Type: multipart/mixed; boundary="===============4676876233960637185==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17593 - trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/el. Date: Tue, 15 Sep 2009 11:20:29 -0400 Message-ID: <200909151520.n8FFKTVF032500@svn01.web.mwc.hst.phx2.redhat.com> --===============4676876233960637185== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-15 11:20:28 -0400 (Tue, 15 Sep 2009) New Revision: 17593 Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web= /kb/el/AbstractELCompletionEngine.java Log: JBIDE-512 context variable code completion dropdown should show their "sour= ce" JBIDE-2541 Show java-doc for EL content assist item The values of type, sourceType and JavaDoc are gathered to be displayed in = CA Var's declared using var attribute () are also processed. Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/= jst/web/kb/el/AbstractELCompletionEngine.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/el/AbstractELCompletionEngine.java 2009-09-15 15:12:06 UTC (rev 17592) +++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/el/AbstractELCompletionEngine.java 2009-09-15 15:20:28 UTC (rev 17593) @@ -255,20 +255,37 @@ } = // JBIDE-512, JBIDE-2541 related changes =3D=3D=3D>>> - // TODO: Add type, sourceType and JavaDoc found if possible - // Reason of incomplete: there are no resolved members here, = - // The var value is to be resolved by the ELResolver to let us know - // what is the var's type if(!returnEqualedVariablesOnly && vars!=3Dnull) { = for (Var v : vars) { String prefix =3D operand.toString(); if(v.getName().startsWith(prefix)) { + MemberInfo memberInfo =3D resolveEL(file, v.getElToken(), true, vars,= varSearcher); + String sourceTypeName =3D memberInfo =3D=3D null ? null : memberInfo.= getDeclaringTypeQualifiedName(); + if (sourceTypeName !=3D null && sourceTypeName.indexOf('.') !=3D -1) = + sourceTypeName =3D Signature.getSimpleName(sourceTypeName); + String typeName =3D memberInfo =3D=3D null ? null : memberInfo.getTyp= e().getName(); + if (typeName !=3D null && typeName.indexOf('.') !=3D -1) = + typeName =3D Signature.getSimpleName(typeName); + = + IJavaElement element =3D memberInfo =3D=3D null ? null : memberInfo.g= etJavaElement(); + String attachedJavaDoc =3D null; + = + try { + attachedJavaDoc =3D element =3D=3D null ? null : element.getAttache= dJavadoc(null); + } catch (JavaModelException e) { + // Ignore + } + = String varNameProposal =3D v.getName().substring(prefix.length()); TextProposal proposal =3D new TextProposal(); + proposal.setLabel(v.getName()); proposal.setReplacementString(varNameProposal); proposal.setLabel(v.getName()); proposal.setImage(getELProposalImage()); + proposal.setType(typeName); + proposal.setSourceType(sourceTypeName); + proposal.setContextInfo(attachedJavaDoc); status.getProposals().add(proposal); } } @@ -294,6 +311,21 @@ return status.getMemberOfResolvedOperand(); } = + /** + * Returns MemberInfo for last segment of EL. Null if El is not resolved. + * @param seamProject + * @param file + * @param operand EL without #{} + * @return MemberInfo for last segment of EL. Null if El is not resolved. + * @throws BadLocationException + * @throws StringIndexOutOfBoundsException + */ + public TypeInfoCollector.MemberInfo resolveEL(IFile file, ELExpression op= erand, boolean returnEqualedVariablesOnly, List vars, ElVarSearcher va= rSearcher) throws BadLocationException, StringIndexOutOfBoundsException { + if(!(operand instanceof ELInvocationExpression)) return null; + ELOperandResolveStatus status =3D resolveELOperand(file, operand, return= EqualedVariablesOnly, vars, varSearcher); + return status.getMemberOfResolvedOperand(); + } + = public ELOperandResolveStatus resolveELOperand(IFile file, ELExpression o= perand, = boolean returnEqualedVariablesOnly, boolean varIsUsed) throws BadLocati= onException, StringIndexOutOfBoundsException { if(!(operand instanceof ELInvocationExpression) || file =3D=3D null) { @@ -371,6 +403,7 @@ } = TextProposal proposal =3D new TextProposal(); + proposal.setLabel(varName); proposal.setReplacementString(varName.substring(operand.getLength())); setImage(proposal, var); proposal.setType(typeName); --===============4676876233960637185==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 11:34:12 2009 Content-Type: multipart/mixed; boundary="===============4067013169629213722==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17594 - trunk/hibernatetools/docs/reference/en/modules. Date: Tue, 15 Sep 2009 11:34:12 -0400 Message-ID: <200909151534.n8FFYCn9002178@svn01.web.mwc.hst.phx2.redhat.com> --===============4067013169629213722== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: chukhutsina Date: 2009-09-15 11:34:12 -0400 (Tue, 15 Sep 2009) New Revision: 17594 Modified: trunk/hibernatetools/docs/reference/en/modules/ant.xml Log:

https://jira.jboss.org/jira/browse/JBDS-862 -Added the info about Naming= Strategy supporting in JPA projects to 5.3.1. Standard Hibernate Configurat= ion section.

Modified: trunk/hibernatetools/docs/reference/en/modules/ant.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/docs/reference/en/modules/ant.xml 2009-09-15 15:20= :28 UTC (rev 17593) +++ trunk/hibernatetools/docs/reference/en/modules/ant.xml 2009-09-15 15:34= :12 UTC (rev 17594) @@ -367,7 +367,7 @@ Name of a class that implements org.hibernate.cfg.Na= mingStrategy. Used for setting up the naming strategy in Hibernate which contro= ls the automatic naming of - tables and columns. + tables and columns.In JPA projects naming strategy is su= pported for default Name/Columns mapping
= --===============4067013169629213722==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 11:38:30 2009 Content-Type: multipart/mixed; boundary="===============0649383377668826566==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17595 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/project. Date: Tue, 15 Sep 2009 11:38:30 -0400 Message-ID: <200909151538.n8FFcUl8002937@svn01.web.mwc.hst.phx2.redhat.com> --===============0649383377668826566== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-15 11:38:29 -0400 (Tue, 15 Sep 2009) New Revision: 17595 Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/project/ProjectHome.java Log: https://jira.jboss.org/jira/browse/JBIDE-4885 Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/t= ools/common/model/project/ProjectHome.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/project/ProjectHome.java 2009-09-15 15:34:12 UTC (rev 17594) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/project/ProjectHome.java 2009-09-15 15:38:29 UTC (rev 17595) @@ -48,15 +48,15 @@ File f =3D new File(location + XModelObjectConstants.SEPARATOR + IModelN= ature.PROJECT_TEMP); File ep =3D new File(location + XModelObjectConstants.SEPARATOR + IModel= Nature.PROJECT_FILE); if(ep.isFile()) { - // to remove .struts file = + // to remove temp file = if(f.isFile()) f.delete(); - return getLocationFrom_strutsstudio_File(location, ep); + return getLocationFrom_project_File(location, ep); } - if(f.isFile()) return getLocationFrom_struts_File(location, f); + if(f.isFile()) return getLocationFrom_temp_File(location, f); return ""; //$NON-NLS-1$ } = - private String getLocationFrom_strutsstudio_File(String location, File ss= ) { + private String getLocationFrom_project_File(String location, File ss) { Element element =3D XMLUtil.getElement(ss); String path =3D ""; //$NON-NLS-1$ if(element.hasAttribute("workspace-home")) { //$NON-NLS-1$ @@ -68,7 +68,7 @@ return q; } = - private String getLocationFrom_struts_File(String location, File s) { + private String getLocationFrom_temp_File(String location, File s) { String path =3D XModelObjectLoaderUtil.getCDATA(XMLUtil.getElement(s)); String q =3D (path.equals(".")) ? location : (path.startsWith("./")) ? l= ocation + path.substring(1) : path; //$NON-NLS-1$ //$NON-NLS-2$ s.delete(); --===============0649383377668826566==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 11:43:26 2009 Content-Type: multipart/mixed; boundary="===============4750361253310944684==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17596 - trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/model/handlers/page. Date: Tue, 15 Sep 2009 11:43:26 -0400 Message-ID: <200909151543.n8FFhQ8a004396@svn01.web.mwc.hst.phx2.redhat.com> --===============4750361253310944684== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-15 11:43:25 -0400 (Tue, 15 Sep 2009) New Revision: 17596 Modified: trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/m= odel/handlers/page/RunHandler.java Log: https://jira.jboss.org/jira/browse/JBIDE-4885 Dead code removed Modified: trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/s= truts/model/handlers/page/RunHandler.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/= model/handlers/page/RunHandler.java 2009-09-15 15:38:29 UTC (rev 17595) +++ trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/= model/handlers/page/RunHandler.java 2009-09-15 15:43:25 UTC (rev 17596) @@ -79,9 +79,4 @@ } } = - public static void startExplorer(XModel model, String url) throws Excepti= on { - BrowserHelper.startExplorer(model, url); - } - - } --===============4750361253310944684==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 11:44:21 2009 Content-Type: multipart/mixed; boundary="===============1676574000863768161==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17597 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util. Date: Tue, 15 Sep 2009 11:44:21 -0400 Message-ID: <200909151544.n8FFiLcs004489@svn01.web.mwc.hst.phx2.redhat.com> --===============1676574000863768161== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-15 11:44:21 -0400 (Tue, 15 Sep 2009) New Revision: 17597 Removed: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/util/BrowserHelper.java Log: https://jira.jboss.org/jira/browse/JBIDE-4885 Dead code removed Deleted: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/to= ols/common/model/util/BrowserHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/util/BrowserHelper.java 2009-09-15 15:43:25 UTC (rev 17596) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/util/BrowserHelper.java 2009-09-15 15:44:21 UTC (rev 17597) @@ -1,107 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.common.model.util; - -import java.io.*; -import java.text.MessageFormat; -import java.util.*; -import org.jboss.tools.common.model.*; -import org.jboss.tools.common.model.engines.impl.XProcess; -import org.jboss.tools.common.model.options.PreferenceModelUtilities; -import org.jboss.tools.common.model.plugin.ModelMessages; -import org.jboss.tools.common.model.plugin.ModelPlugin; -import org.jboss.tools.common.meta.action.*; -import org.jboss.tools.common.meta.action.impl.*; -import org.jboss.tools.common.meta.action.impl.handlers.*; - -public class BrowserHelper { - static String ATTRIBUTE =3D "Browser Path"; //$NON-NLS-1$ - = - - public BrowserHelper() {} - - public static void startExplorer(XModel model, String url) throws XModelE= xception { - XModelObject editor =3D PreferenceModelUtilities.getPreferenceModel().ge= tByPath("%Options%/Struts Studio/Running"); //$NON-NLS-1$ - if(editor =3D=3D null) throw new XModelException(ModelMessages.BrowserHe= lper_InternetBrowserNotSet); - if(validatePath(PreferenceModelUtilities.getPreferenceModel().getService= (), editor)) new OWEProcess(editor, url).start(); - } - = - static boolean validatePath(ServiceDialog d, XModelObject o) { - String[] paths =3D getEnvironmentPaths(); - String en =3D o.getModelEntity().getName(); - XEntityData[] dt =3D new XEntityData[]{XEntityDataImpl.create(new String= [][]{{en, XModelObjectConstants.YES}, {ATTRIBUTE, XModelObjectConstants.YES= }})}; - String path =3D o.getAttributeValue(ATTRIBUTE).replace('\\','/'); - XAttributeData ad =3D HUtil.find(dt, 0, ATTRIBUTE); - ad.setValue(path); - while(true) { - String b =3D ad.getValue(); - if(b !=3D null && b.length() > 0) - try { - if(fileExists(b, paths)) { - if(!b.equals(path)) { - o.getModel().changeObjectAttribute(o, ATTRIBUTE, b); - o.getModel().saveOptions(); - } - return true; - } - } catch (XModelException e) { - ModelPlugin.getPluginLog().logError("BrowserHelper:" + e.getMessage(= )); //$NON-NLS-1$ - } - int i =3D d.showDialog(ModelMessages.BrowserHelper_DialogTitleRun, Mess= ageFormat.format(ModelMessages.BrowserHelper_EnterValidPath, o.getPresentat= ionString()), - new String[]{ModelMessages.OK, ModelMessages.Cancel}, dt[0], Serv= iceDialog.QUESTION); - if(i !=3D 0) return false; - } - } - - static String[] getEnvironmentPaths() { - String jlp =3D OSHelper.getProperty("PATH", ""); //$NON-NLS-1$ //$NON-N= LS-2$ - StringTokenizer st =3D new StringTokenizer(jlp, File.pathSeparator); - String[] ps =3D new String[st.countTokens()]; - for (int i =3D 0; i < ps.length; i++) ps[i] =3D st.nextToken(); - return ps; - } - - static boolean fileExists(String filename, String[] paths) { - filename =3D filename.replace('\\', '/'); - if(paths =3D=3D null || filename.indexOf('/') >=3D 0) return new File(fi= lename).isFile(); - for (int i =3D 0; i < paths.length; i++) { - String f =3D paths[i] + XModelObjectConstants.SEPARATOR + filename; - if(new File(f).isFile()) return true; - } - return false; - } - -} - -class OWEProcess extends XProcess { - private XModelObject o; - private String url; - - public OWEProcess(XModelObject o, String url) { - this.o =3D o; - this.url =3D url; - } - - protected String getRoot() { - return "."; //$NON-NLS-1$ - } - - protected void write(String s) { - o.getModel().getOut().print(s); - } - - protected void buildCommandLine(ArrayList l) { - String program =3D o.getAttributeValue(BrowserHelper.ATTRIBUTE); - l.add(program); - l.add(url); - } - -} --===============1676574000863768161==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 11:57:03 2009 Content-Type: multipart/mixed; boundary="===============6502107012726180427==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17598 - in trunk/jst/plugins: org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common and 1 other directory. Date: Tue, 15 Sep 2009 11:57:03 -0400 Message-ID: <200909151557.n8FFv30B006726@svn01.web.mwc.hst.phx2.redhat.com> --===============6502107012726180427== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: sdzmitrovich Date: 2009-09-15 11:57:03 -0400 (Tue, 15 Sep 2009) New Revision: 17598 Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/CSSStyleRuleContainer.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/ou= tline/cssdialog/common/StyleAttributes.java Log: JBIDE-4850 Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/common/CSSStyleRuleContainer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleRuleContainer.java 2009-09-15 15:44:21 UTC (rev 17597) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleRuleContainer.java 2009-09-15 15:57:03 UTC (rev 17598) @@ -44,7 +44,8 @@ if ((me.getValue() =3D=3D null) || (me.getValue().length() =3D=3D 0)) { declaration.removeProperty(me.getKey()); - } else { + } else if (!me.getValue().equals( + declaration.getPropertyValue(me.getKey()))) { declaration.setProperty(me.getKey(), me.getValue(), Constants.EMPTY); } Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/outline/cssdialog/common/StyleAttributes.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/o= utline/cssdialog/common/StyleAttributes.java 2009-09-15 15:44:21 UTC (rev 1= 7597) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/o= utline/cssdialog/common/StyleAttributes.java 2009-09-15 15:57:03 UTC (rev 1= 7598) @@ -21,96 +21,101 @@ */ public class StyleAttributes { = - private Map attributeMap =3D null; - /** - * Default constructor. - */ - public StyleAttributes() { - this.attributeMap =3D new WritableMap(); - } + private Map attributeMap =3D null; = - /** - * Gets attribute map. - * - * @return map of attributes - */ - public Map getAttributeMap() { - return attributeMap; - } + /** + * Default constructor. + */ + public StyleAttributes() { + this.attributeMap =3D new WritableMap(); + } = + /** + * Gets attribute map. + * = + * @return map of attributes + */ + public Map getAttributeMap() { + return attributeMap; + } = + /** + * Add attribute with the given name and value. + * = + * @param name + * the name of attribute + * @param value + * the value of attribute + */ + public void addAttribute(String name, String value) { + attributeMap.put(name, value); + } = - /** - * Add attribute with the given name and value. - * - * @param name the name of attribute - * @param value the value of attribute - */ - public void addAttribute(String name, String value) { - attributeMap.put(name, value); - } + /** + * Remove attribute with the given name. + * = + * @param name + * the name of attribute to be removed + */ + public void removeAttribute(String name) { + attributeMap.remove(name); + } = - /** - * Remove attribute with the given name. - * - * @param name the name of attribute to be removed - */ - public void removeAttribute(String name) { - attributeMap.remove(name); - } + /** + * @see java.util.HashMap#entrySet() + */ + public Set> entrySet() { + return attributeMap.entrySet(); + } = - /** - * @see java.util.HashMap#entrySet() - */ - public Set> entrySet() { - return attributeMap.entrySet(); - } + /** + * Get attribute value with the given name. + * = + * @param name + * the name of attribute to be returned + * @return attribute value + */ + public String getAttribute(String name) { + String value =3D attributeMap.get(name); + return value !=3D null ? value : Constants.EMPTY; + } = - /** - * Get attribute value with the given name. - * - * @param name the name of attribute to be returned - * @return attribute value - */ - public String getAttribute(String name) { - String value =3D attributeMap.get(name); - return value !=3D null ? value : Constants.EMPTY; - } + /** + * @see java.util.HashMap#keySet() + */ + public Set keySet() { + return attributeMap.keySet(); + } = - /** - * @see java.util.HashMap#keySet() - */ - public Set keySet() { - return attributeMap.keySet(); - } + /** + * Clear cache of attributes. + */ + public void clear() { + attributeMap.clear(); + } = - /** - * Clear cache of attributes. - */ - public void clear() { - attributeMap.clear(); - } - = - /** + /** * = */ - public void setStyleProperties(Map properties){ - attributeMap.clear(); - attributeMap.putAll(properties); - } - = + public void setStyleProperties(Map properties) { + attributeMap.clear(); + attributeMap.putAll(properties); + } + /** * String representation of style attributes. - * + * = * @return style string representation */ public String getStyle() { - // update newStyle value - StringBuffer buf =3D new StringBuffer(); - Set> set =3D entrySet(); - for (Map.Entry me : set) { - buf.append(me.getKey() + Constants.COLON + me.getValue() + Con= stants.SEMICOLON); - } - return buf.toString(); + // update newStyle value + StringBuffer buf =3D new StringBuffer(); + Set> set =3D entrySet(); + for (Map.Entry me : set) { + if ((me.getValue() !=3D null) && (me.getValue().length() !=3D 0)) + buf.append(me.getKey() + Constants.COLON + me.getValue() + + Constants.SEMICOLON); + } + return buf.toString(); } } --===============6502107012726180427==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 16:00:40 2009 Content-Type: multipart/mixed; boundary="===============4428805599888596759==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17599 - trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jboss/tools/bpel/as/integration. Date: Tue, 15 Sep 2009 16:00:40 -0400 Message-ID: <200909152000.n8FK0ebA022343@svn01.web.mwc.hst.phx2.redhat.com> --===============4428805599888596759== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-15 16:00:39 -0400 (Tue, 15 Sep 2009) New Revision: 17599 Added: trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jboss/too= ls/bpel/as/integration/Activator.java trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jboss/too= ls/bpel/as/integration/JBossServerBPELPublisher.java Log: restore bpel.as.integration java classes to fix plugin activation errors Added: trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jboss= /tools/bpel/as/integration/Activator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jboss/to= ols/bpel/as/integration/Activator.java (rev 0) +++ trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jboss/to= ols/bpel/as/integration/Activator.java 2009-09-15 20:00:39 UTC (rev 17599) @@ -0,0 +1,50 @@ +package org.jboss.tools.bpel.as.integration; + +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends AbstractUIPlugin { + + // The plug-in ID + public static final String PLUGIN_ID =3D "org.jboss.tools.bpel.as.integra= tion"; + + // The shared instance + private static Activator plugin; + = + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.B= undleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin =3D this; + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.Bu= ndleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin =3D null; + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } + +} Property changes on: trunk/bpel/plugins/org.jboss.tools.bpel.as.integration= /src/org/jboss/tools/bpel/as/integration/Activator.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jboss= /tools/bpel/as/integration/JBossServerBPELPublisher.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jboss/to= ols/bpel/as/integration/JBossServerBPELPublisher.java = (rev 0) +++ trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/src/org/jboss/to= ols/bpel/as/integration/JBossServerBPELPublisher.java 2009-09-15 20:00:39 U= TC (rev 17599) @@ -0,0 +1,37 @@ +package org.jboss.tools.bpel.as.integration; + +import org.eclipse.bpel.runtimes.IBPELModuleFacetConstants; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.wst.common.project.facet.core.IFacetedProject; +import org.eclipse.wst.common.project.facet.core.IProjectFacet; +import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager; +import org.eclipse.wst.server.core.IModule; +import org.eclipse.wst.server.core.IServer; +import org.jboss.ide.eclipse.as.core.publishers.JstPublisher; +import org.jboss.ide.eclipse.as.core.server.IJBossServerPublisher; + +public class JBossServerBPELPublisher extends JstPublisher implements + IJBossServerPublisher { + + public JBossServerBPELPublisher() { + } + + public boolean accepts(String method, IServer server, IModule[] module) { + return "local".equals(method) && accepts(server, module); + } + = + public boolean accepts(IServer server, IModule[] module) { + IProject project =3D module[0].getProject(); + if(project =3D=3D null) return false; + = + try { + IFacetedProject fp =3D ProjectFacetsManager.create(project); + IProjectFacet pf =3D ProjectFacetsManager.getProjectFacet(IBPELModuleFa= cetConstants.BPEL20_PROJECT_FACET); + return fp.hasProjectFacet(pf); + } catch (Exception e) { + return false; + } + = + } +} Property changes on: trunk/bpel/plugins/org.jboss.tools.bpel.as.integration= /src/org/jboss/tools/bpel/as/integration/JBossServerBPELPublisher.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============4428805599888596759==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 16:05:02 2009 Content-Type: multipart/mixed; boundary="===============6496744529473787445==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17600 - trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/META-INF. Date: Tue, 15 Sep 2009 16:05:02 -0400 Message-ID: <200909152005.n8FK52sC023099@svn01.web.mwc.hst.phx2.redhat.com> --===============6496744529473787445== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-15 16:05:02 -0400 (Tue, 15 Sep 2009) New Revision: 17600 Modified: trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/META-INF/MANIFEST= .MF Log: restore bpel.as.integration java classes to fix plugin activation errors Modified: trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/META-INF/M= ANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/META-INF/MANIFES= T.MF 2009-09-15 20:00:39 UTC (rev 17599) +++ trunk/bpel/plugins/org.jboss.tools.bpel.as.integration/META-INF/MANIFES= T.MF 2009-09-15 20:05:02 UTC (rev 17600) @@ -14,3 +14,4 @@ Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Bundle-Vendor: %providerName +Export-Package: org.jboss.tools.bpel.as.integration --===============6496744529473787445==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 16:34:26 2009 Content-Type: multipart/mixed; boundary="===============6589615844527371284==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17601 - trunk/maven/features/org.jboss.tools.maven.feature. Date: Tue, 15 Sep 2009 16:34:26 -0400 Message-ID: <200909152034.n8FKYQJn029093@svn01.web.mwc.hst.phx2.redhat.com> --===============6589615844527371284== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-15 16:34:26 -0400 (Tue, 15 Sep 2009) New Revision: 17601 Modified: trunk/maven/features/org.jboss.tools.maven.feature/.project Log: correct project name for maven.sdk.feature Modified: trunk/maven/features/org.jboss.tools.maven.feature/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/features/org.jboss.tools.maven.feature/.project 2009-09-15 = 20:05:02 UTC (rev 17600) +++ trunk/maven/features/org.jboss.tools.maven.feature/.project 2009-09-15 = 20:34:26 UTC (rev 17601) @@ -1,6 +1,6 @@ - org.jboss.tools.maven.feature + org.jboss.tools.maven.sdk.feature --===============6589615844527371284==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 19:34:00 2009 Content-Type: multipart/mixed; boundary="===============7517259607613601066==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17602 - trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/factory. Date: Tue, 15 Sep 2009 19:34:00 -0400 Message-ID: <200909152334.n8FNY0ib031727@svn01.web.mwc.hst.phx2.redhat.com> --===============7517259607613601066== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-15 19:34:00 -0400 (Tue, 15 Sep 2009) New Revision: 17602 Modified: trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/valid= ator/factory/AdapterFactory.java Log: https://jira.jboss.org/jira/browse/JBIDE-4890 NPE was fixed Modified: trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpe= l/validator/factory/AdapterFactory.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/vali= dator/factory/AdapterFactory.java 2009-09-15 20:34:26 UTC (rev 17601) +++ trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/vali= dator/factory/AdapterFactory.java 2009-09-15 23:34:00 UTC (rev 17602) @@ -132,11 +132,15 @@ IResource adapt_Element2IResource ( Element elm ) { = Element top =3D elm.getOwnerDocument().getDocumentElement(); - = - // Find the EObject reference to the emf model in the hierarchy of the = - EObject eObj =3D (EObject) top.getUserData("emf.model"); - = - return adapt_EObject2IResource(eObj); + IResource result =3D null; + if (top !=3D null) { + // Find the EObject reference to the emf model in the hierarchy of + // the + EObject eObj =3D (EObject) top.getUserData("emf.model"); + + result =3D adapt_EObject2IResource(eObj); + } + return result; } = /** --===============7517259607613601066==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 21:02:20 2009 Content-Type: multipart/mixed; boundary="===============2427082154555355126==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17603 - in trunk/common/tests/org.jboss.tools.common.text.ext.test/projects/HiperlinksTestProject: .settings and 1 other directory. Date: Tue, 15 Sep 2009 21:02:19 -0400 Message-ID: <200909160102.n8G12JiI016856@svn01.web.mwc.hst.phx2.redhat.com> --===============2427082154555355126== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-15 21:02:19 -0400 (Tue, 15 Sep 2009) New Revision: 17603 Removed: trunk/common/tests/org.jboss.tools.common.text.ext.test/projects/Hiperli= nksTestProject/.settings/.jsdtscope trunk/common/tests/org.jboss.tools.common.text.ext.test/projects/Hiperli= nksTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.container trunk/common/tests/org.jboss.tools.common.text.ext.test/projects/Hiperli= nksTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.name trunk/common/tests/org.jboss.tools.common.text.ext.test/projects/Hiperli= nksTestProject/.settings/org.eclipse.wst.validation.prefs Modified: trunk/common/tests/org.jboss.tools.common.text.ext.test/projects/Hiperli= nksTestProject/.project Log: test project for common.text.ext.test was cleaned up to make tests faster Modified: trunk/common/tests/org.jboss.tools.common.text.ext.test/projects/= HiperlinksTestProject/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/tests/org.jboss.tools.common.text.ext.test/projects/Hiperl= inksTestProject/.project 2009-09-15 23:34:00 UTC (rev 17602) +++ trunk/common/tests/org.jboss.tools.common.text.ext.test/projects/Hiperl= inksTestProject/.project 2009-09-16 01:02:19 UTC (rev 17603) @@ -21,7 +21,6 @@ org.eclipse.jdt.core.javanature org.eclipse.wst.common.modulecore.ModuleCoreNature org.eclipse.wst.common.project.facet.core.nature - org.eclipse.wst.jsdt.core.jsNature org.jboss.tools.jsf.jsfnature Deleted: trunk/common/tests/org.jboss.tools.common.text.ext.test/projects/H= iperlinksTestProject/.settings/.jsdtscope =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/tests/org.jboss.tools.common.text.ext.test/projects/Hiperl= inksTestProject/.settings/.jsdtscope 2009-09-15 23:34:00 UTC (rev 17602) +++ trunk/common/tests/org.jboss.tools.common.text.ext.test/projects/Hiperl= inksTestProject/.settings/.jsdtscope 2009-09-16 01:02:19 UTC (rev 17603) @@ -1,11 +0,0 @@ - - - - - - - - - - - Deleted: trunk/common/tests/org.jboss.tools.common.text.ext.test/projects/H= iperlinksTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.container =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/tests/org.jboss.tools.common.text.ext.test/projects/Hiperl= inksTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.container 2009-= 09-15 23:34:00 UTC (rev 17602) +++ trunk/common/tests/org.jboss.tools.common.text.ext.test/projects/Hiperl= inksTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.container 2009-= 09-16 01:02:19 UTC (rev 17603) @@ -1 +0,0 @@ -org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file Deleted: trunk/common/tests/org.jboss.tools.common.text.ext.test/projects/H= iperlinksTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.name =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/tests/org.jboss.tools.common.text.ext.test/projects/Hiperl= inksTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.name 2009-09-15= 23:34:00 UTC (rev 17602) +++ trunk/common/tests/org.jboss.tools.common.text.ext.test/projects/Hiperl= inksTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.name 2009-09-16= 01:02:19 UTC (rev 17603) @@ -1 +0,0 @@ -Window \ No newline at end of file Deleted: trunk/common/tests/org.jboss.tools.common.text.ext.test/projects/H= iperlinksTestProject/.settings/org.eclipse.wst.validation.prefs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/tests/org.jboss.tools.common.text.ext.test/projects/Hiperl= inksTestProject/.settings/org.eclipse.wst.validation.prefs 2009-09-15 23:34= :00 UTC (rev 17602) +++ trunk/common/tests/org.jboss.tools.common.text.ext.test/projects/Hiperl= inksTestProject/.settings/org.eclipse.wst.validation.prefs 2009-09-16 01:02= :19 UTC (rev 17603) @@ -1,9 +0,0 @@ -#Thu Oct 02 16:44:50 PDT 2008 -DELEGATES_PREFERENCE=3DdelegateValidatorList -USER_BUILD_PREFERENCE=3DenabledBuildValidatorListorg.eclipse.wst.common.co= mponentcore.internal.ModuleCoreValidator;org.eclipse.wst.wsi.ui.internal.WS= IMessageValidator;org.jboss.tools.seam.internal.core.validation.SeamProject= PropertyValidator;org.eclipse.jst.j2ee.internal.web.validation.UIWarValidat= or;org.eclipse.jst.j2ee.internal.classpathdep.ClasspathDependencyValidator; -USER_MANUAL_PREFERENCE=3DenabledManualValidatorListorg.eclipse.wst.common.= componentcore.internal.ModuleCoreValidator;org.eclipse.wst.wsi.ui.internal.= WSIMessageValidator;org.jboss.tools.seam.internal.core.validation.SeamProje= ctPropertyValidator;org.eclipse.jst.j2ee.internal.web.validation.UIWarValid= ator;org.eclipse.jst.j2ee.internal.classpathdep.ClasspathDependencyValidato= r; -USER_PREFERENCE=3DoverrideGlobalPreferencesfalse -eclipse.preferences.version=3D1 -override=3Dfalse -suspend=3Dfalse -vf.version=3D3 --===============2427082154555355126==-- From jbosstools-commits at lists.jboss.org Tue Sep 15 21:06:57 2009 Content-Type: multipart/mixed; boundary="===============7024290868327426590==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17604 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/diagram/editors/actions. Date: Tue, 15 Sep 2009 21:06:57 -0400 Message-ID: <200909160106.n8G16vRg017887@svn01.web.mwc.hst.phx2.redhat.com> --===============7024290868327426590== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-15 21:06:57 -0400 (Tue, 15 Sep 2009) New Revision: 17604 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/actions/DiagramBaseAction.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/actions/ExportImageAction.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/actions/OpenMappingAction.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/actions/OpenSourceAction.java Log: exception handling was cleaned up in o.j.t.hibernate.ui.diagram.editors.act= ions Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/actions/DiagramBaseAction.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/DiagramBaseAction.java 2009-09-= 16 01:02:19 UTC (rev 17603) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/DiagramBaseAction.java 2009-09-= 16 01:06:57 UTC (rev 17604) @@ -30,22 +30,16 @@ = protected DiagramViewer getDiagramViewer() { DiagramViewer res =3D editor; - if (res =3D=3D null && PlatformUI.getWorkbench() !=3D null && = - PlatformUI.getWorkbench().getActiveWorkbenchWindow() !=3D null && - PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage() != =3D null && - PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().g= etActivePart() !=3D null) { - IWorkbenchPart part =3D PlatformUI.getWorkbench().getActiveWorkbenchWin= dow().getActivePage().getActivePart(); - if (part instanceof DiagramViewer) { - res =3D (DiagramViewer)part; - } else if (part instanceof ContentOutline) { - ContentOutline co =3D (ContentOutline)part; - if (co.getCurrentPage() instanceof DiagramContentOutlinePage) { - DiagramContentOutlinePage dcop =3D (DiagramContentOutlinePage)co.getC= urrentPage(); - res =3D dcop.getEditor(); - } + IWorkbenchPart part =3D PlatformUI.getWorkbench().getActiveWorkbenchWind= ow().getActivePage().getActivePart(); + if (part instanceof DiagramViewer) { + res =3D (DiagramViewer)part; + } else if (part instanceof ContentOutline) { + ContentOutline co =3D (ContentOutline)part; + if (co.getCurrentPage() instanceof DiagramContentOutlinePage) { + DiagramContentOutlinePage dcop =3D (DiagramContentOutlinePage)co.getCu= rrentPage(); + res =3D dcop.getEditor(); } } return res; } - } Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/actions/ExportImageAction.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ExportImageAction.java 2009-09-= 16 01:02:19 UTC (rev 17603) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ExportImageAction.java 2009-09-= 16 01:06:57 UTC (rev 17604) @@ -96,7 +96,7 @@ outStream =3D new FileOutputStream(filePath); outStream.write(imageData); outStream.flush(); - } catch (Exception e) { + } catch (IOException e) { HibernateConsolePlugin.getDefault().logErrorMessage("ExportImageAction"= , e); //$NON-NLS-1$ if (showErrDialog) { MessageDialog.openInformation(getDiagramViewer().getSite().getShell(), @@ -123,7 +123,7 @@ * SWT.IMAGE_ICO, SWT.IMAGE_JPEG, or SWT.IMAGE_PNG * @return the bytes of an encoded image for the specified Figure */ - private byte[] createImage(IFigure figure, int format) throws Exception { + private byte[] createImage(IFigure figure, int format) { = Device device =3D getDiagramViewer().getEditPartViewer().getControl() .getDisplay(); @@ -134,7 +134,6 @@ Image image =3D null; GC gc =3D null; Graphics g =3D null; - Exception error =3D null; try { image =3D new Image(device, r.width, r.height); gc =3D new GC(image); @@ -146,8 +145,6 @@ ImageLoader imageLoader =3D new ImageLoader(); imageLoader.data =3D new ImageData[] { image.getImageData() }; imageLoader.save(result, format); - } catch (Exception ex) { - error =3D ex; } finally { if (g !=3D null) { g.dispose(); @@ -159,9 +156,6 @@ image.dispose(); } } - if (error !=3D null) { - throw error; - } return result.toByteArray(); } = Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/actions/OpenMappingAction.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/OpenMappingAction.java 2009-09-= 16 01:02:19 UTC (rev 17603) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/OpenMappingAction.java 2009-09-= 16 01:06:57 UTC (rev 17604) @@ -14,6 +14,7 @@ import java.util.Iterator; import java.util.Set; = +import org.eclipse.core.runtime.CoreException; import org.eclipse.gef.ui.actions.SelectionAction; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jface.resource.ImageDescriptor; @@ -66,10 +67,8 @@ Property parentProperty =3D ((SpecialRootClass)compositSel.getPersiste= ntClass()).getProperty(); try { editorPart =3D org.hibernate.eclipse.console.actions.OpenMappingActio= n.run(consoleConfig, compositSel, parentProperty); - } catch (PartInitException e) { + } catch (CoreException e) { HibernateConsolePlugin.getDefault().logErrorMessage(DiagramViewerMess= ages.OpenMappingAction_canot_find_or_open_mapping_file, e); - } catch (JavaModelException e) { - HibernateConsolePlugin.getDefault().logErrorMessage(DiagramViewerMess= ages.OpenMappingAction_canot_find_or_open_mapping_file, e); } catch (FileNotFoundException e) { HibernateConsolePlugin.getDefault().logErrorMessage(DiagramViewerMess= ages.OpenMappingAction_canot_find_or_open_mapping_file, e); } @@ -86,10 +85,8 @@ } try { editorPart =3D org.hibernate.eclipse.console.actions.OpenMappingAction= .run(consoleConfig, selection, selectionParent); - } catch (PartInitException e) { + } catch (CoreException e) { HibernateConsolePlugin.getDefault().logErrorMessage(DiagramViewerMessa= ges.OpenMappingAction_open_mapping_file, e); - } catch (JavaModelException e) { - HibernateConsolePlugin.getDefault().logErrorMessage(DiagramViewerMessa= ges.OpenMappingAction_open_mapping_file, e); } catch (FileNotFoundException e) { HibernateConsolePlugin.getDefault().logErrorMessage(DiagramViewerMessa= ges.OpenMappingAction_open_mapping_file, e); } Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/actions/OpenSourceAction.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/OpenSourceAction.java 2009-09-1= 6 01:02:19 UTC (rev 17603) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/OpenSourceAction.java 2009-09-1= 6 01:06:57 UTC (rev 17604) @@ -14,6 +14,7 @@ import java.util.Iterator; import java.util.Set; = +import org.eclipse.core.runtime.CoreException; import org.eclipse.gef.ui.actions.SelectionAction; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jface.resource.ImageDescriptor; @@ -93,10 +94,8 @@ }*/ try { editorPart =3D org.hibernate.eclipse.console.actions.OpenSourceAction.= run(consoleConfig, selection, fullyQualifiedName); - } catch (PartInitException e) { + } catch (CoreException e) { HibernateConsolePlugin.getDefault().logErrorMessage(DiagramViewerMessa= ges.OpenSourceAction_canot_open_source_file, e); - } catch (JavaModelException e) { - HibernateConsolePlugin.getDefault().logErrorMessage(DiagramViewerMessa= ges.OpenSourceAction_canot_find_source_file, e); } catch (FileNotFoundException e) { HibernateConsolePlugin.getDefault().logErrorMessage(DiagramViewerMessa= ges.OpenSourceAction_canot_find_source_file, e); } --===============7024290868327426590==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 02:09:18 2009 Content-Type: multipart/mixed; boundary="===============4259070632400289917==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17605 - trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/WebContent/WEB-INF/lib. Date: Wed, 16 Sep 2009 02:09:18 -0400 Message-ID: <200909160609.n8G69I8O011331@svn01.web.mwc.hst.phx2.redhat.com> --===============4259070632400289917== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-16 02:09:18 -0400 (Wed, 16 Sep 2009) New Revision: 17605 Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3247/Web= Content/WEB-INF/lib/jsf-facelets.jar Log: fix JUnit test error in JsfAllTests.testOpenOnForJavaElementFromDeclaration= InJar Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/JBIDE3= 247/WebContent/WEB-INF/lib/jsf-facelets.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============4259070632400289917==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 02:45:27 2009 Content-Type: multipart/mixed; boundary="===============4842103149607102814==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17606 - in trunk: common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver and 10 other directories. Date: Wed, 16 Sep 2009 02:45:27 -0400 Message-ID: <200909160645.n8G6jRxV016809@svn01.web.mwc.hst.phx2.redhat.com> --===============4842103149607102814== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-16 02:45:26 -0400 (Wed, 16 Sep 2009) New Revision: 17606 Added: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/IVariable.java trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/JavaMemberELSegment.java trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/el/ContextVariableELSegment.java Removed: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ELOperandResolveStatus.java trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ELResolver2.java trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/el/SeamELOperandResolveStatus.java Modified: trunk/common/plugins/org.jboss.tools.common.el.core/META-INF/MANIFEST.MF trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ELCompletionEngine.java trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ELResolution.java trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ELResolutionImpl.java trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ELResolver.java trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ELSegment.java trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ELSegmentImpl.java trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/JavaMemberELSegmentImpl.java trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSFE= LCompletionEngine.java trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSFI= mplicitObjectELResolver.java trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSFM= essageELCompletionEngine.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/co= ntentassist/XmlContentAssistProcessor.java trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web= /kb/PageProcessor.java trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web= /kb/el/AbstractELCompletionEngine.java trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/co= re/ISeamContextVariable.java trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/el/SeamELCompletionEngine.java trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/el/SeamExpressionResolver.java trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/el/SeamPromptingProvider.java trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/validation/SeamELValidator.java trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/t= ext/java/SeamELProposalProcessor.java trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/v= iews/properties/SeamELAttributeContentProposalProvider.java trunk/seam/tests/org.jboss.tools.seam.ui.test/META-INF/MANIFEST.MF Log: https://jira.jboss.org/jira/browse/JBIDE-4860 Modified: trunk/common/plugins/org.jboss.tools.common.el.core/META-INF/MANI= FEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/META-INF/MANIFEST.M= F 2009-09-16 06:09:18 UTC (rev 17605) +++ trunk/common/plugins/org.jboss.tools.common.el.core/META-INF/MANIFEST.M= F 2009-09-16 06:45:26 UTC (rev 17606) @@ -9,7 +9,9 @@ Export-Package: org.jboss.tools.common.el.core, org.jboss.tools.common.el.core.model, org.jboss.tools.common.el.core.parser, - org.jboss.tools.common.el.core.resolver + org.jboss.tools.common.el.core.resolver, + org.jboss.tools.common.el.internal.core.parser, + org.jboss.tools.common.el.internal.core.parser.token Bundle-Activator: org.jboss.tools.common.el.core.Activator Require-Bundle: org.eclipse.jface.text, org.eclipse.wst.sse.core, Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss= /tools/common/el/core/resolver/ELCompletionEngine.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELCompletionEngine.java 2009-09-16 06:09:18 UTC (r= ev 17605) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELCompletionEngine.java 2009-09-16 06:45:26 UTC (r= ev 17606) @@ -19,8 +19,8 @@ = public interface ELCompletionEngine { = - public ELOperandResolveStatus resolveELOperand(IFile file, ELExpression o= perand, = + public ELResolution resolveELOperand(IFile file, ELExpression operand, = boolean returnEqualedVariablesOnly, List vars, ElVarSearcher varSe= archer) throws BadLocationException, StringIndexOutOfBoundsException; = public ELParserFactory getParserFactory(); -} +} \ No newline at end of file Deleted: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/= tools/common/el/core/resolver/ELOperandResolveStatus.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELOperandResolveStatus.java 2009-09-16 06:09:18 UT= C (rev 17605) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELOperandResolveStatus.java 2009-09-16 06:45:26 UT= C (rev 17606) @@ -1,166 +0,0 @@ -/*************************************************************************= ****** = - * Copyright (c) 2007 Red Hat, Inc. = - * Distributed under license by Red Hat, Inc. All rights reserved. = - * This program is made available under the terms of the = - * Eclipse Public License v1.0 which accompanies this distribution, = - * and is available at http://www.eclipse.org/legal/epl-v10.html = - * = - * Contributors: = - * Red Hat, Inc. - initial API and implementation = - *************************************************************************= *****/ = -package org.jboss.tools.common.el.core.resolver; - -import java.util.HashMap; -import java.util.Map; -import java.util.Set; -import java.util.TreeSet; - -import org.jboss.tools.common.el.core.model.ELInvocationExpression; -import org.jboss.tools.common.text.TextProposal; - -/** - * Status of EL resolving. - * @author Jeremy - */ -public class ELOperandResolveStatus { - private ELInvocationExpression tokens; - Map unpairedGettersOrSetters; - Set proposals; - private ELInvocationExpression lastResolvedToken; - private boolean isMapOrCollectionOrBundleAmoungTheTokens =3D false; - private TypeInfoCollector.MemberInfo memberOfResolvedOperand; - - /** - * @return MemberInfo of last segment of EL operand. Null if El is not re= solved. - */ - public TypeInfoCollector.MemberInfo getMemberOfResolvedOperand() { - return memberOfResolvedOperand; - } - - /** - * Sets MemberInfo for last segment of EL operand. - * @param lastResolvedMember - */ - public void setMemberOfResolvedOperand( - TypeInfoCollector.MemberInfo lastResolvedMember) { - this.memberOfResolvedOperand =3D lastResolvedMember; - } - - /** - * Constructor - * @param tokens Tokens of EL - */ - public ELOperandResolveStatus(ELInvocationExpression tokens) { - this.tokens =3D tokens; - } - - /** - * @return true if EL contains any not parametrized Collection or Resourc= eBundle. - */ - public boolean isMapOrCollectionOrBundleAmoungTheTokens() { - return this.isMapOrCollectionOrBundleAmoungTheTokens; - } - - public void setMapOrCollectionOrBundleAmoungTheTokens() { - this.isMapOrCollectionOrBundleAmoungTheTokens =3D true; - } - - /** - * @return true if EL is resolved. - */ - public boolean isOK() { - return !getProposals().isEmpty() || isMapOrCollectionOrBundleAmoungTheTo= kens(); = - } - - /** - * @return false if El is not resolved. - */ - public boolean isError() { - return !isOK(); - } - - /** - * @return List of resolved tokens of EL. Includes separators "." - */ - public ELInvocationExpression getResolvedTokens() { - return lastResolvedToken; - } - - /** - * @return List of unresolved tokens of EL. - */ - public ELInvocationExpression getUnresolvedTokens() { - if(lastResolvedToken =3D=3D tokens) return null; - if(lastResolvedToken !=3D null && (lastResolvedToken.getParent() instanc= eof ELInvocationExpression)) { - return (ELInvocationExpression)lastResolvedToken.getParent(); - } - ELInvocationExpression l =3D tokens; - while(l !=3D null && l.getLeft() !=3D lastResolvedToken) { - l =3D l.getLeft(); - } - return l; - } - - /** - * @return Last resolved token of EL. Can be separator "." // no, change= it - */ - public ELInvocationExpression getLastResolvedToken() { - return lastResolvedToken; - } - - /** - * @param lastResolvedToken Last resolved token of EL. Can be separator "= ." - */ - public void setLastResolvedToken(ELInvocationExpression lastResolvedToken= ) { - this.lastResolvedToken =3D lastResolvedToken; - } - - /** - * @return Tokens of EL. - */ - public ELInvocationExpression getTokens() { - return tokens; - } - - /** - * @param tokens Tokens of EL. - */ - public void setTokens(ELInvocationExpression tokens) { - this.tokens =3D tokens; - } - - /** - * = - * @return Set of proposals for EL - */ - public Set getProposals() { - return proposals =3D=3D null ? new TreeSet() : proposals; - } - - /** - * @param proposals Set of TextProposal proposals. - */ - public void setProposals(Set proposals) { - this.proposals =3D proposals; - } - - /** - * @return Map of unpaired getters and setters (getters/setters without p= roper setters/getters). - * of all properties used in EL. - * Key - name of property. - * Value - MethodInfo of existed getter/setter. - */ - public Map getUnpairedGettersOrSett= ers() { - if (unpairedGettersOrSetters =3D=3D null) { - unpairedGettersOrSetters =3D new HashMap(); - } - return unpairedGettersOrSetters; - } - - /** - * Clear Map of unpaired getters and setters. - */ - public void clearUnpairedGettersOrSetters() { - getUnpairedGettersOrSetters().clear(); - } -} \ No newline at end of file Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss= /tools/common/el/core/resolver/ELResolution.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolution.java 2009-09-16 06:09:18 UTC (rev 176= 05) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolution.java 2009-09-16 06:45:26 UTC (rev 176= 06) @@ -58,5 +58,10 @@ /** * @return true if there is any unresolved segment. */ - boolean hasUnresolvedSegment(); + boolean isResolved(); + + /** + * @return last segment. May return null. + */ + ELSegment getLastSegment(); } \ No newline at end of file Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss= /tools/common/el/core/resolver/ELResolutionImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolutionImpl.java 2009-09-16 06:09:18 UTC (rev= 17605) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolutionImpl.java 2009-09-16 06:45:26 UTC (rev= 17606) @@ -11,10 +11,14 @@ package org.jboss.tools.common.el.core.resolver; = import java.util.ArrayList; +import java.util.HashSet; import java.util.List; +import java.util.Set; = import org.eclipse.jdt.core.IJavaElement; import org.jboss.tools.common.el.core.model.ELExpression; +import org.jboss.tools.common.el.core.model.ELInvocationExpression; +import org.jboss.tools.common.text.TextProposal; = /** * @author Alexey Kazakov @@ -24,6 +28,9 @@ protected ELContext context; protected List segments =3D new ArrayList(); protected ELExpression operand; + protected Set proposals =3D new HashSet(); + protected ELInvocationExpression lastResolvedToken; + protected boolean mapOrCollectionOrBundleAmoungTheTokens; = /* (non-Javadoc) * @see org.jboss.tools.common.el.core.resolver.ELResolution#findSegmentB= yJavaElement(org.eclipse.jdt.core.IJavaElement) @@ -74,15 +81,107 @@ * @see org.jboss.tools.common.el.core.resolver.ELResolution#getUnresolve= dSegment() */ public ELSegment getUnresolvedSegment() { - // TODO + for (ELSegment segment : segments) { + if(!segment.isResolved()) { + return segment; + } + } return null; } = /* (non-Javadoc) - * @see org.jboss.tools.common.el.core.resolver.ELResolution#hasUnresolve= dSegment() + * @see org.jboss.tools.common.el.core.resolver.ELResolution#isResolved() */ - public boolean hasUnresolvedSegment() { - // TODO - return false; + public boolean isResolved() { + return !segments.isEmpty() && getUnresolvedSegment()=3D=3Dnull; } + + /** + * @return the proposals + */ + public Set getProposals() { + return proposals; + } + + /** + * @param proposals the proposals to set + */ + public void setProposals(Set proposals) { + this.proposals =3D proposals; + } + + /** + * @param operand the operand to set + */ + public void setSourceOperand(ELExpression operand) { + this.operand =3D operand; + } + + /** + * @param context the context to set + */ + public void setContext(ELContext context) { + this.context =3D context; + } + + /** + * @param segments the segments to set + */ + public void setSegments(List segments) { + this.segments =3D segments; + } + + /** + * @return the lastResolvedToken + */ + public ELInvocationExpression getLastResolvedToken() { + return lastResolvedToken; + } + + /** + * @param lastResolvedToken the lastResolvedToken to set + */ + public void setLastResolvedToken(ELInvocationExpression lastResolvedToken= ) { + this.lastResolvedToken =3D lastResolvedToken; + } + + /** + * @return the operand + */ + public ELExpression getOperand() { + return operand; + } + + /** + * @param operand the operand to set + */ + public void setOperand(ELExpression operand) { + this.operand =3D operand; + } + + /** + * @return the mapOrCollectionOrBundleAmoungTheTokens + */ + public boolean isMapOrCollectionOrBundleAmoungTheTokens() { + return mapOrCollectionOrBundleAmoungTheTokens; + } + + /** + * @param mapOrCollectionOrBundleAmoungTheTokens the mapOrCollectionOrBun= dleAmoungTheTokens to set + */ + public void setMapOrCollectionOrBundleAmoungTheTokens( + boolean mapOrCollectionOrBundleAmoungTheTokens) { + this.mapOrCollectionOrBundleAmoungTheTokens =3D mapOrCollectionOrBundleA= moungTheTokens; + } + + /* + * (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.ELResolution#getLastSegme= nt() + */ + public ELSegment getLastSegment() { + if(!getSegments().isEmpty()) { + return getSegments().get(getSegments().size()-1); + } + return null; + } } \ No newline at end of file Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss= /tools/common/el/core/resolver/ELResolver.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolver.java 2009-09-16 06:09:18 UTC (rev 17605) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolver.java 2009-09-16 06:45:26 UTC (rev 17606) @@ -16,25 +16,24 @@ import org.jboss.tools.common.text.TextProposal; = /** - * Represents EL Resolver + * Represents EL Resolver. + * TODO replace old ELResolver interface with this one. * @author Alexey Kazakov */ public interface ELResolver { = /** - * @param elString - * @param position * @param context - * @param returnEqualedVariablesOnly - * @return + * @param el + * @return proposal list */ - List getCompletions(String elString, boolean returnEqualedV= ariablesOnly, int position, ELContext context); + List getProposals(ELContext context, String el); = /** - * = - * @param operand + * Resolves EL operand. * @param context + * @param operand * @return */ - ELOperandResolveStatus resolveELOperand(ELExpression operand, ELContext c= ontext, boolean returnEqualedVariablesOnly); + ELResolution resolve(ELContext context, ELExpression operand); } \ No newline at end of file Deleted: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/= tools/common/el/core/resolver/ELResolver2.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolver2.java 2009-09-16 06:09:18 UTC (rev 1760= 5) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolver2.java 2009-09-16 06:45:26 UTC (rev 1760= 6) @@ -1,39 +0,0 @@ -/*************************************************************************= ****** = - * Copyright (c) 2009 Red Hat, Inc. = - * Distributed under license by Red Hat, Inc. All rights reserved. = - * This program is made available under the terms of the = - * Eclipse Public License v1.0 which accompanies this distribution, = - * and is available at http://www.eclipse.org/legal/epl-v10.html = - * = - * Contributors: = - * Red Hat, Inc. - initial API and implementation = - *************************************************************************= *****/ = -package org.jboss.tools.common.el.core.resolver; - -import java.util.List; - -import org.jboss.tools.common.el.core.model.ELExpression; -import org.jboss.tools.common.text.TextProposal; - -/** - * Represents EL Resolver. - * TODO replace old ELResolver interface with this one. - * @author Alexey Kazakov - */ -public interface ELResolver2 { - - /** - * @param context - * @param el - * @return proposal list - */ - List getProposals(ELContext context, String el); - - /** - * Resolves EL operand. - * @param context - * @param operand - * @return - */ - ELResolution resolve(ELContext context, ELExpression operand); -} \ No newline at end of file Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss= /tools/common/el/core/resolver/ELSegment.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELSegment.java 2009-09-16 06:09:18 UTC (rev 17605) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELSegment.java 2009-09-16 06:45:26 UTC (rev 17606) @@ -10,8 +10,10 @@ *************************************************************************= *****/ = package org.jboss.tools.common.el.core.resolver; = +import java.util.List; + import org.eclipse.core.resources.IResource; -import org.jboss.tools.common.el.core.model.ELInvocationExpression; +import org.jboss.tools.common.el.core.parser.LexicalToken; import org.jboss.tools.common.model.project.ext.ITextSourceReference; = /** @@ -23,7 +25,7 @@ /** * @return source EL token. */ - ELInvocationExpression getToken(); + LexicalToken getToken(); = /** * @return true if the segment has been resolved. @@ -39,4 +41,9 @@ * @return source reference of underlying object. */ ITextSourceReference getSourceReference(); + + /** + * @return underlying variables. + */ + List getVariables(); } \ No newline at end of file Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss= /tools/common/el/core/resolver/ELSegmentImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELSegmentImpl.java 2009-09-16 06:09:18 UTC (rev 17= 605) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELSegmentImpl.java 2009-09-16 06:45:26 UTC (rev 17= 606) @@ -10,8 +10,11 @@ *************************************************************************= *****/ = package org.jboss.tools.common.el.core.resolver; = +import java.util.ArrayList; +import java.util.List; + import org.eclipse.core.resources.IResource; -import org.jboss.tools.common.el.core.model.ELInvocationExpression; +import org.jboss.tools.common.el.core.parser.LexicalToken; import org.jboss.tools.common.model.project.ext.ITextSourceReference; = /** @@ -21,8 +24,9 @@ = protected IResource resource; protected ITextSourceReference sourceReference; - protected ELInvocationExpression token; + protected LexicalToken token; protected boolean resolved =3D false; + protected List variables =3D new ArrayList(); = /* (non-Javadoc) * @see org.jboss.tools.common.el.core.resolver.ELSegment#getResource() @@ -41,7 +45,7 @@ /* (non-Javadoc) * @see org.jboss.tools.common.el.core.resolver.ELSegment#getToken() */ - public ELInvocationExpression getToken() { + public LexicalToken getToken() { return token; } = @@ -69,7 +73,7 @@ /** * @param token the token to set */ - public void setToken(ELInvocationExpression token) { + public void setToken(LexicalToken token) { this.token =3D token; } = @@ -79,4 +83,18 @@ public void setResolved(boolean resolved) { this.resolved =3D resolved; } + + /** + * @return the variables + */ + public List getVariables() { + return variables; + } + + /** + * @param variable the variables to set + */ + public void setVariables(List variables) { + this.variables =3D variables; + } } \ No newline at end of file Added: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/to= ols/common/el/core/resolver/IVariable.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/IVariable.java (rev 0) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/IVariable.java 2009-09-16 06:45:26 UTC (rev 17606) @@ -0,0 +1,22 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.common.el.core.resolver; + +/** + * @author Alexey Kazakov + */ +public interface IVariable { + + /** + * @return name of the variable + */ + String getName(); +} \ No newline at end of file Property changes on: trunk/common/plugins/org.jboss.tools.common.el.core/sr= c/org/jboss/tools/common/el/core/resolver/IVariable.java ___________________________________________________________________ Name: svn:mime-type + text/plain Copied: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/t= ools/common/el/core/resolver/JavaMemberELSegment.java (from rev 17567, trun= k/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/= el/core/resolver/JavaMemberElSegment.java) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/JavaMemberELSegment.java (= rev 0) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/JavaMemberELSegment.java 2009-09-16 06:45:26 UTC (= rev 17606) @@ -0,0 +1,40 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.common.el.core.resolver; + +import org.eclipse.jdt.core.IJavaElement; + +/** + * Describes a segment of EL operand which is a Java Element. = + * @author Alexey Kazakov + */ +public interface JavaMemberELSegment extends ELSegment { + + /** + * @return member info object of resolved segment. May return null. + */ + TypeInfoCollector.MemberInfo getMemberInfo(); + + /** + * @return Java Element which represent this resolve segment. May return = null. = + */ + IJavaElement getJavaElement(); + + /** + * @return true if an underlying object is field and this field has gette= r. + */ + boolean hasGetter(); + + /** + * @return true if an underlying object is field and this field has sette= r. + */ + boolean hasSetter(); +} \ No newline at end of file Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss= /tools/common/el/core/resolver/JavaMemberELSegmentImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/JavaMemberELSegmentImpl.java 2009-09-16 06:09:18 U= TC (rev 17605) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/JavaMemberELSegmentImpl.java 2009-09-16 06:45:26 U= TC (rev 17606) @@ -10,18 +10,22 @@ *************************************************************************= *****/ = package org.jboss.tools.common.el.core.resolver; = +import java.util.HashMap; +import java.util.Map; + import org.eclipse.jdt.core.IJavaElement; import org.jboss.tools.common.el.core.resolver.TypeInfoCollector.MemberInf= o; = /** * @author Alexey Kazakov */ -public class JavaMemberELSegmentImpl extends ELSegmentImpl implements Java= MemberElSegment { +public class JavaMemberELSegmentImpl extends ELSegmentImpl implements Java= MemberELSegment { = protected IJavaElement element; protected MemberInfo memberInfo; protected boolean hasSetter; protected boolean hasGetter; + protected Map unpairedGettersOrSett= ers; = /* (non-Javadoc) * @see org.jboss.tools.common.el.core.resolver.JavaMemberElSegment#getJa= vaElement() @@ -55,6 +59,9 @@ * @return the element */ public IJavaElement getElement() { + if(element=3D=3Dnull && memberInfo!=3Dnull) { + element =3D memberInfo.getJavaElement(); + } return element; } = @@ -99,4 +106,24 @@ public void setMemberInfo(MemberInfo memberInfo) { this.memberInfo =3D memberInfo; } + + /** + * @return Map of unpaired getters and setters (getters/setters without p= roper setters/getters). + * of all properties used in EL. + * Key - name of property. + * Value - MethodInfo of existed getter/setter. + */ + public Map getUnpairedGettersOrSett= ers() { + if (unpairedGettersOrSetters =3D=3D null) { + unpairedGettersOrSetters =3D new HashMap(); + } + return unpairedGettersOrSetters; + } + + /** + * Clear Map of unpaired getters and setters. + */ + public void clearUnpairedGettersOrSetters() { + getUnpairedGettersOrSetters().clear(); + } } \ No newline at end of file Modified: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/mod= el/JSFELCompletionEngine.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSF= ELCompletionEngine.java 2009-09-16 06:09:18 UTC (rev 17605) +++ trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSF= ELCompletionEngine.java 2009-09-16 06:45:26 UTC (rev 17606) @@ -19,7 +19,7 @@ import org.jboss.tools.common.el.core.model.ELInvocationExpression; import org.jboss.tools.common.el.core.parser.ELParserFactory; import org.jboss.tools.common.el.core.parser.ELParserUtil; -import org.jboss.tools.common.el.core.resolver.ELOperandResolveStatus; +import org.jboss.tools.common.el.core.resolver.IVariable; import org.jboss.tools.common.el.core.resolver.TypeInfoCollector; import org.jboss.tools.common.model.project.IModelNature; import org.jboss.tools.common.model.util.EclipseResourceUtil; @@ -65,15 +65,6 @@ = /* * (non-Javadoc) - * @see org.jboss.tools.jst.web.kb.el.AbstractELCompletionEngine#newELOpe= randResolveStatus(org.jboss.tools.common.el.core.model.ELInvocationExpressi= on) - */ - @Override - protected ELOperandResolveStatus newELOperandResolveStatus(ELInvocationEx= pression tokens) { - return new ELOperandResolveStatus(tokens); - } - - /* - * (non-Javadoc) * @see org.jboss.tools.jst.web.kb.el.AbstractELCompletionEngine#resolveV= ariables(org.eclipse.core.resources.IFile, org.jboss.tools.common.el.core.m= odel.ELInvocationExpression, boolean, boolean) */ public List resolveVariables(IFile file, ELInvocationExpres= sion expr, boolean isFinal, boolean onlyEqualNames) { Modified: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/mod= el/JSFImplicitObjectELResolver.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSF= ImplicitObjectELResolver.java 2009-09-16 06:09:18 UTC (rev 17605) +++ trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSF= ImplicitObjectELResolver.java 2009-09-16 06:45:26 UTC (rev 17606) @@ -28,6 +28,9 @@ import org.jboss.tools.common.el.core.model.ELModel; import org.jboss.tools.common.el.core.parser.ELParser; import org.jboss.tools.common.el.core.parser.ELParserUtil; +import org.jboss.tools.common.el.core.resolver.ELResolution; +import org.jboss.tools.common.el.core.resolver.ELSegment; +import org.jboss.tools.common.el.core.resolver.JavaMemberELSegment; import org.jboss.tools.common.el.core.resolver.TypeInfoCollector; import org.jboss.tools.common.model.project.IModelNature; import org.jboss.tools.common.model.util.EclipseResourceUtil; @@ -101,11 +104,17 @@ = for (String var : elVars) { try { - TypeInfoCollector.MemberInfo info =3D resolveEL(file, IMPLICT_OBJECTS_= ELS.get(var), false); - if(info!=3Dnull) { - IType type =3D info.getMemberType(); - if(type!=3Dnull) { - resolvedVariables.add(new Variable(var, type)); + ELResolution resolution =3D resolveEL(file, IMPLICT_OBJECTS_ELS.get(va= r), false); + if(resolution.isResolved()) { + ELSegment segment =3D resolution.getLastSegment(); + if(segment instanceof JavaMemberELSegment) { + TypeInfoCollector.MemberInfo info =3D ((JavaMemberELSegment)segment)= .getMemberInfo(); + if(info!=3Dnull) { + IType type =3D info.getMemberType(); + if(type!=3Dnull) { + resolvedVariables.add(new Variable(var, type)); + } + } } } } catch (StringIndexOutOfBoundsException e) { Modified: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/mod= el/JSFMessageELCompletionEngine.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSF= MessageELCompletionEngine.java 2009-09-16 06:09:18 UTC (rev 17605) +++ trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSF= MessageELCompletionEngine.java 2009-09-16 06:45:26 UTC (rev 17606) @@ -32,8 +32,11 @@ import org.jboss.tools.common.el.core.parser.ELParserFactory; import org.jboss.tools.common.el.core.parser.ELParserUtil; import org.jboss.tools.common.el.core.resolver.ELContext; -import org.jboss.tools.common.el.core.resolver.ELOperandResolveStatus; +import org.jboss.tools.common.el.core.resolver.ELResolution; +import org.jboss.tools.common.el.core.resolver.ELResolutionImpl; import org.jboss.tools.common.el.core.resolver.ELResolver; +import org.jboss.tools.common.el.core.resolver.ELSegmentImpl; +import org.jboss.tools.common.el.core.resolver.IVariable; import org.jboss.tools.common.model.XModel; import org.jboss.tools.common.model.project.IModelNature; import org.jboss.tools.common.model.util.EclipseResourceUtil; @@ -62,8 +65,12 @@ JSFModelPlugin.getPluginLog().logError(e); } = - protected ELOperandResolveStatus newELOperandResolveStatus(ELInvocationEx= pression tokens) { - return new ELOperandResolveStatus(tokens); + /* + * (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.ELResolver2#getProposals(= org.jboss.tools.common.el.core.resolver.ELContext, java.lang.String) + */ + public List getProposals(ELContext context, String el) { + return getCompletions(el, false, 0, context); } = public List getCompletions(String elString, @@ -87,30 +94,39 @@ return proposals; } = - public ELOperandResolveStatus resolveELOperand(ELExpression operand, + /* + * (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.ELResolver2#resolve(org.j= boss.tools.common.el.core.resolver.ELContext, org.jboss.tools.common.el.cor= e.model.ELExpression) + */ + public ELResolution resolve(ELContext context, ELExpression operand) { + ELResolutionImpl resolution =3D resolveELOperand(operand, context, true); + resolution.setContext(context); + return resolution; + } + + public ELResolutionImpl resolveELOperand(ELExpression operand, ELContext context, boolean returnEqualedVariablesOnly) { - ELOperandResolveStatus status =3D null; IResourceBundle[] bundles =3D new IResourceBundle[0]; if(context instanceof IPageContext) { IPageContext pageContext =3D (IPageContext)context; bundles =3D pageContext.getResourceBundles(); } try { - status =3D resolveELOperand(context.getResource(), operand, returnEqual= edVariablesOnly, bundles); + return resolveELOperand(context.getResource(), operand, returnEqualedVa= riablesOnly, bundles); } catch (StringIndexOutOfBoundsException e) { log(e); } catch (BadLocationException e) { log(e); } - return status; + return null; } = public List getCompletions(IFile file, IDocument document, = CharSequence prefix, = int position, boolean returnEqualedVariablesOnly, IResourceBundle[] bun= dles) throws BadLocationException, StringIndexOutOfBoundsException { List completions =3D new ArrayList(); - = - ELOperandResolveStatus status =3D resolveELOperand(file, parseOperand(""= + prefix), returnEqualedVariablesOnly, bundles); //$NON-NLS-1$ - if (status.isOK()) { + + ELResolutionImpl status =3D resolveELOperand(file, parseOperand("" + pre= fix), returnEqualedVariablesOnly, bundles); //$NON-NLS-1$ + if (status.isResolved()) { completions.addAll(status.getProposals()); } = @@ -127,11 +143,11 @@ return is.get(0).getExpression(); } = - public ELOperandResolveStatus resolveELOperand(IFile file, + public ELResolutionImpl resolveELOperand(IFile file, ELExpression operand, boolean returnEqualedVariablesOnly, IResourceBund= le[] bundles) throws BadLocationException, StringIndexOutOfBoundsException { if(!(operand instanceof ELInvocationExpression) || file =3D=3D null) { - return newELOperandResolveStatus(null); + return null; } = ELInvocationExpression expr =3D (ELInvocationExpression)operand; @@ -139,7 +155,8 @@ && ((ELPropertyInvocation)expr).getName() =3D=3D null; boolean isArgument =3D expr.getType() =3D=3D ELObjectType.EL_ARGUMENT_IN= VOCATION; = - ELOperandResolveStatus status =3D newELOperandResolveStatus(expr); + ELResolutionImpl resolution =3D new ELResolutionImpl(); + resolution.setOperand(expr); ELInvocationExpression left =3D expr; = List resolvedVariables =3D new ArrayList(); @@ -161,14 +178,14 @@ returnEqualedVariablesOnly); if (resolvedVars !=3D null && !resolvedVars.isEmpty()) { resolvedVariables =3D resolvedVars; - status.setLastResolvedToken(left); + resolution.setLastResolvedToken(left); break; } left =3D (ELInvocationExpression)left.getLeft(); } = } = - if (status.getResolvedTokens() =3D=3D null && = + if (resolution.getLastResolvedToken() =3D=3D null && = !returnEqualedVariablesOnly && = expr !=3D null && = isIncomplete) { @@ -176,6 +193,12 @@ // the tokens are the part of var name ended with a separator (.) resolvedVariables =3D resolveVariables(file, expr, bundles, true, retur= nEqualedVariablesOnly); = Set proposals =3D new TreeSet(TextProposal.= KB_PROPOSAL_ORDER); + + ELSegmentImpl segment =3D new ELSegmentImpl(); + segment.setToken(expr.getFirstToken()); + segment.setResolved(false); + resolution.addSegment(segment); + for (Variable var : resolvedVariables) { String varName =3D var.getName(); if(varName.startsWith(operand.getText())) { @@ -185,15 +208,20 @@ proposals.add(proposal); } } - status.setProposals(proposals); - return status; + resolution.setProposals(proposals); + return resolution; } = // Here we have a list of vars for some part of expression // OK. we'll proceed with members of these vars - if (status.getResolvedTokens() =3D=3D status.getTokens()) { + if (resolution.getLastResolvedToken() =3D=3D operand) { // First segment is the last one Set proposals =3D new TreeSet(TextProposal.= KB_PROPOSAL_ORDER); + ELSegmentImpl segment =3D new ELSegmentImpl(); + segment.setToken(operand.getFirstToken()); + segment.setResolved(true); + resolution.addSegment(segment); + for (Variable var : resolvedVariables) { String varName =3D var.getName(); if(operand.getLength()<=3DvarName.length()) { @@ -207,24 +235,28 @@ setImage(proposal); proposals.add(proposal); } + segment.getVariables().add(var); } - status.setLastResolvedToken(expr); - status.setProposals(proposals); - return status; + resolution.setLastResolvedToken(expr); + resolution.setProposals(proposals); + return resolution; } = //process segments one by one if(left !=3D null) while(left !=3D expr) { left =3D (ELInvocationExpression)left.getParent(); if (left !=3D expr) { // inside expression - return status; + ELSegmentImpl segment =3D new ELSegmentImpl(); + segment.setResolved(false); + resolution.addSegment(segment); + return resolution; } else { // Last segment - resolveLastSegment((ELInvocationExpression)operand, resolvedVariables,= status, returnEqualedVariablesOnly); + resolveLastSegment((ELInvocationExpression)operand, resolvedVariables,= resolution, returnEqualedVariablesOnly); break; } } = - return status; + return resolution; } = public List resolveVariables(IFile file, ELInvocationExpression= expr, IResourceBundle[] bundles, boolean isFinal, boolean onlyEqualNames) { @@ -267,10 +299,19 @@ = protected void resolveLastSegment(ELInvocationExpression expr, = List members, - ELOperandResolveStatus status, + ELResolutionImpl resolution, boolean returnEqualedVariablesOnly) { Set kbProposals =3D new TreeSet(TextProposal= .KB_PROPOSAL_ORDER); - = + + ELSegmentImpl segment =3D new ELSegmentImpl(); + resolution.setProposals(kbProposals); + if(expr instanceof ELPropertyInvocation) { + segment.setToken(((ELPropertyInvocation)expr).getName()); = + } + if(segment.getToken()!=3Dnull) { + resolution.addSegment(segment); + } + if (expr.getType() =3D=3D ELObjectType.EL_PROPERTY_INVOCATION && ((ELPro= pertyInvocation)expr).getName() =3D=3D null) { // return all the methods + properties for (Variable mbr : members) { @@ -293,7 +334,7 @@ kbProposal.setReplacementString(proposal); = setImage(kbProposal); - = + kbProposals.add(kbProposal); = break; @@ -311,8 +352,8 @@ Set proposalsToFilter =3D new TreeSet(); boolean isMessages =3D false; for (Variable mbr : members) { - isMessages =3D true; - filterSingularMember(mbr, proposalsToFilter); + isMessages =3D true; + filterSingularMember(mbr, proposalsToFilter); } = String filter =3D expr.getMemberName(); @@ -329,20 +370,22 @@ filter =3D filter.substring(1); } else { //Value is set as expression itself, we cannot compute it - if(isMessages) status.setMapOrCollectionOrBundleAmoungTheTokens(); + if(isMessages) { + resolution.setMapOrCollectionOrBundleAmoungTheTokens(true); + } return; } } - = + for (String proposal : proposalsToFilter) { if(returnEqualedVariablesOnly) { // This is used for validation. if (proposal.equals(filter)) { TextProposal kbProposal =3D new TextProposal(); kbProposal.setReplacementString(proposal); - = + setImage(kbProposal); - = + kbProposals.add(kbProposal); = break; @@ -350,48 +393,48 @@ } else if (proposal.startsWith(filter)) { // This is used for CA. TextProposal kbProposal =3D new TextProposal(); - = + String replacementString =3D proposal.substring(filter.length()); if (bSurroundWithQuotes) { replacementString =3D "'" + replacementString + "']"; //$NON-NLS-1$ = //$NON-NLS-2$ } - = + kbProposal.setReplacementString(replacementString); kbProposal.setImage(getELProposalImage()); - = + kbProposals.add(kbProposal); } } } - status.setProposals(kbProposals); - if (status.isOK()){ - status.setLastResolvedToken(expr); + segment.setResolved(!kbProposals.isEmpty()); + if (resolution.isResolved()){ + resolution.setLastResolvedToken(expr); } } = protected void processSingularMember(Variable mbr, Set kbPr= oposals) { - // Surround the "long" keys containing the dots with [' '] = - TreeSet keys =3D new TreeSet(String.CASE_INSENSITIVE_OR= DER); - keys.addAll(mbr.getKeys()); - Iterator sortedKeys =3D keys.iterator(); - while(sortedKeys.hasNext()) { - String key =3D sortedKeys.next(); - if (key =3D=3D null || key.length() =3D=3D 0) - continue; - if (key.indexOf('.') !=3D -1) { - TextProposal proposal =3D new TextProposal(); - proposal.setReplacementString("['" + key + "']"); //$NON-NLS-1$ //$NO= N-NLS-2$ - setImage(proposal); - = - kbProposals.add(proposal); - } else { - TextProposal proposal =3D new TextProposal(); - proposal.setReplacementString(key); - setImage(proposal); - = - kbProposals.add(proposal); - } + // Surround the "long" keys containing the dots with [' '] = + TreeSet keys =3D new TreeSet(String.CASE_INSENSITIVE_ORD= ER); + keys.addAll(mbr.getKeys()); + Iterator sortedKeys =3D keys.iterator(); + while(sortedKeys.hasNext()) { + String key =3D sortedKeys.next(); + if (key =3D=3D null || key.length() =3D=3D 0) + continue; + if (key.indexOf('.') !=3D -1) { + TextProposal proposal =3D new TextProposal(); + proposal.setReplacementString("['" + key + "']"); //$NON-NLS-1$ //$NON= -NLS-2$ + setImage(proposal); + = + kbProposals.add(proposal); + } else { + TextProposal proposal =3D new TextProposal(); + proposal.setReplacementString(key); + setImage(proposal); + = + kbProposals.add(proposal); } + } } = protected void filterSingularMember(Variable mbr, Set proposalsTo= Filter) { @@ -401,11 +444,11 @@ } } = - static class Variable { + static class Variable implements IVariable { IFile f; String name; String basename; - = + public Variable(String name, String basename, IFile f) { this.name =3D name; this.basename =3D basename; @@ -415,11 +458,11 @@ public String getName() { return name; } - = + public String getBasename() { return basename; } - = + public Collection getKeys() { TreeSet result =3D new TreeSet(); IModelNature n =3D EclipseResourceUtil.getModelNature(f.getProject()); @@ -433,5 +476,4 @@ return result; } } - -} +} \ No newline at end of file Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/contentassist/XmlContentAssistProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/XmlContentAssistProcessor.java 2009-09-16 06:09:18 UTC (rev 17= 605) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/XmlContentAssistProcessor.java 2009-09-16 06:45:26 UTC (rev 17= 606) @@ -22,7 +22,7 @@ import org.jboss.tools.common.el.core.resolver.ELCompletionEngine; import org.jboss.tools.common.el.core.resolver.ELContext; import org.jboss.tools.common.el.core.resolver.ELContextImpl; -import org.jboss.tools.common.el.core.resolver.ELOperandResolveStatus; +import org.jboss.tools.common.el.core.resolver.ELResolution; import org.jboss.tools.common.el.core.resolver.ELResolver; import org.jboss.tools.common.el.core.resolver.ElVarSearcher; import org.jboss.tools.common.el.core.resolver.Var; @@ -55,15 +55,15 @@ } = protected void setVars(ELContextImpl context, IFile file) { - ELCompletionEngine fakeEngine =3D new ELCompletionEngine(){ - = - public ELOperandResolveStatus resolveELOperand(IFile file, + ELCompletionEngine fakeEngine =3D new ELCompletionEngine() { + + public ELResolution resolveELOperand(IFile file, ELExpression operand, boolean returnEqualedVariablesOnly, List vars, ElVarSearcher varSearcher) throws BadLocationException, StringIndexOutOfBoundsException { return null; } - = + public ELParserFactory getParserFactory() { return ELParserUtil.getJbossFactory(); } Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/= jst/web/kb/PageProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/PageProcessor.java 2009-09-16 06:09:18 UTC (rev 17605) +++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/PageProcessor.java 2009-09-16 06:45:26 UTC (rev 17606) @@ -95,7 +95,7 @@ String elString =3D value; ELResolver[] resolvers =3D context.getElResolvers(); for (int i =3D 0; resolvers !=3D null && i < resolvers.length; i++) { - proposals.addAll(resolvers[i].getCompletions(elString, !query.isMask()= , query.getOffset(), context)); + proposals.addAll(resolvers[i].getProposals(context, elString)); } } return proposals.toArray(new TextProposal[proposals.size()]); Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/= jst/web/kb/el/AbstractELCompletionEngine.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/el/AbstractELCompletionEngine.java 2009-09-16 06:09:18 UTC (rev 17605) +++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/el/AbstractELCompletionEngine.java 2009-09-16 06:45:26 UTC (rev 17606) @@ -17,12 +17,10 @@ = import org.eclipse.core.resources.IFile; import org.eclipse.jdt.core.IJavaElement; -import org.eclipse.jdt.core.IMember; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.core.Signature; import org.eclipse.jface.text.BadLocationException; -import org.eclipse.jface.text.IDocument; import org.eclipse.swt.graphics.Image; import org.jboss.tools.common.el.core.model.ELArgumentInvocation; import org.jboss.tools.common.el.core.model.ELExpression; @@ -38,22 +36,25 @@ import org.jboss.tools.common.el.core.parser.LexicalToken; import org.jboss.tools.common.el.core.resolver.ELCompletionEngine; import org.jboss.tools.common.el.core.resolver.ELContext; -import org.jboss.tools.common.el.core.resolver.ELOperandResolveStatus; +import org.jboss.tools.common.el.core.resolver.ELResolution; +import org.jboss.tools.common.el.core.resolver.ELResolutionImpl; import org.jboss.tools.common.el.core.resolver.ELResolver; +import org.jboss.tools.common.el.core.resolver.ELSegment; +import org.jboss.tools.common.el.core.resolver.ELSegmentImpl; import org.jboss.tools.common.el.core.resolver.ElVarSearcher; +import org.jboss.tools.common.el.core.resolver.IVariable; +import org.jboss.tools.common.el.core.resolver.JavaMemberELSegment; +import org.jboss.tools.common.el.core.resolver.JavaMemberELSegmentImpl; import org.jboss.tools.common.el.core.resolver.TypeInfoCollector; import org.jboss.tools.common.el.core.resolver.Var; import org.jboss.tools.common.el.core.resolver.TypeInfoCollector.MemberInf= o; import org.jboss.tools.common.el.core.resolver.TypeInfoCollector.MemberPre= sentation; +import org.jboss.tools.common.el.internal.core.parser.token.JavaNameTokenD= escription; import org.jboss.tools.common.text.TextProposal; -import org.jboss.tools.jst.web.kb.IPageContext; +import org.jboss.tools.jst.web.kb.WebKbPlugin; = -public abstract class AbstractELCompletionEngine implements ELResolver, ELCompletionEngine { +public abstract class AbstractELCompletionEngine impl= ements ELResolver, ELCompletionEngine { = - public static interface IVariable { - public String getName(); - } - public AbstractELCompletionEngine() {} = public abstract Image getELProposalImage(); @@ -62,14 +63,35 @@ = /* * (non-Javadoc) - * @see org.jboss.tools.common.el.core.resolver.ELResolver#getCompletions= (java.lang.String, boolean, int, org.jboss.tools.common.el.core.resolver.EL= Context) + * @see org.jboss.tools.common.el.core.resolver.ELResolver2#getProposals(= org.jboss.tools.common.el.core.resolver.ELContext, java.lang.String) */ - public List getCompletions(String elString, boolean returnE= qualedVariablesOnly, int position, ELContext context) { - IDocument document =3D null; - if(context instanceof IPageContext) { - IPageContext pageContext =3D (IPageContext)context; - document =3D pageContext.getDocument(); + public List getProposals(ELContext context, String el) { + return getCompletions(el, false, 0, context); + } + + /* + * (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.ELResolver2#resolve(org.j= boss.tools.common.el.core.resolver.ELContext, org.jboss.tools.common.el.cor= e.model.ELExpression) + */ + public ELResolution resolve(ELContext context, ELExpression operand) { + List vars =3D new ArrayList(); + Var[] array =3D context.getVars(); + for (int i =3D 0; i < array.length; i++) { + vars.add(array[i]); } + ELResolutionImpl resolution =3D null; + try { + resolution =3D resolveELOperand(context.getResource(), operand, true, v= ars, new ElVarSearcher(context.getResource(), this)); + resolution.setContext(context); + } catch (StringIndexOutOfBoundsException e) { + log(e); + } catch (BadLocationException e) { + log(e); + } + return resolution; + } + + private List getCompletions(String elString, boolean return= EqualedVariablesOnly, int position, ELContext context) { List vars =3D new ArrayList(); Var[] array =3D context.getVars(); for (int i =3D 0; i < array.length; i++) { @@ -77,7 +99,7 @@ } List proposals =3D null; try { - proposals =3D getCompletions(context.getResource(), document, elString= .subSequence(0, elString.length()), position, returnEqualedVariablesOnly, v= ars); + proposals =3D getCompletions(context.getResource(), elString.subSequen= ce(0, elString.length()), position, returnEqualedVariablesOnly, vars); } catch (StringIndexOutOfBoundsException e) { log(e); } catch (BadLocationException e) { @@ -108,37 +130,30 @@ * @throws BadLocationException if accessing the current document fails * @throws StringIndexOutOfBoundsException */ - public List getCompletions(IFile file, IDocument document, = CharSequence prefix, = + public List getCompletions(IFile file, CharSequence prefix, = int position, boolean returnEqualedVariablesOnly, List vars) throw= s BadLocationException, StringIndexOutOfBoundsException { List completions =3D new ArrayList(); - = - ELOperandResolveStatus status =3D resolveELOperand(file, parseOperand(""= + prefix), returnEqualedVariablesOnly, vars, new ElVarSearcher(file, this)= ); //$NON-NLS-1$ - if (status.isOK()) { - completions.addAll(status.getProposals()); - } = + ELResolutionImpl resolution =3D resolveELOperand(file, parseOperand("" += prefix), returnEqualedVariablesOnly, vars, new ElVarSearcher(file, this));= //$NON-NLS-1$ + completions.addAll(resolution.getProposals()); + return completions; } = - /* - * (non-Javadoc) - * @see org.jboss.tools.common.el.core.resolver.ELResolver#resolveELOpera= nd(org.jboss.tools.common.el.core.model.ELExpression, org.jboss.tools.commo= n.el.core.resolver.ELContext, boolean) - */ - public ELOperandResolveStatus resolveELOperand(ELExpression operand, ELCo= ntext context, boolean returnEqualedVariablesOnly) { + public ELResolution resolveELOperand(ELExpression operand, ELContext cont= ext, boolean returnEqualedVariablesOnly) { List vars =3D new ArrayList(); Var[] array =3D context.getVars(); for (int i =3D 0; i < array.length; i++) { vars.add(array[i]); } - ELOperandResolveStatus status =3D null; try { - status =3D resolveELOperand(context.getResource(), operand, returnEqual= edVariablesOnly, vars, new ElVarSearcher(context.getResource(), this)); + return resolveELOperand(context.getResource(), operand, returnEqualedVa= riablesOnly, vars, new ElVarSearcher(context.getResource(), this)); } catch (StringIndexOutOfBoundsException e) { log(e); } catch (BadLocationException e) { log(e); } - return status; + return null; } = public ELExpression parseOperand(String operand) { @@ -169,17 +184,13 @@ return proposals; } = - protected ELOperandResolveStatus newELOperandResolveStatus(ELInvocationEx= pression tokens) { - return new ELOperandResolveStatus(tokens); - } - - public ELOperandResolveStatus resolveELOperand(IFile file, + public ELResolutionImpl resolveELOperand(IFile file, ELExpression operand, boolean returnEqualedVariablesOnly, List vars, ElVarSearcher varSearcher) throws BadLocationException, StringIndexOutOfBoundsException { if(operand =3D=3D null) { //TODO - return newELOperandResolveStatus(null); + return null; } String oldEl =3D operand.getText(); Var var =3D varSearcher.findVarForEl(oldEl, vars, true); @@ -187,8 +198,15 @@ String newEl =3D oldEl; TypeInfoCollector.MemberInfo member =3D null; boolean isArray =3D false; + ELResolution varELResolution =3D null; if(var!=3Dnull) { - member =3D resolveEL(file, var.getElToken(), true); + varELResolution =3D resolveEL(file, var.getElToken(), true); + if(varELResolution!=3Dnull && varELResolution.isResolved()) { + ELSegment segment =3D varELResolution.getLastSegment(); + if(segment instanceof JavaMemberELSegment) { + member =3D ((JavaMemberELSegment)segment).getMemberInfo(); + } + } if(member!=3Dnull) { if(!member.getType().isArray()) { IType type =3D member.getMemberType(); @@ -221,62 +239,84 @@ : parseOperand(newEl)) = : operand; = - ELOperandResolveStatus status =3D resolveELOperand(file, newOperand, ret= urnEqualedVariablesOnly, prefixWasChanged); + ELResolutionImpl resolution =3D resolveELOperand(file, newOperand, retur= nEqualedVariablesOnly, prefixWasChanged); = if(prefixWasChanged) { - ELInvocationExpression newLastResolvedToken =3D status.getLastResolvedT= oken(); - status.setTokens((ELInvocationExpression)operand); - if(newLastResolvedToken !=3D null) { - if(status.getUnresolvedTokens() !=3D null = - && status.getUnresolvedTokens().getInvocationStartPosition() - statu= s.getUnresolvedTokens().getStartPosition() < var.getElToken().getLength() += suffix.length()) { - // Last resolved token is token from "var". Set first token of origin= al EL as last resolved one. - status.setLastResolvedToken(null); + resolution.setSourceOperand(operand); + + // Replace segment which came from var resolution to original first seg= ment. + LexicalToken firstOriginalToken =3D operand.getFirstToken(); + LexicalToken nextOriginalToken =3D firstOriginalToken; + List newSegments =3D resolution.getSegments(); + List resultSegments =3D new ArrayList(); + int startSuffix =3D var.getElToken().getText().length(); + int endSuffix =3D startSuffix + suffix.length(); + ELSegment firstSegment =3D null; + for (ELSegment segment : newSegments) { + int startPosition =3D segment.getToken().getStart(); + if(startPosition>=3DendSuffix) { + resultSegments.add(segment); + nextOriginalToken =3D nextOriginalToken.findTokenForward(JavaNameToke= nDescription.JAVA_NAME); + ((ELSegmentImpl)segment).setToken(nextOriginalToken); } else { - // Last resolved token is token outside "var" prefix. Correct last re= solved token. - int oldLastResolvedTokenStart =3D newLastResolvedToken.getInvocationS= tartPosition() - var.getElToken().getText().length() - suffix.length() + va= r.getName().length(); - if(newLastResolvedToken.getLeft() =3D=3D null) { - //In this case we do not need to take into account difference in len= gth of var and its expression. - oldLastResolvedTokenStart =3D newLastResolvedToken.getInvocationStar= tPosition(); - } - ELInvocationExpression l =3D (ELInvocationExpression)operand; - while(l !=3D null) { - if(l.getInvocationStartPosition() - l.getStartPosition() <=3D oldLas= tResolvedTokenStart) { - status.setLastResolvedToken(l); - break; - } - l =3D l.getLeft(); - } + firstSegment =3D segment; + ((ELSegmentImpl)firstSegment).setToken(firstOriginalToken); +// if(firstSegment instanceof JavaMemberELSegmentImpl) { +// JavaMemberELSegmentImpl javaSegment =3D (JavaMemberELSegmentImpl) = firstSegment; +// MemberInfo m =3D javaSegment.getMemberInfo(); +// if(m!=3Dnull) { +// TypeInfoCollector.Type t =3D m.getType(); +// if(t!=3Dnull) { +// javaSegment.setElement(t.getSource()); +// } +// } +// } } + } + + if(firstSegment!=3Dnull && firstSegment.isResolved()) { + resultSegments.add(0, firstSegment); + resolution.setSegments(resultSegments); var.resolveValue("#{" + var.getElToken().getText() + suffix + "}"); //= $NON-NLS-1$ //$NON-NLS-2$ + + ELResolutionImpl oldElResolution =3D resolveELOperand(file, operand, r= eturnEqualedVariablesOnly, false); + resolution.getProposals().addAll(oldElResolution.getProposals()); + } else { + resolution =3D resolveELOperand(file, operand, returnEqualedVariablesO= nly, false); } + } = - ELOperandResolveStatus oldElStatus =3D resolveELOperand(file, operand, = returnEqualedVariablesOnly, false); - status.getProposals().addAll(oldElStatus.getProposals()); - } - = // JBIDE-512, JBIDE-2541 related changes =3D=3D=3D>>> if(!returnEqualedVariablesOnly && vars!=3Dnull) { = for (Var v : vars) { String prefix =3D operand.toString(); if(v.getName().startsWith(prefix)) { - MemberInfo memberInfo =3D resolveEL(file, v.getElToken(), true, vars,= varSearcher); + ELResolution r =3D resolveEL(file, v.getElToken(), true, vars, varSea= rcher); + ELSegment lastSegment =3D r.getLastSegment(); + MemberInfo memberInfo =3D null; + if(lastSegment instanceof JavaMemberELSegment) { + memberInfo =3D ((JavaMemberELSegment)lastSegment).getMemberInfo(); + } + String sourceTypeName =3D memberInfo =3D=3D null ? null : memberInfo.= getDeclaringTypeQualifiedName(); - if (sourceTypeName !=3D null && sourceTypeName.indexOf('.') !=3D -1) = + if (sourceTypeName !=3D null && sourceTypeName.indexOf('.') !=3D -1) { sourceTypeName =3D Signature.getSimpleName(sourceTypeName); + } String typeName =3D memberInfo =3D=3D null ? null : memberInfo.getTyp= e().getName(); - if (typeName !=3D null && typeName.indexOf('.') !=3D -1) = + if (typeName !=3D null && typeName.indexOf('.') !=3D -1) { = typeName =3D Signature.getSimpleName(typeName); - = + } + IJavaElement element =3D memberInfo =3D=3D null ? null : memberInfo.g= etJavaElement(); String attachedJavaDoc =3D null; - = + try { - attachedJavaDoc =3D element =3D=3D null ? null : element.getAttache= dJavadoc(null); + attachedJavaDoc =3D element =3D=3D null ? null : element.getAttached= Javadoc(null); } catch (JavaModelException e) { - // Ignore + WebKbPlugin.getDefault().logError(e); } - = + String varNameProposal =3D v.getName().substring(prefix.length()); TextProposal proposal =3D new TextProposal(); proposal.setLabel(v.getName()); @@ -286,58 +326,57 @@ proposal.setType(typeName); proposal.setSourceType(sourceTypeName); proposal.setContextInfo(attachedJavaDoc); - status.getProposals().add(proposal); + resolution.getProposals().add(proposal); } } } // <<<=3D=3D=3D JBIDE-512, JBIDE-2541 related changes = - - return status; + return resolution; } = /** - * Returns MemberInfo for last segment of EL. Null if El is not resolved. + * Returns ELResolution for EL. * @param seamProject * @param file * @param operand EL without #{} - * @return MemberInfo for last segment of EL. Null if El is not resolved. + * Returns ELResolution for EL. * @throws BadLocationException * @throws StringIndexOutOfBoundsException */ - public TypeInfoCollector.MemberInfo resolveEL(IFile file, ELExpression op= erand, boolean varIsUsed) throws BadLocationException, StringIndexOutOfBoun= dsException { + public ELResolution resolveEL(IFile file, ELExpression operand, boolean v= arIsUsed) throws BadLocationException, StringIndexOutOfBoundsException { if(!(operand instanceof ELInvocationExpression)) return null; - ELOperandResolveStatus status =3D resolveELOperand(file, operand, true, = varIsUsed); - return status.getMemberOfResolvedOperand(); + return resolveELOperand(file, operand, true, varIsUsed); } = /** - * Returns MemberInfo for last segment of EL. Null if El is not resolved. + * Returns ELResolution for EL. * @param seamProject * @param file * @param operand EL without #{} - * @return MemberInfo for last segment of EL. Null if El is not resolved. + * @return ELResolution for EL. * @throws BadLocationException * @throws StringIndexOutOfBoundsException */ - public TypeInfoCollector.MemberInfo resolveEL(IFile file, ELExpression op= erand, boolean returnEqualedVariablesOnly, List vars, ElVarSearcher va= rSearcher) throws BadLocationException, StringIndexOutOfBoundsException { + public ELResolution resolveEL(IFile file, ELExpression operand, boolean r= eturnEqualedVariablesOnly, List vars, ElVarSearcher varSearcher) throw= s BadLocationException, StringIndexOutOfBoundsException { if(!(operand instanceof ELInvocationExpression)) return null; - ELOperandResolveStatus status =3D resolveELOperand(file, operand, return= EqualedVariablesOnly, vars, varSearcher); - return status.getMemberOfResolvedOperand(); + return resolveELOperand(file, operand, returnEqualedVariablesOnly, vars,= varSearcher); } - = - public ELOperandResolveStatus resolveELOperand(IFile file, ELExpression o= perand, = + + public ELResolutionImpl resolveELOperand(IFile file, ELExpression operand= , = boolean returnEqualedVariablesOnly, boolean varIsUsed) throws BadLocati= onException, StringIndexOutOfBoundsException { if(!(operand instanceof ELInvocationExpression) || file =3D=3D null) { - return newELOperandResolveStatus(null); + return null; } = + ELResolutionImpl resolution =3D new ELResolutionImpl(); + resolution.setSourceOperand(operand); + ELInvocationExpression expr =3D (ELInvocationExpression)operand; boolean isIncomplete =3D expr.getType() =3D=3D ELObjectType.EL_PROPERTY_= INVOCATION = && ((ELPropertyInvocation)expr).getName() =3D=3D null; boolean isArgument =3D expr.getType() =3D=3D ELObjectType.EL_ARGUMENT_IN= VOCATION; = - ELOperandResolveStatus status =3D newELOperandResolveStatus(expr); ELInvocationExpression left =3D expr; = List resolvedVariables =3D new ArrayList(); @@ -359,19 +398,14 @@ returnEqualedVariablesOnly); if (resolvedVars !=3D null && !resolvedVars.isEmpty()) { resolvedVariables =3D resolvedVars; - status.setLastResolvedToken(left); + resolution.setLastResolvedToken(left); break; } left =3D (ELInvocationExpression)left.getLeft(); } = } = - // Save all resolved variables. It's useful for incremental validation. - if(resolvedVariables !=3D null && !resolvedVariables.isEmpty()) { - setUsedVariables(status, resolvedVariables); - } - - if (status.getResolvedTokens() =3D=3D null && = + if (resolution.getLastResolvedToken() =3D=3D null && = !returnEqualedVariablesOnly && = expr !=3D null && = isIncomplete) { @@ -380,26 +414,31 @@ resolvedVariables =3D resolveVariables(file, expr, true, returnEqualedV= ariablesOnly); = = Set proposals =3D new TreeSet(TextProposal.= KB_PROPOSAL_ORDER); + JavaMemberELSegmentImpl segment =3D new JavaMemberELSegmentImpl(); + segment.setToken(expr.getFirstToken()); + segment.setResolved(false); + resolution.addSegment(segment); for (V var : resolvedVariables) { String varName =3D var.getName(); if(varName.startsWith(operand.getText())) { // JBIDE-512, JBIDE-2541 related changes =3D=3D=3D>>> + MemberInfo member =3D getMemberInfoByVariable(var, true); - = + String sourceTypeName =3D member =3D=3D null ? null : member.getDecla= ringTypeQualifiedName(); if (sourceTypeName !=3D null && sourceTypeName.indexOf('.') !=3D -1) = sourceTypeName =3D Signature.getSimpleName(sourceTypeName); String typeName =3D member =3D=3D null ? null : member.getType().getN= ame(); if (typeName !=3D null && typeName.indexOf('.') !=3D -1) = typeName =3D Signature.getSimpleName(typeName); - = + IJavaElement element =3D member =3D=3D null ? null : member.getJavaEl= ement(); String attachedJavaDoc =3D null; - = + try { - attachedJavaDoc =3D element =3D=3D null ? null : element.getAttache= dJavadoc(null); + attachedJavaDoc =3D element =3D=3D null ? null : element.getAttached= Javadoc(null); } catch (JavaModelException e) { - // Ignore + WebKbPlugin.getDefault().logError(e); } = TextProposal proposal =3D new TextProposal(); @@ -409,27 +448,33 @@ proposal.setType(typeName); proposal.setSourceType(sourceTypeName); proposal.setContextInfo(attachedJavaDoc); - = + proposals.add(proposal); // <<<=3D=3D=3D JBIDE-512, JBIDE-2541 related changes } } - status.setProposals(proposals); - return status; + resolution.setProposals(proposals); + return resolution; } = // Here we have a list of vars for some part of expression // OK. we'll proceed with members of these vars - if (status.getResolvedTokens() =3D=3D status.getTokens()) { + if (resolution.getLastResolvedToken() =3D=3D operand) { // First segment is the last one Set proposals =3D new TreeSet(TextProposal.= KB_PROPOSAL_ORDER); // In some cases there may be a few references to the same variable nam= e. // For example @Factory and @DataModel. We should use @DataModel instea= d of @Factory // method which returns null. // See https://jira.jboss.org/jira/browse/JBIDE-3694 - = + // JBIDE-512, JBIDE-2541 related changes =3D=3D=3D>>> TypeInfoCollector.MemberInfo bijectedAttribute =3D null; + + JavaMemberELSegmentImpl segment =3D new JavaMemberELSegmentImpl(); + segment.setToken(operand.getFirstToken()); + segment.setResolved(true); + resolution.addSegment(segment); + for (V var : resolvedVariables) { if(isSingularAttribute(var)) { bijectedAttribute =3D getMemberInfoByVariable(var, true); @@ -443,11 +488,11 @@ typeName =3D Signature.getSimpleName(typeName); IJavaElement element =3D member =3D=3D null ? null : member.getJavaEle= ment(); String attachedJavaDoc =3D null; - = + try { attachedJavaDoc =3D element =3D=3D null ? null : element.getAttachedJ= avadoc(null); } catch (JavaModelException e) { - // Ignore + WebKbPlugin.getDefault().logError(e); } = String varName =3D var.getName(); @@ -470,71 +515,89 @@ proposal.setContextInfo(attachedJavaDoc); proposals.add(proposal); } - status.setMemberOfResolvedOperand(bijectedAttribute!=3Dnull?bijectedAt= tribute:getMemberInfoByVariable(var, true)); + segment.setMemberInfo(bijectedAttribute!=3Dnull?bijectedAttribute:getM= emberInfoByVariable(var, true)); + segment.getVariables().add(var); } // <<<=3D=3D=3D JBIDE-512, JBIDE-2541 related changes = - status.setLastResolvedToken(expr); - status.setProposals(proposals); - return status; + resolution.setLastResolvedToken(expr); + resolution.setProposals(proposals); + return resolution; } = // First segment is found - proceed with next tokens = List members =3D new ArrayList(); + JavaMemberELSegmentImpl segment =3D new JavaMemberELSegmentImpl(); + segment.setToken(expr.getFirstToken()); for (V var : resolvedVariables) { TypeInfoCollector.MemberInfo member =3D getMemberInfoByVariable(var, re= turnEqualedVariablesOnly); - if (member !=3D null && !members.contains(member)) = + if (member !=3D null && !members.contains(member)) { = members.add(member); + segment.setMemberInfo(member); + segment.getVariables().add(var); + segment.setResolved(true); + } } + resolution.addSegment(segment); //process segments one by one - if(left !=3D null) while(left !=3D expr) { - left =3D (ELInvocationExpression)left.getParent(); - if (left !=3D expr) { // inside expression - if(left instanceof ELArgumentInvocation) { - String s =3D "#{" + left.getLeft().toString() + collectionAdditionFor= CollectionDataModel + "}"; //$NON-NLS-1$ //$NON-NLS-2$ - ELParser p =3D getParserFactory().createParser(); - ELInvocationExpression expr1 =3D (ELInvocationExpression)p.parse(s).g= etInstances().get(0).getExpression(); - members =3D resolveSegment(expr1.getLeft(), members, status, returnEq= ualedVariablesOnly, varIsUsed); - members =3D resolveSegment(expr1, members, status, returnEqualedVaria= blesOnly, varIsUsed); - if(status.getLastResolvedToken() =3D=3D expr1) { - status.setLastResolvedToken(left); + if(left !=3D null) { + while(left !=3D expr) { + left =3D (ELInvocationExpression)left.getParent(); + if (left !=3D expr) { // inside expression + segment =3D new JavaMemberELSegmentImpl(); + segment.setResolved(true); + if(left instanceof ELArgumentInvocation) { + String s =3D "#{" + left.getLeft().toString() + collectionAdditionFo= rCollectionDataModel + "}"; //$NON-NLS-1$ //$NON-NLS-2$ + ELParser p =3D getParserFactory().createParser(); + ELInvocationExpression expr1 =3D (ELInvocationExpression)p.parse(s).= getInstances().get(0).getExpression(); + members =3D resolveSegment(expr1.getLeft(), members, resolution, ret= urnEqualedVariablesOnly, varIsUsed, segment); + members =3D resolveSegment(expr1, members, resolution, returnEqualed= VariablesOnly, varIsUsed, segment); + if(resolution.getLastResolvedToken() =3D=3D expr1) { + resolution.setLastResolvedToken(left); + } + } else { + members =3D resolveSegment(left, members, resolution, returnEqualedV= ariablesOnly, varIsUsed, segment); } - } else { = - members =3D resolveSegment(left, members, status, returnEqualedVariab= lesOnly, varIsUsed); + if(!members.isEmpty()) { + segment.setMemberInfo(members.get(0)); + } + resolution.addSegment(segment); + } else { // Last segment + resolveLastSegment((ELInvocationExpression)operand, members, resoluti= on, returnEqualedVariablesOnly, varIsUsed); + break; } - } else { // Last segment - resolveLastSegment((ELInvocationExpression)operand, members, status, r= eturnEqualedVariablesOnly, varIsUsed); - break; } } = - if(status.getProposals().isEmpty() && status.getUnpairedGettersOrSetters= ()!=3Dnull) { - status.clearUnpairedGettersOrSetters(); + if(resolution.getProposals().isEmpty() && !resolution.getSegments().isEm= pty()) { +// && status.getUnpairedGettersOrSetters()!=3Dnull) { + ELSegment lastSegment =3D resolution.getSegments().get(resolution.getSe= gments().size()-1); + if(lastSegment instanceof JavaMemberELSegmentImpl) { + ((JavaMemberELSegmentImpl)lastSegment).clearUnpairedGettersOrSetters(); + } } - return status; + return resolution; } = abstract public List resolveVariables(IFile file, ELInvocationExpressi= on expr, boolean isFinal, boolean onlyEqualNames); = abstract protected TypeInfoCollector.MemberInfo getMemberInfoByVariable(V= var, boolean onlyEqualNames); = - protected void setUsedVariables(ELOperandResolveStatus status, List re= solvedVariables) { - } - protected boolean isSingularAttribute(V var) { return false; } = protected List resolveSegment(ELInvocationE= xpression expr, = List members, - ELOperandResolveStatus status, - boolean returnEqualedVariablesOnly, boolean varIsUsed) { + ELResolutionImpl resolution, + boolean returnEqualedVariablesOnly, boolean varIsUsed, JavaMemberELSegm= entImpl segment) { LexicalToken lt =3D (expr instanceof ELPropertyInvocation) = ? ((ELPropertyInvocation)expr).getName() - : (expr instanceof ELMethodInvocation) = + : (expr instanceof ELMethodInvocation) ? ((ELMethodInvocation)expr).getName() : null; String name =3D lt !=3D null ? lt.getText() : ""; // token.getText(); //= $NON-NLS-1$ + segment.setToken(lt); if (expr.getType() =3D=3D ELObjectType.EL_PROPERTY_INVOCATION) { // Find properties for the token List newMembers =3D new ArrayList(); @@ -542,7 +605,7 @@ if (mbr.getMemberType() =3D=3D null) continue; TypeInfoCollector infos =3D mbr.getTypeCollector(varIsUsed); if (TypeInfoCollector.isNotParameterizedCollection(mbr) || TypeInfoCol= lector.isResourceBundle(mbr.getMemberType())) { - status.setMapOrCollectionOrBundleAmoungTheTokens(); + resolution.setMapOrCollectionOrBundleAmoungTheTokens(true); } List properties =3D infos.getProperties(= ); for (TypeInfoCollector.MemberInfo property : properties) { @@ -558,7 +621,7 @@ } members =3D newMembers; if (members !=3D null && !members.isEmpty()) - status.setLastResolvedToken(expr); + resolution.setLastResolvedToken(expr); } if (expr.getType() =3D=3D ELObjectType.EL_METHOD_INVOCATION) { // Find methods for the token @@ -570,7 +633,7 @@ if (mbr.getMemberType() =3D=3D null) continue; TypeInfoCollector infos =3D mbr.getTypeCollector(); if (TypeInfoCollector.isNotParameterizedCollection(mbr) || TypeInfoCol= lector.isResourceBundle(mbr.getMemberType())) { - status.setMapOrCollectionOrBundleAmoungTheTokens(); + resolution.setMapOrCollectionOrBundleAmoungTheTokens(true); } List methods =3D infos.getMethods(); for (TypeInfoCollector.MemberInfo method : methods) { @@ -581,17 +644,27 @@ } members =3D newMembers; if (members !=3D null && !members.isEmpty()) - status.setLastResolvedToken(expr); + resolution.setLastResolvedToken(expr); } return members; } = protected void resolveLastSegment(ELInvocationExpression expr, = List members, - ELOperandResolveStatus status, + ELResolutionImpl resolution, boolean returnEqualedVariablesOnly, boolean varIsUsed) { Set kbProposals =3D new TreeSet(TextProposal= .KB_PROPOSAL_ORDER); - = + + JavaMemberELSegmentImpl segment =3D new JavaMemberELSegmentImpl(); + if(expr instanceof ELPropertyInvocation) { + segment.setToken(((ELPropertyInvocation)expr).getName()); + } +// segment.setToken(expr.getLastToken()); + if(segment.getToken()!=3Dnull) { + resolution.addSegment(segment); + } + resolution.setProposals(kbProposals); + if (expr.getType() =3D=3D ELObjectType.EL_PROPERTY_INVOCATION && ((ELPro= pertyInvocation)expr).getName() =3D=3D null) { // return all the methods + properties for (TypeInfoCollector.MemberInfo mbr : members) { @@ -604,10 +677,9 @@ } TypeInfoCollector infos =3D mbr.getTypeCollector(varIsUsed); if (TypeInfoCollector.isNotParameterizedCollection(mbr) || TypeInfoCol= lector.isResourceBundle(mbr.getMemberType())) { - status.setMapOrCollectionOrBundleAmoungTheTokens(); + resolution.setMapOrCollectionOrBundleAmoungTheTokens(true); } - = - = + // JBIDE-512, JBIDE-2541 related changes =3D=3D=3D>>> /* Set methodPresentations =3D = @@ -625,7 +697,7 @@ = Set methodPresentations =3D = infos.getMethodPresentations(); - = + if (methodPresentations !=3D null) { for (MemberPresentation presentation : methodPresentations) { String presentationString =3D presentation.getPresentation(); @@ -638,11 +710,11 @@ typeName =3D Signature.getSimpleName(typeName); IJavaElement element =3D member =3D=3D null ? null : member.getJavaE= lement(); String attachedJavaDoc =3D null; - = + try { attachedJavaDoc =3D element =3D=3D null ? null : element.getAttache= dJavadoc(null); } catch (JavaModelException e) { - // Ignore + WebKbPlugin.getDefault().logError(e); } = TextProposal proposal =3D new TextProposal(); @@ -652,7 +724,7 @@ proposal.setType(typeName); proposal.setSourceType(sourceTypeName); proposal.setContextInfo(attachedJavaDoc); - = + kbProposals.add(proposal); } } @@ -672,8 +744,8 @@ */ = Set propertyPresentations =3D = - infos.getPropertyPresentations(status.getUnpairedGettersOrSetters()); - = + infos.getPropertyPresentations(segment.getUnpairedGettersOrSetters()); + if (propertyPresentations !=3D null) { for (MemberPresentation presentation : propertyPresentations) { String presentationString =3D presentation.getPresentation(); @@ -686,11 +758,11 @@ typeName =3D Signature.getSimpleName(typeName); IJavaElement element =3D member =3D=3D null ? null : member.getJavaE= lement(); String attachedJavaDoc =3D null; - = + try { attachedJavaDoc =3D element =3D=3D null ? null : element.getAttache= dJavadoc(null); } catch (JavaModelException e) { - // Ignore + WebKbPlugin.getDefault().logError(e); } = TextProposal proposal =3D new TextProposal(); @@ -700,12 +772,11 @@ proposal.setType(typeName); proposal.setSourceType(sourceTypeName); proposal.setContextInfo(attachedJavaDoc); - = + kbProposals.add(proposal); } } // <<<=3D=3D=3D JBIDE-512, JBIDE-2541 related changes - } } else if(expr.getType() !=3D ELObjectType.EL_ARGUMENT_INVOCATION) @@ -724,11 +795,11 @@ if (mbr.getMemberType() =3D=3D null) continue; TypeInfoCollector infos =3D mbr.getTypeCollector(); if (TypeInfoCollector.isNotParameterizedCollection(mbr) || TypeInfoCol= lector.isResourceBundle(mbr.getMemberType())) { - status.setMapOrCollectionOrBundleAmoungTheTokens(); + resolution.setMapOrCollectionOrBundleAmoungTheTokens(true); } proposalsToFilter.addAll(infos.getMethodPresentations()); - proposalsToFilter.addAll(infos.getPropertyPresentations(status.getUnpa= iredGettersOrSetters())); - status.setMemberOfResolvedOperand(mbr); + proposalsToFilter.addAll(infos.getPropertyPresentations(segment.getUnp= airedGettersOrSetters())); + segment.setMemberInfo(mbr); } for (TypeInfoCollector.MemberPresentation proposal : proposalsToFilter)= { // We do expect nothing but name for method tokens (No round brackets) @@ -741,15 +812,15 @@ kbProposal.setReplacementString(proposal.getPresentation()); = setImage(kbProposal, proposal); - = + kbProposals.add(kbProposal); = - status.setMemberOfResolvedOperand(proposal.getMember()); - if(status.getUnpairedGettersOrSetters()!=3Dnull) { - TypeInfoCollector.MethodInfo unpirMethod =3D status.getUnpairedGett= ersOrSetters().get(filter); - status.clearUnpairedGettersOrSetters(); + segment.setMemberInfo(proposal.getMember()); + if(segment.getUnpairedGettersOrSetters()!=3Dnull) { + TypeInfoCollector.MethodInfo unpirMethod =3D segment.getUnpairedGet= tersOrSetters().get(filter); + segment.clearUnpairedGettersOrSetters(); if(unpirMethod!=3Dnull) { - status.getUnpairedGettersOrSetters().put(filter, unpirMethod); + segment.getUnpairedGettersOrSetters().put(filter, unpirMethod); } } break; @@ -771,7 +842,7 @@ try { attachedJavaDoc =3D element =3D=3D null ? null : element.getAttached= Javadoc(null); } catch (JavaModelException e) { - // Ignore + WebKbPlugin.getDefault().logError(e); } = TextProposal kbProposal =3D new TextProposal(); @@ -781,7 +852,7 @@ kbProposal.setType(typeName); kbProposal.setSourceType(sourceTypeName); kbProposal.setContextInfo(attachedJavaDoc); - = + kbProposals.add(kbProposal); // <<<=3D=3D=3D JBIDE-512, JBIDE-2541 related changes } @@ -798,14 +869,14 @@ if (mbr.getMemberType() =3D=3D null) continue; try { if(TypeInfoCollector.isInstanceofType(mbr.getMemberType(), "java.util= .Map")) { //$NON-NLS-1$ - status.setMapOrCollectionOrBundleAmoungTheTokens(); + resolution.setMapOrCollectionOrBundleAmoungTheTokens(true); //if map/collection is parameterized, we might return member info fo= r value type. = return; } } catch (JavaModelException jme) { - //ignore + WebKbPlugin.getDefault().logError(jme); } - status.setMemberOfResolvedOperand(mbr); + segment.setMemberInfo(mbr); } = String filter =3D expr.getMemberName(); @@ -819,28 +890,30 @@ filter =3D filter.length() =3D=3D 1 ? "" : filter.substring(1, filter= .length() - 1); //$NON-NLS-1$ } else { //Value is set as expression itself, we cannot compute it - if(isMessages) status.setMapOrCollectionOrBundleAmoungTheTokens(); + if(isMessages) { + resolution.setMapOrCollectionOrBundleAmoungTheTokens(true); + } return; } } - = + for (TypeInfoCollector.MemberPresentation proposal : proposalsToFilter)= { if(returnEqualedVariablesOnly) { // This is used for validation. if (proposal.getPresentation().equals(filter)) { TextProposal kbProposal =3D new TextProposal(); kbProposal.setReplacementString(proposal.getPresentation()); - = + setImage(kbProposal, proposal); - = + kbProposals.add(kbProposal); = - status.setMemberOfResolvedOperand(proposal.getMember()); - if(status.getUnpairedGettersOrSetters()!=3Dnull) { - TypeInfoCollector.MethodInfo unpirMethod =3D status.getUnpairedGett= ersOrSetters().get(filter); - status.clearUnpairedGettersOrSetters(); + segment.setMemberInfo(proposal.getMember()); + if(segment.getUnpairedGettersOrSetters()!=3Dnull) { + TypeInfoCollector.MethodInfo unpirMethod =3D segment.getUnpairedGet= tersOrSetters().get(filter); + segment.clearUnpairedGettersOrSetters(); if(unpirMethod!=3Dnull) { - status.getUnpairedGettersOrSetters().put(filter, unpirMethod); + segment.getUnpairedGettersOrSetters().put(filter, unpirMethod); } } break; @@ -858,35 +931,32 @@ typeName =3D Signature.getSimpleName(typeName); IJavaElement element =3D member =3D=3D null ? null : member.getJavaEl= ement(); String attachedJavaDoc =3D null; - = + try { attachedJavaDoc =3D element =3D=3D null ? null : element.getAttached= Javadoc(null); } catch (JavaModelException e) { - // Ignore + WebKbPlugin.getDefault().logError(e); } = TextProposal kbProposal =3D new TextProposal(); - = + String replacementString =3D proposal.getPresentation().substring(fil= ter.length()); if (bSurroundWithQuotes) { replacementString =3D "'" + replacementString + "']"; //$NON-NLS-1$ = //$NON-NLS-2$ } - = + kbProposal.setReplacementString(replacementString); kbProposal.setImage(getELProposalImage()); kbProposal.setType(typeName); kbProposal.setSourceType(sourceTypeName); kbProposal.setContextInfo(attachedJavaDoc); - = + kbProposals.add(kbProposal); // <<<=3D=3D=3D JBIDE-512, JBIDE-2541 related changes } } } - status.setProposals(kbProposals); - if (status.isOK()){ - status.setLastResolvedToken(expr); - } + segment.setResolved(!resolution.getProposals().isEmpty() || resolution.i= sMapOrCollectionOrBundleAmoungTheTokens()); } = protected boolean isSingularMember(TypeInfoCollector.MemberInfo mbr) { Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/core/ISeamContextVariable.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/c= ore/ISeamContextVariable.java 2009-09-16 06:09:18 UTC (rev 17605) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/c= ore/ISeamContextVariable.java 2009-09-16 06:45:26 UTC (rev 17606) @@ -10,7 +10,7 @@ ************************************************************************= ******/ package org.jboss.tools.seam.core; = -import org.jboss.tools.jst.web.kb.el.AbstractELCompletionEngine.IVariable; +import org.jboss.tools.common.el.core.resolver.IVariable; = /** * Represents Seam Context Variable. Added: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/sea= m/internal/core/el/ContextVariableELSegment.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/el/ContextVariableELSegment.java (rev = 0) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/el/ContextVariableELSegment.java 2009-09-16 06:45:26 UTC (rev = 17606) @@ -0,0 +1,25 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.seam.internal.core.el; + +import org.jboss.tools.common.el.core.resolver.ELSegment; +import org.jboss.tools.seam.core.ISeamContextVariable; + +/** + * @author Alexey Kazakov + */ +public interface ContextVariableELSegment extends ELSegment { + + /** + * @return Seam context variable + */ + ISeamContextVariable getVariable(); +} \ No newline at end of file Property changes on: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/j= boss/tools/seam/internal/core/el/ContextVariableELSegment.java ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/el/SeamELCompletionEngine.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/el/SeamELCompletionEngine.java 2009-09-16 06:09:18 UTC (rev 17= 605) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/el/SeamELCompletionEngine.java 2009-09-16 06:45:26 UTC (rev 17= 606) @@ -43,13 +43,12 @@ import org.jboss.tools.common.el.core.parser.ELParser; import org.jboss.tools.common.el.core.parser.ELParserFactory; import org.jboss.tools.common.el.core.parser.ELParserUtil; -import org.jboss.tools.common.el.core.resolver.ELCompletionEngine; -import org.jboss.tools.common.el.core.resolver.ELOperandResolveStatus; -import org.jboss.tools.common.el.core.resolver.ELResolver; +import org.jboss.tools.common.el.core.resolver.ELResolution; +import org.jboss.tools.common.el.core.resolver.ELSegment; import org.jboss.tools.common.el.core.resolver.ElVarSearcher; +import org.jboss.tools.common.el.core.resolver.JavaMemberELSegment; import org.jboss.tools.common.el.core.resolver.TypeInfoCollector; import org.jboss.tools.common.el.core.resolver.Var; -import org.jboss.tools.common.el.core.resolver.TypeInfoCollector.MemberInf= o; import org.jboss.tools.common.model.project.ext.ITextSourceReference; import org.jboss.tools.common.model.project.ext.event.Change; import org.jboss.tools.common.model.util.EclipseResourceUtil; @@ -74,7 +73,7 @@ * = * @author Jeremy */ -public final class SeamELCompletionEngine extends AbstractELCompletionEngi= ne implements ELCompletionEngine, ELResolver { +public final class SeamELCompletionEngine extends AbstractELCompletionEngi= ne { = private static final Image SEAM_EL_PROPOSAL_IMAGE =3D = SeamCorePlugin.getDefault().getImage(SeamCorePlugin.CA_SEAM_EL_IMAGE_PAT= H); @@ -106,10 +105,6 @@ SeamCorePlugin.getPluginLog().logError(e); } = - protected ELOperandResolveStatus newELOperandResolveStatus(ELInvocationEx= pression tokens) { - return new SeamELOperandResolveStatus(tokens); - } - /** * Returns a list of Seam Context Variables that is represented by EL. Nu= ll if El is not resolved. * @param project @@ -138,7 +133,6 @@ boolean isIncomplete =3D expr.getType() =3D=3D ELObjectType.EL_PROPERTY_= INVOCATION && ((ELPropertyInvocation) expr).getName() =3D=3D null; = - ELOperandResolveStatus status =3D new ELOperandResolveStatus(expr); ELInvocationExpression left =3D expr; = ScopeType scope =3D getScope(project, file); @@ -152,7 +146,6 @@ left =3D=3D expr, true); if (resolvedVars !=3D null && !resolvedVars.isEmpty()) { resolvedVariables =3D resolvedVars; - status.setLastResolvedToken(left); break; } left =3D (ELInvocationExpression) left.getLeft(); @@ -166,6 +159,7 @@ return resolvedVariables; } = + @Override public List resolveVariables(IFile file, ELInvocati= onExpression expr, boolean isFinal, boolean onlyEqualNames) { ISeamProject project =3D SeamCorePlugin.getSeamProject(file.getProject()= , false); ScopeType scope =3D getScope(project, file); @@ -184,10 +178,6 @@ } } = - protected void setUsedVariables(ELOperandResolveStatus status, List variables) { - ((SeamELOperandResolveStatus)status).setUsedVariables(variables); - } - protected boolean isSingularAttribute(ISeamContextVariable var) { return var instanceof IBijectedAttribute; } @@ -238,41 +228,8 @@ } } = -/** - private String computeVariableName(List tokens){ - if (tokens =3D=3D null) - tokens =3D new ArrayList(); - StringBuffer sb =3D new StringBuffer(); - for (ELOperandToken token : tokens) { - if (token.getType() =3D=3D ELOperandToken.EL_VARIABLE_NAME_TOKEN || - token.getType() =3D=3D ELOperandToken.EL_PROPERTY_NAME_TOKEN || - token.getType() =3D=3D ELOperandToken.EL_METHOD_TOKEN || - token.getType() =3D=3D ELOperandToken.EL_SEPARATOR_TOKEN) { - sb.append(token.getText()); - } - } - return sb.toString(); - } -*/ - -/** - private boolean areEqualExpressions(Listfirst, Listsecond) { - if (first =3D=3D null || second =3D=3D null) - return (first =3D=3D second); - - if (first.size() !=3D second.size()) - return false; - - for (int i =3D 0; i < first.size(); i++) { - if (!first.get(i).equals(second.get(i))) - return false; - } - return true; - } -*/ - - /* Returns scope for the resource - * = + /** + * Returns scope for the resource * @param project * @param resource * @return @@ -293,9 +250,6 @@ return null; } = - - = - = public List resolveVariables(ISeamProject project, = ScopeType scope, ELInvocationExpression expr, boolean isFinal, boolean only= EqualNames) { ListresolvedVars =3D new ArrayList(); = @@ -466,15 +420,15 @@ ISeamProject project, IFile file, = ELInvocationExpression expr) throws BadLocationException, StringIndexOu= tOfBoundsException { List res =3D new ArrayList(); - = + ElVarSearcher varSearcher =3D new ElVarSearcher(file, this); List vars =3D varSearcher.findAllVars(file, expr.getStartPosition()= ); = - ELOperandResolveStatus status =3D resolveELOperand(file, expr, true, var= s, varSearcher); - if (status.isOK()) { - MemberInfo member =3D status.getMemberOfResolvedOperand(); - if (member !=3D null) { - IJavaElement el =3D member.getJavaElement(); + ELResolution resolution =3D resolveELOperand(file, expr, true, vars, var= Searcher); + if (resolution.isResolved()) { + ELSegment segment =3D resolution.getLastSegment(); + if(segment instanceof JavaMemberELSegment) { + IJavaElement el =3D ((JavaMemberELSegment)segment).getJavaElement(); if (el !=3D null) { res.add(el); return res; Deleted: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/s= eam/internal/core/el/SeamELOperandResolveStatus.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/el/SeamELOperandResolveStatus.java 2009-09-16 06:09:18 UTC (re= v 17605) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/el/SeamELOperandResolveStatus.java 2009-09-16 06:45:26 UTC (re= v 17606) @@ -1,40 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributor: - * Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ -package org.jboss.tools.seam.internal.core.el; - -import java.util.ArrayList; -import java.util.List; - -import org.jboss.tools.common.el.core.model.ELInvocationExpression; -import org.jboss.tools.common.el.core.resolver.ELOperandResolveStatus; -import org.jboss.tools.seam.core.ISeamContextVariable; - -public class SeamELOperandResolveStatus extends ELOperandResolveStatus { - public List usedVariables; - - public SeamELOperandResolveStatus(ELInvocationExpression tokens) { - super(tokens); - } - - /** - * @return List of Seam Context Variables used in EL. = - */ - public List getUsedVariables() { - return (usedVariables =3D=3D null ? new ArrayList(= ) : usedVariables); - } - - /** - * @param usedVariables List of Seam Context Variables used in EL. - */ - public void setUsedVariables(List usedVariables) { - this.usedVariables =3D usedVariables; - } -} Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/el/SeamExpressionResolver.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/el/SeamExpressionResolver.java 2009-09-16 06:09:18 UTC (rev 17= 605) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/el/SeamExpressionResolver.java 2009-09-16 06:45:26 UTC (rev 17= 606) @@ -28,6 +28,9 @@ import org.jboss.tools.common.el.core.model.ELModel; import org.jboss.tools.common.el.core.parser.ELParser; import org.jboss.tools.common.el.core.parser.ELParserUtil; +import org.jboss.tools.common.el.core.resolver.ELResolution; +import org.jboss.tools.common.el.core.resolver.ELSegment; +import org.jboss.tools.common.el.core.resolver.JavaMemberELSegmentImpl; import org.jboss.tools.common.el.core.resolver.TypeInfoCollector; import org.jboss.tools.common.el.core.resolver.TypeInfoCollector.MemberInf= o; import org.jboss.tools.common.el.core.resolver.TypeInfoCollector.Type; @@ -93,20 +96,6 @@ return internalResolveVariables(project, name, onlyEqualNames, variables= ); } = - /** - * Returns Seam project variables which names start from specified value - * Search is performed using scope - * = - * @param project - * @param scope - * @param name - * @return - */ - private static List internalResolveVariablesByScope= (ISeamProject project, ScopeType scope, String name, boolean onlyEqualNames= ) { - Set variables =3D project.getVariablesByScope(scop= e, true); - return internalResolveVariables(project, name, onlyEqualNames, variables= ); - } - = private static List internalResolveVariables(ISeamP= roject project, String name, boolean onlyEqualNames, Set variables) { List resolvedVariables =3D new ArrayList(); if(onlyEqualNames) { @@ -352,11 +341,17 @@ if(ex instanceof ELInvocationExpression) { ELInvocationExpression expr =3D (ELInvocationExpression)ex; try { - member =3D engine.resolveEL(null, expr, false); + ELResolution resolution =3D engine.resolveEL(null, expr, false); + if(resolution.isResolved()) { + ELSegment segment =3D resolution.getLastSegment(); + if(segment instanceof JavaMemberELSegmentImpl) { + member =3D ((JavaMemberELSegmentImpl)segment).getMemberInfo(); + } + } } catch (StringIndexOutOfBoundsException e) { - e.printStackTrace(); + SeamCorePlugin.getDefault().logError(e); } catch (BadLocationException e) { - e.printStackTrace(); + SeamCorePlugin.getDefault().logError(e); } } } Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/el/SeamPromptingProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/el/SeamPromptingProvider.java 2009-09-16 06:09:18 UTC (rev 176= 05) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/el/SeamPromptingProvider.java 2009-09-16 06:45:26 UTC (rev 176= 06) @@ -59,7 +59,7 @@ return list; } else if(MEMBERS.equals(id)) { try { - List proposals =3D engine.getCompletions(f, null, prefix= , prefix.length(), false, new ArrayList()); + List proposals =3D engine.getCompletions(f, prefix, pref= ix.length(), false, new ArrayList()); List suggestions =3D new ArrayList(); if(proposals !=3D null) for (TextProposal proposal: proposals) { suggestions.add(proposal.getReplacementString()); Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/validation/SeamELValidator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/validation/SeamELValidator.java 2009-09-16 06:09:18 UTC (rev 1= 7605) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/validation/SeamELValidator.java 2009-09-16 06:45:26 UTC (rev 1= 7606) @@ -58,19 +58,22 @@ import org.jboss.tools.common.el.core.model.ELPropertyInvocation; import org.jboss.tools.common.el.core.parser.ELParser; import org.jboss.tools.common.el.core.parser.ELParserUtil; +import org.jboss.tools.common.el.core.parser.LexicalToken; import org.jboss.tools.common.el.core.parser.SyntaxError; +import org.jboss.tools.common.el.core.resolver.ELResolution; +import org.jboss.tools.common.el.core.resolver.ELSegment; import org.jboss.tools.common.el.core.resolver.ElVarSearcher; +import org.jboss.tools.common.el.core.resolver.IVariable; +import org.jboss.tools.common.el.core.resolver.JavaMemberELSegmentImpl; import org.jboss.tools.common.el.core.resolver.TypeInfoCollector; import org.jboss.tools.common.el.core.resolver.Var; import org.jboss.tools.common.model.util.EclipseResourceUtil; import org.jboss.tools.common.util.FileUtil; -import org.jboss.tools.seam.core.ISeamContextVariable; import org.jboss.tools.seam.core.ISeamProject; import org.jboss.tools.seam.core.SeamCoreMessages; import org.jboss.tools.seam.core.SeamCorePlugin; import org.jboss.tools.seam.core.SeamPreferences; import org.jboss.tools.seam.internal.core.el.SeamELCompletionEngine; -import org.jboss.tools.seam.internal.core.el.SeamELOperandResolveStatus; import org.w3c.dom.Node; import org.w3c.dom.NodeList; = @@ -409,58 +412,67 @@ boolean unresolvedTokenIsVariable =3D false; try { if (!operand.endsWith(".")) { //$NON-NLS-1$ - SeamELOperandResolveStatus status =3D = - (SeamELOperandResolveStatus)engine.resolveELOperand(file, operandToke= n, true, varListForCurentValidatedNode, elVarSearcher); + ELResolution resolution =3D engine.resolveELOperand(file, operandToken= , true, varListForCurentValidatedNode, elVarSearcher); = - if(status.isError()) { + if(!resolution.isResolved()) { Set names =3D findVariableNames(operandToken); for (String name : names) { validationContext.addLinkedEl(name, elReference); } } = + List segments =3D resolution.getSegments(); + List usedVariables =3D new ArrayList(); + for (ELSegment segment : segments) { + if(!segment.getVariables().isEmpty()) { + usedVariables.addAll(segment.getVariables()); + } + // Check pair for getter/setter + if(segment instanceof JavaMemberELSegmentImpl) { + JavaMemberELSegmentImpl javaSegment =3D (JavaMemberELSegmentImpl)seg= ment; + if(!javaSegment.getUnpairedGettersOrSetters().isEmpty()) { + TypeInfoCollector.MethodInfo unpairedMethod =3D javaSegment.getUnpa= iredGettersOrSetters().values().iterator().next(); + String methodName =3D unpairedMethod.getName(); + String propertyName =3D javaSegment.getUnpairedGettersOrSetters().k= eySet().iterator().next(); + String missingMethodName =3D SeamCoreMessages.SEAM_EL_VALIDATOR_SET= TER; + String existedMethodName =3D SeamCoreMessages.SEAM_EL_VALIDATOR_GET= TER; + if(methodName.startsWith("s")) { //$NON-NLS-1$ + missingMethodName =3D existedMethodName; + existedMethodName =3D SeamCoreMessages.SEAM_EL_VALIDATOR_SETTER; + } + int startPosition =3D documnetOffset + operandToken.getStartPositio= n(); + int length =3D operandToken.getLength(); + int startPr =3D operand.indexOf(propertyName); + if(startPr>-1) { + startPosition =3D startPosition + startPr; + length =3D propertyName.length(); + } + IMarker marker =3D addError(UNPAIRED_GETTER_OR_SETTER_MESSAGE_ID, S= eamPreferences.UNPAIRED_GETTER_OR_SETTER, new String[]{propertyName, existe= dMethodName, missingMethodName}, length, startPosition, file); + elReference.addMarker(marker); + } + } + } // Save links between resource and used variables names - for(ISeamContextVariable variable: status.getUsedVariables()) { + for(IVariable variable: usedVariables) { validationContext.addLinkedEl(variable.getName(), elReference); } = - // Check pair for getter/setter - if(!status.getUnpairedGettersOrSetters().isEmpty()) { - TypeInfoCollector.MethodInfo unpairedMethod =3D status.getUnpairedGet= tersOrSetters().values().iterator().next(); - String methodName =3D unpairedMethod.getName(); - String propertyName =3D status.getUnpairedGettersOrSetters().keySet()= .iterator().next(); - String missingMethodName =3D SeamCoreMessages.SEAM_EL_VALIDATOR_SETTE= R; - String existedMethodName =3D SeamCoreMessages.SEAM_EL_VALIDATOR_GETTE= R; - if(methodName.startsWith("s")) { //$NON-NLS-1$ - missingMethodName =3D existedMethodName; - existedMethodName =3D SeamCoreMessages.SEAM_EL_VALIDATOR_SETTER; - } - int startPosition =3D documnetOffset + operandToken.getStartPosition(= ); - int length =3D operandToken.getLength(); - int startPr =3D operand.indexOf(propertyName); - if(startPr>-1) { - startPosition =3D startPosition + startPr; - length =3D propertyName.length(); - } - IMarker marker =3D addError(UNPAIRED_GETTER_OR_SETTER_MESSAGE_ID, Sea= mPreferences.UNPAIRED_GETTER_OR_SETTER, new String[]{propertyName, existedM= ethodName, missingMethodName}, length, startPosition, file); - elReference.addMarker(marker); - } - - if (status.isOK()) { + if (resolution.isResolved()) { // It's valid EL. return; } - = - ELInvocationExpression ts =3D status.getUnresolvedTokens(); - = - varName =3D ts.getMemberName(); + + ELSegment segment =3D resolution.getUnresolvedSegment(); + LexicalToken token =3D segment.getToken(); + + varName =3D token.getText(); if(varName =3D=3D null) { //This is syntax error case. Reported by parser. return; = } - offsetOfVarName =3D documnetOffset + ts.getInvocationStartPosition(); + offsetOfVarName =3D documnetOffset + token.getStart(); lengthOfVarName =3D varName =3D=3D null ? 0 : varName.length(); - if(status.getUsedVariables().isEmpty()) { + if(usedVariables.isEmpty()) { unresolvedTokenIsVariable =3D true; } } Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/se= am/ui/text/java/SeamELProposalProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= text/java/SeamELProposalProcessor.java 2009-09-16 06:09:18 UTC (rev 17605) +++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= text/java/SeamELProposalProcessor.java 2009-09-16 06:45:26 UTC (rev 17606) @@ -436,7 +436,7 @@ List vars =3D varSearcher.findAllVars(viewer, offset); = SeamELCompletionEngine fEngine=3D new SeamELCompletionEngine(); - List suggestions =3D fEngine.getCompletions(file, documen= t, prefix, offset + proposalPrefix.length() - prefix.length(), false, vars); + List suggestions =3D fEngine.getCompletions(file, prefix,= offset + proposalPrefix.length() - prefix.length(), false, vars); List uniqueSuggestions =3D fEngine.makeKbUnique(suggestio= ns); = List result=3D new ArrayList(= ); Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/se= am/ui/views/properties/SeamELAttributeContentProposalProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= views/properties/SeamELAttributeContentProposalProvider.java 2009-09-16 06:= 09:18 UTC (rev 17605) +++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= views/properties/SeamELAttributeContentProposalProvider.java 2009-09-16 06:= 45:26 UTC (rev 17606) @@ -110,7 +110,7 @@ = List suggestions =3D null; try { - suggestions =3D engine.getCompletions(file, null, prefix, position, fa= lse, null); + suggestions =3D engine.getCompletions(file, prefix, position, false, n= ull); } catch (BadLocationException e) { SeamGuiPlugin.getPluginLog().logError(e); } Modified: trunk/seam/tests/org.jboss.tools.seam.ui.test/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.ui.test/META-INF/MANIFEST.MF 2009= -09-16 06:09:18 UTC (rev 17605) +++ trunk/seam/tests/org.jboss.tools.seam.ui.test/META-INF/MANIFEST.MF 2009= -09-16 06:45:26 UTC (rev 17606) @@ -37,7 +37,8 @@ org.jboss.tools.jst.jsp, org.jboss.tools.jst.jsp.test, org.eclipse.jdt.ui, - org.jboss.tools.vpe.ui.test + org.jboss.tools.vpe.ui.test, + org.jboss.tools.common.el.core;bundle-version=3D"2.0.0" Export-Package: org.jboss.tools.seam.ui.test, org.jboss.tools.seam.ui.test.ca, org.jboss.tools.seam.ui.test.hyperlink, --===============4842103149607102814==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 02:50:46 2009 Content-Type: multipart/mixed; boundary="===============3512621392916396385==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17607 - trunk/hibernatetools/plugins. Date: Wed, 16 Sep 2009 02:50:46 -0400 Message-ID: <200909160650.n8G6ok9Z017465@svn01.web.mwc.hst.phx2.redhat.com> --===============3512621392916396385== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: max.andersen(a)jboss.com Date: 2009-09-16 02:50:46 -0400 (Wed, 16 Sep 2009) New Revision: 17607 Removed: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.hblibs/ Log: Delete non used plugin --===============3512621392916396385==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 03:55:53 2009 Content-Type: multipart/mixed; boundary="===============6186687520866389888==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17608 - trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common. Date: Wed, 16 Sep 2009 03:55:53 -0400 Message-ID: <200909160755.n8G7trDi027826@svn01.web.mwc.hst.phx2.redhat.com> --===============6186687520866389888== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-16 03:55:52 -0400 (Wed, 16 Sep 2009) New Revision: 17608 Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/M= ethodNotImplementedException.java trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/m= essages.properties Log: fix JUnit test error in CommonAllTests.testMethodNotImplementedException Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/c= ommon/MethodNotImplementedException.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= MethodNotImplementedException.java 2009-09-16 06:50:46 UTC (rev 17607) +++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= MethodNotImplementedException.java 2009-09-16 07:55:52 UTC (rev 17608) @@ -17,7 +17,7 @@ public class MethodNotImplementedException extends RuntimeException { = public MethodNotImplementedException() { - super("Method is not implemented yet"); //$NON-NLS-1$ + super(Messages.MethodNotImplementedException_MethodIsNotImplementedYet);= //$NON-NLS-1$ } = public MethodNotImplementedException(String message, Throwable cause) { Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/c= ommon/messages.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= messages.properties 2009-09-16 06:50:46 UTC (rev 17607) +++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= messages.properties 2009-09-16 07:55:52 UTC (rev 17608) @@ -4,4 +4,4 @@ SAXValidator_UnableToInstantiateMessage=3Derror: Unable to instantiate par= ser ({0}) XMLUtilities_IOExceptionMessage=3DUnexpected parser error XMLUtilities_SAXExceptionMessage=3DUnexpected parser error -MethodNotImplementedException_MethodIsNotImplementedYet=3DMethod is not im= plemented yet = +MethodNotImplementedException_MethodIsNotImplementedYet=3DMethod is not im= plemented yet --===============6186687520866389888==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 06:46:38 2009 Content-Type: multipart/mixed; boundary="===============8742509616092762408==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17609 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring. Date: Wed, 16 Sep 2009 06:46:37 -0400 Message-ID: <200909161046.n8GAkbAd032261@svn01.web.mwc.hst.phx2.redhat.com> --===============8742509616092762408== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dazarov Date: 2009-09-16 06:46:37 -0400 (Wed, 16 Sep 2009) New Revision: 17609 Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/refactoring/SeamRefactorSearcher.java trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/refactoring/SeamRenameMethodParticipant.java Log: https://jira.jboss.org/jira/browse/JBIDE-4856 Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/refactoring/SeamRefactorSearcher.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java 2009-09-16 07:55:52 UTC = (rev 17608) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java 2009-09-16 10:46:37 UTC = (rev 17609) @@ -337,4 +337,10 @@ = return methodName; } + = + public static boolean isSetter(String methodName){ + if(methodName.startsWith(SET)) + return true; + return false; + } } Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/refactoring/SeamRenameMethodParticipant.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRenameMethodParticipant.java 2009-09-16 07:55:= 52 UTC (rev 17608) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRenameMethodParticipant.java 2009-09-16 10:46:= 37 UTC (rev 17609) @@ -47,7 +47,8 @@ @Override public RefactoringStatus checkConditions(IProgressMonitor pm, CheckConditionsContext context) throws OperationCanceledException { - searcher.findELReferences(); + if(searcher !=3D null) + searcher.findELReferences(); = return status; } @@ -71,7 +72,11 @@ rootChange =3D new CompositeChange(""); method =3D (IMethod)element; = + if(!SeamRenameMethodSearcher.isSetter(method.getElementName())) + return false; + = oldName =3D SeamRenameMethodSearcher.getPropertyName(method.getElementN= ame()); + = newName =3D SeamRenameMethodSearcher.getPropertyName(getArguments().get= NewName()); searcher =3D new SeamRenameMethodSearcher((IFile)method.getResource(), = oldName); return true; @@ -104,7 +109,7 @@ if(!keys.contains(key)){ TextFileChange change =3D getChange(file); TextEdit edit =3D new ReplaceEdit(offset, length, text); - //change.addEdit(edit); + change.addEdit(edit); keys.add(key); } } --===============8742509616092762408==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 07:56:54 2009 Content-Type: multipart/mixed; boundary="===============9176475755637840093==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17610 - trunk/smooks/plugins/org.jboss.tools.smooks.core/model. Date: Wed, 16 Sep 2009 07:56:53 -0400 Message-ID: <200909161156.n8GBur4t014388@svn01.web.mwc.hst.phx2.redhat.com> --===============9176475755637840093== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: DartPeng Date: 2009-09-16 07:56:53 -0400 (Wed, 16 Sep 2009) New Revision: 17610 Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks-graphics-e= xt.xsd Removed: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks-graphics-e= xt.xsd Log: JBIDE-4878 Change the unit test case Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks-grap= hics-ext.xsd =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks-graphics-= ext.xsd 2009-09-16 10:46:37 UTC (rev 17609) +++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks-graphics-= ext.xsd 2009-09-16 11:56:53 UTC (rev 17610) @@ -1,92 +0,0 @@ - - - - - - Smooks Graphics - Editor Extention File Schema - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks-graphi= cs-ext.xsd =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks-graphics-= ext.xsd (rev 0) +++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks-graphics-= ext.xsd 2009-09-16 11:56:53 UTC (rev 17610) @@ -0,0 +1,102 @@ + + + + + + + + Smooks Graphics Editor Extention File Schema + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/model= /smooks-graphics-ext.xsd ___________________________________________________________________ Name: svn:mime-type + text/plain --===============9176475755637840093==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 08:21:19 2009 Content-Type: multipart/mixed; boundary="===============6881363019209209989==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17611 - trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/refactoring. Date: Wed, 16 Sep 2009 08:21:19 -0400 Message-ID: <200909161221.n8GCLJMT020068@svn01.web.mwc.hst.phx2.redhat.com> --===============6881363019209209989== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dazarov Date: 2009-09-16 08:21:18 -0400 (Wed, 16 Sep 2009) New Revision: 17611 Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/r= efactoring/SeamRefactorContributionFactory.java Log: https://jira.jboss.org/jira/browse/JBIDE-4771 Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/se= am/ui/refactoring/SeamRefactorContributionFactory.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= refactoring/SeamRefactorContributionFactory.java 2009-09-16 11:56:53 UTC (r= ev 17610) +++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= refactoring/SeamRefactorContributionFactory.java 2009-09-16 12:21:18 UTC (r= ev 17611) @@ -195,7 +195,7 @@ // = // additions.addContributionItem(mm, null); // } - checkPropertyName(selection, mm, additions); + //checkPropertyName(selection, mm, additions); status =3D checkContextVariableInJava(editorFile, fileContent, select= ion); } else if(XML_EXT.equalsIgnoreCase(ext) || XHTML_EXT.equalsIgnoreCase(= ext) || JSP_EXT.equalsIgnoreCase(ext)) status =3D checkContextVariableInDOM(editorFile, fileContent, selecti= on); --===============6881363019209209989==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 09:10:18 2009 Content-Type: multipart/mixed; boundary="===============3186437833403060062==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17612 - in trunk/common/plugins/org.jboss.tools.common.model: schema and 6 other directories. Date: Wed, 16 Sep 2009 09:10:17 -0400 Message-ID: <200909161310.n8GDAHMm027607@svn01.web.mwc.hst.phx2.redhat.com> --===============3186437833403060062== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-16 09:10:17 -0400 (Wed, 16 Sep 2009) New Revision: 17612 Added: trunk/common/plugins/org.jboss.tools.common.model/schema/modelnatures.ex= sd trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/project/ModelNatureExtension.java Removed: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/meta/help/HelpPaletteHandler.java Modified: trunk/common/plugins/org.jboss.tools.common.model/plugin.xml trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/meta/help/HelpUtil.java trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/filesystems/impl/FileSystemsTreeConstraint.java trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/handlers/RemoveModelNatureHandler.java trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/project/ClassPathUpdate.java trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/project/ModelNature.java trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/project/Watcher.java trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/util/EclipseResourceUtil.java trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/js= t/web/tld/FilePathEncoderFactory.java Log: https://jira.jboss.org/jira/browse/JBIDE-4893 Modified: trunk/common/plugins/org.jboss.tools.common.model/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/plugin.xml 2009-09-16= 12:21:18 UTC (rev 17611) +++ trunk/common/plugins/org.jboss.tools.common.model/plugin.xml 2009-09-16= 13:10:17 UTC (rev 17612) @@ -11,6 +11,7 @@ + = Added: trunk/common/plugins/org.jboss.tools.common.model/schema/modelnature= s.exsd =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/schema/modelnatures.e= xsd (rev 0) +++ trunk/common/plugins/org.jboss.tools.common.model/schema/modelnatures.e= xsd 2009-09-16 13:10:17 UTC (rev 17612) @@ -0,0 +1,126 @@ + + + + + + + + + [Enter description of this extension point.] + + + + + + + + + + + + + + + + + = + + + + + + + = + + + + + + + = + + + + + + + + + + + + + + + = + + + + + + + = + + + + + + + = + + + + + + + + + + = + + + + + + + + + + + + + + + [Enter the first release in which this extension point appears.] + + + + + + + + + [Enter extension point usage example here.] + + + + + + + + + [Enter API information here.] + + + + + + + + + [Enter information about supplied implementation of this extensio= n point.] + + + + + Property changes on: trunk/common/plugins/org.jboss.tools.common.model/sche= ma/modelnatures.exsd ___________________________________________________________________ Name: svn:mime-type + text/plain Deleted: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/to= ols/common/meta/help/HelpPaletteHandler.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/meta/help/HelpPaletteHandler.java 2009-09-16 12:21:18 UTC (rev 17611) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/meta/help/HelpPaletteHandler.java 2009-09-16 13:10:17 UTC (rev 17612) @@ -1,38 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.common.meta.help; - -import java.util.*; -import org.jboss.tools.common.model.*; - -public class HelpPaletteHandler extends HelpHandler { - - public HelpPaletteHandler() {} - - public void executeHandler(XModelObject object, Properties prop) throw= s XModelException { - if(!isEnabled(object)) return; - XModelObject tab =3D getTabObject(object); - String key =3D (tab =3D=3D null) ? null : tab.getModelEntity().get= Name() + "_" + tab.getPathPart().replace(' ', '_'); //$NON-NLS-1$ - if(key =3D=3D null || !HelpUtil.hasHelp(key)) { - super.executeHandler(object, prop); - } else { - HelpUtil.callHelp(object.getModel(), key); - } - } - - private XModelObject getTabObject(XModelObject object) { - XModelObject tab =3D object; - while(tab !=3D null && !tab.getModelEntity().getName().startsWith(= "SharablePageTab")) //$NON-NLS-1$ - tab =3D tab.getParent(); - return tab; - } - = -} Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/t= ools/common/meta/help/HelpUtil.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/meta/help/HelpUtil.java 2009-09-16 12:21:18 UTC (rev 17611) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/meta/help/HelpUtil.java 2009-09-16 13:10:17 UTC (rev 17612) @@ -39,16 +39,6 @@ return path !=3D null && path.length() > 0; } = - public static void callHelp(XModel model, String key) throws XModelExc= eption { - String u =3D (key =3D=3D null) ? null : keys.getProperty(key); - if(u =3D=3D null) return; - //if(u.endsWith("noHelpYet.html")) ModelPlugin.log("Help for key "= + key + " is not available."); - XModelObject editor =3D model.getByPath("%Options%/External Progra= ms/Internet Browser"); //$NON-NLS-1$ - if(editor =3D=3D null) throw new XModelException("External Program= 'Internet Browser' is not set in Options."); - String f =3D "" + model.getProperties().getProperty(XModelConstant= s.HOME) + "/doc/help" + u; //$NON-NLS-1$ - OpenWithExternalHandler.start("Help", f, editor); //$NON-NLS-1$ - } - = public static boolean isHelpPluginInstalled() { for (int i =3D 0; i < PLUGINS.length; i++) if(Platform.getBundle(PLUGINS[i]) !=3D null) return true; @@ -76,22 +66,6 @@ return p; } = - public static void help(XModel model, String key) { - ServiceDialog d =3D model.getService(); - if(!hasHelp(key)) { - d.showDialog(ModelMessages.WARNING, = - MessageFormat.format("Help for key {0} is not available.", k= ey), = - new String[]{"Close"}, null, ServiceDialog.WARNING); - } else { - try { - HelpUtil.callHelp(model, key); - } catch (XModelException e) { - d.showDialog(ModelMessages.WARNING, e.getMessage(), = - new String[]{"Close"}, null, ServiceDialog.WARNING); - } - } - } - = public static void helpEclipse(XModel model, String key) { ServiceDialog d =3D model.getService(); if(!isHelpPluginInstalled()) { Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/t= ools/common/model/filesystems/impl/FileSystemsTreeConstraint.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/filesystems/impl/FileSystemsTreeConstraint.java 2009-09-16 12:2= 1:18 UTC (rev 17611) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/filesystems/impl/FileSystemsTreeConstraint.java 2009-09-16 13:1= 0:17 UTC (rev 17612) @@ -19,7 +19,7 @@ = public void update(XModel model) {} = - String excludeExtensions =3D ".project.struts.classpath."; //$NON-NLS-= 1$ + String excludeExtensions =3D ".project.classpath."; //$NON-NLS-1$ = public boolean accepts(XModelObject object) { String entity =3D object.getModelEntity().getName(); Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/t= ools/common/model/handlers/RemoveModelNatureHandler.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/handlers/RemoveModelNatureHandler.java 2009-09-16 12:21:18 UTC = (rev 17611) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/handlers/RemoveModelNatureHandler.java 2009-09-16 13:10:17 UTC = (rev 17612) @@ -27,6 +27,7 @@ import org.jboss.tools.common.model.*; import org.jboss.tools.common.model.filesystems.FileSystemsHelper; import org.jboss.tools.common.model.project.IModelNature; +import org.jboss.tools.common.model.project.ModelNatureExtension; import org.jboss.tools.common.model.util.EclipseResourceUtil; import org.jboss.tools.common.util.FileUtil; = @@ -37,16 +38,24 @@ String nature =3D getNature(object); if(nature =3D=3D null) return false; XActionImpl i =3D (XActionImpl)action; - String n =3D (nature.indexOf("struts") > 0) ? "Struts" : //$NON-NLS-1$ /= /$NON-NLS-2$ - (nature.indexOf("jsf") > 0) ? "JSF" : "Model"; //$NON-NLS-1$= //$NON-NLS-2$ //$NON-NLS-3$ - i.setDisplayName(MessageFormat.format("Remove {0} Capabilities", n)); + i.setDisplayName(MessageFormat.format("Remove {0} Capabilities", nature)= ); return true; } = private String getNature(XModelObject object) { IProject p =3D EclipseResourceUtil.getProject(object); - IModelNature n =3D EclipseResourceUtil.getModelNature(p); - return n =3D=3D null ? null : n.getID(); = + ModelNatureExtension[] es =3D ModelNatureExtension.getInstances(); + for (ModelNatureExtension ext: es) { + String name =3D ext.getName(); + if(p !=3D null && p.isAccessible()) try { + if(p.hasNature(name)) { + return ext.getDisplayName(); + } + } catch (CoreException e) { + = + } + } + return null; = } = public void executeHandler(XModelObject object, Properties p) throws XMod= elException { Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/t= ools/common/model/project/ClassPathUpdate.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/project/ClassPathUpdate.java 2009-09-16 12:21:18 UTC (rev 17611) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/project/ClassPathUpdate.java 2009-09-16 13:10:17 UTC (rev 17612) @@ -39,7 +39,7 @@ String entity =3D model.getRoot().getModelEntity().getName(); if("RootDummy".equals(entity)) { //$NON-NLS-1$ String pn =3D (project =3D=3D null) ? "?" : project.getName(); //$NON-N= LS-1$ - throw new IllegalArgumentException("Struts Project " + pn + " is corrup= ted."); //$NON-NLS-1$ //$NON-NLS-2$ + throw new IllegalArgumentException("Project " + pn + " is corrupted.");= //$NON-NLS-1$ //$NON-NLS-2$ } this.model =3D model; } Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/t= ools/common/model/project/ModelNature.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/project/ModelNature.java 2009-09-16 12:21:18 UTC (rev 17611) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/project/ModelNature.java 2009-09-16 13:10:17 UTC (rev 17612) @@ -201,11 +201,13 @@ public static boolean checkModelNature(IProject project) { if(project =3D=3D null || !project.isOpen()) return false; String nature =3D null; + ModelNatureExtension[] es =3D ModelNatureExtension.getInstances(); try { - if(project.hasNature("org.jboss.tools.jsf.jsfnature")) { //$NON-NLS-1$ - nature =3D "org.jboss.tools.jsf.jsfnature"; //$NON-NLS-1$ - } else if(project.hasNature("org.jboss.tools.struts.strutsnature")) { /= /$NON-NLS-1$ - nature =3D "org.jboss.tools.struts.strutsnature"; //$NON-NLS-1$ + for (ModelNatureExtension ext: es) { + if(project.hasNature(ext.getName())) { + nature =3D ext.getName(); + break; + } } } catch (CoreException e) { ModelPlugin.getPluginLog().logError(e); Added: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tool= s/common/model/project/ModelNatureExtension.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/project/ModelNatureExtension.java (rev = 0) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/project/ModelNatureExtension.java 2009-09-16 13:10:17 UTC (rev = 17612) @@ -0,0 +1,74 @@ +package org.jboss.tools.common.model.project; + +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.core.runtime.IConfigurationElement; +import org.eclipse.core.runtime.IExtensionPoint; +import org.eclipse.core.runtime.Platform; +import org.jboss.tools.common.model.plugin.ModelPlugin; +import org.jboss.tools.common.model.util.ModelFeatureFactory; +import org.jboss.tools.jst.web.tld.IFilePathEncoder; + +public class ModelNatureExtension { + public static String EXTENSION_POINT =3D "org.jboss.tools.common.model.mo= delnatures"; //$NON-NLS-1$ + + String name; + String displayName; + String pathEncoder; + String watcherContributor; + IFilePathEncoder pathEncoderInstance; + + public ModelNatureExtension() {} + + public String getName() { + return name; + } + + public String getDisplayName() { + return displayName; + } + + public IFilePathEncoder getPathEncoder () { + if(pathEncoderInstance !=3D null) { + return pathEncoderInstance; + } + if(pathEncoder =3D=3D null) { + return null; + } + if(pathEncoder.length() =3D=3D 0) { + pathEncoder =3D null; + return null; + } + try { + pathEncoderInstance =3D (IFilePathEncoder)ModelFeatureFactory.getInstan= ce().createFeatureInstance(pathEncoder); + } catch (ClassCastException e) { + ModelPlugin.getPluginLog().logError(e); + } finally { + pathEncoder =3D null; + } + return pathEncoderInstance; + } + + public String getWatcherContributor() { + return watcherContributor; + } + + static ModelNatureExtension[] INSTANCES; + + public static ModelNatureExtension[] getInstances() { + if(INSTANCES !=3D null) return INSTANCES; + List list =3D new ArrayList(= ); + IExtensionPoint point =3D Platform.getExtensionRegistry().getExtensionPo= int(EXTENSION_POINT); + IConfigurationElement[] es =3D point.getConfigurationElements(); + for (IConfigurationElement e: es) { + ModelNatureExtension n =3D new ModelNatureExtension(); + n.name =3D e.getAttribute("name"); //$NON-NLS-1$ + n.displayName =3D e.getAttribute("displayName"); //$NON-NLS-1$ + n.pathEncoder =3D e.getAttribute("pathEncoder"); //$NON-NLS-1$ + n.watcherContributor =3D e.getAttribute("watcherContributor"); //$NON-N= LS-1$ + list.add(n); + } + return INSTANCES =3D list.toArray(new ModelNatureExtension[0]); + } +} Property changes on: trunk/common/plugins/org.jboss.tools.common.model/src/= org/jboss/tools/common/model/project/ModelNatureExtension.java ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/t= ools/common/model/project/Watcher.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/project/Watcher.java 2009-09-16 12:21:18 UTC (rev 17611) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/project/Watcher.java 2009-09-16 13:10:17 UTC (rev 17612) @@ -21,11 +21,6 @@ import org.jboss.tools.common.model.util.ModelFeatureFactory; = public class Watcher implements XModelTreeListener { - static String[][] CONTRIBUTORS =3D new String[][]{ - {"org.jboss.tools.struts.webprj.model.helpers.sync.SyncProjectContext", = "org.jboss.tools.struts.strutsnature"}, //$NON-NLS-1$ //$NON-NLS-2$ - {"org.jboss.tools.jsf.web.JSFWatcherContributor", "org.jboss.tools.jsf.j= sfnature"} //$NON-NLS-1$ //$NON-NLS-2$ - }; - public static Watcher getInstance(XModel model) { Watcher instance =3D (Watcher)model.getManager("Watcher"); //$NON-NLS-1$ if(instance =3D=3D null) { @@ -59,13 +54,15 @@ = void updateContributors() { if(model =3D=3D null) return; - for (int i =3D 0; i < CONTRIBUTORS.length; i++) { - String nature =3D CONTRIBUTORS[i][1]; + ModelNatureExtension[] es =3D ModelNatureExtension.getInstances(); + for (int i =3D 0; i < es.length; i++) { + String nature =3D es[i].getName(); if(EclipseResourceUtil.hasNature(model, nature)) { if(contributors.containsKey(nature)) { continue; } else { - Object watcher =3D ModelFeatureFactory.getInstance().createFeat= ureInstance(CONTRIBUTORS[i][0]); + String contributorName =3D es[i].getWatcherContributor(); + Object watcher =3D ModelFeatureFactory.getInstance().createFeat= ureInstance(contributorName); if(watcher instanceof IWatcherContributor) { IWatcherContributor c =3D (IWatcherContributor)watcher; c.init(model); Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/t= ools/common/model/util/EclipseResourceUtil.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/util/EclipseResourceUtil.java 2009-09-16 12:21:18 UTC (rev 1761= 1) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/util/EclipseResourceUtil.java 2009-09-16 13:10:17 UTC (rev 1761= 2) @@ -20,7 +20,6 @@ import org.eclipse.core.runtime.FileLocator; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.Path; -import org.eclipse.core.runtime.Platform; import org.eclipse.core.runtime.Plugin; import org.eclipse.jdt.core.*; import org.eclipse.jdt.ui.PreferenceConstants; @@ -41,6 +40,7 @@ import org.jboss.tools.common.model.plugin.ModelPlugin; import org.jboss.tools.common.model.project.IModelNature; import org.jboss.tools.common.model.project.ModelNature; +import org.jboss.tools.common.model.project.ModelNatureExtension; = public class EclipseResourceUtil { = @@ -185,14 +185,11 @@ private static String[] MODEL_NATURES =3D new String[0]; = static { - List natures =3D new ArrayList(); - if(Platform.getBundle("org.jboss.tools.struts") !=3D null) { //$NON-NLS-= 1$ - natures.add("org.jboss.tools.struts.strutsnature"); //$NON-NLS-1$ + ModelNatureExtension[] es =3D ModelNatureExtension.getInstances(); + MODEL_NATURES =3D new String[es.length]; + for (int i =3D 0; i < es.length; i++) { + MODEL_NATURES[i] =3D es[i].getName(); } - if(Platform.getBundle("org.jboss.tools.jsf") !=3D null) { //$NON-NLS-1$ - natures.add("org.jboss.tools.jsf.jsfnature"); //$NON-NLS-1$ - } - MODEL_NATURES =3D natures.toArray(new String[0]); } = public static String[] getModelNatureNames() { @@ -275,7 +272,7 @@ static Map models =3D new HashMap(); = /** - * If project has no struts nature, the method creates new instance of mo= del = + * If project has no model nature, the method creates new instance of mod= el = * populates it with a filesystems corresponding to the project root * and links, and returns model object for the resource. = * The model created is not complete project, so it has property = Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/t= ools/jst/web/tld/FilePathEncoderFactory.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/FilePathEncoderFactory.java 2009-09-16 12:21:18 UTC (rev 17611) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/FilePathEncoderFactory.java 2009-09-16 13:10:17 UTC (rev 17612) @@ -12,26 +12,22 @@ = import org.eclipse.core.resources.IProject; import org.eclipse.core.runtime.CoreException; -import org.jboss.tools.common.model.plugin.ModelPlugin; -import org.jboss.tools.common.model.util.ModelFeatureFactory; +import org.jboss.tools.common.model.project.ModelNatureExtension; = public class FilePathEncoderFactory { - static IFilePathEncoder jsfEncoder =3D null; = - static { - try { - jsfEncoder =3D (IFilePathEncoder)ModelFeatureFactory.getInstance().crea= teFeatureInstance("org.jboss.tools.jsf.model.helpers.pages.FilePathEncoder"= ); //$NON-NLS-1$ - } catch (ClassCastException e) { - ModelPlugin.getPluginLog().logError(e); - } - } - public static IFilePathEncoder getEncoder(IProject project) { if(project =3D=3D null || !project.isOpen()) return null; - try { - if(project.hasNature("org.jboss.tools.jsf.jsfnature")) return jsfEncode= r; //$NON-NLS-1$ - } catch (CoreException e) { - //ignore - all checks are done above + ModelNatureExtension[] es =3D ModelNatureExtension.getInstances(); + for (int i =3D 0; i < es.length; i++) { + try { + if(project.hasNature(es[i].getName())) { + IFilePathEncoder encoder =3D es[i].getPathEncoder(); + if(encoder !=3D null) return encoder; + } + } catch (CoreException e) { + //ignore - all checks are done above + } } return null; } --===============3186437833403060062==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 09:22:06 2009 Content-Type: multipart/mixed; boundary="===============8463752173585624643==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17613 - trunk/jsf/plugins/org.jboss.tools.jsf. Date: Wed, 16 Sep 2009 09:22:05 -0400 Message-ID: <200909161322.n8GDM5Dg029855@svn01.web.mwc.hst.phx2.redhat.com> --===============8463752173585624643== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-16 09:22:05 -0400 (Wed, 16 Sep 2009) New Revision: 17613 Modified: trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4893 Modified: trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml 2009-09-16 13:10:17 UT= C (rev 17612) +++ trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml 2009-09-16 13:22:05 UT= C (rev 17613) @@ -437,4 +437,13 @@ resolver-class=3D"org.jboss.tools.jsf.model.JSFMessageELComplet= ionEngine"/> + + + --===============8463752173585624643==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 09:22:38 2009 Content-Type: multipart/mixed; boundary="===============0855759748367725884==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17614 - trunk/struts/plugins/org.jboss.tools.struts. Date: Wed, 16 Sep 2009 09:22:38 -0400 Message-ID: <200909161322.n8GDMciq029901@svn01.web.mwc.hst.phx2.redhat.com> --===============0855759748367725884== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-16 09:22:38 -0400 (Wed, 16 Sep 2009) New Revision: 17614 Modified: trunk/struts/plugins/org.jboss.tools.struts/plugin.xml Log: Modified: trunk/struts/plugins/org.jboss.tools.struts/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts/plugin.xml 2009-09-16 13:22= :05 UTC (rev 17613) +++ trunk/struts/plugins/org.jboss.tools.struts/plugin.xml 2009-09-16 13:22= :38 UTC (rev 17614) @@ -392,4 +392,12 @@ = = + + + \ No newline at end of file --===============0855759748367725884==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 11:01:57 2009 Content-Type: multipart/mixed; boundary="===============1283124746079020600==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17615 - trunk/common/plugins/org.jboss.tools.common.model/resources/meta. Date: Wed, 16 Sep 2009 11:01:57 -0400 Message-ID: <200909161501.n8GF1vR9016771@svn01.web.mwc.hst.phx2.redhat.com> --===============1283124746079020600== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-16 11:01:57 -0400 (Wed, 16 Sep 2009) New Revision: 17615 Modified: trunk/common/plugins/org.jboss.tools.common.model/resources/meta/options= _general.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4885 options and palette split to jsf struts and jboss Modified: trunk/common/plugins/org.jboss.tools.common.model/resources/meta/= options_general.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/resources/meta/option= s_general.xml 2009-09-16 13:22:38 UTC (rev 17614) +++ trunk/common/plugins/org.jboss.tools.common.model/resources/meta/option= s_general.xml 2009-09-16 15:01:57 UTC (rev 17615) @@ -2,8 +2,6 @@ - \ No newline at end of file --===============1283124746079020600==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 11:03:11 2009 Content-Type: multipart/mixed; boundary="===============5568793991908270793==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17616 - in trunk/jsf/plugins/org.jboss.tools.jsf: resources/meta and 1 other directory. Date: Wed, 16 Sep 2009 11:03:10 -0400 Message-ID: <200909161503.n8GF3AUc017004@svn01.web.mwc.hst.phx2.redhat.com> --===============5568793991908270793== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-16 11:03:10 -0400 (Wed, 16 Sep 2009) New Revision: 17616 Added: trunk/jsf/plugins/org.jboss.tools.jsf/resources/meta/jsf-options.xml trunk/jsf/plugins/org.jboss.tools.jsf/resources/meta/jsf-palette.xml Modified: trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4885 options and palette split to jsf struts and jboss Modified: trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml 2009-09-16 15:01:57 UT= C (rev 17615) +++ trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml 2009-09-16 15:03:10 UT= C (rev 17616) @@ -446,4 +446,15 @@ pathEncoder=3D"org.jboss.tools.jsf.model.helpers.pages.FilePathEnco= der" /> + + + + + + + + Added: trunk/jsf/plugins/org.jboss.tools.jsf/resources/meta/jsf-options.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf/resources/meta/jsf-options.xml = (rev 0) +++ trunk/jsf/plugins/org.jboss.tools.jsf/resources/meta/jsf-options.xml 20= 09-09-16 15:03:10 UTC (rev 17616) @@ -0,0 +1,17 @@ + + + + + + + + + + + \ No newline at end of file Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf/resources/meta/j= sf-options.xml ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jsf/plugins/org.jboss.tools.jsf/resources/meta/jsf-palette.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf/resources/meta/jsf-palette.xml = (rev 0) +++ trunk/jsf/plugins/org.jboss.tools.jsf/resources/meta/jsf-palette.xml 20= 09-09-16 15:03:10 UTC (rev 17616) @@ -0,0 +1,1508 @@ + + + + + + + + \ No newline at end of file Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf/resources/meta/j= sf-palette.xml ___________________________________________________________________ Name: svn:mime-type + text/plain --===============5568793991908270793==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 11:08:38 2009 Content-Type: multipart/mixed; boundary="===============7964371429500099518==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17618 - in trunk/seam/plugins/org.jboss.tools.seam.xml: resources/meta and 1 other directory. Date: Wed, 16 Sep 2009 11:08:38 -0400 Message-ID: <200909161508.n8GF8cv3018309@svn01.web.mwc.hst.phx2.redhat.com> --===============7964371429500099518== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-16 11:08:38 -0400 (Wed, 16 Sep 2009) New Revision: 17618 Added: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/jboss-palette= .xml Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4885 options and palette split to jsf struts and jboss Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml 2009-09-16 15:03= :54 UTC (rev 17617) +++ trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml 2009-09-16 15:08= :38 UTC (rev 17618) @@ -376,4 +376,11 @@ = + + + + + Added: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/jboss-pal= ette.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/jboss-palett= e.xml (rev 0) +++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/jboss-palett= e.xml 2009-09-16 15:08:38 UTC (rev 17618) @@ -0,0 +1,689 @@ + + + + + + \ No newline at end of file Property changes on: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/= meta/jboss-palette.xml ___________________________________________________________________ Name: svn:mime-type + text/plain --===============7964371429500099518==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 11:09:46 2009 Content-Type: multipart/mixed; boundary="===============0369091697125447907==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17619 - in trunk/struts/plugins/org.jboss.tools.struts: resources/meta and 1 other directory. Date: Wed, 16 Sep 2009 11:09:46 -0400 Message-ID: <200909161509.n8GF9kI7018521@svn01.web.mwc.hst.phx2.redhat.com> --===============0369091697125447907== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-16 11:09:45 -0400 (Wed, 16 Sep 2009) New Revision: 17619 Added: trunk/struts/plugins/org.jboss.tools.struts/resources/meta/struts-option= s.xml trunk/struts/plugins/org.jboss.tools.struts/resources/meta/struts-palett= e.xml Modified: trunk/struts/plugins/org.jboss.tools.struts/plugin.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4885 options and palette split to jsf struts and jboss Modified: trunk/struts/plugins/org.jboss.tools.struts/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts/plugin.xml 2009-09-16 15:08= :38 UTC (rev 17618) +++ trunk/struts/plugins/org.jboss.tools.struts/plugin.xml 2009-09-16 15:09= :45 UTC (rev 17619) @@ -400,4 +400,15 @@ watcherContributor=3D"org.jboss.tools.struts.webprj.model.helpers.s= ync.SyncProjectContext" /> + + + + + + + + \ No newline at end of file Added: trunk/struts/plugins/org.jboss.tools.struts/resources/meta/struts-op= tions.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts/resources/meta/struts-optio= ns.xml (rev 0) +++ trunk/struts/plugins/org.jboss.tools.struts/resources/meta/struts-optio= ns.xml 2009-09-16 15:09:45 UTC (rev 17619) @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]]> + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file Property changes on: trunk/struts/plugins/org.jboss.tools.struts/resources/= meta/struts-options.xml ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/struts/plugins/org.jboss.tools.struts/resources/meta/struts-pa= lette.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts/resources/meta/struts-palet= te.xml (rev 0) +++ trunk/struts/plugins/org.jboss.tools.struts/resources/meta/struts-palet= te.xml 2009-09-16 15:09:45 UTC (rev 17619) @@ -0,0 +1,649 @@ + + + + + + \ No newline at end of file Property changes on: trunk/struts/plugins/org.jboss.tools.struts/resources/= meta/struts-palette.xml ___________________________________________________________________ Name: svn:mime-type + text/plain --===============0369091697125447907==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 11:22:18 2009 Content-Type: multipart/mixed; boundary="===============1835514109207430378==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17620 - trunk/jsf/docs/userguide/en/modules. Date: Wed, 16 Sep 2009 11:22:18 -0400 Message-ID: <200909161522.n8GFMIUs022169@svn01.web.mwc.hst.phx2.redhat.com> --===============1835514109207430378== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: smukhina Date: 2009-09-16 11:22:17 -0400 (Wed, 16 Sep 2009) New Revision: 17620 Modified: trunk/jsf/docs/userguide/en/modules/editors.xml Log: https://jira.jboss.org/jira/browse/JBDS-860 CA for EL in Styles on Xhtml p= ages - 3.1.2. Content Assist is updated = Modified: trunk/jsf/docs/userguide/en/modules/editors.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/docs/userguide/en/modules/editors.xml 2009-09-16 15:09:45 UTC= (rev 17619) +++ trunk/jsf/docs/userguide/en/modules/editors.xml 2009-09-16 15:22:17 UTC= (rev 17620) @@ -238,7 +238,7 @@ Content Assist features while= developing: - Content Assist for XML, JSP and JSF configur= ation files + Content Assist for XML, XHTML, JSP and JSF = configuration files Content Assist based on project data --===============1835514109207430378==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 13:48:55 2009 Content-Type: multipart/mixed; boundary="===============3743143071098283589==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17621 - trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver. Date: Wed, 16 Sep 2009 13:48:55 -0400 Message-ID: <200909161748.n8GHmt9P020657@svn01.web.mwc.hst.phx2.redhat.com> --===============3743143071098283589== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-16 13:48:54 -0400 (Wed, 16 Sep 2009) New Revision: 17621 Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ELResolution.java trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ELResolutionImpl.java Log: https://jira.jboss.org/jira/browse/JBIDE-4860 Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss= /tools/common/el/core/resolver/ELResolution.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolution.java 2009-09-16 15:22:17 UTC (rev 176= 20) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolution.java 2009-09-16 17:48:54 UTC (rev 176= 21) @@ -37,11 +37,11 @@ ELContext getContext(); = /** - * Finds the segment which is resolved to given java element. + * Finds the segments which are resolved to given java element. * @param element * @return */ - ELSegment findSegmentByJavaElement(IJavaElement element); + List findSegmentsByJavaElement(IJavaElement element); = /** * Finds the segment which is located at given offset. Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss= /tools/common/el/core/resolver/ELResolutionImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolutionImpl.java 2009-09-16 15:22:17 UTC (rev= 17620) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolutionImpl.java 2009-09-16 17:48:54 UTC (rev= 17621) @@ -33,9 +33,9 @@ protected boolean mapOrCollectionOrBundleAmoungTheTokens; = /* (non-Javadoc) - * @see org.jboss.tools.common.el.core.resolver.ELResolution#findSegmentB= yJavaElement(org.eclipse.jdt.core.IJavaElement) + * @see org.jboss.tools.common.el.core.resolver.ELResolution#findSegments= ByJavaElement(org.eclipse.jdt.core.IJavaElement) */ - public ELSegment findSegmentByJavaElement(IJavaElement element) { + public List findSegmentsByJavaElement(IJavaElement element) { // TODO return null; } --===============3743143071098283589==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 14:01:26 2009 Content-Type: multipart/mixed; boundary="===============4582805794139509451==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17622 - trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver. Date: Wed, 16 Sep 2009 14:01:26 -0400 Message-ID: <200909161801.n8GI1QRp023364@svn01.web.mwc.hst.phx2.redhat.com> --===============4582805794139509451== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-16 14:01:25 -0400 (Wed, 16 Sep 2009) New Revision: 17622 Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/JavaMemberELSegment.java Log: https://jira.jboss.org/jira/browse/JBIDE-4860 Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss= /tools/common/el/core/resolver/JavaMemberELSegment.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/JavaMemberELSegment.java 2009-09-16 17:48:54 UTC (= rev 17621) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/JavaMemberELSegment.java 2009-09-16 18:01:25 UTC (= rev 17622) @@ -37,4 +37,4 @@ * @return true if an underlying object is field and this field has sette= r. */ boolean hasSetter(); -} \ No newline at end of file +} = \ No newline at end of file --===============4582805794139509451==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 14:37:01 2009 Content-Type: multipart/mixed; boundary="===============5128836884931124700==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17623 - trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver. Date: Wed, 16 Sep 2009 14:37:01 -0400 Message-ID: <200909161837.n8GIb1he029685@svn01.web.mwc.hst.phx2.redhat.com> --===============5128836884931124700== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-16 14:37:01 -0400 (Wed, 16 Sep 2009) New Revision: 17623 Removed: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/JavaMemberElSegment.java Log: https://jira.jboss.org/jira/browse/JBIDE-4860 Deleted: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/= tools/common/el/core/resolver/JavaMemberElSegment.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/JavaMemberElSegment.java 2009-09-16 18:01:25 UTC (= rev 17622) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/JavaMemberElSegment.java 2009-09-16 18:37:01 UTC (= rev 17623) @@ -1,40 +0,0 @@ -/*************************************************************************= ****** = - * Copyright (c) 2009 Red Hat, Inc. = - * Distributed under license by Red Hat, Inc. All rights reserved. = - * This program is made available under the terms of the = - * Eclipse Public License v1.0 which accompanies this distribution, = - * and is available at http://www.eclipse.org/legal/epl-v10.html = - * = - * Contributors: = - * Red Hat, Inc. - initial API and implementation = - *************************************************************************= *****/ = -package org.jboss.tools.common.el.core.resolver; - -import org.eclipse.jdt.core.IJavaElement; - -/** - * Describes a segment of EL operand which is a Java Element. = - * @author Alexey Kazakov - */ -public interface JavaMemberElSegment extends ELSegment { - - /** - * @return member info object of resolved segment. May return null. - */ - TypeInfoCollector.MemberInfo getMemberInfo(); - - /** - * @return Java Element which represent this resolve segment. May return = null. = - */ - IJavaElement getJavaElement(); - - /** - * @return true if an underlying object is field and this field has gette= r. - */ - boolean hasGetter(); - - /** - * @return true if an underlying object is field and this field has sette= r. - */ - boolean hasSetter(); -} \ No newline at end of file --===============5128836884931124700==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 14:39:27 2009 Content-Type: multipart/mixed; boundary="===============4675311858778973631==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17624 - trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver. Date: Wed, 16 Sep 2009 14:39:27 -0400 Message-ID: <200909161839.n8GIdRjk029938@svn01.web.mwc.hst.phx2.redhat.com> --===============4675311858778973631== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-16 14:39:26 -0400 (Wed, 16 Sep 2009) New Revision: 17624 Removed: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/JavaMemberELSegment.java Log: https://jira.jboss.org/jira/browse/JBIDE-4860 Deleted: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/= tools/common/el/core/resolver/JavaMemberELSegment.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/JavaMemberELSegment.java 2009-09-16 18:37:01 UTC (= rev 17623) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/JavaMemberELSegment.java 2009-09-16 18:39:26 UTC (= rev 17624) @@ -1,40 +0,0 @@ -/*************************************************************************= ****** = - * Copyright (c) 2009 Red Hat, Inc. = - * Distributed under license by Red Hat, Inc. All rights reserved. = - * This program is made available under the terms of the = - * Eclipse Public License v1.0 which accompanies this distribution, = - * and is available at http://www.eclipse.org/legal/epl-v10.html = - * = - * Contributors: = - * Red Hat, Inc. - initial API and implementation = - *************************************************************************= *****/ = -package org.jboss.tools.common.el.core.resolver; - -import org.eclipse.jdt.core.IJavaElement; - -/** - * Describes a segment of EL operand which is a Java Element. = - * @author Alexey Kazakov - */ -public interface JavaMemberELSegment extends ELSegment { - - /** - * @return member info object of resolved segment. May return null. - */ - TypeInfoCollector.MemberInfo getMemberInfo(); - - /** - * @return Java Element which represent this resolve segment. May return = null. = - */ - IJavaElement getJavaElement(); - - /** - * @return true if an underlying object is field and this field has gette= r. - */ - boolean hasGetter(); - - /** - * @return true if an underlying object is field and this field has sette= r. - */ - boolean hasSetter(); -} = \ No newline at end of file --===============4675311858778973631==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 14:48:12 2009 Content-Type: multipart/mixed; boundary="===============0904998739904265553==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17625 - trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver. Date: Wed, 16 Sep 2009 14:48:12 -0400 Message-ID: <200909161848.n8GImCeq031472@svn01.web.mwc.hst.phx2.redhat.com> --===============0904998739904265553== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-16 14:48:12 -0400 (Wed, 16 Sep 2009) New Revision: 17625 Added: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/JavaMemberELSegment.java Log: https://jira.jboss.org/jira/browse/JBIDE-4860 Added: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/to= ols/common/el/core/resolver/JavaMemberELSegment.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/JavaMemberELSegment.java (= rev 0) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/JavaMemberELSegment.java 2009-09-16 18:48:12 UTC (= rev 17625) @@ -0,0 +1,40 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.common.el.core.resolver; + +import org.eclipse.jdt.core.IJavaElement; + +/** + * Describes a segment of EL operand which is a Java Element. = + * @author Alexey Kazakov + */ +public interface JavaMemberELSegment extends ELSegment { + + /** + * @return member info object of resolved segment. May return null. + */ + TypeInfoCollector.MemberInfo getMemberInfo(); + + /** + * @return Java Element which represent this resolve segment. May return = null. = + */ + IJavaElement getJavaElement(); + + /** + * @return true if an underlying object is field and this field has gette= r. + */ + boolean hasGetter(); + + /** + * @return true if an underlying object is field and this field has sette= r. + */ + boolean hasSetter(); +} \ No newline at end of file Property changes on: trunk/common/plugins/org.jboss.tools.common.el.core/sr= c/org/jboss/tools/common/el/core/resolver/JavaMemberELSegment.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============0904998739904265553==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 16:28:24 2009 Content-Type: multipart/mixed; boundary="===============6988863155051767911==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17626 - in trunk/as/plugins: org.jboss.ide.eclipse.as.wtp.ui and 2 other directories. Date: Wed, 16 Sep 2009 16:28:24 -0400 Message-ID: <200909162028.n8GKSOCn020436@svn01.web.mwc.hst.phx2.redhat.com> --===============6988863155051767911== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: rob.stryker(a)jboss.com Date: 2009-09-16 16:28:24 -0400 (Wed, 16 Sep 2009) New Revision: 17626 Added: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclip= se/as/wtp/ui/propertypage/OutputFolderReferenceWizardFragment.java Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/vcf/OutputFolderReferenceResolver.java trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/vcf/OutputFoldersVirtualComponent.java trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/META-INF/MANIFEST.MF trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/plugin.xml trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclip= se/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclip= se/as/wtp/ui/propertypage/ComponentDependencyContentProvider.java Log: Adding output folder mappings Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/= ide/eclipse/as/wtp/core/vcf/OutputFolderReferenceResolver.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/OutputFolderReferenceResolver.java 2009-09-16 18:48:1= 2 UTC (rev 17625) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/OutputFolderReferenceResolver.java 2009-09-16 20:28:2= 4 UTC (rev 17626) @@ -14,7 +14,7 @@ import org.eclipse.wst.common.componentcore.resources.IVirtualReference; = public class OutputFolderReferenceResolver implements IReferenceResolver { - public static final String OUTPUT_FOLDER_SEGMENT =3D "org.jboss.ide.eclip= se.as.wtp.core.vcf.outputFolder"; + public static final String OUTPUT_FOLDER_SEGMENT =3D "org.jboss.ide.eclip= se.as.wtp.core.vcf.outputFolders"; public static final String OUTPUT_FOLDER_PROTOCOL =3D PlatformURLModuleCo= nnection.MODULE_PROTOCOL +IPath.SEPARATOR+ OUTPUT_FOLDER_SEGMENT + IPath.SEPARATOR; public OutputFolderReferenceResolver() { @@ -38,7 +38,11 @@ public IVirtualReference resolve(IVirtualComponent context, ReferencedComponent referencedComponent) { String project =3D referencedComponent.getHandle().segment(1); - IProject p =3D ResourcesPlugin.getWorkspace().getRoot().getProject(proje= ct); + IProject p =3D null; + if( !project.equals("")) = + p =3D ResourcesPlugin.getWorkspace().getRoot().getProject(project); + else + p =3D context.getProject(); IVirtualComponent comp =3D new OutputFoldersVirtualComponent(p, context); IVirtualReference ref =3D ComponentCore.createReference(context, comp); ref.setArchiveName(referencedComponent.getArchiveName()); @@ -49,11 +53,12 @@ = public ReferencedComponent resolve(IVirtualReference reference) { if( reference.getReferencedComponent() instanceof OutputFoldersVirtualCo= mponent ) { + OutputFoldersVirtualComponent comp =3D (OutputFoldersVirtualComponent)r= eference.getReferencedComponent(); IProject p =3D reference.getReferencedComponent().getProject(); ReferencedComponent rc =3D ComponentcorePackage.eINSTANCE.getComponentc= oreFactory().createReferencedComponent(); rc.setArchiveName(reference.getArchiveName()); rc.setRuntimePath(reference.getRuntimePath()); - rc.setHandle(URI.createURI(OUTPUT_FOLDER_PROTOCOL + p.getName())); + rc.setHandle(URI.createURI(comp.getId())); rc.setDependencyType(DependencyType.CONSUMES_LITERAL); return rc; } Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/= ide/eclipse/as/wtp/core/vcf/OutputFoldersVirtualComponent.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/OutputFoldersVirtualComponent.java 2009-09-16 18:48:1= 2 UTC (rev 17625) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/OutputFoldersVirtualComponent.java 2009-09-16 20:28:2= 4 UTC (rev 17626) @@ -1,5 +1,7 @@ package org.jboss.ide.eclipse.as.wtp.core.vcf; = +import java.util.ArrayList; +import java.util.List; import java.util.Properties; = import org.eclipse.core.resources.IContainer; @@ -8,6 +10,10 @@ import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.Path; +import org.eclipse.jdt.core.IJavaProject; +import org.eclipse.jdt.core.IPackageFragmentRoot; +import org.eclipse.jdt.core.JavaCore; +import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities; import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; import org.eclipse.wst.common.componentcore.resources.IVirtualFolder; @@ -18,6 +24,7 @@ = private IProject project; private IVirtualComponent referencingComp; + = public OutputFoldersVirtualComponent(IProject p, IVirtualComponent refere= ncingComponent) { this.project =3D p; this.referencingComp =3D referencingComponent; @@ -45,7 +52,9 @@ } = protected String getId() { - return OutputFolderReferenceResolver.OUTPUT_FOLDER_SEGMENT + Path.SEPARA= TOR + project.getName(); + if( project.equals(referencingComp.getProject())) + return OutputFolderReferenceResolver.OUTPUT_FOLDER_PROTOCOL; + return OutputFolderReferenceResolver.OUTPUT_FOLDER_PROTOCOL + Path.SEPAR= ATOR + project.getName(); } = public IProject getProject() { @@ -56,10 +65,45 @@ } = public IVirtualFolder getRootFolder() { - IContainer[] containers =3D J2EEProjectUtilities.getOutputContainers(pro= ject); + IContainer[] containers =3D getOutputContainers(project); return new LimitedContainerVirtualFolder(project, new Path("/"), contain= ers); } + = + private static IContainer[] getOutputContainers(IProject project) { + List result =3D new ArrayList(); + try { + if (!project.hasNature(JavaCore.NATURE_ID)) + return new IContainer[] {}; + } catch (Exception e) { + } + IPackageFragmentRoot[] sourceContainers =3D getSourceContainers(project); + for (int i =3D 0; i < sourceContainers.length; i++) { + IContainer outputFolder =3D J2EEProjectUtilities.getOutputContainer(pro= ject, sourceContainers[i]); + if (outputFolder !=3D null && !result.contains(outputFolder)) + result.add(outputFolder); + } + return result.toArray(new IContainer[result.size()]); + } = + public static IPackageFragmentRoot[] getSourceContainers(IProject project= ) { + IJavaProject jProject =3D JavaCore.create(project); + if (jProject =3D=3D null) + return new IPackageFragmentRoot[0]; + List list =3D new ArrayList(= ); + IPackageFragmentRoot[] roots; + try { + roots =3D jProject.getPackageFragmentRoots(); + for (int i =3D 0; i < roots.length; i++) { + if (roots[i].getKind() !=3D IPackageFragmentRoot.K_SOURCE) + continue; + list.add(roots[i]); + } + } catch( JavaModelException jme ) { + } + return list.toArray(new IPackageFragmentRoot[list.size()]); + } + = + = public Properties getMetaProperties() { // TODO Auto-generated method stub return null; Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/META-INF/MANIFES= T.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/META-INF/MANIFEST.MF 2= 009-09-16 18:48:12 UTC (rev 17625) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/META-INF/MANIFEST.MF 2= 009-09-16 20:28:24 UTC (rev 17626) @@ -24,7 +24,8 @@ org.eclipse.wst.server.ui;bundle-version=3D"1.1.102", org.eclipse.wst.server.core;bundle-version=3D"1.1.101", org.eclipse.wst.common.emfworkbench.integration;bundle-version=3D"1.1.300= ", - org.eclipse.emf.ecore;bundle-version=3D"2.5.0" + org.eclipse.emf.ecore;bundle-version=3D"2.5.0", + org.jboss.ide.eclipse.as.wtp.core;bundle-version=3D"1.0.0" Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Bundle-Vendor: JBoss by Red Hat Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/plugin.xml 2009-09-16 = 18:48:12 UTC (rev 17625) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/plugin.xml 2009-09-16 = 20:28:24 UTC (rev 17626) @@ -55,5 +55,11 @@ id=3D"org.jboss.ide.eclipse.as.wtp.ui.variableReference" name=3D"Variable"> + + Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/id= e/eclipse/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java 2009-09= -16 18:48:12 UTC (rev 17625) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java 2009-09= -16 20:28:24 UTC (rev 17626) @@ -453,7 +453,7 @@ Object p1 =3D wizard.getTaskModel().getObject(NewReferenceWizard.COMPON= ENT_PATH); IVirtualComponent[] compArr =3D c1 instanceof IVirtualComponent ? = new IVirtualComponent[] { (IVirtualComponent)c1 } : = - (IVirtualComponent[])c1; + (IVirtualComponent[])c1; = String[] pathArr =3D p1 instanceof String ? = new String[] { (String)p1 } : = (String[])p1; Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/id= e/eclipse/as/wtp/ui/propertypage/ComponentDependencyContentProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/ComponentDependencyContentProvider.java 2009-09-= 16 18:48:12 UTC (rev 17625) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/ComponentDependencyContentProvider.java 2009-09-= 16 20:28:24 UTC (rev 17626) @@ -90,7 +90,7 @@ p =3D new Path(((VirtualArchiveComponent)comp).getUnderlyingDiskFile= ().getAbsolutePath()); return p.toString(); } - return comp.getProject().getName(); + return comp.getName(); } } else if (element instanceof IProject){ if (columnIndex =3D=3D 0) { Added: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/e= clipse/as/wtp/ui/propertypage/OutputFolderReferenceWizardFragment.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/OutputFolderReferenceWizardFragment.java = (rev 0) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/OutputFolderReferenceWizardFragment.java 2009-09= -16 20:28:24 UTC (rev 17626) @@ -0,0 +1,109 @@ +package org.jboss.ide.eclipse.as.wtp.ui.propertypage; + +import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.jface.viewers.ISelectionChangedListener; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.viewers.ITreeContentProvider; +import org.eclipse.jface.viewers.LabelProvider; +import org.eclipse.jface.viewers.SelectionChangedEvent; +import org.eclipse.jface.viewers.TreeViewer; +import org.eclipse.jface.viewers.Viewer; +import org.eclipse.swt.SWT; +import org.eclipse.swt.graphics.Image; +import org.eclipse.swt.layout.FormAttachment; +import org.eclipse.swt.layout.FormData; +import org.eclipse.swt.layout.FormLayout; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.ui.PlatformUI; +import org.eclipse.ui.internal.SharedImages; +import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; +import org.eclipse.wst.server.ui.wizard.IWizardHandle; +import org.eclipse.wst.server.ui.wizard.WizardFragment; +import org.jboss.ide.eclipse.as.wtp.core.vcf.OutputFoldersVirtualComponent; + +public class OutputFolderReferenceWizardFragment extends WizardFragment { + + protected TreeViewer viewer; + protected IPath[] paths; + protected IWizardHandle handle; + protected IProject selected =3D null; + public OutputFolderReferenceWizardFragment() { + super(); + } + + public boolean hasComposite() { + return true; + } + = + public Composite createComposite(Composite parent, IWizardHandle handle) { + this.handle =3D handle; + handle.setTitle("Add output folders"); + handle.setDescription("This reference will add in all source folder outp= uts from the selected project."); + + Composite c =3D new Composite(parent, SWT.NONE); + c.setLayout(new FormLayout()); + viewer =3D new TreeViewer(c, SWT.SINGLE | SWT.BORDER); + viewer.setContentProvider(getContentProvider()); + viewer.setLabelProvider(getLabelProvider()); + viewer.setInput(ResourcesPlugin.getWorkspace()); + + FormData fd =3D new FormData(); + fd.left =3D new FormAttachment(0, 5); + fd.top =3D new FormAttachment(0, 5); + fd.right =3D new FormAttachment(100, -5); + fd.bottom =3D new FormAttachment(100, -5); + viewer.getTree().setLayoutData(fd); + viewer.addSelectionChangedListener(new ISelectionChangedListener() { + public void selectionChanged(SelectionChangedEvent event) { + IVirtualComponent parentComp =3D (IVirtualComponent)getTaskModel().get= Object(NewReferenceWizard.ROOT_COMPONENT); + IStructuredSelection sel =3D (IStructuredSelection)viewer.getSelection= (); + selected =3D (IProject)sel.getFirstElement(); + } + }); + return c; + } + = + private ITreeContentProvider getContentProvider() { + return new ITreeContentProvider() { + public Object[] getElements(Object inputElement) { + return ResourcesPlugin.getWorkspace().getRoot().getProjects(); + } + public void inputChanged(Viewer viewer, Object oldInput, Object newInpu= t) { + } + public void dispose() { + } + public boolean hasChildren(Object element) { + return false; + } + public Object getParent(Object element) { + return null; + } + public Object[] getChildren(Object parentElement) { + return null; + } + }; + } + = + private LabelProvider getLabelProvider() { + return new LabelProvider() { + public Image getImage(Object element) { + return PlatformUI.getWorkbench().getSharedImages().getImage(SharedImag= es.IMG_OBJ_PROJECT); + } + public String getText(Object element) { + return element instanceof IProject ? ((IProject)element).getName() : e= lement.toString(); + } + }; + } + + public void performFinish(IProgressMonitor monitor) throws CoreException { + IVirtualComponent parentComp =3D (IVirtualComponent)getTaskModel().getOb= ject(NewReferenceWizard.ROOT_COMPONENT); + selected =3D selected =3D=3D null ? parentComp.getProject() : selected; + OutputFoldersVirtualComponent vc =3D new OutputFoldersVirtualComponent(s= elected, parentComp); + getTaskModel().putObject(NewReferenceWizard.COMPONENT, vc); + getTaskModel().putObject(NewReferenceWizard.COMPONENT_PATH, "/"); + } +} --===============6988863155051767911==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 17:01:18 2009 Content-Type: multipart/mixed; boundary="===============8234494089964620384==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17627 - in trunk/maven/plugins/org.jboss.tools.maven.seam: src/org/jboss/tools/maven/seam and 2 other directories. Date: Wed, 16 Sep 2009 17:01:18 -0400 Message-ID: <200909162101.n8GL1Iv7026709@svn01.web.mwc.hst.phx2.redhat.com> --===============8234494089964620384== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: snjeza Date: 2009-09-16 17:01:18 -0400 (Wed, 16 Sep 2009) New Revision: 17627 Added: trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven= /seam/configurators/JSFProjectConfigurator.java Modified: trunk/maven/plugins/org.jboss.tools.maven.seam/plugin.xml trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven= /seam/MavenSeamActivator.java trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven= /seam/preferences/SeamConfiguratorPreferencePage.java trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven= /seam/preferences/SeamConfiguratorPreferencesInitializer.java Log: https://jira.jboss.org/jira/browse/JBIDE-4609 maven web projects not shown = in web project view Modified: trunk/maven/plugins/org.jboss.tools.maven.seam/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.seam/plugin.xml 2009-09-16 20= :28:24 UTC (rev 17626) +++ trunk/maven/plugins/org.jboss.tools.maven.seam/plugin.xml 2009-09-16 21= :01:18 UTC (rev 17627) @@ -14,6 +14,13 @@ name=3D"Seam Project configurator" priority=3D"200"/> = + + + + = dependencies =3D mavenProject.getDependencies(); + for (Dependency dependency:dependencies) { + String groupId =3D dependency.getGroupId(); + if (groupId !=3D null && (JSF_API_GROUP_ID.equals(groupId) || JSF_AP= I2_GROUP_ID.equals(groupId)) ) { + String artifactId =3D dependency.getArtifactId(); + if (artifactId !=3D null && JSF_API_ARTIFACT_ID.equals(artifactId))= { + return dependency.getVersion(); + } = + } + } + return null; + } + +} Modified: trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tool= s/maven/seam/preferences/SeamConfiguratorPreferencePage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/mave= n/seam/preferences/SeamConfiguratorPreferencePage.java 2009-09-16 20:28:24 = UTC (rev 17626) +++ trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/mave= n/seam/preferences/SeamConfiguratorPreferencePage.java 2009-09-16 21:01:18 = UTC (rev 17627) @@ -20,6 +20,7 @@ private Button configureSeamButton; private Button configureSeamRuntimeButton; private Button configureSeamArtifactsButton; + private Button configureJSFButton; = @Override protected Control createContents(Composite parent) { @@ -57,6 +58,11 @@ = }); = + configureJSFButton =3D new Button(composite,SWT.CHECK); + configureJSFButton.setText("Configure JSF facet when importing Maven pro= jects"); + boolean configureJSF =3D store.getBoolean(MavenSeamActivator.CONFIGURE_J= SF); + configureJSFButton.setSelection(configureJSF); + = return composite; } = @@ -65,11 +71,13 @@ = @Override protected void performDefaults() { + configureJSFButton.setSelection(MavenSeamActivator.CONFIGURE_JSF_VALUE); configureSeamButton.setSelection(MavenSeamActivator.CONFIGURE_SEAM_VALUE= ); configureSeamRuntimeButton.setSelection(MavenSeamActivator.CONFIGURE_SEA= M_RUNTIME_VALUE); configureSeamArtifactsButton.setSelection(MavenSeamActivator.CONFIGURE_S= EAM_ARTIFACTS_VALUE); IPreferenceStore store =3D MavenSeamActivator.getDefault().getPreference= Store(); store.setValue(MavenSeamActivator.CONFIGURE_SEAM, MavenSeamActivator.CON= FIGURE_SEAM_VALUE); + store.setValue(MavenSeamActivator.CONFIGURE_JSF, MavenSeamActivator.CONF= IGURE_JSF_VALUE); store.setValue(MavenSeamActivator.CONFIGURE_SEAM_RUNTIME, MavenSeamActiv= ator.CONFIGURE_SEAM_RUNTIME_VALUE); store.setValue(MavenSeamActivator.CONFIGURE_SEAM_ARTIFACTS, MavenSeamAct= ivator.CONFIGURE_SEAM_ARTIFACTS_VALUE); configureSeamRuntimeButton.setEnabled(configureSeamButton.getSelection()= ); @@ -81,6 +89,7 @@ public boolean performOk() { IPreferenceStore store =3D MavenSeamActivator.getDefault().getPreference= Store(); store.setValue(MavenSeamActivator.CONFIGURE_SEAM, configureSeamButton.ge= tSelection()); + store.setValue(MavenSeamActivator.CONFIGURE_JSF, configureJSFButton.getS= election()); store.setValue(MavenSeamActivator.CONFIGURE_SEAM_RUNTIME, configureSeamR= untimeButton.getSelection()); store.setValue(MavenSeamActivator.CONFIGURE_SEAM_ARTIFACTS, configureSea= mArtifactsButton.getSelection()); return super.performOk(); Modified: trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tool= s/maven/seam/preferences/SeamConfiguratorPreferencesInitializer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/mave= n/seam/preferences/SeamConfiguratorPreferencesInitializer.java 2009-09-16 2= 0:28:24 UTC (rev 17626) +++ trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/mave= n/seam/preferences/SeamConfiguratorPreferencesInitializer.java 2009-09-16 2= 1:01:18 UTC (rev 17627) @@ -22,6 +22,9 @@ node.putBoolean( MavenSeamActivator.CONFIGURE_SEAM_ARTIFACTS, MavenSeamActivator.CONFIGURE_SEAM_ARTIFACTS_VALUE); + node.putBoolean( + MavenSeamActivator.CONFIGURE_JSF, + MavenSeamActivator.CONFIGURE_JSF_VALUE); } = } --===============8234494089964620384==-- From jbosstools-commits at lists.jboss.org Wed Sep 16 19:44:43 2009 Content-Type: multipart/mixed; boundary="===============4001314857203344762==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17628 - in trunk: jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist and 4 other directories. Date: Wed, 16 Sep 2009 19:44:43 -0400 Message-ID: <200909162344.n8GNihmW024697@svn01.web.mwc.hst.phx2.redhat.com> --===============4001314857203344762== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-16 19:44:43 -0400 (Wed, 16 Sep 2009) New Revision: 17628 Added: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/SimpleELContext.java Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ELCompletionEngine.java trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ELContextImpl.java trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ELResolver.java trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ElVarSearcher.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/co= ntentassist/XmlContentAssistProcessor.java trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web= /kb/el/AbstractELCompletionEngine.java trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/el/SeamPromptingProvider.java trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/t= ext/java/SeamELProposalProcessor.java trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/v= iews/properties/SeamELAttributeContentProposalProvider.java Log: https://jira.jboss.org/jira/browse/JBIDE-4860 Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss= /tools/common/el/core/resolver/ELCompletionEngine.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELCompletionEngine.java 2009-09-16 21:01:18 UTC (r= ev 17627) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELCompletionEngine.java 2009-09-16 23:44:43 UTC (r= ev 17628) @@ -15,12 +15,9 @@ import org.eclipse.core.resources.IFile; import org.eclipse.jface.text.BadLocationException; import org.jboss.tools.common.el.core.model.ELExpression; -import org.jboss.tools.common.el.core.parser.ELParserFactory; = -public interface ELCompletionEngine { +public interface ELCompletionEngine extends ELResolver { = public ELResolution resolveELOperand(IFile file, ELExpression operand, = boolean returnEqualedVariablesOnly, List vars, ElVarSearcher varSe= archer) throws BadLocationException, StringIndexOutOfBoundsException; - - public ELParserFactory getParserFactory(); } \ No newline at end of file Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss= /tools/common/el/core/resolver/ELContextImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELContextImpl.java 2009-09-16 21:01:18 UTC (rev 17= 627) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELContextImpl.java 2009-09-16 23:44:43 UTC (rev 17= 628) @@ -15,46 +15,19 @@ import java.util.List; import java.util.Map; = -import org.eclipse.core.resources.IFile; import org.eclipse.jface.text.Region; = /** * EL context * @author Alexey Kazakov */ -public class ELContextImpl implements ELContext { +public class ELContextImpl extends SimpleELContext { = - protected IFile resource; - protected ELResolver[] elResolvers; protected Map> vars =3D new HashMap>(= ); protected List allVars =3D new ArrayList(); = /* * (non-Javadoc) - * @see org.jboss.tools.common.el.core.resolver.ELContext#getElResolvers() - */ - public ELResolver[] getElResolvers() { - return elResolvers; - } - - public void setElResolvers(ELResolver[] elResolvers) { - this.elResolvers =3D elResolvers; - } - - /* - * (non-Javadoc) - * @see org.jboss.tools.common.el.core.resolver.ELContext#getResource() - */ - public IFile getResource() { - return resource; - } - - public void setResource(IFile resource) { - this.resource =3D resource; - } - - /* - * (non-Javadoc) * @see org.jboss.tools.common.el.core.resolver.ELContext#getVars() */ public Var[] getVars() { Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss= /tools/common/el/core/resolver/ELResolver.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolver.java 2009-09-16 21:01:18 UTC (rev 17627) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolver.java 2009-09-16 23:44:43 UTC (rev 17628) @@ -13,11 +13,11 @@ import java.util.List; = import org.jboss.tools.common.el.core.model.ELExpression; +import org.jboss.tools.common.el.core.parser.ELParserFactory; import org.jboss.tools.common.text.TextProposal; = /** * Represents EL Resolver. - * TODO replace old ELResolver interface with this one. * @author Alexey Kazakov */ public interface ELResolver { @@ -36,4 +36,9 @@ * @return */ ELResolution resolve(ELContext context, ELExpression operand); + + /** + * @return EL parser factory + */ + ELParserFactory getParserFactory(); } \ No newline at end of file Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss= /tools/common/el/core/resolver/ElVarSearcher.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ElVarSearcher.java 2009-09-16 21:01:18 UTC (rev 17= 627) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ElVarSearcher.java 2009-09-16 23:44:43 UTC (rev 17= 628) @@ -26,6 +26,7 @@ import org.eclipse.wst.xml.core.internal.provisional.document.IDOMAttr; import org.jboss.tools.common.el.core.Activator; import org.jboss.tools.common.el.core.model.ELExpression; +import org.jboss.tools.common.el.core.parser.ELParserFactory; import org.w3c.dom.Element; import org.w3c.dom.Node; = @@ -158,9 +159,32 @@ * @return All var/value that can be used in this position and null if ca= n't find anyone. */ public List findAllVars(IFile file, int offset) { + return findAllVars(file, offset, engine.getParserFactory()); + } + + /** + * @param context + * @param offset + * @param resolver + * @return All var/value that can be used in this position and null if ca= n't find anyone. + */ + public static List findAllVars(ELContext context, int offset, ELReso= lver resolver) { + Node node =3D getNode(context.getResource(), offset); + if(node!=3Dnull) { + return findAllVars(node, resolver.getParserFactory()); + } + return null; + } + + /** + * @param node + * @param factory + * @return All var/value that can be used in this position and null if ca= n't find anyone. + */ + public static List findAllVars(IFile file, int offset, ELParserFacto= ry factory) { Node node =3D getNode(file, offset); if(node!=3Dnull) { - return findAllVars(node); + return findAllVars(node, factory); } return null; } @@ -170,11 +194,19 @@ * @return All var/value that can be used in node and null if can't find = anyone. */ public List findAllVars(Node node) { + return findAllVars(node, engine.getParserFactory()); + } + + /** + * @param node + * @param factory + * @return All var/value that can be used in node and null if can't find = anyone. + */ + public static List findAllVars(Node node, ELParserFactory factory) { ArrayList vars =3D null; -// Node parentNode =3D node.getParentNode(); Node parentNode =3D node; while(parentNode!=3Dnull) { - Var var =3D findVar(parentNode); + Var var =3D findVar(parentNode, factory); if(var!=3Dnull) { if(vars =3D=3D null) { vars =3D new ArrayList(); @@ -205,6 +237,17 @@ * @return found var/value or null */ public Var findVar(Node node) { + return findVar(node, engine.getParserFactory()); + } + + /** + * Finds var/value attribute in node + * @param node + * @param vars + * @param factory + * @return found var/value or null + */ + public static Var findVar(Node node, ELParserFactory factory) { if(node!=3Dnull && Node.ELEMENT_NODE =3D=3D node.getNodeType()) { Element element =3D (Element)node; String var =3D element.getAttribute(VAR_ATTRIBUTE_NAME); @@ -223,7 +266,7 @@ String value =3D element.getAttribute(VALUE_ATTRIBUTE_NAME); if(value!=3Dnull) { value =3D value.trim(); - Var newVar =3D new Var(engine.getParserFactory(), var, value, declOf= fset, declLength); + Var newVar =3D new Var(factory, var, value, declOffset, declLength); if(newVar.getElToken()!=3Dnull) { return newVar; } Added: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/to= ols/common/el/core/resolver/SimpleELContext.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/SimpleELContext.java (rev = 0) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/SimpleELContext.java 2009-09-16 23:44:43 UTC (rev = 17628) @@ -0,0 +1,73 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.common.el.core.resolver; + +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.core.resources.IFile; + +/** + * @author Alexey Kazakov + */ +public class SimpleELContext implements ELContext { + + protected IFile resource; + protected ELResolver[] elResolvers; + protected List vars =3D new ArrayList(); + + /* + * (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.ELContext#getElResolvers() + */ + public ELResolver[] getElResolvers() { + return elResolvers; + } + + public void setElResolvers(ELResolver[] elResolvers) { + this.elResolvers =3D elResolvers; + } + + /* + * (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.ELContext#getResource() + */ + public IFile getResource() { + return resource; + } + + public void setResource(IFile resource) { + this.resource =3D resource; + } + + /* + * (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.ELContext#getVars() + */ + public Var[] getVars() { + return vars.toArray(new Var[vars.size()]); + } + + /** + * @param vars + */ + public void setVars(List vars) { + this.vars =3D vars; + } + + /** + * Adds new Var to the context + * @param vars + */ + public void addVar(Var var) { + vars.add(var); + } +} Property changes on: trunk/common/plugins/org.jboss.tools.common.el.core/sr= c/org/jboss/tools/common/el/core/resolver/SimpleELContext.java ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/contentassist/XmlContentAssistProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/XmlContentAssistProcessor.java 2009-09-16 21:01:18 UTC (rev 17= 627) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/XmlContentAssistProcessor.java 2009-09-16 23:44:43 UTC (rev 17= 628) @@ -26,6 +26,7 @@ import org.jboss.tools.common.el.core.resolver.ELResolver; import org.jboss.tools.common.el.core.resolver.ElVarSearcher; import org.jboss.tools.common.el.core.resolver.Var; +import org.jboss.tools.common.text.TextProposal; import org.jboss.tools.jst.web.kb.IPageContext; import org.jboss.tools.jst.web.kb.KbQuery; import org.jboss.tools.jst.web.kb.KbQuery.Type; @@ -67,6 +68,14 @@ public ELParserFactory getParserFactory() { return ELParserUtil.getJbossFactory(); } + + public List getProposals(ELContext context, String el) { + return null; + } + + public ELResolution resolve(ELContext context, ELExpression operand) { + return null; + } }; ElVarSearcher varSearcher =3D new ElVarSearcher(file, fakeEngine); List vars =3D varSearcher.findAllVars(file, getOffset()); Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/= jst/web/kb/el/AbstractELCompletionEngine.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/el/AbstractELCompletionEngine.java 2009-09-16 21:01:18 UTC (rev 17627) +++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/el/AbstractELCompletionEngine.java 2009-09-16 23:44:43 UTC (rev 17628) @@ -66,80 +66,49 @@ * @see org.jboss.tools.common.el.core.resolver.ELResolver2#getProposals(= org.jboss.tools.common.el.core.resolver.ELContext, java.lang.String) */ public List getProposals(ELContext context, String el) { - return getCompletions(el, false, 0, context); - } + List completions =3D new ArrayList(); = - /* - * (non-Javadoc) - * @see org.jboss.tools.common.el.core.resolver.ELResolver2#resolve(org.j= boss.tools.common.el.core.resolver.ELContext, org.jboss.tools.common.el.cor= e.model.ELExpression) - */ - public ELResolution resolve(ELContext context, ELExpression operand) { List vars =3D new ArrayList(); Var[] array =3D context.getVars(); for (int i =3D 0; i < array.length; i++) { vars.add(array[i]); } - ELResolutionImpl resolution =3D null; + + ELResolutionImpl resolution; try { - resolution =3D resolveELOperand(context.getResource(), operand, true, v= ars, new ElVarSearcher(context.getResource(), this)); - resolution.setContext(context); + resolution =3D resolveELOperand(context.getResource(), parseOperand(el)= , false, vars, new ElVarSearcher(context.getResource(), this)); + completions.addAll(resolution.getProposals()); } catch (StringIndexOutOfBoundsException e) { log(e); } catch (BadLocationException e) { log(e); } - return resolution; + = + return completions; } = - private List getCompletions(String elString, boolean return= EqualedVariablesOnly, int position, ELContext context) { + /* + * (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.ELResolver#resolve(org.jb= oss.tools.common.el.core.resolver.ELContext, org.jboss.tools.common.el.core= .model.ELExpression) + */ + public ELResolution resolve(ELContext context, ELExpression operand) { List vars =3D new ArrayList(); Var[] array =3D context.getVars(); for (int i =3D 0; i < array.length; i++) { vars.add(array[i]); } - List proposals =3D null; + ELResolutionImpl resolution =3D null; try { - proposals =3D getCompletions(context.getResource(), elString.subSequen= ce(0, elString.length()), position, returnEqualedVariablesOnly, vars); + resolution =3D resolveELOperand(context.getResource(), operand, true, v= ars, new ElVarSearcher(context.getResource(), this)); + resolution.setContext(context); } catch (StringIndexOutOfBoundsException e) { log(e); } catch (BadLocationException e) { log(e); } - return proposals; + return resolution; } = - /** - * Create the list of suggestions. = - * @param seamProject Seam project = - * @param file File = - * @param documentContent - * @param prefix the prefix to search for - * @param position Offset of the prefix = - * @param vars - 'var' attributes which can be used in this EL. Can be nu= ll. - * @param returnEqualedVariablesOnly 'false' if we get proposals for mask= = - * for example: - * we have 'variableName.variableProperty', 'variableName.variablePrope= rty1', 'variableName.variableProperty2' = - * prefix is 'variableName.variableProperty' - * Result is {'variableProperty'} - * if 'false' then returns ends of variables that starts with prefix. It'= s useful for CA. - * for example: - * we have 'variableName.variableProperty', 'variableName.variablePrope= rty1', 'variableName.variableProperty2' - * prefix is 'variableName.variableProperty' - * Result is {'1','2'} - * @return the list of all possible suggestions - * @throws BadLocationException if accessing the current document fails - * @throws StringIndexOutOfBoundsException - */ - public List getCompletions(IFile file, CharSequence prefix, = - int position, boolean returnEqualedVariablesOnly, List vars) throw= s BadLocationException, StringIndexOutOfBoundsException { - List completions =3D new ArrayList(); - - ELResolutionImpl resolution =3D resolveELOperand(file, parseOperand("" += prefix), returnEqualedVariablesOnly, vars, new ElVarSearcher(file, this));= //$NON-NLS-1$ - completions.addAll(resolution.getProposals()); - - return completions; - } - public ELResolution resolveELOperand(ELExpression operand, ELContext cont= ext, boolean returnEqualedVariablesOnly) { List vars =3D new ArrayList(); Var[] array =3D context.getVars(); @@ -184,6 +153,10 @@ return proposals; } = + /* + * (non-Javadoc) + * @see org.jboss.tools.common.el.core.resolver.ELCompletionEngine#resolv= eELOperand(org.eclipse.core.resources.IFile, org.jboss.tools.common.el.core= .model.ELExpression, boolean, java.util.List, org.jboss.tools.common.el.cor= e.resolver.ElVarSearcher) + */ public ELResolutionImpl resolveELOperand(IFile file, ELExpression operand, boolean returnEqualedVariablesOnly, List vars, ElVarSearcher varSearcher) Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/el/SeamPromptingProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/el/SeamPromptingProvider.java 2009-09-16 21:01:18 UTC (rev 176= 27) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/el/SeamPromptingProvider.java 2009-09-16 23:44:43 UTC (rev 176= 28) @@ -17,8 +17,7 @@ import java.util.TreeSet; = import org.eclipse.core.resources.IFile; -import org.eclipse.jface.text.BadLocationException; -import org.jboss.tools.common.el.core.resolver.Var; +import org.jboss.tools.common.el.core.resolver.SimpleELContext; import org.jboss.tools.common.model.XModel; import org.jboss.tools.common.model.project.IPromptingProvider; import org.jboss.tools.common.text.TextProposal; @@ -58,16 +57,14 @@ list.addAll(set); return list; } else if(MEMBERS.equals(id)) { - try { - List proposals =3D engine.getCompletions(f, prefix, pref= ix.length(), false, new ArrayList()); - List suggestions =3D new ArrayList(); - if(proposals !=3D null) for (TextProposal proposal: proposals) { - suggestions.add(proposal.getReplacementString()); - } - return suggestions; - } catch (BadLocationException e) { - return EMPTY_LIST; + SimpleELContext context =3D new SimpleELContext(); + context.setResource(f); + List proposals =3D engine.getProposals(context, prefix); + List suggestions =3D new ArrayList(); + if(proposals !=3D null) for (TextProposal proposal: proposals) { + suggestions.add(proposal.getReplacementString()); } + return suggestions; } return null; } Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/se= am/ui/text/java/SeamELProposalProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= text/java/SeamELProposalProcessor.java 2009-09-16 21:01:18 UTC (rev 17627) +++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= text/java/SeamELProposalProcessor.java 2009-09-16 23:44:43 UTC (rev 17628) @@ -59,6 +59,7 @@ import org.jboss.tools.common.el.core.model.ELModel; import org.jboss.tools.common.el.core.model.ELUtil; import org.jboss.tools.common.el.core.resolver.ElVarSearcher; +import org.jboss.tools.common.el.core.resolver.SimpleELContext; import org.jboss.tools.common.el.core.resolver.Var; import org.jboss.tools.common.model.ui.texteditors.xmleditor.XMLTextEditor; import org.jboss.tools.common.text.TextProposal; @@ -436,7 +437,10 @@ List vars =3D varSearcher.findAllVars(viewer, offset); = SeamELCompletionEngine fEngine=3D new SeamELCompletionEngine(); - List suggestions =3D fEngine.getCompletions(file, prefix,= offset + proposalPrefix.length() - prefix.length(), false, vars); + SimpleELContext elContext =3D new SimpleELContext(); + elContext.setResource(file); + elContext.setVars(vars); + List suggestions =3D fEngine.getProposals(elContext, pref= ix); List uniqueSuggestions =3D fEngine.makeKbUnique(suggestio= ns); = List result=3D new ArrayList(= ); Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/se= am/ui/views/properties/SeamELAttributeContentProposalProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= views/properties/SeamELAttributeContentProposalProvider.java 2009-09-16 21:= 01:18 UTC (rev 17627) +++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= views/properties/SeamELAttributeContentProposalProvider.java 2009-09-16 23:= 44:43 UTC (rev 17628) @@ -19,12 +19,12 @@ import org.eclipse.jface.fieldassist.ContentProposalAdapter; import org.eclipse.jface.fieldassist.IContentProposal; import org.eclipse.jface.fieldassist.IContentProposalProvider; -import org.eclipse.jface.text.BadLocationException; import org.eclipse.jface.viewers.LabelProvider; import org.jboss.tools.common.el.core.model.ELInstance; import org.jboss.tools.common.el.core.model.ELInvocationExpression; import org.jboss.tools.common.el.core.model.ELModel; import org.jboss.tools.common.el.core.model.ELUtil; +import org.jboss.tools.common.el.core.resolver.SimpleELContext; import org.jboss.tools.common.meta.XAttribute; import org.jboss.tools.common.model.XModelObject; import org.jboss.tools.common.model.ui.attribute.IAttributeContentProposal= Provider; @@ -32,7 +32,6 @@ import org.jboss.tools.seam.core.ISeamProject; import org.jboss.tools.seam.core.SeamCorePlugin; import org.jboss.tools.seam.internal.core.el.SeamELCompletionEngine; -import org.jboss.tools.seam.ui.SeamGuiPlugin; = /** * @author Viacheslav Kabanovich @@ -109,11 +108,9 @@ if(prefix =3D=3D null) prefix =3D ""; = List suggestions =3D null; - try { - suggestions =3D engine.getCompletions(file, prefix, position, false, n= ull); - } catch (BadLocationException e) { - SeamGuiPlugin.getPluginLog().logError(e); - } + SimpleELContext context =3D new SimpleELContext(); + context.setResource(file); + suggestions =3D engine.getProposals(context, prefix); if(suggestions =3D=3D null) { return EMPTY; } --===============4001314857203344762==-- From jbosstools-commits at lists.jboss.org Thu Sep 17 02:20:46 2009 Content-Type: multipart/mixed; boundary="===============6588357075268069327==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17629 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor. Date: Thu, 17 Sep 2009 02:20:41 -0400 Message-ID: <200909170620.n8H6Kfpl004076@svn01.web.mwc.hst.phx2.redhat.com> --===============6588357075268069327== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dmaliarevich Date: 2009-09-17 02:20:40 -0400 (Thu, 17 Sep 2009) New Revision: 17629 Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vpe= EditorPart.java Log: https://jira.jboss.org/jira/browse/JBIDE-4671, JUnit for JBIDE-3127 was fix= ed. Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/VpeEditorPart.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eEditorPart.java 2009-09-16 23:44:43 UTC (rev 17628) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eEditorPart.java 2009-09-17 06:20:40 UTC (rev 17629) @@ -598,34 +598,19 @@ = final ControlListener visualContentControlListener =3D new ControlListen= er() { public void controlMoved(ControlEvent event) { - + = } = public void controlResized(ControlEvent event) { - Point point =3D visualContent.getSize(); - if (point.x =3D=3D 0 || point.y =3D=3D 0) { - VpeController controller =3D getController(); - if (controller !=3D null) - controller.setVisualEditorVisible(false); - } else { - VpeController controller =3D getController(); - if (controller !=3D null - && !controller.isVisualEditorVisible()) { - controller.setVisualEditorVisible(true); - if (!controller.isSynced()) - controller.visualRefresh(); - } - } + updateVisualEditorVisibility(); } }; visualContent.addControlListener(visualContentControlListener); visualContent.addDisposeListener(new DisposeListener() { - public void widgetDisposed(DisposeEvent e) { visualContent.removeControlListener(visualContentControlListener); visualContent.removeDisposeListener(this); } - }); = // createVisualEditor(); @@ -833,7 +818,7 @@ * Reset the container. */ container =3D newContainer; - = + /* * Set up new sash weights */ @@ -1132,15 +1117,55 @@ } = public void maximizeSource() { - if (container !=3D null) - container.maxDown(); + if (container !=3D null) { + if (CustomSashForm.isSourceEditorFirst()) { + container.maxDown(); + } else { + container.maxUp(); + } + /* + * In JUnit for JBIDE-3127 on manual maximizing + * SashForm control listener isn't fired up + * do it here. + */ + updateVisualEditorVisibility(); + } } = public void maximizeVisual() { - if (container !=3D null) - container.maxUp(); + if (container !=3D null) { + if (CustomSashForm.isSourceEditorFirst()) { + container.maxUp(); + } else { + container.maxDown(); + } + /* + * In JUnit for JBIDE-3127 on manual maximizing + * SashForm control listener isn't fired up + * do it here. + */ + updateVisualEditorVisibility(); + } } = + protected void updateVisualEditorVisibility() { + Point point =3D visualContent.getSize(); + if (point.x =3D=3D 0 || point.y =3D=3D 0) { + VpeController controller =3D getController(); + if (controller !=3D null) + controller.setVisualEditorVisible(false); + } else { + VpeController controller =3D getController(); + if (controller !=3D null + && !controller.isVisualEditorVisible()) { + controller.setVisualEditorVisible(true); + if (!controller.isSynced()) { + controller.visualRefresh(); + } + } + } + } + = /* * Updates current VpeEditorPart after = * OK/Apply button on "Visual Page Editor" preference page --===============6588357075268069327==-- From jbosstools-commits at lists.jboss.org Thu Sep 17 04:17:47 2009 Content-Type: multipart/mixed; boundary="===============2850215212143243695==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17630 - in trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe: messages and 1 other directory. Date: Thu, 17 Sep 2009 04:17:47 -0400 Message-ID: <200909170817.n8H8Hlc8028584@svn01.web.mwc.hst.phx2.redhat.com> --===============2850215212143243695== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dmaliarevich Date: 2009-09-17 04:17:46 -0400 (Thu, 17 Sep 2009) New Revision: 17630 Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/men= u/InsertContributionItem.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/men= u/InsertType.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/m= essages.properties Log: https://jira.jboss.org/jira/browse/JBIDE-3504, context menu structure was u= pdated, "From Palette" menu item was removed. Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/menu/InsertContributionItem.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/me= nu/InsertContributionItem.java 2009-09-17 06:20:40 UTC (rev 17629) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/me= nu/InsertContributionItem.java 2009-09-17 08:17:46 UTC (rev 17630) @@ -81,29 +81,6 @@ @Override public void fill(Menu menu, int index) { /* - * https://jira.jboss.org/jira/browse/JBIDE-3504 = - * Adding 'Insert tag from Palette' menu item. - */ - final MenuItem fromPaletteItem; - if (index < 0) { - fromPaletteItem =3D new MenuItem(menu, SWT.CASCADE); - } else { - fromPaletteItem =3D new MenuItem(menu, SWT.CASCADE, index); - } - /* - * Increasing parent menu item index. - */ - index++; - fromPaletteItem.setText(VpeUIMessages.FROM_PALETTE); - /* - * Creating menu for 'Insert tag from Palette' item. - */ - final Menu fromPaletteMenu =3D new Menu(menu); - /* - * Tie menu with the item. - */ - fromPaletteItem.setMenu(fromPaletteMenu); - /* * Setting each InsertType to correct position in the menu */ for (final InsertType insertItem : InsertType.values()) { @@ -113,26 +90,12 @@ final MenuManager paletteManuManager =3D new MenuManager( insertItem.getMessage()); final XModelObject model =3D ModelUtilities.getPreferenceModel() - .getByPath("%Palette%"); //$NON-NLS-1$ + .getByPath("%Palette%"); //$NON-NLS-1$ paletteManuManager.addMenuListener(new InsertMenuListener( model, insertItem)); paletteManuManager.setRemoveAllWhenShown(true); - /* - * Place menu items to the correct menu. - */ - if (insertItem.equals(InsertType.REPLACE_WITH)) { - /* - * Replace item will be placed in the parent menu. = - * Because of this its position index is required. - */ - paletteManuManager.fill(menu, index); - index++; - } else { - /* - * Fill 'Insert tag from palette' menu with insert items. - */ - paletteManuManager.fill(fromPaletteMenu, -1); - } + paletteManuManager.fill(menu, index); + index++; } } = Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/menu/InsertType.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/me= nu/InsertType.java 2009-09-17 06:20:40 UTC (rev 17629) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/me= nu/InsertType.java 2009-09-17 08:17:46 UTC (rev 17630) @@ -19,8 +19,8 @@ INSERT_AROUND(VpeUIMessages.INSERT_AROUND), INSERT_BEFORE(VpeUIMessages.INSERT_BEFORE), INSERT_AFTER(VpeUIMessages.INSERT_AFTER), - REPLACE_WITH(VpeUIMessages.REPLACE_WITH), - INSERT_INTO(VpeUIMessages.INSERT_INTO); + INSERT_INTO(VpeUIMessages.INSERT_INTO), + REPLACE_WITH(VpeUIMessages.REPLACE_WITH); = private String message; = Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/mes= sages/messages.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/= messages.properties 2009-09-17 06:20:40 UTC (rev 17629) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/= messages.properties 2009-09-17 08:17:46 UTC (rev 17630) @@ -81,11 +81,11 @@ BaseActionManager_InsertTag=3DInsert Tag BaseActionManager_ReplaceWith=3DReplace With SETUP_TEMPLATE_FOR_MENU=3DSetup Template for <{0}>... -INSERT_AROUND=3DAround -INSERT_BEFORE=3DBefore -INSERT_AFTER=3DAfter -REPLACE_WITH=3DReplace with Palette tag -INSERT_INTO=3DInto +INSERT_AROUND=3DInsert around +INSERT_BEFORE=3DInsert before +INSERT_AFTER=3DInsert after +INSERT_INTO=3DInsert into +REPLACE_WITH=3DReplace with FROM_PALETTE=3DInsert tag from Palette PAGE_DESIGN_OPTIONS_ABOUT=3DHere you can configure Visual Page Editor opti= ons, which will be used for generating a preview ACTUAL_RUN_TIME_FOLDERS_ABOUT=3DThese options will be used by Visual Page = Editor for replacing absolute and relative path values when generating a pr= eview --===============2850215212143243695==-- From jbosstools-commits at lists.jboss.org Thu Sep 17 08:11:41 2009 Content-Type: multipart/mixed; boundary="===============4119387046307565777==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17631 - trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/preferences. Date: Thu, 17 Sep 2009 08:11:41 -0400 Message-ID: <200909171211.n8HCBfjP010300@svn01.web.mwc.hst.phx2.redhat.com> --===============4119387046307565777== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-17 08:11:40 -0400 (Thu, 17 Sep 2009) New Revision: 17631 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/pref= erences/JSFFlowTabbedPreferencesPage.java Log: https://jira.jboss.org/jira/browse/JBIDE-4896 https://jira.jboss.org/jira/browse/JBIDE-4885 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/= ui/preferences/JSFFlowTabbedPreferencesPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/pre= ferences/JSFFlowTabbedPreferencesPage.java 2009-09-17 08:17:46 UTC (rev 176= 30) +++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/pre= ferences/JSFFlowTabbedPreferencesPage.java 2009-09-17 12:11:40 UTC (rev 176= 31) @@ -10,6 +10,7 @@ *************************************************************************= *****/ = package org.jboss.tools.jsf.ui.preferences; = +import org.jboss.tools.common.model.options.Preference; import org.jboss.tools.common.model.ui.preferences.*; import org.eclipse.ui.*; import org.jboss.tools.common.meta.constraint.impl.XAttributeConstraintALi= st; @@ -20,8 +21,8 @@ = public static final String ID =3D "org.jboss.tools.jsf.ui.jsfflowdiagram"= ; //$NON-NLS-1$ = - public static String JSF_EDITOR_PATH =3D "%Options%/Struts Studio/Editors= /JSF Flow Diagram"; //$NON-NLS-1$ - public static String JSF_ADD_VIEW_PATH =3D "%Options%/Struts Studio/Edito= rs/JSF Flow Diagram/Add View"; //$NON-NLS-1$ + public static String JSF_EDITOR_PATH =3D Preference.EDITOR_PATH + "/JSF F= low Diagram"; //$NON-NLS-1$ + public static String JSF_ADD_VIEW_PATH =3D Preference.EDITOR_PATH + "/JSF= Flow Diagram/Add View"; //$NON-NLS-1$ = public JSFFlowTabbedPreferencesPage() { XModel model =3D getPreferenceModel(); --===============4119387046307565777==-- From jbosstools-commits at lists.jboss.org Thu Sep 17 08:14:52 2009 Content-Type: multipart/mixed; boundary="===============5198067464863881395==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17632 - trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model. Date: Thu, 17 Sep 2009 08:14:52 -0400 Message-ID: <200909171214.n8HCEqaK010884@svn01.web.mwc.hst.phx2.redhat.com> --===============5198067464863881395== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-17 08:14:52 -0400 (Thu, 17 Sep 2009) New Revision: 17632 Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/se= am/pages/xml/model/SeamPagesPreference.java Log: https://jira.jboss.org/jira/browse/JBIDE-4896 https://jira.jboss.org/jira/browse/JBIDE-4885 Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/t= ools/seam/pages/xml/model/SeamPagesPreference.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/s= eam/pages/xml/model/SeamPagesPreference.java 2009-09-17 12:11:40 UTC (rev 1= 7631) +++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/s= eam/pages/xml/model/SeamPagesPreference.java 2009-09-17 12:14:52 UTC (rev 1= 7632) @@ -5,7 +5,7 @@ import org.jboss.tools.jst.web.WebPreference; = public class SeamPagesPreference extends WebPreference { - public static String SEAM_PAGES_EDITOR_PATH =3D "%Options%/Struts Studio/= Editors/Seam Pages Diagram"; + public static String SEAM_PAGES_EDITOR_PATH =3D Preference.EDITOR_PATH + = "/Seam Pages Diagram"; = public static final Preference ENABLE_CONTROL_MODE_ON_TRANSITION_COMPLETE= D =3D new SeamPagesPreference(SEAM_PAGES_EDITOR_PATH, "enableControlModeOnT= ransitionCompleted"); public static final Preference SHOW_SHORTCUT_ICON =3D new SeamPagesPrefer= ence(SEAM_PAGES_EDITOR_PATH, "showShortcutIcon"); --===============5198067464863881395==-- From jbosstools-commits at lists.jboss.org Thu Sep 17 09:59:09 2009 Content-Type: multipart/mixed; boundary="===============8225931325016540491==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17633 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor. Date: Thu, 17 Sep 2009 09:59:09 -0400 Message-ID: <200909171359.n8HDx9cS028386@svn01.web.mwc.hst.phx2.redhat.com> --===============8225931325016540491== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-17 09:59:09 -0400 (Thu, 17 Sep 2009) New Revision: 17633 Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/editor/ObjectMultiPageEditor.java Log: https://jira.jboss.org/jira/browse/JBIDE-4900 Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/editor/ObjectMultiPageEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/editor/ObjectMultiPageEditor.java 2009-09-17 12:14:52 UTC (rev 176= 32) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/editor/ObjectMultiPageEditor.java 2009-09-17 13:59:09 UTC (rev 176= 33) @@ -552,7 +552,8 @@ } = public void update0() { - setContentDescription(getEditorInput().getName()); +// setContentDescription(getEditorInput().getName()); + setPartName(getEditorInput().getName()); checkErrorMode(); if(isErrorMode) { setErrorMode(); @@ -1014,7 +1015,11 @@ } = void updateTitle() { - setPartName(getEditorInput().getName()); + Display.getDefault().asyncExec(new Runnable() { + public void run() { + setPartName(getEditorInput().getName()); + } + }); } = class PostMultiPageEditorSite extends MultiPageEditorSite { --===============8225931325016540491==-- From jbosstools-commits at lists.jboss.org Thu Sep 17 10:37:38 2009 Content-Type: multipart/mixed; boundary="===============7283967412144866336==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17634 - in trunk: seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring and 1 other directories. Date: Thu, 17 Sep 2009 10:37:38 -0400 Message-ID: <200909171437.n8HEbcos002753@svn01.web.mwc.hst.phx2.redhat.com> --===============7283967412144866336== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dazarov Date: 2009-09-17 10:37:38 -0400 (Thu, 17 Sep 2009) New Revision: 17634 Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ELResolutionImpl.java trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/refactoring/SeamRefactorSearcher.java trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/s= earch/SeamELReferencesQueryParticipant.java Log: https://jira.jboss.org/jira/browse/JBIDE-4771 Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss= /tools/common/el/core/resolver/ELResolutionImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolutionImpl.java 2009-09-17 13:59:09 UTC (rev= 17633) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ELResolutionImpl.java 2009-09-17 14:37:38 UTC (rev= 17634) @@ -36,15 +36,22 @@ * @see org.jboss.tools.common.el.core.resolver.ELResolution#findSegments= ByJavaElement(org.eclipse.jdt.core.IJavaElement) */ public List findSegmentsByJavaElement(IJavaElement element) { - // TODO - return null; + ArrayList list =3D new ArrayList(); + for(ELSegment segment : segments){ + if(segment instanceof JavaMemberELSegment && ((JavaMemberELSegment)segm= ent).getJavaElement().equals(element)) + list.add(segment); + } + return list; } = /* (non-Javadoc) * @see org.jboss.tools.common.el.core.resolver.ELResolution#findSegmentB= yOffset(int) */ - public ELSegment findSegmentByOffset(int offcet) { - // TODO + public ELSegment findSegmentByOffset(int offset) { + for(ELSegment segment : segments){ + if(segment.getSourceReference() !=3D null && segment.getSourceReference= ().getStartPosition() =3D=3D offset) + return segment; + } return null; } = Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/refactoring/SeamRefactorSearcher.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java 2009-09-17 13:59:09 UTC = (rev 17633) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java 2009-09-17 14:37:38 UTC = (rev 17634) @@ -11,6 +11,7 @@ package org.jboss.tools.seam.internal.core.refactoring; = import java.io.IOException; +import java.util.List; import java.util.StringTokenizer; = import org.eclipse.core.resources.IContainer; @@ -19,6 +20,7 @@ import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; +import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jdt.internal.ui.text.FastJavaPartitionScanner; import org.eclipse.jdt.ui.text.IJavaPartitions; @@ -36,6 +38,7 @@ import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel; import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode; import org.eclipse.wst.xml.core.internal.regions.DOMRegionContext; +import org.jboss.tools.common.el.core.model.ELExpression; import org.jboss.tools.common.el.core.model.ELInstance; import org.jboss.tools.common.el.core.model.ELInvocationExpression; import org.jboss.tools.common.el.core.model.ELMethodInvocation; @@ -43,6 +46,15 @@ import org.jboss.tools.common.el.core.model.ELPropertyInvocation; import org.jboss.tools.common.el.core.parser.ELParser; import org.jboss.tools.common.el.core.parser.ELParserUtil; +import org.jboss.tools.common.el.core.resolver.ELCompletionEngine; +import org.jboss.tools.common.el.core.resolver.ELResolution; +import org.jboss.tools.common.el.core.resolver.ELResolver; +import org.jboss.tools.common.el.core.resolver.ELResolverFactoryManager; +import org.jboss.tools.common.el.core.resolver.ELSegment; +import org.jboss.tools.common.el.core.resolver.ElVarSearcher; +import org.jboss.tools.common.el.core.resolver.JavaMemberELSegment; +import org.jboss.tools.common.el.core.resolver.SimpleELContext; +import org.jboss.tools.common.el.core.resolver.Var; import org.jboss.tools.common.model.util.EclipseResourceUtil; import org.jboss.tools.common.util.FileUtil; import org.jboss.tools.seam.core.SeamCorePlugin; @@ -66,11 +78,17 @@ = protected IFile baseFile; protected String propertyName; + protected IJavaElement javaElement; = public SeamRefactorSearcher(IFile baseFile, String propertyName){ this.baseFile =3D baseFile; this.propertyName =3D propertyName; } + = + public SeamRefactorSearcher(IFile baseFile, String propertyName, IJavaEle= ment javaElement){ + this(baseFile, propertyName); + this.javaElement =3D javaElement; + } = public void findELReferences(){ if(baseFile =3D=3D null) @@ -253,10 +271,10 @@ if(expression !=3D null){ if(expression instanceof ELPropertyInvocation){ ELPropertyInvocation pi =3D (ELPropertyInvocation)expression; - match(file, offset+pi.getName().getStart(), pi.getName().getLength(= )); + checkMatch(file, pi, offset+pi.getName().getStart(), pi.getName().g= etLength()); }else if(expression instanceof ELMethodInvocation){ ELMethodInvocation mi =3D (ELMethodInvocation)expression; - match(file, offset+mi.getName().getStart(), mi.getName().getLength(= )); + checkMatch(file, mi, offset+mi.getName().getStart(), mi.getName().g= etLength()); } } } @@ -324,6 +342,13 @@ = protected abstract void match(IFile file, int offset, int length); = + private void checkMatch(IFile file, ELExpression operand, int offset, int= length){ + if(javaElement !=3D null && operand !=3D null) + resolve(file, operand, offset, length); + else + match(file, offset, length); + } + = public static String getPropertyName(String methodName){ if(methodName.startsWith(GET) || methodName.startsWith(SET)){ String name =3D methodName.substring(3); @@ -339,8 +364,47 @@ } = public static boolean isSetter(String methodName){ - if(methodName.startsWith(SET)) - return true; - return false; + return methodName.startsWith(SET); } + = + private void resolve(IFile file, ELExpression operand, int offset, int le= ngth){ + ELResolver[] resolvers =3D ELResolverFactoryManager.getInstance().getRes= olvers(file); + = + for(ELResolver resolver : resolvers){ + if(!(resolver instanceof ELCompletionEngine)) + continue; + = + SimpleELContext context =3D new SimpleELContext(); + = + ElVarSearcher elSearcher =3D new ElVarSearcher((ELCompletionEngine)reso= lver); + = + List vars =3D elSearcher.findAllVars(file, offset); + = + if(vars =3D=3D null) + continue; + = + context.setVars(vars); + context.setResource(file); + context.setElResolvers(resolvers); + = + ELResolution resolution =3D resolver.resolve(context, operand); + = + if(resolution =3D=3D null) + continue; + = + ELSegment segment =3D resolution.findSegmentByOffset(offset); + = + if(segment =3D=3D null) + continue; + + if(segment instanceof JavaMemberELSegment){ + JavaMemberELSegment javaSegment =3D (JavaMemberELSegment)segment; + if(javaSegment.isResolved()){ + IJavaElement segmentJavaElement =3D javaSegment.getJavaElement(); + if(segmentJavaElement.equals(javaElement)) + match(file, offset, length); + } + } + } + } } Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/se= am/ui/search/SeamELReferencesQueryParticipant.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= search/SeamELReferencesQueryParticipant.java 2009-09-17 13:59:09 UTC (rev 1= 7633) +++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= search/SeamELReferencesQueryParticipant.java 2009-09-17 14:37:38 UTC (rev 1= 7634) @@ -14,6 +14,7 @@ import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IMethod; import org.eclipse.jdt.ui.search.ElementQuerySpecification; import org.eclipse.jdt.ui.search.IMatchPresentation; @@ -49,7 +50,7 @@ IFile file =3D (IFile)qs.getElement().getResource(); String name =3D ELSearcher.getPropertyName(qs.getElement().getElementN= ame()); = - searcher =3D new ELSearcher(requestor, file, name); + searcher =3D new ELSearcher(requestor, qs.getElement(), file, name); = searcher.findELReferences(); } @@ -66,8 +67,8 @@ = class ELSearcher extends SeamRefactorSearcher{ ISearchRequestor requestor; - public ELSearcher(ISearchRequestor requestor, IFile file, String name){ - super(file, name); + public ELSearcher(ISearchRequestor requestor, IJavaElement element, IFil= e file, String name){ + super(file, name, element); this.requestor =3D requestor; } = --===============7283967412144866336==-- From jbosstools-commits at lists.jboss.org Thu Sep 17 10:57:49 2009 Content-Type: multipart/mixed; boundary="===============0845994052323603726==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17635 - in trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp: jspeditor and 1 other directory. Date: Thu, 17 Sep 2009 10:57:49 -0400 Message-ID: <200909171457.n8HEvnXT005968@svn01.web.mwc.hst.phx2.redhat.com> --===============0845994052323603726== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-17 10:57:48 -0400 (Thu, 17 Sep 2009) New Revision: 17635 Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/co= ntentassist/AutoContentAssistantProposal.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/JSPTextEditor.java Log: JBIDE-512 context variable code completion dropdown should show their "sour= ce" JBIDE-2541 Show java-doc for EL content assist item The values of type, sourceType and JavaDoc are gathered to be displayed in = CA CA shows proposals for EL in a Java-like manner Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/contentassist/AutoContentAssistantProposal.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/AutoContentAssistantProposal.java 2009-09-17 14:37:38 UTC (rev= 17634) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/AutoContentAssistantProposal.java 2009-09-17 14:57:48 UTC (rev= 17635) @@ -12,8 +12,10 @@ = import org.eclipse.jface.text.ITextOperationTarget; import org.eclipse.jface.text.ITextViewer; +import org.eclipse.jface.text.contentassist.ICompletionProposalExtension6; import org.eclipse.jface.text.contentassist.IContextInformation; import org.eclipse.jface.text.source.ISourceViewer; +import org.eclipse.jface.viewers.StyledString; import org.eclipse.swt.graphics.Image; import org.eclipse.swt.graphics.Point; import org.eclipse.wst.sse.ui.internal.contentassist.CustomCompletionPropo= sal; @@ -22,8 +24,10 @@ /** * @author Igels */ -public class AutoContentAssistantProposal extends CustomCompletionProposal= { +public class AutoContentAssistantProposal extends CustomCompletionProposal= implements ICompletionProposalExtension6 = = +{ + private boolean autoContentAssistant =3D false; = public AutoContentAssistantProposal(String replacementString, int replace= mentOffset, int replacementLength, int cursorPosition, Image image, String = displayString, IContextInformation contextInformation, String additionalPro= posalInfo) { @@ -72,4 +76,55 @@ } return cursorPosition>-1?cursorPosition:super.getCursorPosition(); } + + = + StyledString fStyledDisplayString; + = + public String getDisplayString() { + if (super.getDisplayString() !=3D null) + return super.getDisplayString(); + else { + if (super.getReplacementString() !=3D null) { = + setDisplayString(super.getReplacementString()); + return super.getDisplayString(); + } + } + return ""; //$NON-NLS-1$ + } + = + public void setDisplayString(String string) { + super.setDisplayString(string); + = + boolean isJavaWordPart =3D string.length() > 0 && Character.isJavaIdent= ifierPart(string.charAt(0)); + boolean hasRetType =3D isJavaWordPart && string.indexOf(':') > 0; + boolean hasDeclType =3D isJavaWordPart && string.lastIndexOf('-') > 0; + = + int p1i =3D string.indexOf(':'); + int p2i =3D string.lastIndexOf('-'); + = + String p1 =3D hasRetType && hasDeclType ? string.substring(0, p2i) : str= ing; + String p2 =3D string.substring(p1.length()); + = + StyledString styledString =3D new StyledString(); + + // name, attrs, type + styledString.append(p1); + + // decl type + if (p2 !=3D null && p2.length() > 0) = + styledString.append(p2, StyledString.QUALIFIER_STYLER); + fStyledDisplayString =3D styledString; = + } + = + public StyledString getStyledDisplayString() { + if (fStyledDisplayString =3D=3D null) { + setDisplayString(super.getDisplayString()); // This re-creates Styled D= isplay String + } + return fStyledDisplayString; + } + = + public void setStyledDisplayString(StyledString text) { + fStyledDisplayString =3D text; + super.setDisplayString(fStyledDisplayString =3D=3D null ? "" : fStyledDi= splayString.getString()); + } } \ No newline at end of file Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/jspeditor/JSPTextEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/JSPTextEditor.java 2009-09-17 14:37:38 UTC (rev 17634) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/JSPTextEditor.java 2009-09-17 14:57:48 UTC (rev 17635) @@ -27,6 +27,8 @@ import org.eclipse.jface.text.ITextViewer; import org.eclipse.jface.text.Region; import org.eclipse.jface.text.TextEvent; +import org.eclipse.jface.text.contentassist.ContentAssistant; +import org.eclipse.jface.text.contentassist.IContentAssistant; import org.eclipse.jface.text.formatter.IContentFormatter; import org.eclipse.jface.text.hyperlink.IHyperlinkDetector; import org.eclipse.jface.text.source.IAnnotationModel; @@ -411,6 +413,10 @@ IVerticalRuler ruler, int styles) { ISourceViewer sv =3D super.createSourceViewer(parent, ruler, styles); sv.getTextWidget().addFocusListener(new TextFocusListener()); + IContentAssistant ca =3D getSourceViewerConfiguration().getContentAssist= ant(sv); + if (ca instanceof ContentAssistant) { + ((ContentAssistant)ca).enableColoredLabels(true); + } return sv; } = --===============0845994052323603726==-- From jbosstools-commits at lists.jboss.org Thu Sep 17 11:42:04 2009 Content-Type: multipart/mixed; boundary="===============3460868041249161616==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17636 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/meta. Date: Thu, 17 Sep 2009 11:42:04 -0400 Message-ID: <200909171542.n8HFg41H013582@svn01.web.mwc.hst.phx2.redhat.com> --===============3460868041249161616== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-17 11:42:04 -0400 (Thu, 17 Sep 2009) New Revision: 17636 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/met= a/hibconfig3.meta Log: https://jira.jboss.org/jira/browse/JBIDE-2607 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resour= ces/meta/hibconfig3.meta =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/me= ta/hibconfig3.meta 2009-09-17 14:57:48 UTC (rev 17635) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/me= ta/hibconfig3.meta 2009-09-17 15:42:04 UTC (rev 17636) @@ -942,17 +942,47 @@ + PROPERTIES=3D"category=3Dgeneral;h_property=3Dhibernate.c3p0.acquire_i= ncrement" name=3D"acquire increment"> + + + + + + PROPERTIES=3D"category=3Dgeneral;h_property=3Dhibernate.c3p0.idle_test= _period" name=3D"idle test period"> + + + + + + PROPERTIES=3D"category=3Dgeneral;h_property=3Dhibernate.c3p0.max_size"= name=3D"max size"> + + + + + + PROPERTIES=3D"category=3Dgeneral;h_property=3Dhibernate.c3p0.max_state= ments" name=3D"max statements"> + + + + + + PROPERTIES=3D"category=3Dgeneral;h_property=3Dhibernate.c3p0.min_size"= name=3D"min size"> + + + + + + PROPERTIES=3D"category=3Dgeneral;h_property=3Dhibernate.c3p0.timeout" = name=3D"timeout"> + + + + + @@ -987,40 +1017,16 @@ PROPERTIES=3D"category=3Dgeneral;h_property=3Dhibernate.cache.jndi" na= me=3D"jndi"/> - - - - - - - - - - - - + PROPERTIES=3D"category=3Dgeneral;h_property=3Dhibernate.cache.provider= _configuration_file_resource_path" name=3D"provider configuration file"/> - - - - - - - - - - - - + PROPERTIES=3D"category=3Dgeneral;h_property=3Dhibernate.cache.region_p= refix" name=3D"region prefix"/> @@ -1221,6 +1227,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --===============3460868041249161616==-- From jbosstools-commits at lists.jboss.org Thu Sep 17 11:43:17 2009 Content-Type: multipart/mixed; boundary="===============0237380426873663453==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17637 - trunk/jsf/docs/userguide/en/modules. Date: Thu, 17 Sep 2009 11:43:17 -0400 Message-ID: <200909171543.n8HFhHTJ013664@svn01.web.mwc.hst.phx2.redhat.com> --===============0237380426873663453== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: chukhutsina Date: 2009-09-17 11:43:17 -0400 (Thu, 17 Sep 2009) New Revision: 17637 Modified: trunk/jsf/docs/userguide/en/modules/css_perspective.xml Log:

https://jira.jboss.org/jira/browse/JBDS-864 - Updated the CSS Perspectiv= e chapter with the info about supporting editing style sheets being inserte= d in any of possible places.

Modified: trunk/jsf/docs/userguide/en/modules/css_perspective.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/docs/userguide/en/modules/css_perspective.xml 2009-09-17 15:4= 2:04 UTC (rev 17636) +++ trunk/jsf/docs/userguide/en/modules/css_perspective.xml 2009-09-17 15:4= 3:17 UTC (rev 17637) @@ -13,10 +13,21 @@ your css files,edit them and see the results. To use this perspective you need to choose Win= dow >Open Perspective> CSS Editing .All of the views are fully synchronized with each other:the chang= es being made in one view are reflected in othes at once. - In CSS Editing Perspective you can change your css file in thre= e ways: + As you know, there are three ways of inserting a style sheet: + = + External style sheet (.css file) + + Internal style sheet (using the <style> tag in the head section of an HTML/XH= TML/JSP page) + + Inline style (using style attribute) + + + Using CSS Editing Perspective you can change your style sheet, + inserted in any of the possible places described before, in three = ways: + - directly in your CSS Editor + directly in your Editor --===============0237380426873663453==-- From jbosstools-commits at lists.jboss.org Thu Sep 17 11:48:54 2009 Content-Type: multipart/mixed; boundary="===============8602856684816058905==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17638 - trunk/jsf/docs/userguide/en/images/visual_page. Date: Thu, 17 Sep 2009 11:48:54 -0400 Message-ID: <200909171548.n8HFmsaD014304@svn01.web.mwc.hst.phx2.redhat.com> --===============8602856684816058905== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: abogachuk Date: 2009-09-17 11:48:54 -0400 (Thu, 17 Sep 2009) New Revision: 17638 Modified: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_23a.png Log: JBDS-787 - screenshot adjusted Modified: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_23a.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============8602856684816058905==-- From jbosstools-commits at lists.jboss.org Thu Sep 17 12:41:17 2009 Content-Type: multipart/mixed; boundary="===============8279351936278803202==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17639 - trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/el. Date: Thu, 17 Sep 2009 12:41:17 -0400 Message-ID: <200909171641.n8HGfHGE024004@svn01.web.mwc.hst.phx2.redhat.com> --===============8279351936278803202== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-17 12:41:17 -0400 (Thu, 17 Sep 2009) New Revision: 17639 Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web= /kb/el/AbstractELCompletionEngine.java Log: JBIDE-4860: Improve/refactor JBT EL resolvers. JavaElements are set for the segments = Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/= jst/web/kb/el/AbstractELCompletionEngine.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/el/AbstractELCompletionEngine.java 2009-09-17 15:48:54 UTC (rev 17638) +++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/el/AbstractELCompletionEngine.java 2009-09-17 16:41:17 UTC (rev 17639) @@ -488,7 +488,8 @@ proposal.setContextInfo(attachedJavaDoc); proposals.add(proposal); } - segment.setMemberInfo(bijectedAttribute!=3Dnull?bijectedAttribute:getM= emberInfoByVariable(var, true)); + segment.setMemberInfo(bijectedAttribute!=3Dnull?bijectedAttribute:memb= er); + segment.setElement(bijectedAttribute!=3Dnull?bijectedAttribute.getJava= Element():member!=3Dnull?member.getJavaElement():null); segment.getVariables().add(var); } // <<<=3D=3D=3D JBIDE-512, JBIDE-2541 related changes @@ -507,6 +508,7 @@ if (member !=3D null && !members.contains(member)) { = members.add(member); segment.setMemberInfo(member); + segment.setElement(member.getJavaElement()); segment.getVariables().add(var); segment.setResolved(true); } @@ -532,7 +534,8 @@ members =3D resolveSegment(left, members, resolution, returnEqualedV= ariablesOnly, varIsUsed, segment); } if(!members.isEmpty()) { - segment.setMemberInfo(members.get(0)); + segment.setMemberInfo(members.get(0)); // TODO: This is a buggy way = to select a member to setup in a segment + segment.setElement(members.get(0).getJavaElement()); } resolution.addSegment(segment); } else { // Last segment @@ -773,6 +776,7 @@ proposalsToFilter.addAll(infos.getMethodPresentations()); proposalsToFilter.addAll(infos.getPropertyPresentations(segment.getUnp= airedGettersOrSetters())); segment.setMemberInfo(mbr); + segment.setElement(mbr!=3Dnull?mbr.getJavaElement():null); } for (TypeInfoCollector.MemberPresentation proposal : proposalsToFilter)= { // We do expect nothing but name for method tokens (No round brackets) @@ -789,6 +793,7 @@ kbProposals.add(kbProposal); = segment.setMemberInfo(proposal.getMember()); + segment.setElement(proposal.getMember()!=3Dnull?proposal.getMember()= .getJavaElement():null); if(segment.getUnpairedGettersOrSetters()!=3Dnull) { TypeInfoCollector.MethodInfo unpirMethod =3D segment.getUnpairedGet= tersOrSetters().get(filter); segment.clearUnpairedGettersOrSetters(); @@ -850,6 +855,7 @@ WebKbPlugin.getDefault().logError(jme); } segment.setMemberInfo(mbr); + segment.setElement(mbr!=3Dnull?mbr.getJavaElement():null); } = String filter =3D expr.getMemberName(); @@ -882,6 +888,7 @@ kbProposals.add(kbProposal); = segment.setMemberInfo(proposal.getMember()); + segment.setElement(proposal.getMember()!=3Dnull?proposal.getMember()= .getJavaElement():null); if(segment.getUnpairedGettersOrSetters()!=3Dnull) { TypeInfoCollector.MethodInfo unpirMethod =3D segment.getUnpairedGet= tersOrSetters().get(filter); segment.clearUnpairedGettersOrSetters(); --===============8279351936278803202==-- From jbosstools-commits at lists.jboss.org Thu Sep 17 13:18:23 2009 Content-Type: multipart/mixed; boundary="===============2263554751601794299==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17640 - in trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/diagram: editors and 4 other directories. Date: Thu, 17 Sep 2009 13:18:22 -0400 Message-ID: <200909171718.n8HHIMac030276@svn01.web.mwc.hst.phx2.redhat.com> --===============2263554751601794299== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vyemialyanchyk Date: 2009-09-17 13:18:22 -0400 (Thu, 17 Sep 2009) New Revision: 17640 Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/actions/ActionMenu.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/actions/RefreshAction.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/actions/ToggleAssociationAction.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/actions/ToggleClassMappingAction.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/actions/ToggleForeignKeyConstraintAction= .java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/actions/TogglePropertyMappingAction.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/icons/toggleassociation.png trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/icons/toggleclassmapping.png trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/icons/toggleforeignkeyconstraint.png trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/icons/togglepropertymapping.png trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/icons/toggleshapeexpandstate2.png Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/DiagramViewerMessages.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/DiagramViewerMessages.properties trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/DiagramActionBarContributor.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/DiagramContentOutlinePage.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/DiagramViewer.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/actions/DiagramBaseAction.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/actions/DiagramBaseRetargetAction.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/actions/OpenMappingAction.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/actions/OpenSourceAction.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/actions/ToggleConnectionsAction.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/actions/ToggleShapeExpandStateAction.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/actions/ToggleShapeVisibleStateAction.ja= va trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/icons/autolayout.png trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/icons/toggleconnections.png trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/icons/toggleshapeexpandstate.png trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/icons/toggleshapevisiblestate.png trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/model/Connection.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/model/OrmDiagram.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/model/Shape.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/popup/PopupMenuProvider.java Log: https://jira.jboss.org/jira/browse/JBIDE-4873, https://jira.jboss.org/jira/= browse/JBIDE-4620 - gui update (icons, toolbar, menu, new action, small bug= fix) Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/DiagramViewerMessages.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/DiagramViewerMessages.java 2009-09-17 16:41:17 = UTC (rev 17639) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/DiagramViewerMessages.java 2009-09-17 17:18:22 = UTC (rev 17640) @@ -53,4 +53,8 @@ public static String DiagramViewer_OutlinePage_Sort_label; public static String DiagramViewer_OutlinePage_Sort_tooltip; public static String DiagramViewer_OutlinePage_Sort_description; + public static String ToggleClassMappingAction_class_mappings; + public static String TogglePropertyMappingAction_property_mappings; + public static String ToggleAssociationAction_associations; + public static String ToggleForeignKeyConstraintAction_foreign_key_constra= ints; } Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/DiagramViewerMessages.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/DiagramViewerMessages.properties 2009-09-17 16:= 41:17 UTC (rev 17639) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/DiagramViewerMessages.properties 2009-09-17 17:= 18:22 UTC (rev 17640) @@ -15,9 +15,9 @@ OpenSourceAction_canot_find_source_file=3DCan't find source file. OpenSourceAction_canot_open_source_file=3DCan't open source file. OpenSourceAction_open_source_file=3DOpen Source File -ToggleShapeExpandStateAction_toggle_expand_state=3DToggle expand state +ToggleShapeExpandStateAction_toggle_expand_state=3DExpand|Collapse ToggleShapeVisibleStateAction_toggle_visible_state=3DToggle visible state -ToggleConnectionsAction_toggle_connections=3DToggle connections +ToggleConnectionsAction_toggle_connections=3DShow|Hide connections ShapeSetConstraintCommand_move=3Dmove PartFactory_canot_create_part_for_model_element=3DCan't create part for mo= del element: PartFactory_null=3Dnull @@ -29,3 +29,7 @@ DiagramViewer_OutlinePage_Sort_label=3DSort DiagramViewer_OutlinePage_Sort_tooltip=3DSort DiagramViewer_OutlinePage_Sort_description=3DEnable Sorting +ToggleClassMappingAction_class_mappings=3DClass Mappings +TogglePropertyMappingAction_property_mappings=3DProperty Mappings +ToggleAssociationAction_associations=3DAssociations +ToggleForeignKeyConstraintAction_foreign_key_constraints=3DForeign key con= straints Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/DiagramActionBarContributor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/DiagramActionBarContributor.java 2009-0= 9-17 16:41:17 UTC (rev 17639) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/DiagramActionBarContributor.java 2009-0= 9-17 17:18:22 UTC (rev 17640) @@ -19,6 +19,7 @@ import org.eclipse.gef.ui.actions.ZoomComboContributionItem; import org.eclipse.gef.ui.actions.ZoomInRetargetAction; import org.eclipse.gef.ui.actions.ZoomOutRetargetAction; +import org.eclipse.jface.action.Action; import org.eclipse.jface.action.IAction; import org.eclipse.jface.action.IMenuManager; import org.eclipse.jface.action.IToolBarManager; @@ -30,9 +31,14 @@ import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction; import org.jboss.tools.hibernate.ui.diagram.DiagramViewerMessages; import org.jboss.tools.hibernate.ui.diagram.UiPlugin; +import org.jboss.tools.hibernate.ui.diagram.editors.actions.ActionMenu; import org.jboss.tools.hibernate.ui.diagram.editors.actions.AutoLayoutActi= on; +import org.jboss.tools.hibernate.ui.diagram.editors.actions.ToggleAssociat= ionAction; +import org.jboss.tools.hibernate.ui.diagram.editors.actions.ToggleClassMap= pingAction; import org.jboss.tools.hibernate.ui.diagram.editors.actions.ToggleConnecti= onsAction; import org.jboss.tools.hibernate.ui.diagram.editors.actions.DiagramBaseRet= argetAction; +import org.jboss.tools.hibernate.ui.diagram.editors.actions.ToggleForeignK= eyConstraintAction; +import org.jboss.tools.hibernate.ui.diagram.editors.actions.ToggleProperty= MappingAction; import org.jboss.tools.hibernate.ui.diagram.editors.actions.ToggleShapeExp= andStateAction; import org.jboss.tools.hibernate.ui.diagram.editors.actions.ToggleShapeVis= ibleStateAction; import org.jboss.tools.hibernate.ui.view.ImageBundle; @@ -49,28 +55,72 @@ workbenchAction.setToolTipText(DiagramViewerMessages.EditorActionContrib= utor_refresh_visual_mapping); addAction(workbenchAction); // - addRetargetAction(new DiagramBaseRetargetAction( + DiagramBaseRetargetAction diagramAction; + Action[] act; + // + diagramAction =3D new DiagramBaseRetargetAction( AutoLayoutAction.ACTION_ID, = DiagramViewerMessages.AutoLayoutAction_auto_layout, DiagramViewerMessages.AutoLayoutAction_auto_layout, - AutoLayoutAction.img)); + AutoLayoutAction.img); + addRetargetAction(diagramAction); // - addRetargetAction(new DiagramBaseRetargetAction( + DiagramBaseRetargetAction diagramAction1 =3D new DiagramBaseRetargetActi= on( ToggleConnectionsAction.ACTION_ID, = DiagramViewerMessages.ToggleConnectionsAction_toggle_connections, DiagramViewerMessages.ToggleConnectionsAction_toggle_connections, - ToggleConnectionsAction.img)); - addRetargetAction(new DiagramBaseRetargetAction( + ToggleConnectionsAction.img); + addRetargetAction(diagramAction1); + // + DiagramBaseRetargetAction diagramAction2 =3D new DiagramBaseRetargetActi= on( ToggleShapeExpandStateAction.ACTION_ID, = DiagramViewerMessages.ToggleShapeExpandStateAction_toggle_expand_state, DiagramViewerMessages.ToggleShapeExpandStateAction_toggle_expand_state, - ToggleShapeExpandStateAction.img)); - addRetargetAction(new DiagramBaseRetargetAction( + ToggleShapeExpandStateAction.img); + addRetargetAction(diagramAction2); + // + diagramAction =3D new DiagramBaseRetargetAction( ToggleShapeVisibleStateAction.ACTION_ID, = DiagramViewerMessages.ToggleShapeVisibleStateAction_toggle_visible_sta= te, DiagramViewerMessages.ToggleShapeVisibleStateAction_toggle_visible_sta= te, - ToggleShapeVisibleStateAction.img)); + ToggleShapeVisibleStateAction.img); + addRetargetAction(diagramAction); // + diagramAction =3D new DiagramBaseRetargetAction( + ToggleClassMappingAction.ACTION_ID, = + DiagramViewerMessages.ToggleClassMappingAction_class_mappings, + DiagramViewerMessages.ToggleClassMappingAction_class_mappings, + ToggleClassMappingAction.img, IAction.AS_CHECK_BOX); + addRetargetAction(diagramAction); + // + diagramAction =3D new DiagramBaseRetargetAction( + TogglePropertyMappingAction.ACTION_ID, = + DiagramViewerMessages.TogglePropertyMappingAction_property_mappings, + DiagramViewerMessages.TogglePropertyMappingAction_property_mappings, + TogglePropertyMappingAction.img, IAction.AS_CHECK_BOX); + addRetargetAction(diagramAction); + // + diagramAction =3D new DiagramBaseRetargetAction( + ToggleAssociationAction.ACTION_ID, = + DiagramViewerMessages.ToggleAssociationAction_associations, + DiagramViewerMessages.ToggleAssociationAction_associations, + ToggleAssociationAction.img, IAction.AS_CHECK_BOX); + addRetargetAction(diagramAction); + // + diagramAction =3D new DiagramBaseRetargetAction( + ToggleForeignKeyConstraintAction.ACTION_ID, = + DiagramViewerMessages.ToggleForeignKeyConstraintAction_foreign_key_con= straints, + DiagramViewerMessages.ToggleForeignKeyConstraintAction_foreign_key_con= straints, + ToggleForeignKeyConstraintAction.img, IAction.AS_CHECK_BOX); + addRetargetAction(diagramAction); + // + act =3D new Action[4]; + act[0] =3D (Action)getAction(TogglePropertyMappingAction.ACTION_ID); + act[1] =3D (Action)getAction(ToggleClassMappingAction.ACTION_ID); + act[2] =3D (Action)getAction(ToggleAssociationAction.ACTION_ID); + act[3] =3D (Action)getAction(ToggleForeignKeyConstraintAction.ACTION_ID); + diagramAction1.setMenuCreator(new ActionMenu(act)); + // addRetargetAction(new UndoRetargetAction()); addRetargetAction(new RedoRetargetAction()); addRetargetAction(new ZoomInRetargetAction()); @@ -93,10 +143,10 @@ */ public void contributeToToolBar(IToolBarManager tbm) { tbm.add(getAction(ActionFactory.REFRESH.getId())); - tbm.add(new Separator()); = - tbm.add(getAction(ActionFactory.UNDO.getId())); - tbm.add(getAction(ActionFactory.REDO.getId())); - tbm.add(new Separator()); = + tbm.add(new Separator()); + //tbm.add(getAction(ActionFactory.UNDO.getId())); + //tbm.add(getAction(ActionFactory.REDO.getId())); + //tbm.add(new Separator()); //tbm.add(getAction(GEFActionConstants.ZOOM_IN)); //tbm.add(getAction(GEFActionConstants.ZOOM_OUT)); String[] zoomStrings =3D new String[] { Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/DiagramContentOutlinePage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/DiagramContentOutlinePage.java 2009-09-= 17 16:41:17 UTC (rev 17639) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/DiagramContentOutlinePage.java 2009-09-= 17 17:18:22 UTC (rev 17640) @@ -44,6 +44,10 @@ import org.eclipse.ui.part.IPageSite; import org.eclipse.ui.part.PageBook; import org.jboss.tools.hibernate.ui.diagram.DiagramViewerMessages; +import org.jboss.tools.hibernate.ui.diagram.editors.actions.AutoLayoutActi= on; +import org.jboss.tools.hibernate.ui.diagram.editors.actions.ToggleConnecti= onsAction; +import org.jboss.tools.hibernate.ui.diagram.editors.actions.ToggleShapeExp= andStateAction; +import org.jboss.tools.hibernate.ui.diagram.editors.actions.ToggleShapeVis= ibleStateAction; import org.jboss.tools.hibernate.ui.diagram.editors.model.OrmDiagram; import org.jboss.tools.hibernate.ui.diagram.editors.parts.TreePartFactory; import org.jboss.tools.hibernate.ui.diagram.editors.popup.PopupMenuProvide= r; @@ -151,6 +155,18 @@ bars.setGlobalActionHandler(id, registry.getAction(id)); id =3D ActionFactory.REDO.getId(); bars.setGlobalActionHandler(id, registry.getAction(id)); + id =3D ActionFactory.REFRESH.getId(); + bars.setGlobalActionHandler(id, registry.getAction(id)); + id =3D ActionFactory.PRINT.getId(); + bars.setGlobalActionHandler(id, registry.getAction(id)); + id =3D AutoLayoutAction.ACTION_ID; + bars.setGlobalActionHandler(id, registry.getAction(id)); + id =3D ToggleConnectionsAction.ACTION_ID; + bars.setGlobalActionHandler(id, registry.getAction(id)); + id =3D ToggleShapeExpandStateAction.ACTION_ID; + bars.setGlobalActionHandler(id, registry.getAction(id)); + id =3D ToggleShapeVisibleStateAction.ACTION_ID; + bars.setGlobalActionHandler(id, registry.getAction(id)); bars.updateActionBars(); } = Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/DiagramViewer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/DiagramViewer.java 2009-09-17 16:41:17 = UTC (rev 17639) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/DiagramViewer.java 2009-09-17 17:18:22 = UTC (rev 17640) @@ -41,13 +41,13 @@ import org.eclipse.gef.ui.actions.ToggleRulerVisibilityAction; import org.eclipse.gef.ui.actions.ToggleSnapToGeometryAction; import org.eclipse.gef.ui.actions.UndoAction; -import org.eclipse.gef.ui.actions.WorkbenchPartAction; import org.eclipse.gef.ui.actions.ZoomInAction; import org.eclipse.gef.ui.actions.ZoomOutAction; import org.eclipse.gef.ui.parts.GraphicalEditor; import org.eclipse.gef.ui.parts.ScrollingGraphicalViewer; import org.eclipse.gef.ui.parts.TreeViewer; import org.eclipse.gef.ui.rulers.RulerComposite; +import org.eclipse.jface.action.Action; import org.eclipse.jface.action.IAction; import org.eclipse.jface.util.TransferDropTargetListener; import org.eclipse.swt.SWT; @@ -60,6 +60,7 @@ import org.hibernate.console.ConsoleConfiguration; import org.hibernate.mapping.RootClass; import org.jboss.tools.hibernate.ui.diagram.DiagramViewerMessages; +import org.jboss.tools.hibernate.ui.diagram.editors.actions.ActionMenu; import org.jboss.tools.hibernate.ui.diagram.editors.actions.AutoLayoutActi= on; import org.jboss.tools.hibernate.ui.diagram.editors.actions.CollapseAllAct= ion; import org.jboss.tools.hibernate.ui.diagram.editors.actions.ExpandAllActio= n; @@ -67,7 +68,12 @@ import org.jboss.tools.hibernate.ui.diagram.editors.actions.OpenMappingAct= ion; import org.jboss.tools.hibernate.ui.diagram.editors.actions.OpenSourceActi= on; import org.jboss.tools.hibernate.ui.diagram.editors.actions.PrintDiagramVi= ewerAction; +import org.jboss.tools.hibernate.ui.diagram.editors.actions.RefreshAction; +import org.jboss.tools.hibernate.ui.diagram.editors.actions.ToggleAssociat= ionAction; +import org.jboss.tools.hibernate.ui.diagram.editors.actions.ToggleClassMap= pingAction; import org.jboss.tools.hibernate.ui.diagram.editors.actions.ToggleConnecti= onsAction; +import org.jboss.tools.hibernate.ui.diagram.editors.actions.ToggleForeignK= eyConstraintAction; +import org.jboss.tools.hibernate.ui.diagram.editors.actions.ToggleProperty= MappingAction; import org.jboss.tools.hibernate.ui.diagram.editors.actions.ToggleShapeExp= andStateAction; import org.jboss.tools.hibernate.ui.diagram.editors.actions.ToggleShapeVis= ibleStateAction; import org.jboss.tools.hibernate.ui.diagram.editors.model.OrmDiagram; @@ -81,7 +87,9 @@ import org.jboss.tools.hibernate.ui.view.ObjectEditorInput; = /** - * @author some modifications from Vitali + * = + * @author ? + * @author Vitali Yemialyanchyk */ public class DiagramViewer extends GraphicalEditor { = @@ -151,21 +159,15 @@ @SuppressWarnings("unchecked") protected void createActions() { = - getEditorSite().getActionBars().setGlobalActionHandler( - ActionFactory.REFRESH.getId(), new WorkbenchPartAction(this) { - - protected boolean calculateEnabled() { - return true; - } - public void run() { - ormDiagram.refresh(); - } - }); - //super.createActions(); // BEGIN: redefine super.createActions ActionRegistry registry =3D getActionRegistry(); IAction action; + + action =3D new RefreshAction(this); + registry.registerAction(action); + getEditorSite().getActionBars().setGlobalActionHandler( + ActionFactory.REFRESH.getId(), action); = action =3D new UndoAction(this); registry.registerAction(action); @@ -206,14 +208,28 @@ action =3D new AutoLayoutAction(this); registry.registerAction(action); = - action =3D new ToggleConnectionsAction(this); + ToggleConnectionsAction actionToggleConnections =3D new ToggleConnection= sAction(this); + registry.registerAction(actionToggleConnections); + = + action =3D new ToggleAssociationAction(this); registry.registerAction(action); = + action =3D new ToggleClassMappingAction(this); + registry.registerAction(action); + = + action =3D new ToggleForeignKeyConstraintAction(this); + registry.registerAction(action); + = + action =3D new TogglePropertyMappingAction(this); + registry.registerAction(action); + = action =3D new ToggleShapeExpandStateAction(this); registry.registerAction(action); + getSelectionActions().add(action.getId()); = action =3D new ToggleShapeVisibleStateAction(this); registry.registerAction(action); + getSelectionActions().add(action.getId()); = action =3D new CollapseAllAction(this); registry.registerAction(action); @@ -227,6 +243,13 @@ action =3D new ZoomOutAction(gefRootEditPart.getZoomManager()); registry.registerAction(action); = + Action[] act =3D new Action[4]; + act[0] =3D (Action)registry.getAction(TogglePropertyMappingAction.ACTION= _ID); + act[1] =3D (Action)registry.getAction(ToggleClassMappingAction.ACTION_ID= ); + act[2] =3D (Action)registry.getAction(ToggleAssociationAction.ACTION_ID); + act[3] =3D (Action)registry.getAction(ToggleForeignKeyConstraintAction.A= CTION_ID); + actionToggleConnections.setMenuCreator(new ActionMenu(act)); + } = private TransferDropTargetListener createTransferDropTargetListener() { @@ -304,6 +327,9 @@ outline.setSelectionSynchronizer(getSelectionSynchronizer()); outline.setOrmDiagram(ormDiagram); outline.setEditor(this); + RefreshAction refreshAction =3D (RefreshAction)getActionRegistry().getA= ction( + ActionFactory.REFRESH.getId()); + refreshAction.setOutlinePage(outline); return outline; } if (type =3D=3D ZoomManager.class) { @@ -480,4 +506,49 @@ } return res; } + = + = + public boolean getConnectionsVisibilityAssociation() { + return getViewerContents().getConnectionsVisibilityAssociation(); + } + = + public void setConnectionsVisibilityAssociation(boolean connectionsVisibi= lityAssociation) { + getViewerContents().setConnectionsVisibilityAssociation(connectionsVisib= ilityAssociation); + ActionRegistry registry =3D getActionRegistry(); + IAction action =3D registry.getAction(ToggleAssociationAction.ACTION_ID); + action.setChecked(connectionsVisibilityAssociation); + } + = + public boolean getConnectionsVisibilityClassMapping() { + return getViewerContents().getConnectionsVisibilityClassMapping(); + } + = + public void setConnectionsVisibilityClassMapping(boolean connectionsVisib= ilityClassMapping) { + getViewerContents().setConnectionsVisibilityClassMapping(connectionsVisi= bilityClassMapping); + ActionRegistry registry =3D getActionRegistry(); + IAction action =3D registry.getAction(ToggleClassMappingAction.ACTION_ID= ); + action.setChecked(connectionsVisibilityClassMapping); + } + = + public boolean getConnectionsVisibilityForeignKeyConstraint() { + return getViewerContents().getConnectionsVisibilityForeignKeyConstraint(= ); + } + = + public void setConnectionsVisibilityForeignKeyConstraint(boolean connecti= onsVisibilityForeignKeyConstraint) { + getViewerContents().setConnectionsVisibilityForeignKeyConstraint(connect= ionsVisibilityForeignKeyConstraint); + ActionRegistry registry =3D getActionRegistry(); + IAction action =3D registry.getAction(ToggleForeignKeyConstraintAction.A= CTION_ID); + action.setChecked(connectionsVisibilityForeignKeyConstraint); + } + = + public boolean getConnectionsVisibilityPropertyMapping() { + return getViewerContents().getConnectionsVisibilityPropertyMapping(); + } + = + public void setConnectionsVisibilityPropertyMapping(boolean connectionsVi= sibilityPropertyMapping) { + getViewerContents().setConnectionsVisibilityPropertyMapping(connectionsV= isibilityPropertyMapping); + ActionRegistry registry =3D getActionRegistry(); + IAction action =3D registry.getAction(TogglePropertyMappingAction.ACTION= _ID); + action.setChecked(connectionsVisibilityPropertyMapping); + } } Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jb= oss/tools/hibernate/ui/diagram/editors/actions/ActionMenu.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ActionMenu.java = (rev 0) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ActionMenu.java 2009-09-17 17:1= 8:22 UTC (rev 17640) @@ -0,0 +1,79 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.hibernate.ui.diagram.editors.actions; + +import org.eclipse.jface.action.Action; +import org.eclipse.jface.action.ActionContributionItem; +import org.eclipse.jface.action.IMenuCreator; +import org.eclipse.swt.widgets.Control; +import org.eclipse.swt.widgets.Menu; + +/** + * Menu with list of actions. + * = + * @author Vitali Yemialyanchyk + */ +public class ActionMenu extends Action implements IMenuCreator { + + private Action[] actions; + private Menu menu; + + public ActionMenu(Action[] actions) { + this.actions =3D actions; + if (this.actions.length > 0) { + setToolTipText(actions[0].getToolTipText()); + setImageDescriptor(actions[0].getImageDescriptor()); + if (actions.length > 1) { + setMenuCreator(this); + } + } + } + + public void run() { + if (actions.length > 0) { + actions[0].run(); + } + } + + public void dispose() { + if (menu !=3D null) { + menu.dispose(); + menu =3D null; + } + } + + public Menu getMenu(Control parent) { + if (menu !=3D null) { + menu.dispose(); + } + menu =3D new Menu(parent); + for (int i =3D 0; i < actions.length; i++) { + addActionToMenu(menu, actions[i]); + } + return menu; + } + + public Menu getMenu(Menu parent) { + if (menu !=3D null) { + menu.dispose(); + } + menu =3D new Menu(parent); + for (int i =3D 0; i < actions.length; i++) { + addActionToMenu(menu, actions[i]); + } + return menu; + } + + protected void addActionToMenu(Menu parent, Action action) { + ActionContributionItem item =3D new ActionContributionItem(action); + item.fill(parent, -1); + } +} Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/actions/DiagramBaseAction.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/DiagramBaseAction.java 2009-09-= 17 16:41:17 UTC (rev 17639) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/DiagramBaseAction.java 2009-09-= 17 17:18:22 UTC (rev 17640) @@ -27,6 +27,11 @@ public DiagramBaseAction(DiagramViewer editor) { this.editor =3D editor; } + = + public DiagramBaseAction(DiagramViewer editor, int style) { + super(null, style); + this.editor =3D editor; + } = protected DiagramViewer getDiagramViewer() { DiagramViewer res =3D editor; Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/actions/DiagramBaseRetargetAction= .java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/DiagramBaseRetargetAction.java = 2009-09-17 16:41:17 UTC (rev 17639) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/DiagramBaseRetargetAction.java = 2009-09-17 17:18:22 UTC (rev 17640) @@ -24,5 +24,13 @@ setToolTipText(toolTipText); setImageDescriptor(imgDescriptor); } + = + public DiagramBaseRetargetAction(final String actionId, final String text, + final String toolTipText, final ImageDescriptor imgDescriptor, + int style) { + super(actionId, text, style); + setToolTipText(toolTipText); + setImageDescriptor(imgDescriptor); + } = } Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/actions/OpenMappingAction.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/OpenMappingAction.java 2009-09-= 17 16:41:17 UTC (rev 17639) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/OpenMappingAction.java 2009-09-= 17 17:18:22 UTC (rev 17640) @@ -1,5 +1,5 @@ /*************************************************************************= ****** - * Copyright (c) 2007 Red Hat, Inc. + * Copyright (c) 2007-2009 Red Hat, Inc. * Distributed under license by Red Hat, Inc. All rights reserved. * This program is made available under the terms of the * Eclipse Public License v1.0 which accompanies this distribution, @@ -16,11 +16,9 @@ = import org.eclipse.core.runtime.CoreException; import org.eclipse.gef.ui.actions.SelectionAction; -import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.ui.IEditorPart; import org.eclipse.ui.IWorkbenchPart; -import org.eclipse.ui.PartInitException; import org.hibernate.console.ConsoleConfiguration; import org.hibernate.eclipse.console.HibernateConsolePlugin; import org.hibernate.mapping.Column; Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/actions/OpenSourceAction.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/OpenSourceAction.java 2009-09-1= 7 16:41:17 UTC (rev 17639) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/OpenSourceAction.java 2009-09-1= 7 17:18:22 UTC (rev 17640) @@ -16,11 +16,9 @@ = import org.eclipse.core.runtime.CoreException; import org.eclipse.gef.ui.actions.SelectionAction; -import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.ui.IEditorPart; import org.eclipse.ui.IWorkbenchPart; -import org.eclipse.ui.PartInitException; import org.hibernate.console.ConsoleConfiguration; import org.hibernate.eclipse.console.HibernateConsolePlugin; import org.hibernate.mapping.Column; Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jb= oss/tools/hibernate/ui/diagram/editors/actions/RefreshAction.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/RefreshAction.java = (rev 0) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/RefreshAction.java 2009-09-17 1= 7:18:22 UTC (rev 17640) @@ -0,0 +1,54 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.hibernate.ui.diagram.editors.actions; + +import org.eclipse.gef.ui.actions.WorkbenchPartAction; +import org.eclipse.ui.actions.ActionFactory; +import org.jboss.tools.hibernate.ui.diagram.editors.DiagramContentOutlineP= age; +import org.jboss.tools.hibernate.ui.diagram.editors.DiagramViewer; + +/** + * Refresh diagram action + * = + * @author Vitali Yemialyanchyk + */ +public class RefreshAction extends WorkbenchPartAction { + + public static final String ACTION_ID =3D ActionFactory.REFRESH.getId(); + = + protected DiagramContentOutlinePage outline =3D null; + + public RefreshAction(DiagramViewer editor) { + super(editor); + setId(ACTION_ID); + } + = + protected DiagramViewer getDiagramViewer() { + return (DiagramViewer)getWorkbenchPart(); + } + + public void run() { + getDiagramViewer().getViewerContents().refresh(); + if (outline !=3D null) { + // synchronize contents of outline page + outline.setContents(outline.getOrmDiagram()); + } + } + + @Override + protected boolean calculateEnabled() { + return true; + } + = + public void setOutlinePage(DiagramContentOutlinePage outline) { + this.outline =3D outline; + } +} Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jb= oss/tools/hibernate/ui/diagram/editors/actions/ToggleAssociationAction.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ToggleAssociationAction.java = (rev 0) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ToggleAssociationAction.java 20= 09-09-17 17:18:22 UTC (rev 17640) @@ -0,0 +1,42 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.hibernate.ui.diagram.editors.actions; + +import org.eclipse.jface.resource.ImageDescriptor; +import org.jboss.tools.hibernate.ui.diagram.DiagramViewerMessages; +import org.jboss.tools.hibernate.ui.diagram.editors.DiagramViewer; + +/** + * Show|Hide connections which type is "Associations" (class associations). + * = + * @author Vitali Yemialyanchyk + */ +public class ToggleAssociationAction extends DiagramBaseAction { + + public static final String ACTION_ID =3D "toggleAssociationId"; //$NON-NL= S-1$ + public static final ImageDescriptor img =3D = + ImageDescriptor.createFromFile(DiagramViewer.class, "icons/toggleassocia= tion.png"); //$NON-NLS-1$ + + public ToggleAssociationAction(DiagramViewer editor) { + super(editor); + setId(ACTION_ID); + setText(DiagramViewerMessages.ToggleAssociationAction_associations); + setToolTipText(DiagramViewerMessages.ToggleAssociationAction_association= s); + setImageDescriptor(img); + boolean state =3D getDiagramViewer().getConnectionsVisibilityAssociation= (); + setChecked(state); + } + + public void run() { + boolean state =3D getDiagramViewer().getConnectionsVisibilityAssociation= (); + getDiagramViewer().setConnectionsVisibilityAssociation(!state); + } +} Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jb= oss/tools/hibernate/ui/diagram/editors/actions/ToggleClassMappingAction.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ToggleClassMappingAction.java = (rev 0) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ToggleClassMappingAction.java 2= 009-09-17 17:18:22 UTC (rev 17640) @@ -0,0 +1,42 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.hibernate.ui.diagram.editors.actions; + +import org.eclipse.jface.resource.ImageDescriptor; +import org.jboss.tools.hibernate.ui.diagram.DiagramViewerMessages; +import org.jboss.tools.hibernate.ui.diagram.editors.DiagramViewer; + +/** + * Show|Hide connections which type is "Class Mappings" (class->table). + * = + * @author Vitali Yemialyanchyk + */ +public class ToggleClassMappingAction extends DiagramBaseAction { + + public static final String ACTION_ID =3D "toggleClassMappingId"; //$NON-N= LS-1$ + public static final ImageDescriptor img =3D = + ImageDescriptor.createFromFile(DiagramViewer.class, "icons/toggleclassma= pping.png"); //$NON-NLS-1$ + + public ToggleClassMappingAction(DiagramViewer editor) { + super(editor); + setId(ACTION_ID); + setText(DiagramViewerMessages.ToggleClassMappingAction_class_mappings); + setToolTipText(DiagramViewerMessages.ToggleClassMappingAction_class_mapp= ings); + setImageDescriptor(img); + boolean state =3D getDiagramViewer().getConnectionsVisibilityClassMappin= g(); + setChecked(state); + } + + public void run() { + boolean state =3D getDiagramViewer().getConnectionsVisibilityClassMappin= g(); + getDiagramViewer().setConnectionsVisibilityClassMapping(!state); + } +} Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/actions/ToggleConnectionsAction.j= ava =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ToggleConnectionsAction.java 20= 09-09-17 16:41:17 UTC (rev 17639) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ToggleConnectionsAction.java 20= 09-09-17 17:18:22 UTC (rev 17640) @@ -15,6 +15,8 @@ import org.jboss.tools.hibernate.ui.diagram.editors.DiagramViewer; = /** + * Show|Hide all connections. + * = * @author Vitali Yemialyanchyk */ public class ToggleConnectionsAction extends DiagramBaseAction { @@ -24,7 +26,7 @@ ImageDescriptor.createFromFile(DiagramViewer.class, "icons/toggleconnect= ions.png"); //$NON-NLS-1$ = public ToggleConnectionsAction(DiagramViewer editor) { - super(editor); + super(editor, AS_DROP_DOWN_MENU); setId(ACTION_ID); setText(DiagramViewerMessages.ToggleConnectionsAction_toggle_connections= ); setToolTipText(DiagramViewerMessages.ToggleConnectionsAction_toggle_conn= ections); @@ -32,6 +34,13 @@ } = public void run() { - getDiagramViewer().getViewerContents().toggleConnections(); + boolean state =3D getDiagramViewer().getConnectionsVisibilityAssociation= (); + getDiagramViewer().setConnectionsVisibilityAssociation(!state); + state =3D getDiagramViewer().getConnectionsVisibilityClassMapping(); + getDiagramViewer().setConnectionsVisibilityClassMapping(!state); + state =3D getDiagramViewer().getConnectionsVisibilityForeignKeyConstrain= t(); + getDiagramViewer().setConnectionsVisibilityForeignKeyConstraint(!state); + state =3D getDiagramViewer().getConnectionsVisibilityPropertyMapping(); + getDiagramViewer().setConnectionsVisibilityPropertyMapping(!state); } } Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jb= oss/tools/hibernate/ui/diagram/editors/actions/ToggleForeignKeyConstraintAc= tion.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ToggleForeignKeyConstraintActio= n.java (rev 0) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ToggleForeignKeyConstraintActio= n.java 2009-09-17 17:18:22 UTC (rev 17640) @@ -0,0 +1,43 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.hibernate.ui.diagram.editors.actions; + +import org.eclipse.jface.resource.ImageDescriptor; +import org.jboss.tools.hibernate.ui.diagram.DiagramViewerMessages; +import org.jboss.tools.hibernate.ui.diagram.editors.DiagramViewer; + +/** + * Show|Hide connections which type is "Foreign key constraints" = + * (foreign keys which associations are based on). + * = + * @author Vitali Yemialyanchyk + */ +public class ToggleForeignKeyConstraintAction extends DiagramBaseAction { + + public static final String ACTION_ID =3D "toggleForeignKeyConstraintId"; = //$NON-NLS-1$ + public static final ImageDescriptor img =3D = + ImageDescriptor.createFromFile(DiagramViewer.class, "icons/toggleforeign= keyconstraint.png"); //$NON-NLS-1$ + + public ToggleForeignKeyConstraintAction(DiagramViewer editor) { + super(editor); + setId(ACTION_ID); + setText(DiagramViewerMessages.ToggleForeignKeyConstraintAction_foreign_k= ey_constraints); + setToolTipText(DiagramViewerMessages.ToggleForeignKeyConstraintAction_fo= reign_key_constraints); + setImageDescriptor(img); + boolean state =3D getDiagramViewer().getConnectionsVisibilityForeignKeyC= onstraint(); + setChecked(state); + } + + public void run() { + boolean state =3D getDiagramViewer().getConnectionsVisibilityForeignKeyC= onstraint(); + getDiagramViewer().setConnectionsVisibilityForeignKeyConstraint(!state); + } +} Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jb= oss/tools/hibernate/ui/diagram/editors/actions/TogglePropertyMappingAction.= java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/TogglePropertyMappingAction.jav= a (rev 0) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/TogglePropertyMappingAction.jav= a 2009-09-17 17:18:22 UTC (rev 17640) @@ -0,0 +1,42 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.hibernate.ui.diagram.editors.actions; + +import org.eclipse.jface.resource.ImageDescriptor; +import org.jboss.tools.hibernate.ui.diagram.DiagramViewerMessages; +import org.jboss.tools.hibernate.ui.diagram.editors.DiagramViewer; + +/** + * Show|Hide connections which type is "Property Mappings" (property->colu= mn). + * = + * @author Vitali Yemialyanchyk + */ +public class TogglePropertyMappingAction extends DiagramBaseAction { + + public static final String ACTION_ID =3D "togglePropertyMappingId"; //$NO= N-NLS-1$ + public static final ImageDescriptor img =3D = + ImageDescriptor.createFromFile(DiagramViewer.class, "icons/togglepropert= ymapping.png"); //$NON-NLS-1$ + + public TogglePropertyMappingAction(DiagramViewer editor) { + super(editor); + setId(ACTION_ID); + setText(DiagramViewerMessages.TogglePropertyMappingAction_property_mappi= ngs); + setToolTipText(DiagramViewerMessages.TogglePropertyMappingAction_propert= y_mappings); + setImageDescriptor(img); + boolean state =3D getDiagramViewer().getConnectionsVisibilityPropertyMap= ping(); + setChecked(state); + } + + public void run() { + boolean state =3D getDiagramViewer().getConnectionsVisibilityPropertyMap= ping(); + getDiagramViewer().setConnectionsVisibilityPropertyMapping(!state); + } +} Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/actions/ToggleShapeExpandStateAct= ion.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ToggleShapeExpandStateAction.ja= va 2009-09-17 16:41:17 UTC (rev 17639) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ToggleShapeExpandStateAction.ja= va 2009-09-17 17:18:22 UTC (rev 17640) @@ -15,10 +15,9 @@ import java.util.List; = import org.eclipse.gef.editparts.AbstractTreeEditPart; +import org.eclipse.gef.ui.actions.SelectionAction; import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.StructuredSelection; +import org.eclipse.ui.IWorkbenchPart; import org.jboss.tools.hibernate.ui.diagram.DiagramViewerMessages; import org.jboss.tools.hibernate.ui.diagram.editors.DiagramViewer; import org.jboss.tools.hibernate.ui.diagram.editors.model.ExpandableShape; @@ -29,13 +28,13 @@ * = * @author Vitali Yemialyanchyk */ -public class ToggleShapeExpandStateAction extends DiagramBaseAction { +public class ToggleShapeExpandStateAction extends SelectionAction { = public static final String ACTION_ID =3D "toggleShapeExpandStateId"; //$N= ON-NLS-1$ public static final ImageDescriptor img =3D = - ImageDescriptor.createFromFile(DiagramViewer.class, "icons/toggleshapeex= pandstate.png"); //$NON-NLS-1$ + ImageDescriptor.createFromFile(DiagramViewer.class, "icons/toggleshapeex= pandstate2.png"); //$NON-NLS-1$ = - public ToggleShapeExpandStateAction(DiagramViewer editor) { + public ToggleShapeExpandStateAction(IWorkbenchPart editor) { super(editor); setId(ACTION_ID); setText(DiagramViewerMessages.ToggleShapeExpandStateAction_toggle_expand= _state); @@ -45,29 +44,52 @@ = @SuppressWarnings("unchecked") public void run() { - ISelection selection =3D getDiagramViewer().getEditPartViewer().getSelec= tion(); - if (!(selection instanceof StructuredSelection)) { + if (getSelectedObjects().isEmpty()) { return; } List selectedShape =3D new ArrayList(); - IStructuredSelection structedSelection =3D (IStructuredSelection)selecti= on; - if (structedSelection !=3D null) { - Iterator it =3D structedSelection.iterator(); - while (it.hasNext()) { - Object firstElement =3D it.next(); - Object obj =3D null; - if (firstElement instanceof OrmEditPart) { - obj =3D ((OrmEditPart)firstElement).getModel(); - } else if (firstElement instanceof AbstractTreeEditPart) { - obj =3D ((AbstractTreeEditPart)firstElement).getModel(); - } - if (null !=3D obj && obj instanceof ExpandableShape) { - selectedShape.add((ExpandableShape)obj); - } = + Iterator it =3D getSelectedObjects().iterator(); + while (it.hasNext()) { + Object firstElement =3D it.next(); + Object obj =3D null; + if (firstElement instanceof OrmEditPart) { + obj =3D ((OrmEditPart)firstElement).getModel(); + } else if (firstElement instanceof AbstractTreeEditPart) { + obj =3D ((AbstractTreeEditPart)firstElement).getModel(); } + if (null !=3D obj && obj instanceof ExpandableShape) { + selectedShape.add((ExpandableShape)obj); + } = } for (ExpandableShape shape : selectedShape) { shape.setExpanded(!shape.isExpanded()); } } + + @Override + protected boolean calculateEnabled() { + return canPerformAction(); + } + + @SuppressWarnings("unchecked") + private boolean canPerformAction() { + boolean res =3D false; + if (getSelectedObjects().isEmpty()) { + return res; + } + Iterator it =3D getSelectedObjects().iterator(); + while (it.hasNext() && !res) { + Object firstElement =3D it.next(); + Object obj =3D null; + if (firstElement instanceof OrmEditPart) { + obj =3D ((OrmEditPart)firstElement).getModel(); + } else if (firstElement instanceof AbstractTreeEditPart) { + obj =3D ((AbstractTreeEditPart)firstElement).getModel(); + } + if (null !=3D obj && obj instanceof ExpandableShape) { + res =3D true; + } = + } + return res; + } } Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/actions/ToggleShapeVisibleStateAc= tion.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ToggleShapeVisibleStateAction.j= ava 2009-09-17 16:41:17 UTC (rev 17639) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ToggleShapeVisibleStateAction.j= ava 2009-09-17 17:18:22 UTC (rev 17640) @@ -15,10 +15,9 @@ import java.util.List; = import org.eclipse.gef.editparts.AbstractTreeEditPart; +import org.eclipse.gef.ui.actions.SelectionAction; import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.StructuredSelection; +import org.eclipse.ui.IWorkbenchPart; import org.hibernate.mapping.PersistentClass; import org.hibernate.mapping.Table; import org.jboss.tools.hibernate.ui.diagram.DiagramViewerMessages; @@ -31,13 +30,13 @@ * = * @author Vitali Yemialyanchyk */ -public class ToggleShapeVisibleStateAction extends DiagramBaseAction { +public class ToggleShapeVisibleStateAction extends SelectionAction { = public static final String ACTION_ID =3D "toggleShapeVisibleStateId"; //$= NON-NLS-1$ public static final ImageDescriptor img =3D = ImageDescriptor.createFromFile(DiagramViewer.class, "icons/toggleshapevi= siblestate.png"); //$NON-NLS-1$ = - public ToggleShapeVisibleStateAction(DiagramViewer editor) { + public ToggleShapeVisibleStateAction(IWorkbenchPart editor) { super(editor); setId(ACTION_ID); setText(DiagramViewerMessages.ToggleShapeVisibleStateAction_toggle_visib= le_state); @@ -47,26 +46,22 @@ = @SuppressWarnings("unchecked") public void run() { - ISelection selection =3D getDiagramViewer().getEditPartViewer().getSelec= tion(); - if (!(selection instanceof StructuredSelection)) { + if (getSelectedObjects().isEmpty()) { return; } List selectedShape =3D new ArrayList(); - IStructuredSelection structedSelection =3D (IStructuredSelection)selecti= on; - if (structedSelection !=3D null) { - Iterator it =3D structedSelection.iterator(); - while (it.hasNext()) { - Object firstElement =3D it.next(); - Object obj =3D null; - if (firstElement instanceof OrmEditPart) { - obj =3D ((OrmEditPart)firstElement).getModel(); - } else if (firstElement instanceof AbstractTreeEditPart) { - obj =3D ((AbstractTreeEditPart)firstElement).getModel(); - } - if (null !=3D obj && obj instanceof OrmShape) { - selectedShape.add((OrmShape)obj); - } = + Iterator it =3D getSelectedObjects().iterator(); + while (it.hasNext()) { + Object firstElement =3D it.next(); + Object obj =3D null; + if (firstElement instanceof OrmEditPart) { + obj =3D ((OrmEditPart)firstElement).getModel(); + } else if (firstElement instanceof AbstractTreeEditPart) { + obj =3D ((AbstractTreeEditPart)firstElement).getModel(); } + if (null !=3D obj && obj instanceof OrmShape) { + selectedShape.add((OrmShape)obj); + } = } for (OrmShape shape : selectedShape) { Object ormElement =3D shape.getOrmElement(); @@ -75,4 +70,34 @@ } } } + + @Override + protected boolean calculateEnabled() { + return canPerformAction(); + } + + @SuppressWarnings("unchecked") + private boolean canPerformAction() { + boolean res =3D false; + if (getSelectedObjects().isEmpty()) { + return res; + } + Iterator it =3D getSelectedObjects().iterator(); + while (it.hasNext() && !res) { + Object firstElement =3D it.next(); + Object obj =3D null; + if (firstElement instanceof OrmEditPart) { + obj =3D ((OrmEditPart)firstElement).getModel(); + } else if (firstElement instanceof AbstractTreeEditPart) { + obj =3D ((AbstractTreeEditPart)firstElement).getModel(); + } + if (null !=3D obj && obj instanceof OrmShape) { + Object ormElement =3D ((OrmShape)obj).getOrmElement(); + if (ormElement instanceof PersistentClass || ormElement instanceof Tab= le) { + res =3D true; + } + } = + } + return res; + } } Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/icons/autolayout.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jb= oss/tools/hibernate/ui/diagram/editors/icons/toggleassociation.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/hibernatetools/plugins/org.jboss.tools.hibernate= .ui/src/org/jboss/tools/hibernate/ui/diagram/editors/icons/toggleassociatio= n.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jb= oss/tools/hibernate/ui/diagram/editors/icons/toggleclassmapping.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/hibernatetools/plugins/org.jboss.tools.hibernate= .ui/src/org/jboss/tools/hibernate/ui/diagram/editors/icons/toggleclassmappi= ng.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/icons/toggleconnections.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jb= oss/tools/hibernate/ui/diagram/editors/icons/toggleforeignkeyconstraint.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/hibernatetools/plugins/org.jboss.tools.hibernate= .ui/src/org/jboss/tools/hibernate/ui/diagram/editors/icons/toggleforeignkey= constraint.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jb= oss/tools/hibernate/ui/diagram/editors/icons/togglepropertymapping.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/hibernatetools/plugins/org.jboss.tools.hibernate= .ui/src/org/jboss/tools/hibernate/ui/diagram/editors/icons/togglepropertyma= pping.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/icons/toggleshapeexpandstate.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jb= oss/tools/hibernate/ui/diagram/editors/icons/toggleshapeexpandstate2.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/hibernatetools/plugins/org.jboss.tools.hibernate= .ui/src/org/jboss/tools/hibernate/ui/diagram/editors/icons/toggleshapeexpan= dstate2.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/icons/toggleshapevisiblestate.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/model/Connection.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/model/Connection.java 2009-09-17 16:41:= 17 UTC (rev 17639) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/model/Connection.java 2009-09-17 17:18:= 22 UTC (rev 17640) @@ -13,12 +13,20 @@ /** * Directed connection between 2 shapes, from source to target. = * - * @author some modifications from Vitali + * @author ? + * @author Vitali Yemialyanchyk */ public class Connection extends BaseElement { = protected Shape source; protected Shape target; + = + public enum ConnectionType { + ClassMapping, + PropertyMapping, + Association, + ForeignKeyConstraint, + }; = /** * flag to prevent cycle call of updateVisibleValue() @@ -42,6 +50,20 @@ public Shape getTarget() { return target; } + = + public ConnectionType getConnectionType() { + if ((source instanceof OrmShape) && (target instanceof OrmShape)) { + return ConnectionType.ClassMapping; + } + if ((source instanceof OrmShape) || (target instanceof OrmShape)) { + return ConnectionType.Association; + } + // TODO: what is ForeignKeyConstraint? + //if ( ??? ) { + // return ConnectionType.ForeignKeyConstraint; + //} + return ConnectionType.PropertyMapping; + } = /** * It has no children, so not possible to add. Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/model/OrmDiagram.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/model/OrmDiagram.java 2009-09-17 16:41:= 17 UTC (rev 17639) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/model/OrmDiagram.java 2009-09-17 17:18:= 22 UTC (rev 17640) @@ -39,6 +39,7 @@ import org.hibernate.eclipse.console.utils.ProjectUtils; import org.hibernate.mapping.RootClass; import org.jboss.tools.hibernate.ui.diagram.UiPlugin; +import org.jboss.tools.hibernate.ui.diagram.editors.model.Connection.Conne= ctionType; import org.jboss.tools.hibernate.ui.diagram.rulers.DiagramRuler; import org.jboss.tools.hibernate.ui.view.OrmLabelProvider; = @@ -62,7 +63,10 @@ private HashMap elements =3D new HashMap(); private RootClass[] ormElements; private String[] entityNames; - private boolean connectionsVisibility =3D true; + private boolean connectionsVisibilityClassMapping =3D true; + private boolean connectionsVisibilityPropertyMapping =3D true; + private boolean connectionsVisibilityAssociation =3D true; + private boolean connectionsVisibilityForeignKeyConstraint =3D true; private ArrayList connections =3D new ArrayList(); = // editor elements settings @@ -315,27 +319,74 @@ firePropertyChange(AUTOLAYOUT, null, null); } = - public boolean getConnectionsVisibility() { - return connectionsVisibility; + public boolean getConnectionsVisibilityAssociation() { + return connectionsVisibilityAssociation; } = - public void setConnectionsVisibility(boolean connectionsVisibility) { - if (this.connectionsVisibility =3D=3D connectionsVisibility) { + public void setConnectionsVisibilityAssociation(boolean connectionsVisibi= lityAssociation) { + if (this.connectionsVisibilityAssociation =3D=3D connectionsVisibilityAs= sociation) { return; } - this.connectionsVisibility =3D connectionsVisibility; + this.connectionsVisibilityAssociation =3D connectionsVisibilityAssociati= on; for (Connection connection : connections) { - if (!(connection.getSource() instanceof OrmShape) || - !(connection.getTarget() instanceof OrmShape)) { - connection.setVisible(connectionsVisibility); + ConnectionType ct =3D connection.getConnectionType(); + if (ct =3D=3D ConnectionType.Association) { + connection.setVisible(connectionsVisibilityAssociation); } } } = - public void toggleConnections() { - setConnectionsVisibility(!getConnectionsVisibility()); + public boolean getConnectionsVisibilityClassMapping() { + return connectionsVisibilityClassMapping; } = + public void setConnectionsVisibilityClassMapping(boolean connectionsVisib= ilityClassMapping) { + if (this.connectionsVisibilityClassMapping =3D=3D connectionsVisibilityC= lassMapping) { + return; + } + this.connectionsVisibilityClassMapping =3D connectionsVisibilityClassMap= ping; + for (Connection connection : connections) { + ConnectionType ct =3D connection.getConnectionType(); + if (ct =3D=3D ConnectionType.ClassMapping) { + connection.setVisible(connectionsVisibilityClassMapping); + } + } + } + = + public boolean getConnectionsVisibilityForeignKeyConstraint() { + return connectionsVisibilityForeignKeyConstraint; + } + = + public void setConnectionsVisibilityForeignKeyConstraint(boolean connecti= onsVisibilityForeignKeyConstraint) { + if (this.connectionsVisibilityForeignKeyConstraint =3D=3D connectionsVis= ibilityForeignKeyConstraint) { + return; + } + this.connectionsVisibilityForeignKeyConstraint =3D connectionsVisibility= ForeignKeyConstraint; + for (Connection connection : connections) { + ConnectionType ct =3D connection.getConnectionType(); + if (ct =3D=3D ConnectionType.ForeignKeyConstraint) { + connection.setVisible(connectionsVisibilityForeignKeyConstraint); + } + } + } + = + public boolean getConnectionsVisibilityPropertyMapping() { + return connectionsVisibilityPropertyMapping; + } + = + public void setConnectionsVisibilityPropertyMapping(boolean connectionsVi= sibilityPropertyMapping) { + if (this.connectionsVisibilityPropertyMapping =3D=3D connectionsVisibili= tyPropertyMapping) { + return; + } + this.connectionsVisibilityPropertyMapping =3D connectionsVisibilityPrope= rtyMapping; + for (Connection connection : connections) { + ConnectionType ct =3D connection.getConnectionType(); + if (ct =3D=3D ConnectionType.PropertyMapping) { + connection.setVisible(connectionsVisibilityPropertyMapping); + } + } + } + = @Override protected void loadFromProperties(Properties properties) { super.loadFromProperties(properties); @@ -349,6 +400,14 @@ zoom =3D Double.valueOf(str).doubleValue(); str =3D properties.getProperty("deepIntoSort", "false"); //$NON-NLS-1$ /= /$NON-NLS-2$ deepIntoSort =3D Boolean.valueOf(str).booleanValue(); + str =3D properties.getProperty("connectionsVisibilityAssociation", "true= "); //$NON-NLS-1$ //$NON-NLS-2$ + connectionsVisibilityAssociation =3D Boolean.valueOf(str).booleanValue(); + str =3D properties.getProperty("connectionsVisibilityClassMapping", "tru= e"); //$NON-NLS-1$ //$NON-NLS-2$ + connectionsVisibilityClassMapping =3D Boolean.valueOf(str).booleanValue(= ); + str =3D properties.getProperty("connectionsVisibilityForeignKeyConstrain= t", "true"); //$NON-NLS-1$ //$NON-NLS-2$ + connectionsVisibilityForeignKeyConstraint =3D Boolean.valueOf(str).boole= anValue(); + str =3D properties.getProperty("connectionsVisibilityPropertyMapping", "= true"); //$NON-NLS-1$ //$NON-NLS-2$ + connectionsVisibilityPropertyMapping =3D Boolean.valueOf(str).booleanVal= ue(); } = @Override @@ -358,6 +417,10 @@ properties.put("gridEnabled", "" + gridEnabled); //$NON-NLS-1$ //$NON-NL= S-2$ properties.put("zoom", "" + zoom); //$NON-NLS-1$ //$NON-NLS-2$ properties.put("deepIntoSort", "" + deepIntoSort); //$NON-NLS-1$ //$NON-= NLS-2$ + properties.put("connectionsVisibilityAssociation", "" + connectionsVisib= ilityAssociation); //$NON-NLS-1$ //$NON-NLS-2$ + properties.put("connectionsVisibilityClassMapping", "" + connectionsVisi= bilityClassMapping); //$NON-NLS-1$ //$NON-NLS-2$ + properties.put("connectionsVisibilityForeignKeyConstraint", "" + connect= ionsVisibilityForeignKeyConstraint); //$NON-NLS-1$ //$NON-NLS-2$ + properties.put("connectionsVisibilityPropertyMapping", "" + connectionsV= isibilityPropertyMapping); //$NON-NLS-1$ //$NON-NLS-2$ super.saveInProperties(properties); } = Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/model/Shape.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/model/Shape.java 2009-09-17 16:41:17 UT= C (rev 17639) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/model/Shape.java 2009-09-17 17:18:22 UT= C (rev 17640) @@ -20,6 +20,7 @@ import org.hibernate.mapping.Component; import org.hibernate.mapping.Property; import org.hibernate.mapping.Value; +import org.jboss.tools.hibernate.ui.diagram.editors.model.Connection.Conne= ctionType; import org.jboss.tools.hibernate.ui.view.HibernateUtils; = /** @@ -171,10 +172,42 @@ super.updateVisibleValue(initState); // update connections visibility state for (Connection connection : sourceConnections) { - connection.updateVisibleValue(getOrmDiagram().getConnectionsVisibility(= )); + boolean state =3D true; + ConnectionType ct =3D connection.getConnectionType(); + switch (ct) { + case ClassMapping: + state =3D getOrmDiagram().getConnectionsVisibilityClassMapping(); + break; + case PropertyMapping: + state =3D getOrmDiagram().getConnectionsVisibilityPropertyMapping(); + break; + case Association: + state =3D getOrmDiagram().getConnectionsVisibilityAssociation(); + break; + case ForeignKeyConstraint: + state =3D getOrmDiagram().getConnectionsVisibilityForeignKeyConstraint= (); + break; + } + connection.updateVisibleValue(state); } for (Connection connection : targetConnections) { - connection.updateVisibleValue(getOrmDiagram().getConnectionsVisibility(= )); + boolean state =3D true; + ConnectionType ct =3D connection.getConnectionType(); + switch (ct) { + case ClassMapping: + state =3D getOrmDiagram().getConnectionsVisibilityClassMapping(); + break; + case PropertyMapping: + state =3D getOrmDiagram().getConnectionsVisibilityPropertyMapping(); + break; + case Association: + state =3D getOrmDiagram().getConnectionsVisibilityAssociation(); + break; + case ForeignKeyConstraint: + state =3D getOrmDiagram().getConnectionsVisibilityForeignKeyConstraint= (); + break; + } + connection.updateVisibleValue(state); } } = Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/popup/PopupMenuProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/popup/PopupMenuProvider.java 2009-09-17= 16:41:17 UTC (rev 17639) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/popup/PopupMenuProvider.java 2009-09-17= 17:18:22 UTC (rev 17640) @@ -1,12 +1,12 @@ /*************************************************************************= ****** - * Copyright (c) 2007-2009 Exadel, Inc. and Red Hat, Inc. + * Copyright (c) 2007-2009 Red Hat, Inc. * Distributed under license by Red Hat, Inc. All rights reserved. * This program is made available under the terms of the * Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + * Contributor: + * Red Hat, Inc. - initial API and implementation *************************************************************************= *****/ package org.jboss.tools.hibernate.ui.diagram.editors.popup; = @@ -41,13 +41,16 @@ import org.jboss.tools.hibernate.ui.diagram.editors.actions.ToggleConnecti= onsAction; import org.jboss.tools.hibernate.ui.diagram.editors.actions.ToggleShapeExp= andStateAction; import org.jboss.tools.hibernate.ui.diagram.editors.actions.ToggleShapeVis= ibleStateAction; +import org.jboss.tools.hibernate.ui.diagram.editors.model.ExpandableShape; +import org.jboss.tools.hibernate.ui.diagram.editors.model.OrmShape; import org.jboss.tools.hibernate.ui.diagram.editors.model.Shape; import org.jboss.tools.hibernate.ui.diagram.editors.parts.OrmEditPart; = /** * Context menu provider for Diagram Viewer and Diagram Outline. * = - * @author some modifications from Vitali + * @author ? + * @author Vitali Yemialyanchyk */ public class PopupMenuProvider extends ContextMenuProvider { private ActionRegistry actionRegistry; @@ -94,9 +97,10 @@ createMenuItem(getMenu(), action); = } } - boolean addToggleMenu =3D false; + boolean addToggleVisibleStateMenu =3D false; + boolean addToggleExpandStateMenu =3D false; Iterator it =3D selection.iterator(); - while (it.hasNext() && !addToggleMenu) { + while (it.hasNext() && (!addToggleVisibleStateMenu || !addToggleExpa= ndStateMenu)) { Object element =3D it.next(); Object obj =3D null; if (element instanceof OrmEditPart) { @@ -104,19 +108,23 @@ } else if (element instanceof AbstractTreeEditPart) { obj =3D ((AbstractTreeEditPart)element).getModel(); } - if (null !=3D obj && obj instanceof Shape) { + if (null !=3D obj && obj instanceof OrmShape) { selectedShape =3D (Shape)obj; Object first =3D selectedShape.getOrmElement(); if (first instanceof PersistentClass || first instanceof Table) { - addToggleMenu =3D true; + addToggleVisibleStateMenu =3D true; } + } + if (null !=3D obj && obj instanceof ExpandableShape) { + addToggleExpandStateMenu =3D true; } = } - if (addToggleMenu) { + if (addToggleVisibleStateMenu) { action =3D getActionRegistry().getAction(ToggleShapeVisibleStateAction= .ACTION_ID); appendToGroup(GEFActionConstants.GROUP_EDIT, action); createMenuItem(getMenu(), action); - + } + if (addToggleExpandStateMenu) { action =3D getActionRegistry().getAction(ToggleShapeExpandStateAction.= ACTION_ID); appendToGroup(GEFActionConstants.GROUP_EDIT, action); createMenuItem(getMenu(), action); --===============2263554751601794299==-- From jbosstools-commits at lists.jboss.org Thu Sep 17 13:47:25 2009 Content-Type: multipart/mixed; boundary="===============5036844789712326165==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17641 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring. Date: Thu, 17 Sep 2009 13:47:25 -0400 Message-ID: <200909171747.n8HHlPip003324@svn01.web.mwc.hst.phx2.redhat.com> --===============5036844789712326165== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-17 13:47:25 -0400 (Thu, 17 Sep 2009) New Revision: 17641 Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/refactoring/SeamRefactorSearcher.java Log: https://jira.jboss.org/jira/browse/JBIDE-4771 Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/refactoring/SeamRefactorSearcher.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java 2009-09-17 17:18:22 UTC = (rev 17640) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java 2009-09-17 17:47:25 UTC = (rev 17641) @@ -376,17 +376,12 @@ = SimpleELContext context =3D new SimpleELContext(); = - ElVarSearcher elSearcher =3D new ElVarSearcher((ELCompletionEngine)reso= lver); - = - List vars =3D elSearcher.findAllVars(file, offset); - = - if(vars =3D=3D null) - continue; - = - context.setVars(vars); context.setResource(file); context.setElResolvers(resolvers); - = + + List vars =3D ElVarSearcher.findAllVars(context, offset, resolver); + context.setVars(vars); + ELResolution resolution =3D resolver.resolve(context, operand); = if(resolution =3D=3D null) @@ -407,4 +402,4 @@ } } } -} +} \ No newline at end of file --===============5036844789712326165==-- From jbosstools-commits at lists.jboss.org Thu Sep 17 17:47:15 2009 Content-Type: multipart/mixed; boundary="===============8087870931419854158==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17642 - in trunk/jst/plugins/org.jboss.tools.jst.web.kb: src/org/jboss/tools/jst/web/kb/el and 1 other directory. Date: Thu, 17 Sep 2009 17:47:15 -0400 Message-ID: <200909172147.n8HLlFFG024894@svn01.web.mwc.hst.phx2.redhat.com> --===============8087870931419854158== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-17 17:47:15 -0400 (Thu, 17 Sep 2009) New Revision: 17642 Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/META-INF/MANIFEST.MF trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web= /kb/el/AbstractELCompletionEngine.java Log: JBIDE-512 context variable code completion dropdown should show their "sour= ce" JBIDE-2541 Show java-doc for EL content assist item The values of type, sourceType and JavaDoc are gathered to be displayed in = CA The JavaDoc comments are shown even from classes stored in JavaSource folde= rs Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.kb/META-INF/MANIFEST.MF 2009-= 09-17 17:47:25 UTC (rev 17641) +++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/META-INF/MANIFEST.MF 2009-= 09-17 21:47:15 UTC (rev 17642) @@ -12,7 +12,8 @@ org.jboss.tools.common.el.core, org.eclipse.jface.text, org.eclipse.wst.sse.core, - org.eclipse.wst.xml.ui;bundle-version=3D"1.1.0" + org.eclipse.wst.xml.ui;bundle-version=3D"1.1.0", + org.eclipse.jdt.ui;bundle-version=3D"3.5.0" Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Bundle-Vendor: %providerName Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/= jst/web/kb/el/AbstractELCompletionEngine.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/el/AbstractELCompletionEngine.java 2009-09-17 17:47:25 UTC (rev 17641) +++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/el/AbstractELCompletionEngine.java 2009-09-17 21:47:15 UTC (rev 17642) @@ -17,9 +17,11 @@ = import org.eclipse.core.resources.IFile; import org.eclipse.jdt.core.IJavaElement; +import org.eclipse.jdt.core.IMember; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.core.Signature; +import org.eclipse.jdt.internal.ui.text.java.ProposalInfo; import org.eclipse.jface.text.BadLocationException; import org.eclipse.swt.graphics.Image; import org.jboss.tools.common.el.core.model.ELArgumentInvocation; @@ -109,6 +111,14 @@ return resolution; } = + /** + * Resolves EL Operand + * = + * @param operand + * @param context + * @param returnEqualedVariablesOnly + * @return + */ public ELResolution resolveELOperand(ELExpression operand, ELContext cont= ext, boolean returnEqualedVariablesOnly) { List vars =3D new ArrayList(); Var[] array =3D context.getVars(); @@ -282,14 +292,8 @@ } = IJavaElement element =3D memberInfo =3D=3D null ? null : memberInfo.g= etJavaElement(); - String attachedJavaDoc =3D null; + String attachedJavaDoc =3D (element instanceof IMember)?(new Proposal= Info((IMember)element)).getInfo(null):null; = - try { - attachedJavaDoc =3D element =3D=3D null ? null : element.getAttached= Javadoc(null); - } catch (JavaModelException e) { - WebKbPlugin.getDefault().logError(e); - } - String varNameProposal =3D v.getName().substring(prefix.length()); TextProposal proposal =3D new TextProposal(); proposal.setLabel(v.getName()); @@ -406,14 +410,8 @@ typeName =3D Signature.getSimpleName(typeName); = IJavaElement element =3D member =3D=3D null ? null : member.getJavaEl= ement(); - String attachedJavaDoc =3D null; + String attachedJavaDoc =3D (element instanceof IMember)?(new Proposal= Info((IMember)element)).getInfo(null):null; = - try { - attachedJavaDoc =3D element =3D=3D null ? null : element.getAttached= Javadoc(null); - } catch (JavaModelException e) { - WebKbPlugin.getDefault().logError(e); - } - TextProposal proposal =3D new TextProposal(); proposal.setLabel(varName); proposal.setReplacementString(varName.substring(operand.getLength())); @@ -460,14 +458,8 @@ if (typeName !=3D null && typeName.indexOf('.') !=3D -1) = typeName =3D Signature.getSimpleName(typeName); IJavaElement element =3D member =3D=3D null ? null : member.getJavaEle= ment(); - String attachedJavaDoc =3D null; - - try { - attachedJavaDoc =3D element =3D=3D null ? null : element.getAttachedJ= avadoc(null); - } catch (JavaModelException e) { - WebKbPlugin.getDefault().logError(e); - } - + String attachedJavaDoc =3D (element instanceof IMember)?(new ProposalI= nfo((IMember)element)).getInfo(null):null; + = String varName =3D var.getName(); if(operand.getLength()<=3DvarName.length()) { TextProposal proposal =3D new TextProposal(); @@ -685,14 +677,8 @@ if (typeName !=3D null && typeName.indexOf('.') !=3D -1) = typeName =3D Signature.getSimpleName(typeName); IJavaElement element =3D member =3D=3D null ? null : member.getJavaE= lement(); - String attachedJavaDoc =3D null; + String attachedJavaDoc =3D (element instanceof IMember)?(new Proposa= lInfo((IMember)element)).getInfo(null):null; = - try { - attachedJavaDoc =3D element =3D=3D null ? null : element.getAttache= dJavadoc(null); - } catch (JavaModelException e) { - WebKbPlugin.getDefault().logError(e); - } - TextProposal proposal =3D new TextProposal(); proposal.setReplacementString(presentationString); proposal.setLabel(presentationString); @@ -733,14 +719,8 @@ if (typeName !=3D null && typeName.indexOf('.') !=3D -1) = typeName =3D Signature.getSimpleName(typeName); IJavaElement element =3D member =3D=3D null ? null : member.getJavaE= lement(); - String attachedJavaDoc =3D null; + String attachedJavaDoc =3D (element instanceof IMember)?(new Proposa= lInfo((IMember)element)).getInfo(null):null; = - try { - attachedJavaDoc =3D element =3D=3D null ? null : element.getAttache= dJavadoc(null); - } catch (JavaModelException e) { - WebKbPlugin.getDefault().logError(e); - } - TextProposal proposal =3D new TextProposal(); proposal.setReplacementString(presentationString); proposal.setLabel(presentationString); @@ -815,13 +795,7 @@ if (typeName !=3D null && typeName.indexOf('.') !=3D -1) = typeName =3D Signature.getSimpleName(typeName); IJavaElement element =3D member =3D=3D null ? null : member.getJavaEl= ement(); - String attachedJavaDoc =3D null; - = - try { - attachedJavaDoc =3D element =3D=3D null ? null : element.getAttached= Javadoc(null); - } catch (JavaModelException e) { - WebKbPlugin.getDefault().logError(e); - } + String attachedJavaDoc =3D (element instanceof IMember)?(new Proposal= Info((IMember)element)).getInfo(null):null; = TextProposal kbProposal =3D new TextProposal(); kbProposal.setReplacementString(proposal.getPresentation().substring(= filter.length())); @@ -910,14 +884,8 @@ if (typeName !=3D null && typeName.indexOf('.') !=3D -1) = typeName =3D Signature.getSimpleName(typeName); IJavaElement element =3D member =3D=3D null ? null : member.getJavaEl= ement(); - String attachedJavaDoc =3D null; + String attachedJavaDoc =3D (element instanceof IMember)?(new Proposal= Info((IMember)element)).getInfo(null):null; = - try { - attachedJavaDoc =3D element =3D=3D null ? null : element.getAttached= Javadoc(null); - } catch (JavaModelException e) { - WebKbPlugin.getDefault().logError(e); - } - TextProposal kbProposal =3D new TextProposal(); = String replacementString =3D proposal.getPresentation().substring(fil= ter.length()); --===============8087870931419854158==-- From jbosstools-commits at lists.jboss.org Thu Sep 17 18:40:06 2009 Content-Type: multipart/mixed; boundary="===============4286809847877945188==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17643 - in trunk: jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/el and 1 other directory. Date: Thu, 17 Sep 2009 18:40:06 -0400 Message-ID: <200909172240.n8HMe6RW004617@svn01.web.mwc.hst.phx2.redhat.com> --===============4286809847877945188== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-17 18:40:05 -0400 (Thu, 17 Sep 2009) New Revision: 17643 Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/JavaMemberELSegmentImpl.java trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web= /kb/el/AbstractELCompletionEngine.java Log: JBIDE-4897: OpenOn's don't work for EL in xhtml pages. The open-ons operability is restored Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss= /tools/common/el/core/resolver/JavaMemberELSegmentImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/JavaMemberELSegmentImpl.java 2009-09-17 21:47:15 U= TC (rev 17642) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/JavaMemberELSegmentImpl.java 2009-09-17 22:40:05 U= TC (rev 17643) @@ -105,6 +105,7 @@ */ public void setMemberInfo(MemberInfo memberInfo) { this.memberInfo =3D memberInfo; + this.setElement(memberInfo !=3D null ? memberInfo.getJavaElement() : nul= l); } = /** Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/= jst/web/kb/el/AbstractELCompletionEngine.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/el/AbstractELCompletionEngine.java 2009-09-17 21:47:15 UTC (rev 17642) +++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/el/AbstractELCompletionEngine.java 2009-09-17 22:40:05 UTC (rev 17643) @@ -481,7 +481,6 @@ proposals.add(proposal); } segment.setMemberInfo(bijectedAttribute!=3Dnull?bijectedAttribute:memb= er); - segment.setElement(bijectedAttribute!=3Dnull?bijectedAttribute.getJava= Element():member!=3Dnull?member.getJavaElement():null); segment.getVariables().add(var); } // <<<=3D=3D=3D JBIDE-512, JBIDE-2541 related changes @@ -500,7 +499,6 @@ if (member !=3D null && !members.contains(member)) { = members.add(member); segment.setMemberInfo(member); - segment.setElement(member.getJavaElement()); segment.getVariables().add(var); segment.setResolved(true); } @@ -527,7 +525,6 @@ } if(!members.isEmpty()) { segment.setMemberInfo(members.get(0)); // TODO: This is a buggy way = to select a member to setup in a segment - segment.setElement(members.get(0).getJavaElement()); } resolution.addSegment(segment); } else { // Last segment @@ -756,7 +753,6 @@ proposalsToFilter.addAll(infos.getMethodPresentations()); proposalsToFilter.addAll(infos.getPropertyPresentations(segment.getUnp= airedGettersOrSetters())); segment.setMemberInfo(mbr); - segment.setElement(mbr!=3Dnull?mbr.getJavaElement():null); } for (TypeInfoCollector.MemberPresentation proposal : proposalsToFilter)= { // We do expect nothing but name for method tokens (No round brackets) @@ -773,7 +769,6 @@ kbProposals.add(kbProposal); = segment.setMemberInfo(proposal.getMember()); - segment.setElement(proposal.getMember()!=3Dnull?proposal.getMember()= .getJavaElement():null); if(segment.getUnpairedGettersOrSetters()!=3Dnull) { TypeInfoCollector.MethodInfo unpirMethod =3D segment.getUnpairedGet= tersOrSetters().get(filter); segment.clearUnpairedGettersOrSetters(); @@ -829,7 +824,6 @@ WebKbPlugin.getDefault().logError(jme); } segment.setMemberInfo(mbr); - segment.setElement(mbr!=3Dnull?mbr.getJavaElement():null); } = String filter =3D expr.getMemberName(); @@ -862,7 +856,6 @@ kbProposals.add(kbProposal); = segment.setMemberInfo(proposal.getMember()); - segment.setElement(proposal.getMember()!=3Dnull?proposal.getMember()= .getJavaElement():null); if(segment.getUnpairedGettersOrSetters()!=3Dnull) { TypeInfoCollector.MethodInfo unpirMethod =3D segment.getUnpairedGet= tersOrSetters().get(filter); segment.clearUnpairedGettersOrSetters(); --===============4286809847877945188==-- From jbosstools-commits at lists.jboss.org Thu Sep 17 18:59:17 2009 Content-Type: multipart/mixed; boundary="===============3139110090187259626==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17644 - trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/propertypage. Date: Thu, 17 Sep 2009 18:59:17 -0400 Message-ID: <200909172259.n8HMxH2k008465@svn01.web.mwc.hst.phx2.redhat.com> --===============3139110090187259626== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: rob.stryker(a)jboss.com Date: 2009-09-17 18:59:17 -0400 (Thu, 17 Sep 2009) New Revision: 17644 Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclip= se/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java Log: https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D289802 Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/id= e/eclipse/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java 2009-09= -17 22:40:05 UTC (rev 17643) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java 2009-09= -17 22:59:17 UTC (rev 17644) @@ -548,9 +548,12 @@ IVirtualComponent comp; for( int i =3D 0; i < refs.length; i++ ) { = comp =3D refs[i].getReferencedComponent(); - String val =3D refs[i].getRuntimePath().append(refs[i].getArchiveName()= ).toString(); - objectToRuntimePath.put(comp, val); - oldComponentToRuntimePath.put((IVirtualComponent) comp, val); + IPath val =3D refs[i].getRuntimePath(); + if( refs[i].getDependencyType() !=3D IVirtualReference.DEPENDENCY_TYPE_= CONSUMES) + val =3D val.append(refs[i].getArchiveName()); + = + objectToRuntimePath.put(comp, val.toString()); + oldComponentToRuntimePath.put((IVirtualComponent) comp, val.toString()); } = ComponentResource[] allMappings =3D findAllMappings(); --===============3139110090187259626==-- From jbosstools-commits at lists.jboss.org Thu Sep 17 20:00:42 2009 Content-Type: multipart/mixed; boundary="===============3603578123243167498==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17645 - in trunk/as/plugins: org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/vcf and 2 other directories. Date: Thu, 17 Sep 2009 20:00:41 -0400 Message-ID: <200909180000.n8I00fQH020594@svn01.web.mwc.hst.phx2.redhat.com> --===============3603578123243167498== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: rob.stryker(a)jboss.com Date: 2009-09-17 20:00:41 -0400 (Thu, 17 Sep 2009) New Revision: 17645 Added: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/util/ResourceListVirtualFolder.java trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/vcf/ExportedClassFolderReferenceResolver.java trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/vcf/ExportedClasspathFoldersVirtualComponent.java trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/vcf/FilesetVirtualComponent.java trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclip= se/as/wtp/ui/propertypage/ExportedClasspathFoldersReferenceWizardFragment.j= ava Removed: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/util/LimitedContainerVirtualFolder.java Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/vcf/OutputFoldersVirtualComponent.java trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/plugin.xml Log: Pushing even more forward with extensions for ESB project structure Deleted: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/i= de/eclipse/as/wtp/core/util/LimitedContainerVirtualFolder.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/util/LimitedContainerVirtualFolder.java 2009-09-17 22:59:= 17 UTC (rev 17644) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/util/LimitedContainerVirtualFolder.java 2009-09-18 00:00:= 41 UTC (rev 17645) @@ -1,69 +0,0 @@ -package org.jboss.ide.eclipse.as.wtp.core.util; - -import java.util.ArrayList; -import java.util.HashSet; -import java.util.List; -import java.util.Set; - -import org.eclipse.core.resources.IContainer; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.wst.common.componentcore.ComponentCore; -import org.eclipse.wst.common.componentcore.internal.resources.VirtualFile; -import org.eclipse.wst.common.componentcore.internal.resources.VirtualFold= er; -import org.eclipse.wst.common.componentcore.resources.IVirtualResource; - -public class LimitedContainerVirtualFolder extends VirtualFolder { - - private IContainer[] containers; - public LimitedContainerVirtualFolder( - IProject aComponentProject, - IPath aRuntimePath, = - IContainer[] containers) { - super(aComponentProject, aRuntimePath); - this.containers =3D containers; - } - - public IContainer getUnderlyingFolder() { = - if( containers !=3D null && containers.length > 0 = - && containers[0] !=3D null ) - return containers[0]; - return null; - } - = - public IContainer[] getUnderlyingFolders() { - return containers =3D=3D null ? new IContainer[]{} : containers; - } - = - public IVirtualResource[] members(int memberFlags) throws CoreException { - List virtualResources =3D new ArrayList(); // result - Set allNames =3D new HashSet(); - = - for( int i =3D 0; i < containers.length; i++ ) { - IResource realResource =3D containers[i]; - if ((realResource !=3D null) && (realResource.getType() =3D=3D IResourc= e.FOLDER || realResource.getType() =3D=3D IResource.PROJECT)) { - IContainer realContainer =3D (IContainer) realResource; - IResource[] realChildResources =3D realContainer.members(memberFlags); - for (int realResourceIndex =3D 0; realResourceIndex < realChildResourc= es.length; realResourceIndex++) { - IResource child =3D realChildResources[realResourceIndex]; - String localName =3D child.getName(); - if (allNames.add(localName)) { - IPath newRuntimePath =3D getRuntimePath().append(localName); - if (child instanceof IFile) { - virtualResources.add(new VirtualFile(getProject(), newRuntimePath, = (IFile) child)); - } else { - virtualResources.add(ComponentCore.createFolder(getProject(), newRu= ntimePath)); - } - } - } - } - // An IResource.FILE would be an error condition (as this is a containe= r) - } - return virtualResources.toArray(new IVirtualResource[virtualResources.si= ze()]); - } - - = -} Copied: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/id= e/eclipse/as/wtp/core/util/ResourceListVirtualFolder.java (from rev 17524, = trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclips= e/as/wtp/core/util/LimitedContainerVirtualFolder.java) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/util/ResourceListVirtualFolder.java = (rev 0) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/util/ResourceListVirtualFolder.java 2009-09-18 00:00:41 U= TC (rev 17645) @@ -0,0 +1,96 @@ +package org.jboss.ide.eclipse.as.wtp.core.util; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +import org.eclipse.core.resources.IContainer; +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.IResource; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IPath; +import org.eclipse.wst.common.componentcore.internal.resources.VirtualFile; +import org.eclipse.wst.common.componentcore.internal.resources.VirtualFold= er; +import org.eclipse.wst.common.componentcore.resources.IVirtualResource; + +public class ResourceListVirtualFolder extends VirtualFolder { + + private ArrayList resources; + public ResourceListVirtualFolder( + IProject aComponentProject, + IPath aRuntimePath, = + IResource[] containers) { + super(aComponentProject, aRuntimePath); + this.resources =3D new ArrayList(); + this.resources.addAll(Arrays.asList(containers)); + } + + protected void addResource(IResource c) { + //this.resources.add(c); + } + = + public IResource getUnderlyingResource() { + // Since I'm a container, pretend I'm a container I guess + return getUnderlyingFolder(); + } + = + public IResource[] getUnderlyingResources() { + return getUnderlyingFolders(); + } + + public IContainer getUnderlyingFolder() { = + IResource[] r =3D (IResource[]) resources.toArray(new IResource[resource= s.size()]); + for( int i =3D 0; i < r.length; i++ ) + if( r[i] instanceof IContainer ) + return (IContainer)r[i]; + return null; + } + = + public IContainer[] getUnderlyingFolders() { + IResource[] r =3D (IResource[]) resources.toArray(new IResource[resource= s.size()]); + ArrayList c =3D new ArrayList(); + for( int i =3D 0; i < r.length; i++ ) + if( r[i] instanceof IContainer ) + c.add((IContainer)r[i]); + return (IContainer[]) c.toArray(new IContainer[c.size()]); + } + = + public IVirtualResource[] members(int memberFlags) throws CoreException { + List virtualResources =3D new ArrayList(); // result + Set allNames =3D new HashSet(); + IResource[] containers2 =3D (IResource[]) this.resources.toArray(new IRe= source[this.resources.size()]); + for( int i =3D 0; i < containers2.length; i++ ) { + IResource realResource =3D containers2[i]; + if ((realResource !=3D null) && (realResource.getType() =3D=3D IResourc= e.FOLDER || realResource.getType() =3D=3D IResource.PROJECT)) { + IContainer realContainer =3D (IContainer) realResource; + IResource[] realChildResources =3D realContainer.members(memberFlags); + for (int realResourceIndex =3D 0; realResourceIndex < realChildResourc= es.length; realResourceIndex++) { + IResource child =3D realChildResources[realResourceIndex]; + String localName =3D child.getName(); + if (allNames.add(localName)) { + IPath newRuntimePath =3D getRuntimePath().append(localName); + if (child instanceof IFile) { + virtualResources.add(new VirtualFile(getProject(), newRuntimePath, = (IFile) child)); + } else if( child instanceof IContainer ){ + IContainer childContainer =3D (IContainer)child; + IResource[] members =3D childContainer.members(); + ResourceListVirtualFolder childFolder =3D = + new ResourceListVirtualFolder(getProject(), newRuntimePath, member= s); + virtualResources.add(childFolder); + } + } + } + } else if(realResource !=3D null && realResource instanceof IFile) { + // An IResource.FILE would be an error condition (as this is a contain= er) + virtualResources.add(new VirtualFile(getProject(), = + getRuntimePath().append(((IFile)realResource).getName()), (IFile)rea= lResource)); = + } + } + return virtualResources.toArray(new IVirtualResource[virtualResources.si= ze()]); + } + + = +} Added: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide= /eclipse/as/wtp/core/vcf/ExportedClassFolderReferenceResolver.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/ExportedClassFolderReferenceResolver.java = (rev 0) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/ExportedClassFolderReferenceResolver.java 2009-09-18 = 00:00:41 UTC (rev 17645) @@ -0,0 +1,68 @@ +package org.jboss.ide.eclipse.as.wtp.core.vcf; + +import org.eclipse.core.internal.resources.Workspace; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.core.runtime.IPath; +import org.eclipse.emf.common.util.URI; +import org.eclipse.wst.common.componentcore.ComponentCore; +import org.eclipse.wst.common.componentcore.internal.ComponentcorePackage; +import org.eclipse.wst.common.componentcore.internal.DependencyType; +import org.eclipse.wst.common.componentcore.internal.ReferencedComponent; +import org.eclipse.wst.common.componentcore.internal.impl.PlatformURLModul= eConnection; +import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; +import org.eclipse.wst.common.componentcore.resources.IVirtualReference; + +public class ExportedClassFolderReferenceResolver implements IReferenceRes= olver { + public static final String OUTPUT_FOLDER_SEGMENT =3D "org.jboss.ide.eclip= se.as.wtp.core.vcf.exportedClassFolders"; + public static final String OUTPUT_FOLDER_PROTOCOL =3D PlatformURLModuleCo= nnection.MODULE_PROTOCOL + +IPath.SEPARATOR+ OUTPUT_FOLDER_SEGMENT + IPath.SEPARATOR; + public ExportedClassFolderReferenceResolver() { + } + + public boolean canResolve(IVirtualComponent context, + ReferencedComponent referencedComponent) { + URI handle =3D referencedComponent.getHandle(); + String s =3D handle.toString(); + if(s.startsWith(OUTPUT_FOLDER_PROTOCOL)) + return true; + return false; + } + + public boolean canResolve(IVirtualReference reference) { + if( reference.getReferencedComponent() instanceof ExportedClasspathFolde= rsVirtualComponent ) + return true; + return false; + } + + public IVirtualReference resolve(IVirtualComponent context, + ReferencedComponent referencedComponent) { + String project =3D referencedComponent.getHandle().segment(1); + IProject p =3D null; + if( !project.equals("")) = + p =3D ResourcesPlugin.getWorkspace().getRoot().getProject(project); + else + p =3D context.getProject(); + IVirtualComponent comp =3D new ExportedClasspathFoldersVirtualComponent(= p, context); + IVirtualReference ref =3D ComponentCore.createReference(context, comp); + ref.setArchiveName(referencedComponent.getArchiveName()); + ref.setRuntimePath(referencedComponent.getRuntimePath()); + ref.setDependencyType(referencedComponent.getDependencyType().getValue()= ); + return ref; + } + + public ReferencedComponent resolve(IVirtualReference reference) { + if( reference.getReferencedComponent() instanceof ExportedClasspathFolde= rsVirtualComponent ) { + ExportedClasspathFoldersVirtualComponent comp =3D (ExportedClasspathFol= dersVirtualComponent)reference.getReferencedComponent(); + IProject p =3D reference.getReferencedComponent().getProject(); + ReferencedComponent rc =3D ComponentcorePackage.eINSTANCE.getComponentc= oreFactory().createReferencedComponent(); + rc.setArchiveName(reference.getArchiveName()); + rc.setRuntimePath(reference.getRuntimePath()); + rc.setHandle(URI.createURI(comp.getId())); + rc.setDependencyType(DependencyType.CONSUMES_LITERAL); + return rc; + } + return null; + } + +} Added: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide= /eclipse/as/wtp/core/vcf/ExportedClasspathFoldersVirtualComponent.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/ExportedClasspathFoldersVirtualComponent.java = (rev 0) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/ExportedClasspathFoldersVirtualComponent.java 2009-09= -18 00:00:41 UTC (rev 17645) @@ -0,0 +1,59 @@ +package org.jboss.ide.eclipse.as.wtp.core.vcf; + +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.core.resources.IContainer; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.IResource; +import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.jdt.core.IClasspathAttribute; +import org.eclipse.jdt.core.IClasspathEntry; +import org.eclipse.jdt.core.IJavaProject; +import org.eclipse.jdt.core.JavaCore; +import org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil; +import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; + +public class ExportedClasspathFoldersVirtualComponent extends FilesetVirtu= alComponent { + public ExportedClasspathFoldersVirtualComponent(IProject p, IVirtualCompo= nent referencingComponent) { + super(p,referencingComponent); + } + + protected String getFirstIdSegment() { + return ExportedClassFolderReferenceResolver.OUTPUT_FOLDER_PROTOCOL; + } + + protected IResource[] getExposableResources() { + IJavaProject jp =3D JavaCore.create(project); + IClasspathEntry[] entries =3D findAllClassFolderEntries(jp); + ArrayList results =3D new ArrayList(); + for( int i =3D 0; i < entries.length; i++ ) { + IClasspathAttribute attribute =3D ClasspathDependencyUtil.checkForCompo= nentDependencyAttribute( + entries[i], + ClasspathDependencyUtil.DependencyAttributeType.CLASSPATH_COMPONENT_D= EPENDENCY); + = + if( attribute !=3D null ) { + final IResource resource =3D ResourcesPlugin.getWorkspace().getRoot().= findMember(entries[i].getPath()); + if (resource !=3D null && resource instanceof IContainer ) { + results.add(resource); + } + } + } + return (IResource[]) results.toArray(new IResource[results.size()]); + } + = + protected IClasspathEntry[] findAllClassFolderEntries(IJavaProject javaPr= oject) { + List list =3D new ArrayList(); + try { + IClasspathEntry[] entries =3D javaProject.getRawClasspath(); + for( int i =3D 0; i < entries.length; i++ ) { + if( ClasspathDependencyUtil.isClassFolderEntry(entries[i])) + list.add(entries[i]); + } + } catch( CoreException ce) { + } = + return list.toArray(new IClasspathEntry[list.size()]); + } + +} Added: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide= /eclipse/as/wtp/core/vcf/FilesetVirtualComponent.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/FilesetVirtualComponent.java = (rev 0) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/FilesetVirtualComponent.java 2009-09-18 00:00:41 UTC = (rev 17645) @@ -0,0 +1,120 @@ +package org.jboss.ide.eclipse.as.wtp.core.vcf; + +import java.util.Properties; + +import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.IResource; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.Path; +import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; +import org.eclipse.wst.common.componentcore.resources.IVirtualFolder; +import org.eclipse.wst.common.componentcore.resources.IVirtualReference; +import org.jboss.ide.eclipse.as.wtp.core.util.ResourceListVirtualFolder; + +public abstract class FilesetVirtualComponent implements IVirtualComponent= { + protected IProject project; + protected IVirtualComponent referencingComp; = + + public FilesetVirtualComponent(IProject p, IVirtualComponent referencingC= omponent) { + this.project =3D p; + this.referencingComp =3D referencingComponent; + } + + public void create(int updateFlags, IProgressMonitor aMonitor) + throws CoreException { + // Ignore + } + + public boolean exists() { + return true; + } + + public IVirtualComponent getComponent() { + return this; + } + + public String getName() { + return getId(); + } + + public String getDeployedName() { + return getName(); + } + + protected String getId() { + String firstSegment =3D getFirstIdSegment(); + if (project.equals(referencingComp.getProject())) + return firstSegment; = + = + return firstSegment + Path.SEPARATOR + project.getName(); + } + + protected abstract String getFirstIdSegment(); + = + public IProject getProject() { + return project; + } + + public IVirtualComponent[] getReferencingComponents() { + return referencingComp =3D=3D null ? new IVirtualComponent[] {} + : new IVirtualComponent[] { referencingComp }; + } + + public IVirtualFolder getRootFolder() { + IResource[] resources =3D getExposableResources(); + return new ResourceListVirtualFolder( + project, new Path("/"), resources); + } + + protected abstract IResource[] getExposableResources(); + = + public Properties getMetaProperties() { + return null; + } + + public IPath[] getMetaResources() { + return null; + } + + public IVirtualReference getReference(String aComponentName) { + // Ignore + return null; + } + + public IVirtualReference[] getReferences() { + // Ignore; no children + return new IVirtualReference[] {}; + } + + public boolean isBinary() { + return false; + } + + public void setMetaProperties(Properties properties) { + // Ignore + } + + public void setMetaProperty(String name, String value) { + // Ignore + } + + public void setMetaResources(IPath[] theMetaResourcePaths) { + // Ignore + } + + public void setReferences(IVirtualReference[] theReferences) { + // Ignore + } + + public Object getAdapter(Class adapter) { + // Ignore + return null; + } + + public void addReferences(IVirtualReference[] references) { + // Ignore + } + +} Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/= ide/eclipse/as/wtp/core/vcf/OutputFoldersVirtualComponent.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/OutputFoldersVirtualComponent.java 2009-09-17 22:59:1= 7 UTC (rev 17644) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/OutputFoldersVirtualComponent.java 2009-09-18 00:00:4= 1 UTC (rev 17645) @@ -2,74 +2,28 @@ = import java.util.ArrayList; import java.util.List; -import java.util.Properties; = import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IProject; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.Path; +import org.eclipse.core.resources.IResource; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jdt.core.IPackageFragmentRoot; import org.eclipse.jdt.core.JavaCore; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities; import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; -import org.eclipse.wst.common.componentcore.resources.IVirtualFolder; -import org.eclipse.wst.common.componentcore.resources.IVirtualReference; -import org.jboss.ide.eclipse.as.wtp.core.util.LimitedContainerVirtualFolde= r; = -public class OutputFoldersVirtualComponent implements IVirtualComponent { +public class OutputFoldersVirtualComponent extends FilesetVirtualComponent= { = - private IProject project; - private IVirtualComponent referencingComp; - = public OutputFoldersVirtualComponent(IProject p, IVirtualComponent refere= ncingComponent) { - this.project =3D p; - this.referencingComp =3D referencingComponent; + super(p, referencingComponent); } = - public void create(int updateFlags, IProgressMonitor aMonitor) - throws CoreException { - // Ignore + protected String getFirstIdSegment() { + return OutputFolderReferenceResolver.OUTPUT_FOLDER_PROTOCOL; } = - public boolean exists() { - return true; - } - - public IVirtualComponent getComponent() { - return this; - } - - public String getName() { - return getId(); - } - - public String getDeployedName() { - return getName(); - } - = - protected String getId() { - if( project.equals(referencingComp.getProject())) - return OutputFolderReferenceResolver.OUTPUT_FOLDER_PROTOCOL; - return OutputFolderReferenceResolver.OUTPUT_FOLDER_PROTOCOL + Path.SEPAR= ATOR + project.getName(); - } - - public IProject getProject() { - return project; - } - public IVirtualComponent[] getReferencingComponents() { - return referencingComp =3D=3D null ? new IVirtualComponent[]{} : new IVi= rtualComponent[]{referencingComp}; - } - - public IVirtualFolder getRootFolder() { - IContainer[] containers =3D getOutputContainers(project); - return new LimitedContainerVirtualFolder(project, new Path("/"), contain= ers); - } - = - private static IContainer[] getOutputContainers(IProject project) { + protected IResource[] getExposableResources() { List result =3D new ArrayList(); try { if (!project.hasNature(JavaCore.NATURE_ID)) @@ -102,55 +56,4 @@ } return list.toArray(new IPackageFragmentRoot[list.size()]); } - = - = - public Properties getMetaProperties() { - // TODO Auto-generated method stub - return null; - } - - public IPath[] getMetaResources() { - // TODO Auto-generated method stub - return null; - } - - public IVirtualReference getReference(String aComponentName) { - // Ignore - return null; - } - - public IVirtualReference[] getReferences() { - // Ignore; no children - return new IVirtualReference[]{}; - } - - public boolean isBinary() { - return false; - } - - public void setMetaProperties(Properties properties) { - // Ignore - } - - public void setMetaProperty(String name, String value) { - // Ignore - } - - public void setMetaResources(IPath[] theMetaResourcePaths) { - // Ignore - } - - public void setReferences(IVirtualReference[] theReferences) { - // Ignore - } - - public Object getAdapter(Class adapter) { - // Ignore - return null; - } - - public void addReferences(IVirtualReference[] references) { - // Ignore - } - } Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/plugin.xml 2009-09-17 = 22:59:17 UTC (rev 17644) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/plugin.xml 2009-09-18 = 00:00:41 UTC (rev 17645) @@ -58,8 +58,14 @@ + +
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/e= clipse/as/wtp/ui/propertypage/ExportedClasspathFoldersReferenceWizardFragme= nt.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/ExportedClasspathFoldersReferenceWizardFragment.= java (rev 0) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/ExportedClasspathFoldersReferenceWizardFragment.= java 2009-09-18 00:00:41 UTC (rev 17645) @@ -0,0 +1,212 @@ +package org.jboss.ide.eclipse.as.wtp.ui.propertypage; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.NullProgressMonitor; +import org.eclipse.core.runtime.Path; +import org.eclipse.jdt.core.IClasspathAttribute; +import org.eclipse.jdt.core.IClasspathEntry; +import org.eclipse.jdt.core.IJavaProject; +import org.eclipse.jdt.core.JavaCore; +import org.eclipse.jface.viewers.ISelectionChangedListener; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.viewers.ITreeContentProvider; +import org.eclipse.jface.viewers.LabelProvider; +import org.eclipse.jface.viewers.SelectionChangedEvent; +import org.eclipse.jface.viewers.StructuredSelection; +import org.eclipse.jface.viewers.TreeViewer; +import org.eclipse.jface.viewers.Viewer; +import org.eclipse.jst.j2ee.classpathdep.ClasspathDependencyUtil; +import org.eclipse.jst.j2ee.internal.classpathdep.UpdateClasspathAttribute= sDataModelProvider; +import org.eclipse.swt.SWT; +import org.eclipse.swt.graphics.Image; +import org.eclipse.swt.layout.FormAttachment; +import org.eclipse.swt.layout.FormData; +import org.eclipse.swt.layout.FormLayout; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.ui.PlatformUI; +import org.eclipse.ui.internal.SharedImages; +import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; +import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory; +import org.eclipse.wst.common.frameworks.datamodel.IDataModel; +import org.eclipse.wst.server.ui.wizard.IWizardHandle; +import org.eclipse.wst.server.ui.wizard.WizardFragment; +import org.jboss.ide.eclipse.as.wtp.core.vcf.ExportedClasspathFoldersVirtu= alComponent; + +public class ExportedClasspathFoldersReferenceWizardFragment extends + WizardFragment { + + protected TreeViewer viewer; + protected IPath[] paths; + protected IWizardHandle handle; + protected IStructuredSelection selected =3D null; + protected IStructuredSelection initialSelection =3D null; + protected Object[] allElements; + public ExportedClasspathFoldersReferenceWizardFragment() { + super(); + } + + public boolean hasComposite() { + return true; + } + = + public Composite createComposite(Composite parent, IWizardHandle handle) { + this.handle =3D handle; + int x =3D 1; + handle.setTitle("Add exported folders from the build pathx"); + handle.setDescription("This reference will allow you to add references t= o exported classpaths from this project's build page. Please select all ent= ries you wish to be published."); + IVirtualComponent parentComp =3D (IVirtualComponent)getTaskModel().getOb= ject(NewReferenceWizard.ROOT_COMPONENT); + IProject project =3D parentComp.getProject(); + IJavaProject javaProject =3D JavaCore.create(project); + allElements =3D findAllClassFolderEntries(javaProject); + + Composite c =3D new Composite(parent, SWT.NONE); + c.setLayout(new FormLayout()); + viewer =3D new TreeViewer(c, SWT.MULTI | SWT.BORDER); + viewer.setContentProvider(getContentProvider()); + viewer.setLabelProvider(getLabelProvider()); + viewer.setInput(ResourcesPlugin.getWorkspace()); + + FormData fd =3D new FormData(); + fd.left =3D new FormAttachment(0, 5); + fd.top =3D new FormAttachment(0, 5); + fd.right =3D new FormAttachment(100, -5); + fd.bottom =3D new FormAttachment(100, -5); + viewer.getTree().setLayoutData(fd); + viewer.addSelectionChangedListener(new ISelectionChangedListener() { + public void selectionChanged(SelectionChangedEvent event) { + selected =3D (IStructuredSelection)viewer.getSelection(); + } + }); + = + ArrayList withTag =3D new ArrayList(); + for( int i =3D 0; i < allElements.length; i++ ) { + IClasspathAttribute attribute =3D ClasspathDependencyUtil.checkForCompo= nentDependencyAttribute( + ((IClasspathEntry)allElements[i]), + ClasspathDependencyUtil.DependencyAttributeType.CLASSPATH_COMPONENT_D= EPENDENCY); + = + if( attribute !=3D null ) + withTag.add((IClasspathEntry)allElements[i]); + } + = + StructuredSelection newSel =3D new StructuredSelection(withTag); + viewer.setSelection(newSel); + initialSelection =3D newSel; + return c; + } + = + protected IClasspathEntry[] findAllClassFolderEntries(IJavaProject javaPr= oject) { + List list =3D new ArrayList(); + try { + IClasspathEntry[] entries =3D javaProject.getRawClasspath(); + for( int i =3D 0; i < entries.length; i++ ) { + if( ClasspathDependencyUtil.isClassFolderEntry(entries[i])) + list.add(entries[i]); + } + } catch( CoreException ce) { + } = + return list.toArray(new IClasspathEntry[list.size()]); + } + = + private ITreeContentProvider getContentProvider() { + return new ITreeContentProvider() { + public Object[] getElements(Object inputElement) { + IVirtualComponent parentComp =3D (IVirtualComponent)getTaskModel().get= Object(NewReferenceWizard.ROOT_COMPONENT); + IProject project =3D parentComp.getProject(); + IJavaProject jp =3D JavaCore.create(project); + if( jp !=3D null ) { + return findAllClassFolderEntries(jp); + } + return new Object[]{}; + } + public void inputChanged(Viewer viewer, Object oldInput, Object newInpu= t) { + } + public void dispose() { + } + public boolean hasChildren(Object element) { + return false; + } + public Object getParent(Object element) { + return null; + } + public Object[] getChildren(Object parentElement) { + return null; + } + }; + } + = + private LabelProvider getLabelProvider() { + return new LabelProvider() { + public Image getImage(Object element) { + return PlatformUI.getWorkbench().getSharedImages().getImage(SharedImag= es.IMG_OBJ_PROJECT); + } + public String getText(Object element) { + return element instanceof IProject ? ((IProject)element).getName() : e= lement.toString(); + } + }; + } + + public void performFinish(IProgressMonitor monitor) throws CoreException { + IVirtualComponent parentComp =3D (IVirtualComponent)getTaskModel().getOb= ject(NewReferenceWizard.ROOT_COMPONENT); + try { + Map toAdd =3D new HashMap(); + Map toRemove =3D new HashMap(); + + List pre =3D Arrays.asList(initialSelection.toArray()); + List post =3D Arrays.asList(selected.toArray()); + for( int i =3D 0; i < allElements.length; i++ ) { + if( pre.contains(allElements[i]) && !post.contains(allElements[i])) { + toRemove.put((IClasspathEntry)allElements[i], getOriginalPath((IClass= pathEntry)allElements[i])); + } = + else if( !pre.contains(allElements[i]) && post.contains(allElements[i]= )) { + toAdd.put((IClasspathEntry)allElements[i], getNewPath((IClasspathEntr= y)allElements[i])); = + } + } + = + UpdateClasspathAttributesDataModelProvider provider =3D new UpdateClass= pathAttributesDataModelProvider(); + IDataModel model =3D DataModelFactory.createDataModel(provider); + model.setProperty(UpdateClasspathAttributesDataModelProvider.PROJECT_NA= ME, parentComp.getProject().getName()); + model.setProperty(UpdateClasspathAttributesDataModelProvider.ENTRIES_TO= _ADD_ATTRIBUTE, toAdd); + model.getDefaultOperation().execute(new NullProgressMonitor(), null); + + provider =3D new UpdateClasspathAttributesDataModelProvider(); + model =3D DataModelFactory.createDataModel(provider); + model.setProperty(UpdateClasspathAttributesDataModelProvider.PROJECT_NA= ME, parentComp.getProject().getName()); + model.setProperty(UpdateClasspathAttributesDataModelProvider.ENTRIES_TO= _REMOVE_ATTRIBUTE, toRemove); + model.getDefaultOperation().execute(new NullProgressMonitor(), null); + + } catch( ExecutionException ee) { + = + } + = + ExportedClasspathFoldersVirtualComponent vc =3D new ExportedClasspathFol= dersVirtualComponent(parentComp.getProject(), parentComp); + getTaskModel().putObject(NewReferenceWizard.COMPONENT, vc); + getTaskModel().putObject(NewReferenceWizard.COMPONENT_PATH, "/"); + } + = + protected IPath getOriginalPath(IClasspathEntry entry) { + final IClasspathAttribute[] attributes =3D entry.getExtraAttributes(); + for (int i =3D 0; i < attributes.length; i++) { + final IClasspathAttribute attribute =3D attributes[i]; + final String name =3D attribute.getName(); + if (name.equals(ClasspathDependencyUtil.CLASSPATH_COMPONENT_DEPENDEN= CY)) { + return new Path(attribute.getValue()); + } + } + return new Path("/"); + } + = + protected IPath getNewPath(IClasspathEntry cpe) { + return new Path("/"); + } +} --===============3603578123243167498==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 03:57:39 2009 Content-Type: multipart/mixed; boundary="===============5324597702030121216==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17646 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist. Date: Fri, 18 Sep 2009 03:57:39 -0400 Message-ID: <200909180757.n8I7vdkN015789@svn01.web.mwc.hst.phx2.redhat.com> --===============5324597702030121216== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-18 03:57:39 -0400 (Fri, 18 Sep 2009) New Revision: 17646 Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/co= ntentassist/AbstractXMLContentAssistProcessor.java Log: JBIDE-4911: NPE occurres while invoking the CA in an empty editor Issue is fixed Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/contentassist/AbstractXMLContentAssistProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/AbstractXMLContentAssistProcessor.java 2009-09-18 00:00:41 UTC= (rev 17645) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/AbstractXMLContentAssistProcessor.java 2009-09-18 07:57:39 UTC= (rev 17646) @@ -379,6 +379,7 @@ */ @Override protected String getMatchString(IStructuredDocumentRegion parent, ITextRe= gion aRegion, int offset) { + if (aRegion =3D=3D null) return ""; String matchString =3D super.getMatchString(parent, aRegion, offset); String regionType =3D aRegion.getType(); if(regionType =3D=3D DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE && matchSt= ring.startsWith("\"")) { //$NON-NLS-1$ --===============5324597702030121216==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 04:09:32 2009 Content-Type: multipart/mixed; boundary="===============5088134527112951730==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17647 - in trunk/common/plugins/org.jboss.tools.common.model: resources/meta and 1 other directories. Date: Fri, 18 Sep 2009 04:09:32 -0400 Message-ID: <200909180809.n8I89WPl018112@svn01.web.mwc.hst.phx2.redhat.com> --===============5088134527112951730== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-18 04:09:32 -0400 (Fri, 18 Sep 2009) New Revision: 17647 Removed: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/java/jsp/model/ Modified: trunk/common/plugins/org.jboss.tools.common.model/plugin.xml trunk/common/plugins/org.jboss.tools.common.model/resources/meta/files.m= eta Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Deprecated implementation FileJSPImpl removed. Modified: trunk/common/plugins/org.jboss.tools.common.model/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/plugin.xml 2009-09-18= 07:57:39 UTC (rev 17646) +++ trunk/common/plugins/org.jboss.tools.common.model/plugin.xml 2009-09-18= 08:09:32 UTC (rev 17647) @@ -82,8 +82,6 @@ - --===============5088134527112951730==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 05:15:20 2009 Content-Type: multipart/mixed; boundary="===============6827422951027156912==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17648 - in trunk/common/plugins/org.jboss.tools.common.model: resources/help and 2 other directories. Date: Fri, 18 Sep 2009 05:15:20 -0400 Message-ID: <200909180915.n8I9FKJJ031318@svn01.web.mwc.hst.phx2.redhat.com> --===============6827422951027156912== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-18 05:15:20 -0400 (Fri, 18 Sep 2009) New Revision: 17648 Modified: trunk/common/plugins/org.jboss.tools.common.model/META-INF/MANIFEST.MF trunk/common/plugins/org.jboss.tools.common.model/resources/help/keys-mo= del.properties trunk/common/plugins/org.jboss.tools.common.model/resources/help/keys-mo= del_ja.properties trunk/common/plugins/org.jboss.tools.common.model/resources/meta/base.me= ta trunk/common/plugins/org.jboss.tools.common.model/resources/meta/files.m= eta trunk/common/plugins/org.jboss.tools.common.model/resources/meta/filesys= tems.meta trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/loaders/impl/MappedEntityRecognizer.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Definitions of model objects for jsp, html, xhtml moved to jst.web. Modified: trunk/common/plugins/org.jboss.tools.common.model/META-INF/MANIFE= ST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/META-INF/MANIFEST.MF = 2009-09-18 08:09:32 UTC (rev 17647) +++ trunk/common/plugins/org.jboss.tools.common.model/META-INF/MANIFEST.MF = 2009-09-18 09:15:20 UTC (rev 17648) @@ -11,7 +11,6 @@ Export-Package: org.jboss.tools.common.ant.model, org.jboss.tools.common.ant.model.handlers, org.jboss.tools.common.ant.parser, - org.jboss.tools.common.java.jsp.model, org.jboss.tools.common.java.model.handler, org.jboss.tools.common.meta, org.jboss.tools.common.meta.action, Modified: trunk/common/plugins/org.jboss.tools.common.model/resources/help/= keys-model.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/resources/help/keys-m= odel.properties 2009-09-18 08:09:32 UTC (rev 17647) +++ trunk/common/plugins/org.jboss.tools.common.model/resources/help/keys-m= odel.properties 2009-09-18 09:15:20 UTC (rev 17648) @@ -191,111 +191,6 @@ FileSystemFolder_CreateFile.WindowTitle=3DNew File FileSystemFolder_CreateFile.Title=3DFile = -##### File JSP ##### - -# START NON-TRANSLATABLE -FileJSP=3D/model/FileJSP.html -# END NON-TRANSLATABLE -# START NON-TRANSLATABLE -FileJSP_Properties=3D/model/FileJSP.html -# END NON-TRANSLATABLE -FileJSP_Properties.Title=3DFile JSP -# START NON-TRANSLATABLE -FileJSP_Rename=3D/model/FileJSP.html -# END NON-TRANSLATABLE - -##### Create File JSP ##### - -# START NON-TRANSLATABLE -FileFolder_CreateFileJSP=3D/model/CreateFile.html -# END NON-TRANSLATABLE -FileFolder_CreateFileJSP.WindowTitle=3DNew File JSP -FileFolder_CreateFileJSP.Title=3DFile JSP -FileFolder_CreateFileJSP_1.Title=3DSelect Tag Libraries - -# START NON-TRANSLATABLE -FileSystemFolder_CreateFileJSP=3D/model/CreateFile.html -# END NON-TRANSLATABLE -FileSystemFolder_CreateFileJSP.WindowTitle=3DNew File JSP -FileSystemFolder_CreateFileJSP.Title=3DFile JSP -FileSystemFolder_CreateFileJSP_1.Title=3DSelect Tag Libraries - -##### File XHTML ##### - -# START NON-TRANSLATABLE -FileXHTML_Properties=3D/model/FileProperty.html -# END NON-TRANSLATABLE -FileXHTML_Properties.Title=3DFile XHTML -# START NON-TRANSLATABLE -FileXHTML_Rename=3D/model/FileXHTML.html -# END NON-TRANSLATABLE - -##### Create File JSP ##### - -# START NON-TRANSLATABLE -FileFolder_CreateFileXHTML=3D/model/CreateFile.html -# END NON-TRANSLATABLE -FileFolder_CreateFileXHTML.WindowTitle=3DNew File XHTML -FileFolder_CreateFileXHTML.Title=3DFile XHTML -FileFolder_CreateFileXHTML_1.Title=3DSelect Tag Libraries - -# START NON-TRANSLATABLE -FileSystemFolder_CreateFileXHTML=3D/model/CreateFile.html -# END NON-TRANSLATABLE -FileSystemFolder_CreateFileXHTML.WindowTitle=3DNew File XHTML -FileSystemFolder_CreateFileXHTML.Title=3DFile XHTML -FileSystemFolder_CreateFileXHTML_1.Title=3DSelect Tag Libraries - -##### File HTML ##### -# START NON-TRANSLATABLE -FileHTML=3D/model/FileHTML.html -# END NON-TRANSLATABLE - -# START NON-TRANSLATABLE -FileHTML_Properties=3D/model/FileProperty.html -# END NON-TRANSLATABLE -FileHTML_Properties.Title=3DFile HTML -# START NON-TRANSLATABLE -FileHTML_Rename=3D/model/FileHTML.html -# END NON-TRANSLATABLE - -##### Create File HTML ##### - -# START NON-TRANSLATABLE -FileFolder_CreateFileHTML=3D/model/CreateFile.html -# END NON-TRANSLATABLE -FileFolder_CreateFileHTML.WindowTitle=3DNew File HTML -FileFolder_CreateFileHTML.Title=3DFile HTML - -# START NON-TRANSLATABLE -FileSystemFolder_CreateFileHTML=3D/model/CreateFile.html -# END NON-TRANSLATABLE -FileSystemFolder_CreateFileHTML.WindowTitle=3DNew File HTML -FileSystemFolder_CreateFileHTML.Title=3DFile HTML - -##### File XSL ##### - -# START NON-TRANSLATABLE -FileXSL=3D/model/FileXSL.html -# END NON-TRANSLATABLE - -# START NON-TRANSLATABLE -FileXSL_Properties=3D/model/FileProperty.html -# END NON-TRANSLATABLE -FileXSL_Properties.Title=3DFile XSL - -##### Create File XSL ##### - -# START NON-TRANSLATABLE -FileFolder_CreateFileXSL=3D/model/CreateFile.html -# END NON-TRANSLATABLE -FileFolder_CreateFileXSL.WindowTitle=3DNew File XSL - -# START NON-TRANSLATABLE -FileSystemFolder_CreateFileXSL=3D/model/CreateFile.html -# END NON-TRANSLATABLE -FileSystemFolder_CreateFileXSL.WindowTitle=3DNew File XSL - ##### Create File Properties ##### = # START NON-TRANSLATABLE @@ -637,18 +532,6 @@ TrialLimitation=3D/limitedversion.html # END NON-TRANSLATABLE = -# START NON-TRANSLATABLE -JSPLinkRecognizer_CreateLink=3D/model/OptionsEditor.html -# END NON-TRANSLATABLE -JSPLinkRecognizer_CreateLink.WindowTitle=3DAdd Link Recognizer Rule -JSPLinkRecognizer_CreateLink.Title=3DLink Recognizer Rule - -# START NON-TRANSLATABLE -JSPLink_Edit=3D/model/OptionsEditor.html -# END NON-TRANSLATABLE -JSPLink_Edit.WindowTitle=3DEdit -JSPLink_Edit.Title=3DLink Recognizer Rule - #Wizard-Common.begin = org.jboss.tools.jst.web.ui.wizards.project.ImportWebWarWizard.mainPageProm= pt=3DSelect *.war file Modified: trunk/common/plugins/org.jboss.tools.common.model/resources/help/= keys-model_ja.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/resources/help/keys-m= odel_ja.properties 2009-09-18 08:09:32 UTC (rev 17647) +++ trunk/common/plugins/org.jboss.tools.common.model/resources/help/keys-m= odel_ja.properties 2009-09-18 09:15:20 UTC (rev 17648) @@ -34,28 +34,6 @@ FileFolder_CreateFile.Title=3D\u30D5\u30A1\u30A4\u30EB FileSystemFolder_CreateFile.WindowTitle=3D\u65B0\u898F\u30D5\u30A1\u30A4\u= 30EB FileSystemFolder_CreateFile.Title=3D\u30D5\u30A1\u30A4\u30EB -FileJSP_Properties.Title=3DJSP \u30D5\u30A1\u30A4\u30EB -FileFolder_CreateFileJSP.WindowTitle=3D\u65B0\u898F JSP \u30D5\u30A1\u30A4= \u30EB -FileFolder_CreateFileJSP.Title=3DJSP \u30D5\u30A1\u30A4\u30EB -FileFolder_CreateFileJSP_1.Title=3D\u30BF\u30B0\u30FB\u30E9\u30A4\u30D6\u3= 0E9\u30EA\u30FC\u306E\u9078\u629E -FileSystemFolder_CreateFileJSP.WindowTitle=3D\u65B0\u898F JSP \u30D5\u30A1= \u30A4\u30EB -FileSystemFolder_CreateFileJSP.Title=3DJSP \u30D5\u30A1\u30A4\u30EB -FileSystemFolder_CreateFileJSP_1.Title=3D\u30BF\u30B0\u30FB\u30E9\u30A4\u3= 0D6\u30E9\u30EA\u30FC\u306E\u9078\u629E -FileXHTML_Properties.Title=3DXHTML \u30D5\u30A1\u30A4\u30EB -FileFolder_CreateFileXHTML.WindowTitle=3D\u65B0\u898F XHTML \u30D5\u30A1\u= 30A4\u30EB -FileFolder_CreateFileXHTML.Title=3DXHTML \u30D5\u30A1\u30A4\u30EB -FileFolder_CreateFileXHTML_1.Title=3D\u30BF\u30B0\u30FB\u30E9\u30A4\u30D6\= u30E9\u30EA\u30FC\u306E\u9078\u629E -FileSystemFolder_CreateFileXHTML.WindowTitle=3D\u65B0\u898F XHTML \u30D5\u= 30A1\u30A4\u30EB -FileSystemFolder_CreateFileXHTML.Title=3DXHTML \u30D5\u30A1\u30A4\u30EB -FileSystemFolder_CreateFileXHTML_1.Title=3D\u30BF\u30B0\u30FB\u30E9\u30A4\= u30D6\u30E9\u30EA\u30FC\u306E\u9078\u629E -FileHTML_Properties.Title=3DHTML \u30D5\u30A1\u30A4\u30EB -FileFolder_CreateFileHTML.WindowTitle=3D\u65B0\u898F HTML \u30D5\u30A1\u30= A4\u30EB -FileFolder_CreateFileHTML.Title=3DHTML \u30D5\u30A1\u30A4\u30EB -FileSystemFolder_CreateFileHTML.WindowTitle=3D\u65B0\u898F HTML \u30D5\u30= A1\u30A4\u30EB -FileSystemFolder_CreateFileHTML.Title=3DHTML \u30D5\u30A1\u30A4\u30EB -FileXSL_Properties.Title=3DXSL \u30D5\u30A1\u30A4\u30EB -FileFolder_CreateFileXSL.WindowTitle=3D\u65B0\u898F XSL \u30D5\u30A1\u30A4= \u30EB -FileSystemFolder_CreateFileXSL.WindowTitle=3D\u65B0\u898F XSL \u30D5\u30A1= \u30A4\u30EB FileFolder_CreateFileProperties.WindowTitle=3D\u65B0\u898F\u30D7\u30ED\u30= D1\u30C6\u30A3\u30FC\u30FB\u30D5\u30A1\u30A4\u30EB FileFolder_CreateFileProperties.Title=3D\u30D7\u30ED\u30D1\u30C6\u30A3\u30= FC\u30FB\u30D5\u30A1\u30A4\u30EB FileSystemFolder_CreateFileProperties.WindowTitle=3D\u65B0\u898F\u30D7\u30= ED\u30D1\u30C6\u30A3\u30FC\u30FB\u30D5\u30A1\u30A4\u30EB @@ -124,10 +102,6 @@ SharableReportProblem.eMail=3DE-Mail SharableReportProblem.attachRedHatLog=3D\u5831\u544A\u306B\u30B9\u30BF\u30= C3\u30AF\u30FB\u30C8\u30EC\u30FC\u30B9\u3092\u542B\u3081\u308B SharableReportProblem.attachEclipseLog=3D\u5831\u544A\u306B Eclipse .log \= u3092\u542B\u3081\u308B -JSPLinkRecognizer_CreateLink.WindowTitle=3D\u30EA\u30F3\u30AF\u8A8D\u8B58\= u30EB\u30FC\u30EB\u306E\u8FFD\u52A0 -JSPLinkRecognizer_CreateLink.Title=3D\u30EA\u30F3\u30AF\u8A8D\u8B58\u30EB\= u30FC\u30EB -JSPLink_Edit.WindowTitle=3D\u7DE8\u96C6 -JSPLink_Edit.Title=3D\u30EA\u30F3\u30AF\u8A8D\u8B58\u30EB\u30FC\u30EB org.jboss.tools.jst.web.ui.wizards.project.ImportWebWarWizard.mainPageProm= pt=3D*.war \u30D5\u30A1\u30A4\u30EB\u3092\u9078\u629E\u3057\u3066\u304F\u30= 60\u3055\u3044 WebPrjAdoptStepName_web.xml_location=3Dweb.xml \u30ED\u30B1\u30FC\u30B7\u3= 0E7\u30F3 WebPrjAdoptStepName_name=3D\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u540D Modified: trunk/common/plugins/org.jboss.tools.common.model/resources/meta/= base.meta =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/resources/meta/base.m= eta 2009-09-18 08:09:32 UTC (rev 17647) +++ trunk/common/plugins/org.jboss.tools.common.model/resources/meta/base.m= eta 2009-09-18 09:15:20 UTC (rev 17648) @@ -91,20 +91,12 @@ - - - - - - - - - + @@ -139,16 +131,12 @@ - - - - @@ -205,21 +193,15 @@ - - - - - - Modified: trunk/common/plugins/org.jboss.tools.common.model/resources/meta/= files.meta =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/resources/meta/files.= meta 2009-09-18 08:09:32 UTC (rev 17647) +++ trunk/common/plugins/org.jboss.tools.common.model/resources/meta/files.= meta 2009-09-18 09:15:20 UTC (rev 17648) @@ -90,187 +90,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -445,161 +264,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -628,18 +292,6 @@ - - - - - - - - - - - - @@ -714,12 +366,8 @@ - - - - - - - - @@ -761,12 +405,8 @@ - - - - @@ -779,12 +419,8 @@ - - - - Modified: trunk/common/plugins/org.jboss.tools.common.model/resources/meta/= filesystems.meta =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/resources/meta/filesy= stems.meta 2009-09-18 08:09:32 UTC (rev 17647) +++ trunk/common/plugins/org.jboss.tools.common.model/resources/meta/filesy= stems.meta 2009-09-18 09:15:20 UTC (rev 17648) @@ -13,14 +13,9 @@ - - - - - Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/t= ools/common/model/loaders/impl/MappedEntityRecognizer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/loaders/impl/MappedEntityRecognizer.java 2009-09-18 08:09:32 UT= C (rev 17647) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/loaders/impl/MappedEntityRecognizer.java 2009-09-18 09:15:20 UT= C (rev 17648) @@ -11,18 +11,25 @@ package org.jboss.tools.common.model.loaders.impl; = import java.util.*; + +import org.jboss.tools.common.meta.XMapping; +import org.jboss.tools.common.meta.impl.XModelMetaDataImpl; import org.jboss.tools.common.model.loaders.*; = public class MappedEntityRecognizer implements EntityRecognizer { + static String MAPPED_ENTITIES =3D "MappedEntities"; //$NON-NLS-1$ private Map map =3D new HashMap(); = public MappedEntityRecognizer() { - map.put("bpf", "FileProcess"); //$NON-NLS-1$ //$NON-NLS-2$ - map.put("htm", "FileHTML"); //$NON-NLS-1$ //$NON-NLS-2$ - map.put("flow", "FileFlow"); //$NON-NLS-1$ //$NON-NLS-2$ - map.put("jspx", "FileJSP"); //$NON-NLS-1$ //$NON-NLS-2$ - map.put("jspf", "FileJSP"); //$NON-NLS-1$ //$NON-NLS-2$ - map.put("jsf", "FileHTML"); //$NON-NLS-1$ //$NON-NLS-2$ + XMapping m =3D XModelMetaDataImpl.getInstance().getMapping(MAPPED_ENTITI= ES); + if(m !=3D null) { + String[] ks =3D m.getKeys(); + for (int i =3D 0; i < ks.length; i++) { + String extension =3D ks[i]; + String entity =3D m.getValue(extension); + map.put(extension, entity); + } + } } = // NB i18n: there is code that depends on these entity names (in English) --===============6827422951027156912==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 05:18:49 2009 Content-Type: multipart/mixed; boundary="===============5052208901559764068==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17649 - in trunk/jst/plugins/org.jboss.tools.jst.web: resources/help and 1 other directories. Date: Fri, 18 Sep 2009 05:18:49 -0400 Message-ID: <200909180918.n8I9InSL031876@svn01.web.mwc.hst.phx2.redhat.com> --===============5052208901559764068== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-18 05:18:49 -0400 (Fri, 18 Sep 2009) New Revision: 17649 Added: trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/page-files.meta Modified: trunk/jst/plugins/org.jboss.tools.jst.web/plugin.xml trunk/jst/plugins/org.jboss.tools.jst.web/resources/help/keys-web.proper= ties trunk/jst/plugins/org.jboss.tools.jst.web/resources/help/keys-web_ja.pro= perties Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Definitions of model objects for jsp, html, xhtml moved to jst.web. Modified: trunk/jst/plugins/org.jboss.tools.jst.web/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/plugin.xml 2009-09-18 09:15:2= 0 UTC (rev 17648) +++ trunk/jst/plugins/org.jboss.tools.jst.web/plugin.xml 2009-09-18 09:18:4= 9 UTC (rev 17649) @@ -19,6 +19,8 @@ + + Modified: trunk/jst/plugins/org.jboss.tools.jst.web/resources/help/keys-web= .properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/resources/help/keys-web.prope= rties 2009-09-18 09:15:20 UTC (rev 17648) +++ trunk/jst/plugins/org.jboss.tools.jst.web/resources/help/keys-web.prope= rties 2009-09-18 09:18:49 UTC (rev 17649) @@ -1,6 +1,111 @@ WebPrjAdoptStepName.web.xml_location=3Dweb.xml Location ##### Some Files ##### = +##### File JSP ##### + +# START NON-TRANSLATABLE +FileJSP=3D/model/FileJSP.html +# END NON-TRANSLATABLE +# START NON-TRANSLATABLE +FileJSP_Properties=3D/model/FileJSP.html +# END NON-TRANSLATABLE +FileJSP_Properties.Title=3DFile JSP +# START NON-TRANSLATABLE +FileJSP_Rename=3D/model/FileJSP.html +# END NON-TRANSLATABLE + +##### Create File JSP ##### + +# START NON-TRANSLATABLE +FileFolder_CreateFileJSP=3D/model/CreateFile.html +# END NON-TRANSLATABLE +FileFolder_CreateFileJSP.WindowTitle=3DNew File JSP +FileFolder_CreateFileJSP.Title=3DFile JSP +FileFolder_CreateFileJSP_1.Title=3DSelect Tag Libraries + +# START NON-TRANSLATABLE +FileSystemFolder_CreateFileJSP=3D/model/CreateFile.html +# END NON-TRANSLATABLE +FileSystemFolder_CreateFileJSP.WindowTitle=3DNew File JSP +FileSystemFolder_CreateFileJSP.Title=3DFile JSP +FileSystemFolder_CreateFileJSP_1.Title=3DSelect Tag Libraries + +##### File XHTML ##### + +# START NON-TRANSLATABLE +FileXHTML_Properties=3D/model/FileProperty.html +# END NON-TRANSLATABLE +FileXHTML_Properties.Title=3DFile XHTML +# START NON-TRANSLATABLE +FileXHTML_Rename=3D/model/FileXHTML.html +# END NON-TRANSLATABLE + +##### Create File JSP ##### + +# START NON-TRANSLATABLE +FileFolder_CreateFileXHTML=3D/model/CreateFile.html +# END NON-TRANSLATABLE +FileFolder_CreateFileXHTML.WindowTitle=3DNew File XHTML +FileFolder_CreateFileXHTML.Title=3DFile XHTML +FileFolder_CreateFileXHTML_1.Title=3DSelect Tag Libraries + +# START NON-TRANSLATABLE +FileSystemFolder_CreateFileXHTML=3D/model/CreateFile.html +# END NON-TRANSLATABLE +FileSystemFolder_CreateFileXHTML.WindowTitle=3DNew File XHTML +FileSystemFolder_CreateFileXHTML.Title=3DFile XHTML +FileSystemFolder_CreateFileXHTML_1.Title=3DSelect Tag Libraries + +##### File HTML ##### +# START NON-TRANSLATABLE +FileHTML=3D/model/FileHTML.html +# END NON-TRANSLATABLE + +# START NON-TRANSLATABLE +FileHTML_Properties=3D/model/FileProperty.html +# END NON-TRANSLATABLE +FileHTML_Properties.Title=3DFile HTML +# START NON-TRANSLATABLE +FileHTML_Rename=3D/model/FileHTML.html +# END NON-TRANSLATABLE + +##### Create File HTML ##### + +# START NON-TRANSLATABLE +FileFolder_CreateFileHTML=3D/model/CreateFile.html +# END NON-TRANSLATABLE +FileFolder_CreateFileHTML.WindowTitle=3DNew File HTML +FileFolder_CreateFileHTML.Title=3DFile HTML + +# START NON-TRANSLATABLE +FileSystemFolder_CreateFileHTML=3D/model/CreateFile.html +# END NON-TRANSLATABLE +FileSystemFolder_CreateFileHTML.WindowTitle=3DNew File HTML +FileSystemFolder_CreateFileHTML.Title=3DFile HTML + +##### File XSL ##### + +# START NON-TRANSLATABLE +FileXSL=3D/model/FileXSL.html +# END NON-TRANSLATABLE + +# START NON-TRANSLATABLE +FileXSL_Properties=3D/model/FileProperty.html +# END NON-TRANSLATABLE +FileXSL_Properties.Title=3DFile XSL + +##### Create File XSL ##### + +# START NON-TRANSLATABLE +FileFolder_CreateFileXSL=3D/model/CreateFile.html +# END NON-TRANSLATABLE +FileFolder_CreateFileXSL.WindowTitle=3DNew File XSL + +# START NON-TRANSLATABLE +FileSystemFolder_CreateFileXSL=3D/model/CreateFile.html +# END NON-TRANSLATABLE +FileSystemFolder_CreateFileXSL.WindowTitle=3DNew File XSL + ##### Create CSS and JS File ##### = FileFolder_CreateFileCSS=3D/model/noHelpYet.html Modified: trunk/jst/plugins/org.jboss.tools.jst.web/resources/help/keys-web= _ja.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/resources/help/keys-web_ja.pr= operties 2009-09-18 09:15:20 UTC (rev 17648) +++ trunk/jst/plugins/org.jboss.tools.jst.web/resources/help/keys-web_ja.pr= operties 2009-09-18 09:18:49 UTC (rev 17649) @@ -1,4 +1,26 @@ WebPrjAdoptStepName.web.xml_location=3Dweb.xml \u30ED\u30B1\u30FC\u30B7\u3= 0E7\u30F3 +FileJSP_Properties.Title=3DJSP \u30D5\u30A1\u30A4\u30EB +FileFolder_CreateFileJSP.WindowTitle=3D\u65B0\u898F JSP \u30D5\u30A1\u30A4= \u30EB +FileFolder_CreateFileJSP.Title=3DJSP \u30D5\u30A1\u30A4\u30EB +FileFolder_CreateFileJSP_1.Title=3D\u30BF\u30B0\u30FB\u30E9\u30A4\u30D6\u3= 0E9\u30EA\u30FC\u306E\u9078\u629E +FileSystemFolder_CreateFileJSP.WindowTitle=3D\u65B0\u898F JSP \u30D5\u30A1= \u30A4\u30EB +FileSystemFolder_CreateFileJSP.Title=3DJSP \u30D5\u30A1\u30A4\u30EB +FileSystemFolder_CreateFileJSP_1.Title=3D\u30BF\u30B0\u30FB\u30E9\u30A4\u3= 0D6\u30E9\u30EA\u30FC\u306E\u9078\u629E +FileXHTML_Properties.Title=3DXHTML \u30D5\u30A1\u30A4\u30EB +FileFolder_CreateFileXHTML.WindowTitle=3D\u65B0\u898F XHTML \u30D5\u30A1\u= 30A4\u30EB +FileFolder_CreateFileXHTML.Title=3DXHTML \u30D5\u30A1\u30A4\u30EB +FileFolder_CreateFileXHTML_1.Title=3D\u30BF\u30B0\u30FB\u30E9\u30A4\u30D6\= u30E9\u30EA\u30FC\u306E\u9078\u629E +FileSystemFolder_CreateFileXHTML.WindowTitle=3D\u65B0\u898F XHTML \u30D5\u= 30A1\u30A4\u30EB +FileSystemFolder_CreateFileXHTML.Title=3DXHTML \u30D5\u30A1\u30A4\u30EB +FileSystemFolder_CreateFileXHTML_1.Title=3D\u30BF\u30B0\u30FB\u30E9\u30A4\= u30D6\u30E9\u30EA\u30FC\u306E\u9078\u629E +FileHTML_Properties.Title=3DHTML \u30D5\u30A1\u30A4\u30EB +FileFolder_CreateFileHTML.WindowTitle=3D\u65B0\u898F HTML \u30D5\u30A1\u30= A4\u30EB +FileFolder_CreateFileHTML.Title=3DHTML \u30D5\u30A1\u30A4\u30EB +FileSystemFolder_CreateFileHTML.WindowTitle=3D\u65B0\u898F HTML \u30D5\u30= A1\u30A4\u30EB +FileSystemFolder_CreateFileHTML.Title=3DHTML \u30D5\u30A1\u30A4\u30EB +FileXSL_Properties.Title=3DXSL \u30D5\u30A1\u30A4\u30EB +FileFolder_CreateFileXSL.WindowTitle=3D\u65B0\u898F XSL \u30D5\u30A1\u30A4= \u30EB +FileSystemFolder_CreateFileXSL.WindowTitle=3D\u65B0\u898F XSL \u30D5\u30A1= \u30A4\u30EB FileFolder_CreateFileCSS=3D/model/noHelpYet.html FileFolder_CreateFileCSS.WindowTitle=3D\u65B0\u898F CSS \u30D5\u30A1\u30A4= \u30EB FileFolder_CreateFileCSS.Title=3DCSS \u30D5\u30A1\u30A4\u30EB Added: trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/page-files.= meta =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/page-files.met= a (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/page-files.met= a 2009-09-18 09:18:49 UTC (rev 17649) @@ -0,0 +1,438 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --===============5052208901559764068==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 05:19:45 2009 Content-Type: multipart/mixed; boundary="===============3608161379740966875==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17650 - trunk/struts/plugins/org.jboss.tools.struts/resources/help. Date: Fri, 18 Sep 2009 05:19:45 -0400 Message-ID: <200909180919.n8I9JjW3032030@svn01.web.mwc.hst.phx2.redhat.com> --===============3608161379740966875== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-18 05:19:45 -0400 (Fri, 18 Sep 2009) New Revision: 17650 Modified: trunk/struts/plugins/org.jboss.tools.struts/resources/help/keys-struts.p= roperties trunk/struts/plugins/org.jboss.tools.struts/resources/help/keys-struts_j= a.properties Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Definitions of model objects for jsp, html, xhtml moved to jst.web. Modified: trunk/struts/plugins/org.jboss.tools.struts/resources/help/keys-s= truts.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts/resources/help/keys-struts.= properties 2009-09-18 09:18:49 UTC (rev 17649) +++ trunk/struts/plugins/org.jboss.tools.struts/resources/help/keys-struts.= properties 2009-09-18 09:19:45 UTC (rev 17650) @@ -1022,4 +1022,16 @@ = #Wizard-Labels.end = +# START NON-TRANSLATABLE +JSPLinkRecognizer_CreateLink=3D/model/OptionsEditor.html +# END NON-TRANSLATABLE +JSPLinkRecognizer_CreateLink.WindowTitle=3DAdd Link Recognizer Rule +JSPLinkRecognizer_CreateLink.Title=3DLink Recognizer Rule = +# START NON-TRANSLATABLE +JSPLink_Edit=3D/model/OptionsEditor.html +# END NON-TRANSLATABLE +JSPLink_Edit.WindowTitle=3DEdit +JSPLink_Edit.Title=3DLink Recognizer Rule + + Modified: trunk/struts/plugins/org.jboss.tools.struts/resources/help/keys-s= truts_ja.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts/resources/help/keys-struts_= ja.properties 2009-09-18 09:18:49 UTC (rev 17649) +++ trunk/struts/plugins/org.jboss.tools.struts/resources/help/keys-struts_= ja.properties 2009-09-18 09:19:45 UTC (rev 17650) @@ -59,3 +59,7 @@ StrutsGen11_Forwards_properties=3DGenerate JavaBeans properties StrutsGen11_Exceptions_base_class=3D\u30D9\u30FC\u30B9\u30FB\u30AF\u30E9\u= 30B9 StrutsGen11_Exceptions_properties=3DGenerate JavaBeans properties +JSPLinkRecognizer_CreateLink.WindowTitle=3D\u30EA\u30F3\u30AF\u8A8D\u8B58\= u30EB\u30FC\u30EB\u306E\u8FFD\u52A0 +JSPLinkRecognizer_CreateLink.Title=3D\u30EA\u30F3\u30AF\u8A8D\u8B58\u30EB\= u30FC\u30EB +JSPLink_Edit.WindowTitle=3D\u7DE8\u96C6 +JSPLink_Edit.Title=3D\u30EA\u30F3\u30AF\u8A8D\u8B58\u30EB\u30FC\u30EB --===============3608161379740966875==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 06:06:58 2009 Content-Type: multipart/mixed; boundary="===============5222623852595667104==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17651 - in trunk/jst/plugins/org.jboss.tools.jst.web: resources/meta and 3 other directories. Date: Fri, 18 Sep 2009 06:06:58 -0400 Message-ID: <200909181006.n8IA6w18009305@svn01.web.mwc.hst.phx2.redhat.com> --===============5222623852595667104== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-18 06:06:58 -0400 (Fri, 18 Sep 2009) New Revision: 17651 Added: trunk/jst/plugins/org.jboss.tools.jst.web/schema/ trunk/jst/plugins/org.jboss.tools.jst.web/schema/jspAdopt.exsd trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/mo= del/handlers/JSPCompoundAdopt.java Modified: trunk/jst/plugins/org.jboss.tools.jst.web/build.properties trunk/jst/plugins/org.jboss.tools.jst.web/plugin.xml trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/page-files.meta trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tl= d/model/TLDUtil.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Extension point jspAdopt moved to jst.web. Modified: trunk/jst/plugins/org.jboss.tools.jst.web/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/build.properties 2009-09-18 0= 9:19:45 UTC (rev 17650) +++ trunk/jst/plugins/org.jboss.tools.jst.web/build.properties 2009-09-18 1= 0:06:58 UTC (rev 17651) @@ -6,5 +6,6 @@ about.html,\ META-INF/,\ web.jar,\ - catalog/ + catalog/,\ + schema/ additional.bundles =3D org.eclipse.jem.util Modified: trunk/jst/plugins/org.jboss.tools.jst.web/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/plugin.xml 2009-09-18 09:19:4= 5 UTC (rev 17650) +++ trunk/jst/plugins/org.jboss.tools.jst.web/plugin.xml 2009-09-18 10:06:5= 8 UTC (rev 17651) @@ -1,6 +1,7 @@ + = @@ -33,7 +34,7 @@ = - + @@ -118,6 +119,8 @@ class=3D"org.jboss.tools.jst.web.model.handlers.FindReferringItemHandle= r"/> + @@ -143,7 +143,7 @@ @@ -233,7 +233,7 @@ Added: trunk/jst/plugins/org.jboss.tools.jst.web/schema/jspAdopt.exsd =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/schema/jspAdopt.exsd = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.web/schema/jspAdopt.exsd 2009-09-= 18 10:06:58 UTC (rev 17651) @@ -0,0 +1,103 @@ + + + + + + + + + [Enter description of this extension point.] + + + + + + + + + + + + + + + + + = + + + + + + + = + + + + + + + = + + + + + + + + + + + + + + + Qualified name of class implementing interface + org.jboss.tools.common.meta.XAdoptManager + + + + + + + + + + + + + + + [Enter the first release in which this extension point appears.] + + + + + + + + + [Enter extension point usage example here.] + + + + + + + + + [Enter API information here.] + + + + + + + + + [Enter information about supplied implementation of this extensio= n point.] + + + + + Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web/schema/jspAd= opt.exsd ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/we= b/model/handlers/JSPCompoundAdopt.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/m= odel/handlers/JSPCompoundAdopt.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/m= odel/handlers/JSPCompoundAdopt.java 2009-09-18 10:06:58 UTC (rev 17651) @@ -0,0 +1,34 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.web.model.handlers; + +import org.jboss.tools.common.meta.XAdoptManager; +import org.jboss.tools.common.meta.action.impl.CompoundAdoptManager; + +public class JSPCompoundAdopt extends CompoundAdoptManager { + /* + * see extension point org.jboss.tools.common.model.jspAdopt + private static String[] MANAGERS =3D {"org.jboss.tools.jst.web.tld.mod= el.handlers.JSPAdopt", + "org.jboss.tools.struts.tiles.mode= l.handlers.JSPAdopt", + "org.jboss.tools.struts.model.hand= lers.JSPAdopt", + "org.jboss.tools.jsf.model.handler= s.JSPAdopt", + "org.jboss.tools.jsf.ui.adopt.JSPA= dopt", + "org.jboss.tools.jst.web.model.han= dlers.JSPAdopt", + }; + */ + private static XAdoptManager[] managers =3D null; + + public XAdoptManager[] getManagers() { + if(managers =3D=3D null) managers =3D loadManagers("org.jboss.tool= s.jst.web.jspAdopt"); //$NON-NLS-1$ + return managers; + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jbos= s/tools/jst/web/model/handlers/JSPCompoundAdopt.java ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst= /web/tld/model/TLDUtil.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/model/TLDUtil.java 2009-09-18 09:19:45 UTC (rev 17650) +++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/model/TLDUtil.java 2009-09-18 10:06:58 UTC (rev 17651) @@ -14,7 +14,7 @@ = public class TLDUtil { static String FILE_ENTITIES =3D ".FileTLD_PRO.FileTLD_1_2.FileTLD_2_0.= FileTLD_2_1."; //$NON-NLS-1$ - static String TAG_ENTITIES =3D ".TLDTag.TLDTag12.TLDTag21."; //$NON-NL= S-1$ + static String TAG_ENTITIES =3D ".TLDTag.TLDTag12.TLDTag20.TLDTag21."; = //$NON-NLS-1$ static String ATTR_ENTITIES =3D ".TLDAttribute.TLDAttribute12."; //$NO= N-NLS-1$ = public static boolean isTaglib(XModelObject o) { --===============5222623852595667104==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 06:08:25 2009 Content-Type: multipart/mixed; boundary="===============8736722577428105471==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17652 - in trunk/common/plugins/org.jboss.tools.common.model: schema and 1 other directories. Date: Fri, 18 Sep 2009 06:08:25 -0400 Message-ID: <200909181008.n8IA8Pv3009517@svn01.web.mwc.hst.phx2.redhat.com> --===============8736722577428105471== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-18 06:08:24 -0400 (Fri, 18 Sep 2009) New Revision: 17652 Removed: trunk/common/plugins/org.jboss.tools.common.model/schema/jspAdopt.exsd trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/files/handlers/JSPAdopt.java Modified: trunk/common/plugins/org.jboss.tools.common.model/plugin.xml trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/files/handlers/CreateFileSupport.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Extension point jspAdopt moved to jst.web. Modified: trunk/common/plugins/org.jboss.tools.common.model/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/plugin.xml 2009-09-18= 10:06:58 UTC (rev 17651) +++ trunk/common/plugins/org.jboss.tools.common.model/plugin.xml 2009-09-18= 10:08:24 UTC (rev 17652) @@ -6,7 +6,6 @@ - @@ -130,8 +129,6 @@ class=3D"org.jboss.tools.common.model.engines.impl.EnginesLoader"/> - - - - - - - - - Registers class implementating interface = - org.jboss.tools.common.meta.XAdoptManager = - in class org.jboss.tools.common.model.files.handlers.JSPAdopt, = - which checks if a dragged model object can be dropped = - to *.jsp file and then executes the drop, delegating = - the check and execution to registered implementations. - - - - - - - - - - - - = - - - - - - - = - - - - - - - = - - - - - - - - - - - - Qualified name of class implementing interface - org.jboss.tools.common.meta.XAdoptManager - - - - - - - - - - - - - - - 2.0.0 - - - - - - - - - = - - - - - - - - - = - - - - - - - - - = - - - - - - - - - Red Hat, Inc - - - - Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/t= ools/common/model/files/handlers/CreateFileSupport.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/files/handlers/CreateFileSupport.java 2009-09-18 10:06:58 UTC (= rev 17651) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/files/handlers/CreateFileSupport.java 2009-09-18 10:08:24 UTC (= rev 17652) @@ -25,6 +25,7 @@ import org.jboss.tools.common.meta.impl.XMetaDataConstants; import org.jboss.tools.common.model.*; import org.jboss.tools.common.model.filesystems.impl.*; +import org.jboss.tools.common.model.loaders.impl.MappedEntityRecognizer; import org.jboss.tools.common.model.plugin.ModelMessages; import org.jboss.tools.common.model.util.*; import org.jboss.tools.common.util.FileUtil; @@ -267,12 +268,19 @@ String entity =3D version =3D=3D null ? null : (String)versionEntities.= get(version); if(entity !=3D null) return entity; } - return ("jsp".equals(extension)) ? "FileJSP" : //$NON-NLS-1$ //$NON-NLS-= 2$ - ("htm".equals(extension)) ? "FileHTML" : //$NON-NLS-1$ //$NON-NLS-2$ - ("html".equals(extension)) ? "FileHTML" : //$NON-NLS-1$ //$NON-NLS-2$ - ("properties".equals(extension)) ? "FilePROPERTIES" : //$NON-NLS-1$ //$= NON-NLS-2$ - (extension.equals(action.getProperty(XModelObjectConstants.ATTR_NAME_EX= TENSION))) ? action.getProperty(XMetaDataConstants.ENTITY) : - "FileAny"; //$NON-NLS-1$ + = + String entity =3D null; + if(extension.equals(action.getProperty(XModelObjectConstants.ATTR_NAME_E= XTENSION))) { + entity =3D action.getProperty(XMetaDataConstants.ENTITY); + } + if(entity =3D=3D null) { + entity =3D new MappedEntityRecognizer().getEntityName(extension, null); + } + if(entity !=3D null && getTarget().getModel().getMetaData().getEntity(en= tity) !=3D null) { + return entity; + } + = + return "FileAny"; //$NON-NLS-1$ } = protected XModelObject modifyCreatedObject(XModelObject o) { Deleted: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/to= ols/common/model/files/handlers/JSPAdopt.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/files/handlers/JSPAdopt.java 2009-09-18 10:06:58 UTC (rev 17651) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/files/handlers/JSPAdopt.java 2009-09-18 10:08:24 UTC (rev 17652) @@ -1,35 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.common.model.files.handlers; - -import org.jboss.tools.common.meta.*; -import org.jboss.tools.common.meta.action.impl.*; - -public class JSPAdopt extends CompoundAdoptManager { - /* - * see extension point org.jboss.tools.common.model.jspAdopt - private static String[] MANAGERS =3D {"org.jboss.tools.jst.web.tld.mod= el.handlers.JSPAdopt", - "org.jboss.tools.struts.tiles.mode= l.handlers.JSPAdopt", - "org.jboss.tools.struts.model.hand= lers.JSPAdopt", - "org.jboss.tools.jsf.model.handler= s.JSPAdopt", - "org.jboss.tools.jsf.ui.adopt.JSPA= dopt", - "org.jboss.tools.jst.web.model.han= dlers.JSPAdopt", - }; - */ - private static XAdoptManager[] managers =3D null; - - public XAdoptManager[] getManagers() { - if(managers =3D=3D null) managers =3D loadManagers("org.jboss.tool= s.common.model.jspAdopt"); //$NON-NLS-1$ - return managers; - } - -} - --===============8736722577428105471==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 06:09:22 2009 Content-Type: multipart/mixed; boundary="===============4031493208109520146==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17653 - trunk/jsf/plugins/org.jboss.tools.jsf. Date: Fri, 18 Sep 2009 06:09:22 -0400 Message-ID: <200909181009.n8IA9Mrn009659@svn01.web.mwc.hst.phx2.redhat.com> --===============4031493208109520146== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-18 06:09:22 -0400 (Fri, 18 Sep 2009) New Revision: 17653 Modified: trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Extension point jspAdopt moved to jst.web. Modified: trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml 2009-09-18 10:08:24 UT= C (rev 17652) +++ trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml 2009-09-18 10:09:22 UT= C (rev 17653) @@ -27,7 +27,7 @@ = - + = --===============4031493208109520146==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 06:09:56 2009 Content-Type: multipart/mixed; boundary="===============4425154953574941785==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17654 - trunk/jsf/plugins/org.jboss.tools.jsf.ui. Date: Fri, 18 Sep 2009 06:09:55 -0400 Message-ID: <200909181009.n8IA9tVr009751@svn01.web.mwc.hst.phx2.redhat.com> --===============4425154953574941785== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-18 06:09:55 -0400 (Fri, 18 Sep 2009) New Revision: 17654 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/plugin.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Extension point jspAdopt moved to jst.web. Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.ui/plugin.xml 2009-09-18 10:09:22= UTC (rev 17653) +++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/plugin.xml 2009-09-18 10:09:55= UTC (rev 17654) @@ -242,7 +242,7 @@ - + --===============0183052939688343899== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-18 06:10:35 -0400 (Fri, 18 Sep 2009) New Revision: 17655 Modified: trunk/struts/plugins/org.jboss.tools.struts/plugin.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Extension point jspAdopt moved to jst.web. Modified: trunk/struts/plugins/org.jboss.tools.struts/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts/plugin.xml 2009-09-18 10:09= :55 UTC (rev 17654) +++ trunk/struts/plugins/org.jboss.tools.struts/plugin.xml 2009-09-18 10:10= :35 UTC (rev 17655) @@ -30,7 +30,7 @@ - + --===============0183052939688343899==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 06:25:02 2009 Content-Type: multipart/mixed; boundary="===============5267750986784903494==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17656 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring. Date: Fri, 18 Sep 2009 06:25:02 -0400 Message-ID: <200909181025.n8IAP2CI012560@svn01.web.mwc.hst.phx2.redhat.com> --===============5267750986784903494== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dazarov Date: 2009-09-18 06:25:02 -0400 (Fri, 18 Sep 2009) New Revision: 17656 Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/refactoring/SeamRefactorSearcher.java Log: https://jira.jboss.org/jira/browse/JBIDE-4771 Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/refactoring/SeamRefactorSearcher.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java 2009-09-18 10:10:35 UTC = (rev 17655) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java 2009-09-18 10:25:02 UTC = (rev 17656) @@ -380,6 +380,10 @@ context.setElResolvers(resolvers); = List vars =3D ElVarSearcher.findAllVars(context, offset, resolver); + = + if(vars =3D=3D null) + continue; + = context.setVars(vars); = ELResolution resolution =3D resolver.resolve(context, operand); --===============5267750986784903494==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 06:32:52 2009 Content-Type: multipart/mixed; boundary="===============2163172632394878000==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17657 - in trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui: attribute/editor and 2 other directories. Date: Fri, 18 Sep 2009 06:32:52 -0400 Message-ID: <200909181032.n8IAWqbt014961@svn01.web.mwc.hst.phx2.redhat.com> --===============2163172632394878000== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-18 06:32:52 -0400 (Fri, 18 Sep 2009) New Revision: 17657 Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/attribute/adapter/JavaClassContentAssistProvider.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/attribute/editor/JavaHyperlinkCellEditor.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/dnd/ControlDragDrop.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/DropData.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Direct reference to palette adopt from jst.web removed. Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/attribute/adapter/JavaClassContentAssistProvider.ja= va =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/attribute/adapter/JavaClassContentAssistProvider.java 200= 9-09-18 10:25:02 UTC (rev 17656) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/attribute/adapter/JavaClassContentAssistProvider.java 200= 9-09-18 10:32:52 UTC (rev 17657) @@ -10,12 +10,21 @@ *************************************************************************= *****/ = package org.jboss.tools.common.model.ui.attribute.adapter; = +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Comparator; +import java.util.ListIterator; + import org.eclipse.core.resources.IProject; import org.eclipse.jdt.core.search.IJavaSearchConstants; import org.eclipse.jface.fieldassist.ContentProposalAdapter; +import org.eclipse.jface.fieldassist.IContentProposal; import org.eclipse.jface.fieldassist.IContentProposalProvider; import org.eclipse.jface.viewers.LabelProvider; -import org.eclipse.pde.internal.ui.editor.contentassist.TypeContentProposa= lProvider; +import org.eclipse.pde.internal.ui.editor.contentassist.TypeContentProposa= l; +import org.eclipse.pde.internal.ui.editor.contentassist.TypePackageComplet= ionProcessor; +import org.eclipse.swt.graphics.Image; import org.jboss.tools.common.meta.XAttribute; import org.jboss.tools.common.model.XModelObject; import org.jboss.tools.common.model.ui.attribute.IAttributeContentProposal= Provider; @@ -56,3 +65,174 @@ } = } + + + +class TypeContentProposalProvider extends TypePackageCompletionProcessor i= mplements IContentProposalProvider { + public static final char F_DOT =3D '.'; + private IProject fProject; + private int fTypeScope; + private ArrayList fInitialContentProposals; + private String fInitialContent; + private Comparator fComparator; + + /** + * = + */ + public TypeContentProposalProvider(IProject project, int scope) { + fProject =3D project; + fTypeScope =3D scope; + fComparator =3D new TypeComparator(); + + reset(); + } + + /** + * TypeComparator + * + */ + private static class TypeComparator implements Comparator { + /** + * = + */ + public TypeComparator() { + // NO-OP + } + + /* (non-Javadoc) + * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object) + */ + public int compare(Object arg0, Object arg1) { + String proposalSortKey1 =3D ((IContentProposal) arg0).getLabel(); + String proposalSortKey2 =3D ((IContentProposal) arg1).getLabel(); + return proposalSortKey1.compareToIgnoreCase(proposalSortKey2); + } + } + + /* (non-Javadoc) + * @see org.eclipse.jface.fieldassist.IContentProposalProvider#getProposa= ls(java.lang.String, int) + */ + public IContentProposal[] getProposals(String contents, int position) { + // Generate a list of proposals based on the current contents + ArrayList currentContentProposals =3D null; + // Determine method to obtain proposals based on current field contents + if (position =3D=3D 0) { + // If the document offset is at the 0 position (i.e. no input entered), = + // do not perform content assist. The operation is too expensive = + // because all classes and interfaces (depending on the specified scope) + // will need to be resolved as proposals + currentContentProposals =3D null; + } else if ((fInitialContentProposals =3D=3D null) || (!contents.startsWi= th(fInitialContent)) || (endsWithDot(contents))) { + // Generate new proposals if the content assist session was just + // started + // Or generate new proposals if the current contents of the field + // is less than the initial contents of the field used to = + // generate the original proposals; thus, widening the search + // scope. This can occur when the user types backspace + // Or generate new proposals if the current contents ends with a + // dot + currentContentProposals =3D generateContentProposals(contents.substring= (0, position)); + } else { + // Filter existing proposals from a prevous search; thus, narrowing + // the search scope. This can occur when the user types additional + // characters in the field causing new characters to be appended to + // the initial field contents + currentContentProposals =3D filterContentProposals(contents); + } + + return convertResultsToSortedProposals(currentContentProposals); + } + + /** + * = + */ + public void reset() { + fInitialContentProposals =3D null; + } + + /* (non-Javadoc) + * @see org.eclipse.pde.internal.ui.editor.contentassist.TypePackageCompl= etionProcessor#addProposalToCollection(java.util.Collection, int, int, java= .lang.String, java.lang.String, org.eclipse.swt.graphics.Image) + */ + protected void addProposalToCollection(Collection collection, int startOf= fset, int length, String label, String content, Image image) { + // Create content proposals for field assist + // start offset and length not required + IContentProposal proposal =3D new TypeContentProposal(label, content, nu= ll, image); + // Add the proposal to the list of proposals + collection.add(proposal); + } + + /** + * @param string + * @return + */ + private boolean endsWithDot(String string) { + int index =3D string.lastIndexOf(F_DOT); + if ((index + 1) =3D=3D string.length()) { + return true; + } + return false; + } + + /** + * @param currentContent + * @return + */ + private ArrayList generateContentProposals(String currentContent) { + fInitialContentProposals =3D new ArrayList(); + // Store the initial field contents to determine if we need to + // widen the scope later + fInitialContent =3D currentContent; + generateTypePackageProposals(currentContent, fProject, fInitialContentPr= oposals, 0, fTypeScope, true); + return fInitialContentProposals; + } + + /** + * @param list + * @return + */ + private IContentProposal[] convertResultsToSortedProposals(ArrayList list= ) { + IContentProposal[] proposals =3D null; + if ((list !=3D null) && (list.size() !=3D 0)) { + // Convert the results array list into an array of completion + // proposals + proposals =3D (IContentProposal[]) list.toArray(new IContentProposal[li= st.size()]); + // Sort the proposals alphabetically + Arrays.sort(proposals, fComparator); + } else { + proposals =3D new IContentProposal[0]; + } + return proposals; + } + + /** + * @param currentContent + * @return + */ + private ArrayList filterContentProposals(String currentContent) { + String lowerCaseCurrentContent =3D currentContent.toLowerCase(); + ListIterator iterator =3D fInitialContentProposals.listIterator(); + // Maintain a list of filtered search results + ArrayList filteredContentProposals =3D new ArrayList(); + // Iterate over the initial search results + while (iterator.hasNext()) { + Object object =3D iterator.next(); + IContentProposal proposal =3D (IContentProposal) object; + String compareString =3D null; + if (lowerCaseCurrentContent.indexOf(F_DOT) =3D=3D -1) { + // Use only the type name + compareString =3D proposal.getLabel().toLowerCase(); + } else { + // Use the fully qualified type name + compareString =3D proposal.getContent().toLowerCase(); + } + // Filter out any proposal not matching the current contents + // except for the edge case where the proposal is identical to the + // current contents + if (compareString.startsWith(lowerCaseCurrentContent, 0)) { + filteredContentProposals.add(proposal); + } + } + return filteredContentProposals; + } + +} Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/attribute/editor/JavaHyperlinkCellEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/attribute/editor/JavaHyperlinkCellEditor.java 2009-09-18 = 10:25:02 UTC (rev 17656) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/attribute/editor/JavaHyperlinkCellEditor.java 2009-09-18 = 10:32:52 UTC (rev 17657) @@ -14,14 +14,11 @@ import org.jboss.tools.common.model.ui.IValueChangeListener; import org.jboss.tools.common.model.ui.IValueProvider; import org.jboss.tools.common.model.ui.attribute.adapter.DefaultValueAdapt= er; -import org.eclipse.jdt.core.*; -import org.eclipse.jdt.internal.ui.refactoring.contentassist.JavaTypeCompl= etionProcessor; import org.eclipse.swt.widgets.*; import org.jboss.tools.common.meta.XAttribute; import org.jboss.tools.common.model.XModelObject; import org.jboss.tools.common.model.filesystems.FileSystemsHelper; import org.jboss.tools.common.model.util.XModelObjectUtil; -import org.jboss.tools.common.model.ui.templates.ControlContentAssistHelpe= r; = public class JavaHyperlinkCellEditor extends DialogCellEditorEx = implements JavaHyperlinkCueLabelProvider.JavaClassHolder { @@ -73,15 +70,6 @@ // setChangeButtonText(JFaceResources.getString("openBrowse")); } = - IPackageFragmentRoot root =3D (project =3D=3D null) ? null : Java= Adapter.getInstance().getPackageFragmentRoot(project); - if (root !=3D null) { - JavaTypeCompletionProcessor contentAssistentProcessor =3D new JavaT= ypeCompletionProcessor(false, false); - IPackageFragment currentPackage =3D root.getPackageFragment("");= //$NON-NLS-1$ - contentAssistentProcessor.setPackageFragment(currentPackage); - Text text =3D getTextField(); - text.setData("JavaHyperlinkLineFieldEditor", this); //$NON-NL= S-1$ - ControlContentAssistHelper.createTextContentAssistant(getTextField(= ), contentAssistentProcessor, JavaHyperlinkCueLabelProvider.INSTANCE); - } } } = Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/dnd/ControlDragDrop.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/dnd/ControlDragDrop.java 2009-09-18 10:25:02 UTC (rev 176= 56) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/dnd/ControlDragDrop.java 2009-09-18 10:32:52 UTC (rev 176= 57) @@ -17,6 +17,7 @@ import org.eclipse.swt.graphics.Point; import org.eclipse.swt.graphics.Rectangle; import org.eclipse.swt.widgets.*; +import org.jboss.tools.common.model.options.impl.PaletteAdopt; import org.jboss.tools.common.model.ui.navigator.TreeViewerDragDropProvide= r; = import org.jboss.tools.common.meta.XAdoptManager; @@ -31,12 +32,9 @@ static XAdoptManager paletteAdopt; = static { - try { - if(Platform.getBundle("org.jboss.tools.jst.web") !=3D null) { //$NON-NL= S-1$ - paletteAdopt =3D (XAdoptManager)ModelFeatureFactory.getInstance().crea= teFeatureInstance("org.jboss.tools.jst.web.tld.model.handlers.JSPAdopt"); /= /$NON-NLS-1$ - } - } catch (ClassCastException e) { - ModelUIPlugin.getPluginLog().logError(e); + XAdoptManager[] ms =3D new PaletteAdopt().getManagers(); + if(ms !=3D null && ms.length > 0) { + paletteAdopt =3D ms[0]; = } } = Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/editors/dnd/DropData.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/DropData.java 2009-09-18 10:25:02 UTC (rev 17= 656) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/DropData.java 2009-09-18 10:32:52 UTC (rev 17= 657) @@ -20,7 +20,6 @@ import org.w3c.dom.Node; = import org.jboss.tools.common.model.ui.editors.dnd.DropUtils.AttributeDesc= riptorValueProvider; -import org.jboss.tools.jst.web.tld.VpeTaglibManager; = public class DropData { = --===============2163172632394878000==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 07:59:51 2009 Content-Type: multipart/mixed; boundary="===============6590080263067712229==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17658 - in trunk/seam/plugins: org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/search and 1 other directory. Date: Fri, 18 Sep 2009 07:59:51 -0400 Message-ID: <200909181159.n8IBxp3Y030268@svn01.web.mwc.hst.phx2.redhat.com> --===============6590080263067712229== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dazarov Date: 2009-09-18 07:59:51 -0400 (Fri, 18 Sep 2009) New Revision: 17658 Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/refactoring/SeamRefactorSearcher.java trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/s= earch/SeamELReferencesQueryParticipant.java Log: https://jira.jboss.org/jira/browse/JBIDE-4771 added search scope support Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/refactoring/SeamRefactorSearcher.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java 2009-09-18 10:32:52 UTC = (rev 17657) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java 2009-09-18 11:59:51 UTC = (rev 17658) @@ -20,8 +20,10 @@ import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IPath; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IJavaProject; +import org.eclipse.jdt.core.search.IJavaSearchScope; import org.eclipse.jdt.internal.ui.text.FastJavaPartitionScanner; import org.eclipse.jdt.ui.text.IJavaPartitions; import org.eclipse.jface.text.BadLocationException; @@ -79,6 +81,7 @@ protected IFile baseFile; protected String propertyName; protected IJavaElement javaElement; + protected IJavaSearchScope searchScope; = public SeamRefactorSearcher(IFile baseFile, String propertyName){ this.baseFile =3D baseFile; @@ -89,6 +92,10 @@ this(baseFile, propertyName); this.javaElement =3D javaElement; } + = + public void setSearchScope(IJavaSearchScope searchScope){ + this.searchScope =3D searchScope; + } = public void findELReferences(){ if(baseFile =3D=3D null) @@ -100,6 +107,9 @@ for (IProject project : projects) { if(project =3D=3D null) continue; = + if(!containsInSearchScope(project)) + continue; + = IJavaProject javaProject =3D EclipseResourceUtil.getJavaProject(project= ); = // searching java, xml and property files in source folders @@ -367,6 +377,17 @@ return methodName.startsWith(SET); } = + private boolean containsInSearchScope(IProject project){ + if(searchScope =3D=3D null) + return true; + IPath[] paths =3D searchScope.enclosingProjectsAndJars(); + for(IPath path : paths){ + if(path.equals(project.getFullPath())) + return true; + } + return false; + } + = private void resolve(IFile file, ELExpression operand, int offset, int le= ngth){ ELResolver[] resolvers =3D ELResolverFactoryManager.getInstance().getRes= olvers(file); = Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/se= am/ui/search/SeamELReferencesQueryParticipant.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= search/SeamELReferencesQueryParticipant.java 2009-09-18 10:32:52 UTC (rev 1= 7657) +++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= search/SeamELReferencesQueryParticipant.java 2009-09-18 11:59:51 UTC (rev 1= 7658) @@ -51,6 +51,7 @@ String name =3D ELSearcher.getPropertyName(qs.getElement().getElementN= ame()); = searcher =3D new ELSearcher(requestor, qs.getElement(), file, name); + searcher.setSearchScope(qs.getScope()); = searcher.findELReferences(); } @@ -68,7 +69,7 @@ class ELSearcher extends SeamRefactorSearcher{ ISearchRequestor requestor; public ELSearcher(ISearchRequestor requestor, IJavaElement element, IFil= e file, String name){ - super(file, name, element); + super(file, name/*, element*/); this.requestor =3D requestor; } = --===============6590080263067712229==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 08:29:24 2009 Content-Type: multipart/mixed; boundary="===============1023303549108415309==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17659 - trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/xml. Date: Fri, 18 Sep 2009 08:29:24 -0400 Message-ID: <200909181229.n8ICTOPZ002946@svn01.web.mwc.hst.phx2.redhat.com> --===============1023303549108415309== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-18 08:29:24 -0400 (Fri, 18 Sep 2009) New Revision: 17659 Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/x= ml/XMLEntityResolver.java Log: https://jira.jboss.org/jira/browse/JBIDE-4909 Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/c= ommon/xml/XMLEntityResolver.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= xml/XMLEntityResolver.java 2009-09-18 11:59:51 UTC (rev 17658) +++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/= xml/XMLEntityResolver.java 2009-09-18 12:29:24 UTC (rev 17659) @@ -79,14 +79,16 @@ public InputSource resolveEntity(String publicId, String systemId) = throws SAXException, java.io.IOException { InputSource source =3D null; - + boolean ok =3D false; if (publicId !=3D null) { String url =3D publicEntities.getProperty(publicId); if (url !=3D null) { source =3D new InputSource(url); source.setPublicId(publicId); + ok =3D true; } - } else if (systemId !=3D null) { + } + if (!ok && systemId !=3D null) { String url =3D systemEntities.getProperty(systemId); if (url !=3D null) { source =3D new InputSource(url); --===============1023303549108415309==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 08:42:33 2009 Content-Type: multipart/mixed; boundary="===============3197835168728813010==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17660 - in trunk: jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/4853 and 4 other directories. Date: Fri, 18 Sep 2009 08:42:33 -0400 Message-ID: <200909181242.n8ICgX9p005332@svn01.web.mwc.hst.phx2.redhat.com> --===============3197835168728813010== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: yradtsevich Date: 2009-09-18 08:42:33 -0400 (Fri, 18 Sep 2009) New Revision: 17660 Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebCo= ntent/pages/JBIDE/4853/ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebCo= ntent/pages/JBIDE/4853/SelectAllAndCut.html trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf= /vpe/jsf/test/jbide/SelectAllAndCut_JBIDE4853.java Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf= /vpe/jsf/test/JsfAllTests.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vpe= VisualDomBuilder.java trunk/vpe/plugins/org.jboss.tools.vpe/ve/init.html Log: RESOLVED - issue JBIDE-4853: AutoRefresh doesn't work after Select All and = source edit = https://jira.jboss.org/jira/browse/JBIDE-4853 - reverted back the changes of JBIDE-4816: Dump Source give us different r= esults before and after refresh - fixed JBIDE-4816 in an another way - written JUnit test for JBIDE-4853 = Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/W= ebContent/pages/JBIDE/4853/SelectAllAndCut.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebC= ontent/pages/JBIDE/4853/SelectAllAndCut.html (rev 0) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebC= ontent/pages/JBIDE/4853/SelectAllAndCut.html 2009-09-18 12:42:33 UTC (rev 1= 7660) @@ -0,0 +1 @@ +
abc
\ No newline at end of file Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/to= ols/jsf/vpe/jsf/test/JsfAllTests.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/js= f/vpe/jsf/test/JsfAllTests.java 2009-09-18 12:29:24 UTC (rev 17659) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/js= f/vpe/jsf/test/JsfAllTests.java 2009-09-18 12:42:33 UTC (rev 17660) @@ -76,6 +76,7 @@ import org.jboss.tools.jsf.vpe.jsf.test.jbide.JsfJbide2170Test; import org.jboss.tools.jsf.vpe.jsf.test.jbide.JsfJbide2362Test; import org.jboss.tools.jsf.vpe.jsf.test.jbide.OpenOnCssClassTest_JBIDE4775; +import org.jboss.tools.jsf.vpe.jsf.test.jbide.SelectAllAndCut_JBIDE4853; import org.jboss.tools.jsf.vpe.jsf.test.jbide.VPERefreshTest; import org.jboss.tools.tests.ImportBean; import org.jboss.tools.vpe.ui.test.VpeTestSetup; @@ -102,6 +103,7 @@ suite.addTestSuite(Jsf20ComponentContentTest.class); suite.addTestSuite(JBIDE3519Test.class); suite.addTestSuite(ContextMenuDoubleInsertionTest_JBIDE3888.class); + suite.addTestSuite(SelectAllAndCut_JBIDE4853.class); suite.addTestSuite(JBIDE4037Test.class); suite.addTestSuite(JBIDE3734Test.class); suite.addTestSuite(JBIDE3617Test.class); @@ -188,7 +190,5 @@ projectToImport.add(jbide3247TestProject); = return new VpeTestSetup(suite, projectToImport); - } - } Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools= /jsf/vpe/jsf/test/jbide/SelectAllAndCut_JBIDE4853.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/js= f/vpe/jsf/test/jbide/SelectAllAndCut_JBIDE4853.java = (rev 0) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/js= f/vpe/jsf/test/jbide/SelectAllAndCut_JBIDE4853.java 2009-09-18 12:42:33 UTC= (rev 17660) @@ -0,0 +1,53 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jsf.vpe.jsf.test.jbide; + +import org.eclipse.swt.custom.StyledText; +import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests; +import org.jboss.tools.vpe.editor.VpeController; +import org.jboss.tools.vpe.ui.test.TestUtil; +import org.jboss.tools.vpe.ui.test.VpeTest; +import org.mozilla.interfaces.nsIDOMDocument; + +/** + * Tests for JIRA issue JBIDE-4859: AutoRefresh doesn't work after = + * Select All and source edit. + * (https://jira.jboss.org/jira/browse/JBIDE-4859 ) + * = + * @author yradtsevich + */ +public class SelectAllAndCut_JBIDE4853 extends VpeTest { + private static final String TEST_PAGE_NAME + =3D "JBIDE/4853/SelectAllAndCut.html"; //$NON-NLS-1$ + private static final String CUT_ELEMENT_ID =3D "cut-div"; //$NON-NLS-1$ + + public SelectAllAndCut_JBIDE4853(String name) { + super(name); + } + + public void testSelectAllAndCut() throws Throwable { + VpeController vpeController =3D openInVpe(JsfAllTests.IMPORT_PROJECT_NAM= E, + TEST_PAGE_NAME); + StyledText textWidget =3D vpeController.getSourceEditor() + .getTextViewer().getTextWidget(); + = + textWidget.selectAll(); + textWidget.cut(); + TestUtil.waitForIdle(); + = + nsIDOMDocument document =3D vpeController.getXulRunnerEditor() + .getDOMDocument(); + assertNull("Element with id=3D'" + CUT_ELEMENT_ID //$NON-NLS-1$ + + "' has been cut, but still" //$NON-NLS-1$ + + " exists in the visual part.", //$NON-NLS-1$ + document.getElementById(CUT_ELEMENT_ID)); + } +} Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/VpeVisualDomBuilder.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eVisualDomBuilder.java 2009-09-18 12:29:24 UTC (rev 17659) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eVisualDomBuilder.java 2009-09-18 12:42:33 UTC (rev 17660) @@ -251,11 +251,7 @@ nsIDOMNodeList children =3D getContentArea().getChildNodes(); long len =3D children.getLength(); for (long i =3D len - 1; i >=3D 0; i--) { - //added by Maksim Areshkau as fix for https://jira.jboss.org/jira/brows= e/JBIDE-4816 - //for XR-1.8 addes
node in document and it's should be deleted - if(PSEUDO_ELEMENT.equalsIgnoreCase(children.item(i).getNodeName())) { - getContentArea().removeChild(children.item(i)); - } + getContentArea().removeChild(children.item(i)); } = if (sourceDocument !=3D null) { Modified: trunk/vpe/plugins/org.jboss.tools.vpe/ve/init.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/ve/init.html 2009-09-18 12:29:24 = UTC (rev 17659) +++ trunk/vpe/plugins/org.jboss.tools.vpe/ve/init.html 2009-09-18 12:42:33 = UTC (rev 17660) @@ -68,7 +68,6 @@ = = - = --===============3197835168728813010==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 09:27:39 2009 Content-Type: multipart/mixed; boundary="===============1426564069364306773==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17661 - in trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar: format and 1 other directory. Date: Fri, 18 Sep 2009 09:27:39 -0400 Message-ID: <200909181327.n8IDRdhU011801@svn01.web.mwc.hst.phx2.redhat.com> --===============1426564069364306773== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: yradtsevich Date: 2009-09-18 09:27:39 -0400 (Fri, 18 Sep 2009) New Revision: 17661 Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/too= lbar/SplitToolBar.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/too= lbar/format/TextFormattingToolBar.java Log: RESOLVED - issue JBIDE-4735: Set items in expanded formatting tool bar into= Vertical position. = https://jira.jboss.org/jira/browse/JBIDE-4735 Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/toolbar/SplitToolBar.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/to= olbar/SplitToolBar.java 2009-09-18 12:42:33 UTC (rev 17660) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/to= olbar/SplitToolBar.java 2009-09-18 13:27:39 UTC (rev 17661) @@ -22,9 +22,9 @@ import org.eclipse.swt.graphics.Image; import org.eclipse.swt.graphics.Point; import org.eclipse.swt.graphics.Rectangle; +import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.layout.RowData; import org.eclipse.swt.widgets.Combo; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; @@ -97,8 +97,9 @@ * bounds, then it is partially hidden, and all * remaining tools are completely hidden. */ - if (!intersection.equals(toolBounds)) + if (!intersection.equals(toolBounds)) { break; + } i++; } = @@ -108,24 +109,48 @@ */ final Shell floatingShell =3D new Shell(coolBar.getShell(), SWT.ON_TOP); - floatingShell.setLayout(new GridLayout()); - final ToolBar floatingBar =3D new ToolBar(floatingShell, = - SWT.FLAT | SWT.WRAP); + FillLayout shellLayout =3D new FillLayout(SWT.VERTICAL); + shellLayout.marginHeight =3D 5; + shellLayout.marginWidth =3D 5; + shellLayout.spacing =3D 5; + = + floatingShell.setLayout(shellLayout); SelectionListener selectionListener =3D new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { floatingShell.dispose(); } }; + = + ToolBar floatingBar =3D null; for (int j =3D i; j < tools.length; j++) { - cloneToolItem(floatingBar, tools[j], selectionListener); + ToolItem tool =3D tools[j]; + int style =3D tool.getStyle(); + + if ((style & SWT.SEPARATOR) !=3D 0) { + Control control =3D tool.getControl(); + if (control instanceof Combo) { + cloneCombo(floatingShell, selectionListener, + (Combo) control); + } + } else { + if (floatingBar =3D=3D null) { + floatingBar =3D new ToolBar(floatingShell, = + SWT.FLAT | SWT.WRAP); + } + cloneItem(floatingBar, tool, selectionListener); + } } +// Point size =3D floatingBar.computeSize (300, SWT.DEFAULT); +// System.out.println(size); +// floatingBar.setSize (size); +// floatingBar.pack(); + floatingShell.pack(); = /* * Drop down the menu below the chevron, with the left edges * aligned. */ pt =3D coolBar.toDisplay(new Point(event.x, event.y)); - floatingShell.pack(); arrange(floatingShell, pt); floatingShell.setVisible(true); floatingShell.setFocus(); @@ -235,31 +260,30 @@ * Creates a copy of {@code item} in the {@code destBar} and * adds given {@code selectionListener} to the created control. */ - protected void cloneToolItem(ToolBar destBar, ToolItem item, + protected void cloneItem(ToolBar destBar, ToolItem item, SelectionListener selectionListener) { - int style =3D item.getStyle(); + ToolItem copiedItem =3D createToolItem(destBar, item.getStyle(), + item.getImage(), item.getToolTipText()); + copiedItem.setEnabled(item.getEnabled()); + copiedItem.setSelection(item.getSelection()); + copySelectionListeners(item, copiedItem); + copiedItem.addSelectionListener(selectionListener); + } = - if ((style & SWT.SEPARATOR) !=3D 0) { - Control control =3D item.getControl(); - if (control instanceof Combo) { - Combo combo =3D (Combo) control; - Combo copiedCombo =3D createComboToolItem(destBar, combo.getStyle(), - combo.getToolTipText(), - Arrays.asList(combo.getItems()), - combo.getSelectionIndex()); - copiedCombo.setEnabled(combo.getEnabled()); - copiedCombo.setVisible(combo.getVisible()); - copySelectionListeners(combo, copiedCombo); - copiedCombo.addSelectionListener(selectionListener); - } - } else { - ToolItem copiedItem =3D createToolItem(destBar, item.getStyle(), - item.getImage(), item.getToolTipText()); - copiedItem.setEnabled(item.getEnabled()); - copiedItem.setSelection(item.getSelection()); - copySelectionListeners(item, copiedItem); - copiedItem.addSelectionListener(selectionListener); - } + /** + * Creates a copy of {@code combo} in the {@code parent} and + * adds given {@code selectionListener} to the created control. + */ + protected void cloneCombo(Composite parent, + SelectionListener selectionListener, Combo combo) { + Combo copiedCombo =3D createCombo(parent, combo.getStyle(), + combo.getToolTipText(), + Arrays.asList(combo.getItems()), + combo.getSelectionIndex()); + copiedCombo.setEnabled(combo.getEnabled()); + copiedCombo.setVisible(combo.getVisible()); + copySelectionListeners(combo, copiedCombo); + copiedCombo.addSelectionListener(selectionListener); } = /** @@ -292,21 +316,22 @@ */ protected Combo createComboToolItem(ToolBar bar, int style, String toolTipText, List comboItems, int selectionIndex) { - Combo combo =3D createCombo(bar, style, comboItems); + Combo combo =3D createCombo(bar, style, + toolTipText, comboItems, selectionIndex); ToolItem sep =3D new ToolItem(bar, SWT.SEPARATOR); sep.setWidth(combo.getSize().x); - combo.setToolTipText(toolTipText); - combo.select(selectionIndex); sep.setControl(combo); = return combo; } = protected Combo createCombo(Composite parent, int style, - List comboItems) { + String toolTipText, List comboItems, int selectionIndex) { Combo combo =3D new Combo(parent, style); - combo.setLayoutData(new RowData()); +// combo.setLayoutData(new RowData()); combo.setItems(comboItems.toArray(new String[comboItems.size()])); + combo.setToolTipText(toolTipText); + combo.select(selectionIndex); combo.pack(); return combo; } @@ -343,3 +368,4 @@ return result; } } + Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/toolbar/format/TextFormattingToolBar.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/to= olbar/format/TextFormattingToolBar.java 2009-09-18 12:42:33 UTC (rev 17660) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/to= olbar/format/TextFormattingToolBar.java 2009-09-18 13:27:39 UTC (rev 17661) @@ -41,7 +41,10 @@ */ public class TextFormattingToolBar extends SplitToolBar { = - private static final String NORMAL_FONT =3D "Normal"; //$NON-NLS-1$ + private static final String NORMAL_BLOCK_FORMAT = + =3D "- Block Format -"; //$NON-NLS-1$ + private static final String NORMAL_FONT =3D "- Font Name -"; //$NON-NLS-1$ + private static final String NORMAL_SIZE =3D "- Font Size -"; //$NON-NLS-1$ = private static final String ID =3D "TEXT_FORMATTING_TOOLBAR"; //$NON-NLS-= 1$ = @@ -92,7 +95,7 @@ emptySeparator.setWidth(1); = List blockFormatItems =3D new ArrayList(); - blockFormatItems.add("Normal"); //$NON-NLS-1$ + blockFormatItems.add(NORMAL_BLOCK_FORMAT); blockFormatItems.add("Address"); //$NON-NLS-1$ // blockFormatItems.add("Numbered List"); // blockFormatItems.add("Bulleted List"); @@ -122,7 +125,7 @@ // itemDescriptors.add(new ToolItemDescriptor(sep, false, null, false)); = List fontSizes =3D new ArrayList(); - fontSizes.add(NORMAL_FONT); + fontSizes.add(NORMAL_SIZE); for (int i =3D 1; i < 8; i++) { fontSizes.add(Integer.toString(i)); //$NON-NLS-1$ } --===============1426564069364306773==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 11:02:41 2009 Content-Type: multipart/mixed; boundary="===============2229495202726291199==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17662 - trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/common. Date: Fri, 18 Sep 2009 11:02:41 -0400 Message-ID: <200909181502.n8IF2fHq027883@svn01.web.mwc.hst.phx2.redhat.com> --===============2229495202726291199== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: sdzmitrovich Date: 2009-09-18 11:02:38 -0400 (Fri, 18 Sep 2009) New Revision: 17662 Added: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/CSSStyleListener.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/CSSStyleManager.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/CSSStyleRuleContainer.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/ICSSViewListner.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/StyleAttribyteContainer.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/StyleContainer.java Removed: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/CSSSelectionListener.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/CSSStyleManager.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/CSSStyleRuleContainer.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/StyleAttribyteContainer.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/StyleContainer.java Log: https://jira.jboss.org/jira/browse/JBIDE-4849 Deleted: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/= css/common/CSSSelectionListener.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSSelectionListener.java 2009-09-18 13:27:39 UTC (rev 17661) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSSelectionListener.java 2009-09-18 15:02:38 UTC (rev 17662) @@ -1,103 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007-2009 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributor: - * Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ - -package org.jboss.tools.jst.css.common; - -import org.eclipse.core.runtime.ListenerList; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.StructuredSelection; -import org.eclipse.ui.INullSelectionListener; -import org.eclipse.ui.ISelectionListener; -import org.eclipse.ui.IWorkbenchPart; -import org.eclipse.ui.PlatformUI; -import org.jboss.tools.jst.css.CssPlugin; - -public class CSSSelectionListener implements ISelectionListener { - - private static CSSSelectionListener instance; - - private ListenerList listeners =3D new ListenerList(); - - CSSStyleManager styleManager =3D new CSSStyleManager(); - - private CSSSelectionListener() { - } - - public synchronized static CSSSelectionListener getInstance() { - - if (instance =3D=3D null) { - instance =3D new CSSSelectionListener(); - } - return instance; - } - - public void addSelectionListener(ISelectionListener listener) { - - // if added the first listener start listing - if (listeners.size() =3D=3D 0) - startListening(); - - listeners.add(listener); - } - - public void removeSelectionListener(ISelectionListener listener) { - listeners.remove(listener); - - // if removed last listener start listing - if (listeners.size() =3D=3D 0) - stopListening(); - } - - private void startListening() { - PlatformUI.getWorkbench().getActiveWorkbenchWindow() - .getSelectionService().addPostSelectionListener(this); -// PlatformUI.getWorkbench().getActiveWorkbenchWindow() -// .getSelectionService().addSelectionListener(this); - } - - private void stopListening() { - PlatformUI.getWorkbench().getActiveWorkbenchWindow() - .getSelectionService().removePostSelectionListener(this); - // PlatformUI.getWorkbench().getActiveWorkbenchWindow() - // .getSelectionService().addSelectionListener(this); - - } - - public void selectionChanged(IWorkbenchPart part, ISelection selection) { - - StyleContainer styleContainer =3D styleManager - .recognizeCSSStyle(selection); - - ISelection selectionToLiteners =3D null; - - if (styleContainer !=3D null) { - selectionToLiteners =3D new StructuredSelection(styleContainer); - } else { - selectionToLiteners =3D StructuredSelection.EMPTY; - } - - Object[] array =3D listeners.getListeners(); - for (int i =3D 0; i < array.length; i++) { - final ISelectionListener l =3D (ISelectionListener) array[i]; - if ((part !=3D null && selection !=3D null) - || l instanceof INullSelectionListener) { - - try { - l.selectionChanged(part, selectionToLiteners); - } catch (Exception e) { - CssPlugin.log(e.getLocalizedMessage()); - } - } - - } - - } -} Copied: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/c= ss/common/CSSStyleListener.java (from rev 17608, trunk/jst/plugins/org.jbos= s.tools.jst.css/src/org/jboss/tools/jst/css/common/CSSSelectionListener.jav= a) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleListener.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleListener.java 2009-09-18 15:02:38 UTC (rev 17662) @@ -0,0 +1,195 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ + +package org.jboss.tools.jst.css.common; + +import org.eclipse.core.runtime.ListenerList; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.StructuredSelection; +import org.eclipse.ui.IEditorPart; +import org.eclipse.ui.IPartListener; +import org.eclipse.ui.ISelectionListener; +import org.eclipse.ui.IWorkbenchPart; +import org.eclipse.ui.PlatformUI; +import org.eclipse.ui.views.contentoutline.ContentOutline; +import org.eclipse.wst.sse.core.internal.provisional.INodeAdapter; +import org.eclipse.wst.sse.core.internal.provisional.INodeNotifier; +import org.jboss.tools.jst.css.CssPlugin; + +public class CSSStyleListener implements ISelectionListener, INodeAdapter, + IPartListener { + + private static CSSStyleListener instance; + + private ListenerList listeners =3D new ListenerList(); + + private CSSStyleManager styleManager =3D new CSSStyleManager(); + + private StyleContainer currentStyle; + + private IWorkbenchPart currentPart; + + private CSSStyleListener() { + } + + public synchronized static CSSStyleListener getInstance() { + + if (instance =3D=3D null) { + instance =3D new CSSStyleListener(); + } + return instance; + } + + public void addSelectionListener(ICSSViewListner listener) { + + // if added the first listener start listing + if (listeners.size() =3D=3D 0) + startListening(); + + listeners.add(listener); + } + + public void removeSelectionListener(ICSSViewListner listener) { + listeners.remove(listener); + + // if removed last listener start listing + if (listeners.size() =3D=3D 0) + stopListening(); + } + + private void startListening() { + PlatformUI.getWorkbench().getActiveWorkbenchWindow().getPartService() + .addPartListener(this); + PlatformUI.getWorkbench().getActiveWorkbenchWindow() + .getSelectionService().addPostSelectionListener(this); + + // PlatformUI.getWorkbench().getActiveWorkbenchWindow() + // .getSelectionService().addSelectionListener(this); + } + + private void stopListening() { + PlatformUI.getWorkbench().getActiveWorkbenchWindow().getPartService() + .removePartListener(this); + PlatformUI.getWorkbench().getActiveWorkbenchWindow() + .getSelectionService().removePostSelectionListener(this); + // PlatformUI.getWorkbench().getActiveWorkbenchWindow() + // .getSelectionService().addSelectionListener(this); + + } + + public void selectionChanged(IWorkbenchPart part, ISelection selection) { + + StyleContainer newStyle =3D styleManager.recognizeCSSStyle(selection); + + if (isImportant(part) + && ((currentStyle =3D=3D null) || !(currentStyle.equals(newStyle)))) { + + disconnect(currentStyle); + connect(newStyle); + currentStyle =3D newStyle; + + ISelection selectionToLiteners =3D null; + + if (newStyle !=3D null) { + selectionToLiteners =3D new StructuredSelection(newStyle); + } else { + selectionToLiteners =3D StructuredSelection.EMPTY; + } + + Object[] array =3D listeners.getListeners(); + for (int i =3D 0; i < array.length; i++) { + final ICSSViewListner l =3D (ICSSViewListner) array[i]; + if ((part !=3D null) && (l !=3D currentPart) && (selection !=3D null))= { + + try { + l.selectionChanged(part, selectionToLiteners); + } catch (Exception e) { + CssPlugin.log(e.getLocalizedMessage()); + } + } + + } + + } + + } + + protected boolean isImportant(IWorkbenchPart part) { + if ((part instanceof IEditorPart) || (part instanceof ContentOutline)) + return true; + return false; + } + + private void connect(StyleContainer style) { + + if (style !=3D null) { + style.addNodeListener(this); + } + + } + + private void disconnect(StyleContainer style) { + if (style !=3D null) { + style.removeNodelListener(this); + } + } + + public boolean isAdapterForType(Object type) { + return type.equals(CSSStyleListener.class); + } + + public void notifyChanged(INodeNotifier notifier, int eventType, + Object changedFeature, Object oldValue, Object newValue, int pos) { + Object[] array =3D listeners.getListeners(); + for (int i =3D 0; i < array.length; i++) { + final ICSSViewListner l =3D (ICSSViewListner) array[i]; + + if (currentPart !=3D l) { + try { + l.styleChanged(currentStyle); + } catch (Exception e) { + CssPlugin.log(e.getLocalizedMessage()); + } + } + + } + + } + + public void partActivated(IWorkbenchPart part) { + currentPart =3D part; + Object[] array =3D listeners.getListeners(); + for (int i =3D 0; i < array.length; i++) { + final ICSSViewListner l =3D (ICSSViewListner) array[i]; + + if (l instanceof IPartListener) { + try { + ((IPartListener) l).partActivated(part); + } catch (Exception e) { + CssPlugin.log(e.getLocalizedMessage()); + } + } + } + } + + public void partBroughtToTop(IWorkbenchPart part) { + partActivated(part); + } + + public void partClosed(IWorkbenchPart part) { + } + + public void partDeactivated(IWorkbenchPart part) { + } + + public void partOpened(IWorkbenchPart part) { + } +} Deleted: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/= css/common/CSSStyleManager.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleManager.java 2009-09-18 13:27:39 UTC (rev 17661) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleManager.java 2009-09-18 15:02:38 UTC (rev 17662) @@ -1,216 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007-2009 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributor: - * Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ -package org.jboss.tools.jst.css.common; - -import org.eclipse.jface.text.ITextSelection; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.wst.css.core.internal.provisional.adapters.IStyleSheetA= dapter; -import org.eclipse.wst.css.core.internal.provisional.document.ICSSDocument; -import org.eclipse.wst.css.core.internal.provisional.document.ICSSModel; -import org.eclipse.wst.css.core.internal.provisional.document.ICSSNode; -import org.eclipse.wst.sse.core.internal.provisional.INodeNotifier; -import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion; -import org.eclipse.wst.xml.core.internal.contentmodel.CMAttributeDeclarati= on; -import org.eclipse.wst.xml.core.internal.contentmodel.CMElementDeclaration; -import org.eclipse.wst.xml.core.internal.contentmodel.CMNamedNodeMap; -import org.eclipse.wst.xml.core.internal.contentmodel.modelquery.ModelQuer= y; -import org.eclipse.wst.xml.core.internal.modelquery.ModelQueryUtil; -import org.w3c.dom.Attr; -import org.w3c.dom.Element; -import org.w3c.dom.Node; -import org.w3c.dom.Text; -import org.w3c.dom.css.CSSStyleRule; -import org.w3c.dom.css.CSSStyleSheet; -import org.w3c.dom.css.ElementCSSInlineStyle; - -/** - * @author Sergey Dzmitrovich - * = - */ -public class CSSStyleManager { - - public static final String STYLE_TAG_NAME =3D "style"; //$NON-NLS-1$ - - public static final String STYLE_ATTRIBUTE_NAME =3D "style"; //$NON-NLS-1$ - - /** - * = - * @param selection - * @return - */ - public StyleContainer recognizeCSSStyle(ISelection selection) { - - StyleContainer container =3D null; - if (selection instanceof IStructuredSelection) { - - Object selectedObject =3D ((IStructuredSelection) selection) - .getFirstElement(); - - // if selected object is node in css file - if (selectedObject instanceof ICSSNode) { - - CSSStyleRule styleRule =3D getStyleRule((ICSSNode) selectedObject); - - if (styleRule !=3D null) - container =3D new CSSStyleRuleContainer(styleRule); - - } else if ((selectedObject instanceof Element) - || (selectedObject instanceof Attr)) { - - Element selectedElement =3D null; - - if (selectedObject instanceof Attr) - selectedElement =3D ((Attr) selectedObject).getOwnerElement(); - else - selectedElement =3D (Element) selectedObject; - - if (isSuitableElement(selectedElement)) { - - container =3D new StyleAttribyteContainer(selectedElement); - - } - } else if (selectedObject instanceof Text) { - - Text styleText =3D (Text) selectedObject; - - Node parentNode =3D styleText.getParentNode(); - - if ((parentNode !=3D null) - && STYLE_TAG_NAME.equalsIgnoreCase(parentNode - .getNodeName())) { - - int offset =3D getRelationalOffset(styleText, - ((ITextSelection) selection).getOffset()); - - CSSStyleSheet sheet =3D getSheet(parentNode); - - ICSSNode node =3D getNode(sheet, offset); - - CSSStyleRule styleRule =3D getStyleRule(node); - - if (styleRule !=3D null) { - container =3D new CSSStyleRuleContainer(styleRule); - } - } - } - } - return container; - } - - /** - * = - * @param styleContainer - * @return - */ - private CSSStyleSheet getSheet(Node styleContainer) { - - if (styleContainer instanceof INodeNotifier) { - - INodeNotifier notifier =3D (INodeNotifier) styleContainer; - - IStyleSheetAdapter adapter =3D (IStyleSheetAdapter) notifier - .getAdapterFor(IStyleSheetAdapter.class); - - if (adapter !=3D null) { - - return (CSSStyleSheet) adapter.getSheet(); - } - - } - return null; - } - - /** - * = - * @param sheet - * @param offset - * @return - */ - private ICSSNode getNode(CSSStyleSheet sheet, int offset) { - - ICSSModel model =3D ((ICSSDocument) sheet).getModel(); - - if (model !=3D null) - - return (ICSSNode) model.getIndexedRegion(offset); - - return null; - - } - - /** - * = - * @param element - * @return - */ - private boolean isSuitableElement(Element element) { - - if (element instanceof ElementCSSInlineStyle - && isAttributeAvailable(element, STYLE_TAG_NAME)) { - return true; - } - - return false; - } - - /** - * = - * @param node - * @return - */ - private CSSStyleRule getStyleRule(ICSSNode node) { - - while (node !=3D null) { - - if (node instanceof CSSStyleRule) - return (CSSStyleRule) node; - - node =3D node.getParentNode(); - } - - return null; - } - - /** - * = - * @param selection - * @param styleText - * @return - */ - private int getRelationalOffset(Node basicNode, int absoluteOffset) { - - return absoluteOffset - ((IndexedRegion) basicNode).getStartOffset(); - } - - = - /** - * @param element - * @param attrName - * @return - */ - private static boolean isAttributeAvailable(Element element, String attrN= ame) { - ModelQuery modelQuery =3D ModelQueryUtil.getModelQuery(element - .getOwnerDocument()); - if (modelQuery !=3D null) { - CMElementDeclaration decl =3D modelQuery - .getCMElementDeclaration(element); - if (decl !=3D null) { - CMNamedNodeMap map =3D decl.getAttributes(); - if ((CMAttributeDeclaration) map.getNamedItem(attrName) !=3D null) { - return true; - } - } - } - - return false; - } -} Copied: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/c= ss/common/CSSStyleManager.java (from rev 17608, trunk/jst/plugins/org.jboss= .tools.jst.css/src/org/jboss/tools/jst/css/common/CSSStyleManager.java) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleManager.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleManager.java 2009-09-18 15:02:38 UTC (rev 17662) @@ -0,0 +1,216 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jst.css.common; + +import org.eclipse.jface.text.ITextSelection; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.wst.css.core.internal.provisional.adapters.IStyleSheetA= dapter; +import org.eclipse.wst.css.core.internal.provisional.document.ICSSDocument; +import org.eclipse.wst.css.core.internal.provisional.document.ICSSModel; +import org.eclipse.wst.css.core.internal.provisional.document.ICSSNode; +import org.eclipse.wst.sse.core.internal.provisional.INodeNotifier; +import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion; +import org.eclipse.wst.xml.core.internal.contentmodel.CMAttributeDeclarati= on; +import org.eclipse.wst.xml.core.internal.contentmodel.CMElementDeclaration; +import org.eclipse.wst.xml.core.internal.contentmodel.CMNamedNodeMap; +import org.eclipse.wst.xml.core.internal.contentmodel.modelquery.ModelQuer= y; +import org.eclipse.wst.xml.core.internal.modelquery.ModelQueryUtil; +import org.w3c.dom.Attr; +import org.w3c.dom.Element; +import org.w3c.dom.Node; +import org.w3c.dom.Text; +import org.w3c.dom.css.CSSStyleRule; +import org.w3c.dom.css.CSSStyleSheet; +import org.w3c.dom.css.ElementCSSInlineStyle; + +/** + * @author Sergey Dzmitrovich + * = + */ +public class CSSStyleManager { + + public static final String STYLE_TAG_NAME =3D "style"; //$NON-NLS-1$ + + public static final String STYLE_ATTRIBUTE_NAME =3D "style"; //$NON-NLS-1$ + + /** + * = + * @param selection + * @return + */ + public StyleContainer recognizeCSSStyle(ISelection selection) { + + StyleContainer container =3D null; + if (selection instanceof IStructuredSelection) { + + Object selectedObject =3D ((IStructuredSelection) selection) + .getFirstElement(); + + // if selected object is node in css file + if (selectedObject instanceof ICSSNode) { + + CSSStyleRule styleRule =3D getStyleRule((ICSSNode) selectedObject); + + if (styleRule !=3D null) + container =3D new CSSStyleRuleContainer(styleRule); + + } else if ((selectedObject instanceof Element) + || (selectedObject instanceof Attr)) { + + Element selectedElement =3D null; + + if (selectedObject instanceof Attr) + selectedElement =3D ((Attr) selectedObject).getOwnerElement(); + else + selectedElement =3D (Element) selectedObject; + + if (isSuitableElement(selectedElement)) { + + container =3D new StyleAttribyteContainer(selectedElement); + + } + } else if ((selectedObject instanceof Text) + && (selection instanceof ITextSelection)) { + + Text styleText =3D (Text) selectedObject; + + Node parentNode =3D styleText.getParentNode(); + + if ((parentNode !=3D null) + && STYLE_TAG_NAME.equalsIgnoreCase(parentNode + .getNodeName())) { + + int offset =3D getRelationalOffset(styleText, + ((ITextSelection) selection).getOffset()); + + CSSStyleSheet sheet =3D getSheet(parentNode); + + ICSSNode node =3D getNode(sheet, offset); + + CSSStyleRule styleRule =3D getStyleRule(node); + + if (styleRule !=3D null) { + container =3D new CSSStyleRuleContainer(styleRule); + } + } + } + } + return container; + } + + /** + * = + * @param styleContainer + * @return + */ + private CSSStyleSheet getSheet(Node styleContainer) { + + if (styleContainer instanceof INodeNotifier) { + + INodeNotifier notifier =3D (INodeNotifier) styleContainer; + + IStyleSheetAdapter adapter =3D (IStyleSheetAdapter) notifier + .getAdapterFor(IStyleSheetAdapter.class); + + if (adapter !=3D null) { + + return (CSSStyleSheet) adapter.getSheet(); + } + + } + return null; + } + + /** + * = + * @param sheet + * @param offset + * @return + */ + private ICSSNode getNode(CSSStyleSheet sheet, int offset) { + + ICSSModel model =3D ((ICSSDocument) sheet).getModel(); + + if (model !=3D null) + + return (ICSSNode) model.getIndexedRegion(offset); + + return null; + + } + + /** + * = + * @param element + * @return + */ + private boolean isSuitableElement(Element element) { + + if (element instanceof ElementCSSInlineStyle + && isAttributeAvailable(element, STYLE_TAG_NAME)) { + return true; + } + + return false; + } + + /** + * = + * @param node + * @return + */ + private CSSStyleRule getStyleRule(ICSSNode node) { + + while (node !=3D null) { + + if (node instanceof CSSStyleRule) + return (CSSStyleRule) node; + + node =3D node.getParentNode(); + } + + return null; + } + + /** + * = + * @param selection + * @param styleText + * @return + */ + private int getRelationalOffset(Node basicNode, int absoluteOffset) { + + return absoluteOffset - ((IndexedRegion) basicNode).getStartOffset(); + } + + /** + * @param element + * @param attrName + * @return + */ + private static boolean isAttributeAvailable(Element element, String attrN= ame) { + ModelQuery modelQuery =3D ModelQueryUtil.getModelQuery(element + .getOwnerDocument()); + if (modelQuery !=3D null) { + CMElementDeclaration decl =3D modelQuery + .getCMElementDeclaration(element); + if (decl !=3D null) { + CMNamedNodeMap map =3D decl.getAttributes(); + if ((CMAttributeDeclaration) map.getNamedItem(attrName) !=3D null) { + return true; + } + } + } + + return false; + } +} Deleted: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/= css/common/CSSStyleRuleContainer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleRuleContainer.java 2009-09-18 13:27:39 UTC (rev 17661) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleRuleContainer.java 2009-09-18 15:02:38 UTC (rev 17662) @@ -1,75 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007-2009 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributor: - * Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ -package org.jboss.tools.jst.css.common; - -import java.util.HashMap; -import java.util.Map; - -import org.jboss.tools.jst.jsp.outline.cssdialog.common.Constants; -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSStyleRule; - -/** - * @author Sergey Dzmitrovich - * = - */ -public class CSSStyleRuleContainer extends StyleContainer { - - private CSSStyleRule styleRule; - - public CSSStyleRuleContainer(CSSStyleRule styleRule) { - this.styleRule =3D styleRule; - } - - public void applyStyleAttributes(Map attributes) { - - final CSSStyleDeclaration declaration =3D styleRule.getStyle(); - - // set properties - - if (attributes !=3D null) { - - if ((attributes.size() =3D=3D 0) && (declaration.getLength() > 0)) { - declaration.setCssText(Constants.EMPTY); - } else { - for (final Map.Entry me : attributes.entrySet()) { - if ((me.getValue() =3D=3D null) - || (me.getValue().length() =3D=3D 0)) { - declaration.removeProperty(me.getKey()); - } else if (!me.getValue().equals( - declaration.getPropertyValue(me.getKey()))) { - declaration.setProperty(me.getKey(), me.getValue(), - Constants.EMPTY); - } - } - - } - } - - } - - public Map getStyleAttributes() { - CSSStyleDeclaration declaration =3D styleRule.getStyle(); - Map styleMap =3D new HashMap(); - for (int i =3D 0; i < declaration.getLength(); i++) { - String propperty =3D declaration.item(i); - String value =3D declaration.getPropertyValue(propperty); - styleMap.put(propperty, value); - } - - return styleMap; - } - - public Object getStyleObject() { - return styleRule; - } - -} Copied: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/c= ss/common/CSSStyleRuleContainer.java (from rev 17608, trunk/jst/plugins/org= .jboss.tools.jst.css/src/org/jboss/tools/jst/css/common/CSSStyleRuleContain= er.java) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleRuleContainer.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleRuleContainer.java 2009-09-18 15:02:38 UTC (rev 17662) @@ -0,0 +1,103 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jst.css.common; + +import java.util.HashMap; +import java.util.Map; + +import org.eclipse.wst.css.core.internal.provisional.document.ICSSNodeList; +import org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleDec= laration; +import org.eclipse.wst.sse.core.internal.provisional.INodeAdapter; +import org.jboss.tools.jst.jsp.outline.cssdialog.common.Constants; +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSStyleRule; + +/** + * @author Sergey Dzmitrovich + * = + */ +public class CSSStyleRuleContainer extends StyleContainer { + + private CSSStyleRule styleRule; + + public CSSStyleRuleContainer(CSSStyleRule styleRule) { + this.styleRule =3D styleRule; + } + + public void applyStyleAttributes(Map attributes) { + + final CSSStyleDeclaration declaration =3D styleRule.getStyle(); + + // set properties + + if (attributes !=3D null) { + + if ((attributes.size() =3D=3D 0) && (declaration.getLength() > 0)) { + declaration.setCssText(Constants.EMPTY); + } else { + for (final Map.Entry me : attributes.entrySet()) { + if ((me.getValue() =3D=3D null) + || (me.getValue().length() =3D=3D 0)) { + declaration.removeProperty(me.getKey()); + } else if (!me.getValue().equals( + declaration.getPropertyValue(me.getKey()))) { + declaration.setProperty(me.getKey(), me.getValue(), + Constants.EMPTY); + } + } + + } + } + + } + + public Map getStyleAttributes() { + CSSStyleDeclaration declaration =3D styleRule.getStyle(); + Map styleMap =3D new HashMap(); + for (int i =3D 0; i < declaration.getLength(); i++) { + String propperty =3D declaration.item(i); + String value =3D declaration.getPropertyValue(propperty); + styleMap.put(propperty, value); + } + + return styleMap; + } + + public Object getStyleObject() { + return styleRule; + } + + @Override + public void addNodeListener(INodeAdapter adapter) { + ICSSStyleDeclaration declaration =3D (ICSSStyleDeclaration) styleRule + .getStyle(); + addNodeAdapter(declaration, adapter); + ICSSNodeList nodeList =3D declaration.getChildNodes(); + for (int i =3D 0; i < nodeList.getLength(); i++) { + addNodeAdapter(nodeList.item(i), adapter); + } + + } + + @Override + public void removeNodelListener(INodeAdapter adapter) { + + ICSSStyleDeclaration declaration =3D (ICSSStyleDeclaration) styleRule + .getStyle(); + removeNodeAdapter(declaration, adapter); + ICSSNodeList nodeList =3D declaration.getChildNodes(); + for (int i =3D 0; i < nodeList.getLength(); i++) { + removeNodeAdapter(nodeList.item(i), adapter); + } + + } + +} Added: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/cs= s/common/ICSSViewListner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/ICSSViewListner.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/ICSSViewListner.java 2009-09-18 15:02:38 UTC (rev 17662) @@ -0,0 +1,9 @@ +package org.jboss.tools.jst.css.common; + +import org.eclipse.ui.ISelectionListener; + +public interface ICSSViewListner extends ISelectionListener { + + public void styleChanged(StyleContainer styleContainer); + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jbos= s/tools/jst/css/common/ICSSViewListner.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + native Deleted: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/= css/common/StyleAttribyteContainer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/StyleAttribyteContainer.java 2009-09-18 13:27:39 UTC (rev 17661) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/StyleAttribyteContainer.java 2009-09-18 15:02:38 UTC (rev 17662) @@ -1,79 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007-2009 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributor: - * Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ -package org.jboss.tools.jst.css.common; - -import java.util.HashMap; -import java.util.Map; - -import org.jboss.tools.jst.jsp.outline.cssdialog.common.CSSConstants; -import org.jboss.tools.jst.jsp.outline.cssdialog.common.Constants; -import org.jboss.tools.jst.jsp.outline.cssdialog.common.Util; -import org.w3c.dom.Element; - -/** - * @author Sergey Dzmitrovich - * = - */ -public class StyleAttribyteContainer extends StyleContainer { - - public static final String STYLE_ATTRIBUTE_NAME =3D "style"; //$NON-NLS-1$ - - private Element element; - - public StyleAttribyteContainer(Element element) { - this.element =3D element; - } - - public void applyStyleAttributes(Map attributes) { - - StringBuffer buf =3D new StringBuffer(); - for (Map.Entry me : attributes.entrySet()) { - - if ((me.getValue() !=3D null) && (me.getValue().length() !=3D 0)) - buf.append(me.getKey() + Constants.COLON + me.getValue() - + Constants.SEMICOLON); - } - - element.setAttribute(STYLE_ATTRIBUTE_NAME, buf.toString()); - - } - - public Map getStyleAttributes() { - - String styleString =3D element.getAttribute(STYLE_ATTRIBUTE_NAME); - - Map styleMap =3D new HashMap(); - - if ((styleString !=3D null) && (styleString.length() > 0)) { - - String[] styles =3D styleString.split(Constants.SEMICOLON); - for (String styleElement : styles) { - String[] styleElementParts =3D styleElement.trim().split( - Constants.COLON); - if ((styleElementParts !=3D null) - && (styleElementParts.length =3D=3D 2) - && Util.searchInElement(styleElementParts[0], - CSSConstants.CSS_STYLES_MAP)) { - - styleMap.put(styleElementParts[0], styleElementParts[1]); - } - } - - } - - return styleMap; - } - - public Object getStyleObject() { - return element; - } - -} Copied: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/c= ss/common/StyleAttribyteContainer.java (from rev 17608, trunk/jst/plugins/o= rg.jboss.tools.jst.css/src/org/jboss/tools/jst/css/common/StyleAttribyteCon= tainer.java) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/StyleAttribyteContainer.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/StyleAttribyteContainer.java 2009-09-18 15:02:38 UTC (rev 17662) @@ -0,0 +1,92 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jst.css.common; + +import java.util.HashMap; +import java.util.Map; + +import org.eclipse.wst.sse.core.internal.provisional.INodeAdapter; +import org.jboss.tools.jst.jsp.outline.cssdialog.common.CSSConstants; +import org.jboss.tools.jst.jsp.outline.cssdialog.common.Constants; +import org.jboss.tools.jst.jsp.outline.cssdialog.common.Util; +import org.w3c.dom.Element; + +/** + * @author Sergey Dzmitrovich + * = + */ +public class StyleAttribyteContainer extends StyleContainer { + + public static final String STYLE_ATTRIBUTE_NAME =3D "style"; //$NON-NLS-1$ + + private Element element; + + public StyleAttribyteContainer(Element element) { + this.element =3D element; + } + + public void applyStyleAttributes(Map attributes) { + + StringBuffer buf =3D new StringBuffer(); + for (Map.Entry me : attributes.entrySet()) { + + if ((me.getValue() !=3D null) && (me.getValue().length() !=3D 0)) + buf.append(me.getKey() + Constants.COLON + me.getValue() + + Constants.SEMICOLON); + } + + element.setAttribute(STYLE_ATTRIBUTE_NAME, buf.toString()); + + } + + public Map getStyleAttributes() { + + String styleString =3D element.getAttribute(STYLE_ATTRIBUTE_NAME); + + Map styleMap =3D new HashMap(); + + if ((styleString !=3D null) && (styleString.length() > 0)) { + + String[] styles =3D styleString.split(Constants.SEMICOLON); + for (String styleElement : styles) { + String[] styleElementParts =3D styleElement.trim().split( + Constants.COLON); + if ((styleElementParts !=3D null) + && (styleElementParts.length =3D=3D 2) + && Util.searchInElement(styleElementParts[0], + CSSConstants.CSS_STYLES_MAP)) { + + styleMap.put(styleElementParts[0], styleElementParts[1]); + } + } + + } + + return styleMap; + } + + public Object getStyleObject() { + return element; + } + + @Override + public void addNodeListener(INodeAdapter adapter) { + addNodeAdapter(element, adapter); + = + } + + @Override + public void removeNodelListener(INodeAdapter adapter) { + removeNodeAdapter(element, adapter); + = + } + +} Deleted: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/= css/common/StyleContainer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/StyleContainer.java 2009-09-18 13:27:39 UTC (rev 17661) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/StyleContainer.java 2009-09-18 15:02:38 UTC (rev 17662) @@ -1,33 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007-2009 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributor: - * Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ -package org.jboss.tools.jst.css.common; - -import java.util.Map; - -/** - * @author Sergey Dzmitrovich - * = - */ -public abstract class StyleContainer { - - public abstract Map getStyleAttributes(); - - public abstract void applyStyleAttributes(Map attributes); - - public abstract Object getStyleObject(); - - public boolean equals(Object obj) { - if (obj instanceof StyleContainer) - obj =3D ((StyleContainer) obj).getStyleObject(); - return getStyleObject().equals(obj); - } - -} Copied: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/c= ss/common/StyleContainer.java (from rev 17608, trunk/jst/plugins/org.jboss.= tools.jst.css/src/org/jboss/tools/jst/css/common/StyleContainer.java) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/StyleContainer.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/StyleContainer.java 2009-09-18 15:02:38 UTC (rev 17662) @@ -0,0 +1,53 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jst.css.common; + +import java.util.Map; + +import org.eclipse.wst.sse.core.internal.provisional.INodeAdapter; +import org.eclipse.wst.sse.core.internal.provisional.INodeNotifier; + +/** + * @author Sergey Dzmitrovich + * = + */ +public abstract class StyleContainer { + + public abstract Map getStyleAttributes(); + + public abstract void applyStyleAttributes(Map attributes); + + public abstract Object getStyleObject(); + + public boolean equals(Object obj) { + if (obj instanceof StyleContainer) + obj =3D ((StyleContainer) obj).getStyleObject(); + return getStyleObject().equals(obj); + } + + protected void addNodeAdapter(Object node, INodeAdapter adapter) { + + if (node instanceof INodeNotifier) + ((INodeNotifier) node).addAdapter(adapter); + + } + + protected void removeNodeAdapter(Object node, INodeAdapter adapter) { + if (node instanceof INodeNotifier) + ((INodeNotifier) node).removeAdapter(adapter); + + } + + public abstract void addNodeListener(INodeAdapter adapter); + + public abstract void removeNodelListener(INodeAdapter adapter); + +} --===============2229495202726291199==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 11:03:41 2009 Content-Type: multipart/mixed; boundary="===============4337180183344036909==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17663 - in trunk/jst/plugins/org.jboss.tools.jst.jsp: META-INF and 3 other directories. Date: Fri, 18 Sep 2009 11:03:41 -0400 Message-ID: <200909181503.n8IF3fOC028046@svn01.web.mwc.hst.phx2.redhat.com> --===============4337180183344036909== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-18 11:03:39 -0400 (Fri, 18 Sep 2009) New Revision: 17663 Added: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/dnd/ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/dnd/FileDropCommand.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/dnd/FileTagProposalLoader.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/dnd/JSPTagProposalFactory.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/dnd/PaletteDropCommand.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/dnd/TagProposal.java Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/JSPTextEditor.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/ou= tline/DefaultDropCommandRunner.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Initial moving jsp related dnd to jst.jsp Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF 2009-09-= 18 15:02:38 UTC (rev 17662) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF 2009-09-= 18 15:03:39 UTC (rev 17663) @@ -16,6 +16,7 @@ org.jboss.tools.jst.jsp.editor, org.jboss.tools.jst.jsp.format, org.jboss.tools.jst.jsp.jspeditor, + org.jboss.tools.jst.jsp.jspeditor.dnd, org.jboss.tools.jst.jsp.messages, org.jboss.tools.jst.jsp.outline, org.jboss.tools.jst.jsp.outline.cssdialog, Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml 2009-09-18 15:02:3= 8 UTC (rev 17662) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml 2009-09-18 15:03:3= 9 UTC (rev 17663) @@ -396,6 +396,10 @@ class=3D"org.jboss.tools.jst.jsp.outline.VpeProperties"/> + +
= extensionMap =3D new HashM= ap(); + = + static TagProposal[] IMG_TAG_PROPOSALS =3D new TagProposal[]{ + new TagProposal( + DropURI.JSF_HTML_URI, + "h", //$NON-NLS-1$ + "graphicImage", //$NON-NLS-1$ + new AbsoluteFilePathAttributeValueLoader("value","","") //$NON-NLS-1$ /= /$NON-NLS-2$ //$NON-NLS-3$ + ), + new TagProposal( + DropURI.HTML_4_0_URI, + ITagProposal.EMPTY_PREFIX, + "img", //$NON-NLS-1$ + new AbsoluteFilePathAttributeValueLoader("src","","") //$NON-NLS-1$ //$= NON-NLS-2$ //$NON-NLS-3$ + ), + new TagProposal( + DropURI.STRUTS_HTML_URI, + "html", //$NON-NLS-1$ + "img", //$NON-NLS-1$ + new AbsoluteFilePathAttributeValueLoader("page","","") //$NON-NLS-1$ //= $NON-NLS-2$ //$NON-NLS-3$ + ), + new TagProposal( + DropURI.SEAM_URI, + "s", //$NON-NLS-1$ + "graphicImage", //$NON-NLS-1$ + new AbsoluteFilePathAttributeValueLoader("url","","") //$NON-NLS-1$ //= $NON-NLS-2$ //$NON-NLS-3$ + ) +// yradtsevich: fix of JBIDE-3984: Exclude t:graphicImage option from Inse= rt tag dialog = +// , +// new TagProposal( +// DropURI.TOMOHAWK_URI, +// "t", +// "graphicImage", +// new AbsoluteFilePathAttributeValueLoader("url","","") +// ) + }; + = + static TagProposal[] CSS_TAG_PROPOSALS =3D new TagProposal[]{ + new TagProposal( + DropURI.HTML_4_0_URI, + ITagProposal.EMPTY_PREFIX, + "link", //$NON-NLS-1$ + new CssLinkAttributeValueLoader("href") //$NON-NLS-1$ + ), + }; + = + static TagProposal JSP_INCLUDE =3D new TagProposal( + DropURI.JSP_URI, + "jsp", //$NON-NLS-1$ + "include", //$NON-NLS-1$ + new AbsoluteFilePathAttributeValueLoader("page","","") //$NON-NLS-= 1$ //$NON-NLS-2$ //$NON-NLS-3$ + ); + = + static TagProposal JSP_FORWARD =3D new TagProposal( + DropURI.JSP_URI, + "jsp", //$NON-NLS-1$ + "forward", //$NON-NLS-1$ + new AbsoluteFilePathAttributeValueLoader("page","","") //$NON-NLS-1$ //$= NON-NLS-2$ //$NON-NLS-3$ + ); + = + static TagProposal UI_INCLUDE =3D new TagProposal( + PaletteTaglibInserter.faceletUri, + "ui", //$NON-NLS-1$ + "include", //$NON-NLS-1$ + new AbsoluteFilePathAttributeValueLoader("src","","") //$NON-NLS-1= $ //$NON-NLS-2$ //$NON-NLS-3$ + ); + = + static TagProposal S_DECORATE =3D new TagProposal( + DropURI.SEAM_URI, + "s", //$NON-NLS-1$ + "decorate", //$NON-NLS-1$ + new AbsoluteFilePathAttributeValueLoader("template","","") //$NON= -NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + ); + = + static TagProposal[] PAGE_TAG_PROPOSALS =3D new TagProposal[]{ + JSP_INCLUDE, + JSP_FORWARD + }; + = + static TagProposal[] XHTML_PAGE_TAG_PROPOSALS =3D new TagProposal[]{ + JSP_INCLUDE, + JSP_FORWARD, + UI_INCLUDE, + S_DECORATE + }; + = + static { + // There is the question here what store HTML or TLD will been asked abo= ut TagDescription = + extensionMap.put("jpg", IMG_TAG_PROPOSALS); //$NON-NLS-1$ + + extensionMap.put("jpeg", IMG_TAG_PROPOSALS); //$NON-NLS-1$ + + extensionMap.put("gif",IMG_TAG_PROPOSALS); //$NON-NLS-1$ + = + extensionMap.put("bmp",IMG_TAG_PROPOSALS); //$NON-NLS-1$ + = + extensionMap.put("png",IMG_TAG_PROPOSALS); //$NON-NLS-1$ + = + extensionMap.put("jsp",PAGE_TAG_PROPOSALS); //$NON-NLS-1$ + extensionMap.put("html",PAGE_TAG_PROPOSALS); //$NON-NLS-1$ + extensionMap.put("xhtml",XHTML_PAGE_TAG_PROPOSALS); //$NON-NLS-1$ + + extensionMap.put( + "properties",new TagProposal[]{ //$NON-NLS-1$ + new TagProposal( + DropURI.JSF_CORE_URI, + "f", //$NON-NLS-1$ + "loadBundle", //$NON-NLS-1$ + new LoadBundleBaseNameAttributeValueLoader() + ) + } + ); + extensionMap.put("css",CSS_TAG_PROPOSALS); //$NON-NLS-1$ + extensionMap.put( + "inc", new TagProposal[]{ //$NON-NLS-1$ + new TagProposal( + DropURI.JSP_URI, + "jsp", //$NON-NLS-1$ + "include", //$NON-NLS-1$ + new AbsoluteFilePathAttributeValueLoader("page","","") //$NON-N= LS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + ) + } + ); + + DropContext.mappedExtensions.addAll(extensionMap.keySet()); + } + = + public static boolean isExtensionMapped(String extension) { + return extension !=3D null && extensionMap.containsKey(extension.toLower= Case()); + } + = + public TagProposal[] getTagProposals(Object data) { + String fileName =3D data.toString(); + String extension =3D fileName.substring(fileName.lastIndexOf(".")+1); //= $NON-NLS-1$ + TagProposal[] tagProposals =3D (TagProposal[])extensionMap.get(extension= .toLowerCase()); + if(tagProposals=3D=3Dnull) { + tagProposals =3D new TagProposal[0]; + } + return tagProposals; + } + = + public boolean isTagProposalExists(Object data) { + return true; + } + + public static class ImageFileAttributesValuesLoader implements IAttribute= ValueLoader { + + public void fillTagAttributes(IDropWizardModel model) { + } + = + } + = + public static class JspFileAttributesValuesLoader implements IAttributeVa= lueLoader { + + public void fillTagAttributes(IDropWizardModel model) { + } + } +} \ No newline at end of file Added: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/js= p/jspeditor/dnd/JSPTagProposalFactory.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/JSPTagProposalFactory.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/JSPTagProposalFactory.java 2009-09-18 15:03:39 UTC (rev 17663) @@ -0,0 +1,58 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.jsp.jspeditor.dnd; + +import java.util.HashMap; +import java.util.Map; + +import org.jboss.tools.common.model.ui.ModelUIPlugin; +import org.jboss.tools.common.model.ui.editors.dnd.DropCommandFactory; +import org.jboss.tools.common.model.ui.editors.dnd.ITagProposalFactory; +import org.jboss.tools.common.model.ui.editors.dnd.ITagProposalLoader; + +public class JSPTagProposalFactory implements ITagProposalFactory { + private static final JSPTagProposalFactory INSTANCE =3D new JSPTagProposa= lFactory(); = + public static Map loaderMap =3D new HashMap= (); = + + static { + loaderMap.put(DropCommandFactory.kFileMime, FileTagProposalLoader.class.= getName()); + loaderMap.put(DropCommandFactory.kURLMime, FileTagProposalLoader.class.g= etName()); + new FileTagProposalLoader(); + } + = + public static JSPTagProposalFactory getInstance() { + return INSTANCE; + } + = + private JSPTagProposalFactory() { + } + = + public ITagProposalLoader getProposalLoader(String mimeType) { + ITagProposalLoader fInstance =3D DEFAULT_PROPOSAL_LOADER; + try { + String fClassName =3D (String)loaderMap.get(mimeType); + if(fClassName =3D=3D null) { + //No need to report, just there is no specific proposal loader for thi= s myme type. + return fInstance; + } + Class newClass =3D this.getClass().getClassLoader().loadClass(fClassNam= e); + fInstance =3D (ITagProposalLoader)newClass.newInstance(); + } catch (InstantiationException e) { + ModelUIPlugin.getPluginLog().logError(e); + } catch (IllegalAccessException e) { + ModelUIPlugin.getPluginLog().logError(e); + } catch (ClassNotFoundException e) { + ModelUIPlugin.getPluginLog().logError(e); + } + return fInstance; + } +} + Added: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/js= p/jspeditor/dnd/PaletteDropCommand.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/PaletteDropCommand.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/PaletteDropCommand.java 2009-09-18 15:03:39 UTC (rev 17663) @@ -0,0 +1,335 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.jsp.jspeditor.dnd; + +import java.util.Properties; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.jface.text.BadLocationException; +import org.eclipse.jface.text.IDocument; +import org.eclipse.jface.text.ITextSelection; +import org.eclipse.jface.text.source.ISourceViewer; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.ui.IEditorInput; +import org.eclipse.ui.IFileEditorInput; +import org.eclipse.wst.xml.core.internal.document.ElementImpl; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement; +import org.jboss.tools.common.model.XModelObject; +import org.jboss.tools.common.model.options.PreferenceModelUtilities; +import org.jboss.tools.common.model.ui.ModelUIPlugin; +import org.jboss.tools.common.model.ui.dnd.DnDUtil; +import org.jboss.tools.common.model.ui.editor.IModelObjectEditorInput; +import org.jboss.tools.common.model.ui.editors.dnd.DropData; +import org.jboss.tools.common.model.ui.editors.dnd.DropWizard; +import org.jboss.tools.common.model.ui.editors.dnd.IDropWizard; +import org.jboss.tools.common.model.ui.editors.dnd.IDropWizardModel; +import org.jboss.tools.common.model.ui.editors.dnd.PaletteDropWizardModel; +import org.jboss.tools.common.model.ui.editors.dnd.composite.TagAttributes= Composite.AttributeDescriptorValue; +import org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper; +import org.jboss.tools.common.model.ui.views.palette.PaletteInsertManager; +import org.jboss.tools.common.model.util.EclipseResourceUtil; +import org.jboss.tools.jst.web.tld.IWebProject; +import org.jboss.tools.jst.web.tld.TLDToPaletteHelper; +import org.jboss.tools.jst.web.tld.URIConstants; +import org.jboss.tools.jst.web.tld.WebProjectFactory; + +/** + * = + * @author eskimo + */ +public class PaletteDropCommand extends FileDropCommand { + Properties initialValues =3D new Properties(); + String startText; + String endText; = + String newLine; + String reformat =3D "no"; //$NON-NLS-1$ + + Properties properties =3D new Properties(); + boolean callPaletteWizard =3D false; + + /** + * = + */ + protected IDropWizardModel createSpecificModel() { + return new PaletteDropWizardModel(tagProposalFactory); + } + + protected void addCustomProperties(Properties runningProperties) { = + newLine =3D properties.getProperty(PaletteInsertHelper.PROPOPERTY_NEW_LI= NE); + if (newLine =3D=3D null) newLine=3D"true"; //$NON-NLS-1$ + runningProperties.setProperty(PaletteInsertHelper.PROPOPERTY_NEW_LINE, n= ewLine); + String addTaglib =3D properties.getProperty(PaletteInsertHelper.PROPOPER= TY_ADD_TAGLIB); + if(addTaglib =3D=3D null) addTaglib =3D "true"; //$NON-NLS-1$ + runningProperties.setProperty(PaletteInsertHelper.PROPOPERTY_ADD_TAGLIB,= addTaglib); + } + = + public void execute() { + if(getDefaultModel().getTagProposal() =3D=3D IDropWizardModel.UNDEFINED_= TAG_PROPOSAL) { + if(startText =3D=3D null && endText =3D=3D null) return; + int pos =3D ((ITextSelection)getDefaultModel().getDropData().getSelecti= onProvider().getSelection()).getOffset(); + getDefaultModel().getDropData().getSourceViewer().setSelectedRange(pos,= 0); + if(startText !=3D null) properties.setProperty(PaletteInsertHelper.PROP= OPERTY_START_TEXT, startText); + if(endText !=3D null) properties.setProperty(PaletteInsertHelper.PROPOP= ERTY_END_TEXT, endText); + if(reformat !=3D null) properties.setProperty(PaletteInsertHelper.PROPO= PERTY_REFORMAT_BODY, reformat); + if(newLine !=3D null) properties.setProperty(PaletteInsertHelper.PROPOP= ERTY_NEW_LINE, newLine); + PaletteInsertHelper.insertIntoEditor( + getDefaultModel().getDropData().getSourceViewer(), + properties + ); + } else { + DropData data =3D getDefaultModel().getDropData(); + ISourceViewer viewer =3D data.getSourceViewer(); + if(data.getContainer() !=3D null){ + if (data.getContainer() instanceof ElementImpl) { + ElementImpl container =3D (ElementImpl)data.getContainer(); + if(!container.hasEndTag()){ + try{ + IDocument document =3D viewer.getDocument(); + int containerOffset =3D container.getStartOffset(); + int containerLenght =3D container.getStartEndOffset()-containerOffs= et; + String containerString =3D document.get(containerOffset, containerL= enght); + int slashPosition =3D containerString.lastIndexOf("/"); //$NON-NLS-= 1$ + if(slashPosition >=3D 0){ + int deltaOffset =3D (containerString.length()-1)-slashPosition; + String text =3D ""; //$NON-NLS-1$ + for(int i=3D0; i < deltaOffset;i++) text +=3D " "; //$NON-NLS-1$ + text +=3D ">"; //$NON-NLS-1$ //$NON-= NLS-2$ + document.replace(containerOffset+slashPosition, containerString.le= ngth()-slashPosition, text); + } + }catch(BadLocationException ex){ + ModelUIPlugin.getPluginLog().logError(ex); + } + } + } + } = + super.execute(); + } + } + + public void initialize() { + DropData data =3D getDefaultModel().getDropData(); = + = + IEditorInput input =3D data.getEditorInput(); + XModelObject target =3D null; + IFile f =3D null; + if(input instanceof IFileEditorInput) { + f =3D ((IFileEditorInput)input).getFile(); + target =3D EclipseResourceUtil.getObjectByResource(f); + if(target =3D=3D null && f.exists()) { + target =3D EclipseResourceUtil.createObjectForResource(f); + } + } else if(input instanceof IModelObjectEditorInput) { + target =3D ((IModelObjectEditorInput)input).getXModelObject(); + } + if(target =3D=3D null) { + initialize2(); + } else { + ISourceViewer viewer =3D data.getSourceViewer(); + = + properties =3D new Properties(); + properties.put("viewer", viewer); //$NON-NLS-1$ + properties.setProperty("text", viewer.getDocument().get()); //$NON-NLS-= 1$ + properties.setProperty("isDrop", "true"); //$NON-NLS-1$ //$NON-NLS-2$ + properties.setProperty("actionSourceGUIComponentID", "editor"); //$NON-= NLS-1$ //$NON-NLS-2$ + properties.setProperty("accepsAsString", "true"); //$NON-NLS-1$ //$NON-= NLS-2$ + = + if(f !=3D null) { + properties.put("file", f); //$NON-NLS-1$ + } + ISelection selection =3D data.getSelectionProvider().getSelection(); + = + int offset =3D 0; + //int length =3D 0; + if(selection instanceof ITextSelection) { + offset =3D ((ITextSelection)selection).getOffset(); + //length =3D ((ITextSelection)selection).getLength(); + } else { + offset =3D viewer.getTextWidget().getCaretOffset(); + } + properties.setProperty("pos", "" + offset); //$NON-NLS-1$ //$NON-NLS-2$ + if(selection instanceof IStructuredSelection && !selection.isEmpty()) { + Object so =3D ((IStructuredSelection)selection).getFirstElement(); + if(so instanceof IDOMElement) { + String en =3D ((IDOMElement)so).getNodeName(); + properties.setProperty("context:tagName", en); //$NON-NLS-1$ + String attrName =3D data.getAttributeName(); + if(attrName !=3D null) { + properties.setProperty("context:attrName", attrName); //$NON-NLS-1$ + } + } + } + try { + if(DnDUtil.isPasteEnabled(target)) { + DnDUtil.paste(target, properties); + } else { + XModelObject s =3D PreferenceModelUtilities.getPreferenceModel().getM= odelBuffer().source(); + if(s !=3D null) { + properties.setProperty("start text", "" + getDefaultText(s)); //$NON= -NLS-1$ //$NON-NLS-2$ + properties.setProperty("end text", ""); //$NON-NLS-1$ //$NON-NLS-2$ + properties.setProperty("new line", "newLine"); //$NON-NLS-1$ //$NON-= NLS-2$ + } + } + } catch (CoreException e) { + ModelUIPlugin.getPluginLog().logError(e); + } + startText =3D properties.getProperty(TLDToPaletteHelper.START_TEXT); + endText =3D properties.getProperty(TLDToPaletteHelper.END_TEXT); + reformat =3D properties.getProperty(TLDToPaletteHelper.REFORMAT); + String uri =3D properties.getProperty(URIConstants.LIBRARY_URI); + String libraryVersion =3D properties.getProperty(URIConstants.LIBRARY_V= ERSION); + String defaultPrefix =3D properties.getProperty(URIConstants.DEFAULT_PR= EFIX); + String tagname =3D properties.getProperty("tag name"); //$NON-NLS-1$ + = + callPaletteWizard =3D PaletteInsertManager.getInstance().getWizardName(= properties) !=3D null; + = + boolean isWizardEnabled =3D (!"FileJAVA".equals(target.getModelEntity()= .getName())); //$NON-NLS-1$ + if(getDefaultModel() instanceof PaletteDropWizardModel) { + ((PaletteDropWizardModel)getDefaultModel()).setWizardEnabled(isWizardE= nabled); + } + = + if(uri =3D=3D null || tagname =3D=3D null) { + getDefaultModel().setTagProposal(IDropWizardModel.UNDEFINED_TAG_PROPOS= AL); + } else { + getDefaultModel().setTagProposal(new TagProposal(uri, libraryVersion, = defaultPrefix, tagname)); + insertInitialValues(); + } + } = + } + + private void initialize2() { + XModelObject object =3D PreferenceModelUtilities.getPreferenceModel().ge= tModelBuffer().source(); + String tagname =3D object.getAttributeValue("name"); //$NON-NLS-1$ + XModelObject parent =3D object.getParent(); + String uri =3D (parent =3D=3D null) ? "" : parent.getAttributeValue(URIC= onstants.LIBRARY_URI); //$NON-NLS-1$ + String libraryVersion =3D (parent =3D=3D null) ? "" : parent.getAttribut= eValue(URIConstants.LIBRARY_VERSION); //$NON-NLS-1$ + String defaultPrefix =3D (parent =3D=3D null) ? "" : parent.getAttribute= Value(URIConstants.DEFAULT_PREFIX); //$NON-NLS-1$ + this.getDefaultModel().setTagProposal(new TagProposal(uri, libraryVersio= n,defaultPrefix,tagname)); + startText =3D object.getAttributeValue("start text"); //$NON-NLS-1$ + endText =3D object.getAttributeValue("end text"); //$NON-NLS-1$ + } + = + private void insertInitialValues() { + parseInitialValues(startText); + AttributeDescriptorValue[] vs =3D getDefaultModel().getAttributeValueDes= criptors(); + for (int i =3D 0; i < vs.length; i++) { + String v =3D initialValues.getProperty(vs[i].getName()); + if(v !=3D null) vs[i].setValue(v); + } + } + = + private void parseInitialValues(String startText) { + if(startText =3D=3D null || startText.length() =3D=3D 0) return; + int bi =3D startText.indexOf('<'); + if(bi < 0) return; + int ei =3D startText.indexOf('>', bi); + if(ei < 0) return; + String header =3D startText.substring(bi + 1, ei); + int NOTHING =3D 0; + int ATT_NAME =3D 1; + int ATT_VALUE =3D 2; + char quote =3D '\0'; + int state =3D NOTHING; + String name =3D null; + String value =3D null; + for (int i =3D 0; i < header.length(); i++) { + char c =3D header.charAt(i); + if(state =3D=3D NOTHING) { + if(Character.isJavaIdentifierStart(c)) { + name =3D "" + c; //$NON-NLS-1$ + state =3D ATT_NAME; + } + } else if(state =3D=3D ATT_NAME) { + if(Character.isJavaIdentifierPart(c) || c =3D=3D ':') { + name +=3D c; + } else if(c =3D=3D '=3D') { + state =3D ATT_VALUE; + quote =3D '\0'; + } + } else if(state =3D=3D ATT_VALUE) { + if(c =3D=3D quote) { + initialValues.setProperty(name, value); + name =3D null; + value =3D null; + state =3D NOTHING; + quote =3D '\0'; + } else if(c =3D=3D '"' || c =3D=3D '\'') { + quote =3D c; + value =3D ""; //$NON-NLS-1$ + } else if(quote !=3D '\0') { + value +=3D c; + } + } + } + } = + + protected String generateStartText() { + startText =3D properties.getProperty("start text"); //$NON-NLS-1$ + if(getDefaultModel().getTagProposal()=3D=3DIDropWizardModel.UNDEFINED_TA= G_PROPOSAL + || getDefaultModel().getTagProposal().getDetails().length() =3D=3D 0) { + return startText; + } + String s1 =3D super.generateStartText(); + String s2 =3D startText; + if(s2 =3D=3D null) return s1; + if(s1.indexOf('=3D') < 0) return s2; // no input + int bi1 =3D s1.indexOf('<'); + int bi2 =3D s2.indexOf('<'); + if(bi2 < 0 || bi1 < 0) return s2; + int ei1 =3D s1.indexOf('>', bi1); + int ei2 =3D s2.indexOf('>', bi2); + if(ei1 < 0 || ei2 < 0) return s1; + boolean slash1 =3D s1.charAt(ei1 - 1) =3D=3D '/'; + boolean slash2 =3D s2.charAt(ei2 - 1) =3D=3D '/'; + if(slash1 && !slash2) { + s2 =3D s2.substring(0, bi2) + s1.substring(bi1, ei1 - 1) + s2.substring= (ei2); + } else if(!slash1 && slash2) { + s2 =3D s2.substring(0, bi2) + s1.substring(bi1, ei1) + s2.substring(ei2= - 1); + } else { + s2 =3D s2.substring(0, bi2) + s1.substring(bi1, ei1) + s2.substring(ei2= ); + } + return s2; + } + + protected String generateEndText() { + endText =3D properties.getProperty("end text"); //$NON-NLS-1$ + return (endText !=3D null) ? endText : ""; //$NON-NLS-1$ + } + + protected String getReformatBodyProperty() { + return reformat; + } + + protected IDropWizard createDropWizard() { + String wizardName =3D PaletteInsertManager.getInstance().getWizardName(p= roperties); + = + IDropWizard wizard =3D null; + if(wizardName !=3D null) { + wizard =3D (IDropWizard)PaletteInsertManager.getInstance().createWizard= Instance(properties); + } + if(wizard =3D=3D null) wizard =3D new DropWizard(); + wizard.setCommand(this); + return wizard; + } + = + public Properties getProperties() { + return properties; + } + = + private String getDefaultText(XModelObject o) { + if(o =3D=3D null) return ""; //$NON-NLS-1$ + if(o.getFileType() !=3D XModelObject.FILE) return o.getPresentationStrin= g(); + IWebProject p =3D WebProjectFactory.instance.getWebProject(o.getModel()); + String path =3D p.getPathInWebRoot(o); + return path =3D=3D null ? o.getPresentationString() : path; + } +} \ No newline at end of file Added: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/js= p/jspeditor/dnd/TagProposal.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/TagProposal.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/TagProposal.java 2009-09-18 15:03:39 UTC (rev 17663) @@ -0,0 +1,107 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.jsp.jspeditor.dnd; + +import org.jboss.tools.common.model.ui.editors.dnd.IAttributeValueLoader; +import org.jboss.tools.common.model.ui.editors.dnd.IDropWizardModel; +import org.jboss.tools.common.model.ui.editors.dnd.ITagProposal; + +public class TagProposal implements ITagProposal { + = + public static final String EMPTY_URI =3D ""; //$NON-NLS-1$ + = + String uri; + String libraryVersion =3D ""; //$NON-NLS-1$ + String prefix; + String name; + IAttributeValueLoader attributeValueLoader =3D EMPTY_ATTRIBUTE_VALUE_LOA= DER; + = + /** + * TagProposal with empty attribute value loader = + * + */ + public TagProposal( + String uri, = + String prefix, = + String name + ) { + this(uri, "", prefix, name); //$NON-NLS-1$ + } + + public TagProposal( + String uri, + String libraryVersion, + String prefix, = + String name + ) { + this.uri =3D uri; + this.libraryVersion =3D (libraryVersion =3D=3D null) ? "" : libraryVers= ion; //$NON-NLS-1$ + this.prefix =3D prefix; + this.name =3D name; + } + + /** + * = + * + */ + public TagProposal( + String uri, = + String prefix, = + String name, + IAttributeValueLoader loader + ) { + this.uri =3D uri; + this.prefix =3D prefix; + this.name =3D name; + this.attributeValueLoader =3D loader; + } + = + /** + * = + * @return + */ + public String getName() { + return name; + } + = + /** + * = + * @return + */ + public String getPrefix() { + return prefix; + } + + /** + * = + * @return + */ + public String getUri() { + return uri; + } + = + public String getLibraryVersion() { + return libraryVersion; + } + = + public IAttributeValueLoader getAttributesValueLoader() { + return attributeValueLoader; + } + + public String getDisplayString() { + return getPrefix() =3D=3D ITagProposal.EMPTY_PREFIX ? getName() : getPre= fix() + ":" + getName(); //$NON-NLS-1$ + } + + public String getDetails() { + return getUri(); + } + +} Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/outline/DefaultDropCommandRunner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/o= utline/DefaultDropCommandRunner.java 2009-09-18 15:02:38 UTC (rev 17662) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/o= utline/DefaultDropCommandRunner.java 2009-09-18 15:03:39 UTC (rev 17663) @@ -24,8 +24,8 @@ import org.jboss.tools.common.meta.action.SpecialWizard; import org.jboss.tools.common.model.ui.editors.dnd.DropCommandFactory; import org.jboss.tools.common.model.ui.editors.dnd.DropData; -import org.jboss.tools.common.model.ui.editors.dnd.JSPTagProposalFactory; import org.jboss.tools.jst.jsp.jspeditor.JSPTextEditor; +import org.jboss.tools.jst.jsp.jspeditor.dnd.JSPTagProposalFactory; = public class DefaultDropCommandRunner implements SpecialWizard { String flavor; --===============4337180183344036909==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 11:03:48 2009 Content-Type: multipart/mixed; boundary="===============4395683345521771869==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17664 - in trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css: view and 1 other directory. Date: Fri, 18 Sep 2009 11:03:48 -0400 Message-ID: <200909181503.n8IF3mJX028072@svn01.web.mwc.hst.phx2.redhat.com> --===============4395683345521771869== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: sdzmitrovich Date: 2009-09-18 11:03:45 -0400 (Fri, 18 Sep 2009) New Revision: 17664 Removed: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/pr= operties/TypeMapper.java Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/pr= operties/CSSPropertyPage.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/vi= ew/CSSEditorView.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/vi= ew/CSSPreview.java Log: https://jira.jboss.org/jira/browse/JBIDE-4849 Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/properties/CSSPropertyPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/p= roperties/CSSPropertyPage.java 2009-09-18 15:03:39 UTC (rev 17663) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/p= roperties/CSSPropertyPage.java 2009-09-18 15:03:45 UTC (rev 17664) @@ -99,6 +99,8 @@ || (!selectedObject.equals(newSelectedObject))) super.selectionChanged(part, selection); selectedObject =3D newSelectedObject; + = + update(); = } = Deleted: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/= css/properties/TypeMapper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/p= roperties/TypeMapper.java 2009-09-18 15:03:39 UTC (rev 17663) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/p= roperties/TypeMapper.java 2009-09-18 15:03:45 UTC (rev 17664) @@ -1,44 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007-2009 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributor: - * Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ - -package org.jboss.tools.jst.css.properties; - -import org.eclipse.ui.views.properties.tabbed.ITypeMapper; -import org.eclipse.wst.css.core.internal.provisional.document.ICSSNode; -import org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleRul= e; - -/** - * @author Sergey Dzmitrovich - * = - */ -public class TypeMapper implements ITypeMapper { - - /* - * (non-Javadoc) - * = - * @see - * org.eclipse.ui.views.properties.tabbed.ITypeMapper#mapType(java.lang. - * Object) - */ - public Class mapType(Object object) { - - while (object instanceof ICSSNode) { - if ((object instanceof ICSSStyleRule) - || (((ICSSNode) object).getParentNode() =3D=3D null)) { - break; - } else { - object =3D ((ICSSNode) object).getParentNode(); - } - } - return object.getClass(); - } - -} Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/view/CSSEditorView.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/v= iew/CSSEditorView.java 2009-09-18 15:03:39 UTC (rev 17663) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/v= iew/CSSEditorView.java 2009-09-18 15:03:45 UTC (rev 17664) @@ -11,24 +11,27 @@ = package org.jboss.tools.jst.css.view; = -import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.SelectionChangedEvent; +import org.eclipse.ui.IEditorPart; import org.eclipse.ui.IViewSite; import org.eclipse.ui.IWorkbenchPart; import org.eclipse.ui.PartInitException; import org.eclipse.ui.part.IContributedContentsView; import org.eclipse.ui.part.IPageBookViewPage; +import org.eclipse.ui.views.contentoutline.ContentOutline; import org.eclipse.ui.views.properties.IPropertySheetPage; import org.eclipse.ui.views.properties.PropertySheet; import org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageCont= ributor; -import org.jboss.tools.jst.css.common.CSSSelectionListener; +import org.jboss.tools.jst.css.common.CSSStyleListener; +import org.jboss.tools.jst.css.common.ICSSViewListner; +import org.jboss.tools.jst.css.common.StyleContainer; import org.jboss.tools.jst.css.properties.CSSPropertyPage; = /** * @author Sergey Dzmitrovich * = */ -public class CSSEditorView extends PropertySheet { +public class CSSEditorView extends PropertySheet implements ICSSViewListne= r { = static public String CONTRIBUTOR_ID =3D "org.eclipse.wst.css.core.csssour= ce.source"; //$NON-NLS-1$ = @@ -37,33 +40,22 @@ = super.init(site); getSite().getPage().removeSelectionListener(this); - CSSSelectionListener.getInstance().addSelectionListener(this); + CSSStyleListener.getInstance().addSelectionListener(this); } = @Override public void dispose() { = super.dispose(); - CSSSelectionListener.getInstance().removeSelectionListener(this); + CSSStyleListener.getInstance().removeSelectionListener(this); = } = @Override - public void selectionChanged(IWorkbenchPart part, ISelection sel) { - super.selectionChanged(part, sel); - - // TODO find better way to react upon changing of node i source editor. - // Description of problem: when node is been editing PropertySheet will - // not send selection event to page as selection is same; - if (getCurrentPage() instanceof CSSPropertyPage) - ((CSSPropertyPage) getCurrentPage()).update(); - } - - @Override protected PageRec doCreatePage(final IWorkbenchPart part) { - if (part instanceof PropertySheet) { - return null; - } + // if (part instanceof PropertySheet) { + // return null; + // } IPropertySheetPage page =3D new CSSPropertyPage( new ITabbedPropertySheetPageContributor() { = @@ -102,4 +94,16 @@ } return super.getAdapter(key); } + + public void styleChanged(StyleContainer styleContainer) { + if (getCurrentPage() instanceof CSSPropertyPage) + ((CSSPropertyPage) getCurrentPage()).update(); + + } + @Override + protected boolean isImportant(IWorkbenchPart part) { + if ((part instanceof IEditorPart) || (part instanceof ContentOutline)) + return true; + return false; + } } Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/view/CSSPreview.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/v= iew/CSSPreview.java 2009-09-18 15:03:39 UTC (rev 17663) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/v= iew/CSSPreview.java 2009-09-18 15:03:45 UTC (rev 17664) @@ -11,6 +11,7 @@ = package org.jboss.tools.jst.css.view; = +import java.util.Collections; import java.util.HashMap; import java.util.Map; = @@ -27,12 +28,12 @@ import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Text; -import org.eclipse.ui.ISelectionListener; import org.eclipse.ui.IViewSite; import org.eclipse.ui.IWorkbenchPart; import org.eclipse.ui.PartInitException; import org.eclipse.ui.part.ViewPart; -import org.jboss.tools.jst.css.common.CSSSelectionListener; +import org.jboss.tools.jst.css.common.CSSStyleListener; +import org.jboss.tools.jst.css.common.ICSSViewListner; import org.jboss.tools.jst.css.common.StyleContainer; import org.jboss.tools.jst.css.messages.CSSUIMessages; import org.jboss.tools.jst.jsp.outline.cssdialog.common.Constants; @@ -41,7 +42,7 @@ * @author Sergey Dzmitrovich * = */ -public class CSSPreview extends ViewPart implements ISelectionListener { +public class CSSPreview extends ViewPart implements ICSSViewListner { = private Browser browser; = @@ -57,13 +58,13 @@ public void init(IViewSite site) throws PartInitException { super.init(site); = - CSSSelectionListener.getInstance().addSelectionListener(this); + CSSStyleListener.getInstance().addSelectionListener(this); } = @Override public void dispose() { = - CSSSelectionListener.getInstance().removeSelectionListener(this); + CSSStyleListener.getInstance().removeSelectionListener(this); super.dispose(); } = @@ -155,23 +156,19 @@ public void selectionChanged(IWorkbenchPart part, ISelection selection) { = if (selection instanceof IStructuredSelection) { + Map newAttributes; IStructuredSelection structuredSelection =3D (IStructuredSelection) sel= ection; if (structuredSelection.getFirstElement() instanceof StyleContainer) { = - styleAttributes =3D ((StyleContainer) structuredSelection + newAttributes =3D ((StyleContainer) structuredSelection .getFirstElement()).getStyleAttributes(); = } else { - styleAttributes.clear(); + newAttributes =3D Collections.EMPTY_MAP; } = - String newStyle =3D getStyle(styleAttributes); - if (!newStyle.equals(currentStyle)) { + updateView(newAttributes); = - currentStyle =3D newStyle; - updateBrowser(); - } - } = } @@ -196,4 +193,17 @@ public String getCurrentStyle() { return currentStyle; } + + public void styleChanged(StyleContainer styleContainer) { + updateView(styleContainer.getStyleAttributes()); + + } + + protected void updateView(Map attributes) { + + this.styleAttributes =3D attributes; + this.currentStyle =3D getStyle(attributes); + updateBrowser(); + + } } --===============4395683345521771869==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 11:06:20 2009 Content-Type: multipart/mixed; boundary="===============6174360321477397825==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17665 - in trunk/common/plugins/org.jboss.tools.common.model.ui: src/org/jboss/tools/common/model/ui/editors/dnd and 2 other directories. Date: Fri, 18 Sep 2009 11:06:19 -0400 Message-ID: <200909181506.n8IF6JVs029108@svn01.web.mwc.hst.phx2.redhat.com> --===============6174360321477397825== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-18 11:06:17 -0400 (Fri, 18 Sep 2009) New Revision: 17665 Added: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/ITagProposal.java Removed: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/DefaultDropCommandRunner.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/FileDropCommand.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/FileTagProposalLoader.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/JSPTagProposalFactory.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/PaletteDropCommand.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/TagProposal.java Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/DefaultDropCommand.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/DefaultDropWizardModel.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/DefaultElementGenerator.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/DropCommandFactory.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/DropUtils.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/DropWizard.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/ExternalDropWizardModel.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/IDropWizardModel.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/ITagProposalLoader.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/NullProposalLoader.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/TagAttributesWizardPage.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/composite/TagAttributesComposite.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/composite/TagProposalsComposite.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/context/DropContext.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Initial moving jsp related dnd to jst.jsp Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml 2009-09= -18 15:03:45 UTC (rev 17664) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml 2009-09= -18 15:06:17 UTC (rev 17665) @@ -375,8 +375,6 @@ class=3D"org.jboss.tools.common.model.ui.dnd.ModelTransfer"/> - = + + + Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/editors/dnd/DefaultDropCommand.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/DefaultDropCommand.java 2009-09-18 15:03:45 U= TC (rev 17664) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/DefaultDropCommand.java 2009-09-18 15:06:17 U= TC (rev 17665) @@ -64,7 +64,7 @@ if(getDefaultModel().getDropData()=3D=3Dnull) { throw new IllegalStateException("Wizard model isn't intialized, call se= tDropDataFirst"); //$NON-NLS-1$ } - TagProposal[] proposals = + ITagProposal[] proposals = =3D TagProposalsComposite.getTagProposals( getDefaultModel().getDropData().getMimeType(), getDefaultModel().getDropData().getMimeData(), Deleted: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss= /tools/common/model/ui/editors/dnd/DefaultDropCommandRunner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/DefaultDropCommandRunner.java 2009-09-18 15:0= 3:45 UTC (rev 17664) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/DefaultDropCommandRunner.java 2009-09-18 15:0= 6:17 UTC (rev 17665) @@ -1,83 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.common.model.ui.editors.dnd; - -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.util.Properties; - -import org.eclipse.jface.text.source.ISourceViewer; -import org.eclipse.jface.viewers.ISelectionProvider; -import org.eclipse.swt.widgets.Display; -import org.eclipse.ui.IEditorInput; -import org.eclipse.ui.texteditor.AbstractTextEditor; -import org.eclipse.ui.texteditor.ITextEditor; - -import org.jboss.tools.common.meta.action.SpecialWizard; - -public class DefaultDropCommandRunner implements SpecialWizard { - String flavor; - String data; - ITextEditor textEditor; - - public boolean runDropCommand(final String flavor, final String data, ITe= xtEditor te) { - final IEditorInput ei =3D te.getEditorInput(); - final ISelectionProvider sp =3D te.getSelectionProvider(); - final ISourceViewer sv =3D getSourceViewer(te); - Display.getDefault().asyncExec(new Runnable() { - public void run() { -// if(parentEditor.getVisualEditor().getController()!=3Dnull ) { - DropCommandFactory.getInstance() - .getDropCommand(flavor, JSPTagProposalFactory.getInstance()) - .execute( - new DropData( - flavor, - data, - ei, - sv, - sp - ) - ); -// } - } - }); - return true; - } - - ISourceViewer getSourceViewer(ITextEditor editor) { - if(!(editor instanceof AbstractTextEditor)) return null; - AbstractTextEditor ae =3D (AbstractTextEditor)editor; - try { - Method m =3D AbstractTextEditor.class.getDeclaredMethod("getSourceViewe= r", new Class[0]); //$NON-NLS-1$ - m.setAccessible(true); - return (ISourceViewer)m.invoke(ae, new Object[0]); - } catch (NoSuchMethodException e1) { - return null; - } catch (InvocationTargetException e2) { - return null; - } catch (IllegalAccessException e2) { - return null; - } - } - - public int execute() { - boolean result =3D runDropCommand(flavor, data, textEditor); - return result ? 0 : 1; - } - - public void setObject(Object object) { - Properties p =3D (Properties)object; - flavor =3D p.getProperty("flavor"); //$NON-NLS-1$ - data =3D p.getProperty("data"); //$NON-NLS-1$ - textEditor =3D (ITextEditor)p.get("textEditor"); //$NON-NLS-1$ - } - -} Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/editors/dnd/DefaultDropWizardModel.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/DefaultDropWizardModel.java 2009-09-18 15:03:= 45 UTC (rev 17664) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/DefaultDropWizardModel.java 2009-09-18 15:06:= 17 UTC (rev 17665) @@ -20,7 +20,7 @@ = public class DefaultDropWizardModel implements IDropWizardModel { = - TagProposal fSelectedTagProp =3D UNDEFINED_TAG_PROPOSAL; + ITagProposal fSelectedTagProp =3D UNDEFINED_TAG_PROPOSAL; DropData fDropData; List fAttributeValues =3D new ArrayList(); boolean promptForTagAttributes =3D true; @@ -31,15 +31,15 @@ this.tagProposalFactory =3D tagProposalFactory; } = - public TagProposal getTagProposal() { + public ITagProposal getTagProposal() { return fSelectedTagProp; } = /** * @see org.jboss.tools.vpe.editor.dnd.IDnDWizardDataModel#setTagProposal= (org.jboss.tools.vpe.editor.dnd.TagProposal) */ - public void setTagProposal(TagProposal selection) { - TagProposal oldValue =3D fSelectedTagProp; + public void setTagProposal(ITagProposal selection) { + ITagProposal oldValue =3D fSelectedTagProp; fSelectedTagProp =3D selection; doLoadTagAttributeDescriptors(); doLoadDefaultAttributeValues(); = @@ -174,9 +174,10 @@ return true; } } + if(values.length > 5) return true; return isPromptForTagAttributesRequired(); } else if(getTagProposal()=3D=3DUNDEFINED_TAG_PROPOSAL){ - TagProposal[] proposals = + ITagProposal[] proposals = =3D TagProposalsComposite.getTagProposals( getDropData().getMimeType(), getDropData().getMimeData(), Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/editors/dnd/DefaultElementGenerator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/DefaultElementGenerator.java 2009-09-18 15:03= :45 UTC (rev 17664) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/DefaultElementGenerator.java 2009-09-18 15:06= :17 UTC (rev 17665) @@ -34,7 +34,7 @@ } = public String generateStartTag() { - TagProposal proposal =3D getWizardDataModel().getTagProposal(); + ITagProposal proposal =3D getWizardDataModel().getTagProposal(); AttributeDescriptorValueProvider valueProvider =3D getWizardDataModel().= getDropData().getValueProvider(); if(valueProvider !=3D null) valueProvider.setProposal(proposal); String tagName =3D valueProvider =3D=3D null ? null : valueProvider.getT= ag(); Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/editors/dnd/DropCommandFactory.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/DropCommandFactory.java 2009-09-18 15:03:45 U= TC (rev 17664) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/DropCommandFactory.java 2009-09-18 15:06:17 U= TC (rev 17665) @@ -13,6 +13,7 @@ import java.util.HashMap; = import org.jboss.tools.common.model.ui.dnd.ModelTransfer; +import org.jboss.tools.common.model.util.ModelFeatureFactory; = /** * The Class DropCommandFactory. @@ -49,30 +50,35 @@ = /** The PACKAGE. */ static String PACKAGE =3D "org.jboss.tools.common.model.ui.editors.dnd.";= //$NON-NLS-1$ + = + static String UNKNOWN_DROP_COMMAND =3D "org.jboss.tools.common.model.ui.e= ditors.dnd.UnknownDropCommand"; //$NON-NLS-1$ + static String TEXT_DROP_COMMAND =3D "org.jboss.tools.common.model.ui.edit= ors.dnd.PlainTextDropCommand"; //$NON-NLS-1$ + static String FILE_DROP_COMMAND =3D "org.jboss.tools.jst.jsp.jspeditor.dn= d.FileDropCommand"; //$NON-NLS-1$ + static String PALETTE_DROP_COMMAND =3D "org.jboss.tools.jst.jsp.jspeditor= .dnd.PaletteDropCommand"; //$NON-NLS-1$ = static { fMimeCommandMap.put( ////nsITransferable.kFileMime - kFileMime, PACKAGE + "FileDropCommand" //$NON-NLS-1$ + kFileMime, FILE_DROP_COMMAND ); fMimeCommandMap.put( ////nsITransferable.kURLMime - kURLMime, PACKAGE + "FileDropCommand" //$NON-NLS-1$ + kURLMime, FILE_DROP_COMMAND ); fMimeCommandMap.put( - ModelTransfer.MODEL, PACKAGE + "PaletteDropCommand" //$NON-NLS-1$ + ModelTransfer.MODEL, PALETTE_DROP_COMMAND ); fMimeCommandMap.put( - "text/plain", PACKAGE + "PlainTextDropCommand" //$NON-NLS-1$ //$NON-NL= S-2$ + "text/plain", TEXT_DROP_COMMAND ); fMimeCommandMap.put( ////nsITransferable.kUnicodeMime - kUnicodeMime, PACKAGE + "PlainTextDropCommand" //$NON-NLS-1$ + kUnicodeMime, TEXT_DROP_COMMAND ); - fMimeCommandMap.put(kHtmlText,PACKAGE + "PlainTextDropCommand"); //$NON-= NLS-1$ + fMimeCommandMap.put(kHtmlText, TEXT_DROP_COMMAND); = fMimeCommandMap.put( - UNKNOWN_MIME_TYPE, PACKAGE + "UnknownDropCommand" //$NON-NLS-1$ + UNKNOWN_MIME_TYPE, UNKNOWN_DROP_COMMAND ); } = @@ -95,17 +101,13 @@ */ public IDropCommand getDropCommand(String mimeType, ITagProposalFactor= y tagProposalFactory) { IDropCommand fInstance =3D UNKNOWN_MIME_COMMAND; - try { - String fClassName =3D (String)fMimeCommandMap.get(mimeType); - Class newClass =3D this.getClass().getClassLoader().loadClass(fClassNam= e); - fInstance =3D (IDropCommand)newClass.newInstance(); + String fClassName =3D (String)fMimeCommandMap.get(mimeType); + fInstance =3D (IDropCommand)ModelFeatureFactory.getInstance().createFeat= ureInstance(fClassName); + if(fInstance =3D=3D null) { + fInstance =3D new UnknownDropCommand(); + } + if(fInstance !=3D null) { fInstance.setTagProposalFactory(tagProposalFactory); - } catch (ClassNotFoundException e) { - //ignore - } catch (InstantiationException e) { - //ignore - } catch (IllegalAccessException e) { - //ignore } return fInstance; } Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/editors/dnd/DropUtils.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/DropUtils.java 2009-09-18 15:03:45 UTC (rev 1= 7664) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/DropUtils.java 2009-09-18 15:06:17 UTC (rev 1= 7665) @@ -20,17 +20,11 @@ import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.Path; -import org.eclipse.ui.IEditorInput; -import org.eclipse.ui.IFileEditorInput; -import org.jboss.tools.common.model.XModel; import org.jboss.tools.common.model.XModelObject; -import org.jboss.tools.common.model.filesystems.impl.FileAnyImpl; import org.jboss.tools.common.model.project.IModelNature; import org.jboss.tools.common.model.ui.ModelUIPlugin; -import org.jboss.tools.common.model.ui.editor.IModelObjectEditorInput; import org.jboss.tools.common.model.ui.editors.dnd.composite.TagAttributes= Composite; import org.jboss.tools.common.model.util.EclipseResourceUtil; -import org.jboss.tools.jst.web.tld.ITaglibMapping; import org.jboss.tools.jst.web.tld.IWebProject; import org.jboss.tools.jst.web.tld.WebProjectFactory; = @@ -43,37 +37,9 @@ = public static final String HTML40_URI =3D ""; //$NON-NLS-1$ = - /** - * Get TLD's content. - * @param input - * @param uri - * @return - */ - public static String getTldContent(IEditorInput input, String uri) { - String tldContent =3D null; - XModel xModel =3D null; - if(input instanceof IModelObjectEditorInput) { - xModel =3D ((IModelObjectEditorInput)input).getXModelObject().getModel(= ); - } else if(input instanceof IFileEditorInput) { - IFile f =3D ((IFileEditorInput)input).getFile(); - XModelObject o =3D EclipseResourceUtil.getObjectByResource(f); - if(o !=3D null) xModel =3D o.getModel(); - } - if(xModel !=3D null) { - ITaglibMapping mapping =3D WebProjectFactory.instance.getWebProject(xMo= del).getTaglibMapping(); - XModelObject xmo =3D mapping.getTaglibObject(uri); - if(xmo !=3D null) { -// tldLocation =3D EclipseResourceUtil.getResource(xmo).getFullPath().t= oString(); - FileAnyImpl fai =3D (FileAnyImpl)xmo; - tldContent =3D fai.getAsText(); - } - } - return tldContent; - } - public static interface AttributeDescriptorValueProvider { public void initContext(Properties context); - public void setProposal(TagProposal proposal); + public void setProposal(ITagProposal proposal); public String getTag(); public boolean canHaveBody(); public TagAttributesComposite.AttributeDescriptorValue[] getValues(); Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/editors/dnd/DropWizard.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/DropWizard.java 2009-09-18 15:03:45 UTC (rev = 17664) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/DropWizard.java 2009-09-18 15:06:17 UTC (rev = 17665) @@ -46,7 +46,7 @@ super.addPages(); = page1 =3D new TagProposalsWizardPage(); page2 =3D new TagAttributesWizardPage(); - TagProposal[] proposals =3D = + ITagProposal[] proposals =3D = TagProposalsComposite.getTagProposals(getMimeType(),getMimeData(), fDro= pCommand.getTagProposalFactory()); = if(TagProposalsComposite.areThereTagProposals( Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/editors/dnd/ExternalDropWizardModel.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/ExternalDropWizardModel.java 2009-09-18 15:03= :45 UTC (rev 17664) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/ExternalDropWizardModel.java 2009-09-18 15:06= :17 UTC (rev 17665) @@ -41,7 +41,7 @@ protected void doLoadTagAttributeDescriptors() { if(getTagProposal()!=3DUNDEFINED_TAG_PROPOSAL) { DropData data =3D getDropData(); - TagProposal proposal =3D getTagProposal(); + ITagProposal proposal =3D getTagProposal(); AttributeDescriptorValueProvider valueProvider =3D data.getValueProvide= r(); if(valueProvider !=3D null) valueProvider.setProposal(proposal); AttributeDescriptorValue[] values =3D valueProvider =3D=3D null ? new A= ttributeDescriptorValue[0] Deleted: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss= /tools/common/model/ui/editors/dnd/FileDropCommand.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/FileDropCommand.java 2009-09-18 15:03:45 UTC = (rev 17664) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/FileDropCommand.java 2009-09-18 15:06:17 UTC = (rev 17665) @@ -1,97 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.common.model.ui.editors.dnd; - -import java.io.File; -import java.util.Properties; - -import org.eclipse.core.resources.IFile; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IProgressMonitor; - -import org.jboss.tools.common.meta.action.XActionInvoker; -import org.jboss.tools.common.model.XModelObject; -import org.jboss.tools.common.model.util.EclipseResourceUtil; -import org.jboss.tools.common.model.ui.dnd.ModelTransfer; -import org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper; - -/** - * = - * @author eskimo - */ - -// TODO - Eskimo - Think about inserting different type of tags -// - HTML -// - XML(XHTML,JSP) - -public class FileDropCommand extends DefaultDropCommand { - - IElementGenerator generator; - - public void run(IProgressMonitor monitor) throws CoreException { - - generator =3D ElementGeneratorFactory.getInstance().getElementGenerator(= getDefaultModel().getTagProposal().getUri()); - generator.setDataModel(getDefaultModel()); - - Properties properties =3D new Properties(); - properties.put(PaletteInsertHelper.PROPOPERTY_TAG_NAME,getDefaultModel()= .getTagProposal().getName()); - properties.put(PaletteInsertHelper.PROPOPERTY_START_TEXT, generateStartT= ext()); - properties.put(PaletteInsertHelper.PROPOPERTY_END_TEXT, generateEndText(= )); - properties.put(PaletteInsertHelper.PROPOPERTY_REFORMAT_BODY, getReformat= BodyProperty()); - properties.put(PaletteInsertHelper.PROPOPERTY_TAGLIBRARY_URI,getDefaultM= odel().getTagProposal().getUri()); - properties.put(PaletteInsertHelper.PROPOPERTY_TAGLIBRARY_VERSION,getDefa= ultModel().getTagProposal().getLibraryVersion()); - properties.put(PaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX,getDefaultM= odel().getTagProposal().getPrefix()); - properties.put(PaletteInsertHelper.PROPOPERTY_SELECTION_PROVIDER, getDef= aultModel().getDropData().getSelectionProvider()); - properties.put(PaletteInsertHelper.PROPOPERTY_ADD_TAGLIB, "true"); //$NO= N-NLS-1$ - addCustomProperties(properties); - PaletteInsertHelper.insertIntoEditor( - getDefaultModel().getDropData().getSourceViewer(), - properties - ); - } - - protected void executeUnknownTag() { - DropData data =3D getDefaultModel().getDropData(); - String type =3D data.getMimeType(); - String mime =3D data.getMimeData(); - /*nsITransferable.kFileMime*/ - if("application/x-moz-file".equals(type) && mime !=3D null) { //$NON-NLS= -1$ - if(mime.startsWith("file:")) mime =3D mime.substring(5); //$NON-NLS-1$ - File f =3D new File(mime); - IFile file =3D EclipseResourceUtil.getFile(f.getAbsolutePath()); - if(file =3D=3D null) return; - XModelObject o =3D EclipseResourceUtil.getObjectByResource(file); - if(o =3D=3D null) return; - XActionInvoker.invoke("CopyActions.Copy", o, null); //$NON-NLS-1$ - data.setMimeType(ModelTransfer.MODEL); - data.setMimeData(""); //$NON-NLS-1$ - DropCommandFactory.getInstance().getDropCommand(ModelTransfer.MODEL, ta= gProposalFactory).execute(data); - } - } - - protected void addCustomProperties(Properties properties) {} - - protected String getReformatBodyProperty() { - return "yes"; //$NON-NLS-1$ - } - - protected IDropWizardModel createSpecificModel() { - return new ExternalDropWizardModel(tagProposalFactory); - } - - protected String generateStartText() { - return generator.generateStartTag(); - } - - protected String generateEndText() { - return generator.generateEndTag(); - } -} \ No newline at end of file Deleted: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss= /tools/common/model/ui/editors/dnd/FileTagProposalLoader.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/FileTagProposalLoader.java 2009-09-18 15:03:4= 5 UTC (rev 17664) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/FileTagProposalLoader.java 2009-09-18 15:06:1= 7 UTC (rev 17665) @@ -1,176 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.common.model.ui.editors.dnd; - -import java.util.HashMap; -import java.util.Map; - -import org.jboss.tools.common.model.ui.views.palette.PaletteTaglibInserter; - -public class FileTagProposalLoader implements ITagProposalLoader { - - private static final Map extensionMap =3D new HashM= ap(); - = - static TagProposal[] IMG_TAG_PROPOSALS =3D new TagProposal[]{ - new TagProposal( - DropURI.JSF_HTML_URI, - "h", //$NON-NLS-1$ - "graphicImage", //$NON-NLS-1$ - new AbsoluteFilePathAttributeValueLoader("value","","") //$NON-NLS-1$ /= /$NON-NLS-2$ //$NON-NLS-3$ - ), - new TagProposal( - DropURI.HTML_4_0_URI, - TagProposal.EMPTY_PREFIX, - "img", //$NON-NLS-1$ - new AbsoluteFilePathAttributeValueLoader("src","","") //$NON-NLS-1$ //$= NON-NLS-2$ //$NON-NLS-3$ - ), - new TagProposal( - DropURI.STRUTS_HTML_URI, - "html", //$NON-NLS-1$ - "img", //$NON-NLS-1$ - new AbsoluteFilePathAttributeValueLoader("page","","") //$NON-NLS-1$ //= $NON-NLS-2$ //$NON-NLS-3$ - ), - new TagProposal( - DropURI.SEAM_URI, - "s", //$NON-NLS-1$ - "graphicImage", //$NON-NLS-1$ - new AbsoluteFilePathAttributeValueLoader("url","","") //$NON-NLS-1$ //= $NON-NLS-2$ //$NON-NLS-3$ - ) -// yradtsevich: fix of JBIDE-3984: Exclude t:graphicImage option from Inse= rt tag dialog = -// , -// new TagProposal( -// DropURI.TOMOHAWK_URI, -// "t", -// "graphicImage", -// new AbsoluteFilePathAttributeValueLoader("url","","") -// ) - }; - = - static TagProposal[] CSS_TAG_PROPOSALS =3D new TagProposal[]{ - new TagProposal( - DropURI.HTML_4_0_URI, - TagProposal.EMPTY_PREFIX, - "link", //$NON-NLS-1$ - new CssLinkAttributeValueLoader("href") //$NON-NLS-1$ - ), - }; - = - static TagProposal JSP_INCLUDE =3D new TagProposal( - DropURI.JSP_URI, - "jsp", //$NON-NLS-1$ - "include", //$NON-NLS-1$ - new AbsoluteFilePathAttributeValueLoader("page","","") //$NON-NLS-= 1$ //$NON-NLS-2$ //$NON-NLS-3$ - ); - = - static TagProposal JSP_FORWARD =3D new TagProposal( - DropURI.JSP_URI, - "jsp", //$NON-NLS-1$ - "forward", //$NON-NLS-1$ - new AbsoluteFilePathAttributeValueLoader("page","","") //$NON-NLS-1$ //$= NON-NLS-2$ //$NON-NLS-3$ - ); - = - static TagProposal UI_INCLUDE =3D new TagProposal( - PaletteTaglibInserter.faceletUri, - "ui", //$NON-NLS-1$ - "include", //$NON-NLS-1$ - new AbsoluteFilePathAttributeValueLoader("src","","") //$NON-NLS-1= $ //$NON-NLS-2$ //$NON-NLS-3$ - ); - = - static TagProposal S_DECORATE =3D new TagProposal( - DropURI.SEAM_URI, - "s", //$NON-NLS-1$ - "decorate", //$NON-NLS-1$ - new AbsoluteFilePathAttributeValueLoader("template","","") //$NON= -NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - ); - = - static TagProposal[] PAGE_TAG_PROPOSALS =3D new TagProposal[]{ - JSP_INCLUDE, - JSP_FORWARD - }; - = - static TagProposal[] XHTML_PAGE_TAG_PROPOSALS =3D new TagProposal[]{ - JSP_INCLUDE, - JSP_FORWARD, - UI_INCLUDE, - S_DECORATE - }; - = - static { - // There is the question here what store HTML or TLD will been asked abo= ut TagDescription = - extensionMap.put("jpg", IMG_TAG_PROPOSALS); //$NON-NLS-1$ - - extensionMap.put("jpeg", IMG_TAG_PROPOSALS); //$NON-NLS-1$ - - extensionMap.put("gif",IMG_TAG_PROPOSALS); //$NON-NLS-1$ - = - extensionMap.put("bmp",IMG_TAG_PROPOSALS); //$NON-NLS-1$ - = - extensionMap.put("png",IMG_TAG_PROPOSALS); //$NON-NLS-1$ - = - extensionMap.put("jsp",PAGE_TAG_PROPOSALS); //$NON-NLS-1$ - extensionMap.put("html",PAGE_TAG_PROPOSALS); //$NON-NLS-1$ - extensionMap.put("xhtml",XHTML_PAGE_TAG_PROPOSALS); //$NON-NLS-1$ - - extensionMap.put( - "properties",new TagProposal[]{ //$NON-NLS-1$ - new TagProposal( - DropURI.JSF_CORE_URI, - "f", //$NON-NLS-1$ - "loadBundle", //$NON-NLS-1$ - new LoadBundleBaseNameAttributeValueLoader() - ) - } - ); - extensionMap.put("css",CSS_TAG_PROPOSALS); //$NON-NLS-1$ - extensionMap.put( - "inc", new TagProposal[]{ //$NON-NLS-1$ - new TagProposal( - DropURI.JSP_URI, - "jsp", //$NON-NLS-1$ - "include", //$NON-NLS-1$ - new AbsoluteFilePathAttributeValueLoader("page","","") //$NON-N= LS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - ) - } - ); - = - } - = - public static boolean isExtensionMapped(String extension) { - return extension !=3D null && extensionMap.containsKey(extension.toLower= Case()); - } - = - public TagProposal[] getTagProposals(Object data) { - String fileName =3D data.toString(); - String extension =3D fileName.substring(fileName.lastIndexOf(".")+1); //= $NON-NLS-1$ - TagProposal[] tagProposals =3D (TagProposal[])extensionMap.get(extension= .toLowerCase()); - if(tagProposals=3D=3Dnull) { - tagProposals =3D new TagProposal[0]; - } - return tagProposals; - } - = - public boolean isTagProposalExists(Object data) { - return true; - } - - public static class ImageFileAttributesValuesLoader implements IAttribute= ValueLoader { - - public void fillTagAttributes(IDropWizardModel model) { - } - = - } - = - public static class JspFileAttributesValuesLoader implements IAttributeVa= lueLoader { - - public void fillTagAttributes(IDropWizardModel model) { - } - } -} \ No newline at end of file Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/editors/dnd/IDropWizardModel.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/IDropWizardModel.java 2009-09-18 15:03:45 UTC= (rev 17664) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/IDropWizardModel.java 2009-09-18 15:06:17 UTC= (rev 17665) @@ -25,16 +25,35 @@ public static final String TAG_PROPOSAL =3D "tagProposal"; //$NON-NLS-1$ = public static final String ATTRIBUTE_VALUE =3D "attributeValue"; //$NON-= NLS-1$ - = - public static final TagProposal UNDEFINED_TAG_PROPOSAL =3D new TagProposa= l("http://www.redhat.com/undefined","",""); //$NON-NLS-1$ //$NON-NLS-2$ //= $NON-NLS-3$ = + public static final ITagProposal UNDEFINED_TAG_PROPOSAL =3D new ITagPropo= sal() { + public IAttributeValueLoader getAttributesValueLoader() { + return EMPTY_ATTRIBUTE_VALUE_LOADER; + } + public String getDetails() { + return "http://www.redhat.com/undefined"; + } + public String getDisplayString() { + return EMPTY_PREFIX; + } + + public String getName() { + return EMPTY_PREFIX; + } + + public String getPrefix() { + return EMPTY_PREFIX; + } + = + }; + /* * Methods = */ = - public TagProposal getTagProposal(); + public ITagProposal getTagProposal(); = - public void setTagProposal(TagProposal selection); + public void setTagProposal(ITagProposal selection); = public void setAttributeValue(AttributeDescriptorValue name, Object value= ); = Added: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/t= ools/common/model/ui/editors/dnd/ITagProposal.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/ITagProposal.java (re= v 0) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/ITagProposal.java 2009-09-18 15:06:17 UTC (re= v 17665) @@ -0,0 +1,21 @@ +package org.jboss.tools.common.model.ui.editors.dnd; + +public interface ITagProposal { + public static final IAttributeValueLoader EMPTY_ATTRIBUTE_VALUE_LOADER = =3D new IAttributeValueLoader() { + public void fillTagAttributes(IDropWizardModel model) { + // do nothing + } + }; + public static String EMPTY_PREFIX =3D ""; + + public String getName(); + + public String getPrefix(); + + public IAttributeValueLoader getAttributesValueLoader(); + + public String getDisplayString(); + + public String getDetails(); + +} Property changes on: trunk/common/plugins/org.jboss.tools.common.model.ui/s= rc/org/jboss/tools/common/model/ui/editors/dnd/ITagProposal.java ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/editors/dnd/ITagProposalLoader.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/ITagProposalLoader.java 2009-09-18 15:03:45 U= TC (rev 17664) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/ITagProposalLoader.java 2009-09-18 15:06:17 U= TC (rev 17665) @@ -11,6 +11,6 @@ package org.jboss.tools.common.model.ui.editors.dnd; = public interface ITagProposalLoader { - public TagProposal[] getTagProposals(Object data); + public ITagProposal[] getTagProposals(Object data); public boolean isTagProposalExists(Object data); = } Deleted: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss= /tools/common/model/ui/editors/dnd/JSPTagProposalFactory.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/JSPTagProposalFactory.java 2009-09-18 15:03:4= 5 UTC (rev 17664) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/JSPTagProposalFactory.java 2009-09-18 15:06:1= 7 UTC (rev 17665) @@ -1,54 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.common.model.ui.editors.dnd; - -import java.util.HashMap; -import java.util.Map; - -import org.jboss.tools.common.model.ui.ModelUIPlugin; - -public class JSPTagProposalFactory implements ITagProposalFactory { - private static final JSPTagProposalFactory INSTANCE =3D new JSPTagProposa= lFactory(); = - public static Map loaderMap =3D new HashMap= (); = - - static { - loaderMap.put(DropCommandFactory.kFileMime, DropCommandFactory.PACKAGE += "FileTagProposalLoader"); //$NON-NLS-1$ - loaderMap.put(DropCommandFactory.kURLMime, DropCommandFactory.PACKAGE + = "FileTagProposalLoader"); //$NON-NLS-1$ - } - = - public static JSPTagProposalFactory getInstance() { - return INSTANCE; - } - = - private JSPTagProposalFactory() { - } - = - public ITagProposalLoader getProposalLoader(String mimeType) { - ITagProposalLoader fInstance =3D DEFAULT_PROPOSAL_LOADER; - try { - String fClassName =3D (String)loaderMap.get(mimeType); - if(fClassName =3D=3D null) { - //No need to report, just there is no specific proposal loader for thi= s myme type. - return fInstance; - } - Class newClass =3D this.getClass().getClassLoader().loadClass(fClassNam= e); - fInstance =3D (ITagProposalLoader)newClass.newInstance(); - } catch (InstantiationException e) { - ModelUIPlugin.getPluginLog().logError(e); - } catch (IllegalAccessException e) { - ModelUIPlugin.getPluginLog().logError(e); - } catch (ClassNotFoundException e) { - ModelUIPlugin.getPluginLog().logError(e); - } - return fInstance; - } -} - Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/editors/dnd/NullProposalLoader.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/NullProposalLoader.java 2009-09-18 15:03:45 U= TC (rev 17664) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/NullProposalLoader.java 2009-09-18 15:06:17 U= TC (rev 17665) @@ -12,8 +12,8 @@ = public class NullProposalLoader implements ITagProposalLoader { = - public TagProposal[] getTagProposals(Object data) { - return new TagProposal[0]; + public ITagProposal[] getTagProposals(Object data) { + return new ITagProposal[0]; } = public boolean isTagProposalExists(Object data) { Deleted: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss= /tools/common/model/ui/editors/dnd/PaletteDropCommand.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/PaletteDropCommand.java 2009-09-18 15:03:45 U= TC (rev 17664) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/PaletteDropCommand.java 2009-09-18 15:06:17 U= TC (rev 17665) @@ -1,330 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.common.model.ui.editors.dnd; - -import java.util.Properties; - -import org.eclipse.core.resources.IFile; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.jface.text.BadLocationException; -import org.eclipse.jface.text.IDocument; -import org.eclipse.jface.text.ITextSelection; -import org.eclipse.jface.text.source.ISourceViewer; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.ui.IEditorInput; -import org.eclipse.ui.IFileEditorInput; -import org.eclipse.wst.xml.core.internal.document.ElementImpl; -import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement; -import org.jboss.tools.common.model.XModelObject; -import org.jboss.tools.common.model.options.PreferenceModelUtilities; -import org.jboss.tools.common.model.ui.ModelUIPlugin; -import org.jboss.tools.common.model.ui.dnd.DnDUtil; -import org.jboss.tools.common.model.ui.editor.IModelObjectEditorInput; -import org.jboss.tools.common.model.ui.editors.dnd.composite.TagAttributes= Composite.AttributeDescriptorValue; -import org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper; -import org.jboss.tools.common.model.ui.views.palette.PaletteInsertManager; -import org.jboss.tools.common.model.util.EclipseResourceUtil; -import org.jboss.tools.jst.web.tld.IWebProject; -import org.jboss.tools.jst.web.tld.TLDToPaletteHelper; -import org.jboss.tools.jst.web.tld.URIConstants; -import org.jboss.tools.jst.web.tld.WebProjectFactory; - -/** - * = - * @author eskimo - */ -public class PaletteDropCommand extends FileDropCommand { - Properties initialValues =3D new Properties(); - String startText; - String endText; = - String newLine; - String reformat =3D "no"; //$NON-NLS-1$ - - Properties properties =3D new Properties(); - boolean callPaletteWizard =3D false; - - /** - * = - */ - protected IDropWizardModel createSpecificModel() { - return new PaletteDropWizardModel(tagProposalFactory); - } - - protected void addCustomProperties(Properties runningProperties) { = - newLine =3D properties.getProperty(PaletteInsertHelper.PROPOPERTY_NEW_LI= NE); - if (newLine =3D=3D null) newLine=3D"true"; //$NON-NLS-1$ - runningProperties.setProperty(PaletteInsertHelper.PROPOPERTY_NEW_LINE, n= ewLine); - String addTaglib =3D properties.getProperty(PaletteInsertHelper.PROPOPER= TY_ADD_TAGLIB); - if(addTaglib =3D=3D null) addTaglib =3D "true"; //$NON-NLS-1$ - runningProperties.setProperty(PaletteInsertHelper.PROPOPERTY_ADD_TAGLIB,= addTaglib); - } - = - public void execute() { - if(getDefaultModel().getTagProposal() =3D=3D IDropWizardModel.UNDEFINED_= TAG_PROPOSAL) { - if(startText =3D=3D null && endText =3D=3D null) return; - int pos =3D ((ITextSelection)getDefaultModel().getDropData().getSelecti= onProvider().getSelection()).getOffset(); - getDefaultModel().getDropData().getSourceViewer().setSelectedRange(pos,= 0); - if(startText !=3D null) properties.setProperty(PaletteInsertHelper.PROP= OPERTY_START_TEXT, startText); - if(endText !=3D null) properties.setProperty(PaletteInsertHelper.PROPOP= ERTY_END_TEXT, endText); - if(reformat !=3D null) properties.setProperty(PaletteInsertHelper.PROPO= PERTY_REFORMAT_BODY, reformat); - if(newLine !=3D null) properties.setProperty(PaletteInsertHelper.PROPOP= ERTY_NEW_LINE, newLine); - PaletteInsertHelper.insertIntoEditor( - getDefaultModel().getDropData().getSourceViewer(), - properties - ); - } else { - DropData data =3D getDefaultModel().getDropData(); - ISourceViewer viewer =3D data.getSourceViewer(); - if(data.getContainer() !=3D null){ - if (data.getContainer() instanceof ElementImpl) { - ElementImpl container =3D (ElementImpl)data.getContainer(); - if(!container.hasEndTag()){ - try{ - IDocument document =3D viewer.getDocument(); - int containerOffset =3D container.getStartOffset(); - int containerLenght =3D container.getStartEndOffset()-containerOffs= et; - String containerString =3D document.get(containerOffset, containerL= enght); - int slashPosition =3D containerString.lastIndexOf("/"); //$NON-NLS-= 1$ - if(slashPosition >=3D 0){ - int deltaOffset =3D (containerString.length()-1)-slashPosition; - String text =3D ""; //$NON-NLS-1$ - for(int i=3D0; i < deltaOffset;i++) text +=3D " "; //$NON-NLS-1$ - text +=3D ">"; //$NON-NLS-1$ //$NON-= NLS-2$ - document.replace(containerOffset+slashPosition, containerString.le= ngth()-slashPosition, text); - } - }catch(BadLocationException ex){ - ModelUIPlugin.getPluginLog().logError(ex); - } - } - } - } = - super.execute(); - } - } - - public void initialize() { - DropData data =3D getDefaultModel().getDropData(); = - = - IEditorInput input =3D data.getEditorInput(); - XModelObject target =3D null; - IFile f =3D null; - if(input instanceof IFileEditorInput) { - f =3D ((IFileEditorInput)input).getFile(); - target =3D EclipseResourceUtil.getObjectByResource(f); - if(target =3D=3D null && f.exists()) { - target =3D EclipseResourceUtil.createObjectForResource(f); - } - } else if(input instanceof IModelObjectEditorInput) { - target =3D ((IModelObjectEditorInput)input).getXModelObject(); - } - if(target =3D=3D null) { - initialize2(); - } else { - ISourceViewer viewer =3D data.getSourceViewer(); - = - properties =3D new Properties(); - properties.put("viewer", viewer); //$NON-NLS-1$ - properties.setProperty("text", viewer.getDocument().get()); //$NON-NLS-= 1$ - properties.setProperty("isDrop", "true"); //$NON-NLS-1$ //$NON-NLS-2$ - properties.setProperty("actionSourceGUIComponentID", "editor"); //$NON-= NLS-1$ //$NON-NLS-2$ - properties.setProperty("accepsAsString", "true"); //$NON-NLS-1$ //$NON-= NLS-2$ - = - if(f !=3D null) { - properties.put("file", f); //$NON-NLS-1$ - } - ISelection selection =3D data.getSelectionProvider().getSelection(); - = - int offset =3D 0; - //int length =3D 0; - if(selection instanceof ITextSelection) { - offset =3D ((ITextSelection)selection).getOffset(); - //length =3D ((ITextSelection)selection).getLength(); - } else { - offset =3D viewer.getTextWidget().getCaretOffset(); - } - properties.setProperty("pos", "" + offset); //$NON-NLS-1$ //$NON-NLS-2$ - if(selection instanceof IStructuredSelection && !selection.isEmpty()) { - Object so =3D ((IStructuredSelection)selection).getFirstElement(); - if(so instanceof IDOMElement) { - String en =3D ((IDOMElement)so).getNodeName(); - properties.setProperty("context:tagName", en); //$NON-NLS-1$ - String attrName =3D data.getAttributeName(); - if(attrName !=3D null) { - properties.setProperty("context:attrName", attrName); //$NON-NLS-1$ - } - } - } - try { - if(DnDUtil.isPasteEnabled(target)) { - DnDUtil.paste(target, properties); - } else { - XModelObject s =3D PreferenceModelUtilities.getPreferenceModel().getM= odelBuffer().source(); - if(s !=3D null) { - properties.setProperty("start text", "" + getDefaultText(s)); //$NON= -NLS-1$ //$NON-NLS-2$ - properties.setProperty("end text", ""); //$NON-NLS-1$ //$NON-NLS-2$ - properties.setProperty("new line", "newLine"); //$NON-NLS-1$ //$NON-= NLS-2$ - } - } - } catch (CoreException e) { - ModelUIPlugin.getPluginLog().logError(e); - } - startText =3D properties.getProperty(TLDToPaletteHelper.START_TEXT); - endText =3D properties.getProperty(TLDToPaletteHelper.END_TEXT); - reformat =3D properties.getProperty(TLDToPaletteHelper.REFORMAT); - String uri =3D properties.getProperty(URIConstants.LIBRARY_URI); - String libraryVersion =3D properties.getProperty(URIConstants.LIBRARY_V= ERSION); - String defaultPrefix =3D properties.getProperty(URIConstants.DEFAULT_PR= EFIX); - String tagname =3D properties.getProperty("tag name"); //$NON-NLS-1$ - = - callPaletteWizard =3D PaletteInsertManager.getInstance().getWizardName(= properties) !=3D null; - = - boolean isWizardEnabled =3D (!"FileJAVA".equals(target.getModelEntity()= .getName())); //$NON-NLS-1$ - if(getDefaultModel() instanceof PaletteDropWizardModel) { - ((PaletteDropWizardModel)getDefaultModel()).setWizardEnabled(isWizardE= nabled); - } - = - if(uri =3D=3D null || tagname =3D=3D null) { - getDefaultModel().setTagProposal(IDropWizardModel.UNDEFINED_TAG_PROPOS= AL); - } else { - getDefaultModel().setTagProposal(new TagProposal(uri, libraryVersion, = defaultPrefix, tagname)); - insertInitialValues(); - } - } = - } - - private void initialize2() { - XModelObject object =3D PreferenceModelUtilities.getPreferenceModel().ge= tModelBuffer().source(); - String tagname =3D object.getAttributeValue("name"); //$NON-NLS-1$ - XModelObject parent =3D object.getParent(); - String uri =3D (parent =3D=3D null) ? "" : parent.getAttributeValue(URIC= onstants.LIBRARY_URI); //$NON-NLS-1$ - String libraryVersion =3D (parent =3D=3D null) ? "" : parent.getAttribut= eValue(URIConstants.LIBRARY_VERSION); //$NON-NLS-1$ - String defaultPrefix =3D (parent =3D=3D null) ? "" : parent.getAttribute= Value(URIConstants.DEFAULT_PREFIX); //$NON-NLS-1$ - this.getDefaultModel().setTagProposal(new TagProposal(uri, libraryVersio= n,defaultPrefix,tagname)); - startText =3D object.getAttributeValue("start text"); //$NON-NLS-1$ - endText =3D object.getAttributeValue("end text"); //$NON-NLS-1$ - } - = - private void insertInitialValues() { - parseInitialValues(startText); - AttributeDescriptorValue[] vs =3D getDefaultModel().getAttributeValueDes= criptors(); - for (int i =3D 0; i < vs.length; i++) { - String v =3D initialValues.getProperty(vs[i].getName()); - if(v !=3D null) vs[i].setValue(v); - } - } - = - private void parseInitialValues(String startText) { - if(startText =3D=3D null || startText.length() =3D=3D 0) return; - int bi =3D startText.indexOf('<'); - if(bi < 0) return; - int ei =3D startText.indexOf('>', bi); - if(ei < 0) return; - String header =3D startText.substring(bi + 1, ei); - int NOTHING =3D 0; - int ATT_NAME =3D 1; - int ATT_VALUE =3D 2; - char quote =3D '\0'; - int state =3D NOTHING; - String name =3D null; - String value =3D null; - for (int i =3D 0; i < header.length(); i++) { - char c =3D header.charAt(i); - if(state =3D=3D NOTHING) { - if(Character.isJavaIdentifierStart(c)) { - name =3D "" + c; //$NON-NLS-1$ - state =3D ATT_NAME; - } - } else if(state =3D=3D ATT_NAME) { - if(Character.isJavaIdentifierPart(c) || c =3D=3D ':') { - name +=3D c; - } else if(c =3D=3D '=3D') { - state =3D ATT_VALUE; - quote =3D '\0'; - } - } else if(state =3D=3D ATT_VALUE) { - if(c =3D=3D quote) { - initialValues.setProperty(name, value); - name =3D null; - value =3D null; - state =3D NOTHING; - quote =3D '\0'; - } else if(c =3D=3D '"' || c =3D=3D '\'') { - quote =3D c; - value =3D ""; //$NON-NLS-1$ - } else if(quote !=3D '\0') { - value +=3D c; - } - } - } - } = - - protected String generateStartText() { - startText =3D properties.getProperty("start text"); //$NON-NLS-1$ - if(getDefaultModel().getTagProposal()=3D=3DIDropWizardModel.UNDEFINED_TA= G_PROPOSAL - || getDefaultModel().getTagProposal().getUri().length() =3D=3D 0) { - return startText; - } - String s1 =3D super.generateStartText(); - String s2 =3D startText; - if(s2 =3D=3D null) return s1; - if(s1.indexOf('=3D') < 0) return s2; // no input - int bi1 =3D s1.indexOf('<'); - int bi2 =3D s2.indexOf('<'); - if(bi2 < 0 || bi1 < 0) return s2; - int ei1 =3D s1.indexOf('>', bi1); - int ei2 =3D s2.indexOf('>', bi2); - if(ei1 < 0 || ei2 < 0) return s1; - boolean slash1 =3D s1.charAt(ei1 - 1) =3D=3D '/'; - boolean slash2 =3D s2.charAt(ei2 - 1) =3D=3D '/'; - if(slash1 && !slash2) { - s2 =3D s2.substring(0, bi2) + s1.substring(bi1, ei1 - 1) + s2.substring= (ei2); - } else if(!slash1 && slash2) { - s2 =3D s2.substring(0, bi2) + s1.substring(bi1, ei1) + s2.substring(ei2= - 1); - } else { - s2 =3D s2.substring(0, bi2) + s1.substring(bi1, ei1) + s2.substring(ei2= ); - } - return s2; - } - - protected String generateEndText() { - endText =3D properties.getProperty("end text"); //$NON-NLS-1$ - return (endText !=3D null) ? endText : ""; //$NON-NLS-1$ - } - - protected String getReformatBodyProperty() { - return reformat; - } - - protected IDropWizard createDropWizard() { - String wizardName =3D PaletteInsertManager.getInstance().getWizardName(p= roperties); - = - IDropWizard wizard =3D null; - if(wizardName !=3D null) { - wizard =3D (IDropWizard)PaletteInsertManager.getInstance().createWizard= Instance(properties); - } - if(wizard =3D=3D null) wizard =3D new DropWizard(); - wizard.setCommand(this); - return wizard; - } - = - public Properties getProperties() { - return properties; - } - = - private String getDefaultText(XModelObject o) { - if(o =3D=3D null) return ""; //$NON-NLS-1$ - if(o.getFileType() !=3D XModelObject.FILE) return o.getPresentationStrin= g(); - IWebProject p =3D WebProjectFactory.instance.getWebProject(o.getModel()); - String path =3D p.getPathInWebRoot(o); - return path =3D=3D null ? o.getPresentationString() : path; - } -} \ No newline at end of file Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/editors/dnd/TagAttributesWizardPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/TagAttributesWizardPage.java 2009-09-18 15:03= :45 UTC (rev 17664) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/TagAttributesWizardPage.java 2009-09-18 15:06= :17 UTC (rev 17665) @@ -119,10 +119,10 @@ * */ protected void updateTitle() { - TagProposal tagProposal =3D (TagProposal)getDropWizardModel().getTagProp= osal(); + ITagProposal tagProposal =3D getDropWizardModel().getTagProposal(); StringBuffer titleText =3D new StringBuffer(); titleText.append("<"); //$NON-NLS-1$ - if(!TagProposal.EMPTY_PREFIX.equals(tagProposal.getPrefix())) { + if(!ITagProposal.EMPTY_PREFIX.equals(tagProposal.getPrefix())) { titleText .append(tagProposal.getPrefix()) .append(":"); //$NON-NLS-1$ Deleted: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss= /tools/common/model/ui/editors/dnd/TagProposal.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/TagProposal.java 2009-09-18 15:03:45 UTC (rev= 17664) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/TagProposal.java 2009-09-18 15:06:17 UTC (rev= 17665) @@ -1,101 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.common.model.ui.editors.dnd; - -public class TagProposal { - = - public static final String EMPTY_PREFIX =3D ""; //$NON-NLS-1$ - public static final String EMPTY_URI =3D ""; //$NON-NLS-1$ - = - public static final IAttributeValueLoader EMPTY_ATTRIBUTE_VALUE_LOADER = =3D new IAttributeValueLoader() { - public void fillTagAttributes(IDropWizardModel model) { - // do nothing - } - }; - = - String uri; - String libraryVersion =3D ""; //$NON-NLS-1$ - String prefix; - String name; - IAttributeValueLoader attributeValueLoader =3D EMPTY_ATTRIBUTE_VALUE_LOA= DER; - = - /** - * TagProposal with empty attribute value loader = - * - */ - public TagProposal( - String uri, = - String prefix, = - String name - ) { - this(uri, "", prefix, name); //$NON-NLS-1$ - } - - public TagProposal( - String uri, - String libraryVersion, - String prefix, = - String name - ) { - this.uri =3D uri; - this.libraryVersion =3D (libraryVersion =3D=3D null) ? "" : libraryVers= ion; //$NON-NLS-1$ - this.prefix =3D prefix; - this.name =3D name; - } - - /** - * = - * - */ - public TagProposal( - String uri, = - String prefix, = - String name, - IAttributeValueLoader loader - ) { - this.uri =3D uri; - this.prefix =3D prefix; - this.name =3D name; - this.attributeValueLoader =3D loader; - } - = - /** - * = - * @return - */ - public String getName() { - return name; - } - = - /** - * = - * @return - */ - public String getPrefix() { - return prefix; - } - - /** - * = - * @return - */ - public String getUri() { - return uri; - } - = - public String getLibraryVersion() { - return libraryVersion; - } - = - public IAttributeValueLoader getAttributesValueLoader() { - return attributeValueLoader; - } -} Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/editors/dnd/composite/TagAttributesComposite.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/composite/TagAttributesComposite.java 2009-09= -18 15:03:45 UTC (rev 17664) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/composite/TagAttributesComposite.java 2009-09= -18 15:06:17 UTC (rev 17665) @@ -225,7 +225,7 @@ context.setProperty("attributeName", attrDescr.getName()); //$NON-NLS= -1$ String tagName =3D "" + fWizardModel.getTagProposal().getName(); //$N= ON-NLS-1$ String prefix =3D fWizardModel.getTagProposal().getPrefix(); - if(prefix !=3D null && prefix.length() > 0 && !tagName.startsWith("pr= efix" + ":")) { //$NON-NLS-1$ //$NON-NLS-2$ + if(prefix !=3D null && prefix.length() > 0 && !tagName.startsWith(pre= fix + ":")) { //$NON-NLS-1$ //$NON-NLS-2$ tagName =3D prefix + ":" + tagName; //$NON-NLS-1$ } context.setProperty("nodeName", tagName); //$NON-NLS-1$ Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/editors/dnd/composite/TagProposalsComposite.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/composite/TagProposalsComposite.java 2009-09-= 18 15:03:45 UTC (rev 17664) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/composite/TagProposalsComposite.java 2009-09-= 18 15:06:17 UTC (rev 17665) @@ -27,23 +27,16 @@ import org.eclipse.swt.widgets.Table; import org.eclipse.swt.widgets.TableColumn; import org.jboss.tools.common.model.ui.editors.dnd.IDropWizardModel; +import org.jboss.tools.common.model.ui.editors.dnd.ITagProposal; import org.jboss.tools.common.model.ui.editors.dnd.ITagProposalFactory; -import org.jboss.tools.common.model.ui.editors.dnd.TagProposal; = public class TagProposalsComposite extends Composite { = - private TagProposal selection =3D IDropWizardModel.UNDEFINED_TAG_PROPOSAL; + private ITagProposal selection =3D IDropWizardModel.UNDEFINED_TAG_PROPOSA= L; CheckboxTableViewer tableTreeViewer; - TagProposal[] fTagProposals; + ITagProposal[] fTagProposals; IDropWizardModel fModel; = = -// public interface ITagProposalSelectionListener { -// public void tagProposalSelected(TagProposal pproposal); -// } - = -// private ITagProposalSelectionListener listener =3D null; -// private String fMimeType; = - = public TagProposalsComposite(Composite parent, int styles,IDropWizardMode= l model) { super(parent,styles); fModel =3D model; @@ -90,7 +83,7 @@ tableTreeViewer.addCheckStateListener( new ICheckStateListener() { public void checkStateChanged(CheckStateChangedEvent event) { - TagProposal proposal =3D (TagProposal) event.getElement(); + ITagProposal proposal =3D (ITagProposal)event.getElement(); if (event.getChecked()) { if(selection!=3DIDropWizardModel.UNDEFINED_TAG_PROPOSAL) { tableTreeViewer.setChecked(selection, false); = @@ -130,13 +123,13 @@ } = public String getColumnText(Object element, int columnIndex) { - TagProposal prop =3D (TagProposal)element; + ITagProposal prop =3D (ITagProposal)element; switch (columnIndex) { case TAG_NAME_INDEX: - return prop.getPrefix()=3D=3DTagProposal.EMPTY_PREFIX?prop.getName(= ):prop.getPrefix()+":"+prop.getName(); //$NON-NLS-1$ + return prop.getDisplayString(); = case TAG_URI_INDEX: - return prop.getUri(); + return prop.getDetails(); } throw new IllegalArgumentException("Wrong column index for LabelProvi= der"); //$NON-NLS-1$ } @@ -162,7 +155,7 @@ /// listener =3D l; /// } = - public TagProposal[] getTagProposals() { + public ITagProposal[] getTagProposals() { return fTagProposals; } = @@ -174,7 +167,7 @@ return tagProposalFactory.getProposalLoader(mimeType).getTagProposals(dr= opData).length>0; = } = - public static TagProposal[] getTagProposals(String mimeType,String dropDa= ta, ITagProposalFactory tagProposalFactory) { + public static ITagProposal[] getTagProposals(String mimeType,String dropD= ata, ITagProposalFactory tagProposalFactory) { return tagProposalFactory.getProposalLoader(mimeType).getTagProposals(dr= opData); = } = Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/editors/dnd/context/DropContext.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/context/DropContext.java 2009-09-18 15:03:45 = UTC (rev 17664) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/context/DropContext.java 2009-09-18 15:06:17 = UTC (rev 17665) @@ -12,6 +12,8 @@ = import java.io.File; import java.net.MalformedURLException; +import java.util.HashSet; +import java.util.Set; = import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IResource; @@ -35,7 +37,6 @@ import org.jboss.tools.common.model.ui.dnd.VpeDnDEvent; import org.jboss.tools.common.model.ui.dnd.VpeTextDropAction; import org.jboss.tools.common.model.ui.editors.dnd.DropUtils; -import org.jboss.tools.common.model.ui.editors.dnd.FileTagProposalLoader; import org.jboss.tools.common.model.util.EclipseResourceUtil; import org.jboss.tools.jst.web.tld.TLDUtil; = @@ -160,13 +161,19 @@ } event =3D null; } + + //see FileTagProposalLoader + public static Set mappedExtensions =3D new HashSet(); + public static boolean isExtensionMapped(String extension) { + return extension !=3D null && mappedExtensions.contains(extension.toLowe= rCase()); + } = private boolean dropAsFileObject(XModelObject o) { if(o =3D=3D null) return false; if(o.getFileType() !=3D XModelObject.FILE || isOverAttributeValue) retur= n false; if(TLDUtil.isTaglib(o)) return false; String extension =3D o.getAttributeValue("extension"); //$NON-NLS-1$ - return extension !=3D null && FileTagProposalLoader.isExtensionMapped= (extension); + return extension !=3D null && isExtensionMapped(extension); } = class TransferHolder { --===============6174360321477397825==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 11:08:13 2009 Content-Type: multipart/mixed; boundary="===============6969072184466312142==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17666 - trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wizard/palette. Date: Fri, 18 Sep 2009 11:08:13 -0400 Message-ID: <200909181508.n8IF8D7W029743@svn01.web.mwc.hst.phx2.redhat.com> --===============6969072184466312142== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-18 11:08:12 -0400 (Fri, 18 Sep 2009) New Revision: 17666 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiza= rd/palette/DataTableWizard.java trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiza= rd/palette/DataTableWizardPage.java trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiza= rd/palette/OutputLinkWizard.java trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiza= rd/palette/OutputLinkWizardPage.java trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiza= rd/palette/PanelGridWizard.java trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiza= rd/palette/PanelGridWizardPage.java trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiza= rd/palette/SelectItemsWizard.java trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiza= rd/palette/SelectItemsWizardPage.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Initial moving jsp related dnd to jst.jsp Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/= ui/wizard/palette/DataTableWizard.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiz= ard/palette/DataTableWizard.java 2009-09-18 15:06:17 UTC (rev 17665) +++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiz= ard/palette/DataTableWizard.java 2009-09-18 15:08:12 UTC (rev 17666) @@ -19,6 +19,7 @@ = import org.jboss.tools.common.model.ui.editors.dnd.*; import org.jboss.tools.common.model.ui.editors.dnd.composite.TagProposalsC= omposite; +import org.jboss.tools.jst.jsp.jspeditor.dnd.PaletteDropCommand; = public class DataTableWizard extends Wizard implements PropertyChangeListe= ner, IDropWizard { @@ -38,7 +39,7 @@ page2 =3D new DataTableWizardPage(); page2.setProperties(fDropCommand.getProperties()); = - TagProposal[] proposals =3D = + ITagProposal[] proposals =3D = TagProposalsComposite.getTagProposals(getMimeType(),getMimeData(), fDro= pCommand.getTagProposalFactory()); = if(TagProposalsComposite.areThereTagProposals( Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/= ui/wizard/palette/DataTableWizardPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiz= ard/palette/DataTableWizardPage.java 2009-09-18 15:06:17 UTC (rev 17665) +++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiz= ard/palette/DataTableWizardPage.java 2009-09-18 15:08:12 UTC (rev 17666) @@ -41,6 +41,7 @@ import org.jboss.tools.jsf.model.pv.JSFPromptingProvider; import org.jboss.tools.jsf.ui.JsfUiPlugin; import org.jboss.tools.jsf.ui.Messages; +import org.jboss.tools.jst.jsp.jspeditor.dnd.TagProposal; import org.jboss.tools.common.model.ui.editors.dnd.*; import org.jboss.tools.common.model.ui.editors.dnd.composite.*; import org.jboss.tools.common.model.ui.editors.dnd.composite.TagAttributes= Composite.AttributeDescriptorValue; Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/= ui/wizard/palette/OutputLinkWizard.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiz= ard/palette/OutputLinkWizard.java 2009-09-18 15:06:17 UTC (rev 17665) +++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiz= ard/palette/OutputLinkWizard.java 2009-09-18 15:08:12 UTC (rev 17666) @@ -18,6 +18,7 @@ = import org.jboss.tools.common.model.ui.editors.dnd.*; import org.jboss.tools.common.model.ui.editors.dnd.composite.*; +import org.jboss.tools.jst.jsp.jspeditor.dnd.PaletteDropCommand; = /** * @author erick = @@ -78,7 +79,7 @@ = page2 =3D new OutputLinkWizardPage(); = - TagProposal[] proposals =3D = + ITagProposal[] proposals =3D = TagProposalsComposite.getTagProposals(getMimeType(),getMimeData(), fDro= pCommand.getTagProposalFactory()); = this.addPage(page2); Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/= ui/wizard/palette/OutputLinkWizardPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiz= ard/palette/OutputLinkWizardPage.java 2009-09-18 15:06:17 UTC (rev 17665) +++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiz= ard/palette/OutputLinkWizardPage.java 2009-09-18 15:08:12 UTC (rev 17666) @@ -24,6 +24,7 @@ import org.jboss.tools.common.model.options.PreferenceModelUtilities; import org.jboss.tools.common.model.ui.editors.dnd.*; import org.jboss.tools.common.model.ui.editors.dnd.composite.TagAttributes= Composite.AttributeDescriptorValue; +import org.jboss.tools.jst.jsp.jspeditor.dnd.TagProposal; = /** * @author erick = Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/= ui/wizard/palette/PanelGridWizard.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiz= ard/palette/PanelGridWizard.java 2009-09-18 15:06:17 UTC (rev 17665) +++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiz= ard/palette/PanelGridWizard.java 2009-09-18 15:08:12 UTC (rev 17666) @@ -17,6 +17,7 @@ = import org.jboss.tools.common.model.ui.editors.dnd.*; import org.jboss.tools.common.model.ui.editors.dnd.composite.*; +import org.jboss.tools.jst.jsp.jspeditor.dnd.PaletteDropCommand; = /** * @author erick = @@ -46,7 +47,7 @@ super.addPages(); page2 =3D new PanelGridWizardPage(); = - TagProposal[] proposals =3D TagProposalsComposite.getTagProposals( + ITagProposal[] proposals =3D TagProposalsComposite.getTagProposals( getMimeType(), getMimeData(), fDropCommand .getTagProposalFactory()); = Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/= ui/wizard/palette/PanelGridWizardPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiz= ard/palette/PanelGridWizardPage.java 2009-09-18 15:06:17 UTC (rev 17665) +++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiz= ard/palette/PanelGridWizardPage.java 2009-09-18 15:08:12 UTC (rev 17666) @@ -19,6 +19,7 @@ = import org.jboss.tools.common.model.ui.editors.dnd.*; import org.jboss.tools.common.model.ui.editors.dnd.composite.TagAttributes= Composite.AttributeDescriptorValue; +import org.jboss.tools.jst.jsp.jspeditor.dnd.TagProposal; = /** * @author erick Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/= ui/wizard/palette/SelectItemsWizard.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiz= ard/palette/SelectItemsWizard.java 2009-09-18 15:06:17 UTC (rev 17665) +++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiz= ard/palette/SelectItemsWizard.java 2009-09-18 15:08:12 UTC (rev 17666) @@ -18,6 +18,7 @@ = import org.jboss.tools.common.model.ui.editors.dnd.*; import org.jboss.tools.common.model.ui.editors.dnd.composite.*; +import org.jboss.tools.jst.jsp.jspeditor.dnd.PaletteDropCommand; = /** * @author erick = @@ -79,7 +80,7 @@ = page2 =3D new SelectItemsWizardPage(); = - TagProposal[] proposals =3D TagProposalsComposite.getTagProposals( + ITagProposal[] proposals =3D TagProposalsComposite.getTagProposals( getMimeType(), getMimeData(), fDropCommand .getTagProposalFactory()); = Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/= ui/wizard/palette/SelectItemsWizardPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiz= ard/palette/SelectItemsWizardPage.java 2009-09-18 15:06:17 UTC (rev 17665) +++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/wiz= ard/palette/SelectItemsWizardPage.java 2009-09-18 15:08:12 UTC (rev 17666) @@ -22,6 +22,7 @@ import org.jboss.tools.common.meta.action.impl.XEntityDataImpl; import org.jboss.tools.common.model.options.PreferenceModelUtilities; import org.jboss.tools.common.model.ui.editors.dnd.*; +import org.jboss.tools.jst.jsp.jspeditor.dnd.TagProposal; = /** * @author erick = --===============6969072184466312142==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 11:09:26 2009 Content-Type: multipart/mixed; boundary="===============8542087680709210040==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17667 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor. Date: Fri, 18 Sep 2009 11:09:26 -0400 Message-ID: <200909181509.n8IF9QQF029943@svn01.web.mwc.hst.phx2.redhat.com> --===============8542087680709210040== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-18 11:09:26 -0400 (Fri, 18 Sep 2009) New Revision: 17667 Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vpe= Controller.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Initial moving jsp related dnd to jst.jsp Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/VpeController.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eController.java 2009-09-18 15:08:12 UTC (rev 17666) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eController.java 2009-09-18 15:09:26 UTC (rev 17667) @@ -82,7 +82,6 @@ import org.jboss.tools.common.model.ui.editors.dnd.DropData; import org.jboss.tools.common.model.ui.editors.dnd.DropUtils; import org.jboss.tools.common.model.ui.editors.dnd.IDropCommand; -import org.jboss.tools.common.model.ui.editors.dnd.JSPTagProposalFactory; import org.jboss.tools.common.model.ui.editors.dnd.context.InnerDragBuffer; import org.jboss.tools.common.model.ui.util.ModelUtilities; import org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper; @@ -91,6 +90,7 @@ import org.jboss.tools.common.resref.core.ResourceReferenceListListener; import org.jboss.tools.jst.jsp.editor.IJSPTextEditor; import org.jboss.tools.jst.jsp.editor.IVisualController; +import org.jboss.tools.jst.jsp.jspeditor.dnd.JSPTagProposalFactory; import org.jboss.tools.jst.jsp.preferences.VpePreference; import org.jboss.tools.jst.web.tld.TLDUtil; import org.jboss.tools.jst.web.tld.URIConstants; --===============8542087680709210040==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 11:17:53 2009 Content-Type: multipart/mixed; boundary="===============3673272441010376498==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17668 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/views/palette. Date: Fri, 18 Sep 2009 11:17:53 -0400 Message-ID: <200909181517.n8IFHrtW032172@svn01.web.mwc.hst.phx2.redhat.com> --===============3673272441010376498== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-18 11:17:53 -0400 (Fri, 18 Sep 2009) New Revision: 17668 Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/views/palette/PaletteInsertManager.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Initial moving jsp related dnd to jst.jsp Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/views/palette/PaletteInsertManager.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/views/palette/PaletteInsertManager.java 2009-09-18 15:09:= 26 UTC (rev 17667) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/views/palette/PaletteInsertManager.java 2009-09-18 15:17:= 53 UTC (rev 17668) @@ -19,7 +19,6 @@ import org.eclipse.core.runtime.IExtensionPoint; import org.eclipse.core.runtime.Platform; import org.jboss.tools.common.model.ui.ModelUIPlugin; -import org.jboss.tools.jst.web.tld.URIConstants; = public class PaletteInsertManager { static PaletteInsertManager instance =3D new PaletteInsertManager(); @@ -32,8 +31,7 @@ = public String getWizardName(Properties properties) { String tagname =3D properties.getProperty("tag name"); //$NON-NLS-1$ - String uri =3D properties.getProperty(URIConstants.LIBRARY_URI); - return getWizardName(tagname, uri); + return getWizardName(tagname); } = public Object createWizardInstance(Properties properties) { @@ -51,7 +49,7 @@ } } = - private String getWizardName(String tagname, String uri) { + private String getWizardName(String tagname) { if(tagWizards =3D=3D null) { loadWizards(); } --===============3673272441010376498==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 12:12:08 2009 Content-Type: multipart/mixed; boundary="===============7281133884683110335==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17669 - tags. Date: Fri, 18 Sep 2009 12:12:08 -0400 Message-ID: <200909181612.n8IGC8ti014652@svn01.web.mwc.hst.phx2.redhat.com> --===============7281133884683110335== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: nickboldt Date: 2009-09-18 12:12:07 -0400 (Fri, 18 Sep 2009) New Revision: 17669 Added: tags/jbosstools-3.0.2.GA/ Log: tag for 3.0.2.GA Copied: tags/jbosstools-3.0.2.GA (from rev 17668, branches/jbosstools-3.0.x) --===============7281133884683110335==-- From jbosstools-commits at lists.jboss.org Fri Sep 18 12:56:22 2009 Content-Type: multipart/mixed; boundary="===============9083926528027744715==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17670 - in trunk: jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist and 1 other directories. Date: Fri, 18 Sep 2009 12:56:22 -0400 Message-ID: <200909181656.n8IGuMTd024980@svn01.web.mwc.hst.phx2.redhat.com> --===============9083926528027744715== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-18 12:56:22 -0400 (Fri, 18 Sep 2009) New Revision: 17670 Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ElVarSearcher.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/co= ntentassist/XmlContentAssistProcessor.java trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/refactoring/SeamRefactorSearcher.java Log: https://jira.jboss.org/jira/browse/JBIDE-4771 Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss= /tools/common/el/core/resolver/ElVarSearcher.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ElVarSearcher.java 2009-09-18 16:12:07 UTC (rev 17= 669) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ElVarSearcher.java 2009-09-18 16:56:22 UTC (rev 17= 670) @@ -12,6 +12,7 @@ = import java.io.IOException; import java.util.ArrayList; +import java.util.Collections; import java.util.List; = import org.eclipse.core.resources.IFile; @@ -121,8 +122,10 @@ try { model =3D mm.getModelForRead(file); } catch (IOException e) { + Activator.getDefault().logError(e); return null; } catch (CoreException e) { + Activator.getDefault().logError(e); return null; } } @@ -151,7 +154,7 @@ if(node!=3Dnull) { return findAllVars(node); } - return null; + return Collections.emptyList(); } = /** @@ -173,7 +176,7 @@ if(node!=3Dnull) { return findAllVars(node, resolver.getParserFactory()); } - return null; + return Collections.emptyList(); } = /** @@ -186,7 +189,7 @@ if(node!=3Dnull) { return findAllVars(node, factory); } - return null; + return Collections.emptyList(); } = /** @@ -324,5 +327,4 @@ } return null; } - -} +} \ No newline at end of file Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/contentassist/XmlContentAssistProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/XmlContentAssistProcessor.java 2009-09-18 16:12:07 UTC (rev 17= 669) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/XmlContentAssistProcessor.java 2009-09-18 16:56:22 UTC (rev 17= 670) @@ -10,6 +10,7 @@ *************************************************************************= *****/ package org.jboss.tools.jst.jsp.contentassist; = +import java.util.Collections; import java.util.List; = import org.eclipse.core.resources.IFile; @@ -23,6 +24,7 @@ import org.jboss.tools.common.el.core.resolver.ELContext; import org.jboss.tools.common.el.core.resolver.ELContextImpl; import org.jboss.tools.common.el.core.resolver.ELResolution; +import org.jboss.tools.common.el.core.resolver.ELResolutionImpl; import org.jboss.tools.common.el.core.resolver.ELResolver; import org.jboss.tools.common.el.core.resolver.ElVarSearcher; import org.jboss.tools.common.el.core.resolver.Var; @@ -62,7 +64,7 @@ ELExpression operand, boolean returnEqualedVariablesOnly, List vars, ElVarSearcher varSearcher) throws BadLocationException, StringIndexOutOfBoundsException { - return null; + return new ELResolutionImpl(); } = public ELParserFactory getParserFactory() { @@ -70,11 +72,11 @@ } = public List getProposals(ELContext context, String el) { - return null; + return Collections.emptyList(); } = public ELResolution resolve(ELContext context, ELExpression operand) { - return null; + return new ELResolutionImpl(); } }; ElVarSearcher varSearcher =3D new ElVarSearcher(file, fakeEngine); Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/refactoring/SeamRefactorSearcher.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java 2009-09-18 16:12:07 UTC = (rev 17669) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java 2009-09-18 16:56:22 UTC = (rev 17670) @@ -387,43 +387,32 @@ } return false; } - = + private void resolve(IFile file, ELExpression operand, int offset, int le= ngth){ ELResolver[] resolvers =3D ELResolverFactoryManager.getInstance().getRes= olvers(file); - = + for(ELResolver resolver : resolvers){ if(!(resolver instanceof ELCompletionEngine)) continue; - = + SimpleELContext context =3D new SimpleELContext(); - = + context.setResource(file); context.setElResolvers(resolvers); = List vars =3D ElVarSearcher.findAllVars(context, offset, resolver); - = - if(vars =3D=3D null) - continue; - = + context.setVars(vars); = ELResolution resolution =3D resolver.resolve(context, operand); - = - if(resolution =3D=3D null) - continue; - = + ELSegment segment =3D resolution.findSegmentByOffset(offset); - = - if(segment =3D=3D null) - continue; = - if(segment instanceof JavaMemberELSegment){ + if(segment !=3D null && segment instanceof JavaMemberELSegment && segme= nt.isResolved()) { JavaMemberELSegment javaSegment =3D (JavaMemberELSegment)segment; - if(javaSegment.isResolved()){ - IJavaElement segmentJavaElement =3D javaSegment.getJavaElement(); - if(segmentJavaElement.equals(javaElement)) - match(file, offset, length); - } + IJavaElement segmentJavaElement =3D javaSegment.getJavaElement(); + if(javaElement.equals(segmentJavaElement)) + match(file, offset, length); } } } --===============9083926528027744715==-- From jbosstools-commits at lists.jboss.org Mon Sep 21 07:40:55 2009 Content-Type: multipart/mixed; boundary="===============8921862173691487473==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17673 - in trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui: texteditors/propertyeditor and 2 other directories. Date: Mon, 21 Sep 2009 07:40:55 -0400 Message-ID: <200909211140.n8LBetQW028527@svn01.web.mwc.hst.phx2.redhat.com> --===============8921862173691487473== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-21 07:40:55 -0400 (Mon, 21 Sep 2009) New Revision: 17673 Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/PlainTextDropCommand.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/UnknownDropCommand.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/texteditors/propertyeditor/PropertiesTextEditorStub.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/texteditors/xmleditor/XMLTextEditor.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/views/palette/PaletteInsertHelper.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/views/palette/PaletteViewPart.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Splitting PaletteInsertHelper into jsp and non-jsp related parts. Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/editors/dnd/PlainTextDropCommand.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/PlainTextDropCommand.java 2009-09-21 08:10:16= UTC (rev 17672) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/PlainTextDropCommand.java 2009-09-21 11:40:55= UTC (rev 17673) @@ -27,7 +27,7 @@ if(data =3D=3D null) return; Properties properties =3D new Properties(); properties.put(PaletteInsertHelper.PROPOPERTY_START_TEXT, data); - PaletteInsertHelper.insertIntoEditor( + PaletteInsertHelper.getInstance().insertIntoEditor( getDefaultModel().getDropData().getSourceViewer(), properties ); Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/editors/dnd/UnknownDropCommand.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/UnknownDropCommand.java 2009-09-21 08:10:16 U= TC (rev 17672) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/UnknownDropCommand.java 2009-09-21 11:40:55 U= TC (rev 17673) @@ -28,7 +28,7 @@ fElementGenerator.setDataModel(getDefaultModel()); Properties properties =3D new Properties(); properties.put(PaletteInsertHelper.PROPOPERTY_START_TEXT,fElementGenerat= or.generateStartTag()); - PaletteInsertHelper.insertIntoEditor( + PaletteInsertHelper.getInstance().insertIntoEditor( getDefaultModel().getDropData().getSourceViewer(), properties ); Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/texteditors/propertyeditor/PropertiesTextEditorStub= .java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/texteditors/propertyeditor/PropertiesTextEditorStub.java = 2009-09-21 08:10:16 UTC (rev 17672) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/texteditors/propertyeditor/PropertiesTextEditorStub.java = 2009-09-21 11:40:55 UTC (rev 17673) @@ -59,7 +59,7 @@ } = public void insert(Properties p) { - PaletteInsertHelper.insertIntoEditor(getSourceViewer(), p); + PaletteInsertHelper.getInstance().insertIntoEditor(getSourceViewer(), p= ); } = } Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/texteditors/xmleditor/XMLTextEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/texteditors/xmleditor/XMLTextEditor.java 2009-09-21 08:10= :16 UTC (rev 17672) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/texteditors/xmleditor/XMLTextEditor.java 2009-09-21 11:40= :55 UTC (rev 17673) @@ -385,7 +385,7 @@ } = public void insert(Properties p) { - PaletteInsertHelper.insertIntoEditor(getSourceViewer(), p); + PaletteInsertHelper.getInstance().insertIntoEditor(getSourceViewer(), p= ); } = public String getContext(int pos) { Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/views/palette/PaletteInsertHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/views/palette/PaletteInsertHelper.java 2009-09-21 08:10:1= 6 UTC (rev 17672) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/views/palette/PaletteInsertHelper.java 2009-09-21 11:40:5= 5 UTC (rev 17673) @@ -58,7 +58,15 @@ = static PaletteTaglibInserter PaletteTaglibInserter =3D new PaletteTagl= ibInserter(); = - public static void insertIntoEditor(ITextEditor editor, Properties p) { + static PaletteInsertHelper instance =3D new PaletteInsertHelper(); + + public static PaletteInsertHelper getInstance() { + return instance; + } = + = + public PaletteInsertHelper() {} + + public void insertIntoEditor(ITextEditor editor, Properties p) { if(editor =3D=3D null) return; if(!isEditable(editor)) { ServiceDialog d =3D PreferenceModelUtilities.getPreferenceModel().getSe= rvice(); @@ -92,7 +100,7 @@ return true; } = - public static void insertIntoEditor(final ISourceViewer v, Properties p) { + public void insertIntoEditor(final ISourceViewer v, Properties p) { String tagname =3D p.getProperty(PROPOPERTY_TAG_NAME); String startText =3D p.getProperty(PROPOPERTY_START_TEXT); String endText =3D p.getProperty(PROPOPERTY_END_TEXT); @@ -147,7 +155,7 @@ } } = - private static void insertIntoEditorInternal(IDocument doc, Properties p)= { + protected void insertIntoEditorInternal(IDocument doc, Properties p) { String startText =3D p.getProperty(PROPOPERTY_START_TEXT); String endText =3D p.getProperty(PROPOPERTY_END_TEXT); String newline =3D p.getProperty(PROPOPERTY_NEW_LINE); Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/views/palette/PaletteViewPart.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/views/palette/PaletteViewPart.java 2009-09-21 08:10:16 UT= C (rev 17672) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/views/palette/PaletteViewPart.java 2009-09-21 11:40:55 UT= C (rev 17673) @@ -166,7 +166,9 @@ properties.setProperty(PaletteInsertHelper.PROPOPERTY_REFORMAT_BODY, re= format); properties.setProperty(PaletteInsertHelper.PROPOPERTY_NEW_LINE, newline= ); properties.setProperty(PaletteInsertHelper.PROPOPERTY_ADD_TAGLIB, addTa= glib); - PaletteInsertHelper.insertIntoEditor( + = + //TODO WARNING we cannot have here correct insert helper instance! + PaletteInsertHelper.getInstance().insertIntoEditor( editor, properties ); --===============8921862173691487473==-- From jbosstools-commits at lists.jboss.org Mon Sep 21 07:41:56 2009 Content-Type: multipart/mixed; boundary="===============5539842812007100260==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17674 - in trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor: dnd and 1 other directory. Date: Mon, 21 Sep 2009 07:41:56 -0400 Message-ID: <200909211141.n8LBfuFk028707@svn01.web.mwc.hst.phx2.redhat.com> --===============5539842812007100260== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-21 07:41:56 -0400 (Mon, 21 Sep 2009) New Revision: 17674 Added: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/dnd/JSPPaletteInsertHelper.java Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/JSPTextEditor.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/dnd/FileDropCommand.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/dnd/PaletteDropCommand.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Splitting PaletteInsertHelper into jsp and non-jsp related parts. Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/jspeditor/JSPTextEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/JSPTextEditor.java 2009-09-21 11:40:55 UTC (rev 17673) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/JSPTextEditor.java 2009-09-21 11:41:56 UTC (rev 17674) @@ -126,6 +126,7 @@ import org.jboss.tools.jst.jsp.editor.ITextFormatter; import org.jboss.tools.jst.jsp.editor.IVisualContext; import org.jboss.tools.jst.jsp.editor.IVisualController; +import org.jboss.tools.jst.jsp.jspeditor.dnd.JSPPaletteInsertHelper; import org.jboss.tools.jst.jsp.jspeditor.dnd.JSPTagProposalFactory; import org.jboss.tools.jst.jsp.jspeditor.dnd.TagProposal; import org.jboss.tools.jst.jsp.outline.JSPContentOutlineConfiguration; @@ -569,7 +570,7 @@ } = public void insert(Properties p) { - PaletteInsertHelper.insertIntoEditor(getSourceViewer(), p); + JSPPaletteInsertHelper.getInstance().insertIntoEditor(getSourceViewer()= , p); } = } Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/jspeditor/dnd/FileDropCommand.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/FileDropCommand.java 2009-09-21 11:40:55 UTC (rev 17673) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/FileDropCommand.java 2009-09-21 11:41:56 UTC (rev 17674) @@ -61,7 +61,7 @@ properties.put(PaletteInsertHelper.PROPOPERTY_SELECTION_PROVIDER, getDef= aultModel().getDropData().getSelectionProvider()); properties.put(PaletteInsertHelper.PROPOPERTY_ADD_TAGLIB, "true"); //$NO= N-NLS-1$ addCustomProperties(properties); - PaletteInsertHelper.insertIntoEditor( + JSPPaletteInsertHelper.getInstance().insertIntoEditor( getDefaultModel().getDropData().getSourceViewer(), properties ); Added: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/js= p/jspeditor/dnd/JSPPaletteInsertHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/JSPPaletteInsertHelper.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/JSPPaletteInsertHelper.java 2009-09-21 11:41:56 UTC (rev 17674) @@ -0,0 +1,15 @@ +package org.jboss.tools.jst.jsp.jspeditor.dnd; + +import org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper; + +public class JSPPaletteInsertHelper extends PaletteInsertHelper { + + static JSPPaletteInsertHelper instance =3D new JSPPaletteInsertHelper(); + + public static JSPPaletteInsertHelper getInstance() { + return instance; + } + + public JSPPaletteInsertHelper() {} + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jbos= s/tools/jst/jsp/jspeditor/dnd/JSPPaletteInsertHelper.java ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/jspeditor/dnd/PaletteDropCommand.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/PaletteDropCommand.java 2009-09-21 11:40:55 UTC (rev 17673) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/PaletteDropCommand.java 2009-09-21 11:41:56 UTC (rev 17674) @@ -82,7 +82,7 @@ if(endText !=3D null) properties.setProperty(PaletteInsertHelper.PROPOP= ERTY_END_TEXT, endText); if(reformat !=3D null) properties.setProperty(PaletteInsertHelper.PROPO= PERTY_REFORMAT_BODY, reformat); if(newLine !=3D null) properties.setProperty(PaletteInsertHelper.PROPOP= ERTY_NEW_LINE, newLine); - PaletteInsertHelper.insertIntoEditor( + PaletteInsertHelper.getInstance().insertIntoEditor( getDefaultModel().getDropData().getSourceViewer(), properties ); --===============5539842812007100260==-- From jbosstools-commits at lists.jboss.org Mon Sep 21 07:42:44 2009 Content-Type: multipart/mixed; boundary="===============1260885347222849077==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17675 - in trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor: toolbar/format/handler and 1 other directories. Date: Mon, 21 Sep 2009 07:42:44 -0400 Message-ID: <200909211142.n8LBgiX2028819@svn01.web.mwc.hst.phx2.redhat.com> --===============1260885347222849077== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-21 07:42:44 -0400 (Mon, 21 Sep 2009) New Revision: 17675 Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/men= u/action/InsertAction.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/men= u/action/InsertAction2.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/too= lbar/format/handler/FormatHandler.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/uti= l/VpeDndUtil.java Log: Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/menu/action/InsertAction.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/me= nu/action/InsertAction.java 2009-09-21 11:41:56 UTC (rev 17674) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/me= nu/action/InsertAction.java 2009-09-21 11:42:44 UTC (rev 17675) @@ -19,6 +19,7 @@ import org.eclipse.wst.sse.ui.StructuredTextEditor; import org.jboss.tools.common.model.XModelObject; import org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper; +import org.jboss.tools.jst.jsp.jspeditor.dnd.JSPPaletteInsertHelper; import org.jboss.tools.jst.web.tld.TLDToPaletteHelper; import org.jboss.tools.jst.web.tld.URIConstants; import org.jboss.tools.vpe.editor.context.VpePageContext; @@ -145,7 +146,7 @@ */ // if(((Node)region).getNodeType() =3D=3D Node.ELEMENT_NODE) p.put("selectionProvider", selProvider); //$NON-NLS-1$ - PaletteInsertHelper.insertIntoEditor(sourceEditor.getTextViewer(), p); + JSPPaletteInsertHelper.getInstance().insertIntoEditor(sourceEditor.getTe= xtViewer(), p); } = /** Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/menu/action/InsertAction2.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/me= nu/action/InsertAction2.java 2009-09-21 11:41:56 UTC (rev 17674) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/me= nu/action/InsertAction2.java 2009-09-21 11:42:44 UTC (rev 17675) @@ -19,6 +19,7 @@ import org.eclipse.wst.sse.ui.StructuredTextEditor; import org.jboss.tools.common.model.XModelObject; import org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper; +import org.jboss.tools.jst.jsp.jspeditor.dnd.JSPPaletteInsertHelper; import org.jboss.tools.jst.web.tld.TLDToPaletteHelper; import org.jboss.tools.jst.web.tld.URIConstants; import org.jboss.tools.vpe.editor.menu.InsertType; @@ -215,7 +216,7 @@ // if(((Node)region).getNodeType() =3D=3D Node.ELEMENT_NODE) p.put(PaletteInsertHelper.PROPOPERTY_SELECTION_PROVIDER, selectionProvider); - PaletteInsertHelper.insertIntoEditor(sourceEditor.getTextViewer(), p); + JSPPaletteInsertHelper.getInstance().insertIntoEditor(sourceEditor.getTe= xtViewer(), p); } = /** Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/toolbar/format/handler/FormatHandler.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/to= olbar/format/handler/FormatHandler.java 2009-09-21 11:41:56 UTC (rev 17674) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/to= olbar/format/handler/FormatHandler.java 2009-09-21 11:42:44 UTC (rev 17675) @@ -26,6 +26,7 @@ import org.w3c.dom.NodeList; = import org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper; +import org.jboss.tools.jst.jsp.jspeditor.dnd.JSPPaletteInsertHelper; import org.jboss.tools.vpe.VpePlugin; import org.jboss.tools.vpe.editor.template.textformating.FormatData; import org.jboss.tools.vpe.editor.template.textformating.TextFormatingData; @@ -121,7 +122,7 @@ = p.put("selectionProvider", selProvider); //$NON-NLS-1$ = - PaletteInsertHelper.insertIntoEditor(viewer, p); + JSPPaletteInsertHelper.getInstance().insertIntoEditor(viewer, p); = String documentText =3D document.get(); int newStartOffset =3D documentText.substring(startOffcet).indexOf(nodeS= ource); Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/util/VpeDndUtil.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/ut= il/VpeDndUtil.java 2009-09-21 11:41:56 UTC (rev 17674) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/ut= il/VpeDndUtil.java 2009-09-21 11:42:44 UTC (rev 17675) @@ -18,6 +18,7 @@ import org.jboss.tools.common.model.ui.dnd.DnDUtil; import org.jboss.tools.common.model.ui.editor.IModelObjectEditorInput; import org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper; +import org.jboss.tools.jst.jsp.jspeditor.dnd.JSPPaletteInsertHelper; import org.jboss.tools.vpe.VpePlugin; import org.mozilla.interfaces.nsIFile; import org.mozilla.interfaces.nsISupports; @@ -42,7 +43,7 @@ = try { DnDUtil.paste(input.getXModelObject(), properties); - PaletteInsertHelper.insertIntoEditor(viewer, properties); + JSPPaletteInsertHelper.getInstance().insertIntoEditor(viewer, proper= ties); } catch (XModelException ex) { VpePlugin.getPluginLog().logError(ex); } --===============1260885347222849077==-- From jbosstools-commits at lists.jboss.org Mon Sep 21 08:30:56 2009 Content-Type: multipart/mixed; boundary="===============8388660204631097980==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17676 - in trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui: problem and 1 other directories. Date: Mon, 21 Sep 2009 08:30:56 -0400 Message-ID: <200909211230.n8LCUuCH006734@svn01.web.mwc.hst.phx2.redhat.com> --===============8388660204631097980== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-21 08:30:56 -0400 (Mon, 21 Sep 2009) New Revision: 17676 Removed: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/CssLinkAttributeValueLoader.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/views/palette/PaletteTaglibInserter.java Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/problem/ProblemDialog.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/views/palette/PaletteInsertHelper.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Splitting PaletteInsertHelper into jsp and non-jsp related parts. Deleted: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss= /tools/common/model/ui/editors/dnd/CssLinkAttributeValueLoader.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/CssLinkAttributeValueLoader.java 2009-09-21 1= 1:42:44 UTC (rev 17675) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/CssLinkAttributeValueLoader.java 2009-09-21 1= 2:30:56 UTC (rev 17676) @@ -1,25 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.common.model.ui.editors.dnd; - -public class CssLinkAttributeValueLoader extends AbsoluteFilePathAttribute= ValueLoader { - - public CssLinkAttributeValueLoader(String pathAttributeName) { - super(pathAttributeName, null, null); - } - - public void fillTagAttributes(IDropWizardModel model) { - super.fillTagAttributes(model); - model.setAttributeValue("rel", "stylesheet"); //$NON-NLS-1$ //$NON-NLS-2$ - model.setAttributeValue("type", "text/css"); //$NON-NLS-1$ //$NON-NLS-2$ - } - -} Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/problem/ProblemDialog.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/problem/ProblemDialog.java 2009-09-21 11:42:44 UTC (rev 1= 7675) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/problem/ProblemDialog.java 2009-09-21 12:30:56 UTC (rev 1= 7676) @@ -76,12 +76,6 @@ super.buttonPressed(buttonId); } = -/* - public static int open(Shell shell, String message) { - JspPreviewErrorDialog dialog =3D new JspPreviewErrorDialog(shell, JspPre= viewMessages.getString(DEFAULT_TITLE), message); - return dialog.open(); = - } -*/ /* (non-Javadoc) * @see org.eclipse.jface.window.Window#open() */ Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/views/palette/PaletteInsertHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/views/palette/PaletteInsertHelper.java 2009-09-21 11:42:4= 4 UTC (rev 17675) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/views/palette/PaletteInsertHelper.java 2009-09-21 12:30:5= 6 UTC (rev 17676) @@ -56,8 +56,6 @@ public static final String PROPOPERTY_SELECTION_PROVIDER =3D "selectionPr= ovider"; //$NON-NLS-1$ public static final String PROPOPERTY_ADD_TAGLIB =3D TLDToPaletteHelpe= r.ADD_TAGLIB; = - static PaletteTaglibInserter PaletteTaglibInserter =3D new PaletteTagl= ibInserter(); - static PaletteInsertHelper instance =3D new PaletteInsertHelper(); = public static PaletteInsertHelper getInstance() { @@ -101,10 +99,8 @@ } = public void insertIntoEditor(final ISourceViewer v, Properties p) { - String tagname =3D p.getProperty(PROPOPERTY_TAG_NAME); String startText =3D p.getProperty(PROPOPERTY_START_TEXT); String endText =3D p.getProperty(PROPOPERTY_END_TEXT); - String uri =3D p.getProperty(PROPOPERTY_TAGLIBRARY_URI); = ISelectionProvider selProvider = =3D (ISelectionProvider)p.get(PROPOPERTY_SELECTION_PROVIDER); @@ -113,18 +109,12 @@ } = IDocument d =3D v.getDocument(); + = String[] texts =3D new String[] {startText, endText}; + + //do any auxiliary job here + modify(v, p, texts); = - if(startText !=3D null && startText.startsWith("<%@ taglib")) { //$NON-N= LS-1$ - if(PaletteTaglibInserter.inserTaglibInXml(v, p)) { - return; - } - } else { - p =3D PaletteTaglibInserter.inserTaglib(v, p); - } - = - String defaultPrefix =3D p.getProperty(PROPOPERTY_DEFAULT_PREFIX); - applyPrefix(texts, d, tagname, uri, defaultPrefix); = startText =3D texts[0]; endText =3D texts[1]; = @@ -155,6 +145,10 @@ } } = + protected void modify(ISourceViewer v, Properties p, String[] texts) { + //override + } + protected void insertIntoEditorInternal(IDocument doc, Properties p) { String startText =3D p.getProperty(PROPOPERTY_START_TEXT); String endText =3D p.getProperty(PROPOPERTY_END_TEXT); @@ -496,102 +490,4 @@ } } = - /** - * adding prefix to tag - */ - public static void applyPrefix(String[] text, ITextEditor editor, String = tagname, String uri, String defaultPrefix) { - if(defaultPrefix =3D=3D null || defaultPrefix.length() =3D=3D 0) return; - IDocument doc =3D null; - if(editor !=3D null && editor.getDocumentProvider() !=3D null) { - doc =3D editor.getDocumentProvider().getDocument(editor.getEditorInp= ut()); - } - applyPrefix(text, doc, tagname, uri, defaultPrefix); - } - - public static void applyPrefix(String[] text, IDocument doc, String tagna= me, String uri, String defaultPrefix) { - if(doc =3D=3D null) return; - String body =3D doc.get(); - applyPrefix(text, body, tagname, uri, defaultPrefix); - } - - public static void applyPrefix(String[] text, String body, String tagname= , String uri, String defaultPrefix) { - if(uri =3D=3D null || uri.length() =3D=3D 0) return; - Properties p =3D getPrefixes(body); - String prefix =3D p.getProperty(uri, defaultPrefix); - if(prefix =3D=3D null || prefix.length() =3D=3D 0) return; = - for (int i =3D 0; i < text.length; i++) text[i] =3D applyPrefix(text[i],= tagname, prefix, p); - } - - static String applyPrefix(String text, String tagname, String prefix, Pro= perties prefixes) { - if(text =3D=3D null || text.length() =3D=3D 0) return text; - if(tagname =3D=3D null || tagname.length() =3D=3D 0) return text; - while(true) { - int i =3D text.indexOf("%prefix|"); //$NON-NLS-1$ - if(i < 0) break; - int j =3D text.indexOf("%", i + 8); //$NON-NLS-1$ - if(j < 0) break; - int j1 =3D text.indexOf("|", i + 8); //$NON-NLS-1$ - String uri =3D ""; //$NON-NLS-1$ - String defaultPrefix =3D ""; //$NON-NLS-1$ - String pr =3D ""; //$NON-NLS-1$ - uri =3D text.substring(i + 8, j1); - defaultPrefix =3D text.substring(j1 + 1, j); - pr =3D prefixes.getProperty(uri, defaultPrefix); - if(pr.length() > 0) { - text =3D text.substring(0, i) + pr + ":" + text.substring(j + 1); //$N= ON-NLS-1$ - } else { - text =3D text.substring(0, i) + text.substring(j + 1); - } - } - - int k =3D text.toLowerCase().indexOf(":" + tagname.toLowerCase()); //$NO= N-NLS-1$ - if(k >=3D 0) { - int g =3D text.indexOf("=3D 0 && g < k) { - return text.substring(0, g + 2) + prefix + text.substring(k); - } - g =3D text.indexOf("<"); //$NON-NLS-1$ - if(g >=3D 0 && g < k) { - return text.substring(0, g + 1) + prefix + text.substring(k); - } - } - k =3D text.toLowerCase().indexOf("<" + tagname.toLowerCase()); //$NON-NL= S-1$ - if(k >=3D 0) { - return text.substring(0, k + 1) + prefix + ":" + text.substring(k + 1);= //$NON-NLS-1$ - } - k =3D text.toLowerCase().indexOf("=3D 0) { - return text.substring(0, k + 2) + prefix + ":" + text.substring(k + 2);= //$NON-NLS-1$ - } - return text; - } - - static Properties getPrefixes(String body) { - Properties p =3D new Properties(); - int i =3D 0; - while(i >=3D 0 && i < body.length()) { - i =3D body.indexOf("<%@ taglib ", i); //$NON-NLS-1$ - if(i < 0) break; - int j =3D body.indexOf("%>", i); //$NON-NLS-1$ - if(j < 0) j =3D body.length(); - String taglib =3D body.substring(i, j); - getPrefix(p, taglib); - i =3D j + 1; - } - return p; - } - - static void getPrefix(Properties p, String taglib) { - int i =3D taglib.indexOf("uri=3D\""); //$NON-NLS-1$ - if(i < 0) return; - int j =3D taglib.indexOf("\"", i + 5); //$NON-NLS-1$ - if(j < 0) return; - String uri =3D taglib.substring(i + 5, j); - i =3D taglib.indexOf("prefix=3D\""); //$NON-NLS-1$ - if(i < 0) return; - j =3D taglib.indexOf("\"", i + 8); //$NON-NLS-1$ - if(j < 0) return; - String prefix =3D taglib.substring(i + 8, j); - p.setProperty(uri, prefix); - } } \ No newline at end of file Deleted: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss= /tools/common/model/ui/views/palette/PaletteTaglibInserter.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/views/palette/PaletteTaglibInserter.java 2009-09-21 11:42= :44 UTC (rev 17675) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/views/palette/PaletteTaglibInserter.java 2009-09-21 12:30= :56 UTC (rev 17676) @@ -1,403 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.common.model.ui.views.palette; - -import java.util.HashMap; -import java.util.List; -import java.util.Properties; - -import org.eclipse.jface.text.BadLocationException; -import org.eclipse.jface.text.IDocument; -import org.eclipse.jface.text.ITextSelection; -import org.eclipse.jface.text.source.ISourceViewer; -import org.eclipse.jface.viewers.ISelectionProvider; -import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel; -import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion; -import org.eclipse.wst.sse.core.internal.provisional.StructuredModelManage= r; -import org.eclipse.wst.sse.ui.internal.contentassist.ContentAssistUtils; -import org.eclipse.wst.xml.core.internal.document.DocumentImpl; -import org.eclipse.wst.xml.core.internal.document.ElementImpl; -import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument; -import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement; -import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel; -import org.jboss.tools.common.model.ui.ModelUIPlugin; -import org.jboss.tools.jst.web.tld.TaglibData; -import org.jboss.tools.jst.web.tld.VpeTaglibManager; -import org.jboss.tools.jst.web.tld.VpeTaglibManagerProvider; -import org.w3c.dom.Element; -import org.w3c.dom.NamedNodeMap; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; - -public class PaletteTaglibInserter { - - private static final String JSP_SOURCE_ROOT_ELEMENT =3D "jsp:root"; //$NO= N-NLS-1$ - public static final String JSP_URI =3D "http://java.sun.com/JSP/Page"; //= $NON-NLS-1$ - public static final String faceletUri =3D "http://java.sun.com/jsf/facele= ts"; //$NON-NLS-1$ - - private static final String TAGLIB_START =3D "<%@ taglib"; //$NON-NLS-1$ - - public Properties inserTaglib(ISourceViewer v, Properties p) { - if(!inserTaglibInXml(v, p)) { - inserTaglibInOldJsp(v, p); - } - return p; - } - - private boolean checkProperties(Properties p) { - return "true".equalsIgnoreCase(p.getProperty(PaletteInsertHelper.PROPOPE= RTY_ADD_TAGLIB)) && //$NON-NLS-1$ - p.getProperty(PaletteInsertHelper.PROPOPERTY_TAGLIBRARY_URI) !=3D null= && - p.getProperty(PaletteInsertHelper.PROPOPERTY_TAGLIBRARY_URI).length() = > 0 && - !p.getProperty(PaletteInsertHelper.PROPOPERTY_TAGLIBRARY_URI).equals(J= SP_URI) && - p.getProperty(PaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX) !=3D null= && - p.getProperty(PaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX).length() = > 0 && - p.getProperty(PaletteInsertHelper.PROPOPERTY_START_TEXT) !=3D null; - } - - public boolean inserTaglibInOldJsp(ISourceViewer v, Properties p) { - if(!checkProperties(p)) { - return false; - } - - IDocument d =3D v.getDocument(); - IStructuredModel model =3D null; - - try { - model =3D StructuredModelManager.getModelManager().getExistingModelForR= ead(d); - IDOMDocument xmlDocument =3D (model instanceof IDOMModel) ? ((IDOMModel= ) model).getDocument() : null; - if (xmlDocument =3D=3D null) { - return false; - } - Properties tl =3D getPrefixes(v); - if(tl =3D=3D null) tl =3D PaletteInsertHelper.getPrefixes(d.get()); - Element root =3D xmlDocument.getDocumentElement(); - - String uri_p =3D p.getProperty(PaletteInsertHelper.PROPOPERTY_TAGLIBRAR= Y_URI); - String defaultPrefix_p =3D p.getProperty(PaletteInsertHelper.PROPOPERTY= _DEFAULT_PREFIX); - String lineDelimiter =3D PaletteInsertHelper.getLineDelimiter(d); - StringBuffer tg =3D new StringBuffer(TAGLIB_START).append(" uri=3D\"").= append(uri_p).append("\"").append(" prefix=3D\"").append(defaultPrefix_p).a= ppend("\"%>").append(lineDelimiter); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS= -3$ //$NON-NLS-4$ - - if (tl !=3D null && !tl.isEmpty()) { - //If taglib already exist check the prefix if changed - if (tl.containsKey(uri_p)) { - if (!tl.get(uri_p).equals(defaultPrefix_p)) { - p.setProperty(PaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX, (String= )tl.get(uri_p)); - } - } else if(!tl.containsValue(defaultPrefix_p)) { - if (checkplace(xmlDocument, d, "jsp:directive.taglib", tg, p, v) =3D= =3D false) { //$NON-NLS-1$ - d.replace(0, 0, tg.toString()); - mouveFocusOnPage(p,v, tg.toString().length(), 0); - return true; - } - } - } else if(xmlDocument instanceof DocumentImpl) { - DocumentImpl docImpl =3D (DocumentImpl)xmlDocument; - // Only for JSP - if(docImpl.isJSPType()) { - if (checkplace(xmlDocument, d, "jsp:directive.page", tg, p, v) =3D=3D= false) { //$NON-NLS-1$ - d.replace(0, 0, tg.toString()); - mouveFocusOnPage(p,v, tg.toString().length(), 0); - return true; - } - } - } - } catch (BadLocationException e) { - ModelUIPlugin.getPluginLog().logError(e); - } finally { - if (model !=3D null) model.releaseFromRead(); - } - return false; - } - = - private static Node getSelectedNode(ISourceViewer v, Properties p){ - ISelectionProvider selProvider =3D (ISelectionProvider)p.get(PaletteInse= rtHelper.PROPOPERTY_SELECTION_PROVIDER); - if(selProvider =3D=3D null) return null; - = - ITextSelection selection =3D null; - = - if(selProvider.getSelection() instanceof ITextSelection) - selection =3D (ITextSelection)selProvider.getSelection(); - else return null; - = - IndexedRegion region =3D ContentAssistUtils.getNodeAt(v, selection.getOf= fset()); - if(region =3D=3D null) return null; - = - if(!(region instanceof Node)) return null; - = - Node text =3D (Node)region; - = - = - if("#text".equals(text.getNodeName())) //$NON-NLS-1$ - return text.getParentNode(); - else - return text; - } - = - private static boolean checkSelectedElement(HashMap map, I= SourceViewer v, Properties p){ - String taglibUri =3D p.getProperty(PaletteInsertHelper.PROPOPERTY_TAGLIB= RARY_URI); - if(taglibUri =3D=3D null) return false; - = - Node selectedNode =3D getSelectedNode(v, p); - if(selectedNode =3D=3D null) return false; - = - return checkElement(map, selectedNode, taglibUri); - } - = - private static boolean checkElement(HashMap map, Node node= , String taglibUri){ - = - NamedNodeMap attrs =3D node.getAttributes(); - for (int j =3D 0; attrs !=3D null && j < attrs.getLength(); j++) { - Node a =3D attrs.item(j); - String name =3D a.getNodeName(); - - if (name.startsWith("xmlns:")) { //$NON-NLS-1$ - map.put(a.getNodeValue(), name.substring("xmlns:".length())); //$NON-N= LS-1$ - } - } - - if (map.containsKey(taglibUri)) return true; - else{ - if(node.getParentNode() =3D=3D null) return false; - else return checkElement(map, node.getParentNode(), taglibUri); - } - } - - public boolean inserTaglibInXml(ISourceViewer v, Properties p) { - if(!checkProperties(p)) { - return false; - } - = - IDocument d =3D v.getDocument(); - IStructuredModel model =3D null; - = - try { - model =3D StructuredModelManager.getModelManager().getExistingModelForR= ead(d); - IDOMDocument xmlDocument =3D (model instanceof IDOMModel) ? ((IDOMModel= ) model).getDocument() : null; - = - if (xmlDocument =3D=3D null) { - return false; - } - = - Properties tl =3D getPrefixes(v); - if(tl =3D=3D null) tl =3D PaletteInsertHelper.getPrefixes(d.get()); - Element root =3D xmlDocument.getDocumentElement(); - if(root !=3D null) { - // for xhtml and jsp:root = - if (xmlDocument.getDoctype() !=3D null /* && tagLibListConainsFacelet(= tl)*/ ) { - String publicId =3D xmlDocument.getDoctype().getPublicId(); - if (publicId!=3Dnull && publicId.toUpperCase().startsWith("-//W3C//DT= D XHTML")) { // && root.getNodeName().equalsIgnoreCase(HTML_SOURCE_ROOT_ELE= MENT)) { //$NON-NLS-1$ - checkTL(root, v, p, d); - return true; - } - } else if(xmlDocument.isXMLType() || root.getNodeName().equals(JSP_SOU= RCE_ROOT_ELEMENT)) { - checkTL(root, v, p, d); - return true; - } - } - } finally { - if (model !=3D null) model.releaseFromRead(); - } - return false; - } - -// private static boolean tagLibListConainsFacelet(List tagLibList) { -// if (tagLibList !=3D null && !tagLibList.isEmpty()) { -// for (int i =3D 0; i < tagLibList.size(); i++) { -// TaglibData tgld =3D (TaglibData)tagLibList.get(i); -// if(faceletUri.equals(tgld.getUri())) { -// return true; -// } -// } -// } -// return false; -// } - - /* - * analyse source for taglib, return the list of taglib - */ - private static Properties getPrefixes(ISourceViewer viewer) { - VpeTaglibManager tldManager =3D null; - if((tldManager =3D=3D null) && (viewer instanceof VpeTaglibManagerProvid= er)) { - tldManager =3D ((VpeTaglibManagerProvider)viewer).getTaglibManager(); - if(tldManager !=3D null) { - List list =3D tldManager.getTagLibs(); - Properties p =3D new Properties(); - for (int i =3D 0; i < list.size(); i++) { - TaglibData data =3D (TaglibData)list.get(i); - p.setProperty(data.getUri(), data.getPrefix()); - } - return p; - } = - } - return null; - } - - /* - * for jsp:root and html check the taglib if exist check the prefix else = add the taglib - * with text formatting - */ - private static Properties checkTL(Element root, ISourceViewer v, Properti= es p, IDocument d) { - String uri_p =3D p.getProperty(PaletteInsertHelper.PROPOPERTY_TAGLIBRARY= _URI); - String defaultPrefix_p =3D p.getProperty(PaletteInsertHelper.PROPOPERTY_= DEFAULT_PREFIX); - - HashMap map =3D new HashMap(); - NamedNodeMap attrs =3D root.getAttributes(); - for (int j =3D 0; attrs !=3D null && j < attrs.getLength(); j++) { - Node a =3D attrs.item(j); - String name =3D a.getNodeName(); - - if (name.startsWith("xmlns:")) { //$NON-NLS-1$ - map.put(a.getNodeValue(), name.substring("xmlns:".length())); //$NON-N= LS-1$ - } - } - = - if (map.containsKey(uri_p) || checkSelectedElement(map, v, p)) { - if (!map.get(uri_p).equals(defaultPrefix_p)) { - p.setProperty(PaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX, (String) = map.get(uri_p)); - } - } else if(!map.containsValue(defaultPrefix_p)) { - StringBuffer attribute =3D new StringBuffer("xmlns:").append(defaultPre= fix_p).append("=3D\"").append(uri_p).append("\""); //$NON-NLS-1$ //$NON-NL= S-2$ //$NON-NLS-3$ - int so =3D ((IDOMElement)root).getStartOffset(); - int seo =3D ((IDOMElement)root).getStartEndOffset(); - try { - String lineDelimiter =3D PaletteInsertHelper.getLineDelimiter(d); - StringBuffer selectedSource =3D new StringBuffer().append(d.get(so, se= o-so)); - int xmlns =3D selectedSource.indexOf("xmlns"); //$NON-NLS-1$ - attribute =3D new StringBuffer().append(createEmptyCharArray(xmlns)).a= ppend("xmlns:").append(defaultPrefix_p).append("=3D\"").append(uri_p).appen= d("\""); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - if (d.getLineOffset(d.getLineOfOffset(so)) !=3D so) { = - attribute.insert(0, analyseSubstring(d.get(d.getLineOffset(d.getLineO= fOffset(so)), so-d.getLineOffset(d.getLineOfOffset(so))))); - } = - if(xmlns>0) { - attribute.insert(0, lineDelimiter); - } else { - attribute.insert(0, ' '); - } - selectedSource.insert(selectedSource.length()-1, attribute); - d.replace(so, seo-so, selectedSource.toString()); - } catch (BadLocationException t) { - ModelUIPlugin.getPluginLog().logError("", t); //$NON-NLS-1$ - } - } - return p; - } - - private static char[] createEmptyCharArray(int n){ - if(n<1) { - return new char[0]; - } - char[] ca =3D new char[n]; - for (int i =3D 0; i < n; i++) - ca[i]=3D' '; - return ca; - } - - private static void mouveFocusOnPage(Properties p, ISourceViewer v, int l= ength, int pos){ - ISelectionProvider selProvider =3D (ISelectionProvider)p.get(PaletteInse= rtHelper.PROPOPERTY_SELECTION_PROVIDER); - IDocument doc =3D v.getDocument(); - - if (doc=3D=3D null || selProvider =3D=3D null) return; - - ITextSelection selection =3D (ITextSelection)selProvider.getSelection(); - if (selection.getOffset() =3D=3D 0) { = - v.setSelectedRange(length,0); - p.put(PaletteInsertHelper.PROPOPERTY_SELECTION_PROVIDER,v.getSelection= Provider()); - } - else = - if (selection.getOffset() =3D=3D pos ){ - v.setSelectedRange(length, 0); - p.put(PaletteInsertHelper.PROPOPERTY_SELECTION_PROVIDER,v.getSelectionP= rovider()); - } - } - - /* - * analyse the space between the left corner and the start offset o the t= ext - */ = - private static StringBuffer analyseSubstring(String str){ - StringBuffer st =3D new StringBuffer().append(str); = - for (int i =3D 0; i < st.length(); i++) { - if (st.charAt(i) !=3D ' ' && st.charAt(i) !=3D'\t' ) { - st.setCharAt(i, ' '); - } - } - return st; = - } - - private static boolean checkplace(IDOMDocument xmlDocument, IDocument d, = String st, StringBuffer tg, Properties p, ISourceViewer v) throws BadLocati= onException { - NodeList nl =3D xmlDocument.getChildNodes(); - boolean docType =3D false; - IndexedRegion irdt =3D null; - - if (xmlDocument.getDoctype() !=3D null) { - docType =3D true; - String publicId =3D xmlDocument.getDoctype().getPublicId(); - if (publicId!=3Dnull && publicId.toUpperCase().startsWith("-//W3C//DTD = HTML")) { //$NON-NLS-1$ - irdt =3D (xmlDocument.getDoctype() instanceof IndexedRegion) ? - (IndexedRegion)xmlDocument.getDoctype(): null; - } - } - - if (nl !=3D null && nl.getLength() !=3D 0) { - for (int i=3D0; i < nl.getLength(); i++) { - Node n =3D nl.item(i); - //fing the first taglib to insert before - if (n.getNodeName().equals(st) && st.equals("jsp:directive.taglib")) {= //$NON-NLS-1$ - //calculate the space between taglib and left page corner - int so =3D ((ElementImpl)n).getStartOffset(); - //taglib is at left corner = - if (d.getLineOffset(d.getLineOfOffset(so)) =3D=3D so) { - d.replace(so, 0, tg.toString()); - } else { - StringBuffer left =3D new StringBuffer(). - append(analyseSubstring(d.get(d.getLineOffset(d.getLineOfOffset(so))= , so-d.getLineOffset(d.getLineOfOffset(so))))); - tg.insert(tg.length(), left); - d.replace(so, 0, tg.toString()); - } - return true; - } - if ((n.getNodeName().equals(st) && st.equals("jsp:directive.page")) ) = { //$NON-NLS-1$ - tg.delete(tg.lastIndexOf(PaletteInsertHelper.getLineDelimiter(d)), tg= .length()); - int so =3D ((ElementImpl)n).getStartOffset(); - int eo =3D ((ElementImpl)n).getEndStartOffset(); - StringBuffer tgleft =3D new StringBuffer().append(PaletteInsertHelper= .getLineDelimiter(d)); - if (d.getLineOffset(d.getLineOfOffset(so)) =3D=3D so) { - tgleft.append(tg); - d.replace(eo, 0, tgleft.toString()); - mouveFocusOnPage(p,v, eo + tgleft.length(), eo); - } else { - tgleft.append(analyseSubstring(d.get(d.getLineOffset(d.getLineOfOffs= et(so)), so-d.getLineOffset(d.getLineOfOffset(so))))); - tgleft.append(tg); - d.replace(eo, 0, tgleft.toString()); - mouveFocusOnPage(p,v, eo + tgleft.length(), eo); - } - return true; - } - if (docType && irdt !=3D null) { - tg.delete(tg.lastIndexOf(PaletteInsertHelper.getLineDelimiter(d)), tg= .length()); - int so =3D irdt.getStartOffset(); - int eo =3D irdt.getEndOffset(); - StringBuffer tgleft =3D new StringBuffer().append(PaletteInsertHelper= .getLineDelimiter(d)); - if (d.getLineOffset(d.getLineOfOffset(so)) =3D=3D so) { - tgleft.append(tg); - d.replace(eo, 0, tgleft.toString()); - mouveFocusOnPage(p,v, eo + tgleft.length(), eo); - } else { - tgleft.append(analyseSubstring(d.get(d.getLineOffset(d.getLineOfOffs= et(so)), so-d.getLineOffset(d.getLineOfOffset(so))))); - tgleft.append(tg); - d.replace(eo, 0, tgleft.toString()); - mouveFocusOnPage(p,v, eo + tgleft.length(), eo); - } - return true; - } - } - } - return false; - } -} \ No newline at end of file --===============8388660204631097980==-- From jbosstools-commits at lists.jboss.org Mon Sep 21 08:31:32 2009 Content-Type: multipart/mixed; boundary="===============0975204043125140125==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17677 - in trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor: menu and 1 other directory. Date: Mon, 21 Sep 2009 08:31:32 -0400 Message-ID: <200909211231.n8LCVWXW006960@svn01.web.mwc.hst.phx2.redhat.com> --===============0975204043125140125== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-21 08:31:32 -0400 (Mon, 21 Sep 2009) New Revision: 17677 Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vpe= Controller.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/men= u/MenuCreationHelper.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Splitting PaletteInsertHelper into jsp and non-jsp related parts. Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/VpeController.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eController.java 2009-09-21 12:30:56 UTC (rev 17676) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eController.java 2009-09-21 12:31:32 UTC (rev 17677) @@ -90,6 +90,7 @@ import org.jboss.tools.common.resref.core.ResourceReferenceListListener; import org.jboss.tools.jst.jsp.editor.IJSPTextEditor; import org.jboss.tools.jst.jsp.editor.IVisualController; +import org.jboss.tools.jst.jsp.jspeditor.dnd.JSPPaletteInsertHelper; import org.jboss.tools.jst.jsp.jspeditor.dnd.JSPTagProposalFactory; import org.jboss.tools.jst.jsp.preferences.VpePreference; import org.jboss.tools.jst.web.tld.TLDUtil; @@ -2233,7 +2234,7 @@ String defaultPrefix =3D (parent =3D=3D null) ? "" : parent.getAttribute= Value(URIConstants.DEFAULT_PREFIX); //$NON-NLS-1$ = String[] texts =3D new String[] { "<" + tagname + ">" }; //$NON-NLS-1$ /= /$NON-NLS-2$ - PaletteInsertHelper.applyPrefix(texts, sourceEditor, tagname, uri, + JSPPaletteInsertHelper.applyPrefix(texts, sourceEditor, tagname, uri, defaultPrefix); tagname =3D texts[0].substring(1, texts[0].length() - 1); = Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/menu/MenuCreationHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/me= nu/MenuCreationHelper.java 2009-09-21 12:30:56 UTC (rev 17676) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/me= nu/MenuCreationHelper.java 2009-09-21 12:31:32 UTC (rev 17677) @@ -32,6 +32,7 @@ import org.jboss.tools.common.model.ui.util.ModelUtilities; import org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper; import org.jboss.tools.common.model.util.ModelFeatureFactory; +import org.jboss.tools.jst.jsp.jspeditor.dnd.JSPPaletteInsertHelper; import org.jboss.tools.jst.web.tld.URIConstants; import org.jboss.tools.vpe.VpeDebug; import org.jboss.tools.vpe.VpePlugin; @@ -509,7 +510,7 @@ String tagName =3D item.getAttributeValue("name"); //$NON-NLS-1$ String[] texts =3D new String[] { "<" + tagName + ">" }; //$NON-NLS-1$ /= /$NON-NLS-2$ if (tagName.indexOf("taglib") < 0) { //$NON-NLS-1$ - PaletteInsertHelper.applyPrefix(texts, sourceEditor, tagName, uri, defa= ultPrefix); + JSPPaletteInsertHelper.applyPrefix(texts, sourceEditor, tagName, uri, d= efaultPrefix); } tagName =3D texts[0]; = --===============0975204043125140125==-- From jbosstools-commits at lists.jboss.org Mon Sep 21 08:32:55 2009 Content-Type: multipart/mixed; boundary="===============3938968021695345626==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17678 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/dnd. Date: Mon, 21 Sep 2009 08:32:55 -0400 Message-ID: <200909211232.n8LCWtjP007581@svn01.web.mwc.hst.phx2.redhat.com> --===============3938968021695345626== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-21 08:32:55 -0400 (Mon, 21 Sep 2009) New Revision: 17678 Added: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/dnd/CssLinkAttributeValueLoader.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/dnd/PaletteTaglibInserter.java Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/dnd/FileTagProposalLoader.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/dnd/JSPPaletteInsertHelper.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Splitting PaletteInsertHelper into jsp and non-jsp related parts. Added: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/js= p/jspeditor/dnd/CssLinkAttributeValueLoader.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/CssLinkAttributeValueLoader.java (rev = 0) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/CssLinkAttributeValueLoader.java 2009-09-21 12:32:55 UTC (rev = 17678) @@ -0,0 +1,28 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.jsp.jspeditor.dnd; + +import org.jboss.tools.common.model.ui.editors.dnd.AbsoluteFilePathAttribu= teValueLoader; +import org.jboss.tools.common.model.ui.editors.dnd.IDropWizardModel; + +public class CssLinkAttributeValueLoader extends AbsoluteFilePathAttribute= ValueLoader { + + public CssLinkAttributeValueLoader(String pathAttributeName) { + super(pathAttributeName, null, null); + } + + public void fillTagAttributes(IDropWizardModel model) { + super.fillTagAttributes(model); + model.setAttributeValue("rel", "stylesheet"); //$NON-NLS-1$ //$NON-NLS-2$ + model.setAttributeValue("type", "text/css"); //$NON-NLS-1$ //$NON-NLS-2$ + } + +} Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/jspeditor/dnd/FileTagProposalLoader.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/FileTagProposalLoader.java 2009-09-21 12:31:32 UTC (rev 17677) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/FileTagProposalLoader.java 2009-09-21 12:32:55 UTC (rev 17678) @@ -14,7 +14,6 @@ import java.util.Map; = import org.jboss.tools.common.model.ui.editors.dnd.AbsoluteFilePathAttribu= teValueLoader; -import org.jboss.tools.common.model.ui.editors.dnd.CssLinkAttributeValueLo= ader; import org.jboss.tools.common.model.ui.editors.dnd.DropURI; import org.jboss.tools.common.model.ui.editors.dnd.IAttributeValueLoader; import org.jboss.tools.common.model.ui.editors.dnd.IDropWizardModel; @@ -22,7 +21,6 @@ import org.jboss.tools.common.model.ui.editors.dnd.ITagProposalLoader; import org.jboss.tools.common.model.ui.editors.dnd.LoadBundleBaseNameAttri= buteValueLoader; import org.jboss.tools.common.model.ui.editors.dnd.context.DropContext; -import org.jboss.tools.common.model.ui.views.palette.PaletteTaglibInserter; = public class FileTagProposalLoader implements ITagProposalLoader { = Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/jspeditor/dnd/JSPPaletteInsertHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/JSPPaletteInsertHelper.java 2009-09-21 12:31:32 UTC (rev 17677) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/JSPPaletteInsertHelper.java 2009-09-21 12:32:55 UTC (rev 17678) @@ -1,5 +1,10 @@ package org.jboss.tools.jst.jsp.jspeditor.dnd; = +import java.util.Properties; + +import org.eclipse.jface.text.IDocument; +import org.eclipse.jface.text.source.ISourceViewer; +import org.eclipse.ui.texteditor.ITextEditor; import org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper; = public class JSPPaletteInsertHelper extends PaletteInsertHelper { @@ -10,6 +15,126 @@ return instance; } = - public JSPPaletteInsertHelper() {} + static PaletteTaglibInserter PaletteTaglibInserter =3D new PaletteTagl= ibInserter(); = + public JSPPaletteInsertHelper() {} + + protected void modify(ISourceViewer v, Properties p, String[] texts) { + String tagname =3D p.getProperty(PROPOPERTY_TAG_NAME); + String uri =3D p.getProperty(PROPOPERTY_TAGLIBRARY_URI); + String startText =3D texts[0]; + if(startText !=3D null && startText.startsWith("<%@ taglib")) { //$NON-N= LS-1$ + if(PaletteTaglibInserter.inserTaglibInXml(v, p)) { + return; + } + } else { + p =3D PaletteTaglibInserter.inserTaglib(v, p); + } + = + String defaultPrefix =3D p.getProperty(PROPOPERTY_DEFAULT_PREFIX); + IDocument d =3D v.getDocument(); + applyPrefix(texts, d, tagname, uri, defaultPrefix); = + } + + + + /** + * adding prefix to tag + */ + public static void applyPrefix(String[] text, ITextEditor editor, String = tagname, String uri, String defaultPrefix) { + if(defaultPrefix =3D=3D null || defaultPrefix.length() =3D=3D 0) return; + IDocument doc =3D null; + if(editor !=3D null && editor.getDocumentProvider() !=3D null) { + doc =3D editor.getDocumentProvider().getDocument(editor.getEditorInp= ut()); + } + applyPrefix(text, doc, tagname, uri, defaultPrefix); + } + + public static void applyPrefix(String[] text, IDocument doc, String tagna= me, String uri, String defaultPrefix) { + if(doc =3D=3D null) return; + String body =3D doc.get(); + applyPrefix(text, body, tagname, uri, defaultPrefix); + } + + public static void applyPrefix(String[] text, String body, String tagname= , String uri, String defaultPrefix) { + if(uri =3D=3D null || uri.length() =3D=3D 0) return; + Properties p =3D getPrefixes(body); + String prefix =3D p.getProperty(uri, defaultPrefix); + if(prefix =3D=3D null || prefix.length() =3D=3D 0) return; = + for (int i =3D 0; i < text.length; i++) text[i] =3D applyPrefix(text[i],= tagname, prefix, p); + } + + static String applyPrefix(String text, String tagname, String prefix, Pro= perties prefixes) { + if(text =3D=3D null || text.length() =3D=3D 0) return text; + if(tagname =3D=3D null || tagname.length() =3D=3D 0) return text; + while(true) { + int i =3D text.indexOf("%prefix|"); //$NON-NLS-1$ + if(i < 0) break; + int j =3D text.indexOf("%", i + 8); //$NON-NLS-1$ + if(j < 0) break; + int j1 =3D text.indexOf("|", i + 8); //$NON-NLS-1$ + String uri =3D ""; //$NON-NLS-1$ + String defaultPrefix =3D ""; //$NON-NLS-1$ + String pr =3D ""; //$NON-NLS-1$ + uri =3D text.substring(i + 8, j1); + defaultPrefix =3D text.substring(j1 + 1, j); + pr =3D prefixes.getProperty(uri, defaultPrefix); + if(pr.length() > 0) { + text =3D text.substring(0, i) + pr + ":" + text.substring(j + 1); //$N= ON-NLS-1$ + } else { + text =3D text.substring(0, i) + text.substring(j + 1); + } + } + + int k =3D text.toLowerCase().indexOf(":" + tagname.toLowerCase()); //$NO= N-NLS-1$ + if(k >=3D 0) { + int g =3D text.indexOf("=3D 0 && g < k) { + return text.substring(0, g + 2) + prefix + text.substring(k); + } + g =3D text.indexOf("<"); //$NON-NLS-1$ + if(g >=3D 0 && g < k) { + return text.substring(0, g + 1) + prefix + text.substring(k); + } + } + k =3D text.toLowerCase().indexOf("<" + tagname.toLowerCase()); //$NON-NL= S-1$ + if(k >=3D 0) { + return text.substring(0, k + 1) + prefix + ":" + text.substring(k + 1);= //$NON-NLS-1$ + } + k =3D text.toLowerCase().indexOf("=3D 0) { + return text.substring(0, k + 2) + prefix + ":" + text.substring(k + 2);= //$NON-NLS-1$ + } + return text; + } + + static Properties getPrefixes(String body) { + Properties p =3D new Properties(); + int i =3D 0; + while(i >=3D 0 && i < body.length()) { + i =3D body.indexOf("<%@ taglib ", i); //$NON-NLS-1$ + if(i < 0) break; + int j =3D body.indexOf("%>", i); //$NON-NLS-1$ + if(j < 0) j =3D body.length(); + String taglib =3D body.substring(i, j); + getPrefix(p, taglib); + i =3D j + 1; + } + return p; + } + + static void getPrefix(Properties p, String taglib) { + int i =3D taglib.indexOf("uri=3D\""); //$NON-NLS-1$ + if(i < 0) return; + int j =3D taglib.indexOf("\"", i + 5); //$NON-NLS-1$ + if(j < 0) return; + String uri =3D taglib.substring(i + 5, j); + i =3D taglib.indexOf("prefix=3D\""); //$NON-NLS-1$ + if(i < 0) return; + j =3D taglib.indexOf("\"", i + 8); //$NON-NLS-1$ + if(j < 0) return; + String prefix =3D taglib.substring(i + 8, j); + p.setProperty(uri, prefix); + } + } Added: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/js= p/jspeditor/dnd/PaletteTaglibInserter.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/PaletteTaglibInserter.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/PaletteTaglibInserter.java 2009-09-21 12:32:55 UTC (rev 17678) @@ -0,0 +1,404 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.jsp.jspeditor.dnd; + +import java.util.HashMap; +import java.util.List; +import java.util.Properties; + +import org.eclipse.jface.text.BadLocationException; +import org.eclipse.jface.text.IDocument; +import org.eclipse.jface.text.ITextSelection; +import org.eclipse.jface.text.source.ISourceViewer; +import org.eclipse.jface.viewers.ISelectionProvider; +import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel; +import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion; +import org.eclipse.wst.sse.core.internal.provisional.StructuredModelManage= r; +import org.eclipse.wst.sse.ui.internal.contentassist.ContentAssistUtils; +import org.eclipse.wst.xml.core.internal.document.DocumentImpl; +import org.eclipse.wst.xml.core.internal.document.ElementImpl; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel; +import org.jboss.tools.common.model.ui.ModelUIPlugin; +import org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper; +import org.jboss.tools.jst.web.tld.TaglibData; +import org.jboss.tools.jst.web.tld.VpeTaglibManager; +import org.jboss.tools.jst.web.tld.VpeTaglibManagerProvider; +import org.w3c.dom.Element; +import org.w3c.dom.NamedNodeMap; +import org.w3c.dom.Node; +import org.w3c.dom.NodeList; + +public class PaletteTaglibInserter { + + private static final String JSP_SOURCE_ROOT_ELEMENT =3D "jsp:root"; //$NO= N-NLS-1$ + public static final String JSP_URI =3D "http://java.sun.com/JSP/Page"; //= $NON-NLS-1$ + public static final String faceletUri =3D "http://java.sun.com/jsf/facele= ts"; //$NON-NLS-1$ + + private static final String TAGLIB_START =3D "<%@ taglib"; //$NON-NLS-1$ + + public Properties inserTaglib(ISourceViewer v, Properties p) { + if(!inserTaglibInXml(v, p)) { + inserTaglibInOldJsp(v, p); + } + return p; + } + + private boolean checkProperties(Properties p) { + return "true".equalsIgnoreCase(p.getProperty(PaletteInsertHelper.PROPOPE= RTY_ADD_TAGLIB)) && //$NON-NLS-1$ + p.getProperty(PaletteInsertHelper.PROPOPERTY_TAGLIBRARY_URI) !=3D null= && + p.getProperty(PaletteInsertHelper.PROPOPERTY_TAGLIBRARY_URI).length() = > 0 && + !p.getProperty(PaletteInsertHelper.PROPOPERTY_TAGLIBRARY_URI).equals(J= SP_URI) && + p.getProperty(PaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX) !=3D null= && + p.getProperty(PaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX).length() = > 0 && + p.getProperty(PaletteInsertHelper.PROPOPERTY_START_TEXT) !=3D null; + } + + public boolean inserTaglibInOldJsp(ISourceViewer v, Properties p) { + if(!checkProperties(p)) { + return false; + } + + IDocument d =3D v.getDocument(); + IStructuredModel model =3D null; + + try { + model =3D StructuredModelManager.getModelManager().getExistingModelForR= ead(d); + IDOMDocument xmlDocument =3D (model instanceof IDOMModel) ? ((IDOMModel= ) model).getDocument() : null; + if (xmlDocument =3D=3D null) { + return false; + } + Properties tl =3D getPrefixes(v); + if(tl =3D=3D null) tl =3D JSPPaletteInsertHelper.getPrefixes(d.get()); + Element root =3D xmlDocument.getDocumentElement(); + + String uri_p =3D p.getProperty(PaletteInsertHelper.PROPOPERTY_TAGLIBRAR= Y_URI); + String defaultPrefix_p =3D p.getProperty(PaletteInsertHelper.PROPOPERTY= _DEFAULT_PREFIX); + String lineDelimiter =3D PaletteInsertHelper.getLineDelimiter(d); + StringBuffer tg =3D new StringBuffer(TAGLIB_START).append(" uri=3D\"").= append(uri_p).append("\"").append(" prefix=3D\"").append(defaultPrefix_p).a= ppend("\"%>").append(lineDelimiter); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS= -3$ //$NON-NLS-4$ + + if (tl !=3D null && !tl.isEmpty()) { + //If taglib already exist check the prefix if changed + if (tl.containsKey(uri_p)) { + if (!tl.get(uri_p).equals(defaultPrefix_p)) { + p.setProperty(PaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX, (String= )tl.get(uri_p)); + } + } else if(!tl.containsValue(defaultPrefix_p)) { + if (checkplace(xmlDocument, d, "jsp:directive.taglib", tg, p, v) =3D= =3D false) { //$NON-NLS-1$ + d.replace(0, 0, tg.toString()); + mouveFocusOnPage(p,v, tg.toString().length(), 0); + return true; + } + } + } else if(xmlDocument instanceof DocumentImpl) { + DocumentImpl docImpl =3D (DocumentImpl)xmlDocument; + // Only for JSP + if(docImpl.isJSPType()) { + if (checkplace(xmlDocument, d, "jsp:directive.page", tg, p, v) =3D=3D= false) { //$NON-NLS-1$ + d.replace(0, 0, tg.toString()); + mouveFocusOnPage(p,v, tg.toString().length(), 0); + return true; + } + } + } + } catch (BadLocationException e) { + ModelUIPlugin.getPluginLog().logError(e); + } finally { + if (model !=3D null) model.releaseFromRead(); + } + return false; + } + = + private static Node getSelectedNode(ISourceViewer v, Properties p){ + ISelectionProvider selProvider =3D (ISelectionProvider)p.get(PaletteInse= rtHelper.PROPOPERTY_SELECTION_PROVIDER); + if(selProvider =3D=3D null) return null; + = + ITextSelection selection =3D null; + = + if(selProvider.getSelection() instanceof ITextSelection) + selection =3D (ITextSelection)selProvider.getSelection(); + else return null; + = + IndexedRegion region =3D ContentAssistUtils.getNodeAt(v, selection.getOf= fset()); + if(region =3D=3D null) return null; + = + if(!(region instanceof Node)) return null; + = + Node text =3D (Node)region; + = + = + if("#text".equals(text.getNodeName())) //$NON-NLS-1$ + return text.getParentNode(); + else + return text; + } + = + private static boolean checkSelectedElement(HashMap map, I= SourceViewer v, Properties p){ + String taglibUri =3D p.getProperty(PaletteInsertHelper.PROPOPERTY_TAGLIB= RARY_URI); + if(taglibUri =3D=3D null) return false; + = + Node selectedNode =3D getSelectedNode(v, p); + if(selectedNode =3D=3D null) return false; + = + return checkElement(map, selectedNode, taglibUri); + } + = + private static boolean checkElement(HashMap map, Node node= , String taglibUri){ + = + NamedNodeMap attrs =3D node.getAttributes(); + for (int j =3D 0; attrs !=3D null && j < attrs.getLength(); j++) { + Node a =3D attrs.item(j); + String name =3D a.getNodeName(); + + if (name.startsWith("xmlns:")) { //$NON-NLS-1$ + map.put(a.getNodeValue(), name.substring("xmlns:".length())); //$NON-N= LS-1$ + } + } + + if (map.containsKey(taglibUri)) return true; + else{ + if(node.getParentNode() =3D=3D null) return false; + else return checkElement(map, node.getParentNode(), taglibUri); + } + } + + public boolean inserTaglibInXml(ISourceViewer v, Properties p) { + if(!checkProperties(p)) { + return false; + } + = + IDocument d =3D v.getDocument(); + IStructuredModel model =3D null; + = + try { + model =3D StructuredModelManager.getModelManager().getExistingModelForR= ead(d); + IDOMDocument xmlDocument =3D (model instanceof IDOMModel) ? ((IDOMModel= ) model).getDocument() : null; + = + if (xmlDocument =3D=3D null) { + return false; + } + = + Properties tl =3D getPrefixes(v); + if(tl =3D=3D null) tl =3D JSPPaletteInsertHelper.getPrefixes(d.get()); + Element root =3D xmlDocument.getDocumentElement(); + if(root !=3D null) { + // for xhtml and jsp:root = + if (xmlDocument.getDoctype() !=3D null /* && tagLibListConainsFacelet(= tl)*/ ) { + String publicId =3D xmlDocument.getDoctype().getPublicId(); + if (publicId!=3Dnull && publicId.toUpperCase().startsWith("-//W3C//DT= D XHTML")) { // && root.getNodeName().equalsIgnoreCase(HTML_SOURCE_ROOT_ELE= MENT)) { //$NON-NLS-1$ + checkTL(root, v, p, d); + return true; + } + } else if(xmlDocument.isXMLType() || root.getNodeName().equals(JSP_SOU= RCE_ROOT_ELEMENT)) { + checkTL(root, v, p, d); + return true; + } + } + } finally { + if (model !=3D null) model.releaseFromRead(); + } + return false; + } + +// private static boolean tagLibListConainsFacelet(List tagLibList) { +// if (tagLibList !=3D null && !tagLibList.isEmpty()) { +// for (int i =3D 0; i < tagLibList.size(); i++) { +// TaglibData tgld =3D (TaglibData)tagLibList.get(i); +// if(faceletUri.equals(tgld.getUri())) { +// return true; +// } +// } +// } +// return false; +// } + + /* + * analyse source for taglib, return the list of taglib + */ + private static Properties getPrefixes(ISourceViewer viewer) { + VpeTaglibManager tldManager =3D null; + if((tldManager =3D=3D null) && (viewer instanceof VpeTaglibManagerProvid= er)) { + tldManager =3D ((VpeTaglibManagerProvider)viewer).getTaglibManager(); + if(tldManager !=3D null) { + List list =3D tldManager.getTagLibs(); + Properties p =3D new Properties(); + for (int i =3D 0; i < list.size(); i++) { + TaglibData data =3D (TaglibData)list.get(i); + p.setProperty(data.getUri(), data.getPrefix()); + } + return p; + } = + } + return null; + } + + /* + * for jsp:root and html check the taglib if exist check the prefix else = add the taglib + * with text formatting + */ + private static Properties checkTL(Element root, ISourceViewer v, Properti= es p, IDocument d) { + String uri_p =3D p.getProperty(PaletteInsertHelper.PROPOPERTY_TAGLIBRARY= _URI); + String defaultPrefix_p =3D p.getProperty(PaletteInsertHelper.PROPOPERTY_= DEFAULT_PREFIX); + + HashMap map =3D new HashMap(); + NamedNodeMap attrs =3D root.getAttributes(); + for (int j =3D 0; attrs !=3D null && j < attrs.getLength(); j++) { + Node a =3D attrs.item(j); + String name =3D a.getNodeName(); + + if (name.startsWith("xmlns:")) { //$NON-NLS-1$ + map.put(a.getNodeValue(), name.substring("xmlns:".length())); //$NON-N= LS-1$ + } + } + = + if (map.containsKey(uri_p) || checkSelectedElement(map, v, p)) { + if (!map.get(uri_p).equals(defaultPrefix_p)) { + p.setProperty(PaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX, (String) = map.get(uri_p)); + } + } else if(!map.containsValue(defaultPrefix_p)) { + StringBuffer attribute =3D new StringBuffer("xmlns:").append(defaultPre= fix_p).append("=3D\"").append(uri_p).append("\""); //$NON-NLS-1$ //$NON-NL= S-2$ //$NON-NLS-3$ + int so =3D ((IDOMElement)root).getStartOffset(); + int seo =3D ((IDOMElement)root).getStartEndOffset(); + try { + String lineDelimiter =3D PaletteInsertHelper.getLineDelimiter(d); + StringBuffer selectedSource =3D new StringBuffer().append(d.get(so, se= o-so)); + int xmlns =3D selectedSource.indexOf("xmlns"); //$NON-NLS-1$ + attribute =3D new StringBuffer().append(createEmptyCharArray(xmlns)).a= ppend("xmlns:").append(defaultPrefix_p).append("=3D\"").append(uri_p).appen= d("\""); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + if (d.getLineOffset(d.getLineOfOffset(so)) !=3D so) { = + attribute.insert(0, analyseSubstring(d.get(d.getLineOffset(d.getLineO= fOffset(so)), so-d.getLineOffset(d.getLineOfOffset(so))))); + } = + if(xmlns>0) { + attribute.insert(0, lineDelimiter); + } else { + attribute.insert(0, ' '); + } + selectedSource.insert(selectedSource.length()-1, attribute); + d.replace(so, seo-so, selectedSource.toString()); + } catch (BadLocationException t) { + ModelUIPlugin.getPluginLog().logError("", t); //$NON-NLS-1$ + } + } + return p; + } + + private static char[] createEmptyCharArray(int n){ + if(n<1) { + return new char[0]; + } + char[] ca =3D new char[n]; + for (int i =3D 0; i < n; i++) + ca[i]=3D' '; + return ca; + } + + private static void mouveFocusOnPage(Properties p, ISourceViewer v, int l= ength, int pos){ + ISelectionProvider selProvider =3D (ISelectionProvider)p.get(PaletteInse= rtHelper.PROPOPERTY_SELECTION_PROVIDER); + IDocument doc =3D v.getDocument(); + + if (doc=3D=3D null || selProvider =3D=3D null) return; + + ITextSelection selection =3D (ITextSelection)selProvider.getSelection(); + if (selection.getOffset() =3D=3D 0) { = + v.setSelectedRange(length,0); + p.put(PaletteInsertHelper.PROPOPERTY_SELECTION_PROVIDER,v.getSelection= Provider()); + } + else = + if (selection.getOffset() =3D=3D pos ){ + v.setSelectedRange(length, 0); + p.put(PaletteInsertHelper.PROPOPERTY_SELECTION_PROVIDER,v.getSelectionP= rovider()); + } + } + + /* + * analyse the space between the left corner and the start offset o the t= ext + */ = + private static StringBuffer analyseSubstring(String str){ + StringBuffer st =3D new StringBuffer().append(str); = + for (int i =3D 0; i < st.length(); i++) { + if (st.charAt(i) !=3D ' ' && st.charAt(i) !=3D'\t' ) { + st.setCharAt(i, ' '); + } + } + return st; = + } + + private static boolean checkplace(IDOMDocument xmlDocument, IDocument d, = String st, StringBuffer tg, Properties p, ISourceViewer v) throws BadLocati= onException { + NodeList nl =3D xmlDocument.getChildNodes(); + boolean docType =3D false; + IndexedRegion irdt =3D null; + + if (xmlDocument.getDoctype() !=3D null) { + docType =3D true; + String publicId =3D xmlDocument.getDoctype().getPublicId(); + if (publicId!=3Dnull && publicId.toUpperCase().startsWith("-//W3C//DTD = HTML")) { //$NON-NLS-1$ + irdt =3D (xmlDocument.getDoctype() instanceof IndexedRegion) ? + (IndexedRegion)xmlDocument.getDoctype(): null; + } + } + + if (nl !=3D null && nl.getLength() !=3D 0) { + for (int i=3D0; i < nl.getLength(); i++) { + Node n =3D nl.item(i); + //fing the first taglib to insert before + if (n.getNodeName().equals(st) && st.equals("jsp:directive.taglib")) {= //$NON-NLS-1$ + //calculate the space between taglib and left page corner + int so =3D ((ElementImpl)n).getStartOffset(); + //taglib is at left corner = + if (d.getLineOffset(d.getLineOfOffset(so)) =3D=3D so) { + d.replace(so, 0, tg.toString()); + } else { + StringBuffer left =3D new StringBuffer(). + append(analyseSubstring(d.get(d.getLineOffset(d.getLineOfOffset(so))= , so-d.getLineOffset(d.getLineOfOffset(so))))); + tg.insert(tg.length(), left); + d.replace(so, 0, tg.toString()); + } + return true; + } + if ((n.getNodeName().equals(st) && st.equals("jsp:directive.page")) ) = { //$NON-NLS-1$ + tg.delete(tg.lastIndexOf(PaletteInsertHelper.getLineDelimiter(d)), tg= .length()); + int so =3D ((ElementImpl)n).getStartOffset(); + int eo =3D ((ElementImpl)n).getEndStartOffset(); + StringBuffer tgleft =3D new StringBuffer().append(PaletteInsertHelper= .getLineDelimiter(d)); + if (d.getLineOffset(d.getLineOfOffset(so)) =3D=3D so) { + tgleft.append(tg); + d.replace(eo, 0, tgleft.toString()); + mouveFocusOnPage(p,v, eo + tgleft.length(), eo); + } else { + tgleft.append(analyseSubstring(d.get(d.getLineOffset(d.getLineOfOffs= et(so)), so-d.getLineOffset(d.getLineOfOffset(so))))); + tgleft.append(tg); + d.replace(eo, 0, tgleft.toString()); + mouveFocusOnPage(p,v, eo + tgleft.length(), eo); + } + return true; + } + if (docType && irdt !=3D null) { + tg.delete(tg.lastIndexOf(PaletteInsertHelper.getLineDelimiter(d)), tg= .length()); + int so =3D irdt.getStartOffset(); + int eo =3D irdt.getEndOffset(); + StringBuffer tgleft =3D new StringBuffer().append(PaletteInsertHelper= .getLineDelimiter(d)); + if (d.getLineOffset(d.getLineOfOffset(so)) =3D=3D so) { + tgleft.append(tg); + d.replace(eo, 0, tgleft.toString()); + mouveFocusOnPage(p,v, eo + tgleft.length(), eo); + } else { + tgleft.append(analyseSubstring(d.get(d.getLineOffset(d.getLineOfOffs= et(so)), so-d.getLineOffset(d.getLineOfOffset(so))))); + tgleft.append(tg); + d.replace(eo, 0, tgleft.toString()); + mouveFocusOnPage(p,v, eo + tgleft.length(), eo); + } + return true; + } + } + } + return false; + } +} \ No newline at end of file --===============3938968021695345626==-- From jbosstools-commits at lists.jboss.org Mon Sep 21 08:41:16 2009 Content-Type: multipart/mixed; boundary="===============4210453918368577345==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17679 - in trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette: src/org/jboss/tools/vpe/ui/palette and 1 other directory. Date: Mon, 21 Sep 2009 08:41:16 -0400 Message-ID: <200909211241.n8LCfGZl009042@svn01.web.mwc.hst.phx2.redhat.com> --===============4210453918368577345== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-21 08:41:16 -0400 (Mon, 21 Sep 2009) New Revision: 17679 Modified: trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFEST.MF trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe= /ui/palette/PaletteDragSourceListener.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Splitting PaletteInsertHelper into jsp and non-jsp related parts. Modified: trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFES= T.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFEST.MF 2= 009-09-21 12:32:55 UTC (rev 17678) +++ trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFEST.MF 2= 009-09-21 12:41:16 UTC (rev 17679) @@ -11,6 +11,7 @@ org.eclipse.jface.text, org.eclipse.ui, org.eclipse.gef, - org.jboss.tools.common.model.ui + org.jboss.tools.common.model.ui, + org.jboss.tools.jst.jsp Bundle-Version: 2.1.0 Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/to= ols/vpe/ui/palette/PaletteDragSourceListener.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vp= e/ui/palette/PaletteDragSourceListener.java 2009-09-21 12:32:55 UTC (rev 17= 678) +++ trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vp= e/ui/palette/PaletteDragSourceListener.java 2009-09-21 12:41:16 UTC (rev 17= 679) @@ -23,6 +23,7 @@ import org.jboss.tools.common.model.XModelTransferBuffer; import org.jboss.tools.common.model.plugin.ModelPlugin; import org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper; +import org.jboss.tools.jst.jsp.jspeditor.dnd.JSPPaletteInsertHelper; import org.jboss.tools.vpe.ui.palette.model.PaletteItem; = public class PaletteDragSourceListener extends DragSourceAdapter { @@ -67,7 +68,7 @@ defaultPrefix =3D object.getParent().getAttributeValue("default prefi= x"); //$NON-NLS-1$ } if(defaultPrefix !=3D null && tag !=3D null) { - PaletteInsertHelper.applyPrefix(d, "", tag, "xxx", defaultPrefix); //= $NON-NLS-1$ //$NON-NLS-2$ + JSPPaletteInsertHelper.applyPrefix(d, "", tag, "xxx", defaultPrefix);= //$NON-NLS-1$ //$NON-NLS-2$ } int i =3D d[0].indexOf('|'); if(i >=3D 0) d[0] =3D d[0].substring(0, i) + d[0].substring(i + 1); --===============4210453918368577345==-- From jbosstools-commits at lists.jboss.org Mon Sep 21 09:30:57 2009 Content-Type: multipart/mixed; boundary="===============3411990644063257383==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17680 - in trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui: select and 1 other directories. Date: Mon, 21 Sep 2009 09:30:56 -0400 Message-ID: <200909211330.n8LDUugE018535@svn01.web.mwc.hst.phx2.redhat.com> --===============3411990644063257383== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-21 09:30:56 -0400 (Mon, 21 Sep 2009) New Revision: 17680 Added: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/action/ModelContributionManager.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/views/navigator/ModelNavigatorActionGroup.java Removed: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/action/StrutsContributionManager.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/views/navigator/StrutsNavigatorActionGroup.java Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/select/SelectObjectWizard.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/views/navigator/NavigatorViewPart.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Minor changes to remove 'jsf' and 'struts' names. Copied: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/= tools/common/model/ui/action/ModelContributionManager.java (from rev 16771,= trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/c= ommon/model/ui/action/StrutsContributionManager.java) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/action/ModelContributionManager.java = (rev 0) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/action/ModelContributionManager.java 2009-09-21 13:30:56 = UTC (rev 17680) @@ -0,0 +1,66 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.common.model.ui.action; + +import java.util.*; +import org.eclipse.core.runtime.IAdaptable; +import org.eclipse.jface.action.*; +import org.eclipse.jface.viewers.*; +import org.eclipse.swt.widgets.*; +import org.eclipse.ui.actions.ActionContext; +import org.jboss.tools.common.model.XModelObject; + +public class ModelContributionManager extends MenuManager { + ActionContext context; + Shell shell; + = + public ModelContributionManager(Shell shell) { + super("JBoss Tools"); + this.shell =3D shell; + } + = + public void setContext(ActionContext context) { + this.context =3D context; + } + = + protected void update(boolean force, boolean recursive) { + if (isDirty() || force) { + if (getMenu() !=3D null && !getMenu().isDisposed()) { + Menu menu =3D getMenu(); + MenuItem[] is =3D menu.getItems(); + for (int i =3D 0; i < is.length; i++) is[i].dispose(); + XModelObject[] os =3D getSelectedModelObjects(); + if(os.length =3D=3D 0) return; + XModelObject o =3D os[0]; + if(os.length =3D=3D 1) os =3D null; + XModelObjectActionList l =3D new XModelObjectActionList(o.getModelEnti= ty().getActionList(), o, os, new Object[]{o}); + l.setShell(shell); + l.createMenu(menu); + l.removeLastSeparator(menu); + } + } + } + = + public XModelObject[] getSelectedModelObjects() { + ISelection s =3D context.getSelection(); + if(s.isEmpty() || !(s instanceof StructuredSelection)) return new XModel= Object[0]; + StructuredSelection ss =3D (StructuredSelection)s; + Iterator it =3D ss.iterator(); + ArrayList l =3D new ArrayList(); + while(it.hasNext()) { + IAdaptable a =3D (IAdaptable)it.next(); + XModelObject o =3D (XModelObject)a.getAdapter(XModelObject.class); + if(o !=3D null) l.add(o); + } + return l.toArray(new XModelObject[0]); = + } + = +} Deleted: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss= /tools/common/model/ui/action/StrutsContributionManager.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/action/StrutsContributionManager.java 2009-09-21 12:41:16= UTC (rev 17679) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/action/StrutsContributionManager.java 2009-09-21 13:30:56= UTC (rev 17680) @@ -1,66 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.common.model.ui.action; - -import java.util.*; -import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.jface.action.*; -import org.eclipse.jface.viewers.*; -import org.eclipse.swt.widgets.*; -import org.eclipse.ui.actions.ActionContext; -import org.jboss.tools.common.model.XModelObject; - -public class StrutsContributionManager extends MenuManager { - ActionContext context; - Shell shell; - = - public StrutsContributionManager(Shell shell) { - super("JBoss Tools Struts"); - this.shell =3D shell; - } - = - public void setContext(ActionContext context) { - this.context =3D context; - } - = - protected void update(boolean force, boolean recursive) { - if (isDirty() || force) { - if (getMenu() !=3D null && !getMenu().isDisposed()) { - Menu menu =3D getMenu(); - MenuItem[] is =3D menu.getItems(); - for (int i =3D 0; i < is.length; i++) is[i].dispose(); - XModelObject[] os =3D getSelectedModelObjects(); - if(os.length =3D=3D 0) return; - XModelObject o =3D os[0]; - if(os.length =3D=3D 1) os =3D null; - XModelObjectActionList l =3D new XModelObjectActionList(o.getModelEnti= ty().getActionList(), o, os, new Object[]{o}); - l.setShell(shell); - l.createMenu(menu); - l.removeLastSeparator(menu); - } - } - } - = - public XModelObject[] getSelectedModelObjects() { - ISelection s =3D context.getSelection(); - if(s.isEmpty() || !(s instanceof StructuredSelection)) return new XModel= Object[0]; - StructuredSelection ss =3D (StructuredSelection)s; - Iterator it =3D ss.iterator(); - ArrayList l =3D new ArrayList(); - while(it.hasNext()) { - IAdaptable a =3D (IAdaptable)it.next(); - XModelObject o =3D (XModelObject)a.getAdapter(XModelObject.class); - if(o !=3D null) l.add(o); - } - return l.toArray(new XModelObject[0]); = - } - = -} Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/select/SelectObjectWizard.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/select/SelectObjectWizard.java 2009-09-21 12:41:16 UTC (r= ev 17679) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/select/SelectObjectWizard.java 2009-09-21 13:30:56 UTC (r= ev 17680) @@ -88,9 +88,6 @@ = String[] views =3D new String[]{ "org.jboss.tools.jst.web.ui.navigator.WebProjectsView" //$NON-NLS-1$ -// "org.jboss.tools.jsf.ui.navigator.JsfProjectsView", -// "org.jboss.tools.struts.ui.navigator.StrutsProjectsView", -// "org.jboss.tools.common.model.ui.navigator.NavigatorViewPart" }; = private XModelObject selectInNavigator() { Copied: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/= tools/common/model/ui/views/navigator/ModelNavigatorActionGroup.java (from = rev 16771, trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbo= ss/tools/common/model/ui/views/navigator/StrutsNavigatorActionGroup.java) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/views/navigator/ModelNavigatorActionGroup.java = (rev 0) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/views/navigator/ModelNavigatorActionGroup.java 2009-09-21= 13:30:56 UTC (rev 17680) @@ -0,0 +1,169 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.common.model.ui.views.navigator; + +import org.jboss.tools.common.model.ui.action.ModelContributionManager; +import org.eclipse.jface.action.IToolBarManager; +import org.eclipse.jface.action.Separator; +//import org.eclipse.jface.util.IPropertyChangeListener; +//import org.eclipse.jface.util.PropertyChangeEvent; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.swt.events.KeyEvent; +import org.eclipse.swt.widgets.Shell; +import org.eclipse.ui.IActionBars; +import org.eclipse.ui.actions.ActionContext; +import org.eclipse.ui.actions.ActionFactory; +import org.eclipse.ui.actions.AddBookmarkAction; +import org.eclipse.ui.actions.AddTaskAction; +import org.eclipse.ui.actions.WorkingSetFilterActionGroup; +import org.eclipse.ui.dialogs.PropertyDialogAction; +import org.eclipse.ui.ide.IDEActionFactory; +import org.eclipse.ui.views.navigator.*; + +public class ModelNavigatorActionGroup extends ResourceNavigatorActionGrou= p { + + protected AddBookmarkAction addBookmarkAction; + protected AddTaskAction addTaskAction; = + protected PropertyDialogAction propertyDialogAction; + protected CollapseAllAction collapseAllAction; + protected ToggleLinkingAction toggleLinkingAction; + = + protected OpenActionGroup openGroup; + protected NRefactorActionGroup refactorGroup; + protected WorkingSetFilterActionGroup workingSetGroup; + protected WorkspaceActionGroup workspaceGroup; + = + protected ModelContributionManager mcm; + protected boolean activateModelContribution =3D false; + + /** + * Constructs the main action group. + */ + public ModelNavigatorActionGroup(IResourceNavigator navigator) { + super(navigator); + makeSubGroups(); + } + + /** + * Makes the actions contained directly in this action group. + */ + protected void makeActions() { + Shell shell =3D navigator.getSite().getShell(); + = + if(activateModelContribution) { + mcm =3D new ModelContributionManager(shell); + } + = + addBookmarkAction =3D new AddBookmarkAction(shell); + addTaskAction =3D new AddTaskAction(shell); = + propertyDialogAction =3D + new PropertyDialogAction(navigator.getSite(), navigator.getViewer()); + = + collapseAllAction =3D new CollapseAllAction(navigator, "Collapse All"); + collapseAllAction.setToolTipText("Collapse All"); + collapseAllAction.setImageDescriptor(getImageDescriptor("elcl16/collapse= all.gif")); //$NON-NLS-1$ + + toggleLinkingAction =3D new ToggleLinkingAction( + navigator, "Link with Editor"); + toggleLinkingAction.setToolTipText("Link with Editor"); + toggleLinkingAction.setImageDescriptor(getImageDescriptor("elcl16/synced= .gif"));//$NON-NLS-1$ + } + = + /** + * Makes the sub action groups. + */ + protected void makeSubGroups() { + openGroup =3D new OpenActionGroup(navigator); + refactorGroup =3D new NRefactorActionGroup(navigator); + workspaceGroup =3D new WorkspaceActionGroup(navigator); + } + = + /** + * Extends the superclass implementation to set the context in the subgro= ups. + */ + public void setContext(ActionContext context) { + super.setContext(context); + openGroup.setContext(context); + refactorGroup.setContext(context); + workspaceGroup.setContext(context); + if(mcm !=3D null) mcm.setContext(context); + } + = + /** + * Adds the actions in this group and its subgroups to the action bars. + */ + public void fillActionBars(IActionBars actionBars) { + actionBars.setGlobalActionHandler( + ActionFactory.PROPERTIES.getId(), + propertyDialogAction); + actionBars.setGlobalActionHandler( + IDEActionFactory.BOOKMARK.getId(), + addBookmarkAction); + actionBars.setGlobalActionHandler( + IDEActionFactory.ADD_TASK.getId(), + addTaskAction); + openGroup.fillActionBars(actionBars); + refactorGroup.fillActionBars(actionBars); + workspaceGroup.fillActionBars(actionBars); + + IToolBarManager toolBar =3D actionBars.getToolBarManager(); + toolBar.add(new Separator()); + toolBar.add(collapseAllAction); = + toolBar.add(toggleLinkingAction); + } + = + /** + * Updates the actions which were added to the action bars, + * delegating to the subgroups as necessary. + */ + public void updateActionBars() { + IStructuredSelection selection =3D + (IStructuredSelection) getContext().getSelection(); + propertyDialogAction.setEnabled(selection.size() =3D=3D 1); + addBookmarkAction.selectionChanged(selection); + addTaskAction.selectionChanged(selection); + = + openGroup.updateActionBars(); + refactorGroup.updateActionBars(); + workspaceGroup.updateActionBars(); + if(mcm !=3D null) mcm.markDirty(); + if(mcm !=3D null) mcm.update(true); + } = + = + /** + * Runs the default action (open file) by delegating the open group. + */ + public void runDefaultAction(IStructuredSelection selection) { + openGroup.runDefaultAction(selection); + } + = + /** + * Handles a key pressed event by invoking the appropriate action, + * delegating to the subgroups as necessary. + */ + public void handleKeyPressed(KeyEvent event) { + refactorGroup.handleKeyPressed(event); + workspaceGroup.handleKeyPressed(event); + } + = + /** + * Extends the superclass implementation to dispose the subgroups. + */ + public void dispose() { + openGroup.dispose(); + refactorGroup.dispose(); + workspaceGroup.dispose(); + if(mcm !=3D null) mcm.dispose(); + super.dispose(); + } + = + = +} Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/views/navigator/NavigatorViewPart.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/views/navigator/NavigatorViewPart.java 2009-09-21 12:41:1= 6 UTC (rev 17679) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/views/navigator/NavigatorViewPart.java 2009-09-21 13:30:5= 6 UTC (rev 17680) @@ -104,7 +104,7 @@ private NavigatorStatusLineProvider statusLineProvider =3D new NavigatorS= tatusLineProvider(); private ActivationListener fActivationListener=3D new ActivationListener(= ); = - boolean useStrutsMenu =3D true; + boolean useModelMenu =3D true; = public NavigatorViewPart() { selectionProvider.addSelectionChangedListener(new SL()); @@ -167,8 +167,6 @@ = protected String[] getActionClasses() { String[] actions =3D new String[]{ - "org.jboss.tools.struts.ui.internal.action.CreateProjectAction", //$NON= -NLS-1$ - "org.jboss.tools.struts.ui.internal.action.ImportProjectAction" = //$NON-NLS-1$ }; return actions; } @@ -246,7 +244,7 @@ //@S_CHECK@ TreeViewerMenuInvoker listener =3D createMenuInvoker(); listener.setViewer(viewer); - if(useStrutsMenu) { + if(useModelMenu) { viewer.getTree().addMouseListener(listener); } } @@ -453,7 +451,7 @@ } = protected void makeActions() { - setActionGroup(new StrutsNavigatorActionGroup(this)); + setActionGroup(new ModelNavigatorActionGroup(this)); } = ResourceNavigatorActionGroup actionGroup; @@ -486,7 +484,7 @@ fillContextMenu(manager); } }); - if(!useStrutsMenu) { + if(!useModelMenu) { TreeViewer treeViewer =3D getViewer(); Menu menu =3D menuMgr.createContextMenu(treeViewer.getTree()); treeViewer.getTree().setMenu(menu); @@ -530,11 +528,11 @@ }; = private void saveLinkingEnabled(IMemento _memento) { - _memento.putInteger("LinkStrutsProjectsToEditor", isLinkingEnabled ? 1 := 0); //$NON-NLS-1$ + _memento.putInteger("LinkModelProjectsToEditor", isLinkingEnabled ? 1 : = 0); //$NON-NLS-1$ } = private void restoreLinkingEnabled() { - Integer val =3D memento.getInteger("LinkStrutsProjectsToEditor");//IWork= benchPreferenceConstants.LINK_NAVIGATOR_TO_EDITOR); //$NON-NLS-1$ + Integer val =3D memento.getInteger("LinkModelProjectsToEditor");//IWorkb= enchPreferenceConstants.LINK_NAVIGATOR_TO_EDITOR); //$NON-NLS-1$ if (val !=3D null) { isLinkingEnabled =3D val.intValue() !=3D 0; } Deleted: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss= /tools/common/model/ui/views/navigator/StrutsNavigatorActionGroup.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/views/navigator/StrutsNavigatorActionGroup.java 2009-09-2= 1 12:41:16 UTC (rev 17679) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/views/navigator/StrutsNavigatorActionGroup.java 2009-09-2= 1 13:30:56 UTC (rev 17680) @@ -1,169 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.common.model.ui.views.navigator; - -import org.jboss.tools.common.model.ui.action.StrutsContributionManager; -import org.eclipse.jface.action.IToolBarManager; -import org.eclipse.jface.action.Separator; -//import org.eclipse.jface.util.IPropertyChangeListener; -//import org.eclipse.jface.util.PropertyChangeEvent; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.swt.events.KeyEvent; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.ui.IActionBars; -import org.eclipse.ui.actions.ActionContext; -import org.eclipse.ui.actions.ActionFactory; -import org.eclipse.ui.actions.AddBookmarkAction; -import org.eclipse.ui.actions.AddTaskAction; -import org.eclipse.ui.actions.WorkingSetFilterActionGroup; -import org.eclipse.ui.dialogs.PropertyDialogAction; -import org.eclipse.ui.ide.IDEActionFactory; -import org.eclipse.ui.views.navigator.*; - -public class StrutsNavigatorActionGroup extends ResourceNavigatorActionGro= up { - - protected AddBookmarkAction addBookmarkAction; - protected AddTaskAction addTaskAction; = - protected PropertyDialogAction propertyDialogAction; - protected CollapseAllAction collapseAllAction; - protected ToggleLinkingAction toggleLinkingAction; - = - protected OpenActionGroup openGroup; - protected NRefactorActionGroup refactorGroup; - protected WorkingSetFilterActionGroup workingSetGroup; - protected WorkspaceActionGroup workspaceGroup; - = - protected StrutsContributionManager struts; - protected boolean activateStrutsContribution =3D false; - - /** - * Constructs the main action group. - */ - public StrutsNavigatorActionGroup(IResourceNavigator navigator) { - super(navigator); - makeSubGroups(); - } - - /** - * Makes the actions contained directly in this action group. - */ - protected void makeActions() { - Shell shell =3D navigator.getSite().getShell(); - = - if(activateStrutsContribution) { - struts =3D new StrutsContributionManager(shell); - } - = - addBookmarkAction =3D new AddBookmarkAction(shell); - addTaskAction =3D new AddTaskAction(shell); = - propertyDialogAction =3D - new PropertyDialogAction(navigator.getSite(), navigator.getViewer()); - = - collapseAllAction =3D new CollapseAllAction(navigator, "Collapse All"); - collapseAllAction.setToolTipText("Collapse All"); - collapseAllAction.setImageDescriptor(getImageDescriptor("elcl16/collapse= all.gif")); //$NON-NLS-1$ - - toggleLinkingAction =3D new ToggleLinkingAction( - navigator, "Link with Editor"); - toggleLinkingAction.setToolTipText("Link with Editor"); - toggleLinkingAction.setImageDescriptor(getImageDescriptor("elcl16/synced= .gif"));//$NON-NLS-1$ - } - = - /** - * Makes the sub action groups. - */ - protected void makeSubGroups() { - openGroup =3D new OpenActionGroup(navigator); - refactorGroup =3D new NRefactorActionGroup(navigator); - workspaceGroup =3D new WorkspaceActionGroup(navigator); - } - = - /** - * Extends the superclass implementation to set the context in the subgro= ups. - */ - public void setContext(ActionContext context) { - super.setContext(context); - openGroup.setContext(context); - refactorGroup.setContext(context); - workspaceGroup.setContext(context); - if(struts !=3D null) struts.setContext(context); - } - = - /** - * Adds the actions in this group and its subgroups to the action bars. - */ - public void fillActionBars(IActionBars actionBars) { - actionBars.setGlobalActionHandler( - ActionFactory.PROPERTIES.getId(), - propertyDialogAction); - actionBars.setGlobalActionHandler( - IDEActionFactory.BOOKMARK.getId(), - addBookmarkAction); - actionBars.setGlobalActionHandler( - IDEActionFactory.ADD_TASK.getId(), - addTaskAction); - openGroup.fillActionBars(actionBars); - refactorGroup.fillActionBars(actionBars); - workspaceGroup.fillActionBars(actionBars); - - IToolBarManager toolBar =3D actionBars.getToolBarManager(); - toolBar.add(new Separator()); - toolBar.add(collapseAllAction); = - toolBar.add(toggleLinkingAction); - } - = - /** - * Updates the actions which were added to the action bars, - * delegating to the subgroups as necessary. - */ - public void updateActionBars() { - IStructuredSelection selection =3D - (IStructuredSelection) getContext().getSelection(); - propertyDialogAction.setEnabled(selection.size() =3D=3D 1); - addBookmarkAction.selectionChanged(selection); - addTaskAction.selectionChanged(selection); - = - openGroup.updateActionBars(); - refactorGroup.updateActionBars(); - workspaceGroup.updateActionBars(); - if(struts !=3D null) struts.markDirty(); - if(struts !=3D null) struts.update(true); - } = - = - /** - * Runs the default action (open file) by delegating the open group. - */ - public void runDefaultAction(IStructuredSelection selection) { - openGroup.runDefaultAction(selection); - } - = - /** - * Handles a key pressed event by invoking the appropriate action, - * delegating to the subgroups as necessary. - */ - public void handleKeyPressed(KeyEvent event) { - refactorGroup.handleKeyPressed(event); - workspaceGroup.handleKeyPressed(event); - } - = - /** - * Extends the superclass implementation to dispose the subgroups. - */ - public void dispose() { - openGroup.dispose(); - refactorGroup.dispose(); - workspaceGroup.dispose(); - if(struts !=3D null) struts.dispose(); - super.dispose(); - } - = - = -} --===============3411990644063257383==-- From jbosstools-commits at lists.jboss.org Mon Sep 21 13:42:04 2009 Content-Type: multipart/mixed; boundary="===============7645134763259272818==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17681 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console. Date: Mon, 21 Sep 2009 13:42:04 -0400 Message-ID: <200909211742.n8LHg4iu004274@svn01.web.mwc.hst.phx2.redhat.com> --===============7645134763259272818== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-21 13:42:04 -0400 (Mon, 21 Sep 2009) New Revision: 17681 Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/plugin.xml Log: Fix description to look alike with other hibernate wizards. 'Create a ...' = instead of 'Creates a ..' Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/plugin= .xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/plugin.xml 2= 009-09-21 13:30:56 UTC (rev 17680) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/plugin.xml 2= 009-09-21 17:42:04 UTC (rev 17681) @@ -83,7 +83,7 @@ id=3D"org.hibernate.eclipse.console.wizards.ConsoleConfigurati= onCreationWizard" name=3D"Hibernate Console Configuration" preferredPerspectives=3D"org.hibernate.eclipse.console.Hiberna= teConsolePerspective"> - Creates a new Hibernate Console Configuration + Create a new Hibernate Console Configuration --> -
\ No newline at end of file + --===============7645134763259272818==-- From jbosstools-commits at lists.jboss.org Mon Sep 21 13:59:30 2009 Content-Type: multipart/mixed; boundary="===============8113615964096478682==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17682 - trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui. Date: Mon, 21 Sep 2009 13:59:29 -0400 Message-ID: <200909211759.n8LHxTfJ006918@svn01.web.mwc.hst.phx2.redhat.com> --===============8113615964096478682== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-21 13:59:29 -0400 (Mon, 21 Sep 2009) New Revision: 17682 Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/plugin.propert= ies trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/plugin.xml Log: Description is added for New Hibernate XML Mapping file New Wizard Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/plugin.= properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/plugin.proper= ties 2009-09-21 17:42:04 UTC (rev 17681) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/plugin.proper= ties 2009-09-21 17:59:29 UTC (rev 17682) @@ -6,4 +6,5 @@ JavaEditorMenu_GenerateHibernateAnnotations=3DGenerate &Hibernate/JPA anno= tations... JavaElementMenu_GenerateHibernateAnnotations=3DGenerate &Hibernate/JPA ann= otations Menu_Source=3D&Source -New_wizard_menu_New_mapping_file=3DHibernate XML Mapping file (hbm.xml) \ No newline at end of file +New_wizard_menu_New_mapping_file=3DHibernate XML Mapping file (hbm.xml) +New_wizard_menu_New_mapping_file_description =3D Creates a new Hibernate X= ML Mapping file \ No newline at end of file Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/plugin.= xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/plugin.xml 20= 09-09-21 17:42:04 UTC (rev 17681) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/plugin.xml 20= 09-09-21 17:59:29 UTC (rev 17682) @@ -149,6 +149,10 @@ class=3D"org.hibernate.eclipse.jdt.ui.wizards.NewHibernateMapp= ingFileWizard" icon=3D"icons/hibernate_small_icon.gif" id=3D"org.hibernate.eclipse.console.wizards.NewHibernateMappin= gFileWizard" - name=3D"%New_wizard_menu_New_mapping_file"/> + name=3D"%New_wizard_menu_New_mapping_file"> + + %New_wizard_menu_New_mapping_file_description + +
--===============8113615964096478682==-- From jbosstools-commits at lists.jboss.org Mon Sep 21 14:24:33 2009 Content-Type: multipart/mixed; boundary="===============0862950087275049360==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17683 - trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl. Date: Mon, 21 Sep 2009 14:24:33 -0400 Message-ID: <200909211824.n8LIOX8L012479@svn01.web.mwc.hst.phx2.redhat.com> --===============0862950087275049360== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: rob.stryker(a)jboss.com Date: 2009-09-21 14:24:33 -0400 (Mon, 21 Sep 2009) New Revision: 17683 Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/e= clipse/as/core/server/xpl/PublishCopyUtil.java Log: JBIDE-4912 - fixed an NPE Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jbos= s/ide/eclipse/as/core/server/xpl/PublishCopyUtil.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/= eclipse/as/core/server/xpl/PublishCopyUtil.java 2009-09-21 17:59:29 UTC (re= v 17682) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/= eclipse/as/core/server/xpl/PublishCopyUtil.java 2009-09-21 18:24:33 UTC (re= v 17683) @@ -474,13 +474,15 @@ copyFile(file.getContents(), path, file.getLocalTimeStamp(), mf); else { File file2 =3D (File) mf.getAdapter(File.class); - InputStream in =3D null; - try { - in =3D new FileInputStream(file2); - } catch (IOException e) { - throw new CoreException(new Status(IStatus.ERROR, ServerPlugin.PLUGIN_= ID, 0, NLS.bind(Messages.errorReading, file2.getAbsolutePath()), e)); - } - copyFile(in, path, file2.lastModified(), mf); + if( file2 !=3D null ) { + InputStream in =3D null; + try { + in =3D new FileInputStream(file2); + } catch (IOException e) { + throw new CoreException(new Status(IStatus.ERROR, ServerPlugin.PLUGIN= _ID, 0, NLS.bind(Messages.errorReading, file2.getAbsolutePath()), e)); + } + copyFile(in, path, file2.lastModified(), mf); + } // else silently ignore I guess } } = --===============0862950087275049360==-- From jbosstools-commits at lists.jboss.org Mon Sep 21 15:30:28 2009 Content-Type: multipart/mixed; boundary="===============6117708640068289258==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17684 - in trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core: src/org/jboss/ide/eclipse/as/wtp/core/util and 1 other directories. Date: Mon, 21 Sep 2009 15:30:28 -0400 Message-ID: <200909211930.n8LJUSm7023323@svn01.web.mwc.hst.phx2.redhat.com> --===============6117708640068289258== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: rob.stryker(a)jboss.com Date: 2009-09-21 15:30:27 -0400 (Mon, 21 Sep 2009) New Revision: 17684 Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/plugin.xml trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/util/ResourceListVirtualFolder.java trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/vcf/ExportedClasspathFoldersVirtualComponent.java trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/vcf/FilesetVirtualComponent.java trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/vcf/OutputFoldersVirtualComponent.java Log: Adding further implementations for some primary use cases here Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/plugin.xml 2009-09-2= 1 18:24:33 UTC (rev 17683) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/plugin.xml 2009-09-2= 1 19:30:27 UTC (rev 17684) @@ -8,6 +8,10 @@ class=3D"org.jboss.ide.eclipse.as.wtp.core.vcf.OutputFolderRef= erenceResolver" id=3D"org.jboss.ide.eclipse.as.wtp.core.vcf.outputFolderRefere= nceResolver"> + + = Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/= ide/eclipse/as/wtp/core/util/ResourceListVirtualFolder.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/util/ResourceListVirtualFolder.java 2009-09-21 18:24:33 U= TC (rev 17683) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/util/ResourceListVirtualFolder.java 2009-09-21 19:30:27 U= TC (rev 17684) @@ -2,9 +2,8 @@ = import java.util.ArrayList; import java.util.Arrays; -import java.util.HashSet; -import java.util.List; -import java.util.Set; +import java.util.Collection; +import java.util.HashMap; = import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IFile; @@ -14,26 +13,69 @@ import org.eclipse.core.runtime.IPath; import org.eclipse.wst.common.componentcore.internal.resources.VirtualFile; import org.eclipse.wst.common.componentcore.internal.resources.VirtualFold= er; +import org.eclipse.wst.common.componentcore.resources.IVirtualFile; import org.eclipse.wst.common.componentcore.resources.IVirtualResource; = +// TODO THis class is fucked and incorrectly works. = +// The first instance (top) treats 'resources' as folders to search +// Others try to treat it as items that are inside. This is bad. = public class ResourceListVirtualFolder extends VirtualFolder { = - private ArrayList resources; + private ArrayList children; + private ArrayList underlying; public ResourceListVirtualFolder( IProject aComponentProject, - IPath aRuntimePath, = - IResource[] containers) { + IPath aRuntimePath) { super(aComponentProject, aRuntimePath); - this.resources =3D new ArrayList(); - this.resources.addAll(Arrays.asList(containers)); + this.children =3D new ArrayList(); + this.underlying =3D new ArrayList(); } = - protected void addResource(IResource c) { - //this.resources.add(c); + public ResourceListVirtualFolder( + IProject aComponentProject, + IPath aRuntimePath, IContainer[] underlyingContainers) { + this(aComponentProject, aRuntimePath); + this.underlying.addAll(Arrays.asList(underlyingContainers)); } + + public ResourceListVirtualFolder( + IProject aComponentProject, + IPath aRuntimePath, IContainer[] underlyingContainers, = + IResource[] looseResources) { + this(aComponentProject, aRuntimePath, underlyingContainers); + this.children.addAll(Arrays.asList(looseResources)); + } + + protected void addUnderlyingResource(IResource resource) { + if( underlying instanceof IContainer ) { = + underlying.add((IContainer)resource); + try { + IResource[] newChildren =3D ((IContainer)resource).members(); + for( int i =3D 0; i < newChildren.length; i++ ) { + children.add(newChildren[i]); + } + } catch( CoreException ce) { + // TODO log + } + } + } + + protected void addUnderlyingResource(IResource[] resources) { + for( int i =3D 0; i < resources.length; i++ ) { + addUnderlyingResource(resources[i]); + } + } = + protected void addChild(IResource resource) { + this.children.add(resource); + } + + protected void addChildren(IResource[] resources) { + this.children.addAll(Arrays.asList(resources)); + } + = + = public IResource getUnderlyingResource() { - // Since I'm a container, pretend I'm a container I guess return getUnderlyingFolder(); } = @@ -42,55 +84,45 @@ } = public IContainer getUnderlyingFolder() { = - IResource[] r =3D (IResource[]) resources.toArray(new IResource[resource= s.size()]); - for( int i =3D 0; i < r.length; i++ ) - if( r[i] instanceof IContainer ) - return (IContainer)r[i]; - return null; + return underlying.size() > 0 ? underlying.get(0) : null; } = public IContainer[] getUnderlyingFolders() { - IResource[] r =3D (IResource[]) resources.toArray(new IResource[resource= s.size()]); - ArrayList c =3D new ArrayList(); - for( int i =3D 0; i < r.length; i++ ) - if( r[i] instanceof IContainer ) - c.add((IContainer)r[i]); - return (IContainer[]) c.toArray(new IContainer[c.size()]); + return (IContainer[]) underlying.toArray(new IContainer[underlying.size(= )]); } = + public IVirtualResource[] members(int memberFlags) throws CoreException { - List virtualResources =3D new ArrayList(); // result - Set allNames =3D new HashSet(); - IResource[] containers2 =3D (IResource[]) this.resources.toArray(new IRe= source[this.resources.size()]); - for( int i =3D 0; i < containers2.length; i++ ) { - IResource realResource =3D containers2[i]; - if ((realResource !=3D null) && (realResource.getType() =3D=3D IResourc= e.FOLDER || realResource.getType() =3D=3D IResource.PROJECT)) { - IContainer realContainer =3D (IContainer) realResource; - IResource[] realChildResources =3D realContainer.members(memberFlags); - for (int realResourceIndex =3D 0; realResourceIndex < realChildResourc= es.length; realResourceIndex++) { - IResource child =3D realChildResources[realResourceIndex]; - String localName =3D child.getName(); - if (allNames.add(localName)) { - IPath newRuntimePath =3D getRuntimePath().append(localName); - if (child instanceof IFile) { - virtualResources.add(new VirtualFile(getProject(), newRuntimePath, = (IFile) child)); - } else if( child instanceof IContainer ){ - IContainer childContainer =3D (IContainer)child; - IResource[] members =3D childContainer.members(); - ResourceListVirtualFolder childFolder =3D = - new ResourceListVirtualFolder(getProject(), newRuntimePath, member= s); - virtualResources.add(childFolder); - } - } - } - } else if(realResource !=3D null && realResource instanceof IFile) { - // An IResource.FILE would be an error condition (as this is a contain= er) - virtualResources.add(new VirtualFile(getProject(), = - getRuntimePath().append(((IFile)realResource).getName()), (IFile)rea= lResource)); = - } + HashMap virtualResources =3D new HashMap(); // result + IResource[] resources =3D (IResource[]) this.children.toArray(new IResou= rce[this.children.size()]); + for( int i =3D 0; i < resources.length; i++ ) { + handleResource(resources[i], virtualResources, memberFlags); } - return virtualResources.toArray(new IVirtualResource[virtualResources.si= ze()]); + Collection c =3D virtualResources.values(); + return (IVirtualResource[]) c.toArray(new IVirtualResource[c.size()]); } = - = + protected void handleResource(IResource resource, HashMap map, int memberFlags) throws CoreException { + if( resource instanceof IFile ) { + if( !map.containsKey(resource.getName()) ) { + IVirtualFile virtFile =3D new VirtualFile(getProject(), = + getRuntimePath().append(((IFile)resource).getName()), (IFile)resourc= e); + map.put(resource.getName(), virtFile); + return; + } = + }// end file + else if( resource instanceof IContainer ) { + IContainer realContainer =3D (IContainer) resource; + IResource[] realChildResources =3D realContainer.members(memberFlags); + IVirtualResource previousValue =3D map.get(resource.getName()); + if( previousValue !=3D null && previousValue instanceof ResourceListVir= tualFolder ) { + ((ResourceListVirtualFolder)previousValue).addUnderlyingResource(realC= ontainer); + } else if( previousValue =3D=3D null ) { + ResourceListVirtualFolder childFolder =3D = + new ResourceListVirtualFolder(getProject(), getRuntimePath().append(r= esource.getName())); + childFolder.addUnderlyingResource(realContainer); + map.put(resource.getName(), childFolder); + } + } // end container + } } Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/= ide/eclipse/as/wtp/core/vcf/ExportedClasspathFoldersVirtualComponent.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/ExportedClasspathFoldersVirtualComponent.java 2009-09= -21 18:24:33 UTC (rev 17683) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/ExportedClasspathFoldersVirtualComponent.java 2009-09= -21 19:30:27 UTC (rev 17684) @@ -24,10 +24,14 @@ return ExportedClassFolderReferenceResolver.OUTPUT_FOLDER_PROTOCOL; } = - protected IResource[] getExposableResources() { + protected IResource[] getLooseResources() { + return new IResource[]{}; + } + = + protected IContainer[] getUnderlyingContainers() { IJavaProject jp =3D JavaCore.create(project); IClasspathEntry[] entries =3D findAllClassFolderEntries(jp); - ArrayList results =3D new ArrayList(); + ArrayList results =3D new ArrayList(); for( int i =3D 0; i < entries.length; i++ ) { IClasspathAttribute attribute =3D ClasspathDependencyUtil.checkForCompo= nentDependencyAttribute( entries[i], @@ -36,11 +40,11 @@ if( attribute !=3D null ) { final IResource resource =3D ResourcesPlugin.getWorkspace().getRoot().= findMember(entries[i].getPath()); if (resource !=3D null && resource instanceof IContainer ) { - results.add(resource); + results.add((IContainer)resource); } } } - return (IResource[]) results.toArray(new IResource[results.size()]); + return results.toArray(new IContainer[results.size()]); } = protected IClasspathEntry[] findAllClassFolderEntries(IJavaProject javaPr= oject) { @@ -55,5 +59,4 @@ } = return list.toArray(new IClasspathEntry[list.size()]); } - } Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/= ide/eclipse/as/wtp/core/vcf/FilesetVirtualComponent.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/FilesetVirtualComponent.java 2009-09-21 18:24:33 UTC = (rev 17683) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/FilesetVirtualComponent.java 2009-09-21 19:30:27 UTC = (rev 17684) @@ -2,6 +2,7 @@ = import java.util.Properties; = +import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; @@ -47,7 +48,6 @@ String firstSegment =3D getFirstIdSegment(); if (project.equals(referencingComp.getProject())) return firstSegment; = - = return firstSegment + Path.SEPARATOR + project.getName(); } = @@ -63,12 +63,15 @@ } = public IVirtualFolder getRootFolder() { - IResource[] resources =3D getExposableResources(); - return new ResourceListVirtualFolder( - project, new Path("/"), resources); + IContainer[] containers =3D getUnderlyingContainers(); + IResource[] looseResources =3D getLooseResources(); + ResourceListVirtualFolder folder =3D = + new ResourceListVirtualFolder(project, new Path("/"), containers, loose= Resources); + return folder; } = - protected abstract IResource[] getExposableResources(); + protected abstract IContainer[] getUnderlyingContainers(); + protected abstract IResource[] getLooseResources(); = public Properties getMetaProperties() { return null; Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/= ide/eclipse/as/wtp/core/vcf/OutputFoldersVirtualComponent.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/OutputFoldersVirtualComponent.java 2009-09-21 18:24:3= 3 UTC (rev 17683) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/OutputFoldersVirtualComponent.java 2009-09-21 19:30:2= 7 UTC (rev 17684) @@ -23,7 +23,11 @@ return OutputFolderReferenceResolver.OUTPUT_FOLDER_PROTOCOL; } = - protected IResource[] getExposableResources() { + protected IResource[] getLooseResources() { + return new IResource[]{}; + } + + protected IContainer[] getUnderlyingContainers() { List result =3D new ArrayList(); try { if (!project.hasNature(JavaCore.NATURE_ID)) --===============6117708640068289258==-- From jbosstools-commits at lists.jboss.org Mon Sep 21 17:23:30 2009 Content-Type: multipart/mixed; boundary="===============4448006071246636040==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17685 - in trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui: wizards and 1 other directory. Date: Mon, 21 Sep 2009 17:23:30 -0400 Message-ID: <200909212123.n8LLNURm008222@svn01.web.mwc.hst.phx2.redhat.com> --===============4448006071246636040== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: rob.stryker(a)jboss.com Date: 2009-09-21 17:23:29 -0400 (Mon, 21 Sep 2009) New Revision: 17685 Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclip= se/as/ui/Messages.java trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclip= se/as/ui/Messages.properties trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclip= se/as/ui/wizards/JBossRuntimeWizardFragment.java Log: JBIDE-4874 - changed the messaging. seems there's no way to tell if we're e= diting or not Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/id= e/eclipse/as/ui/Messages.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/ecli= pse/as/ui/Messages.java 2009-09-21 19:30:27 UTC (rev 17684) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/ecli= pse/as/ui/Messages.java 2009-09-21 21:23:29 UTC (rev 17685) @@ -51,8 +51,7 @@ public static String JBossRuntimeWizardFragment_OutputFolderExists; public static String rwf_CopyConfigLabel; public static String rwf_DestinationLabel; - public static String rwf_TitleCreate; - public static String rwf_TitleEdit; + public static String rwf_JBossRuntime; public static String rwf_Explanation; public static String rwf_NameInUse; public static String rwf_homeMissingFiles; Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/id= e/eclipse/as/ui/Messages.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/ecli= pse/as/ui/Messages.properties 2009-09-21 19:30:27 UTC (rev 17684) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/ecli= pse/as/ui/Messages.properties 2009-09-21 21:23:29 UTC (rev 17685) @@ -10,8 +10,7 @@ wf_ConfigLabel=3DConfiguration rwf_CopyConfigLabel=3DCopy configuration "{0}" to a new destination from "= {1}". rwf_DestinationLabel=3DDestination -rwf_TitleCreate=3DCreate a new JBoss Runtime -rwf_TitleEdit=3DEdit a JBoss Runtime +rwf_JBossRuntime=3DJBoss Runtime rwf_Explanation=3DA JBoss Server runtime references a JBoss installation d= irectory.\nIt can be used to set up classpaths for projects which depend on= this runtime,\nas well as by a "server" which will be able to start and st= op instances of JBoss. rwf_NameInUse=3DRuntime name already in use rwf_homeMissingFiles=3DThe home directory does not exist or is missing the= run.jar. Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/id= e/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/ecli= pse/as/ui/wizards/JBossRuntimeWizardFragment.java 2009-09-21 19:30:27 UTC (= rev 17684) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/ecli= pse/as/ui/wizards/JBossRuntimeWizardFragment.java 2009-09-21 21:23:29 UTC (= rev 17685) @@ -141,8 +141,7 @@ IRuntime r =3D (IRuntime) getTaskModel() .getObject(TaskModel.TASK_RUNTIME); String version =3D r.getRuntimeType().getVersion(); - handle.setTitle( getRuntime() =3D=3D null ? = - Messages.rwf_TitleCreate : Messages.rwf_TitleEdit); + handle.setTitle( Messages.rwf_JBossRuntime); String description =3D NLS.bind( isEAP() ? Messages.JBEAP_version : Messages.JBAS_version, version); --===============4448006071246636040==-- From jbosstools-commits at lists.jboss.org Mon Sep 21 23:25:29 2009 Content-Type: multipart/mixed; boundary="===============0593738162944413221==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17686 - in trunk/esb/plugins: org.jboss.tools.esb.project.core/.settings and 5 other directories. Date: Mon, 21 Sep 2009 23:25:29 -0400 Message-ID: <200909220325.n8M3PTvc023680@svn01.web.mwc.hst.phx2.redhat.com> --===============0593738162944413221== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dennyxu Date: 2009-09-21 23:25:29 -0400 (Mon, 21 Sep 2009) New Revision: 17686 Added: trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/e= sb/core/component/ trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/e= sb/core/component/ESBVirtualComponent.java Modified: trunk/esb/plugins/org.jboss.tools.esb.project.core/.settings/org.eclipse= .jdt.core.prefs trunk/esb/plugins/org.jboss.tools.esb.project.core/plugin.xml trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/e= sb/core/facet/IJBossESBFacetDataModelProperties.java trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/e= sb/core/facet/JBossESBFacetInstallationDelegate.java trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/e= sb/core/module/JBossESBModuleDelegate.java trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/e= sb/core/module/JBossESBModuleFactory.java trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb= /project/ui/wizards/pages/ESBFacetInstallationPage.java Log: JBIDE-4320: apply the patch --ESB Projects does not respect WTP module depe= ndency rules JBIDE-4767: Add Support for JBoss ESB v4.6 Modified: trunk/esb/plugins/org.jboss.tools.esb.project.core/.settings/org.= eclipse.jdt.core.prefs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/plugins/org.jboss.tools.esb.project.core/.settings/org.eclips= e.jdt.core.prefs 2009-09-21 21:23:29 UTC (rev 17685) +++ trunk/esb/plugins/org.jboss.tools.esb.project.core/.settings/org.eclips= e.jdt.core.prefs 2009-09-22 03:25:29 UTC (rev 17686) @@ -1,5 +1,6 @@ -#Wed Aug 27 16:17:18 CST 2008 +#Thu Sep 10 17:06:26 CST 2009 eclipse.preferences.version=3D1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=3Denabled org.eclipse.jdt.core.compiler.codegen.targetPlatform=3D1.5 org.eclipse.jdt.core.compiler.compliance=3D1.5 org.eclipse.jdt.core.compiler.problem.assertIdentifier=3Derror Modified: trunk/esb/plugins/org.jboss.tools.esb.project.core/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/plugins/org.jboss.tools.esb.project.core/plugin.xml 2009-09-2= 1 21:23:29 UTC (rev 17685) +++ trunk/esb/plugins/org.jboss.tools.esb.project.core/plugin.xml 2009-09-2= 2 03:25:29 UTC (rev 17686) @@ -81,6 +81,24 @@ + + + + + + + + + + + + + version=3D"4.2,4.3,4.4,4.5,4.6"> + version=3D"4.2,5.0,5.1"> + version=3D"4.2,4.3,4.4,4.5,4.6"> + version=3D"4.3,5.0"> @@ -163,7 +181,7 @@ projects=3D"true"> + versions=3D"4.2,4.3,4.4,4.5,4.6"> @@ -209,4 +227,14 @@ containerID=3D"org.jboss.esb.runtime.classpath"> + = + = + + + + + = Added: trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/too= ls/esb/core/component/ESBVirtualComponent.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/= esb/core/component/ESBVirtualComponent.java (rev 0) +++ trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/= esb/core/component/ESBVirtualComponent.java 2009-09-22 03:25:29 UTC (rev 17= 686) @@ -0,0 +1,7 @@ +package org.jboss.tools.esb.core.component; + +import org.jboss.ide.eclipse.as.wtp.core.vcf.JBTVirtualComponent; + +public class ESBVirtualComponent extends JBTVirtualComponent { + +} Modified: trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/= tools/esb/core/facet/IJBossESBFacetDataModelProperties.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/= esb/core/facet/IJBossESBFacetDataModelProperties.java 2009-09-21 21:23:29 U= TC (rev 17685) +++ trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/= esb/core/facet/IJBossESBFacetDataModelProperties.java 2009-09-22 03:25:29 U= TC (rev 17686) @@ -27,6 +27,7 @@ = public static final QualifiedName QNAME_ESB_CONTENT_FOLDER =3D new Qualif= iedName("jboss", ESB_CONTENT_FOLDER); public static final QualifiedName QNAME_ESB_SRC_FOLDER =3D new QualifiedN= ame("jboss", ESB_SOURCE_FOLDER); + public static final String ESB_PROJECT_VERSION =3D "jboss.esb.project.pro= ject.version"; = = = Modified: trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/= tools/esb/core/facet/JBossESBFacetInstallationDelegate.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/= esb/core/facet/JBossESBFacetInstallationDelegate.java 2009-09-21 21:23:29 U= TC (rev 17685) +++ trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/= esb/core/facet/JBossESBFacetInstallationDelegate.java 2009-09-22 03:25:29 U= TC (rev 17686) @@ -11,7 +11,6 @@ package org.jboss.tools.esb.core.facet; = import java.io.ByteArrayInputStream; -import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; = import org.eclipse.core.resources.IFile; @@ -19,11 +18,14 @@ import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IProjectDescription; import org.eclipse.core.resources.IResource; +import org.eclipse.core.resources.ProjectScope; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Path; import org.eclipse.core.runtime.Status; +import org.eclipse.core.runtime.preferences.IEclipsePreferences; +import org.eclipse.core.runtime.preferences.IScopeContext; import org.eclipse.jdt.core.IClasspathEntry; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jdt.core.JavaCore; @@ -35,6 +37,8 @@ import org.eclipse.wst.common.frameworks.datamodel.IDataModel; import org.eclipse.wst.common.project.facet.core.IDelegate; import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion; +import org.jboss.tools.esb.core.ESBProjectCorePlugin; +import org.osgi.service.prefs.BackingStoreException; = public class JBossESBFacetInstallationDelegate implements IDelegate { = @@ -126,6 +130,19 @@ private void createProjectStructure(IProject project) throws CoreExceptio= n{ String strContentFolder =3D model.getStringProperty(IJBossESBFacetDataMo= delProperties.ESB_CONTENT_FOLDER); project.setPersistentProperty(IJBossESBFacetDataModelProperties.QNAME_ES= B_CONTENT_FOLDER, strContentFolder); + = + String qualifier =3D ESBProjectCorePlugin.getDefault().getDescriptor().g= etUniqueIdentifier(); + IScopeContext context =3D new ProjectScope(project); + IEclipsePreferences node =3D context.getNode(qualifier); + if (node !=3D null) + node.putDouble(IJBossESBFacetDataModelProperties.ESB_PROJECT_VERSION, 2= .0); + = + try { + node.flush(); + } catch (BackingStoreException e) { + e.printStackTrace(); + } + IFolder esbContent =3D project.getFolder(strContentFolder); if(!esbContent.exists()) { esbContent.create(true, true, null); = Modified: trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/= tools/esb/core/module/JBossESBModuleDelegate.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/= esb/core/module/JBossESBModuleDelegate.java 2009-09-21 21:23:29 UTC (rev 17= 685) +++ trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/= esb/core/module/JBossESBModuleDelegate.java 2009-09-22 03:25:29 UTC (rev 17= 686) @@ -14,41 +14,51 @@ import java.util.List; = import org.eclipse.core.resources.IContainer; -import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IFolder; import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; +import org.eclipse.core.resources.ProjectScope; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Path; +import org.eclipse.core.runtime.preferences.IEclipsePreferences; +import org.eclipse.core.runtime.preferences.IScopeContext; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jdt.core.JavaCore; import org.eclipse.wst.common.componentcore.ComponentCore; import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; import org.eclipse.wst.common.componentcore.resources.IVirtualFolder; -import org.eclipse.wst.server.core.IModule; import org.eclipse.wst.server.core.model.IModuleResource; -import org.eclipse.wst.server.core.util.ModuleFile; -import org.eclipse.wst.server.core.util.ModuleFolder; -import org.eclipse.wst.server.core.util.ProjectModule; +import org.jboss.ide.eclipse.as.wtp.core.modules.IJBTModule; +import org.jboss.ide.eclipse.as.wtp.core.modules.JBTProjectModuleDelegate; +import org.jboss.tools.esb.core.ESBProjectCorePlugin; import org.jboss.tools.esb.core.StatusUtils; +import org.jboss.tools.esb.core.facet.IJBossESBFacetDataModelProperties; = -public class JBossESBModuleDelegate extends ProjectModule { +public class JBossESBModuleDelegate extends JBTProjectModuleDelegate imple= ments IJBTModule { = public JBossESBModuleDelegate(IProject project){ super(project); } - @Override - public IModule[] getChildModules() { - return null; - } = public IModuleResource[] members() throws CoreException { + IProject p =3D getProject(); + String qualifier =3D ESBProjectCorePlugin.getDefault().getDescriptor().g= etUniqueIdentifier(); + IScopeContext context =3D new ProjectScope(p); + IEclipsePreferences node =3D context.getNode(qualifier); + if (node !=3D null) { + double d =3D node.getDouble(IJBossESBFacetDataModelProperties.ESB_PROJE= CT_VERSION, 1.0); + if( d < 2.0 ) = + return super.members(); + } + return legacyMembers(); + } + = + public IModuleResource[] legacyMembers() throws CoreException { IProject project =3D getProject(); final IVirtualComponent c =3D ComponentCore.createComponent(project); IVirtualFolder vf =3D c.getRootFolder(); IContainer[] folders =3D vf.getUnderlyingFolders(); + if(folders =3D=3D null || folders.length =3D=3D 0){ throw new CoreException(StatusUtils.errorStatus("The project is not a v= alid JBoss ESB project.")); } @@ -57,8 +67,8 @@ //in the JBT CR1, the length of folders will be 1. IContainer contentFolder =3D folders.length > 1? folders[1] : folders[0]; = - IFolder configFolder =3D project.getFolder(contentFolder.getProjectRelat= ivePath()); - IJavaProject javaPrj =3D JavaCore.create(project); + IFolder configFolder =3D getProject().getFolder(contentFolder.getProject= RelativePath()); + IJavaProject javaPrj =3D JavaCore.create(getProject()); IPath output =3D javaPrj.getOutputLocation(); = // if the jboss-esb.xml file is not in META-INF folder, try to get it fr= om other folder of the project // block this logic as Max's suggestion @@ -67,7 +77,7 @@ List mrs =3D new ArrayList(); = IModuleResource[] esbContent =3D getModuleResources(Path.EMPTY, configFo= lder); - IModuleResource[] classes =3D getModuleResources(Path.EMPTY, project.get= Workspace().getRoot().getFolder(output)); + IModuleResource[] classes =3D getModuleResources(Path.EMPTY, getProject(= ).getWorkspace().getRoot().getFolder(output)); IModuleResource[] allResource =3D new IModuleResource[esbContent.length = + classes.length + mrs.size()]; System.arraycopy(esbContent, 0, allResource, 0, esbContent.length); System.arraycopy(classes, 0, allResource, esbContent.length, classes.len= gth); @@ -77,40 +87,9 @@ } return allResource; } - = - = - = - @Override - public IStatus validate() { - return null; - } = @Override - protected IModuleResource[] getModuleResources(IPath path, IContainer con= tainer) throws CoreException { - = - IResource[] resources =3D container.members(); - if (resources !=3D null) { - int size =3D resources.length; - List list =3D new ArrayList(size); - for (int i =3D 0; i < size; i++) { - IResource resource =3D resources[i]; - if (resource !=3D null && resource.exists()) { - String name =3D resource.getName(); - if (resource instanceof IContainer) { - IContainer container2 =3D (IContainer) resource; - ModuleFolder mf =3D new ModuleFolder(container2, name, path); - mf.setMembers(getModuleResources(path.append(name), container2)); - list.add(mf); - } else if (resource instanceof IFile) { - list.add(new ModuleFile((IFile) resource, name, path)); - } - } - } - IModuleResource[] moduleResources =3D new IModuleResource[list.size()]; - list.toArray(moduleResources); - return moduleResources; - } - return new IModuleResource[0]; + protected String getFactoryId() { + return JBossESBModuleFactory.FACTORY_ID; } - = } Modified: trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/= tools/esb/core/module/JBossESBModuleFactory.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/= esb/core/module/JBossESBModuleFactory.java 2009-09-21 21:23:29 UTC (rev 176= 85) +++ trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/= esb/core/module/JBossESBModuleFactory.java 2009-09-22 03:25:29 UTC (rev 176= 86) @@ -10,92 +10,29 @@ *************************************************************************= *****/ package org.jboss.tools.esb.core.module; = -import java.util.HashMap; - import org.eclipse.core.resources.IProject; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.NullProgressMonitor; -import org.eclipse.wst.common.project.facet.core.IFacetedProject; -import org.eclipse.wst.common.project.facet.core.IProjectFacet; -import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion; -import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager; -import org.eclipse.wst.server.core.IModule; -import org.eclipse.wst.server.core.internal.ModuleFactory; -import org.eclipse.wst.server.core.internal.ServerPlugin; -import org.eclipse.wst.server.core.model.ModuleDelegate; -import org.eclipse.wst.server.core.util.ProjectModuleFactoryDelegate; +import org.jboss.ide.eclipse.as.wtp.core.modules.JBTProjectModuleDelegate; +import org.jboss.ide.eclipse.as.wtp.core.modules.JBTProjectModuleFactory; import org.jboss.tools.esb.core.ESBProjectConstant; -import org.jboss.tools.esb.core.ESBProjectCorePlugin; import org.jboss.tools.esb.core.facet.IJBossESBFacetDataModelProperties; = -public class JBossESBModuleFactory extends ProjectModuleFactoryDelegate { +public class JBossESBModuleFactory extends JBTProjectModuleFactory { public static final String FACTORY_ID =3D "org.jboss.tools.esb.project.co= re.moduleFactory"; public static final String MODULE_TYPE =3D IJBossESBFacetDataModelPropert= ies.JBOSS_ESB_FACET_ID; - public static final String MODULE_ID_PREFIX =3D IJBossESBFacetDataModelPr= operties.JBOSS_ESB_FACET_ID + "."; - private static ModuleFactory factory; private static JBossESBModuleFactory factDelegate; = public static JBossESBModuleFactory getFactory() { - if (factDelegate =3D=3D null) { - ModuleFactory[] factories =3D ServerPlugin.getModuleFactories(); - for (int i =3D 0; i < factories.length; i++) { - if (factories[i].getId().equals(FACTORY_ID)) { - Object o =3D factories[i] - .getDelegate(new NullProgressMonitor()); - if (o instanceof JBossESBModuleFactory) { - factory =3D factories[i]; - factDelegate =3D (JBossESBModuleFactory) o; - return factDelegate; - } - } - } - } + if (factDelegate =3D=3D null) + factDelegate =3D (JBossESBModuleFactory)getFactory(FACTORY_ID); return factDelegate; } = - = - private HashMap moduleToDelegate; public JBossESBModuleFactory() { - moduleToDelegate =3D new HashMap(); + super(MODULE_TYPE, ESBProjectConstant.ESB_PROJECT_FACET); } = - @Override - protected void clearCache(IProject project) { - super.clearCache(project); - moduleToDelegate.remove(project); + protected JBTProjectModuleDelegate createDelegate(IProject project) { + return new JBossESBModuleDelegate(project); } - = - @Override - public ModuleDelegate getModuleDelegate(IModule module) { - return moduleToDelegate.get(module); - } = - protected IModule[] createModules(IProject project) { - IFacetedProject facetProject; - try { - facetProject =3D ProjectFacetsManager.create(project); - if (facetProject =3D=3D null) { - return null; - } - IProjectFacet esbFacet =3D ProjectFacetsManager - .getProjectFacet(ESBProjectConstant.ESB_PROJECT_FACET); - - if (facetProject.hasProjectFacet(esbFacet)) { - IProjectFacetVersion version =3D facetProject.getProjectFacetVersion(e= sbFacet); - IModule module =3D createModule( - MODULE_ID_PREFIX + project.getName(), = - project.getName(), = - MODULE_TYPE, = - version.getVersionString(), = - project); - moduleToDelegate.put(module, new JBossESBModuleDelegate(project)); - return new IModule[] { module }; - } - } catch (CoreException e) { - ESBProjectCorePlugin.getDefault().getLog().log(e.getStatus()); - } - return null; - - } - } Modified: trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/to= ols/esb/project/ui/wizards/pages/ESBFacetInstallationPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/es= b/project/ui/wizards/pages/ESBFacetInstallationPage.java 2009-09-21 21:23:2= 9 UTC (rev 17685) +++ trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/es= b/project/ui/wizards/pages/ESBFacetInstallationPage.java 2009-09-22 03:25:2= 9 UTC (rev 17686) @@ -644,7 +644,14 @@ protected void initializeConfigVersionCombo(Combo cmVersions, String curr= entName, String version) { cmVersions.removeAll(); cmVersions.add("1.0.1"); //$NON-NLS-1$ - if(version !=3D null && version.equals("4.5")) { //$NON-NLS-1$ + double versionNumber =3D 0.0; + try{ + versionNumber =3D Double.valueOf(version); + } + catch(NumberFormatException ex){ + versionNumber =3D 0.0; + } + if(versionNumber >=3D 4.5) { //$NON-NLS-1$ cmVersions.add("1.1.0"); //$NON-NLS-1$ } int index =3D cmVersions.getItemCount() - 1; --===============0593738162944413221==-- From jbosstools-commits at lists.jboss.org Tue Sep 22 02:11:35 2009 Content-Type: multipart/mixed; boundary="===============6751435714883978940==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17687 - trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/facet. Date: Tue, 22 Sep 2009 02:11:35 -0400 Message-ID: <200909220611.n8M6BZrN023863@svn01.web.mwc.hst.phx2.redhat.com> --===============6751435714883978940== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dennyxu Date: 2009-09-22 02:11:35 -0400 (Tue, 22 Sep 2009) New Revision: 17687 Modified: trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/e= sb/core/facet/JBossESBFacetInstallationDelegate.java Log: JBIDE-4654: apply the patch JBossESBFacetInstallationDelegate adds incorrect mapping Modified: trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/= tools/esb/core/facet/JBossESBFacetInstallationDelegate.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/= esb/core/facet/JBossESBFacetInstallationDelegate.java 2009-09-22 03:25:29 U= TC (rev 17686) +++ trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/= esb/core/facet/JBossESBFacetInstallationDelegate.java 2009-09-22 06:11:35 U= TC (rev 17687) @@ -29,6 +29,7 @@ import org.eclipse.jdt.core.IClasspathEntry; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jdt.core.JavaCore; +import org.eclipse.jst.common.frameworks.CommonFrameworksPlugin; import org.eclipse.jst.common.project.facet.WtpUtils; import org.eclipse.jst.common.project.facet.core.ClasspathHelper; import org.eclipse.wst.common.componentcore.ComponentCore; @@ -49,12 +50,11 @@ public void execute(IProject project, IProjectFacetVersion fv, Object config, IProgressMonitor monitor) throws CoreException { model =3D (IDataModel) config; + final IJavaProject jproj =3D JavaCore.create(project); = createProjectStructure(project); - = - = - final IJavaProject jproj =3D JavaCore.create(project); = + = // Add WTP natures. WtpUtils.addNatures(project); = @@ -66,31 +66,26 @@ } catch (Exception e) { c =3D ComponentCore.createComponent(project); } - = - = + + String outputLoc =3D jproj.readOutputLocation().removeFirstSegments(1).t= oString(); c.create(0, null); - //String esbContent =3D model.getStringProperty(IJBossESBFacetDataModelP= roperties.ESB_CONTENT_FOLDER); - c.setMetaProperty("java-output-path", "/build/classes/"); + c.setMetaProperty("java-output-path", outputLoc); = final IVirtualFolder jbiRoot =3D c.getRootFolder(); = - // Create directory structure - /*String srcFolder =3D null; - srcFolder =3D model - .getStringProperty(IJBossESBFacetDataModelProperties.ESB_SOURCE_FOLDER= ); - jbiRoot.createLink(new Path("/" + srcFolder), 0, null);*/ - String resourcesFolder =3D model - .getStringProperty(IJBossESBFacetDataModelProperties.ESB_CONTENT_FOLDE= R); + // Map the esbcontent to root for deploy + String resourcesFolder =3D model.getStringProperty( + IJBossESBFacetDataModelProperties.ESB_CONTENT_FOLDER); jbiRoot.createLink(new Path("/" + resourcesFolder), 0, null); = = - final IVirtualFolder jsrc =3D c.getRootFolder().getFolder("/esbcontent")= ; //$NON-NLS-1$ - final IClasspathEntry[] cp =3D jproj.getRawClasspath(); - for (int i =3D 0; i < cp.length; i++) { - final IClasspathEntry cpe =3D cp[i]; + final IVirtualFolder jsrc =3D c.getRootFolder().getFolder("/"); //$NON-N= LS-1$ + final IClasspathEntry[] cp2 =3D jproj.getRawClasspath(); + for (int i =3D 0; i < cp2.length; i++) { + final IClasspathEntry cpe =3D cp2[i]; if (cpe.getEntryKind() =3D=3D IClasspathEntry.CPE_SOURCE) { if( cpe.getPath().removeFirstSegments(1).segmentCount() > 0 ) - jsrc.createLink(cpe.getPath().removeFirstSegments(1), 0, null); + jsrc.createLink(new Path(outputLoc), 0, null); } } = @@ -106,11 +101,6 @@ = ClasspathHelper.removeClasspathEntries(project, fv); ClasspathHelper.addClasspathEntries(project, fv); - = - //String prjName =3D model.getStringProperty(IFacetDataModelProperties.F= ACET_PROJECT_NAME); - //IProject project =3D ResourcesPlugin.getWorkspace().getRoot().getProje= ct(prjName); - = - } = private IFile createJBossESBXML(IFolder folder) throws CoreException{ --===============6751435714883978940==-- From jbosstools-commits at lists.jboss.org Tue Sep 22 04:10:46 2009 Content-Type: multipart/mixed; boundary="===============5835802091648754622==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17688 - in trunk/bpel/plugins: org.jboss.tools.bpel.cheatsheet and 15 other directories. Date: Tue, 22 Sep 2009 04:10:46 -0400 Message-ID: <200909220810.n8M8AkXP015093@svn01.web.mwc.hst.phx2.redhat.com> --===============5835802091648754622== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: Grid.Qian Date: 2009-09-22 04:10:46 -0400 (Tue, 22 Sep 2009) New Revision: 17688 Added: trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/.classpath trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/.project trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/.settings/ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/.settings/org.eclipse= .jdt.core.prefs trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/META-INF/ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/META-INF/MANIFEST.MF trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/bin/ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/bin/org/ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/bin/org/jboss/ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/bin/org/jboss/tools/ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/bin/org/jboss/tools/b= pel/ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/bin/org/jboss/tools/b= pel/cheatsheet/ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/bin/org/jboss/tools/b= pel/cheatsheet/Activator.class trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/build.properties trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/cheatsheets/ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/cheatsheets/bpel.xml trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/plugin.xml trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/src/ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/src/org/ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/src/org/jboss/ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/src/org/jboss/tools/ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/src/org/jboss/tools/b= pel/ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/src/org/jboss/tools/b= pel/cheatsheet/ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/src/org/jboss/tools/b= pel/cheatsheet/Activator.java Log: add cheatsheet for bpel Added: trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/.classpath =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/.classpath = (rev 0) +++ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/.classpath 2009-09-2= 2 08:10:46 UTC (rev 17688) @@ -0,0 +1,7 @@ + + + + + + + Added: trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/.project = (rev 0) +++ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/.project 2009-09-22 = 08:10:46 UTC (rev 17688) @@ -0,0 +1,28 @@ + + + org.jboss.tools.bpel.cheatsheet + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + Added: trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/.settings/org.ecl= ipse.jdt.core.prefs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/.settings/org.eclips= e.jdt.core.prefs (rev 0) +++ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/.settings/org.eclips= e.jdt.core.prefs 2009-09-22 08:10:46 UTC (rev 17688) @@ -0,0 +1,8 @@ +#Thu Sep 17 15:54:11 CST 2009 +eclipse.preferences.version=3D1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=3Denabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=3D1.5 +org.eclipse.jdt.core.compiler.compliance=3D1.5 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=3Derror +org.eclipse.jdt.core.compiler.problem.enumIdentifier=3Derror +org.eclipse.jdt.core.compiler.source=3D1.5 Added: trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/META-INF/MANIFEST= .MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/META-INF/MANIFEST.MF= (rev 0) +++ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/META-INF/MANIFEST.MF= 2009-09-22 08:10:46 UTC (rev 17688) @@ -0,0 +1,11 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Cheatsheet +Bundle-SymbolicName: org.jboss.tools.bpel.cheatsheet;singleton:=3Dtrue +Bundle-Version: 1.0.0 +Bundle-Activator: org.jboss.tools.bpel.cheatsheet.Activator +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.ui.cheatsheets +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: J2SE-1.5 Added: trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/bin/org/jboss/too= ls/bpel/cheatsheet/Activator.class =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/bin= /org/jboss/tools/bpel/cheatsheet/Activator.class ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/build.properties = (rev 0) +++ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/build.properties 200= 9-09-22 08:10:46 UTC (rev 17688) @@ -0,0 +1,4 @@ +source.. =3D src/ +output.. =3D bin/ +bin.includes =3D META-INF/,\ + . Added: trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/cheatsheets/bpel.= xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/cheatsheets/bpel.xml= (rev 0) +++ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/cheatsheets/bpel.xml= 2009-09-22 08:10:46 UTC (rev 17688) @@ -0,0 +1,89 @@ + = + + + + + Learn how to use JBoss BPEL editor. + + + + + + If you want to deploy a bpel staff into JBoss BPEL server, the first= step, you need create a BPEL project. +Of course, if you only need to draw a BPEL process, you don't need to= do the step. + + + + + + + = + + + After create a BPEL project, you can create a BPEL process file in th= e project. = + + + + + + + + + + + + For getting a useful BPEL process, you need to edit the BPEL proces= s file by adding some BPEL elements.

+From the "Palette" view, you can add a BPEL element to the BPEL = process by dragging and dropping it.

+From the "Properties" view, you can edit the attributes of a BPE= L element.

+From the "Tray of the BPEL editor", you can add a Partner link, = Variable, Correlation Set or Message Exchange to the BPEL process.

+If the "Properties" view and "Palette" view are not op= ened, you can open the views by right-clicking the BPEL editor and selectin= g "Show in Properties", "Show Palette in Palette view". + = +
= +
+ = + + + For getting a runnable BPEL staff, beside the BPEL process file, you = need a WSDL to describe how to use the BPEL process. As default, the system= has genereted a WSDL for the BPEL staff. You need to edit it to support yo= ur BPEL project.

+Open the WSDL using the WSDL editor, add "Service" and "Bin= ding" by right-clicking on the WSDL editor, and set the attributes of = them in the "Properties" view. +
+
+ = + + + If you want to deploy a BPEL project to JBoss BPEL Runtime, you n= eed to create a bpel-deploy.xml file. + + + + + + = + = + + + Suppose you have installed the JBoss BPEL Runtime-RiftSaw into a = JBoss server, you can create a server in JBoss Tools for JBoss BPEL runtime. + = + + + + + + + + + + + = + = + + + If you don't add a BPEL resource into the server in the thir= d step of "Create a JBoss BPEL Server", you can right-click on th= e server item in the "JBoss Server" view and select the "Add= and Removes...", then you can do the step as the third step of "= Create a JBoss BPEL Server". +

+After these steps, you can start the server to test your BPEL staff. +
+
= +
Added: trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/plugin.xml = (rev 0) +++ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/plugin.xml 2009-09-2= 2 08:10:46 UTC (rev 17688) @@ -0,0 +1,21 @@ + + + + + + + + + Learn how to use JBoss BPEL editor + + + + + \ No newline at end of file Added: trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/src/org/jboss/too= ls/bpel/cheatsheet/Activator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/src/org/jboss/tools/= bpel/cheatsheet/Activator.java (rev 0) +++ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/src/org/jboss/tools/= bpel/cheatsheet/Activator.java 2009-09-22 08:10:46 UTC (rev 17688) @@ -0,0 +1,50 @@ +package org.jboss.tools.bpel.cheatsheet; + +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends AbstractUIPlugin { + + // The plug-in ID + public static final String PLUGIN_ID =3D "org.jboss.tools.bpel.cheatsheet= "; + + // The shared instance + private static Activator plugin; + = + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.B= undleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin =3D this; + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.Bu= ndleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin =3D null; + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } + +} --===============5835802091648754622==-- From jbosstools-commits at lists.jboss.org Tue Sep 22 04:12:08 2009 Content-Type: multipart/mixed; boundary="===============8448913082480505404==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17689 - trunk/bpel/features/org.jboss.tools.bpel.feature. Date: Tue, 22 Sep 2009 04:12:08 -0400 Message-ID: <200909220812.n8M8C828015308@svn01.web.mwc.hst.phx2.redhat.com> --===============8448913082480505404== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: Grid.Qian Date: 2009-09-22 04:12:08 -0400 (Tue, 22 Sep 2009) New Revision: 17689 Modified: trunk/bpel/features/org.jboss.tools.bpel.feature/feature.xml Log: change the feature.xml for adding bpel cheatsheet plugin Modified: trunk/bpel/features/org.jboss.tools.bpel.feature/feature.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/features/org.jboss.tools.bpel.feature/feature.xml 2009-09-22= 08:10:46 UTC (rev 17688) +++ trunk/bpel/features/org.jboss.tools.bpel.feature/feature.xml 2009-09-22= 08:12:08 UTC (rev 17689) @@ -1,100 +1,107 @@ - - - - - %description - - - - %copyright - - - - %license - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + %description + + + + %copyright + + + + %license + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --===============8448913082480505404==-- From jbosstools-commits at lists.jboss.org Tue Sep 22 06:30:59 2009 Content-Type: multipart/mixed; boundary="===============6449609463195986538==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17690 - in trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/process: wizard and 1 other directory. Date: Tue, 22 Sep 2009 06:30:59 -0400 Message-ID: <200909221030.n8MAUxVm007850@svn01.web.mwc.hst.phx2.redhat.com> --===============6449609463195986538== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vyemialyanchyk Date: 2009-09-22 06:30:58 -0400 (Tue, 22 Sep 2009) New Revision: 17690 Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibern= ate/eclipse/jdt/ui/internal/jpa/process/AllEntitiesProcessor.java trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibern= ate/eclipse/jdt/ui/internal/jpa/process/ChangeStructure.java trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibern= ate/eclipse/jdt/ui/internal/jpa/process/wizard/EntitiesList.java trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibern= ate/eclipse/jdt/ui/internal/jpa/process/wizard/HibernateJPARefactoring.java trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibern= ate/eclipse/jdt/ui/internal/jpa/process/wizard/HibernateJPAWizard.java Log: https://jira.jboss.org/jira/browse/JBIDE-4901 - fixed - the solution was to= use TextFileChange instead of DocumentChange Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org= /hibernate/eclipse/jdt/ui/internal/jpa/process/AllEntitiesProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hiber= nate/eclipse/jdt/ui/internal/jpa/process/AllEntitiesProcessor.java 2009-09-= 22 08:12:08 UTC (rev 17689) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hiber= nate/eclipse/jdt/ui/internal/jpa/process/AllEntitiesProcessor.java 2009-09-= 22 10:30:58 UTC (rev 17690) @@ -26,8 +26,8 @@ import org.eclipse.jdt.core.dom.rewrite.ASTRewrite; import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.jface.text.BadLocationException; +import org.eclipse.jface.text.IDocument; import org.eclipse.text.edits.MalformedTreeException; -import org.eclipse.text.edits.UndoEdit; import org.hibernate.eclipse.console.HibernateConsolePlugin; import org.hibernate.eclipse.jdt.ui.Activator; import org.hibernate.eclipse.jdt.ui.internal.jpa.common.EntityInfo; @@ -150,8 +150,8 @@ setJavaProject(project); // get the buffer manager ITextFileBufferManager bufferManager =3D FileBuffers.getTextFileBufferMa= nager(); - Iterator> it =3D entities.entrySet().itera= tor(); - /*String outText =3D ""; //$NON-NLS-1$ + /*Iterator> it =3D entities.entrySet().ite= rator(); + String outText =3D ""; //$NON-NLS-1$ String ls =3D System.getProperties().getProperty("line.separator", "\n")= ; //$NON-NLS-1$//$NON-NLS-2$ while (it.hasNext()) { Map.Entry entry =3D it.next(); @@ -237,10 +237,10 @@ for (int i =3D 0; i < changes.size(); i++) { ChangeStructure cs =3D changes.get(i); try { - if (cs.textFileBuffer !=3D null && cs.document !=3D null && cs.textEdi= t !=3D null && + if (cs.textFileBuffer !=3D null && cs.textEdit !=3D null && ((cs.change !=3D null && cs.change.isEnabled()) || (cs.change =3D=3D = null))) { - cs.document =3D cs.textFileBuffer.getDocument(); - UndoEdit undo =3D cs.textEdit.apply(cs.document); + IDocument document =3D cs.textFileBuffer.getDocument(); + cs.textEdit.apply(document); // commit changes to underlying file cs.textFileBuffer.commit(null, true); } @@ -288,7 +288,7 @@ bufferManager.connect(cs.path, LocationKind.IFILE, null); cs.textFileBuffer =3D bufferManager.getTextFileBuffer(cs.path, Location= Kind.IFILE); // retrieve the buffer - cs.document =3D cs.textFileBuffer.getDocument(); + cs.icu =3D icu; AST ast =3D cu.getAST(); ASTRewrite rewriter =3D ASTRewrite.create(ast); // ... rewrite @@ -300,8 +300,9 @@ processor.setEntities(entities); processor.setASTRewrite(rewriter); cu.accept(processor); - // - cs.textEdit =3D rewriter.rewriteAST(cs.document, JavaCore.getOptions()); + //// + IDocument documentChange =3D cs.textFileBuffer.getDocument(); + cs.textEdit =3D rewriter.rewriteAST(documentChange, JavaCore.getOptions= ()); // add change to array of changes changes.add(cs); } catch (JavaModelException e) { Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org= /hibernate/eclipse/jdt/ui/internal/jpa/process/ChangeStructure.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hiber= nate/eclipse/jdt/ui/internal/jpa/process/ChangeStructure.java 2009-09-22 08= :12:08 UTC (rev 17689) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hiber= nate/eclipse/jdt/ui/internal/jpa/process/ChangeStructure.java 2009-09-22 10= :30:58 UTC (rev 17690) @@ -2,7 +2,7 @@ = import org.eclipse.core.filebuffers.ITextFileBuffer; import org.eclipse.core.runtime.IPath; -import org.eclipse.jface.text.IDocument; +import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.ltk.core.refactoring.Change; import org.eclipse.text.edits.TextEdit; = @@ -12,7 +12,7 @@ public class ChangeStructure { public String fullyQualifiedName; public IPath path; - public IDocument document; + public ICompilationUnit icu; public TextEdit textEdit; public ITextFileBuffer textFileBuffer; public Change change; Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org= /hibernate/eclipse/jdt/ui/internal/jpa/process/wizard/EntitiesList.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hiber= nate/eclipse/jdt/ui/internal/jpa/process/wizard/EntitiesList.java 2009-09-2= 2 08:12:08 UTC (rev 17689) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hiber= nate/eclipse/jdt/ui/internal/jpa/process/wizard/EntitiesList.java 2009-09-2= 2 10:30:58 UTC (rev 17690) @@ -41,6 +41,7 @@ * * @author Vitali */ +(a)SuppressWarnings("restriction") public class EntitiesList extends UserInputWizardPage { = protected IHibernateJPAWizardData data; Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org= /hibernate/eclipse/jdt/ui/internal/jpa/process/wizard/HibernateJPARefactori= ng.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hiber= nate/eclipse/jdt/ui/internal/jpa/process/wizard/HibernateJPARefactoring.jav= a 2009-09-22 08:12:08 UTC (rev 17689) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hiber= nate/eclipse/jdt/ui/internal/jpa/process/wizard/HibernateJPARefactoring.jav= a 2009-09-22 10:30:58 UTC (rev 17690) @@ -12,13 +12,14 @@ = import java.util.ArrayList; = +import org.eclipse.core.resources.IFile; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.Status; import org.eclipse.ltk.core.refactoring.Change; import org.eclipse.ltk.core.refactoring.CompositeChange; -import org.eclipse.ltk.core.refactoring.DocumentChange; import org.eclipse.ltk.core.refactoring.Refactoring; import org.eclipse.ltk.core.refactoring.RefactoringStatus; +import org.eclipse.ltk.core.refactoring.TextFileChange; import org.hibernate.eclipse.jdt.ui.internal.JdtUiMessages; import org.hibernate.eclipse.jdt.ui.internal.jpa.process.ChangeStructure; = @@ -55,7 +56,8 @@ for (int i =3D 0; i < changes.size(); i++) { ChangeStructure cs =3D changes.get(i); String change_name =3D cs.fullyQualifiedName; - DocumentChange change =3D new DocumentChange(change_name, cs.document); + TextFileChange change =3D new TextFileChange(change_name, (IFile)cs.icu= .getResource()); + change.setSaveMode(TextFileChange.FORCE_SAVE); change.setEdit(cs.textEdit); cs.change =3D change; cc.add(change); Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org= /hibernate/eclipse/jdt/ui/internal/jpa/process/wizard/HibernateJPAWizard.ja= va =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hiber= nate/eclipse/jdt/ui/internal/jpa/process/wizard/HibernateJPAWizard.java 200= 9-09-22 08:12:08 UTC (rev 17689) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hiber= nate/eclipse/jdt/ui/internal/jpa/process/wizard/HibernateJPAWizard.java 200= 9-09-22 10:30:58 UTC (rev 17690) @@ -12,9 +12,9 @@ = import org.eclipse.jdt.ui.refactoring.RefactoringSaveHelper; import org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringStarter; -import org.eclipse.ltk.core.refactoring.RefactoringStatus; import org.eclipse.ltk.ui.refactoring.RefactoringWizard; import org.eclipse.ltk.ui.refactoring.UserInputWizardPage; +import org.eclipse.swt.widgets.Shell; import org.eclipse.ui.IWorkbenchWindow; import org.eclipse.ui.PlatformUI; import org.hibernate.eclipse.jdt.ui.internal.JdtUiMessages; @@ -24,6 +24,7 @@ * * @author Vitali */ +(a)SuppressWarnings("restriction") public class HibernateJPAWizard extends RefactoringWizard { = protected final String wizard_title =3D JdtUiMessages.AllEntitiesProcesso= r_header; @@ -55,10 +56,11 @@ } = public boolean showWizard() { - IWorkbenchWindow win =3D PlatformUI.getWorkbench().getActiveWorkbenchWin= dow(); - RefactoringStarter refactoringStarter =3D new RefactoringStarter(); - boolean res =3D refactoringStarter.activate(this, win.getShell(), wizard= _title, RefactoringSaveHelper.SAVE_ALL); - RefactoringStatus rs =3D refactoringStarter.getInitialConditionCheckingS= tatus(); + final IWorkbenchWindow win =3D PlatformUI.getWorkbench().getActiveWorkbe= nchWindow(); + final Shell shell =3D win.getShell(); + final RefactoringStarter refactoringStarter =3D new RefactoringStarter(); + boolean res =3D refactoringStarter.activate(this, shell, wizard_title, R= efactoringSaveHelper.SAVE_ALL); + //RefactoringStatus rs =3D refactoringStarter.getInitialConditionCheckin= gStatus(); return res; } = --===============6449609463195986538==-- From jbosstools-commits at lists.jboss.org Tue Sep 22 08:11:24 2009 Content-Type: multipart/mixed; boundary="===============1817853733666950312==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17691 - trunk/jst/plugins/org.jboss.tools.jst.web.kb/taglibs. Date: Tue, 22 Sep 2009 08:11:24 -0400 Message-ID: <200909221211.n8MCBODD028739@svn01.web.mwc.hst.phx2.redhat.com> --===============1817853733666950312== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-22 08:11:24 -0400 (Tue, 22 Sep 2009) New Revision: 17691 Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/taglibs/JsfHtmlBasic.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4932 Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/taglibs/JsfHtmlBasic= .xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.kb/taglibs/JsfHtmlBasic.xml 2= 009-09-22 10:30:58 UTC (rev 17690) +++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/taglibs/JsfHtmlBasic.xml 2= 009-09-22 12:11:24 UTC (rev 17691) @@ -204,8 +204,7 @@ - - + --===============1817853733666950312==-- From jbosstools-commits at lists.jboss.org Tue Sep 22 14:48:31 2009 Content-Type: multipart/mixed; boundary="===============8463837499781827785==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17692 - trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model. Date: Tue, 22 Sep 2009 14:48:31 -0400 Message-ID: <200909221848.n8MImV9Q008310@svn01.web.mwc.hst.phx2.redhat.com> --===============8463837499781827785== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-22 14:48:31 -0400 (Tue, 22 Sep 2009) New Revision: 17692 Modified: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSFM= essageELCompletionEngine.java Log: JBIDE-4933: Content Assist doesn't shows proposals for JSF Resource Bundles issue is fixed Modified: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/mod= el/JSFMessageELCompletionEngine.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSF= MessageELCompletionEngine.java 2009-09-22 12:11:24 UTC (rev 17691) +++ trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSF= MessageELCompletionEngine.java 2009-09-22 18:48:31 UTC (rev 17692) @@ -178,6 +178,10 @@ returnEqualedVariablesOnly); if (resolvedVars !=3D null && !resolvedVars.isEmpty()) { resolvedVariables =3D resolvedVars; + ELSegmentImpl segment =3D new ELSegmentImpl(); + segment.setToken(left.getFirstToken()); + segment.setResolved(true); + resolution.addSegment(segment); resolution.setLastResolvedToken(left); break; } @@ -209,6 +213,7 @@ } } resolution.setProposals(proposals); + segment.setResolved(!proposals.isEmpty()); return resolution; } = @@ -227,11 +232,13 @@ if(operand.getLength()<=3DvarName.length()) { TextProposal proposal =3D new TextProposal(); proposal.setReplacementString(varName.substring(operand.getLength())); + proposal.setLabel(varName); setImage(proposal); proposals.add(proposal); } else if(returnEqualedVariablesOnly) { TextProposal proposal =3D new TextProposal(); proposal.setReplacementString(varName); + proposal.setLabel(varName); setImage(proposal); proposals.add(proposal); } @@ -247,8 +254,9 @@ left =3D (ELInvocationExpression)left.getParent(); if (left !=3D expr) { // inside expression ELSegmentImpl segment =3D new ELSegmentImpl(); - segment.setResolved(false); + segment.setResolved(true); resolution.addSegment(segment); + resolution.setLastResolvedToken(left); return resolution; } else { // Last segment resolveLastSegment((ELInvocationExpression)operand, resolvedVariables,= resolution, returnEqualedVariablesOnly); @@ -332,7 +340,7 @@ if (proposal.equals(filter)) { TextProposal kbProposal =3D new TextProposal(); kbProposal.setReplacementString(proposal); - + kbProposal.setLabel(proposal); setImage(kbProposal); = kbProposals.add(kbProposal); @@ -343,6 +351,7 @@ // This is used for CA. TextProposal kbProposal =3D new TextProposal(); kbProposal.setReplacementString(proposal.substring(filter.length())); + kbProposal.setLabel(proposal); kbProposal.setImage(getELProposalImage()); = kbProposals.add(kbProposal); @@ -383,7 +392,7 @@ if (proposal.equals(filter)) { TextProposal kbProposal =3D new TextProposal(); kbProposal.setReplacementString(proposal); - + kbProposal.setLabel(proposal); setImage(kbProposal); = kbProposals.add(kbProposal); @@ -400,6 +409,7 @@ } = kbProposal.setReplacementString(replacementString); + kbProposal.setLabel(proposal); kbProposal.setImage(getELProposalImage()); = kbProposals.add(kbProposal); @@ -424,12 +434,14 @@ if (key.indexOf('.') !=3D -1) { TextProposal proposal =3D new TextProposal(); proposal.setReplacementString("['" + key + "']"); //$NON-NLS-1$ //$NON= -NLS-2$ + proposal.setLabel("['" + key + "']"); setImage(proposal); = kbProposals.add(proposal); } else { TextProposal proposal =3D new TextProposal(); proposal.setReplacementString(key); + proposal.setLabel(key); setImage(proposal); = kbProposals.add(proposal); --===============8463837499781827785==-- From jbosstools-commits at lists.jboss.org Tue Sep 22 15:01:27 2009 Content-Type: multipart/mixed; boundary="===============5006749632332420474==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17693 - branches/jbosstools-3.0.x/documentation/guides/JBDS2.0-2.1-migration. Date: Tue, 22 Sep 2009 15:01:27 -0400 Message-ID: <200909221901.n8MJ1REE011902@svn01.web.mwc.hst.phx2.redhat.com> --===============5006749632332420474== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: nickboldt Date: 2009-09-22 15:01:26 -0400 (Tue, 22 Sep 2009) New Revision: 17693 Added: branches/jbosstools-3.0.x/documentation/guides/JBDS2.0-2.1-migration/JBD= S2.0-2.1-migration-guide.doc Log: Doc format for PM peeps Added: branches/jbosstools-3.0.x/documentation/guides/JBDS2.0-2.1-migration= /JBDS2.0-2.1-migration-guide.doc =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: branches/jbosstools-3.0.x/documentation/guides/JBDS2.0= -2.1-migration/JBDS2.0-2.1-migration-guide.doc ___________________________________________________________________ Name: svn:mime-type + application/octet-stream --===============5006749632332420474==-- From jbosstools-commits at lists.jboss.org Tue Sep 22 15:47:33 2009 Content-Type: multipart/mixed; boundary="===============4109391949835827345==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17694 - trunk/as/plugins/org.jboss.ide.eclipse.as.core. Date: Tue, 22 Sep 2009 15:47:33 -0400 Message-ID: <200909221947.n8MJlX76020487@svn01.web.mwc.hst.phx2.redhat.com> --===============4109391949835827345== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: rob.stryker(a)jboss.com Date: 2009-09-22 15:47:32 -0400 (Tue, 22 Sep 2009) New Revision: 17694 Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/plugin.xml Log: JBIDE-4767 committing to trunk Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.core/plugin.xml 2009-09-22 19= :01:26 UTC (rev 17693) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/plugin.xml 2009-09-22 19= :47:32 UTC (rev 17694) @@ -236,7 +236,7 @@ versions=3D"1.0"/> + versions=3D"4.2,4.3,4.4,4.5,4.6,5.0"> + versions=3D"4.2,4.3,4.4,4.5,4,6,5.0"> + versions=3D"4.2,4.3,4.4,4.5,4.6,5.0"> + versions=3D"4.2,4.3,4.4,4.5,4.6,5.0"> = @@ -379,7 +379,7 @@ versions=3D"1.0"/> + versions=3D"4.2,4.3,4.4,4.5,4.6,5.0"> + versions=3D"4.2,4.3,4.4,4.5,4.6,5.0"> --===============1668964746608988510== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: rob.stryker(a)jboss.com Date: 2009-09-22 16:14:27 -0400 (Tue, 22 Sep 2009) New Revision: 17695 Modified: trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/e= sb/core/module/JBossESBModuleDelegate.java Log: JBIDE-4320 - if and else needed to be swapped Modified: trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/= tools/esb/core/module/JBossESBModuleDelegate.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/= esb/core/module/JBossESBModuleDelegate.java 2009-09-22 19:47:32 UTC (rev 17= 694) +++ trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/= esb/core/module/JBossESBModuleDelegate.java 2009-09-22 20:14:27 UTC (rev 17= 695) @@ -48,9 +48,9 @@ if (node !=3D null) { double d =3D node.getDouble(IJBossESBFacetDataModelProperties.ESB_PROJE= CT_VERSION, 1.0); if( d < 2.0 ) = - return super.members(); + return legacyMembers(); } - return legacyMembers(); + return super.members(); } = public IModuleResource[] legacyMembers() throws CoreException { --===============1668964746608988510==-- From jbosstools-commits at lists.jboss.org Tue Sep 22 17:03:07 2009 Content-Type: multipart/mixed; boundary="===============4522671232580313126==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17696 - in trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core: util and 1 other directories. Date: Tue, 22 Sep 2009 17:03:07 -0400 Message-ID: <200909222103.n8ML37wx032536@svn01.web.mwc.hst.phx2.redhat.com> --===============4522671232580313126== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: rob.stryker(a)jboss.com Date: 2009-09-22 17:03:06 -0400 (Tue, 22 Sep 2009) New Revision: 17696 Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/modules/JBTProjectModuleFactory.java trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/util/ResourceListVirtualFolder.java trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/vcf/FilesetVirtualComponent.java Log: Ongoing slight cleanup when testing all the pieces that should go into a ne= w project structure. Fixes include incorrect variable used in FilesetVirtua= lComponent, module factory superclass requires to state files that mandate = a re-cache, etc Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/= ide/eclipse/as/wtp/core/modules/JBTProjectModuleFactory.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/modules/JBTProjectModuleFactory.java 2009-09-22 20:14:27 = UTC (rev 17695) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/modules/JBTProjectModuleFactory.java 2009-09-22 21:03:06 = UTC (rev 17696) @@ -6,8 +6,11 @@ = import org.eclipse.core.resources.IProject; import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.NullProgressMonitor; +import org.eclipse.core.runtime.Path; import org.eclipse.wst.common.componentcore.ComponentCore; +import org.eclipse.wst.common.componentcore.internal.StructureEdit; import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; import org.eclipse.wst.common.componentcore.resources.IVirtualReference; import org.eclipse.wst.common.project.facet.core.IFacetedProject; @@ -101,6 +104,13 @@ } } = + protected IPath[] getListenerPaths() { + return new IPath[] { new Path(".project"), // nature + new Path(StructureEdit.MODULE_META_FILE_NAME), // component + new Path(".settings/org.eclipse.wst.common.project.facet.core.xml") //= facets + }; + } + = protected abstract JBTProjectModuleDelegate createDelegate(IProject proje= ct); = Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/= ide/eclipse/as/wtp/core/util/ResourceListVirtualFolder.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/util/ResourceListVirtualFolder.java 2009-09-22 20:14:27 U= TC (rev 17695) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/util/ResourceListVirtualFolder.java 2009-09-22 21:03:06 U= TC (rev 17696) @@ -16,9 +16,6 @@ import org.eclipse.wst.common.componentcore.resources.IVirtualFile; import org.eclipse.wst.common.componentcore.resources.IVirtualResource; = -// TODO THis class is fucked and incorrectly works. = -// The first instance (top) treats 'resources' as folders to search -// Others try to treat it as items that are inside. This is bad. = public class ResourceListVirtualFolder extends VirtualFolder { = private ArrayList children; @@ -35,7 +32,7 @@ IProject aComponentProject, IPath aRuntimePath, IContainer[] underlyingContainers) { this(aComponentProject, aRuntimePath); - this.underlying.addAll(Arrays.asList(underlyingContainers)); + addUnderlyingResource(underlyingContainers); } = public ResourceListVirtualFolder( @@ -43,11 +40,11 @@ IPath aRuntimePath, IContainer[] underlyingContainers, = IResource[] looseResources) { this(aComponentProject, aRuntimePath, underlyingContainers); - this.children.addAll(Arrays.asList(looseResources)); + addChildren(looseResources); } = protected void addUnderlyingResource(IResource resource) { - if( underlying instanceof IContainer ) { = + if( resource instanceof IContainer ) { = underlying.add((IContainer)resource); try { IResource[] newChildren =3D ((IContainer)resource).members(); Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/= ide/eclipse/as/wtp/core/vcf/FilesetVirtualComponent.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/FilesetVirtualComponent.java 2009-09-22 20:14:27 UTC = (rev 17695) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/vcf/FilesetVirtualComponent.java 2009-09-22 21:03:06 UTC = (rev 17696) @@ -63,6 +63,7 @@ } = public IVirtualFolder getRootFolder() { + // Creates a new instance each time to ensure it's not cached IContainer[] containers =3D getUnderlyingContainers(); IResource[] looseResources =3D getLooseResources(); ResourceListVirtualFolder folder =3D = --===============4522671232580313126==-- From jbosstools-commits at lists.jboss.org Tue Sep 22 17:03:47 2009 Content-Type: multipart/mixed; boundary="===============5600619670245896486==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17697 - trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/propertypage. Date: Tue, 22 Sep 2009 17:03:47 -0400 Message-ID: <200909222103.n8ML3l2k032612@svn01.web.mwc.hst.phx2.redhat.com> --===============5600619670245896486== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: rob.stryker(a)jboss.com Date: 2009-09-22 17:03:47 -0400 (Tue, 22 Sep 2009) New Revision: 17697 Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclip= se/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java Log: NPE when archive has no archiveName Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/id= e/eclipse/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java 2009-09= -22 21:03:06 UTC (rev 17696) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java 2009-09= -22 21:03:47 UTC (rev 17697) @@ -550,7 +550,8 @@ comp =3D refs[i].getReferencedComponent(); IPath val =3D refs[i].getRuntimePath(); if( refs[i].getDependencyType() !=3D IVirtualReference.DEPENDENCY_TYPE_= CONSUMES) - val =3D val.append(refs[i].getArchiveName()); + if( refs[i].getArchiveName() !=3D null ) + val =3D val.append(refs[i].getArchiveName()); = objectToRuntimePath.put(comp, val.toString()); oldComponentToRuntimePath.put((IVirtualComponent) comp, val.toString()); --===============5600619670245896486==-- From jbosstools-commits at lists.jboss.org Wed Sep 23 03:57:59 2009 Content-Type: multipart/mixed; boundary="===============0594049770238447502==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17698 - trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/facet. Date: Wed, 23 Sep 2009 03:57:59 -0400 Message-ID: <200909230757.n8N7vxct002978@svn01.web.mwc.hst.phx2.redhat.com> --===============0594049770238447502== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dennyxu Date: 2009-09-23 03:57:59 -0400 (Wed, 23 Sep 2009) New Revision: 17698 Modified: trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/e= sb/core/facet/JBossESBFacetInstallationDelegate.java Log: JBIDE-4807:resource mapping about java project output location doesn't upda= te once the output locatoin is changed apply the patch Modified: trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/= tools/esb/core/facet/JBossESBFacetInstallationDelegate.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/= esb/core/facet/JBossESBFacetInstallationDelegate.java 2009-09-22 21:03:47 U= TC (rev 17697) +++ trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/= esb/core/facet/JBossESBFacetInstallationDelegate.java 2009-09-23 07:57:59 U= TC (rev 17698) @@ -11,8 +11,11 @@ package org.jboss.tools.esb.core.facet; = import java.io.ByteArrayInputStream; -import java.lang.reflect.Method; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; = +import org.eclipse.core.commands.ExecutionException; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IFolder; import org.eclipse.core.resources.IProject; @@ -22,6 +25,7 @@ import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.NullProgressMonitor; import org.eclipse.core.runtime.Path; import org.eclipse.core.runtime.Status; import org.eclipse.core.runtime.preferences.IEclipsePreferences; @@ -29,16 +33,22 @@ import org.eclipse.jdt.core.IClasspathEntry; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jdt.core.JavaCore; -import org.eclipse.jst.common.frameworks.CommonFrameworksPlugin; import org.eclipse.jst.common.project.facet.WtpUtils; import org.eclipse.jst.common.project.facet.core.ClasspathHelper; import org.eclipse.wst.common.componentcore.ComponentCore; +import org.eclipse.wst.common.componentcore.datamodel.properties.ICreateRe= ferenceComponentsDataModelProperties; +import org.eclipse.wst.common.componentcore.internal.operation.CreateRefer= enceComponentsDataModelProvider; +import org.eclipse.wst.common.componentcore.internal.util.IComponentImplFa= ctory; import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; import org.eclipse.wst.common.componentcore.resources.IVirtualFolder; +import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory; import org.eclipse.wst.common.frameworks.datamodel.IDataModel; +import org.eclipse.wst.common.frameworks.datamodel.IDataModelProvider; import org.eclipse.wst.common.project.facet.core.IDelegate; import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion; +import org.jboss.ide.eclipse.as.wtp.core.vcf.OutputFoldersVirtualComponent; import org.jboss.tools.esb.core.ESBProjectCorePlugin; +import org.jboss.tools.esb.core.component.ESBVirtualComponent; import org.osgi.service.prefs.BackingStoreException; = public class JBossESBFacetInstallationDelegate implements IDelegate { @@ -58,38 +68,32 @@ // Add WTP natures. WtpUtils.addNatures(project); = - // Setup the flexible project structure. - IVirtualComponent c =3D null; - try { - Method createMethod =3D ComponentCore.class.getMethod("createComponent"= , IProject.class, boolean.class); - c =3D (IVirtualComponent)createMethod.invoke(null, project, false); - } catch (Exception e) { - c =3D ComponentCore.createComponent(project); - } + // Setup the flexible project structure + = + /* = + * This is necessary because at time, the project has NO facets + * So a call to createComponent(etc) returns a default implementation. + * Today, this WTP default implementation does not handle = + * new reference types in an acceptable fashion = + * (Does not use extension point). = + */ + IComponentImplFactory factory =3D new ESBVirtualComponent(); + IVirtualComponent newComponent =3D factory.createComponent(project); = String outputLoc =3D jproj.readOutputLocation().removeFirstSegments(1).t= oString(); - c.create(0, null); - c.setMetaProperty("java-output-path", outputLoc); + newComponent.create(0, null); + newComponent.setMetaProperty("java-output-path", outputLoc); + = + final IVirtualFolder jbiRoot =3D newComponent.getRootFolder(); = - final IVirtualFolder jbiRoot =3D c.getRootFolder(); - // Map the esbcontent to root for deploy String resourcesFolder =3D model.getStringProperty( IJBossESBFacetDataModelProperties.ESB_CONTENT_FOLDER); jbiRoot.createLink(new Path("/" + resourcesFolder), 0, null); - = - = - final IVirtualFolder jsrc =3D c.getRootFolder().getFolder("/"); //$NON-N= LS-1$ - final IClasspathEntry[] cp2 =3D jproj.getRawClasspath(); - for (int i =3D 0; i < cp2.length; i++) { - final IClasspathEntry cpe =3D cp2[i]; - if (cpe.getEntryKind() =3D=3D IClasspathEntry.CPE_SOURCE) { - if( cpe.getPath().removeFirstSegments(1).segmentCount() > 0 ) - jsrc.createLink(new Path(outputLoc), 0, null); - } - } - = + = //addESBNature(project); + IVirtualComponent outputFoldersComponent =3D new OutputFoldersVirtualCom= ponent(project, newComponent); + addReference(outputFoldersComponent, newComponent, "/", null); = = JBossClassPathCommand command =3D new JBossClassPathCommand(project, @@ -103,6 +107,32 @@ ClasspathHelper.addClasspathEntries(project, fv); } = + private void addReference(IVirtualComponent component, IVirtualComponent = rootComponent, String path, String archiveName) { + IDataModelProvider provider =3D new CreateReferenceComponentsDataModelPr= ovider(); + IDataModel dm =3D DataModelFactory.createDataModel(provider); + = + dm.setProperty(ICreateReferenceComponentsDataModelProperties.SOURCE_COMP= ONENT, rootComponent); + dm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMP= ONENT_LIST, Arrays.asList(component)); + = + //[Bug 238264] the uri map needs to be manually set correctly + Map uriMap =3D new HashMap(); + uriMap.put(component, archiveName); + dm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMP= ONENTS_TO_URI_MAP, uriMap); + dm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGE= T_COMPONENTS_DEPLOY_PATH, path); + + IStatus stat =3D dm.validateProperty(ICreateReferenceComponentsDataModel= Properties.TARGET_COMPONENT_LIST); + Throwable t =3D stat.getException(); + if (stat =3D=3D null || stat.isOK()) { + try { + dm.getDefaultOperation().execute(new NullProgressMonitor(), null); + return; + } catch (ExecutionException e) { + t =3D e; + } = + } + // TODO Log exception e + } + = private IFile createJBossESBXML(IFolder folder) throws CoreException{ StringBuffer emptyESB =3D new StringBuffer(); String configVersion =3D model.getStringProperty(IJBossESBFacetDataModel= Properties.ESB_CONFIG_VERSION); @@ -142,6 +172,8 @@ esbContent.getFolder("META-INF").create(true, true, null); createJBossESBXML(esbContent.getFolder("META-INF")); = + = + = project.refreshLocal(IResource.DEPTH_ZERO, null); } = --===============0594049770238447502==-- From jbosstools-commits at lists.jboss.org Wed Sep 23 06:39:43 2009 Content-Type: multipart/mixed; boundary="===============4414841823243794338==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17699 - in trunk/jst/plugins: org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common and 1 other directory. Date: Wed, 23 Sep 2009 06:39:43 -0400 Message-ID: <200909231039.n8NAdhY6002550@svn01.web.mwc.hst.phx2.redhat.com> --===============4414841823243794338== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: sdzmitrovich Date: 2009-09-23 06:39:42 -0400 (Wed, 23 Sep 2009) New Revision: 17699 Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/CSSStyleListener.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/CSSStyleRuleContainer.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/StyleContainer.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/ou= tline/cssdialog/common/CSSModel.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/ou= tline/cssdialog/common/Constants.java Log: https://jira.jboss.org/jira/browse/JBIDE-4677 Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/common/CSSStyleListener.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleListener.java 2009-09-23 07:57:59 UTC (rev 17698) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleListener.java 2009-09-23 10:39:42 UTC (rev 17699) @@ -98,7 +98,7 @@ = ISelection selectionToLiteners =3D null; = - if (newStyle !=3D null) { + if (newStyle !=3D null && newStyle.isValid()) { selectionToLiteners =3D new StructuredSelection(newStyle); } else { selectionToLiteners =3D StructuredSelection.EMPTY; Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/common/CSSStyleRuleContainer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleRuleContainer.java 2009-09-23 07:57:59 UTC (rev 17698) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleRuleContainer.java 2009-09-23 10:39:42 UTC (rev 17699) @@ -100,4 +100,11 @@ = } = + @Override + public boolean isValid() { + final String text =3D styleRule.getCssText(); + if ((text !=3D null) && (!text.endsWith(Constants.RIGHT_BRACE))) + return false; + return true; + } } Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/common/StyleContainer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/StyleContainer.java 2009-09-23 07:57:59 UTC (rev 17698) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/StyleContainer.java 2009-09-23 10:39:42 UTC (rev 17699) @@ -50,4 +50,8 @@ = public abstract void removeNodelListener(INodeAdapter adapter); = + public boolean isValid() { + return true; + } + } Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/outline/cssdialog/common/CSSModel.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/o= utline/cssdialog/common/CSSModel.java 2009-09-23 07:57:59 UTC (rev 17698) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/o= utline/cssdialog/common/CSSModel.java 2009-09-23 10:39:42 UTC (rev 17699) @@ -52,9 +52,6 @@ */ public class CSSModel implements ICSSDialogModel { = - private static String startBraces =3D "{"; //$NON-NLS-1$ - private static String endBraces =3D "}"; //$NON-NLS-1$ - private IStructuredModel model =3D null; private IFile styleFile =3D null; = @@ -131,7 +128,7 @@ if ((styleSheet !=3D null) && (selector !=3D null) && !selector.equals(Constants.EMPTY)) { CSSStyleRule rule =3D (CSSStyleRule) ((ICSSDocument) styleSheet) - .createCSSRule(selector + startBraces + endBraces); + .createCSSRule(selector + Constants.LEFT_BRACE + Constants.RIGHT_BRAC= E); ((ICSSStyleSheet) styleSheet).appendRule(rule); = for (Map.Entry ruleEntry : getRulesMapping() @@ -312,8 +309,8 @@ if ((rules !=3D null) && (rules.getLength() > 0)) { final CSSRule rule =3D rules.item(rules.getLength() - 1); final String text =3D rule.getCssText(); - if ((text !=3D null) && (!text.endsWith(endBraces))) { - rule.setCssText(text + "\n" + endBraces); //$NON-NLS-1$ + if ((text !=3D null) && (!text.endsWith(Constants.RIGHT_BRACE))) { + rule.setCssText(text + "\n" + Constants.RIGHT_BRACE); //$NON-NLS-1$ } } } Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/outline/cssdialog/common/Constants.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/o= utline/cssdialog/common/Constants.java 2009-09-23 07:57:59 UTC (rev 17698) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/o= utline/cssdialog/common/Constants.java 2009-09-23 10:39:42 UTC (rev 17699) @@ -7,7 +7,7 @@ * * Contributors: * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = + *************************************************************************= *****/ package org.jboss.tools.jst.jsp.outline.cssdialog.common; = import java.util.Arrays; @@ -26,57 +26,65 @@ */ public class Constants { = - public static final String extSizes[] =3D new String[] { "", "em", "ex= ", //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - "px", "in", "cm", "mm", "pt", "pc" }; //$NON-NLS-1$ //$NON-NLS-2$ //$= NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ + public static final String extSizes[] =3D new String[] { "", "em", "ex", = //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + "px", "in", "cm", "mm", "pt", "pc" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NO= N-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ = - public static final Set elemFolder =3D Collections.unmodifiableSet(new= HashSet(Arrays.asList(new String[] { - "background-image", "list-style-image", "cursor", "cue-after", //$NON= -NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ - "cue-before" }))); //$NON-NLS-1$ + public static final Set elemFolder =3D Collections + .unmodifiableSet(new HashSet( + Arrays + .asList(new String[] { + "background-image", "list-style-image", "cursor", "cue-after", //= $NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ + "cue-before" }))); //$NON-NLS-1$ = - public static final Set extElem =3D Collections.unmodifiableSet(new Ha= shSet(Arrays.asList(new String[] { - "border-bottom-width", "border-left-width", "borer-right-width", //$N= ON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - "border-top-width", "border-width", "bottom", "font-size", //$NON-NLS= -1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ - "height", "left", "letter-spacing", "line-height", "margin", //$NON-N= LS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ - "margin-bottom", "margin-left", "margin-right", "margin-top", //$NON-= NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ - "margin-offset", "margin-bottom", "max-height", "max-width", //$NON-N= LS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ - "min-height", "min-width", "outline-width", "padding", //$NON-NLS-1$ = //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ - "padding-bottom", "padding-left", "padding-right", "padding-top", //$= NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ - "right", "size", "text-indent", "top", "vertical-align", "width", //$= NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-N= LS-6$ - "word-spacing" }))); //$NON-NLS-1$ + public static final Set extElem =3D Collections + .unmodifiableSet(new HashSet( + Arrays + .asList(new String[] { + "border-bottom-width", "border-left-width", "borer-right-width", = //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + "border-top-width", "border-width", "bottom", "font-size", //$NON= -NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ + "height", "left", "letter-spacing", "line-height", "margin", //$N= ON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ + "margin-bottom", "margin-left", "margin-right", "margin-top", //$= NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ + "margin-offset", "margin-bottom", "max-height", "max-width", //$N= ON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ + "min-height", "min-width", "outline-width", "padding", //$NON-NLS= -1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ + "padding-bottom", "padding-left", "padding-right", "padding-top",= //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ + "right", "size", "text-indent", "top", "vertical-align", "width",= //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$N= ON-NLS-6$ + "word-spacing" }))); //$NON-NLS-1$ = - public static final String NONE =3D "none"; //$NON-NLS-1$ + public static final String NONE =3D "none"; //$NON-NLS-1$ = - public static final String IMAGE_COLOR_FILE_LOCATION =3D "images/cssdi= alog/color.gif"; //$NON-NLS-1$ - public static final String IMAGE_FOLDER_FILE_LOCATION =3D "images/cssd= ialog/folder.gif"; //$NON-NLS-1$ - public static final String IMAGE_FONT_FILE_LOCATION =3D "images/cssdia= log/font.gif"; //$NON-NLS-1$ - public static final String IMAGE_COLORLARGE_FILE_LOCATION =3D "images/= cssdialog/color_large.gif"; //$NON-NLS-1$ - public static final String IMAGE_FOLDERLARGE_FILE_LOCATION =3D "images= /cssdialog/folder_large.gif"; //$NON-NLS-1$ - public static final String IMAGE_FONTLARGE_FILE_LOCATION =3D "images/c= ssdialog/font_large.gif"; //$NON-NLS-1$ - public static final String IMAGE_LEFT_FILE_LOCATION =3D "images/cssdia= log/left.gif"; //$NON-NLS-1$ - public static final String IMAGE_RIGHT_FILE_LOCATION =3D "images/cssdi= alog/right.gif"; //$NON-NLS-1$ - public static final String IMAGE_SAMPLE_FILE_LOCATION =3D "images/cssd= ialog/sample.gif"; //$NON-NLS-1$ - = - public static final int FIRST_COLUMN =3D 0; - public static final int SECOND_COLUMN =3D 1; + public static final String IMAGE_COLOR_FILE_LOCATION =3D "images/cssdialo= g/color.gif"; //$NON-NLS-1$ + public static final String IMAGE_FOLDER_FILE_LOCATION =3D "images/cssdial= og/folder.gif"; //$NON-NLS-1$ + public static final String IMAGE_FONT_FILE_LOCATION =3D "images/cssdialog= /font.gif"; //$NON-NLS-1$ + public static final String IMAGE_COLORLARGE_FILE_LOCATION =3D "images/css= dialog/color_large.gif"; //$NON-NLS-1$ + public static final String IMAGE_FOLDERLARGE_FILE_LOCATION =3D "images/cs= sdialog/folder_large.gif"; //$NON-NLS-1$ + public static final String IMAGE_FONTLARGE_FILE_LOCATION =3D "images/cssd= ialog/font_large.gif"; //$NON-NLS-1$ + public static final String IMAGE_LEFT_FILE_LOCATION =3D "images/cssdialog= /left.gif"; //$NON-NLS-1$ + public static final String IMAGE_RIGHT_FILE_LOCATION =3D "images/cssdialo= g/right.gif"; //$NON-NLS-1$ + public static final String IMAGE_SAMPLE_FILE_LOCATION =3D "images/cssdial= og/sample.gif"; //$NON-NLS-1$ = - public static final String EMPTY =3D ""; //$NON-NLS-1$ + public static final int FIRST_COLUMN =3D 0; + public static final int SECOND_COLUMN =3D 1; + + public static final String EMPTY =3D ""; //$NON-NLS-1$ public static final String WHITE_SPACE =3D " "; //$NON-NLS-1$ - public static String COLON =3D ":"; //$NON-NLS-1$ - public static String SEMICOLON =3D ";"; //$NON-NLS-1$ - public static String COMMA =3D ","; //$NON-NLS-1$ - public static String DASH =3D "-"; //$NON-NLS-1$ - public static String SLASH =3D "/"; //$NON-NLS-1$ + public static String COLON =3D ":"; //$NON-NLS-1$ + public static String SEMICOLON =3D ";"; //$NON-NLS-1$ + public static String COMMA =3D ","; //$NON-NLS-1$ + public static String DASH =3D "-"; //$NON-NLS-1$ + public static String SLASH =3D "/"; //$NON-NLS-1$ public static final String START_BRACKET =3D "("; //$NON-NLS-1$ public static final String END_BRACKET =3D ")"; //$NON-NLS-1$ = + public static final String LEFT_BRACE =3D "{"; //$NON-NLS-1$ + public static final String RIGHT_BRACE =3D "}"; //$NON-NLS-1$ = - public static final RGB RGB_BLACK =3D new RGB(0,0,0); - public static final RGB RGB_WHITE =3D new RGB(0xFF, 0xFF, 0xFF); + public static final RGB RGB_BLACK =3D new RGB(0, 0, 0); + public static final RGB RGB_WHITE =3D new RGB(0xFF, 0xFF, 0xFF); = - public static final int DONT_CONTAIN =3D -1; - = - public static String OPEN_SPAN_TAG =3D ""; //$NON-NLS-1$ - public static String OPEN_DIV_TAG =3D "
"; //$NON-NLS-1$ + public static final int DONT_CONTAIN =3D -1; + + public static String OPEN_SPAN_TAG =3D ""; //$NON-NLS-1$ + public static String OPEN_DIV_TAG =3D "
"; //$NON-NLS-1$ } \ No newline at end of file --===============4414841823243794338==-- From jbosstools-commits at lists.jboss.org Wed Sep 23 07:22:25 2009 Content-Type: multipart/mixed; boundary="===============3367937601229192566==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17700 - in trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model: util and 1 other directory. Date: Wed, 23 Sep 2009 07:22:25 -0400 Message-ID: <200909231122.n8NBMPCF010788@svn01.web.mwc.hst.phx2.redhat.com> --===============3367937601229192566== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-23 07:22:25 -0400 (Wed, 23 Sep 2009) New Revision: 17700 Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/filesystems/impl/FolderImpl.java trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/util/EclipseResourceUtil.java Log: https://jira.jboss.org/jira/browse/JBIDE-4912 Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/t= ools/common/model/filesystems/impl/FolderImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/filesystems/impl/FolderImpl.java 2009-09-23 10:39:42 UTC (rev 1= 7699) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/filesystems/impl/FolderImpl.java 2009-09-23 11:22:25 UTC (rev 1= 7700) @@ -62,8 +62,9 @@ protected boolean loaded =3D false; protected IContainer resource =3D null; protected String pathForResource =3D null; - protected Map linked =3D new HashMap(); - protected Map linkedResources =3D new HashMap(); + LinkedResources linked =3D new LinkedResources(); +// protected Map linked =3D new HashMap(); +// protected Map linkedResources =3D new HashMap(); = public FolderImpl() {} = @@ -111,8 +112,8 @@ protected String getAbsolutePath() { FolderImpl parent =3D (FolderImpl)getParent(); String p =3D (parent =3D=3D null) ? null : parent.getAbsolutePath(= ); - if(parent.linked.containsKey(getPathPart())) { - return parent.linked.get(getPathPart()).getAbsolutePath(); + if(parent.linked.containsFile(getPathPart())) { + return parent.linked.getFileByFileName(getPathPart()).getAbsolute= Path(); } return (p =3D=3D null) ? null : p + XModelObjectConstants.SEPARATO= R + name(); } @@ -157,10 +158,12 @@ for (int i =3D 0; i < rs.length; i++) { if(!rs[i].isAccessible()) continue; if(!rs[i].isLinked()) continue; + if(rs[i].getLocation() =3D=3D null) { +// System.out.println("no location at link " + rs[i]); + continue; + } File f =3D rs[i].getLocation().toFile(); - String pp =3D FilePathHelper.toPathPath(f.getName()); - linked.put(pp, f); - linkedResources.put(pp, rs[i]); + linked.registerResource(rs[i]); _loadChild(peer, f); } = @@ -187,8 +190,8 @@ p.setProperty(XModelObjectConstants.ATTR_NAME, f.getName()); XModelObject c =3D getModel().createModelObject("FileFolder", = p); //$NON-NLS-1$ String pp =3D FilePathHelper.toPathPath(f.getName()); - if(linked.containsKey(pp)) { - c.setObject("file", linked.get(pp)); //$NON-NLS-1$ + if(linked.containsFile(pp)) { + c.setObject("file", linked.getFileByFileName(pp)); //$NON-NLS= -1$ } addChild(c); } else { @@ -246,7 +249,7 @@ c.set(XModelObjectConstants.ATTR_NAME__FILE, f.getAbsolute= Path()); } } - if(linked.containsValue(f)) { + if(linked.filesByFileName.containsValue(f)) { c.setObject("file", f); //$NON-NLS-1$ } addChild(c); @@ -259,7 +262,7 @@ if(updateLock > 0) return true; updateLock++; Map mf =3D new HashMap(); - linked.clear(); + linked.clearFiles(); XModelObject fileSystem =3D getFileSystem(); if(fileSystem =3D=3D null) return false; FileSystemsImpl fsi =3D (FileSystemsImpl)fileSystem.getParent(); @@ -302,8 +305,7 @@ File f =3D rs[i].getLocation().toFile(); String p =3D FilePathHelper.toPathPath(f.getName()); mf.put(p, f); - linked.put(p, f); - linkedResources.put(p, rs[i]); + linked.registerResource(rs[i]); } } = } @@ -371,8 +373,8 @@ protected File getChildIOFile(XModelObject o) { String s =3D FileAnyImpl.toFileName(o); File f =3D (File)o.getObject("file"); //for links //$NON-NLS-1$ - if(f =3D=3D null && linked.containsKey(o.getPathPart())) { - f =3D linked.get(o.getPathPart()); + if(f =3D=3D null && linked.containsFile(o.getPathPart())) { + f =3D linked.getFileByFileName(o.getPathPart()); } if(f =3D=3D null) { f =3D new File(getFile(), s); @@ -383,8 +385,8 @@ protected File getChildIOFile(String filename) { File f =3D null; String p =3D FilePathHelper.toPathPath(filename); - if(linked.containsKey(p)) { - f =3D linked.get(p); + if(linked.containsFile(p)) { + f =3D linked.getFileByFileName(p); } if(f =3D=3D null) { f =3D new File(getFile(), filename); @@ -615,8 +617,8 @@ p.setProperty(XModelObjectConstants.ATTR_NAME, f.getName()); c =3D getModel().createModelObject("FileFolder", p); //$NON-NL= S-1$ String pp =3D FilePathHelper.toPathPath(f.getName()); - if(linked.containsKey(pp)) { - c.setObject("file", linked.get(pp)); //$NON-NLS-1$ + if(linked.containsFile(pp)) { + c.setObject("file", linked.getFileByFileName(pp)); //$NON-NLS= -1$ } } else { Properties ep =3D getEntityProperties(f); @@ -724,7 +726,7 @@ if (q || loaded) return q; if(getParent() instanceof FolderImpl) { FolderImpl p =3D (FolderImpl)getParent(); - if(p.linked.containsKey(getPathPart())) return true; + if(p.linked.containsFile(getPathPart())) return true; } File[] fs =3D getFiles(); q =3D (fs !=3D null && fs.length > 0); @@ -764,7 +766,7 @@ if(cs[i] instanceof FolderLoader) { b &=3D ((FolderLoader)cs[i]).save(); } else { - File d =3D linked.get(cs[i].getPathPart()); + File d =3D linked.getFileByFileName(cs[i].getPathPart()); if(d =3D=3D null) { d =3D new File(f, FileAnyImpl.toFileName(cs[i])); } @@ -809,7 +811,7 @@ updateLock++; boolean b =3D false; try { - File d =3D linked.get(c.getPathPart()); + File d =3D linked.getFileByFileName(c.getPathPart()); if(d =3D=3D null) { d =3D new File(folder, FileAnyImpl.toFileName(c)); } @@ -923,6 +925,10 @@ } = public XModelObject getChildByPathPart(String pathpart) { + if(linked.filesByLinkName.containsKey(pathpart)) { + File f =3D linked.getFileByResourceName(pathpart); + pathpart =3D f.getName(); + } pathpart =3D FilePathHelper.toPathPath(pathpart); return super.getChildByPathPart(pathpart); } @@ -972,8 +978,8 @@ } = public IContainer getChildContainer(String name) { - if(linked.containsKey(name)) { - IResource r =3D linkedResources.get(name); + if(linked.containsFile(name)) { + IResource r =3D linked.getResourceByFileName(name); return r instanceof IContainer ? (IContainer)r : null; } IContainer c =3D getResource(); @@ -981,8 +987,8 @@ } = public IFile getChildFile(String name) { - if(linked.containsKey(name)) { - IResource r =3D linkedResources.get(name); + if(linked.containsFile(name)) { + IResource r =3D linked.getResourceByFileName(name); return r instanceof IFile ? (IFile)r : null; } IContainer c =3D getResource(); @@ -1061,6 +1067,48 @@ = } = +class LinkedResources { + protected Map filesByLinkName =3D new HashMap= (); + protected Map filesByFileName =3D new HashMap= (); + protected Map resourcesByLinkName =3D new HashMap(); + protected Map resourcesByFileName =3D new HashMap(); + + public boolean containsFile(String name) { + if(filesByFileName.containsKey(name)) return true; + return false; + } + + public File getFileByResourceName(String name) { + return filesByLinkName.get(name); + } + + public File getFileByFileName(String name) { + return filesByFileName.get(name); + } + + public IResource getResourceByResourceName(String name) { + return resourcesByLinkName.get(name); + } + + public IResource getResourceByFileName(String name) { + return resourcesByFileName.get(name); + } + + public void registerResource(IResource r) { + File f =3D r.getLocation().toFile(); + String pp =3D FilePathHelper.toPathPath(f.getName()); + filesByFileName.put(pp, f); + filesByLinkName.put(r.getName(), f); + resourcesByFileName.put(pp, r); + resourcesByLinkName.put(r.getName(), r); + } + + public void clearFiles() { + filesByFileName.clear(); + filesByLinkName.clear(); + } +} + class EclipseFileBodySource implements BodySource { IFile ef =3D null; File f; Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/t= ools/common/model/util/EclipseResourceUtil.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/util/EclipseResourceUtil.java 2009-09-23 10:39:42 UTC (rev 1769= 9) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/util/EclipseResourceUtil.java 2009-09-23 11:22:25 UTC (rev 1770= 0) @@ -374,6 +374,14 @@ } if(cs !=3D null) for (int i =3D 0; i < cs.length; i++) { if(!cs[i].isLinked()) continue; + if(!cs[i].isAccessible()) continue; + if(cs[i].getLocation() =3D=3D null) { +// System.out.println("no location at link " + cs[i]); + continue; + } + if(cs[i].getLocation().toFile() =3D=3D null || !cs[i].getLocation= ().toFile().isDirectory()) { + continue; + } properties =3D new Properties(); fsLoc =3D cs[i].getLocation().toString(); properties.setProperty(XModelObjectConstants.ATTR_NAME_LOCATION, fsLoc); @@ -418,9 +426,9 @@ } IResource sr =3D s.getResource(); if(sr =3D=3D null) return null; - if(!sr.getLocation().isPrefixOf(resource.getLocation())) return null; - String path =3D resource.getLocation().toString(); - String rootpath =3D sr.getLocation().toString(); + if(!sr.getFullPath().isPrefixOf(resource.getFullPath())) return null; + String path =3D resource.getFullPath().toString(); + String rootpath =3D sr.getFullPath().toString(); String relpath =3D path.substring(rootpath.length()).replace('\\', '/'); if(relpath.length() =3D=3D 0) return s; = @@ -434,7 +442,7 @@ while(p !=3D null && !XModelObjectConstants.TRUE.equals(p.get("overlappe= d"))) p =3D p.getParent(); //$NON-NLS-1$ if(p =3D=3D null) { IResource r =3D (IResource)o.getAdapter(IResource.class); - if(r =3D=3D null || !resource.getLocation().equals(r.getLocation())) { + if(r =3D=3D null || !resource.getFullPath().equals(r.getFullPath())) { //failure, more detailed file system is needed. return null; } --===============3367937601229192566==-- From jbosstools-commits at lists.jboss.org Wed Sep 23 08:58:08 2009 Content-Type: multipart/mixed; boundary="===============3630198926635987761==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17701 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions. Date: Wed, 23 Sep 2009 08:58:08 -0400 Message-ID: <200909231258.n8NCw8Rj025498@svn01.web.mwc.hst.phx2.redhat.com> --===============3630198926635987761== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vyemialyanchyk Date: 2009-09-23 08:58:07 -0400 (Wed, 23 Sep 2009) New Revision: 17701 Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hiber= nate/eclipse/console/actions/OpenMappingAction.java Log: https://jira.jboss.org/jira/browse/JBIDE-4891 - fixed -> activate the prope= r page Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/or= g/hibernate/eclipse/console/actions/OpenMappingAction.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibe= rnate/eclipse/console/actions/OpenMappingAction.java 2009-09-23 11:22:25 UT= C (rev 17700) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibe= rnate/eclipse/console/actions/OpenMappingAction.java 2009-09-23 12:58:07 UT= C (rev 17701) @@ -1,5 +1,5 @@ /*************************************************************************= ****** - * Copyright (c) 2007 Red Hat, Inc. + * Copyright (c) 2007-2009 Red Hat, Inc. * Distributed under license by Red Hat, Inc. All rights reserved. * This program is made available under the terms of the * Eclipse Public License v1.0 which accompanies this distribution, @@ -27,6 +27,7 @@ import org.eclipse.ui.IEditorPart; import org.eclipse.ui.PartInitException; import org.eclipse.ui.actions.SelectionListenerAction; +import org.eclipse.ui.part.MultiPageEditorPart; import org.eclipse.ui.texteditor.ITextEditor; import org.hibernate.console.ConsoleConfiguration; import org.hibernate.eclipse.console.HibernateConsoleMessages; @@ -220,6 +221,9 @@ IJavaProject proj =3D ProjectUtils.findJavaProject(editorPart); IRegion selectRegion =3D OpenMappingUtils.findSelectRegion(proj, findAda= pter, selection); if (selectRegion !=3D null) { + if (editorPart instanceof MultiPageEditorPart) { + ((MultiPageEditorPart)editorPart).setActiveEditor(textEditor); + } textEditor.selectAndReveal(selectRegion.getOffset(), selectRegion.getLe= ngth()); return true; } @@ -277,6 +281,9 @@ int length =3D compositeProperty.getNodeName().length(); int offset =3D propRegion.getOffset() + propRegion.getLength() - length = - 1; propRegion =3D new Region(offset, length); + if (editorPart instanceof MultiPageEditorPart) { + ((MultiPageEditorPart)editorPart).setActiveEditor(textEditor); + } textEditor.selectAndReveal(propRegion.getOffset(), propRegion.getLength(= )); return true; } --===============3630198926635987761==-- From jbosstools-commits at lists.jboss.org Wed Sep 23 11:06:28 2009 Content-Type: multipart/mixed; boundary="===============3197259210514323777==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17702 - in trunk: jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/preferences and 1 other directories. Date: Wed, 23 Sep 2009 11:06:27 -0400 Message-ID: <200909231506.n8NF6R4K016926@svn01.web.mwc.hst.phx2.redhat.com> --===============3197259210514323777== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dmaliarevich Date: 2009-09-23 11:06:27 -0400 (Wed, 23 Sep 2009) New Revision: 17702 Added: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/pr= eferences/VpePreferencesInitializer.java Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/pr= eferences/IVpePreferencesPage.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xpl= /CustomSashForm.java Log: https://jira.jboss.org/jira/browse/JBIDE-4935, default values for VPE Prefe= rence Page are initialized now. Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml 2009-09-23 12:58:0= 7 UTC (rev 17701) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml 2009-09-23 15:06:2= 7 UTC (rev 17702) @@ -550,5 +550,10 @@ = + + + + = = Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/preferences/IVpePreferencesPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/p= references/IVpePreferencesPage.java 2009-09-23 12:58:07 UTC (rev 17701) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/p= references/IVpePreferencesPage.java 2009-09-23 15:06:27 UTC (rev 17702) @@ -31,4 +31,5 @@ static final String SPLITTING_HORIZ_LEFT_SOURCE_VALUE =3D "3"; //$NON-NLS= -1$ static final String SPLITTING_HORIZ_LEFT_VISUAL_VALUE =3D "4"; //$NON-NLS= -1$ = + static final int DEFAULT_VISUAL_SOURCE_EDITORS_WEIGHTS =3D 500; } Added: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/js= p/preferences/VpePreferencesInitializer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/p= references/VpePreferencesInitializer.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/p= references/VpePreferencesInitializer.java 2009-09-23 15:06:27 UTC (rev 1770= 2) @@ -0,0 +1,37 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jst.jsp.preferences; + +import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer; +import org.eclipse.core.runtime.preferences.DefaultScope; +import org.eclipse.core.runtime.preferences.IEclipsePreferences; +import org.eclipse.core.runtime.preferences.IScopeContext; +import org.jboss.tools.jst.jsp.JspEditorPlugin; + +public class VpePreferencesInitializer extends AbstractPreferenceInitializ= er { + + @Override + public void initializeDefaultPreferences() { + IEclipsePreferences defaultPreferences =3D ((IScopeContext) new DefaultS= cope()).getNode(JspEditorPlugin.PLUGIN_ID); + = + defaultPreferences.putBoolean(IVpePreferencesPage.SHOW_BORDER_FOR_UNKNOW= N_TAGS, false); + defaultPreferences.putBoolean(IVpePreferencesPage.SHOW_NON_VISUAL_TAGS, = false); + defaultPreferences.putBoolean(IVpePreferencesPage.SHOW_SELECTION_TAG_BAR= , false); + defaultPreferences.putBoolean(IVpePreferencesPage.SHOW_RESOURCE_BUNDLES_= USAGE_AS_EL, false); + defaultPreferences.putBoolean(IVpePreferencesPage.ASK_TAG_ATTRIBUTES_ON_= TAG_INSERT, true); + defaultPreferences.putBoolean(IVpePreferencesPage.ASK_CONFIRMATION_ON_CL= OSING_SELECTION_BAR, true); + defaultPreferences.put(IVpePreferencesPage.DEFAULT_VPE_TAB, IVpePreferen= cesPage.DEFAULT_VPE_TAB_VISUAL_SOURCE_VALUE); + defaultPreferences.put(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTI= NG, IVpePreferencesPage.SPLITTING_VERT_TOP_SOURCE_VALUE); + defaultPreferences.putInt(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_WEIG= HTS, IVpePreferencesPage.DEFAULT_VISUAL_SOURCE_EDITORS_WEIGHTS); + = + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jbos= s/tools/jst/jsp/preferences/VpePreferencesInitializer.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:keywords + Author Id Revision Date Name: svn:eol-style + native Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/xpl/CustomSashForm.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xp= l/CustomSashForm.java 2009-09-23 12:58:07 UTC (rev 17701) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xp= l/CustomSashForm.java 2009-09-23 15:06:27 UTC (rev 17702) @@ -1176,7 +1176,7 @@ public static boolean isSourceEditorFirst() { boolean sourceEditorFirst =3D false; String splitting =3D JspEditorPlugin.getDefault().getPreferenceStore() - .getString(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING); + .getString(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING); if (IVpePreferencesPage.SPLITTING_HORIZ_LEFT_SOURCE_VALUE .equalsIgnoreCase(splitting) || IVpePreferencesPage.SPLITTING_VERT_TOP_SOURCE_VALUE --===============3197259210514323777==-- From jbosstools-commits at lists.jboss.org Wed Sep 23 11:50:47 2009 Content-Type: multipart/mixed; boundary="===============6993015582008703069==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17703 - trunk/hibernatetools/docs/reference/en/images/plugins. Date: Wed, 23 Sep 2009 11:50:47 -0400 Message-ID: <200909231550.n8NFolVX026104@svn01.web.mwc.hst.phx2.redhat.com> --===============6993015582008703069== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: ochikvina Date: 2009-09-23 11:50:47 -0400 (Wed, 23 Sep 2009) New Revision: 17703 Removed: trunk/hibernatetools/docs/reference/en/images/plugins/plugins_0_b.png Log: https://jira.jboss.org/jira/browse/JBDS-861 - deleting unnecessary image; Deleted: trunk/hibernatetools/docs/reference/en/images/plugins/plugins_0_b.= png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============6993015582008703069==-- From jbosstools-commits at lists.jboss.org Wed Sep 23 11:51:16 2009 Content-Type: multipart/mixed; boundary="===============5025301968730010609==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17704 - trunk/hibernatetools/docs/reference/en/images/plugins. Date: Wed, 23 Sep 2009 11:51:16 -0400 Message-ID: <200909231551.n8NFpGHR026202@svn01.web.mwc.hst.phx2.redhat.com> --===============5025301968730010609== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: ochikvina Date: 2009-09-23 11:51:15 -0400 (Wed, 23 Sep 2009) New Revision: 17704 Modified: trunk/hibernatetools/docs/reference/en/images/plugins/plugins_0.png trunk/hibernatetools/docs/reference/en/images/plugins/plugins_0_a.png Log: https://jira.jboss.org/jira/browse/JBDS-861 - adding new images; Modified: trunk/hibernatetools/docs/reference/en/images/plugins/plugins_0.p= ng =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/hibernatetools/docs/reference/en/images/plugins/plugins_0_a= .png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============5025301968730010609==-- From jbosstools-commits at lists.jboss.org Wed Sep 23 11:53:25 2009 Content-Type: multipart/mixed; boundary="===============1895775919205703581==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17705 - trunk/hibernatetools/docs/reference/en/modules. Date: Wed, 23 Sep 2009 11:53:25 -0400 Message-ID: <200909231553.n8NFrPe5026528@svn01.web.mwc.hst.phx2.redhat.com> --===============1895775919205703581== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: ochikvina Date: 2009-09-23 11:53:25 -0400 (Wed, 23 Sep 2009) New Revision: 17705 Modified: trunk/hibernatetools/docs/reference/en/modules/plugins.xml Log: https://jira.jboss.org/jira/browse/JBDS-861 - updating the 'Creating a Hibe= rnate Mapping File' section; Modified: trunk/hibernatetools/docs/reference/en/modules/plugins.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/docs/reference/en/modules/plugins.xml 2009-09-23 1= 5:51:15 UTC (rev 17704) +++ trunk/hibernatetools/docs/reference/en/modules/plugins.xml 2009-09-23 1= 5:53:25 UTC (rev 17705) @@ -33,11 +33,11 @@ Hibernate mapping files are used to specify how your objects are= related to database tables. = - For creating a skeleton mapping file, i. e. any + To create basic mappings for properties and associations, i. e. g= enerate .hbm.xml - , Hibernate Tools provide a basic wizard which you can br= ing up by navigating + files, Hibernate Tools provide a basic wizard which you = can bring up by navigating New > Hibernate XML mapping file.<= /para> - + At first you'll be asked to select a package or multiple ind= ividual classes to map.
Hibernate XML Mapping File Wizard = @@ -48,10 +48,9 @@
= - At first you'll be asked to specify the location and the na= me for a new mapping - file. On the next dialog you should type or browse the class to map.= + Next wizard page lists the mappings to be generated.
- Specifying the Class to Map + Mappings to be generated = @@ -59,22 +58,8 @@
- Pressing finish creates the file and opens it in the structured hbm.xml editor. + Pressing finish creates the files. = - If you start the wizard from the selected class, all values wil= l be detected there - automatically. - -
- Creating Mapping File for Selected Class - - - - - - -
-
=
--===============1895775919205703581==-- From jbosstools-commits at lists.jboss.org Wed Sep 23 12:09:54 2009 Content-Type: multipart/mixed; boundary="===============7530313811748800615==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17706 - trunk/documentation/qa/docs/Test_Cases/Test_Projects. Date: Wed, 23 Sep 2009 12:09:53 -0400 Message-ID: <200909231609.n8NG9rBJ031034@svn01.web.mwc.hst.phx2.redhat.com> --===============7530313811748800615== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: aklimkovich Date: 2009-09-23 12:09:52 -0400 (Wed, 23 Sep 2009) New Revision: 17706 Added: trunk/documentation/qa/docs/Test_Cases/Test_Projects/TestWorkspaces.rar Log: Added a file remotely Added: trunk/documentation/qa/docs/Test_Cases/Test_Projects/TestWorkspaces.= rar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/documentation/qa/docs/Test_Cases/Test_Projects/T= estWorkspaces.rar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream --===============7530313811748800615==-- From jbosstools-commits at lists.jboss.org Wed Sep 23 15:12:30 2009 Content-Type: multipart/mixed; boundary="===============8732135046536099022==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17707 - in trunk: jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/4713 and 4 other directories. Date: Wed, 23 Sep 2009 15:12:30 -0400 Message-ID: <200909231912.n8NJCURX003111@svn01.web.mwc.hst.phx2.redhat.com> --===============8732135046536099022== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: yradtsevich Date: 2009-09-23 15:12:29 -0400 (Wed, 23 Sep 2009) New Revision: 17707 Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebCo= ntent/pages/JBIDE/4713/ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebCo= ntent/pages/JBIDE/4713/SelectWholeElement_JBIDE4713.html trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf= /vpe/jsf/test/jbide/SelectWholeElement_JBIDE4713.java Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf= /vpe/jsf/test/JsfAllTests.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/tem= plate/SelectionManager.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/uti= l/SelectionUtil.java Log: RESOLVED - issue JBIDE-4713: Visual selection isn't correct from selection = bar. https://jira.jboss.org/jira/browse/JBIDE-4713 - fixed - added JUnit test Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/W= ebContent/pages/JBIDE/4713/SelectWholeElement_JBIDE4713.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebC= ontent/pages/JBIDE/4713/SelectWholeElement_JBIDE4713.html = (rev 0) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebC= ontent/pages/JBIDE/4713/SelectWholeElement_JBIDE4713.html 2009-09-23 19:12:= 29 UTC (rev 17707) @@ -0,0 +1,9 @@ + + +
+ BEFORE +

H1

+ AFTER +
+ + Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/to= ols/jsf/vpe/jsf/test/JsfAllTests.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/js= f/vpe/jsf/test/JsfAllTests.java 2009-09-23 16:09:52 UTC (rev 17706) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/js= f/vpe/jsf/test/JsfAllTests.java 2009-09-23 19:12:29 UTC (rev 17707) @@ -77,6 +77,7 @@ import org.jboss.tools.jsf.vpe.jsf.test.jbide.JsfJbide2362Test; import org.jboss.tools.jsf.vpe.jsf.test.jbide.OpenOnCssClassTest_JBIDE4775; import org.jboss.tools.jsf.vpe.jsf.test.jbide.SelectAllAndCut_JBIDE4853; +import org.jboss.tools.jsf.vpe.jsf.test.jbide.SelectWholeElement_JBIDE4713; import org.jboss.tools.jsf.vpe.jsf.test.jbide.VPERefreshTest; import org.jboss.tools.tests.ImportBean; import org.jboss.tools.vpe.ui.test.VpeTestSetup; @@ -104,6 +105,7 @@ suite.addTestSuite(JBIDE3519Test.class); suite.addTestSuite(ContextMenuDoubleInsertionTest_JBIDE3888.class); suite.addTestSuite(SelectAllAndCut_JBIDE4853.class); + suite.addTestSuite(SelectWholeElement_JBIDE4713.class); suite.addTestSuite(JBIDE4037Test.class); suite.addTestSuite(JBIDE3734Test.class); suite.addTestSuite(JBIDE3617Test.class); Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools= /jsf/vpe/jsf/test/jbide/SelectWholeElement_JBIDE4713.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/js= f/vpe/jsf/test/jbide/SelectWholeElement_JBIDE4713.java = (rev 0) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/js= f/vpe/jsf/test/jbide/SelectWholeElement_JBIDE4713.java 2009-09-23 19:12:29 = UTC (rev 17707) @@ -0,0 +1,70 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jsf.vpe.jsf.test.jbide; + +import org.eclipse.swt.custom.StyledText; +import org.eclipse.swt.graphics.Point; +import org.eclipse.wst.sse.ui.internal.StructuredTextViewer; +import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests; +import org.jboss.tools.vpe.editor.VpeController; +import org.jboss.tools.vpe.editor.util.HTML; +import org.jboss.tools.vpe.editor.util.SelectionUtil; +import org.jboss.tools.vpe.ui.test.TestUtil; +import org.jboss.tools.vpe.ui.test.VpeTest; +import org.mozilla.interfaces.nsIDOMElement; +import org.mozilla.interfaces.nsIDOMNode; + +/** + * Tests for JIRA issue JBIDE-4713: + * Visual selection isn't correct from selection bar. + * (https://jira.jboss.org/jira/browse/JBIDE-4713 ) + * = + * @author yradtsevich + */ +public class SelectWholeElement_JBIDE4713 extends VpeTest { + private static final String TEST_PAGE_NAME + =3D "JBIDE/4713/SelectWholeElement_JBIDE4713.html"; //$NON-NLS-1$ + private static final Point SELECTION_START =3D new Point(5, 13); + private static final Point SELECTION_END =3D new Point(5, 46); + private static final String SELECTED_ELEMENT_ID + =3D "selected-element"; //$NON-NLS-1$ + + public SelectWholeElement_JBIDE4713(String name) { + super(name); + } + + public void testSelectWholeElement() throws Throwable { + VpeController vpeController =3D openInVpe(JsfAllTests.IMPORT_PROJECT_NAM= E, + TEST_PAGE_NAME); + + StructuredTextViewer textViewer =3D vpeController.getSourceEditor() + .getTextViewer(); + StyledText textWidget =3D textViewer.getTextWidget(); + + int selectionStartOffset =3D TestUtil.getLinePositionOffcet( + textViewer, SELECTION_START.x, SELECTION_START.y); + int selectionEndOffset =3D TestUtil.getLinePositionOffcet( + textViewer, SELECTION_END.x, SELECTION_END.y); + + textViewer.setSelectedRange(selectionStartOffset, + selectionEndOffset - selectionStartOffset); + TestUtil.waitForIdle(); + + nsIDOMNode selectedNode =3D SelectionUtil.getLastSelectedNode( + vpeController.getPageContext()); = + + assertTrue(selectedNode.getNodeType() =3D=3D nsIDOMNode.ELEMENT_NODE); + nsIDOMElement element =3D (nsIDOMElement) + selectedNode.queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID); + + assertEquals(SELECTED_ELEMENT_ID, element.getAttribute(HTML.ATTR_ID)); + } +} Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/template/SelectionManager.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/te= mplate/SelectionManager.java 2009-09-23 16:09:52 UTC (rev 17706) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/te= mplate/SelectionManager.java 2009-09-23 19:12:29 UTC (rev 17707) @@ -11,10 +11,7 @@ = package org.jboss.tools.vpe.editor.template; = -import org.eclipse.jface.viewers.ISelection; import org.eclipse.swt.graphics.Point; -import org.eclipse.wst.sse.core.StructuredModelManager; -import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel; import org.eclipse.wst.sse.ui.StructuredTextEditor; import org.eclipse.wst.xml.core.internal.document.NodeImpl; import org.jboss.tools.vpe.editor.context.VpePageContext; @@ -252,91 +249,72 @@ */ final public void refreshVisualSelection() { = - IStructuredModel model =3D null; - try { - // checks for null, for case when we close editor and background - // update job is running - if (getSourceEditor().getTextViewer() =3D=3D null) { + // checks for null, for case when we close editor and background + // update job is running + if (getSourceEditor().getTextViewer() =3D=3D null) { = - return; - } - // gets source model for read, model should be released see - // JBIDE-2219 - model =3D StructuredModelManager.getModelManager() - .getExistingModelForRead( - getSourceEditor().getTextViewer().getDocument()); - = - //fix for JBIDE-3805, mareshkau = - if(model=3D=3Dnull) { - return; - } - = - Point range =3D SelectionUtil - .getSourceSelectionRange(getSourceEditor()); + return; + } = - if (range =3D=3D null) - return; + Point range =3D SelectionUtil + .getSourceSelectionRange(getSourceEditor()); = - int focusOffcetInSourceDocument =3D range.x; + if (range =3D=3D null) + return; = - int anchorOffcetInSourceDocument =3D focusOffcetInSourceDocument - + range.y; + int focusOffcetInSourceDocument =3D range.x; = - // get element mapping - VpeNodeMapping nodeMapping =3D SelectionUtil - .getNodeMappingBySourceSelection(model, getDomMapping(), - focusOffcetInSourceDocument, - anchorOffcetInSourceDocument); + int anchorOffcetInSourceDocument =3D focusOffcetInSourceDocument + + range.y; + VpeNodeMapping nodeMapping =3D SelectionUtil + .getNodeMappingBySourceSelection(getSourceEditor(), + getDomMapping()); = - if (nodeMapping =3D=3D null) - return; + if (nodeMapping =3D=3D null) { + return; + } = - // visual node which will be selected - nsIDOMNode targetVisualNode; + // visual node which will be selected + nsIDOMNode targetVisualNode; = - // int visualNodeOffcet =3D - // TextUtil.visualPosition(((Node)targetSourceNode - // ).getNodeValue(),offcetReferenceToSourceNode); + // int visualNodeOffcet =3D + // TextUtil.visualPosition(((Node)targetSourceNode + // ).getNodeValue(),offcetReferenceToSourceNode); = - // if mapping is elementMapping - = - SelectionUtil.clearSelection(selectionController); = - = - if (nodeMapping instanceof VpeElementMapping) { + // if mapping is elementMapping + = + SelectionUtil.clearSelection(selectionController); = + = + if (nodeMapping instanceof VpeElementMapping) { = - VpeElementMapping elementMapping =3D (VpeElementMapping) nodeMapping; + VpeElementMapping elementMapping =3D (VpeElementMapping) nodeMapping; = - VpeTemplate template =3D elementMapping.getTemplate(); + VpeTemplate template =3D elementMapping.getTemplate(); = - targetVisualNode =3D template.getVisualNodeBySourcePosition( - elementMapping, focusOffcetInSourceDocument, - anchorOffcetInSourceDocument, getDomMapping()); + targetVisualNode =3D template.getVisualNodeBySourcePosition( + elementMapping, focusOffcetInSourceDocument, + anchorOffcetInSourceDocument, getDomMapping()); = - NodeData nodeData =3D template.getNodeData(targetVisualNode, - elementMapping.getElementData(), getDomMapping()); - // we can restore cursor position only if we have nodeData and - // range.y=3D=3D0 - if (nodeData !=3D null) { - // restore cursor position in source document - restoreVisualCursorPosition(template, nodeData, - focusOffcetInSourceDocument, - anchorOffcetInSourceDocument); - } - } else { + NodeData nodeData =3D template.getNodeData(targetVisualNode, + elementMapping.getElementData(), getDomMapping()); + // we can restore cursor position only if we have nodeData and + // range.y=3D=3D0 + if (nodeData !=3D null) { + // restore cursor position in source document + restoreVisualCursorPosition(template, nodeData, + focusOffcetInSourceDocument, + anchorOffcetInSourceDocument); + } + } else { = - targetVisualNode =3D nodeMapping.getVisualNode(); - // restore cursor position for source node + targetVisualNode =3D nodeMapping.getVisualNode(); + // restore cursor position for source node // restoreVisualCursorPositionForTextNode(targetVisualNode, // focusOffcetInSourceDocument, model); - } - // here we restore only highlight - getPageContext().getVisualBuilder().setSelectionRectangle( - targetVisualNode); - } finally { - if (model !=3D null) { - model.releaseFromRead(); - } } + // here we restore only highlight + getPageContext().getVisualBuilder().setSelectionRectangle( + targetVisualNode); } = /** Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/util/SelectionUtil.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/ut= il/SelectionUtil.java 2009-09-23 16:09:52 UTC (rev 17706) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/ut= il/SelectionUtil.java 2009-09-23 19:12:29 UTC (rev 17707) @@ -119,6 +119,11 @@ offset, length); } = + /** + * @deprecated This method causes JBIDE-4713. Use + * {@link #getNodeMappingBySourceSelection(StructuredTextEditor, VpeDomMa= pping)} + * instead. + */ public static VpeNodeMapping getNodeMappingBySourceSelection( IStructuredModel model, VpeDomMapping domMapping, int focus, int anchor) { @@ -228,8 +233,15 @@ = IStructuredModel model =3D null; try { + // gets source model for read, model should be released see + // JBIDE-2219 model =3D StructuredModelManager.getModelManager() .getExistingModelForRead(document); + = + //fix for JBIDE-3805, mareshkau = + if(model =3D=3D null) { + return null; + } = int anchor =3D range.x; int focus =3D range.x + range.y; --===============8732135046536099022==-- From jbosstools-commits at lists.jboss.org Wed Sep 23 18:07:14 2009 Content-Type: multipart/mixed; boundary="===============3739178783034488338==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17708 - trunk/birt/plugins/org.jboss.tools.birt.core/resources. Date: Wed, 23 Sep 2009 18:07:14 -0400 Message-ID: <200909232207.n8NM7EcK006566@svn01.web.mwc.hst.phx2.redhat.com> --===============3739178783034488338== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: snjeza Date: 2009-09-23 18:07:14 -0400 (Wed, 23 Sep 2009) New Revision: 17708 Modified: trunk/birt/plugins/org.jboss.tools.birt.core/resources/jboss-seam-birt.j= ar Log: https://jira.jboss.org/jira/browse/JBIDE-4842 p:birt broken on postback (re= storeState and saveState not implemented) Modified: trunk/birt/plugins/org.jboss.tools.birt.core/resources/jboss-seam= -birt.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============3739178783034488338==-- From jbosstools-commits at lists.jboss.org Wed Sep 23 18:43:11 2009 Content-Type: multipart/mixed; boundary="===============1555997824505782462==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17709 - trunk/birt/plugins/org.jboss.tools.birt.core/resources. Date: Wed, 23 Sep 2009 18:43:11 -0400 Message-ID: <200909232243.n8NMhBwV011744@svn01.web.mwc.hst.phx2.redhat.com> --===============1555997824505782462== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: snjeza Date: 2009-09-23 18:43:11 -0400 (Wed, 23 Sep 2009) New Revision: 17709 Modified: trunk/birt/plugins/org.jboss.tools.birt.core/resources/jboss-birt-servle= t.jar Log: https://jira.jboss.org/jira/browse/JBIDE-4929 birt : reportContext.getHttpS= ervletRequest() returns null Modified: trunk/birt/plugins/org.jboss.tools.birt.core/resources/jboss-birt= -servlet.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============1555997824505782462==-- From jbosstools-commits at lists.jboss.org Thu Sep 24 03:48:50 2009 Content-Type: multipart/mixed; boundary="===============3581378766915497306==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17710 - trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard. Date: Thu, 24 Sep 2009 03:48:50 -0400 Message-ID: <200909240748.n8O7mob5024647@svn01.web.mwc.hst.phx2.redhat.com> --===============3581378766915497306== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-24 03:48:50 -0400 (Thu, 24 Sep 2009) New Revision: 17710 Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/w= izard/SeamBaseOperation.java Log: https://jira.jboss.org/jira/browse/JBIDE-4944 Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/se= am/ui/wizard/SeamBaseOperation.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= wizard/SeamBaseOperation.java 2009-09-23 22:43:11 UTC (rev 17709) +++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= wizard/SeamBaseOperation.java 2009-09-24 07:48:50 UTC (rev 17710) @@ -110,7 +110,7 @@ int index=3D0; for (String[] mapping : fileMappingCopy) { file[index] =3D new File(mapping[1]); - FileUtils.getFileUtils().copyFile(new File(mapping[0]), file[index],fi= lters,true); + FileUtils.getFileUtils().copyFile(new File(mapping[0]), file[index],fi= lters,false); index++; } if(shouldTouchServer(seamPrjSet)) { --===============3581378766915497306==-- From jbosstools-commits at lists.jboss.org Thu Sep 24 05:15:39 2009 Content-Type: multipart/mixed; boundary="===============2521071465144652026==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17711 - workspace. Date: Thu, 24 Sep 2009 05:15:39 -0400 Message-ID: <200909240915.n8O9FdrA009691@svn01.web.mwc.hst.phx2.redhat.com> --===============2521071465144652026== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: aklimkovich Date: 2009-09-24 05:15:39 -0400 (Thu, 24 Sep 2009) New Revision: 17711 Added: workspace/qa Log: Copied remotely Copied: workspace/qa (from rev 17710, trunk/documentation/qa/docs/Test_Case= s/Test_Projects/TestWorkspaces.rar) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============2521071465144652026==-- From jbosstools-commits at lists.jboss.org Thu Sep 24 05:21:09 2009 Content-Type: multipart/mixed; boundary="===============6563945440002381690==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17712 - workspace. Date: Thu, 24 Sep 2009 05:21:09 -0400 Message-ID: <200909240921.n8O9L9xT010592@svn01.web.mwc.hst.phx2.redhat.com> --===============6563945440002381690== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: aklimkovich Date: 2009-09-24 05:21:09 -0400 (Thu, 24 Sep 2009) New Revision: 17712 Removed: workspace/qa Log: Removed file/folder Deleted: workspace/qa =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============6563945440002381690==-- From jbosstools-commits at lists.jboss.org Thu Sep 24 05:33:21 2009 Content-Type: multipart/mixed; boundary="===============1764568294425673873==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17713 - workspace. Date: Thu, 24 Sep 2009 05:33:21 -0400 Message-ID: <200909240933.n8O9XLDM013165@svn01.web.mwc.hst.phx2.redhat.com> --===============1764568294425673873== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: aklimkovich Date: 2009-09-24 05:33:20 -0400 (Thu, 24 Sep 2009) New Revision: 17713 Added: workspace/qa/ Log: Created folder remotely --===============1764568294425673873==-- From jbosstools-commits at lists.jboss.org Thu Sep 24 07:23:24 2009 Content-Type: multipart/mixed; boundary="===============8339385308858447708==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17714 - workspace/qa and 1 other directory. Date: Thu, 24 Sep 2009 07:23:24 -0400 Message-ID: <200909241123.n8OBNOZf002078@svn01.web.mwc.hst.phx2.redhat.com> --===============8339385308858447708== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: aklimkovich Date: 2009-09-24 07:23:24 -0400 (Thu, 24 Sep 2009) New Revision: 17714 Added: workspace/qa/TestWorkspaces.rar Removed: trunk/documentation/qa/docs/Test_Cases/Test_Projects/TestWorkspaces.rar Log: Moved remotely Deleted: trunk/documentation/qa/docs/Test_Cases/Test_Projects/TestWorkspace= s.rar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Copied: workspace/qa/TestWorkspaces.rar (from rev 17713, trunk/documentatio= n/qa/docs/Test_Cases/Test_Projects/TestWorkspaces.rar) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============8339385308858447708==-- From jbosstools-commits at lists.jboss.org Thu Sep 24 09:53:59 2009 Content-Type: multipart/mixed; boundary="===============3755392641303917333==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17716 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist. Date: Thu, 24 Sep 2009 09:53:59 -0400 Message-ID: <200909241353.n8ODrxRs030362@svn01.web.mwc.hst.phx2.redhat.com> --===============3755392641303917333== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-24 09:53:59 -0400 (Thu, 24 Sep 2009) New Revision: 17716 Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/co= ntentassist/AbstractXMLContentAssistProcessor.java Log: JBIDE-2332 CA with proposal list for comonent's atributes doesn't work befo= re double quotes. Issue is fixed Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/contentassist/AbstractXMLContentAssistProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/AbstractXMLContentAssistProcessor.java 2009-09-24 13:37:24 UTC= (rev 17715) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/AbstractXMLContentAssistProcessor.java 2009-09-24 13:53:59 UTC= (rev 17716) @@ -269,8 +269,24 @@ domnode =3D prevnode; } } + = return super.getCompletionRegion(documentPosition, domnode); } + = + protected ITextRegion getCompletionRegion(int offset, IStructuredDocument= Region sdRegion) { + ITextRegion region =3D super.getCompletionRegion(offset, sdRegion); + if (region !=3D null && region.getType() =3D=3D DOMRegionContext.UNDEFIN= ED) { + // FIX: JBIDE-2332 CA with proposal list for comonent's atributes doesn= 't work before double quotes. = + // Sometimes, especially if we have a broken XML node, the region retur= ned has UNDEFINED type. + // If so, we're try to use the prevoius region, which probably will be = the region of type XML_TAG_NAME. + = + ITextRegion previousRegion =3D sdRegion.getRegionAtCharacterOffset(offs= et - 1); + if ((previousRegion !=3D null) && (previousRegion !=3D region) && (prev= iousRegion.getTextLength() < previousRegion.getLength())) { + region =3D previousRegion; + } + } + return region; + } /* * (non-Javadoc) * @see org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssi= stProcessor#computeTagNameProposals(int, java.lang.String, org.eclipse.wst.= sse.core.internal.provisional.text.ITextRegion, org.eclipse.wst.xml.core.in= ternal.provisional.document.IDOMNode, org.eclipse.wst.xml.core.internal.pro= visional.document.IDOMNode) --===============3755392641303917333==-- From jbosstools-commits at lists.jboss.org Thu Sep 24 10:56:03 2009 Content-Type: multipart/mixed; boundary="===============6184202670765409671==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17717 - in trunk/jst/plugins: org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog and 2 other directories. Date: Thu, 24 Sep 2009 10:56:02 -0400 Message-ID: <200909241456.n8OEu2x8011564@svn01.web.mwc.hst.phx2.redhat.com> --===============6184202670765409671== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: sdzmitrovich Date: 2009-09-24 10:56:02 -0400 (Thu, 24 Sep 2009) New Revision: 17717 Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/pr= operties/CSSPropertyPage.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/ou= tline/cssdialog/AbstractCSSDialog.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/ou= tline/cssdialog/common/StyleAttributes.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/ou= tline/cssdialog/common/Util.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/ou= tline/cssdialog/tabs/BaseTabControl.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/ou= tline/cssdialog/tabs/TabQuickEditControl.java Log: https://jira.jboss.org/jira/browse/JBIDE-4940 Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/properties/CSSPropertyPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/p= roperties/CSSPropertyPage.java 2009-09-24 13:53:59 UTC (rev 17716) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/p= roperties/CSSPropertyPage.java 2009-09-24 14:56:02 UTC (rev 17717) @@ -14,7 +14,6 @@ import org.eclipse.core.databinding.DataBindingContext; import org.eclipse.core.databinding.observable.ChangeEvent; import org.eclipse.core.databinding.observable.IChangeListener; -import org.eclipse.core.databinding.observable.IObservable; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.ISelectionChangedListener; import org.eclipse.jface.viewers.ISelectionProvider; @@ -50,8 +49,7 @@ super(tabbedPropertySheetPageContributor); bindingContext =3D new DataBindingContext(); styleAttributes =3D new StyleAttributes(); - ((IObservable) styleAttributes.getAttributeMap()) - .addChangeListener(this); + styleAttributes.addChangeListener(this); this.part =3D part; = } @@ -99,7 +97,7 @@ || (!selectedObject.equals(newSelectedObject))) super.selectionChanged(part, selection); selectedObject =3D newSelectedObject; - = + update(); = } @@ -109,12 +107,10 @@ public void update() { = if (selectedObject instanceof StyleContainer) { - ((IObservable) getStyleAttributes().getAttributeMap()) - .removeChangeListener(this); + getStyleAttributes().removeChangeListener(this); getStyleAttributes().setStyleProperties( ((StyleContainer) selectedObject).getStyleAttributes()); - ((IObservable) getStyleAttributes().getAttributeMap()) - .addChangeListener(this); + getStyleAttributes().addChangeListener(this); } = } @@ -125,7 +121,7 @@ = ((StyleContainer) selectedObject) .applyStyleAttributes(getStyleAttributes() - .getAttributeMap()); + .getStyleProperties()); } = notifySelectionChanged(getCurrentSelection()); Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/outline/cssdialog/AbstractCSSDialog.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/o= utline/cssdialog/AbstractCSSDialog.java 2009-09-24 13:53:59 UTC (rev 17716) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/o= utline/cssdialog/AbstractCSSDialog.java 2009-09-24 14:56:02 UTC (rev 17717) @@ -104,15 +104,14 @@ dialogContainer.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, true, true)); = - ((IObservable) getStyleAttributes().getAttributeMap()) - .addChangeListener(new IChangeListener() { + getStyleAttributes().addChangeListener(new IChangeListener() { = - public void handleChange(ChangeEvent event) { - handleStyleChanged(); + public void handleChange(ChangeEvent event) { + handleStyleChanged(); = - } + } = - }); + }); = aggregateStatus =3D new AggregateValidationStatus( getBindingContext().getValidationStatusProviders(), @@ -230,7 +229,7 @@ StringBuffer html =3D new StringBuffer(Constants.OPEN_DIV_TAG); = for (Map.Entry styleItem : getStyleAttributes() - .getAttributeMap().entrySet()) { + .entrySet()) { = html.append(styleItem.getKey() + Constants.COLON + styleItem.getValue() + Constants.SEMICOLON); Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/outline/cssdialog/common/StyleAttributes.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/o= utline/cssdialog/common/StyleAttributes.java 2009-09-24 13:53:59 UTC (rev 1= 7716) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/o= utline/cssdialog/common/StyleAttributes.java 2009-09-24 14:56:02 UTC (rev 1= 7717) @@ -14,6 +14,8 @@ import java.util.Set; import java.util.Map.Entry; = +import org.eclipse.core.databinding.observable.IChangeListener; +import org.eclipse.core.databinding.observable.map.IObservableMap; import org.eclipse.core.databinding.observable.map.WritableMap; = /** @@ -21,7 +23,7 @@ */ public class StyleAttributes { = - private Map attributeMap =3D null; + private IObservableMap attributeMap =3D null; = /** * Default constructor. @@ -31,24 +33,16 @@ } = /** - * Gets attribute map. - * = - * @return map of attributes - */ - public Map getAttributeMap() { - return attributeMap; - } - - /** * Add attribute with the given name and value. * = * @param name + * = * the name of attribute * @param value * the value of attribute */ - public void addAttribute(String name, String value) { - attributeMap.put(name, value); + public String put(String name, String value) { + return (String) attributeMap.put(name.toLowerCase(), value); } = /** @@ -57,8 +51,8 @@ * @param name * the name of attribute to be removed */ - public void removeAttribute(String name) { - attributeMap.remove(name); + public void remove(String name) { + attributeMap.remove(name.toLowerCase()); } = /** @@ -75,8 +69,8 @@ * the name of attribute to be returned * @return attribute value */ - public String getAttribute(String name) { - String value =3D attributeMap.get(name); + public String get(Object name) { + String value =3D (String) attributeMap.get(name); return value !=3D null ? value : Constants.EMPTY; } = @@ -99,9 +93,17 @@ */ public void setStyleProperties(Map properties) { attributeMap.clear(); - attributeMap.putAll(properties); + + for (Entry entry : properties.entrySet()) { + attributeMap.put(entry.getKey().toLowerCase(), entry.getValue()); + } + } = + public Map getStyleProperties() { + return attributeMap; + } + /** * String representation of style attributes. * = @@ -118,4 +120,17 @@ } return buf.toString(); } + + public IObservableMap getObservableMap() { + return attributeMap; + } + + public void addChangeListener(IChangeListener listener) { + attributeMap.addChangeListener(listener); + } + + public void removeChangeListener(IChangeListener listener) { + attributeMap.removeChangeListener(listener); + } + } Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/outline/cssdialog/common/Util.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/o= utline/cssdialog/common/Util.java 2009-09-24 13:53:59 UTC (rev 17716) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/o= utline/cssdialog/common/Util.java 2009-09-24 14:56:02 UTC (rev 17717) @@ -100,7 +100,7 @@ = for (String str : set) { ArrayList list =3D elementMap.get(str); - if(list.contains(name)) { + if(list.contains(name.toLowerCase())) { return true; } } Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/outline/cssdialog/tabs/BaseTabControl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/o= utline/cssdialog/tabs/BaseTabControl.java 2009-09-24 13:53:59 UTC (rev 1771= 6) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/o= utline/cssdialog/tabs/BaseTabControl.java 2009-09-24 14:56:02 UTC (rev 1771= 7) @@ -16,7 +16,6 @@ import org.eclipse.core.databinding.DataBindingContext; import org.eclipse.core.databinding.UpdateValueStrategy; import org.eclipse.core.databinding.observable.Observables; -import org.eclipse.core.databinding.observable.map.IObservableMap; import org.eclipse.core.databinding.observable.value.IObservableValue; import org.eclipse.core.resources.IFile; import org.eclipse.core.runtime.IAdaptable; @@ -270,10 +269,10 @@ = List values =3D CSSConstants.CSS_STYLE_VALUES_MAP .get(attribute); - = + if ((values !=3D null) && !values.contains(value)) value =3D adjustBackgroundURL((String) value); - = + return super.doSet(observableValue, value); } }, null); @@ -464,9 +463,8 @@ } = private IObservableValue createAttributeObservableValue(String attributeN= ame) { - return Observables.observeMapEntry( - (IObservableMap) getStyleAttributes().getAttributeMap(), - attributeName, String.class); + return Observables.observeMapEntry(getStyleAttributes() + .getObservableMap(), attributeName, String.class); } = private void bind(Widget widget, String attribute) { Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/outline/cssdialog/tabs/TabQuickEditControl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/o= utline/cssdialog/tabs/TabQuickEditControl.java 2009-09-24 13:53:59 UTC (rev= 17716) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/o= utline/cssdialog/tabs/TabQuickEditControl.java 2009-09-24 14:56:02 UTC (rev= 17717) @@ -61,7 +61,7 @@ = for (String key : listKeys) { = - String value =3D getStyleAttributes().getAttribute(key); + String value =3D getStyleAttributes().get(key); if (value !=3D null && value.length() > 0) { addLabel(this, key); createControl(this, key); --===============6184202670765409671==-- From jbosstools-commits at lists.jboss.org Thu Sep 24 13:13:18 2009 Content-Type: multipart/mixed; boundary="===============2086935773166200986==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17718 - in trunk/hibernatetools: plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/diagram/editors/actions and 2 other directories. Date: Thu, 24 Sep 2009 13:13:17 -0400 Message-ID: <200909241713.n8OHDHFx005903@svn01.web.mwc.hst.phx2.redhat.com> --===============2086935773166200986== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vyemialyanchyk Date: 2009-09-24 13:13:17 -0400 (Thu, 24 Sep 2009) New Revision: 17718 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/DiagramViewer.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/actions/ExportImageAction.java trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/META-INF/MA= NIFEST.MF trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/src/org/jbo= ss/tools/hibernate/ui/diagram/editors/actions/test/ExportImageActionTest.ja= va Log: https://jira.jboss.org/jira/browse/JBIDE-4873 - fix for clause (7) save ins= ide the workspace Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/DiagramViewer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/DiagramViewer.java 2009-09-24 14:56:02 = UTC (rev 17717) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/DiagramViewer.java 2009-09-24 17:13:17 = UTC (rev 17718) @@ -292,29 +292,49 @@ ObjectEditorInput objectEditorInput =3D (ObjectEditorInput)input; ConsoleConfiguration configuration =3D objectEditorInput.getConfiguratio= n(); Object obj =3D objectEditorInput.getObject(); + setPartName(DiagramViewerMessages.DiagramViewer_diagram_for + " " + getD= iagramName(obj)); //$NON-NLS-1$ if (obj instanceof RootClass) { RootClass rootClass =3D (RootClass)obj; - setPartName(DiagramViewerMessages.DiagramViewer_diagram_for + " " + get= ItemName(rootClass)); //$NON-NLS-1$ ormDiagram =3D new OrmDiagram(configuration, rootClass); } else if (obj instanceof RootClass[]) { RootClass[] rootClasses =3D (RootClass[])obj; + ormDiagram =3D new OrmDiagram(configuration, rootClasses); + } + super.setInput(input); + loadProperties(); + } + + protected String getDiagramName(Object obj) { + String name =3D ""; //$NON-NLS-1$ + if (obj instanceof RootClass) { + RootClass rootClass =3D (RootClass)obj; + name =3D getItemName(rootClass); + } else if (obj instanceof RootClass[]) { + RootClass[] rootClasses =3D (RootClass[])obj; ArrayList names =3D new ArrayList(); for (int i =3D 0; i < rootClasses.length; i++) { names.add(getItemName(rootClasses[i])); } // sort to get same name for same combinations of entities Collections.sort(names); - String name =3D names.size() > 0 ? names.get(0) : ""; //$NON-NLS-1$ + name =3D names.size() > 0 ? names.get(0) : ""; //$NON-NLS-1$ for (int i =3D 1; i < rootClasses.length; i++) { name +=3D " & " + names.get(i); //$NON-NLS-1$ } - setPartName(DiagramViewerMessages.DiagramViewer_diagram_for + " " + nam= e); //$NON-NLS-1$ - ormDiagram =3D new OrmDiagram(configuration, rootClasses); } - super.setInput(input); - loadProperties(); + return name; } = + public String getDiagramName() { + IEditorInput input =3D getEditorInput(); + Object obj =3D null; + if (input instanceof ObjectEditorInput) { + ObjectEditorInput objectEditorInput =3D (ObjectEditorInput)input; + obj =3D objectEditorInput.getObject(); + } + return getDiagramName(obj); + } + /** * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class) */ Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/actions/ExportImageAction.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ExportImageAction.java 2009-09-= 24 14:56:02 UTC (rev 17717) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ExportImageAction.java 2009-09-= 24 17:13:17 UTC (rev 17718) @@ -13,7 +13,12 @@ import java.io.ByteArrayOutputStream; import java.io.FileOutputStream; import java.io.IOException; +import java.lang.reflect.InvocationTargetException; = +import org.eclipse.core.resources.IWorkspace; +import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.draw2d.Graphics; import org.eclipse.draw2d.IFigure; import org.eclipse.draw2d.SWTGraphics; @@ -21,6 +26,7 @@ import org.eclipse.gef.LayerConstants; import org.eclipse.gef.editparts.ScalableFreeformRootEditPart; import org.eclipse.jface.dialogs.MessageDialog; +import org.eclipse.jface.dialogs.ProgressMonitorDialog; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.swt.SWT; import org.eclipse.swt.graphics.Device; @@ -28,7 +34,8 @@ import org.eclipse.swt.graphics.Image; import org.eclipse.swt.graphics.ImageData; import org.eclipse.swt.graphics.ImageLoader; -import org.eclipse.swt.widgets.FileDialog; +import org.eclipse.ui.actions.WorkspaceModifyOperation; +import org.eclipse.ui.dialogs.SaveAsDialog; import org.hibernate.eclipse.console.HibernateConsolePlugin; import org.jboss.tools.hibernate.ui.diagram.DiagramViewerMessages; import org.jboss.tools.hibernate.ui.diagram.editors.DiagramViewer; @@ -40,7 +47,8 @@ public static final String[] dialogFilterNames =3D new String[] { Diagram= ViewerMessages.ExportImageAction_png_format, DiagramViewerMessages.ExportImageAction_jpg_format, DiagramViewerMessage= s.ExportImageAction_bmp_format }; = - private FileDialog saveDialog =3D null; + //private FileDialog saveDialog =3D null; + private SaveAsDialog saveDialog =3D null; private boolean showErrDialog =3D true; public static final ImageDescriptor img =3D = ImageDescriptor.createFromFile(DiagramViewer.class, "icons/export.png");= //$NON-NLS-1$ @@ -58,7 +66,7 @@ * = * @param saveDialog */ - public void setSaveDialog(FileDialog saveDialog) { + public void setSaveDialog(SaveAsDialog saveDialog) { this.saveDialog =3D saveDialog; } = @@ -68,49 +76,76 @@ = public void run() { = + boolean createdSaveDialog =3D false; if (saveDialog =3D=3D null) { - saveDialog =3D new FileDialog( - getDiagramViewer().getSite().getShell(), SWT.SAVE); + saveDialog =3D new SaveAsDialog(getDiagramViewer().getSite().getWorkben= chWindow().getShell()); + createdSaveDialog =3D true; } - saveDialog.setFilterExtensions(dialogFilterExtensions); - saveDialog.setFilterNames(dialogFilterNames); - - String filePath =3D saveDialog.open(); - saveDialog =3D null; - if (filePath =3D=3D null || filePath.trim().length() =3D=3D 0) { + saveDialog.setOriginalName(getDiagramViewer().getDiagramName()); + saveDialog.open(); + final IPath pathSave =3D saveDialog.getResult(); = + if (pathSave =3D=3D null) { return; } = - IFigure fig =3D ((ScalableFreeformRootEditPart) getDiagramViewer() + final IFigure fig =3D ((ScalableFreeformRootEditPart) getDiagramViewer() .getEditPartViewer().getRootEditPart()) .getLayer(LayerConstants.PRINTABLE_LAYERS); - int imageType =3D SWT.IMAGE_BMP; - if (filePath.toLowerCase().endsWith(".jpg")) { //$NON-NLS-1$ - imageType =3D SWT.IMAGE_JPEG; - } else if (filePath.toLowerCase().endsWith(".png")) { //$NON-NLS-1$ - imageType =3D SWT.IMAGE_PNG; - } - FileOutputStream outStream =3D null; - try { - byte[] imageData =3D createImage(fig, imageType); - outStream =3D new FileOutputStream(filePath); - outStream.write(imageData); - outStream.flush(); - } catch (IOException e) { - HibernateConsolePlugin.getDefault().logErrorMessage("ExportImageAction"= , e); //$NON-NLS-1$ - if (showErrDialog) { - MessageDialog.openInformation(getDiagramViewer().getSite().getShell(), - DiagramViewerMessages.ExportImageAction_error, DiagramViewerMessages.= ExportImageAction_failed_to_export_image + e.getMessage()); + int imageTypeTmp =3D SWT.IMAGE_BMP; + IWorkspace workspace =3D ResourcesPlugin.getWorkspace(); + String ext =3D pathSave.getFileExtension(); + if (ext !=3D null) { + ext =3D ext.toLowerCase(); + if (ext.endsWith("jpg")) { //$NON-NLS-1$ + imageTypeTmp =3D SWT.IMAGE_JPEG; + } else if (ext.endsWith("png")) { //$NON-NLS-1$ + imageTypeTmp =3D SWT.IMAGE_PNG; + } else if (ext.endsWith("gif")) { //$NON-NLS-1$ + imageTypeTmp =3D SWT.IMAGE_GIF; + } else if (ext.endsWith("bmp")) { //$NON-NLS-1$ + imageTypeTmp =3D SWT.IMAGE_BMP; } } - finally { - if (outStream !=3D null) { + IPath pathTmp =3D workspace.getRoot().getFullPath().append(pathSave); + pathTmp =3D workspace.getRoot().getLocation().append(pathTmp); + if (ext =3D=3D null) { + pathTmp =3D pathTmp.addFileExtension("bmp"); //$NON-NLS-1$ + } + final IPath path =3D pathTmp; + final int imageType =3D imageTypeTmp; + = + WorkspaceModifyOperation op =3D new WorkspaceModifyOperation() { + public void execute(final IProgressMonitor monitor) { + FileOutputStream outStream =3D null; try { - outStream.close(); + byte[] imageData =3D createImage(fig, imageType); + outStream =3D new FileOutputStream(path.toString()); + outStream.write(imageData); + outStream.flush(); } catch (IOException e) { - // ignore + HibernateConsolePlugin.getDefault().logErrorMessage("ExportImageActio= n", e); //$NON-NLS-1$ + if (showErrDialog) { + MessageDialog.openInformation(getDiagramViewer().getSite().getShell(= ), + DiagramViewerMessages.ExportImageAction_error, DiagramViewerMessage= s.ExportImageAction_failed_to_export_image + e.getMessage()); + } } + finally { + if (outStream !=3D null) { + try { + outStream.close(); + } catch (IOException e) { + // ignore + } + } + } } + }; + try { + new ProgressMonitorDialog( + createdSaveDialog ? getDiagramViewer().getSite().getWorkbenchWindow()= .getShell() : null) + .run(false, true, op); + } catch (InvocationTargetException e) { + } catch (InterruptedException e) { } } = Modified: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/META= -INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/META-INF/M= ANIFEST.MF 2009-09-24 14:56:02 UTC (rev 17717) +++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/META-INF/M= ANIFEST.MF 2009-09-24 17:13:17 UTC (rev 17718) @@ -7,6 +7,7 @@ org.eclipse.wst.common.project.facet.ui;bundle-version=3D"1.3.0", org.eclipse.jdt.core, org.eclipse.gef, + org.eclipse.ui.ide, org.hibernate.eclipse.console.test, org.jboss.tools.hibernate.ui, org.hibernate.eclipse Modified: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/src/= org/jboss/tools/hibernate/ui/diagram/editors/actions/test/ExportImageAction= Test.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/src/org/jb= oss/tools/hibernate/ui/diagram/editors/actions/test/ExportImageActionTest.j= ava 2009-09-24 14:56:02 UTC (rev 17717) +++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/src/org/jb= oss/tools/hibernate/ui/diagram/editors/actions/test/ExportImageActionTest.j= ava 2009-09-24 17:13:17 UTC (rev 17718) @@ -12,6 +12,10 @@ = import java.io.File; = +import org.eclipse.core.resources.IWorkspace; +import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.Path; import org.eclipse.draw2d.IFigure; import org.eclipse.draw2d.SWTGraphics; import org.eclipse.draw2d.geometry.Rectangle; @@ -20,7 +24,7 @@ import org.eclipse.gef.editparts.ScalableFreeformRootEditPart; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Display; -import org.eclipse.swt.widgets.FileDialog; +import org.eclipse.ui.dialogs.SaveAsDialog; import org.jboss.tools.hibernate.ui.diagram.editors.DiagramViewer; import org.jboss.tools.hibernate.ui.diagram.editors.actions.ExportImageAct= ion; import org.jmock.Expectations; @@ -44,24 +48,30 @@ = public void testAction() { = - final DiagramViewer editor =3D context.mock(DiagramViewer.class);; - final FileDialog saveDialog =3D context.mock(FileDialog.class);; - final GraphicalViewer graphicalViewer =3D context.mock(GraphicalViewer.c= lass);; - final ScalableFreeformRootEditPart scalableFreeformRootEditPart =3D cont= ext.mock(ScalableFreeformRootEditPart.class);; - final IFigure figure =3D context.mock(IFigure.class);; - final Control control =3D context.mock(Control.class);; - final Display display =3D context.mock(Display.class);; + final DiagramViewer editor =3D context.mock(DiagramViewer.class); + final SaveAsDialog saveDialog =3D context.mock(SaveAsDialog.class); + final GraphicalViewer graphicalViewer =3D context.mock(GraphicalViewer.c= lass); + final ScalableFreeformRootEditPart scalableFreeformRootEditPart =3D cont= ext.mock(ScalableFreeformRootEditPart.class); + final IFigure figure =3D context.mock(IFigure.class); + final Control control =3D context.mock(Control.class); + final Display display =3D context.mock(Display.class); final Rectangle rectangle =3D new Rectangle(0, 0, 20, 10); final String filePath =3D "test.jpg"; //$NON-NLS-1$ + final IPath resPath =3D new Path(filePath); = context.checking(new Expectations() { { - allowing(saveDialog).setFilterExtensions(ExportImageAction.dialogFilte= rExtensions); - allowing(saveDialog).setFilterNames(ExportImageAction.dialogFilterName= s); + allowing(editor).getDiagramName(); + will(returnValue(filePath)); = + allowing(saveDialog).setOriginalName(filePath); + oneOf(saveDialog).open(); - will(returnValue(filePath)); + will(returnValue(0)); = + oneOf(saveDialog).getResult(); + will(returnValue(resPath)); + allowing(editor).getSite(); will(returnValue(null)); = @@ -99,7 +109,10 @@ exportImageAction.setShowErrDialog(false); exportImageAction.run(); // test is the file created - File file =3D new File(filePath); + IWorkspace workspace =3D ResourcesPlugin.getWorkspace(); + IPath path =3D workspace.getRoot().getFullPath().append(resPath); + path =3D workspace.getRoot().getLocation().append(path); + File file =3D path.toFile(); assertTrue(file.exists() && file.isFile()); // boolean res =3D file.delete(); --===============2086935773166200986==-- From jbosstools-commits at lists.jboss.org Thu Sep 24 13:29:49 2009 Content-Type: multipart/mixed; boundary="===============5308995640570813768==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17719 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar. Date: Thu, 24 Sep 2009 13:29:48 -0400 Message-ID: <200909241729.n8OHTmgE008866@svn01.web.mwc.hst.phx2.redhat.com> --===============5308995640570813768== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: yradtsevich Date: 2009-09-24 13:29:48 -0400 (Thu, 24 Sep 2009) New Revision: 17719 Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar/Sel= ectionBar.java Log: RESOLVED - issue JBIDE-4945: VPE Selection Bar: provide the ability to sele= ct tags back and forward. = https://jira.jboss.org/jira/browse/JBIDE-4945 Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/sel= bar/SelectionBar.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar/Se= lectionBar.java 2009-09-24 17:13:17 UTC (rev 17718) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar/Se= lectionBar.java 2009-09-24 17:29:48 UTC (rev 17719) @@ -39,6 +39,7 @@ import org.eclipse.swt.widgets.MenuItem; import org.eclipse.swt.widgets.ToolBar; import org.eclipse.swt.widgets.ToolItem; +import org.eclipse.swt.widgets.Widget; import org.eclipse.ui.ISharedImages; import org.eclipse.ui.PlatformUI; import org.eclipse.ui.internal.IWorkbenchGraphicConstants; @@ -76,7 +77,6 @@ = private Splitter splitter; = - private boolean resizeListenerAdded =3D false; private VpeController vpeController =3D null; private ToolBar selBar =3D null; private FormData selBarData; @@ -95,6 +95,7 @@ = private ImageButton arrowButton; private Node currentSelectedNode =3D null; + private Node currentLastNode =3D null; = // private ToolItem arrowButton; = @@ -122,6 +123,11 @@ // Main composite of the visible splitter cmpToolBar =3D new Composite(splitter, SWT.NONE); cmpToolBar.setLayout(new FormLayout()); + cmpToolBar.addListener(SWT.Resize, new Listener() { + public void handleEvent(Event event) { + updateNodes(true); + } + }); = final Image closeImage =3D PlatformUI.getWorkbench().getSharedImages() .getImage(ISharedImages.IMG_TOOL_DELETE); @@ -307,10 +313,54 @@ = if (currentSelectedNode =3D=3D node && !forceUpdate) { return; - } else { - currentSelectedNode =3D node; } = + final boolean ancestorSelected =3D isAncestor(node, currentLastNode); + if (ancestorSelected) { + if (forceUpdate) { + // reinitialize selBar with currentLastNode + setSelBarItems(currentLastNode); + } else { + // deselect currentSelectedNode + setNodeSelected(currentSelectedNode, false); + } + } else { + setSelBarItems(node); + currentLastNode =3D node; + } + + setNodeSelected(node, true); + currentSelectedNode =3D node; + } + + /** + * Sets the selection state of the given node in the selection bar. + */ + private void setNodeSelected(Node node, boolean selected) { + for (ToolItem item : selBar.getItems()) { + if (item.getData() =3D=3D node) { + item.setSelection(selected); + return; + } + } + + if (dropDownMenu =3D=3D null) { + return; + } + + for (MenuItem item : dropDownMenu.getItems()) { + if (item.getData() =3D=3D node) { + item.setSelection(selected); + return; + } + } + } + + /** + * Cleans {@link #selBar} and adds to it buttons which + * appropriate the {@code node} and all its ancestors. + */ + private void setSelBarItems(Node node) { // bug was fixed when toolbar are not shown for resizeble components cmpToolBar.layout(); splitter.getParent().layout(true, true); @@ -323,11 +373,12 @@ = int elementCounter =3D 0; while (node !=3D null - && (node.getNodeType() =3D=3D Node.ELEMENT_NODE || node.getNodeType() = =3D=3D Node.COMMENT_NODE)) { + && (node.getNodeType() =3D=3D Node.ELEMENT_NODE + || node.getNodeType() =3D=3D Node.COMMENT_NODE)) { addNodeListenerTo(node); = if (dropDownMenu =3D=3D null) { - ToolItem item =3D new ToolItem(selBar, SWT.FLAT, 1); + ToolItem item =3D new ToolItem(selBar, SWT.FLAT | SWT.CHECK, 1); item.addSelectionListener(this); item.setData(node); item.setText(node.getNodeName()); @@ -339,7 +390,7 @@ } = if (dropDownMenu !=3D null) { - MenuItem menuItem =3D new MenuItem(dropDownMenu, SWT.PUSH, 0); + MenuItem menuItem =3D new MenuItem(dropDownMenu, SWT.CHECK, 0); menuItem.addSelectionListener(this); menuItem.setText(node.getNodeName()); menuItem.setData(node); @@ -354,18 +405,28 @@ if (node !=3D null && node.getNodeType() =3D=3D Node.DOCUMENT_NODE) { addNodeListenerTo(node); } + } = - if (!resizeListenerAdded ) { - cmpToolBar.addListener(SWT.Resize, new Listener() { - public void handleEvent(Event event) { - updateNodes(true); - } - }); - resizeListenerAdded =3D true; + /** + * Checks if the {@code potentialAncestor} is an ancestor of + * {@code potentialAncestor node}. + */ + private boolean isAncestor(Node potentialAncestor, Node node) { + if (potentialAncestor =3D=3D null || node =3D=3D null) { + return false; } + + Node curAncestor =3D node; + while ((curAncestor =3D curAncestor.getParentNode()) !=3D null) { + if (potentialAncestor =3D=3D curAncestor) { + return true; + } + } + + return false; } = - /** + /** * Deletes all items (except the first item-arrow button) * from the given {@code #toolBar}. */ @@ -478,8 +539,18 @@ } = public void widgetSelected(SelectionEvent e) { + Widget widget =3D e.widget; + = + /* ensure that the ToolItem or MenuItem is selected + * (for repeated clicks on the same widget)*/ + if (widget instanceof ToolItem) { + ((ToolItem)widget).setSelection(true); + } else if (widget instanceof MenuItem) { + ((MenuItem)widget).setSelection(true); + } + SelectionUtil.setSourceSelection(vpeController.getPageContext(), - (Node) e.widget.getData()); + (Node) widget.getData()); } = public void widgetDefaultSelected(SelectionEvent e) { --===============5308995640570813768==-- From jbosstools-commits at lists.jboss.org Thu Sep 24 16:48:09 2009 Content-Type: multipart/mixed; boundary="===============8164843192245679117==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17720 - in trunk/maven/plugins: org.jboss.tools.maven.seam and 4 other directories. Date: Thu, 24 Sep 2009 16:48:09 -0400 Message-ID: <200909242048.n8OKm9D1015168@svn01.web.mwc.hst.phx2.redhat.com> --===============8164843192245679117== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: snjeza Date: 2009-09-24 16:48:08 -0400 (Thu, 24 Sep 2009) New Revision: 17720 Added: trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven= /seam/configurators/PortletProjectConfigurator.java Modified: trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven= /core/libprov/MavenLibraryProviderInstallOperation.java trunk/maven/plugins/org.jboss.tools.maven.seam/META-INF/MANIFEST.MF trunk/maven/plugins/org.jboss.tools.maven.seam/plugin.xml trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven= /seam/MavenSeamActivator.java trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven= /seam/configurators/JSFProjectConfigurator.java trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven= /seam/configurators/SeamProjectConfigurator.java trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven= /seam/preferences/SeamConfiguratorPreferencePage.java trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven= /seam/preferences/SeamConfiguratorPreferencesInitializer.java Log: https://jira.jboss.org/jira/browse/JBIDE-4888 Add m2eclipse configurator fo= r portlet facets Modified: trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tool= s/maven/core/libprov/MavenLibraryProviderInstallOperation.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/mave= n/core/libprov/MavenLibraryProviderInstallOperation.java 2009-09-24 17:29:4= 8 UTC (rev 17719) +++ trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/mave= n/core/libprov/MavenLibraryProviderInstallOperation.java 2009-09-24 20:48:0= 8 UTC (rev 17720) @@ -35,6 +35,9 @@ IProject project =3D facetedProject.getProject(); IFile pom =3D project.getFile(IMavenConstants.POM_FILE_NAME); MavenLibraryProviderInstallOperationConfig mavenConfig =3D (MavenLibrary= ProviderInstallOperationConfig) config; + if (mavenConfig.getModel() =3D=3D null) { + return; + } if (pom.exists()) { // JBoss Maven Integration facet has been executed = MavenModelManager modelManager =3D MavenPlugin.getDefault().getMavenMod= elManager(); Modified: trunk/maven/plugins/org.jboss.tools.maven.seam/META-INF/MANIFEST.= MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.seam/META-INF/MANIFEST.MF 200= 9-09-24 17:29:48 UTC (rev 17719) +++ trunk/maven/plugins/org.jboss.tools.maven.seam/META-INF/MANIFEST.MF 200= 9-09-24 20:48:08 UTC (rev 17720) @@ -8,12 +8,14 @@ org.eclipse.core.runtime, org.jboss.tools.maven.core, org.jboss.tools.seam.core, + org.jboss.tools.portlet.core, org.jboss.tools.seam.ui, org.jboss.tools.common.model, org.maven.ide.components.maven_model_edit, org.eclipse.jst.j2ee.core, org.eclipse.jst.j2ee, - org.eclipse.wst.common.emfworkbench.integration + org.eclipse.wst.common.emfworkbench.integration, + org.eclipse.jst.jsf.core Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Bundle-Vendor: JBoss by Red Hat Modified: trunk/maven/plugins/org.jboss.tools.maven.seam/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.seam/plugin.xml 2009-09-24 17= :29:48 UTC (rev 17719) +++ trunk/maven/plugins/org.jboss.tools.maven.seam/plugin.xml 2009-09-24 20= :48:08 UTC (rev 17720) @@ -21,6 +21,13 @@ name=3D"JSF Project configurator" priority=3D"150"/> = + + + + = dependencies =3D mavenProject.getDependencies(); + for (Dependency dependency:dependencies) { + String groupId =3D dependency.getGroupId(); + if (groupId !=3D null && (groupId.equals(gid)) ) { + String artifactId =3D dependency.getArtifactId(); + if (artifactId !=3D null && artifactId.equals(aid)) { + return dependency.getVersion(); + } = + } + } + return null; + } + = + public IDataModel createJSFDataModel(IFacetedProject fproj, IProjectFacet= Version facetVersion) { + IDataModel config =3D (IDataModel) new JSFFacetInstallDataModelProvider(= ).create(); + LibraryInstallDelegate libraryDelegate =3D new LibraryInstallDelegate(fp= roj, facetVersion); + ILibraryProvider provider =3D LibraryProviderFramework.getProvider("jsf-= no-op-library-provider"); //$NON-NLS-1$ + libraryDelegate.setLibraryProvider(provider); + config.setProperty(IJSFFacetInstallDataModelProperties.LIBRARY_PROVIDER_= DELEGATE, libraryDelegate); + return config; + } } Modified: trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tool= s/maven/seam/configurators/JSFProjectConfigurator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/mave= n/seam/configurators/JSFProjectConfigurator.java 2009-09-24 17:29:48 UTC (r= ev 17719) +++ trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/mave= n/seam/configurators/JSFProjectConfigurator.java 2009-09-24 20:48:08 UTC (r= ev 17720) @@ -1,68 +1,29 @@ package org.jboss.tools.maven.seam.configurators; = -import java.io.File; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - -import org.apache.maven.model.Dependency; import org.apache.maven.project.MavenProject; -import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.ProjectScope; import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.Path; -import org.eclipse.core.runtime.preferences.IEclipsePreferences; -import org.eclipse.core.runtime.preferences.IScopeContext; -import org.eclipse.emf.common.util.EList; -import org.eclipse.jdt.core.IClasspathEntry; -import org.eclipse.jdt.core.IJavaProject; -import org.eclipse.jdt.core.IPackageFragment; -import org.eclipse.jdt.core.IPackageFragmentRoot; -import org.eclipse.jdt.core.JavaCore; -import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jface.preference.IPreferenceStore; -import org.eclipse.jst.j2ee.application.Application; -import org.eclipse.jst.j2ee.application.EjbModule; -import org.eclipse.jst.j2ee.application.Module; -import org.eclipse.jst.j2ee.application.WebModule; -import org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit; -import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities; -import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities; -import org.eclipse.wst.common.componentcore.ComponentCore; +import org.eclipse.jst.common.project.facet.core.libprov.ILibraryProvider; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDel= egate; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderFr= amework; +import org.eclipse.jst.jsf.core.internal.project.facet.IJSFFacetInstallDat= aModelProperties; +import org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallData= ModelProvider; import org.eclipse.wst.common.componentcore.ModuleCoreNature; -import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; -import org.eclipse.wst.common.componentcore.resources.IVirtualFolder; -import org.eclipse.wst.common.componentcore.resources.IVirtualReference; import org.eclipse.wst.common.frameworks.datamodel.IDataModel; import org.eclipse.wst.common.project.facet.core.IFacetedProject; import org.eclipse.wst.common.project.facet.core.IProjectFacet; import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion; import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager; -import org.jboss.tools.common.model.util.EclipseResourceUtil; -import org.jboss.tools.jst.web.kb.IKbProject; import org.jboss.tools.maven.core.IJBossMavenConstants; import org.jboss.tools.maven.core.internal.project.facet.MavenFacetInstall= DataModelProvider; import org.jboss.tools.maven.seam.MavenSeamActivator; -import org.jboss.tools.seam.core.ISeamProject; -import org.jboss.tools.seam.core.SeamCorePlugin; -import org.jboss.tools.seam.core.SeamUtil; -import org.jboss.tools.seam.core.project.facet.SeamRuntime; -import org.jboss.tools.seam.core.project.facet.SeamRuntimeManager; -import org.jboss.tools.seam.core.project.facet.SeamVersion; -import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataMode= lProperties; import org.jboss.tools.seam.internal.core.project.facet.SeamFacetInstallDa= taModelProvider; -import org.jboss.tools.seam.ui.wizard.SeamWizardUtils; -import org.maven.ide.eclipse.MavenPlugin; -import org.maven.ide.eclipse.core.IMavenConstants; import org.maven.ide.eclipse.project.IMavenProjectFacade; import org.maven.ide.eclipse.project.MavenProjectChangedEvent; -import org.maven.ide.eclipse.project.MavenProjectManager; import org.maven.ide.eclipse.project.configurator.AbstractProjectConfigura= tor; import org.maven.ide.eclipse.project.configurator.ProjectConfigurationRequ= est; -import org.osgi.service.prefs.BackingStoreException; = public class JSFProjectConfigurator extends AbstractProjectConfigurator { = @@ -92,7 +53,6 @@ @Override public void configure(ProjectConfigurationRequest request, IProgressMonitor monitor) throws CoreException { - // adds Seam capabilities if there are Seam dependencies MavenProject mavenProject =3D request.getMavenProject(); IProject project =3D request.getProject(); configureInternal(mavenProject,project, monitor); @@ -159,30 +119,28 @@ throws CoreException { if (!fproj.hasProjectFacet(jsfFacet)) { if (jsfVersionString.startsWith("1.1")) { //$NON-NLS-1$ - fproj.installProjectFacet(jsfVersion11, null, monitor); = + IDataModel model =3D MavenSeamActivator.getDefault().createJSFDataMode= l(fproj,jsfVersion11); + fproj.installProjectFacet(jsfVersion11, model, monitor); = } if (jsfVersionString.startsWith("1.2")) { //$NON-NLS-1$ - fproj.installProjectFacet(jsfVersion12, null, monitor); = + IDataModel model =3D MavenSeamActivator.getDefault().createJSFDataMode= l(fproj,jsfVersion12); + fproj.installProjectFacet(jsfVersion12, model, monitor); = } // FIXME if (jsfVersionString.startsWith("2.0")) { //$NON-NLS-1$ - fproj.installProjectFacet(jsfVersion12, null, monitor); = + IDataModel model =3D MavenSeamActivator.getDefault().createJSFDataMode= l(fproj,jsfVersion12); + fproj.installProjectFacet(jsfVersion12, model, monitor); = } } } - + = private String getJSFVersion(MavenProject mavenProject) { - List dependencies =3D mavenProject.getDependencies(); - for (Dependency dependency:dependencies) { - String groupId =3D dependency.getGroupId(); - if (groupId !=3D null && (JSF_API_GROUP_ID.equals(groupId) || JSF_AP= I2_GROUP_ID.equals(groupId)) ) { - String artifactId =3D dependency.getArtifactId(); - if (artifactId !=3D null && JSF_API_ARTIFACT_ID.equals(artifactId))= { - return dependency.getVersion(); - } = - } - } - return null; + String version =3D null; + version =3D MavenSeamActivator.getDefault().getDependencyVersion(mavenPr= oject, JSF_API_GROUP_ID, JSF_API_ARTIFACT_ID); + if (version =3D=3D null) { + version =3D MavenSeamActivator.getDefault().getDependencyVersion(mavenP= roject, JSF_API2_GROUP_ID, JSF_API_ARTIFACT_ID); + } + return version; } = } Added: trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/m= aven/seam/configurators/PortletProjectConfigurator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/mave= n/seam/configurators/PortletProjectConfigurator.java = (rev 0) +++ trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/mave= n/seam/configurators/PortletProjectConfigurator.java 2009-09-24 20:48:08 UT= C (rev 17720) @@ -0,0 +1,168 @@ +package org.jboss.tools.maven.seam.configurators; + +import org.apache.maven.project.MavenProject; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.jface.preference.IPreferenceStore; +import org.eclipse.jst.common.project.facet.core.libprov.ILibraryProvider; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDel= egate; +import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderFr= amework; +import org.eclipse.wst.common.componentcore.ModuleCoreNature; +import org.eclipse.wst.common.frameworks.datamodel.IDataModel; +import org.eclipse.wst.common.project.facet.core.IFacetedProject; +import org.eclipse.wst.common.project.facet.core.IProjectFacet; +import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion; +import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager; +import org.jboss.tools.maven.core.IJBossMavenConstants; +import org.jboss.tools.maven.core.internal.project.facet.MavenFacetInstall= DataModelProvider; +import org.jboss.tools.maven.seam.MavenSeamActivator; +import org.jboss.tools.portlet.core.IPortletConstants; +import org.jboss.tools.portlet.core.internal.project.facet.JSFPortletFacet= InstallDataModelProvider; +import org.jboss.tools.portlet.core.internal.project.facet.PortletFacetIns= tallDataModelProvider; +import org.maven.ide.eclipse.project.IMavenProjectFacade; +import org.maven.ide.eclipse.project.MavenProjectChangedEvent; +import org.maven.ide.eclipse.project.configurator.AbstractProjectConfigura= tor; +import org.maven.ide.eclipse.project.configurator.ProjectConfigurationRequ= est; + +public class PortletProjectConfigurator extends AbstractProjectConfigurato= r { + + private static final String PORTLET_API_GROUP_ID =3D "javax.portlet"; //$= NON-NLS-1$ + private static final String PORTLET_API_ARTIFACT_ID =3D "portlet-api"; //= $NON-NLS-1$ + + private static final String PORTLETBRIDGE_API_GROUP_ID =3D "org.jboss.por= tletbridge"; //$NON-NLS-1$ + private static final String PORTLETBRIDGE_API_ARTIFACT_ID =3D "portletbri= dge-api"; //$NON-NLS-1$ + = + protected static final IProjectFacet dynamicWebFacet; + protected static final IProjectFacetVersion dynamicWebVersion; + = + protected static final IProjectFacet jsfFacet; + protected static final IProjectFacet portletFacet; + protected static final IProjectFacetVersion portletVersion10; + protected static final IProjectFacetVersion portletVersion20; + protected static final IProjectFacet m2Facet; + protected static final IProjectFacetVersion m2Version; + protected static final IProjectFacetVersion jsfportletFacetVersion; + = + static { + dynamicWebFacet =3D ProjectFacetsManager.getProjectFacet("jst.web"); //$= NON-NLS-1$ + dynamicWebVersion =3D dynamicWebFacet.getVersion("2.5"); //$NON-NLS-1$ + portletFacet =3D ProjectFacetsManager.getProjectFacet("jboss.portlet"); = //$NON-NLS-1$ + portletVersion20 =3D portletFacet.getVersion("2.0"); //$NON-NLS-1$ + portletVersion10 =3D portletFacet.getVersion("1.0"); //$NON-NLS-1$ + m2Facet =3D ProjectFacetsManager.getProjectFacet("jboss.m2"); //$NON-NLS= -1$ + m2Version =3D m2Facet.getVersion("1.0"); //$NON-NLS-1$ + jsfFacet =3D ProjectFacetsManager.getProjectFacet("jst.jsf"); //$NON-NLS= -1$ + jsfportletFacetVersion =3D ProjectFacetsManager.getProjectFacet("jboss.j= sfportlet").getVersion("1.0"); //$NON-NLS-1$//$NON-NLS-2$ + } + = + @Override + public void configure(ProjectConfigurationRequest request, + IProgressMonitor monitor) throws CoreException { + MavenProject mavenProject =3D request.getMavenProject(); + IProject project =3D request.getProject(); + configureInternal(mavenProject,project, monitor); + } + = + private void configureInternal(MavenProject mavenProject,IProject project, + IProgressMonitor monitor) throws CoreException { + IPreferenceStore store =3D MavenSeamActivator.getDefault().getPreference= Store(); + boolean configurePortlet =3D store.getBoolean(MavenSeamActivator.CONFIGU= RE_PORTLET); + if (!configurePortlet) { + return; + } + = + String packaging =3D mavenProject.getPackaging(); + String portletVersion =3D MavenSeamActivator.getDefault().getDependen= cyVersion(mavenProject, PORTLET_API_GROUP_ID, PORTLET_API_ARTIFACT_ID); + String jsfportletVersion =3D MavenSeamActivator.getDefault().getDepen= dencyVersion(mavenProject, PORTLETBRIDGE_API_GROUP_ID, PORTLETBRIDGE_API_AR= TIFACT_ID); + if (portletVersion !=3D null) { + final IFacetedProject fproj =3D ProjectFacetsManager.create(project); + if ("war".equals(packaging)) { //$NON-NLS-1$ + installWarFacets(fproj, portletVersion, jsfportletVersion, monitor); + } + } + } + + + @Override + protected void mavenProjectChanged(MavenProjectChangedEvent event, + IProgressMonitor monitor) throws CoreException { + IMavenProjectFacade facade =3D event.getMavenProject(); + if(facade !=3D null) { + IProject project =3D facade.getProject(); + if(isWTPProject(project)) { + MavenProject mavenProject =3D facade.getMavenProject(monitor); + configureInternal(mavenProject, project, monitor); + } + } + super.mavenProjectChanged(event, monitor); + } + + private boolean isWTPProject(IProject project) { + return ModuleCoreNature.getModuleCoreNature(project) !=3D null; + } + = + private void installM2Facet(IFacetedProject fproj, IProgressMonitor monit= or) throws CoreException { + if (!fproj.hasProjectFacet(m2Facet)) { + IDataModel config =3D (IDataModel) new MavenFacetInstallDataModelProvid= er().create(); + config.setBooleanProperty(IJBossMavenConstants.MAVEN_PROJECT_EXISTS, tr= ue); + fproj.installProjectFacet(m2Version, config, monitor); + } + } + + = + private void installWarFacets(IFacetedProject fproj, String portletVersio= n, String jsfportletVersion, IProgressMonitor monitor) throws CoreException= { + = + if (!fproj.hasProjectFacet(dynamicWebFacet)) { + MavenSeamActivator.log("The project doesn't contain the Web Module face= t."); + } + installM2Facet(fproj, monitor); + installPortletFacet(fproj, portletVersion, jsfportletVersion, monitor); + } + + + private void installPortletFacet(IFacetedProject fproj, String portletVer= sionString, String jsfportletVersion, IProgressMonitor monitor) + throws CoreException { + if (!fproj.hasProjectFacet(portletFacet)) { + if (portletVersionString.startsWith("1.0")) { //$NON-NLS-1$ + IDataModel model =3D createPortletDataModel(fproj, portletVersion10); + fproj.installProjectFacet(portletVersion10, model, monitor); = + } + if (portletVersionString.startsWith("2.0")) { //$NON-NLS-1$ + IDataModel model =3D createPortletDataModel(fproj, portletVersion20); + fproj.installProjectFacet(portletVersion20, model, monitor); = + } + } + IPreferenceStore store =3D MavenSeamActivator.getDefault().getPreference= Store(); + boolean configureJSFPortlet =3D store.getBoolean(MavenSeamActivator.CONF= IGURE_JSFPORTLET); + if (!configureJSFPortlet) { + return; + } + if (fproj.hasProjectFacet(portletFacet) && fproj.hasProjectFacet(jsfFace= t) && jsfportletVersion !=3D null) { + = + if (!fproj.hasProjectFacet(jsfportletFacetVersion)) { + IDataModel model =3D createJSFPortletDataModel(fproj, jsfportletFacetV= ersion); + fproj.installProjectFacet(jsfportletFacetVersion, model, monitor); + } + = + } + } + + private IDataModel createPortletDataModel(IFacetedProject fproj, IProject= FacetVersion facetVersion) { + IDataModel config =3D (IDataModel) new PortletFacetInstallDataModelProvi= der().create(); + LibraryInstallDelegate libraryDelegate =3D new LibraryInstallDelegate(fp= roj, facetVersion); + ILibraryProvider provider =3D LibraryProviderFramework.getProvider("port= let-no-op-library-provider"); //$NON-NLS-1$ + libraryDelegate.setLibraryProvider(provider); + config.setProperty(IPortletConstants.PORTLET_LIBRARY_PROVIDER_DELEGATE, = libraryDelegate); + return config; + } + = + private IDataModel createJSFPortletDataModel(IFacetedProject fproj, IProj= ectFacetVersion facetVersion) { + IDataModel config =3D (IDataModel) new JSFPortletFacetInstallDataModelPr= ovider().create(); + LibraryInstallDelegate libraryDelegate =3D new LibraryInstallDelegate(fp= roj, facetVersion); + ILibraryProvider provider =3D LibraryProviderFramework.getProvider("jsfp= ortlet-no-op-library-provider"); //$NON-NLS-1$ + libraryDelegate.setLibraryProvider(provider); + config.setProperty(IPortletConstants.JSFPORTLET_LIBRARY_PROVIDER_DELEGAT= E, libraryDelegate); + return config; + } +} Modified: trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tool= s/maven/seam/configurators/SeamProjectConfigurator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/mave= n/seam/configurators/SeamProjectConfigurator.java 2009-09-24 17:29:48 UTC (= rev 17719) +++ trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/mave= n/seam/configurators/SeamProjectConfigurator.java 2009-09-24 20:48:08 UTC (= rev 17720) @@ -83,6 +83,10 @@ protected static final IProjectFacet m2Facet; protected static final IProjectFacetVersion m2Version; private static final IProjectFacet seamFacet; + private static final IProjectFacet portletFacet; + private static final IProjectFacet jsfportletFacet; + private static final IProjectFacet seamPortletFacet; + private static final IProjectFacetVersion seamPortletVersion; = static { seamFacet =3D ProjectFacetsManager.getProjectFacet("jst.seam"); //$NON-N= LS-1$ @@ -98,6 +102,10 @@ m2Version =3D m2Facet.getVersion("1.0"); //$NON-NLS-1$ ejbFacet =3D ProjectFacetsManager.getProjectFacet("jst.ejb"); //$NON-NLS= -1$ ejbVersion =3D ejbFacet.getVersion("3.0"); //$NON-NLS-1$ + portletFacet =3D ProjectFacetsManager.getProjectFacet("jboss.portlet"); = //$NON-NLS-1$ + jsfportletFacet =3D ProjectFacetsManager.getProjectFacet("jboss.jsfportl= et"); //$NON-NLS-1$ + seamPortletFacet =3D ProjectFacetsManager.getProjectFacet("jboss.seampor= tlet"); //$NON-NLS-1$ + seamPortletVersion =3D seamPortletFacet.getVersion("1.0"); //$NON-NLS-1$ } = @Override @@ -293,6 +301,16 @@ setModelProperty(model, prefs,ISeamFacetDataModelProperties.WEB_CONTEN= TS_FOLDER); } } + IPreferenceStore store =3D MavenSeamActivator.getDefault().getPreference= Store(); + boolean configureSeamPortlet =3D store.getBoolean(MavenSeamActivator.CON= FIGURE_SEAMPORTLET); + if (!configureSeamPortlet) { + return; + } + if (fproj.hasProjectFacet(seamFacet) && fproj.hasProjectFacet(portletFac= et) && fproj.hasProjectFacet(jsfportletFacet)) { + if (!fproj.hasProjectFacet(seamPortletFacet)) { + fproj.installProjectFacet(seamPortletVersion, null, monitor); + } + } } = private void setModelProperty(IDataModel model, IEclipsePreferences prefs= , String property) { @@ -305,7 +323,8 @@ private void installJSFFacet(IFacetedProject fproj, IProgressMonitor moni= tor) throws CoreException { if (!fproj.hasProjectFacet(jsfFacet)) { - fproj.installProjectFacet(jsfVersion, null, monitor); + IDataModel model =3D MavenSeamActivator.getDefault().createJSFDataModel= (fproj,jsfVersion); + fproj.installProjectFacet(jsfVersion, model, monitor); } } = Modified: trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tool= s/maven/seam/preferences/SeamConfiguratorPreferencePage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/mave= n/seam/preferences/SeamConfiguratorPreferencePage.java 2009-09-24 17:29:48 = UTC (rev 17719) +++ trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/mave= n/seam/preferences/SeamConfiguratorPreferencePage.java 2009-09-24 20:48:08 = UTC (rev 17720) @@ -21,6 +21,9 @@ private Button configureSeamRuntimeButton; private Button configureSeamArtifactsButton; private Button configureJSFButton; + private Button configurePortletButton; + private Button configureJSFPortletButton; + private Button configureSeamPortletButton; = @Override protected Control createContents(Composite parent) { @@ -63,6 +66,21 @@ boolean configureJSF =3D store.getBoolean(MavenSeamActivator.CONFIGURE_J= SF); configureJSFButton.setSelection(configureJSF); = + configurePortletButton =3D new Button(composite,SWT.CHECK); + configurePortletButton.setText("Configure JBoss Portlet Core facet when = importing Maven projects"); + boolean configurePortlet =3D store.getBoolean(MavenSeamActivator.CONFIGU= RE_PORTLET); + configurePortletButton.setSelection(configurePortlet); + = + configureJSFPortletButton =3D new Button(composite,SWT.CHECK); + configureJSFPortletButton.setText("Configure JBoss JSF Portlet facet whe= n importing Maven projects"); + boolean configureJSFPortlet =3D store.getBoolean(MavenSeamActivator.CONF= IGURE_JSFPORTLET); + configureJSFPortletButton.setSelection(configureJSFPortlet); + = + configureSeamPortletButton =3D new Button(composite,SWT.CHECK); + configureSeamPortletButton.setText("Configure JBoss Seam Portlet facet w= hen importing Maven projects"); + boolean configureSeamPortlet =3D store.getBoolean(MavenSeamActivator.CON= FIGURE_SEAMPORTLET); + configureJSFPortletButton.setSelection(configureSeamPortlet); + = return composite; } = @@ -75,9 +93,15 @@ configureSeamButton.setSelection(MavenSeamActivator.CONFIGURE_SEAM_VALUE= ); configureSeamRuntimeButton.setSelection(MavenSeamActivator.CONFIGURE_SEA= M_RUNTIME_VALUE); configureSeamArtifactsButton.setSelection(MavenSeamActivator.CONFIGURE_S= EAM_ARTIFACTS_VALUE); + configurePortletButton.setSelection(MavenSeamActivator.CONFIGURE_PORTLET= _VALUE); + configureJSFPortletButton.setSelection(MavenSeamActivator.CONFIGURE_JSFP= ORTLET_VALUE); + configureSeamPortletButton.setSelection(MavenSeamActivator.CONFIGURE_SEA= MPORTLET_VALUE); IPreferenceStore store =3D MavenSeamActivator.getDefault().getPreference= Store(); store.setValue(MavenSeamActivator.CONFIGURE_SEAM, MavenSeamActivator.CON= FIGURE_SEAM_VALUE); store.setValue(MavenSeamActivator.CONFIGURE_JSF, MavenSeamActivator.CONF= IGURE_JSF_VALUE); + store.setValue(MavenSeamActivator.CONFIGURE_JSFPORTLET, MavenSeamActivat= or.CONFIGURE_JSFPORTLET_VALUE); + store.setValue(MavenSeamActivator.CONFIGURE_SEAMPORTLET, MavenSeamActiva= tor.CONFIGURE_SEAMPORTLET_VALUE); + store.setValue(MavenSeamActivator.CONFIGURE_PORTLET, MavenSeamActivator.= CONFIGURE_PORTLET_VALUE); store.setValue(MavenSeamActivator.CONFIGURE_SEAM_RUNTIME, MavenSeamActiv= ator.CONFIGURE_SEAM_RUNTIME_VALUE); store.setValue(MavenSeamActivator.CONFIGURE_SEAM_ARTIFACTS, MavenSeamAct= ivator.CONFIGURE_SEAM_ARTIFACTS_VALUE); configureSeamRuntimeButton.setEnabled(configureSeamButton.getSelection()= ); @@ -89,7 +113,10 @@ public boolean performOk() { IPreferenceStore store =3D MavenSeamActivator.getDefault().getPreference= Store(); store.setValue(MavenSeamActivator.CONFIGURE_SEAM, configureSeamButton.ge= tSelection()); + store.setValue(MavenSeamActivator.CONFIGURE_PORTLET, configurePortletBut= ton.getSelection()); store.setValue(MavenSeamActivator.CONFIGURE_JSF, configureJSFButton.getS= election()); + store.setValue(MavenSeamActivator.CONFIGURE_JSFPORTLET, configureJSFPort= letButton.getSelection()); + store.setValue(MavenSeamActivator.CONFIGURE_SEAMPORTLET, configureSeamPo= rtletButton.getSelection()); store.setValue(MavenSeamActivator.CONFIGURE_SEAM_RUNTIME, configureSeamR= untimeButton.getSelection()); store.setValue(MavenSeamActivator.CONFIGURE_SEAM_ARTIFACTS, configureSea= mArtifactsButton.getSelection()); return super.performOk(); Modified: trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tool= s/maven/seam/preferences/SeamConfiguratorPreferencesInitializer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/mave= n/seam/preferences/SeamConfiguratorPreferencesInitializer.java 2009-09-24 1= 7:29:48 UTC (rev 17719) +++ trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/mave= n/seam/preferences/SeamConfiguratorPreferencesInitializer.java 2009-09-24 2= 0:48:08 UTC (rev 17720) @@ -25,6 +25,15 @@ node.putBoolean( MavenSeamActivator.CONFIGURE_JSF, MavenSeamActivator.CONFIGURE_JSF_VALUE); + node.putBoolean( + MavenSeamActivator.CONFIGURE_PORTLET, + MavenSeamActivator.CONFIGURE_PORTLET_VALUE); + node.putBoolean( + MavenSeamActivator.CONFIGURE_JSFPORTLET, + MavenSeamActivator.CONFIGURE_JSFPORTLET_VALUE); + node.putBoolean( + MavenSeamActivator.CONFIGURE_SEAMPORTLET, + MavenSeamActivator.CONFIGURE_SEAMPORTLET_VALUE); } = } --===============8164843192245679117==-- From jbosstools-commits at lists.jboss.org Thu Sep 24 20:39:53 2009 Content-Type: multipart/mixed; boundary="===============7304235066075171974==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17721 - trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide. Date: Thu, 24 Sep 2009 20:39:53 -0400 Message-ID: <200909250039.n8P0drqE029479@svn01.web.mwc.hst.phx2.redhat.com> --===============7304235066075171974== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-24 20:39:53 -0400 (Thu, 24 Sep 2009) New Revision: 17721 Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css= /test/jbide/InputFractionalValueTest_JBIDE4790.java Log: fix tests compilation errors Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/= jst/css/test/jbide/InputFractionalValueTest_JBIDE4790.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/InputFractionalValueTest_JBIDE4790.java 2009-09-24 20:48:08 UT= C (rev 17720) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/InputFractionalValueTest_JBIDE4790.java 2009-09-25 00:39:53 UT= C (rev 17721) @@ -82,7 +82,7 @@ StyleAttributes styleAttributes =3D page.getStyleAttributes(); = assertEquals(testedValue, styleAttributes - .getAttribute(TEST_CSS_ATTRIBUTE_NAME)); + .get(TEST_CSS_ATTRIBUTE_NAME)); = String[] parsedTestValue =3D Util.convertExtString(testedValue); = @@ -90,7 +90,7 @@ = String newTestedValue =3D parsedTestValue[0] + "." + parsedTestValue[1];= //$NON-NLS-1$ = - styleAttributes.getAttributeMap().put(TEST_CSS_ATTRIBUTE_NAME, + styleAttributes.put(TEST_CSS_ATTRIBUTE_NAME, newTestedValue); = testedValue =3D declaration.getPropertyValue(TEST_CSS_ATTRIBUTE_NAME); @@ -107,7 +107,7 @@ newTestedValue =3D parsedTestValue[0] + "3" + parsedTestValue[1]; //$NON= -NLS-1$ = try { - styleAttributes.getAttributeMap().put(TEST_CSS_ATTRIBUTE_NAME, + styleAttributes.put(TEST_CSS_ATTRIBUTE_NAME, newTestedValue); = } catch (DOMException e) { --===============7304235066075171974==-- From jbosstools-commits at lists.jboss.org Thu Sep 24 21:20:05 2009 Content-Type: multipart/mixed; boundary="===============4583570189087151695==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17722 - in trunk: jsf/features/org.jboss.tools.richfaces.feature and 15 other directories. Date: Thu, 24 Sep 2009 21:20:05 -0400 Message-ID: <200909250120.n8P1K5B6003620@svn01.web.mwc.hst.phx2.redhat.com> --===============4583570189087151695== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-24 21:20:03 -0400 (Thu, 24 Sep 2009) New Revision: 17722 Removed: trunk/jsf/plugins/org.jboss.tools.jsf/meta/ Modified: trunk/common/plugins/org.jboss.tools.common.projecttemplates/src/org/jbo= ss/tools/common/projecttemplates/ProjectTemplatesPlugin.java trunk/jsf/features/org.jboss.tools.richfaces.feature/feature.xml trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF trunk/jsf/plugins/org.jboss.tools.jsf.ui/build.properties trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF trunk/jsf/plugins/org.jboss.tools.jsf/build.properties trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/project/ca= pabilities/JSFCapabilitiesLoader.java trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF trunk/jst/plugins/org.jboss.tools.jst.jsp/build.properties trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/META-INF/MANIFEST.MF trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/build.properties trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/plugin.xml trunk/jst/plugins/org.jboss.tools.jst.web.tiles/META-INF/MANIFEST.MF trunk/jst/plugins/org.jboss.tools.jst.web.tiles/build.properties trunk/jst/plugins/org.jboss.tools.jst.web.tiles/plugin.xml trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF trunk/jst/plugins/org.jboss.tools.jst.web.ui/build.properties trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml trunk/jst/plugins/org.jboss.tools.jst.web/META-INF/MANIFEST.MF trunk/jst/plugins/org.jboss.tools.jst.web/build.properties trunk/jst/plugins/org.jboss.tools.jst.web/plugin.xml Log: https://jira.jboss.org/jira/browse/JBIDE-3628 - Plugins should be .jar's no= t directories for efficiency sake to make Plug-ins were converted to jars: jsf jsf.ui jst.web jst.web.ui jst.web.tiles jst.web.tiles.ui jst.jsp common.projecttemplates Modified: trunk/common/plugins/org.jboss.tools.common.projecttemplates/src/= org/jboss/tools/common/projecttemplates/ProjectTemplatesPlugin.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.projecttemplates/src/org/jb= oss/tools/common/projecttemplates/ProjectTemplatesPlugin.java 2009-09-25 00= :39:53 UTC (rev 17721) +++ trunk/common/plugins/org.jboss.tools.common.projecttemplates/src/org/jb= oss/tools/common/projecttemplates/ProjectTemplatesPlugin.java 2009-09-25 01= :20:03 UTC (rev 17722) @@ -21,6 +21,7 @@ import org.eclipse.core.runtime.Status; import org.eclipse.ui.plugin.AbstractUIPlugin; import org.jboss.tools.common.util.FileUtil; +import org.jboss.tools.common.zip.UnzipOperation; import org.osgi.framework.Bundle; import org.osgi.framework.BundleContext; = @@ -45,34 +46,28 @@ copyProjectTemplates(); } = - public static String getInstallPath() { + + void copyProjectTemplates() throws IOException { Bundle bundle =3D Platform.getBundle(PLUGIN_ID); - URL url =3D null; - try { - url =3D bundle =3D=3D null ? null : FileLocator.resolve(bundle.getEntry= ("/")); //$NON-NLS-1$ - } catch (IOException e) { - url =3D bundle.getEntry("/"); //$NON-NLS-1$ + File location =3D Platform.getStateLocation(bundle).toFile(); + File install =3D FileLocator.getBundleFile(bundle); = + if(install.isDirectory()) { + FileFilter filter =3D new FileFilter() { + public boolean accept(File pathname) { + return pathname !=3D null = + && !"CVS".equals(pathname.getName()) //$NON-NLS-1$ + && !".svn".equalsIgnoreCase(pathname.getName()); //$NON-NLS-1$ + } + }; + copy(location, install, "templates", filter); //$NON-NLS-1$ + copy(location, install, "lib", filter); //$NON-NLS-1$ + } else { + UnzipOperation unzip =3D new UnzipOperation(install); + unzip.execute(location, "templates"); + unzip.execute(location, "lib"); } - return (url =3D=3D null) ? null : url.getPath(); } = - - void copyProjectTemplates() { - Bundle b =3D Platform.getBundle(PLUGIN_ID); - File location =3D Platform.getStateLocation(b).toFile(); - File install =3D new File(getInstallPath()); - if(!install.isDirectory()) return; - FileFilter filter =3D new FileFilter() { - public boolean accept(File pathname) { - return pathname !=3D null = - && !"CVS".equals(pathname.getName()) //$NON-NLS-1$ - && !".svn".equalsIgnoreCase(pathname.getName()); //$NON-NLS-1$ - } - }; - copy(location, install, "templates", filter); //$NON-NLS-1$ - copy(location, install, "lib", filter); //$NON-NLS-1$ - } - = private void copy(File location, File install, String name, FileFilter fi= lter) { location =3D new File(location, name); //if(location.isDirectory()) return; @@ -95,5 +90,4 @@ static public void log(Exception ex) { getDefault().getLog().log(new Status(Status.ERROR, PLUGIN_ID, Status.OK,= "No message", ex)); //$NON-NLS-1$ } - = } \ No newline at end of file Modified: trunk/jsf/features/org.jboss.tools.richfaces.feature/feature.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/features/org.jboss.tools.richfaces.feature/feature.xml 2009-0= 9-25 00:39:53 UTC (rev 17721) +++ trunk/jsf/features/org.jboss.tools.richfaces.feature/feature.xml 2009-0= 9-25 01:20:03 UTC (rev 17722) @@ -1,322 +1,330 @@ - - - - - %description - - - - %copyright - - - + + + + + %description + + + + %copyright + + + Red Hat, Inc. licenses these features and plugins to you under certain open source licenses (or aggregations of such licenses), which in a particular case may include the Eclipse Public License, the GNU Lesser General Public License, and/or certain other open source licenses. For precise licensing details, consult the corresponding source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, -Raleigh NC 27606 USA. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +Raleigh NC 27606 USA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Modified: trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF 2009-09-25 0= 0:39:53 UTC (rev 17721) +++ trunk/jsf/plugins/org.jboss.tools.jsf/META-INF/MANIFEST.MF 2009-09-25 0= 1:20:03 UTC (rev 17722) @@ -1,6 +1,5 @@ Manifest-Version: 1.0 Bundle-Name: %pluginName -Bundle-ClassPath: jsf.jar Bundle-Activator: org.jboss.tools.jsf.JSFModelPlugin Bundle-ManifestVersion: 2 Bundle-Vendor: %providerName Modified: trunk/jsf/plugins/org.jboss.tools.jsf/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf/build.properties 2009-09-25 00:39= :53 UTC (rev 17721) +++ trunk/jsf/plugins/org.jboss.tools.jsf/build.properties 2009-09-25 01:20= :03 UTC (rev 17722) @@ -1,10 +1,11 @@ -source.jsf.jar =3D src/,\ - resources/ bin.includes =3D plugin.xml,\ META-INF/,\ plugin.properties,\ about.html,\ dtds/,\ - jsf.jar,\ - images/ -jars.compile.order =3D jsf.jar + images/,\ + . +jars.compile.order =3D . +output.. =3D bin/ +source.. =3D src/,\ + resources/ Modified: trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml 2009-09-25 00:39:53 UT= C (rev 17721) +++ trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml 2009-09-25 01:20:03 UT= C (rev 17722) @@ -419,7 +419,7 @@ + uri=3D"platform:/plugin/org.jboss.tools.jsf/dtds/facelet-taglib_= 1_0.dtd"/> = Modified: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/pro= ject/capabilities/JSFCapabilitiesLoader.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/project/c= apabilities/JSFCapabilitiesLoader.java 2009-09-25 00:39:53 UTC (rev 17721) +++ trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/project/c= apabilities/JSFCapabilitiesLoader.java 2009-09-25 01:20:03 UTC (rev 17722) @@ -12,6 +12,7 @@ = import java.io.File; = +import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.Platform; import org.osgi.framework.Bundle; = @@ -39,8 +40,8 @@ String fileLocation =3D stateLocation + "/templates/JSFCapabilities.xml"; File f =3D new File(fileLocation); if(!f.exists()) { - String install =3D ProjectTemplatesPlugin.getInstallPath(); - File source =3D new File(install, "templates/JSFCapabilities.xml"); + IPath install =3D ProjectTemplatesPlugin.getTemplateStatePath(); + File source =3D new File(install.toFile(), "templates/JSFCapabilities.x= ml"); FileUtil.copyFile(source, f, true); } return f; Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF 2009-09-2= 5 00:39:53 UTC (rev 17721) +++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF 2009-09-2= 5 01:20:03 UTC (rev 17722) @@ -1,6 +1,5 @@ Manifest-Version: 1.0 Bundle-Name: %pluginName -Bundle-ClassPath: jsfui.jar Bundle-Activator: org.jboss.tools.jsf.ui.JsfUiPlugin Bundle-ManifestVersion: 2 Bundle-Vendor: %providerName Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.ui/build.properties 2009-09-25 00= :39:53 UTC (rev 17721) +++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/build.properties 2009-09-25 01= :20:03 UTC (rev 17722) @@ -3,7 +3,10 @@ plugin.properties,\ images/,\ about.html,\ - META-INF/ -source.jsfui.jar =3D src/,\ - resources/ -jars.compile.order =3D jsfui.jar + META-INF/,\ + . +jars.compile.order =3D jsfui.jar,\ + . +output.. =3D bin/ +source.. =3D src/,\ + resources/ Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF 2009-09-= 25 00:39:53 UTC (rev 17721) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF 2009-09-= 25 01:20:03 UTC (rev 17722) @@ -1,7 +1,6 @@ Manifest-Version: 1.0 Bundle-ActivationPolicy: lazy Bundle-Name: %Bundle-Name.0 -Bundle-ClassPath: jspeditor.jar Bundle-Activator: org.jboss.tools.jst.jsp.JspEditorPlugin Bundle-ManifestVersion: 2 Bundle-Vendor: %providerName Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/build.properties 2009-09-25 0= 0:39:53 UTC (rev 17721) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/build.properties 2009-09-25 0= 1:20:03 UTC (rev 17722) @@ -1,10 +1,12 @@ -source.jspeditor.jar =3D src/,\ - resources/ bin.includes =3D templates/,\ plugin.xml,\ plugin.properties,\ images/,\ about.html,\ META-INF/,\ - jspeditor.jar + . src.includes =3D resources/ +jars.compile.order =3D . +output.. =3D bin/ +source.. =3D resources/,\ + src/ Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml 2009-09-25 00:39:5= 3 UTC (rev 17721) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml 2009-09-25 01:20:0= 3 UTC (rev 17722) @@ -124,7 +124,7 @@ = - + + uri=3D"platform:/plugin/org.jboss.tools.jst.web/catalog/ja= vaee_5.xsd" /> = Modified: trunk/jst/plugins/org.jboss.tools.jst.web.tiles/META-INF/MANIFEST= .MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.tiles/META-INF/MANIFEST.MF 20= 09-09-25 00:39:53 UTC (rev 17721) +++ trunk/jst/plugins/org.jboss.tools.jst.web.tiles/META-INF/MANIFEST.MF 20= 09-09-25 01:20:03 UTC (rev 17722) @@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-Name: %Bundle-Name.0 -Bundle-ClassPath: web-tiles.jar +Bundle-ClassPath: . Bundle-Vendor: %providerName Bundle-SymbolicName: org.jboss.tools.jst.web.tiles;singleton:=3Dtrue Bundle-Localization: plugin Modified: trunk/jst/plugins/org.jboss.tools.jst.web.tiles/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.tiles/build.properties 2009-0= 9-25 00:39:53 UTC (rev 17721) +++ trunk/jst/plugins/org.jboss.tools.jst.web.tiles/build.properties 2009-0= 9-25 01:20:03 UTC (rev 17722) @@ -1,10 +1,10 @@ -jars.compile.order =3D web-tiles.jar -source.web-tiles.jar =3D src/,\ - resources/ -output.web-tiles.jar =3D /bin +jars.compile.order =3D . +source.. =3D src/,\ + resources/ +output.. =3D /bin src.includes =3D src/,\ resources/ -bin.includes =3D web-tiles.jar,\ +bin.includes =3D .,\ plugin.xml,\ plugin.properties,\ dtds/,\ Modified: trunk/jst/plugins/org.jboss.tools.jst.web.tiles/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.tiles/plugin.xml 2009-09-25 0= 0:39:53 UTC (rev 17721) +++ trunk/jst/plugins/org.jboss.tools.jst.web.tiles/plugin.xml 2009-09-25 0= 1:20:03 UTC (rev 17722) @@ -88,8 +88,8 @@ + uri=3D"platform:/plugin/org.jboss.tools.jst.web.tiles/dtds/tiles= _config_1_1.dtd"/> = - \ No newline at end of file + Modified: trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/META-INF/MANIF= EST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/META-INF/MANIFEST.MF= 2009-09-25 00:39:53 UTC (rev 17721) +++ trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/META-INF/MANIFEST.MF= 2009-09-25 01:20:03 UTC (rev 17722) @@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-Name: %pluginName -Bundle-ClassPath: tilesui.jar +Bundle-ClassPath: . Bundle-Activator: org.jboss.tools.jst.web.tiles.ui.TilesUIPlugin Bundle-Vendor: %providerName Bundle-SymbolicName: org.jboss.tools.jst.web.tiles.ui;singleton:=3Dtrue Modified: trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/build.properti= es =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/build.properties 200= 9-09-25 00:39:53 UTC (rev 17721) +++ trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/build.properties 200= 9-09-25 01:20:03 UTC (rev 17722) @@ -1,10 +1,10 @@ -jars.compile.order =3D tilesui.jar -source.tilesui.jar =3D src/,\ - resources/ -output.tilesui.jar =3D /bin +jars.compile.order =3D . +source.. =3D src/,\ + resources/ +output.. =3D /bin src.includes =3D src/,\ resources/ -bin.includes =3D tilesui.jar,\ +bin.includes =3D .,\ plugin.xml,\ plugin.properties,\ images/,\ Modified: trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/plugin.xml 2009-09-2= 5 00:39:53 UTC (rev 17721) +++ trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/plugin.xml 2009-09-2= 5 01:20:03 UTC (rev 17722) @@ -4,7 +4,7 @@ = - + @@ -44,7 +44,7 @@ - + Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF 2009-= 09-25 00:39:53 UTC (rev 17721) +++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF 2009-= 09-25 01:20:03 UTC (rev 17722) @@ -2,7 +2,6 @@ Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-Name: %Bundle-Name.0 -Bundle-ClassPath: webui.jar Bundle-Activator: org.jboss.tools.jst.web.ui.WebUiPlugin Bundle-Vendor: %providerName Bundle-SymbolicName: org.jboss.tools.jst.web.ui;singleton:=3Dtrue Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.ui/build.properties 2009-09-2= 5 00:39:53 UTC (rev 17721) +++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/build.properties 2009-09-2= 5 01:20:03 UTC (rev 17722) @@ -1,7 +1,9 @@ -source.webui.jar =3D src/ bin.includes =3D plugin.xml,\ plugin.properties,\ images/,\ about.html,\ META-INF/,\ - webui.jar + . +jars.compile.order =3D . +source.. =3D src/ +output.. =3D bin/ Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml 2009-09-25 00:3= 9:53 UTC (rev 17721) +++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml 2009-09-25 01:2= 0:03 UTC (rev 17722) @@ -30,10 +30,10 @@ class=3D"org.jboss.tools.jst.web.ui.editors.WebCompoundEditor" = contributorClass=3D"org.jboss.tools.common.model.ui.texteditors.M= ultiPageContributor" = entities=3D"FileWebApp,FileWebApp24,FileWebApp25" = - icon=3D"images/xstudio/editors/webapp_file.gif" = + icon=3D"$nl$/images/xstudio/editors/webapp_file.gif" = name=3D"%editors.web.name"> - + @@ -44,7 +44,7 @@ @@ -52,7 +52,7 @@ @@ -95,7 +95,7 @@ category=3D"org.jboss.tools.jst.web" class=3D"org.jboss.tools.jst.web.ui.wizards.newfile.NewCSSFile= Wizard" finalPerspective=3D"org.jboss.tools.jst.web.ui.WebDevelopmentP= erspective" - icon=3D"images/xstudio/wizards/new_css_file.gif" + icon=3D"$nl$/images/xstudio/wizards/new_css_file.gif" id=3D"org.jboss.tools.jst.web.ui.wizards.newfile.NewCSSFileWiz= ard" name=3D"%NewWizard_CSSFile" preferredPerspectives=3D"org.jboss.tools.jst.web.ui.WebDevelop= mentPerspective" @@ -110,7 +110,7 @@ category=3D"org.jboss.tools.jst.web" class=3D"org.jboss.tools.jst.web.ui.wizards.css.NewCSSClassWiz= ard" finalPerspective=3D"org.jboss.tools.jst.web.ui.WebDevelopmentP= erspective" - icon=3D"images/xstudio/wizards/new_css_class.gif" + icon=3D"$nl$/images/xstudio/wizards/new_css_class.gif" id=3D"org.jboss.tools.jst.web.ui.wizards.newfile.NewCSSClassWi= zard" name=3D"%NewWizard_CSSClass" preferredPerspectives=3D"org.jboss.tools.jst.web.ui.WebDevelop= mentPerspective" @@ -125,7 +125,7 @@ category=3D"org.jboss.tools.jst.web" class=3D"org.jboss.tools.jst.web.ui.wizards.newfile.NewJSFileW= izard" finalPerspective=3D"org.jboss.tools.jst.web.ui.WebDevelopmentP= erspective" - icon=3D"images/xstudio/wizards/new_js_file.gif" + icon=3D"$nl$/images/xstudio/wizards/new_js_file.gif" id=3D"org.jboss.tools.jst.web.ui.wizards.newfile.NewJSFileWiza= rd" name=3D"%NewWizard_JSFile" preferredPerspectives=3D"org.jboss.tools.jst.web.ui.WebDevelop= mentPerspective" @@ -140,7 +140,7 @@ category=3D"org.jboss.tools.jst.web" class=3D"org.jboss.tools.jst.web.ui.wizards.newfile.NewWebFile= Wizard" finalPerspective=3D"org.jboss.tools.jst.web.ui.WebDevelopmentP= erspective" - icon=3D"images/xstudio/wizards/new_webapp_file.gif" + icon=3D"$nl$/images/xstudio/wizards/new_webapp_file.gif" id=3D"org.jboss.tools.jst.web.ui.wizards.newfile.NewWebFileWiz= ard" name=3D"%NewWizard_WebDescriptor" preferredPerspectives=3D"org.jboss.tools.jst.web.ui.WebDevelop= mentPerspective" @@ -155,7 +155,7 @@ category=3D"org.jboss.tools.jst.web" class=3D"org.jboss.tools.common.model.ui.wizard.newfile.NewJSP= FileWizard" finalPerspective=3D"org.jboss.tools.jst.web.ui.WebDevelopmentP= erspective" - icon=3D"images/xstudio/wizards/new_jsp_file.gif" + icon=3D"$nl$/images/xstudio/wizards/new_jsp_file.gif" id=3D"org.jboss.tools.common.model.ui.wizard.newfile.NewJSPFil= eWizard" name=3D"%NewWizard_JSPFile" preferredPerspectives=3D"org.jboss.tools.jst.web.ui.WebDevelop= mentPerspective" @@ -170,7 +170,7 @@ category=3D"org.jboss.tools.jst.web" class=3D"org.jboss.tools.common.model.ui.wizard.newfile.NewXHT= MLFileWizard" finalPerspective=3D"org.jboss.tools.jst.web.ui.WebDevelopmentP= erspective" - icon=3D"images/xstudio/wizards/new_html_file.gif" + icon=3D"$nl$/images/xstudio/wizards/new_html_file.gif" id=3D"org.jboss.tools.common.model.ui.wizard.newfile.NewXHTMLF= ileWizard" name=3D"%NewWizard_XHTMLFile" preferredPerspectives=3D"org.jboss.tools.jst.web.ui.WebDevelop= mentPerspective" @@ -185,7 +185,7 @@ category=3D"org.jboss.tools.jst.web" class=3D"org.jboss.tools.common.model.ui.wizard.newfile.NewHTM= LFileWizard" finalPerspective=3D"org.jboss.tools.jst.web.ui.WebDevelopmentP= erspective" - icon=3D"images/xstudio/wizards/new_html_file.gif" + icon=3D"$nl$/images/xstudio/wizards/new_html_file.gif" id=3D"org.jboss.tools.common.model.ui.wizard.newfile.NewHTMLFi= leWizard" name=3D"%NewWizard_HTMLFile" preferredPerspectives=3D"org.jboss.tools.jst.web.ui.WebDevelop= mentPerspective" @@ -199,7 +199,7 @@ @@ -213,7 +213,7 @@ category=3D"org.jboss.tools.jst.web" class=3D"org.jboss.tools.jst.web.ui.wizards.newfile.NewTLDFile= Wizard" finalPerspective=3D"org.jboss.tools.jst.web.ui.WebDevelopmentP= erspective" - icon=3D"images/xstudio/wizards/new_taglibs_file.gif" + icon=3D"$nl$/images/xstudio/wizards/new_taglibs_file.gif" id=3D"org.jboss.tools.jst.web.ui.wizards.newfile.NewTLDFileWiz= ard" name=3D"%NewWizard_TLDFile" preferredPerspectives=3D"org.jboss.tools.jst.web.ui.WebDevelop= mentPerspective" @@ -229,9 +229,9 @@ - + - + = @@ -309,7 +309,7 @@ = - + = @@ -436,7 +436,7 @@ --===============6151049275498318551== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-25 01:49:39 -0400 (Fri, 25 Sep 2009) New Revision: 17723 Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hiber= nate/eclipse/console/wizards/NewConfigurationWizardPage.java Log: https://jira.jboss.org/jira/browse/JBIDE-4917 Hibernate Configuration File = (cfg.xml) wizard doesn't initialize 'Driver Class' and 'Connection URL' acc= ording to default value 'DB2' selected in "Database Dialect' field fixed by removing = combo.select(0); Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/or= g/hibernate/eclipse/console/wizards/NewConfigurationWizardPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibe= rnate/eclipse/console/wizards/NewConfigurationWizardPage.java 2009-09-25 01= :20:03 UTC (rev 17722) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibe= rnate/eclipse/console/wizards/NewConfigurationWizardPage.java 2009-09-25 05= :49:39 UTC (rev 17723) @@ -148,7 +148,6 @@ label.setText(HibernateConsoleMessages.NewConfigurationWizardPage_= database_dialect); dialectCombo =3D new Combo(container, SWT.NULL); fillHerUp(dialectCombo, helper.getDialectNames() ); - dialectCombo.select(0); gd =3D new GridData(GridData.FILL_HORIZONTAL); gd.grabExcessHorizontalSpace =3D true; dialectCombo.setLayoutData(gd); --===============6151049275498318551==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 03:38:06 2009 Content-Type: multipart/mixed; boundary="===============3682501406183417730==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17724 - in trunk: bpel/features/org.jboss.tools.bpel.feature and 19 other directories. Date: Fri, 25 Sep 2009 03:38:06 -0400 Message-ID: <200909250738.n8P7c674013096@svn01.web.mwc.hst.phx2.redhat.com> --===============3682501406183417730== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-25 03:38:05 -0400 (Fri, 25 Sep 2009) New Revision: 17724 Modified: trunk/archives/features/org.jboss.ide.eclipse.archives.feature/feature.x= ml trunk/bpel/features/org.jboss.tools.bpel.feature/feature.xml trunk/bpel/plugins/org.eclipse.bpel.apache.ode.deploy.model/META-INF/MAN= IFEST.MF trunk/bpel/plugins/org.eclipse.bpel.apache.ode.deploy.model/build.proper= ties trunk/bpel/plugins/org.eclipse.bpel.apache.ode.deploy.ui/build.properties trunk/bpel/plugins/org.eclipse.bpel.apache.ode.runtime/build.properties trunk/bpel/plugins/org.eclipse.bpel.common.model/META-INF/MANIFEST.MF trunk/bpel/plugins/org.eclipse.bpel.common.model/build.properties trunk/bpel/plugins/org.eclipse.bpel.common.ui/META-INF/MANIFEST.MF trunk/bpel/plugins/org.eclipse.bpel.common.ui/build.properties trunk/bpel/plugins/org.eclipse.bpel.common.ui/src/org/eclipse/bpel/commo= n/ui/CommonUIPlugin.java trunk/bpel/plugins/org.eclipse.bpel.model/META-INF/MANIFEST.MF trunk/bpel/plugins/org.eclipse.bpel.model/build.properties trunk/bpel/plugins/org.eclipse.bpel.runtimes/META-INF/MANIFEST.MF trunk/bpel/plugins/org.eclipse.bpel.runtimes/build.properties trunk/bpel/plugins/org.eclipse.bpel.validator/.classpath trunk/bpel/plugins/org.eclipse.bpel.validator/META-INF/MANIFEST.MF trunk/bpel/plugins/org.eclipse.bpel.validator/build.properties trunk/bpel/plugins/org.eclipse.bpel.xpath10/.classpath trunk/bpel/plugins/org.eclipse.bpel.xpath10/META-INF/MANIFEST.MF trunk/bpel/plugins/org.eclipse.bpel.xpath10/build.properties trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/build.properties trunk/common/plugins/org.jboss.tools.common.gef/build.properties Log: https://jira.jboss.org/jira/browse/JBIDE-3628 - Plugins should be .jar's no= t directories for efficiency sake to make Plug-ins were converted to jars: some bpel plug-ins converted to jars Modified: trunk/archives/features/org.jboss.ide.eclipse.archives.feature/fe= ature.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/archives/features/org.jboss.ide.eclipse.archives.feature/feature.= xml 2009-09-25 05:49:39 UTC (rev 17723) +++ trunk/archives/features/org.jboss.ide.eclipse.archives.feature/feature.= xml 2009-09-25 07:38:05 UTC (rev 17724) @@ -14,7 +14,8 @@ %copyright = - Red Hat, Inc. licenses these features and plugins to you under + + Red Hat, Inc. licenses these features and plugins to you under certain open source licenses (or aggregations of such licenses), which = in a particular case may include the Eclipse Public License, the GNU = Lesser General Public License, and/or certain other open source = @@ -47,7 +48,8 @@ id=3D"org.jboss.ide.eclipse.archives.core" download-size=3D"0" install-size=3D"0" - version=3D"0.0.0"/> + version=3D"0.0.0" + unpack=3D"false"/> = - - - - %description - - - - %copyright - - - - %license - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + %description + + + + %copyright + + + + %license + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Modified: trunk/bpel/plugins/org.eclipse.bpel.apache.ode.deploy.model/META-= INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.apache.ode.deploy.model/META-INF/MA= NIFEST.MF 2009-09-25 05:49:39 UTC (rev 17723) +++ trunk/bpel/plugins/org.eclipse.bpel.apache.ode.deploy.model/META-INF/MA= NIFEST.MF 2009-09-25 07:38:05 UTC (rev 17724) @@ -3,7 +3,6 @@ Bundle-Name: ODE Deploy Descriptor EMF Model Bundle-SymbolicName: org.eclipse.bpel.apache.ode.deploy.model; singleton:= =3Dtrue Bundle-Version: 0.4.0.qualifier -Bundle-ClassPath: . Bundle-Vendor: Eclipse.org Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/bpel/plugins/org.eclipse.bpel.apache.ode.deploy.model/build= .properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.apache.ode.deploy.model/build.prope= rties 2009-09-25 05:49:39 UTC (rev 17723) +++ trunk/bpel/plugins/org.eclipse.bpel.apache.ode.deploy.model/build.prope= rties 2009-09-25 07:38:05 UTC (rev 17724) @@ -4,12 +4,10 @@ # # $Id: build.properties,v 1.2 2008/11/08 13:59:16 smoser Exp $ = -bin.includes =3D .,\ - model/,\ +bin.includes =3D model/,\ META-INF/,\ plugin.xml,\ - plugin.properties,\ - bin/ + plugin.properties jars.compile.order =3D . -source.. =3D src/ output.. =3D bin/ +source.. =3D src/ Modified: trunk/bpel/plugins/org.eclipse.bpel.apache.ode.deploy.ui/build.pr= operties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.apache.ode.deploy.ui/build.properti= es 2009-09-25 05:49:39 UTC (rev 17723) +++ trunk/bpel/plugins/org.eclipse.bpel.apache.ode.deploy.ui/build.properti= es 2009-09-25 07:38:05 UTC (rev 17724) @@ -3,5 +3,4 @@ bin.includes =3D plugin.xml,\ META-INF/,\ .,\ - icons/,\ - bin/ + icons/ Modified: trunk/bpel/plugins/org.eclipse.bpel.apache.ode.runtime/build.prop= erties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.apache.ode.runtime/build.properties= 2009-09-25 05:49:39 UTC (rev 17723) +++ trunk/bpel/plugins/org.eclipse.bpel.apache.ode.runtime/build.properties= 2009-09-25 07:38:05 UTC (rev 17724) @@ -3,7 +3,6 @@ bin.includes =3D META-INF/,\ .,\ plugin.xml,\ - bin/,\ definition/,\ icons/,\ plugin.properties Modified: trunk/bpel/plugins/org.eclipse.bpel.common.model/META-INF/MANIFES= T.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.common.model/META-INF/MANIFEST.MF 2= 009-09-25 05:49:39 UTC (rev 17723) +++ trunk/bpel/plugins/org.eclipse.bpel.common.model/META-INF/MANIFEST.MF 2= 009-09-25 07:38:05 UTC (rev 17724) @@ -57,5 +57,4 @@ org.eclipse.emf.ecore.xmi.util", org.eclipse.bpel.names Bundle-Vendor: eclipse.org -Bundle-ClassPath: bin Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/bpel/plugins/org.eclipse.bpel.common.model/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.common.model/build.properties 2009-= 09-25 05:49:39 UTC (rev 17723) +++ trunk/bpel/plugins/org.eclipse.bpel.common.model/build.properties 2009-= 09-25 07:38:05 UTC (rev 17724) @@ -1,27 +1,17 @@ -##########################################################################= ##### -# Copyright (c) 2005 IBM Corporation and others. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# IBM Corporation - initial API and implementation -##########################################################################= ##### -bin.includes =3D META-INF/,\ - plugin.xml,\ - plugin.properties,\ - bin/,\ - bin -src.includes =3D .classpath,\ - .cvsignore,\ - .project,\ - META-INF/,\ - bin/,\ - build.properties,\ - plugin.properties,\ - src/,\ - plugin.xml -output.code.jar =3D bin/ -jars.compile.order =3D code.jar -source.bin =3D src/ +jars.compile.order =3D . +source.. =3D src/ +output.. =3D bin/ +bin.includes =3D META-INF/,\ + plugin.properties,\ + plugin.xml,\ + schema/,\ + . +src.includes =3D .project,\ + .cvsignore,\ + .classpath,\ + META-INF/,\ + build.properties,\ + plugin.properties,\ + plugin.xml,\ + schema/,\ + src/ Modified: trunk/bpel/plugins/org.eclipse.bpel.common.ui/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.common.ui/META-INF/MANIFEST.MF 2009= -09-25 05:49:39 UTC (rev 17723) +++ trunk/bpel/plugins/org.eclipse.bpel.common.ui/META-INF/MANIFEST.MF 2009= -09-25 07:38:05 UTC (rev 17724) @@ -31,4 +31,3 @@ org.eclipse.bpel.common.ui.tray Bundle-RequiredExecutionEnvironment: J2SE-1.5 Bundle-Vendor: eclipse.org -Bundle-ClassPath: bin Modified: trunk/bpel/plugins/org.eclipse.bpel.common.ui/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.common.ui/build.properties 2009-09-= 25 05:49:39 UTC (rev 17723) +++ trunk/bpel/plugins/org.eclipse.bpel.common.ui/build.properties 2009-09-= 25 07:38:05 UTC (rev 17724) @@ -12,17 +12,17 @@ plugin.xml,\ schema/,\ icons/,\ - bin/ + . src.includes =3D .classpath,\ .cvsignore,\ .project,\ META-INF/,\ - bin/,\ build.properties,\ icons/,\ plugin.xml,\ schema/,\ src/ output.code.jar =3D bin/ -jars.compile.order =3D code.jar -source.bin =3D src/ = +jars.compile.order =3D . +source.. =3D src/ +output.. =3D bin/ Modified: trunk/bpel/plugins/org.eclipse.bpel.common.ui/src/org/eclipse/bpe= l/common/ui/CommonUIPlugin.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.common.ui/src/org/eclipse/bpel/comm= on/ui/CommonUIPlugin.java 2009-09-25 05:49:39 UTC (rev 17723) +++ trunk/bpel/plugins/org.eclipse.bpel.common.ui/src/org/eclipse/bpel/comm= on/ui/CommonUIPlugin.java 2009-09-25 07:38:05 UTC (rev 17724) @@ -125,6 +125,7 @@ try { url =3D new URL(baseURL, ICommonUIConstants.ICON_PATH + id); } catch (MalformedURLException e) { + log(e); } ImageDescriptor desc =3D ImageDescriptor.createFromURL(url); getImageRegistry().put(id, desc); Modified: trunk/bpel/plugins/org.eclipse.bpel.model/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.model/META-INF/MANIFEST.MF 2009-09-= 25 05:49:39 UTC (rev 17723) +++ trunk/bpel/plugins/org.eclipse.bpel.model/META-INF/MANIFEST.MF 2009-09-= 25 07:38:05 UTC (rev 17724) @@ -30,4 +30,3 @@ org.eclipse.bpel.model.terms, org.eclipse.bpel.model.util Bundle-RequiredExecutionEnvironment: J2SE-1.5 -Bundle-ClassPath: bin Modified: trunk/bpel/plugins/org.eclipse.bpel.model/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.model/build.properties 2009-09-25 0= 5:49:39 UTC (rev 17723) +++ trunk/bpel/plugins/org.eclipse.bpel.model/build.properties 2009-09-25 0= 7:38:05 UTC (rev 17724) @@ -11,8 +11,7 @@ bin.includes =3D META-INF/,\ plugin.xml,\ plugin.properties,\ - bin/,\ - bin + . src.includes =3D .classpath,\ .cvsignore,\ .project,\ @@ -23,4 +22,4 @@ plugin.xml,\ src/ jars.compile.order =3D = -source.bin =3D src/ +source.. =3D src/ Modified: trunk/bpel/plugins/org.eclipse.bpel.runtimes/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.runtimes/META-INF/MANIFEST.MF 2009-= 09-25 05:49:39 UTC (rev 17723) +++ trunk/bpel/plugins/org.eclipse.bpel.runtimes/META-INF/MANIFEST.MF 2009-= 09-25 07:38:05 UTC (rev 17724) @@ -29,6 +29,5 @@ org.eclipse.bpel.runtimes.module, org.eclipse.bpel.runtimes.publishers, org.eclipse.bpel.runtimes.ui.wizards -Bundle-ClassPath: bin Bundle-Vendor: %providerName Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/bpel/plugins/org.eclipse.bpel.runtimes/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.runtimes/build.properties 2009-09-2= 5 05:49:39 UTC (rev 17723) +++ trunk/bpel/plugins/org.eclipse.bpel.runtimes/build.properties 2009-09-2= 5 07:38:05 UTC (rev 17724) @@ -3,7 +3,7 @@ icons/,\ plugin.properties,\ bin/,\ - bin + . = jars.compile.order =3D = src.includes =3D META-INF/,\ @@ -16,5 +16,5 @@ .project,\ .cvsignore,\ .classpath -source.bin =3D src/ +source.. =3D src/ = Modified: trunk/bpel/plugins/org.eclipse.bpel.validator/.classpath =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.validator/.classpath 2009-09-25 05:= 49:39 UTC (rev 17723) +++ trunk/bpel/plugins/org.eclipse.bpel.validator/.classpath 2009-09-25 07:= 38:05 UTC (rev 17724) @@ -1,9 +1,7 @@ - - - - - - - - - + + + + + + + Modified: trunk/bpel/plugins/org.eclipse.bpel.validator/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.validator/META-INF/MANIFEST.MF 2009= -09-25 05:49:39 UTC (rev 17723) +++ trunk/bpel/plugins/org.eclipse.bpel.validator/META-INF/MANIFEST.MF 2009= -09-25 07:38:05 UTC (rev 17724) @@ -20,8 +20,7 @@ javax.wsdl;bundle-version=3D"[1.5.0,1.6.0)" Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 -Bundle-ClassPath: bin, - meta/ +Bundle-ClassPath: bpel-validator.jar Export-Package: org.eclipse.bpel.validator, org.eclipse.bpel.validator.adapters, org.eclipse.bpel.validator.factory, Modified: trunk/bpel/plugins/org.eclipse.bpel.validator/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.validator/build.properties 2009-09-= 25 05:49:39 UTC (rev 17723) +++ trunk/bpel/plugins/org.eclipse.bpel.validator/build.properties 2009-09-= 25 07:38:05 UTC (rev 17724) @@ -5,12 +5,10 @@ *.xml,\ intro/,\ schema/,\ - lib/,\ - bin/,\ - meta/,\ + .,\ src-exclude.xsl jars.compile.order =3D code.jar,\ - bin/ + bpel-validator.jar src.includes =3D .classpath,\ .project,\ .settings/,\ @@ -20,22 +18,19 @@ html/,\ icons/,\ intro/,\ - lib/,\ monkey/,\ plugin.xml,\ src/,\ testToc.xml,\ toc.xml,\ schema/,\ - tests/,\ - bin-jaxen/,\ meta/,\ - validatorBuild.xml,\ src-exclude.xsl,\ customBuildCallbacks.xml output.code.jar =3D bin/ -source.bin/ =3D src/ -output.bin/ =3D bin/ +source.bpel-validator.jar =3D src/,\ + meta/ +output.bpel-validator.jar =3D bin/ # customBuildCallbacks=3DcustomBuildCallbacks.xml # Modified: trunk/bpel/plugins/org.eclipse.bpel.xpath10/.classpath =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.xpath10/.classpath 2009-09-25 05:49= :39 UTC (rev 17723) +++ trunk/bpel/plugins/org.eclipse.bpel.xpath10/.classpath 2009-09-25 07:38= :05 UTC (rev 17724) @@ -3,7 +3,6 @@ - Modified: trunk/bpel/plugins/org.eclipse.bpel.xpath10/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.xpath10/META-INF/MANIFEST.MF 2009-0= 9-25 05:49:39 UTC (rev 17723) +++ trunk/bpel/plugins/org.eclipse.bpel.xpath10/META-INF/MANIFEST.MF 2009-0= 9-25 07:38:05 UTC (rev 17724) @@ -3,7 +3,7 @@ Bundle-Name: XPath Parser 1.0 (Incubation) Bundle-SymbolicName: org.eclipse.bpel.xpath10 Bundle-Version: 0.4.0.qualifier -Bundle-ClassPath: ., bin/, +Bundle-ClassPath: ., lib/antlr-runtime-3.0.1.jar Export-Package: org.antlr.runtime;uses:=3D"org.antlr.runtime.tree", org.antlr.runtime.debug;uses:=3D"org.antlr.runtime.tree,org.antlr.runtime= ", Modified: trunk/bpel/plugins/org.eclipse.bpel.xpath10/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.xpath10/build.properties 2009-09-25= 05:49:39 UTC (rev 17723) +++ trunk/bpel/plugins/org.eclipse.bpel.xpath10/build.properties 2009-09-25= 07:38:05 UTC (rev 17724) @@ -1,6 +1,5 @@ bin.includes =3D META-INF/,\ lib/,\ - bin/,\ . src.includes =3D .classpath,\ .project,\ Modified: trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/build.properti= es =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/build.properties 200= 9-09-25 05:49:39 UTC (rev 17723) +++ trunk/bpel/plugins/org.jboss.tools.bpel.cheatsheet/build.properties 200= 9-09-25 07:38:05 UTC (rev 17724) @@ -1,4 +1,6 @@ source.. =3D src/ output.. =3D bin/ bin.includes =3D META-INF/,\ - . + .,\ + cheatsheets/,\ + plugin.xml Modified: trunk/common/plugins/org.jboss.tools.common.gef/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.gef/build.properties 2009-0= 9-25 05:49:39 UTC (rev 17723) +++ trunk/common/plugins/org.jboss.tools.common.gef/build.properties 2009-0= 9-25 07:38:05 UTC (rev 17724) @@ -1,8 +1,7 @@ -bin.includes =3D plugin.xml,\ - *.jar,\ - .,\ +bin.includes =3D .,\ META-INF/,\ - plugin.properties + plugin.properties,\ + about.html source.. =3D resources/,\ src/ jars.compile.order =3D . --===============3682501406183417730==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 04:17:29 2009 Content-Type: multipart/mixed; boundary="===============3731211370012503735==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17725 - in trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui: preferences and 1 other directory. Date: Fri, 25 Sep 2009 04:17:29 -0400 Message-ID: <200909250817.n8P8HT4Y021033@svn01.web.mwc.hst.phx2.redhat.com> --===============3731211370012503735== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: Grid.Qian Date: 2009-09-25 04:17:28 -0400 (Fri, 25 Sep 2009) New Revision: 17725 Modified: trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/Messages.= java trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/messages.= properties trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/preferenc= es/WSILPreferencePage.java Log: JBIDE-4910: BPEL->'WSIL Browser' Preference page cannot load WSIL xml Modified: trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/Me= ssages.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/Messages= .java 2009-09-25 07:38:05 UTC (rev 17724) +++ trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/Messages= .java 2009-09-25 08:17:28 UTC (rev 17725) @@ -225,6 +225,7 @@ public static String BPELPreferencePage_WSIL_MoveUp; public static String BPELPreferencePage_WSIL_OpenInBrowser; public static String BPELPreferencePage_WSIL_DocumentNotLoaded; + public static String BPELPreferencePage_WSIL_NameLimit; public static String BPELPreferencePage_WSIL_EnterLocation; public static String BPELPreferencePage_WSIL_EnterDescription; public static String BPELUIRegistry_Expression_language_editors_must_prov= ide_expressionLanguage_and_class__8; Modified: trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/me= ssages.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/messages= .properties 2009-09-25 07:38:05 UTC (rev 17724) +++ trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/messages= .properties 2009-09-25 08:17:28 UTC (rev 17725) @@ -119,6 +119,7 @@ BPELPreferencePage_WSIL_Remove =3D Remove BPELPreferencePage_WSIL_Index =3D # BPELPreferencePage_WSIL_DocumentNotLoaded =3D WSIL Document not loaded. +BPELPreferencePage_WSIL_NameLimit =3D WSIL Document's name should be ended= with .wsil BPELPreferencePage_WSIL_MoveDown =3D Move Down BPELPreferencePage_WSIL_MoveUp =3D Move Up BPELPreferencePage_WSIL_OpenInBrowser =3D Open in Browser Modified: trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/pr= eferences/WSILPreferencePage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/preferen= ces/WSILPreferencePage.java 2009-09-25 07:38:05 UTC (rev 17724) +++ trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/preferen= ces/WSILPreferencePage.java 2009-09-25 08:17:28 UTC (rev 17725) @@ -102,6 +102,8 @@ Button moveDownButton; Button openInBrowserButton; = + private static String WSIL =3D "wsil"; + = // Track the modification of any element in the WSIL model. // we don't use commands and stacks here. EContentAdapter fContentAdapter =3D new EContentAdapter() { @@ -177,6 +179,7 @@ @Override public void widgetSelected(SelectionEvent e) { FileDialog fd =3D new FileDialog(getShell(), SWT.OPEN); + fd.setFilterExtensions(new String[]{"*."+WSIL}); String fileName =3D fd.open(); if ((fileName !=3D null) && (fileName.length() > 0)) { // parse to file url @@ -500,6 +503,10 @@ if (url.length() < 1) { return ; } + if(!url.endsWith(WSIL)){ + setMessage(Messages.BPELPreferencePage_WSIL_NameLimit, ERROR); + return; + } = if (fWsilDocument !=3D null) { fWsilDocument.eResource().eAdapters().remove( fContentAdapter ); @@ -511,7 +518,7 @@ Resource resource =3D null; try { = - resource =3D resourceSet.getResource(uri, true, "wsil"); + resource =3D resourceSet.getResource(uri, true, WSIL); = List contents =3D resource.getContents(); = --===============3731211370012503735==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 07:34:43 2009 Content-Type: multipart/mixed; boundary="===============4599230394317461286==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17726 - in trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor: mozilla and 1 other directories. Date: Fri, 25 Sep 2009 07:34:43 -0400 Message-ID: <200909251134.n8PBYhDH022891@svn01.web.mwc.hst.phx2.redhat.com> --===============4599230394317461286== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dmaliarevich Date: 2009-09-25 07:34:43 -0400 (Fri, 25 Sep 2009) New Revision: 17726 Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vpe= EditorPart.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/moz= illa/MozillaEditor.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xpl= /CustomSashForm.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xpl= /SashSetting.java Log: https://jira.jboss.org/jira/browse/JBIDE-4935, editors flipping was fixed. Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/VpeEditorPart.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eEditorPart.java 2009-09-25 08:17:28 UTC (rev 17725) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eEditorPart.java 2009-09-25 11:34:43 UTC (rev 17726) @@ -546,13 +546,15 @@ * Editors orientation is based on preference's settings. */ container =3D new CustomSashForm(cmpEd, CustomSashForm - .getSplittingFromPreferences()); + .getSplittingDirection(JspEditorPlugin.getDefault().getPreferenceStore() + .getString(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING))); if (editorSettings !=3D null) { editorSettings.addSetting(new SashSetting(container)); } = container.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); - if (CustomSashForm.isSourceEditorFirst()) { + if (CustomSashForm.isSourceEditorFirst(JspEditorPlugin.getDefault().getP= referenceStore() + .getString(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING))) { sourceContent =3D new Composite(container, SWT.NONE); visualContent =3D new Composite(container, SWT.NONE); } else { @@ -687,7 +689,7 @@ listener =3D new XModelTreeListener() { = public void nodeChanged(XModelTreeEvent event) { - fillContainer(); + fillContainer(false, null); selectionBar.setVisible(selectionBar.getAlwaysVisibleOption()); } = @@ -762,7 +764,16 @@ }; } = - public void fillContainer() { + /** + * Re-fills the VPE container according to new settings. + * = + * @param useCurrentEditorSettings + * if true VPE will hold its current state = + * otherwise values from preference page will be used, + * @param currentOrientation + * current source-visual editors splitting value + */ + public void fillContainer(boolean useCurrentEditorSettings, String curren= tOrientation) { /* * https://jira.jboss.org/jira/browse/JBIDE-4152 * = @@ -772,9 +783,15 @@ * = * Content should be added to a new container. */ + String splitting; + if (useCurrentEditorSettings) { + splitting =3D currentOrientation; + } else { + splitting =3D JspEditorPlugin.getDefault().getPreferenceStore() + .getString(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING); + } CustomSashForm newContainer =3D new CustomSashForm(cmpEd, CustomSashForm - .getSplittingFromPreferences()); - newContainer.setOrientation(CustomSashForm.getSplittingFromPreferences()= ); + .getSplittingDirection(splitting)); = /* * Reset editor's settings. = @@ -784,18 +801,13 @@ editorSettings.addSetting(new SashSetting(newContainer)); } newContainer.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); - = - /* - * Read stored preference settings. = - * Correct layout by selecting the order of components adding. - * All three editors should be added to the new container. - */ - if (CustomSashForm.isSourceEditorFirst()) { - sourceContent.setParent(newContainer); - visualContent.setParent(newContainer); + + if (CustomSashForm.isSourceEditorFirst(splitting)) { + sourceContent.setParent(newContainer); + visualContent.setParent(newContainer); } else { - visualContent.setParent(newContainer); - sourceContent.setParent(newContainer); + visualContent.setParent(newContainer); + sourceContent.setParent(newContainer); } previewContent.setParent(newContainer); = @@ -825,29 +837,33 @@ int defaultWeight =3D JspEditorPlugin.getDefault().getPreferenceStore() .getInt(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_WEIGHTS); int[] weights =3D container.getWeights(); - if (defaultWeight =3D=3D 0) { - if (CustomSashForm.isSourceEditorFirst()) { - container.maxDown(); - } else { - container.maxUp(); - } - } else if (defaultWeight =3D=3D 1000) { - if (CustomSashForm.isSourceEditorFirst()) { - container.maxUp(); - } else { - container.maxDown(); - } + if (useCurrentEditorSettings) { + newContainer.setWeights(weights); } else { - if (CustomSashForm.isSourceEditorFirst()) { - weights[0] =3D 1000 - defaultWeight; - weights[1] =3D defaultWeight; + if (defaultWeight =3D=3D 0) { + if (CustomSashForm.isSourceEditorFirst(splitting)) { + container.maxDown(); + } else { + container.maxUp(); + } + } else if (defaultWeight =3D=3D 1000) { + if (CustomSashForm.isSourceEditorFirst(splitting)) { + container.maxUp(); + } else { + container.maxDown(); + } } else { - weights[0] =3D defaultWeight; - weights[1] =3D 1000 - defaultWeight; + if (CustomSashForm.isSourceEditorFirst(splitting)) { + weights[0] =3D 1000 - defaultWeight; + weights[1] =3D defaultWeight; + } else { + weights[0] =3D defaultWeight; + weights[1] =3D 1000 - defaultWeight; + } + if ((weights !=3D null) && !container.isDisposed()){ + container.setWeights(weights); + } } - if ((weights !=3D null) && !container.isDisposed()){ - container.setWeights(weights); - } } = container.setSashBorders(new boolean[] { true, true, true }); @@ -1118,7 +1134,8 @@ = public void maximizeSource() { if (container !=3D null) { - if (CustomSashForm.isSourceEditorFirst()) { + if (CustomSashForm.isSourceEditorFirst(JspEditorPlugin.getDefault().get= PreferenceStore() + .getString(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING))) { container.maxDown(); } else { container.maxUp(); @@ -1134,7 +1151,8 @@ = public void maximizeVisual() { if (container !=3D null) { - if (CustomSashForm.isSourceEditorFirst()) { + if (CustomSashForm.isSourceEditorFirst(JspEditorPlugin.getDefault().get= PreferenceStore() + .getString(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING))) { container.maxUp(); } else { container.maxDown(); @@ -1178,7 +1196,7 @@ */ if (getController() !=3D null) { selectionBar.setVisible(selectionBar.getAlwaysVisibleOption()); - fillContainer(); + fillContainer(false, null); getController().getVisualBuilder().setShowInvisibleTags(JspEditorPlugi= n.getDefault().getPreferenceStore().getBoolean( IVpePreferencesPage.SHOW_NON_VISUAL_TAGS)); getController().getPageContext().getBundle().updateShowBundleUsageAsEL= (); Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/mozilla/MozillaEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mo= zilla/MozillaEditor.java 2009-09-25 08:17:28 UTC (rev 17725) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mo= zilla/MozillaEditor.java 2009-09-25 11:34:43 UTC (rev 17726) @@ -134,6 +134,7 @@ private static Map layoutIcons; private static Map layoutNames; private static List layoutValues; + private int currentOrientationIndex =3D 1; static { layoutIcons =3D new HashMap(); layoutIcons.put(IVpePreferencesPage.SPLITTING_HORIZ_LEFT_SOURCE_VALUE= , ICON_ORIENTATION_SOURCE_LEFT); @@ -265,7 +266,7 @@ * https://jira.jboss.org/jira/browse/JBIDE-4152 * Compute initial icon state and add it to the tool bar. */ - int currentOrientationIndex =3D layoutValues.indexOf(JspEditorPlugin + currentOrientationIndex =3D layoutValues.indexOf(JspEditorPlugin .getDefault().getPreferenceStore().getString( IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING)); int newIndx =3D currentOrientationIndex+1; @@ -285,35 +286,11 @@ * Rotate editors orientation clockwise. Store this new * orientation to the preferences. */ - int currentOrientationIndex =3D layoutValues - .indexOf(JspEditorPlugin - .getDefault() - .getPreferenceStore() - .getString( - IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING)); - int newIndx =3D currentOrientationIndex + 1; - if (newIndx =3D=3D layoutValues.size()) { - newIndx =3D newIndx % layoutValues.size(); + currentOrientationIndex++; + if (currentOrientationIndex =3D=3D layoutValues.size()) { + currentOrientationIndex =3D currentOrientationIndex % layoutValues.si= ze(); } - String newOrientation =3D layoutValues.get(newIndx); - JspEditorPlugin.getDefault().getPreferenceStore().setValue( - IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING, - newOrientation); - - /* - * Compute next step orientation and display appropriate icon. - */ - currentOrientationIndex =3D layoutValues - .indexOf(JspEditorPlugin - .getDefault() - .getPreferenceStore() - .getString( - IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING)); - newIndx =3D currentOrientationIndex + 1; - if (newIndx =3D=3D layoutValues.size()) { - newIndx =3D newIndx % layoutValues.size(); - } - newOrientation =3D layoutValues.get(newIndx); + String newOrientation =3D layoutValues.get(currentOrientationIndex); rotateEditorsItem.setImage(ImageDescriptor.createFromFile( MozillaEditor.class, layoutIcons.get(newOrientation)) .createImage()); @@ -322,10 +299,10 @@ * Call filContainer() from VpeEditorPart * to redraw CustomSashForm with new layout. */ - getController().getPageContext().getEditPart().fillContainer(); + getController().getPageContext().getEditPart().fillContainer(true, new= Orientation); } }); - + = verBar.pack(); return verBar; } Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/xpl/CustomSashForm.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xp= l/CustomSashForm.java 2009-09-25 08:17:28 UTC (rev 17725) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xp= l/CustomSashForm.java 2009-09-25 11:34:43 UTC (rev 17726) @@ -1154,15 +1154,21 @@ } = public void changeOrientation() { - int prefsOrientation =3D getSplittingFromPreferences(); + int prefsOrientation =3D getSplittingDirection(JspEditorPlugin.getDefaul= t().getPreferenceStore() + .getString(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING)); if (getOrientation() !=3D prefsOrientation) { setOrientation(prefsOrientation); } } = - public static int getSplittingFromPreferences() { - String splitting =3D JspEditorPlugin.getDefault().getPreferenceStore() - .getString(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING); + /** + * Computes the splitting style: + * SWT.HORIZONTAL or SWT.VERTICAL + * = + * @param splitting source-visual editors splitting value + * @return integer style value + */ + public static int getSplittingDirection(String splitting) { if (IVpePreferencesPage.SPLITTING_HORIZ_LEFT_SOURCE_VALUE .equalsIgnoreCase(splitting) || IVpePreferencesPage.SPLITTING_HORIZ_LEFT_VISUAL_VALUE @@ -1173,15 +1179,20 @@ } } = - public static boolean isSourceEditorFirst() { - boolean sourceEditorFirst =3D false; - String splitting =3D JspEditorPlugin.getDefault().getPreferenceStore() - .getString(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING); - if (IVpePreferencesPage.SPLITTING_HORIZ_LEFT_SOURCE_VALUE + /** + * Checks if the source editor is displayed on the first place, = + * i.e. on the top, or to the left. + * + * @param splitting source-visual editors splitting value + * @return true when the source goes first + */ + public static boolean isSourceEditorFirst(String splitting) { + boolean sourceEditorFirst =3D true; + if (IVpePreferencesPage.SPLITTING_HORIZ_LEFT_VISUAL_VALUE .equalsIgnoreCase(splitting) - || IVpePreferencesPage.SPLITTING_VERT_TOP_SOURCE_VALUE + || IVpePreferencesPage.SPLITTING_VERT_TOP_VISUAL_VALUE .equalsIgnoreCase(splitting)) { - sourceEditorFirst =3D true; + sourceEditorFirst =3D false; } return sourceEditorFirst; } Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/xpl/SashSetting.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xp= l/SashSetting.java 2009-09-25 08:17:28 UTC (rev 17725) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/xp= l/SashSetting.java 2009-09-25 11:34:43 UTC (rev 17726) @@ -46,20 +46,22 @@ .getInt(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_WEIGHTS); int[] weights =3D sash.getWeights(); if (weights.length > 2) { + String splitting =3D JspEditorPlugin.getDefault().getPreferenceStore() + .getString(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING); = if (defaultWeight =3D=3D 0) { - if (CustomSashForm.isSourceEditorFirst()) { + if (CustomSashForm.isSourceEditorFirst(splitting)) { sash.maxDown(); } else { sash.maxUp(); } } else if (defaultWeight =3D=3D 1000) { - if (CustomSashForm.isSourceEditorFirst()) { + if (CustomSashForm.isSourceEditorFirst(splitting)) { sash.maxUp(); } else { sash.maxDown(); } } else { - if (CustomSashForm.isSourceEditorFirst()) { + if (CustomSashForm.isSourceEditorFirst(splitting)) { weights[0] =3D 1000 - defaultWeight; weights[1] =3D defaultWeight; } else { --===============4599230394317461286==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 08:09:17 2009 Content-Type: multipart/mixed; boundary="===============8065609365148707574==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17727 - in trunk/hibernatetools/plugins: org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/basic and 4 other directories. Date: Fri, 25 Sep 2009 08:09:17 -0400 Message-ID: <200909251209.n8PC9H42029767@svn01.web.mwc.hst.phx2.redhat.com> --===============8065609365148707574== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgeraskov Date: 2009-09-25 08:09:16 -0400 (Fri, 25 Sep 2009) New Revision: 17727 Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/= jboss/tools/hibernate/jpt/core/internal/context/basic/HibernateIdMapping.ja= va trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/= jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaIdMapping= Impl.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/= jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmIdMappingIm= pl.java Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/= jboss/tools/hibernate/jpt/core/internal/HibernateJpaFactory.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/= jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaColumnImp= l.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/= jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaIdMapping= .java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/= jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmColumnImpl.= java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/= jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmEntityImpl.= java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/= jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmIdMapping.j= ava trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jb= oss/tools/hibernate/jpt/ui/internal/mapping/details/HibernateIdMappingCompo= site.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jb= oss/tools/hibernate/jpt/ui/internal/platform/HibernateJpaUiFactory.java Log: https://jira.jboss.org/jira/browse/JBIDE-4795 Some additions and changes for orm.xml-style mapping. Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/s= rc/org/jboss/tools/hibernate/jpt/core/internal/HibernateJpaFactory.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org= /jboss/tools/hibernate/jpt/core/internal/HibernateJpaFactory.java 2009-09-2= 5 11:34:43 UTC (rev 17726) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org= /jboss/tools/hibernate/jpt/core/internal/HibernateJpaFactory.java 2009-09-2= 5 12:09:16 UTC (rev 17727) @@ -65,7 +65,7 @@ import org.jboss.tools.hibernate.jpt.core.internal.context.java.HibernateJ= avaEmbeddable; import org.jboss.tools.hibernate.jpt.core.internal.context.java.HibernateJ= avaEntity; import org.jboss.tools.hibernate.jpt.core.internal.context.java.HibernateJ= avaEntityImpl; -import org.jboss.tools.hibernate.jpt.core.internal.context.java.HibernateJ= avaIdMapping; +import org.jboss.tools.hibernate.jpt.core.internal.context.java.HibernateJ= avaIdMappingImpl; import org.jboss.tools.hibernate.jpt.core.internal.context.java.HibernateJ= avaJoinColumnImpl; import org.jboss.tools.hibernate.jpt.core.internal.context.java.HibernateJ= avaJoinTableImpl; import org.jboss.tools.hibernate.jpt.core.internal.context.java.HibernateJ= avaManyToManyMapping; @@ -86,7 +86,7 @@ import org.jboss.tools.hibernate.jpt.core.internal.context.orm.HibernateOr= mBasicMapping; import org.jboss.tools.hibernate.jpt.core.internal.context.orm.HibernateOr= mColumnImpl; import org.jboss.tools.hibernate.jpt.core.internal.context.orm.HibernateOr= mEntityImpl; -import org.jboss.tools.hibernate.jpt.core.internal.context.orm.HibernateOr= mIdMapping; +import org.jboss.tools.hibernate.jpt.core.internal.context.orm.HibernateOr= mIdMappingImpl; import org.jboss.tools.hibernate.jpt.core.internal.context.orm.HibernateOr= mJoinColumnImpl; import org.jboss.tools.hibernate.jpt.core.internal.context.orm.HibernateOr= mJoinTableImpl; import org.jboss.tools.hibernate.jpt.core.internal.context.orm.HibernateOr= mManyToManyMapping; @@ -121,7 +121,7 @@ = @Override public JavaIdMapping buildJavaIdMapping(JavaPersistentAttribute parent) { - return new HibernateJavaIdMapping(parent); + return new HibernateJavaIdMappingImpl(parent); } = public JavaGenericGenerator buildJavaGenericGenerator(JavaJpaContextNode = parent) { @@ -217,7 +217,7 @@ @Override public OrmIdMapping buildOrmIdMapping(OrmPersistentAttribute parent, XmlId resourceMapping) { - return new HibernateOrmIdMapping(parent, resourceMapping); + return new HibernateOrmIdMappingImpl(parent, resourceMapping); } = @Override Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/= org/jboss/tools/hibernate/jpt/core/internal/context/basic/HibernateIdMappin= g.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org= /jboss/tools/hibernate/jpt/core/internal/context/basic/HibernateIdMapping.j= ava (rev 0) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org= /jboss/tools/hibernate/jpt/core/internal/context/basic/HibernateIdMapping.j= ava 2009-09-25 12:09:16 UTC (rev 17727) @@ -0,0 +1,23 @@ +/*************************************************************************= ****** + * Copyright (c) 2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ + +package org.jboss.tools.hibernate.jpt.core.internal.context.basic; + +import org.eclipse.jpt.core.context.IdMapping; + +/** + * @author Dmitry Geraskov + * + */ +public interface HibernateIdMapping extends IdMapping { + + +} Property changes on: trunk/hibernatetools/plugins/org.jboss.tools.hibernate= .jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/basic/Hib= ernateIdMapping.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:keywords + Author Id Revision Date Name: svn:eol-style + native Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/s= rc/org/jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaCo= lumnImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org= /jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaColumnIm= pl.java 2009-09-25 11:34:43 UTC (rev 17726) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org= /jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaColumnIm= pl.java 2009-09-25 12:09:16 UTC (rev 17727) @@ -93,7 +93,7 @@ } = public String getSpecifiedDBTableName() { - if (getSpecifiedName() =3D=3D null) return null; + if (getSpecifiedTable() =3D=3D null) return null; NamingStrategy ns =3D getJpaProject().getNamingStrategy(); if (getJpaProject().isNamingStrategyEnabled() && ns !=3D null){ try { @@ -104,7 +104,7 @@ HibernateJptPlugin.logException(m.getText(), e); } } - return this.getName(); + return this.getSpecifiedTable(); } = } Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/s= rc/org/jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaId= Mapping.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org= /jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaIdMappin= g.java 2009-09-25 11:34:43 UTC (rev 17726) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org= /jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaIdMappin= g.java 2009-09-25 12:09:16 UTC (rev 17727) @@ -8,198 +8,18 @@ * Contributor: * Red Hat, Inc. - initial API and implementation *************************************************************************= *****/ + package org.jboss.tools.hibernate.jpt.core.internal.context.java; = -import java.util.Iterator; -import java.util.List; -import java.util.ListIterator; - -import org.eclipse.jdt.core.dom.CompilationUnit; -import org.eclipse.jpt.core.context.java.JavaGenerator; -import org.eclipse.jpt.core.context.java.JavaPersistentAttribute; -import org.eclipse.jpt.core.internal.context.java.GenericJavaIdMapping; -import org.eclipse.jpt.utility.Filter; -import org.eclipse.jpt.utility.internal.iterators.CompositeIterator; -import org.eclipse.jpt.utility.internal.iterators.EmptyIterator; -import org.eclipse.jpt.utility.internal.iterators.EmptyListIterator; -import org.eclipse.jpt.utility.internal.iterators.SingleElementIterator; -import org.eclipse.jpt.utility.internal.iterators.SingleElementListIterato= r; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; -import org.eclipse.wst.validation.internal.provisional.core.IReporter; -import org.jboss.tools.hibernate.jpt.core.internal.HibernateJpaFactory; -import org.jboss.tools.hibernate.jpt.core.internal.HibernateJpaProject; -import org.jboss.tools.hibernate.jpt.core.internal.context.GenericGenerato= r; +import org.eclipse.jpt.core.context.java.JavaIdMapping; import org.jboss.tools.hibernate.jpt.core.internal.context.GenericGenerato= rHolder; -import org.jboss.tools.hibernate.jpt.core.internal.resource.java.GenericGe= neratorAnnotation; +import org.jboss.tools.hibernate.jpt.core.internal.context.basic.Hibernate= IdMapping; = /** * @author Dmitry Geraskov * */ -public class HibernateJavaIdMapping extends GenericJavaIdMapping = -implements GenericGeneratorHolder { - = - protected JavaGenericGenerator genericGenerator; - = - /** - * @param parent - */ - public HibernateJavaIdMapping(JavaPersistentAttribute parent) { - super(parent); - } +public interface HibernateJavaIdMapping extends HibernateIdMapping, + JavaIdMapping, GenericGeneratorHolder { = - @Override - protected void initialize() { - super.initialize(); - this.initializeGenericGenerator(); - } - = - @Override - public HibernateJavaColumn getColumn() { - return (HibernateJavaColumn) column; - } - = - @Override - public String getPrimaryKeyColumnName() { - return this.getColumn().getDBColumnName(); - } - = - protected void initializeGenericGenerator() { - GenericGeneratorAnnotation genericGeneratorResource =3D getResourceGener= icGenerator(); - if (genericGeneratorResource !=3D null) { - this.genericGenerator =3D buildGenericGenerator(genericGeneratorResourc= e); - } - } - = - protected GenericGeneratorAnnotation getResourceGenericGenerator() { - return (GenericGeneratorAnnotation) this.getResourcePersistentAttribute(= ).getSupportingAnnotation(GenericGeneratorAnnotation.ANNOTATION_NAME); - } - = - protected JavaGenericGenerator buildGenericGenerator(GenericGeneratorAnno= tation genericGeneratorResource) { - JavaGenericGenerator generator =3D ((HibernateJpaFactory) getJpaFactory(= )).buildJavaGenericGenerator(this); - generator.initialize(genericGeneratorResource); - return generator; - } - = - @SuppressWarnings("unchecked") - public Iterator generators() { - return new CompositeIterator(super.generators(), - (getGenericGenerator() =3D=3D null) ? EmptyIterator.instance() = - : new SingleElementIterator(getGenericGenerator())); - } - - public JavaGenericGenerator addGenericGenerator(int index) { - if (getGenericGenerator() !=3D null) { - throw new IllegalStateException("genericGenerator already exists"); //$= NON-NLS-1$ - } - this.genericGenerator =3D ((HibernateJpaFactory)getJpaFactory()).buildJa= vaGenericGenerator(this); - GenericGeneratorAnnotation genericGeneratorResource =3D (GenericGenerato= rAnnotation)getResourcePersistentAttribute() - .addSupportingAnnotation(GenericGeneratorAnnotation.ANNOTATION_NAM= E); - this.genericGenerator.initialize(genericGeneratorResource); - firePropertyChanged(GENERIC_GENERATORS_LIST, null, this.genericGenerator= ); - return this.genericGenerator; - } - - private JavaGenericGenerator getGenericGenerator() { - return genericGenerator; - } - - private void removeGenericGenerator() { - if (getGenericGenerator() =3D=3D null) { - throw new IllegalStateException("genericGenerator does not exist, canno= t be removed"); //$NON-NLS-1$ - } - JavaGenericGenerator oldGenericGenerator =3D this.genericGenerator; - this.genericGenerator =3D null; - this.getResourcePersistentAttribute().removeSupportingAnnotation(Generic= GeneratorAnnotation.ANNOTATION_NAME); - firePropertyChanged(GENERIC_GENERATORS_LIST, oldGenericGenerator,null); - } - = - private void setGenericGenerator(JavaGenericGenerator newGenericGenerator= ) { - JavaGenericGenerator oldGenericGenerator =3D this.genericGenerator; - this.genericGenerator =3D newGenericGenerator; - firePropertyChanged(GENERIC_GENERATORS_LIST, oldGenericGenerator, newGen= ericGenerator); - } - = - @Override - public void update() { - super.update(); - updateGenericGenerator(); - } - = - protected void updateGenericGenerator() { - GenericGeneratorAnnotation genericGeneratorResource =3D getResourceGener= icGenerator(); - if (genericGeneratorResource =3D=3D null) { - if (getGenericGenerator() !=3D null) { - setGenericGenerator(null); - } - } - else { - if (getGenericGenerator() =3D=3D null) { - setGenericGenerator(buildGenericGenerator(genericGeneratorResource)); - } - else { - getGenericGenerator().update(genericGeneratorResource); - } - } - } - = - @Override - public void validate(List messages, IReporter reporter, Compila= tionUnit astRoot) { - super.validate(messages, reporter, astRoot); - validateGenericGenerator(messages, reporter, astRoot); - } - = - private void validateGenericGenerator(List messages, IReporter = reporter, CompilationUnit astRoot) { - if (genericGenerator !=3D null){ - genericGenerator.validate(messages, reporter, astRoot); - } - } - = - @Override - public Iterator javaCompletionProposals(int pos, Filter f= ilter, - CompilationUnit astRoot) { - Iterator result =3D super.javaCompletionProposals(pos, filter, a= stRoot); - if (result !=3D null) { - return result; - } - if (this.getGenericGenerator() !=3D null) { - result =3D this.getGenericGenerator().javaCompletionProposals(pos, filt= er, astRoot); - if (result !=3D null) { - return result; - } - } - return null; - } - - public ListIterator genericGenerators() { - return genericGenerator =3D=3D null ? EmptyListIterator.instance() = - : new SingleElementListIterator(genericGenerator); - } - - public int genericGeneratorsSize() { - return genericGenerator =3D=3D null ? 0 : 1; - } - - public void moveGenericGenerator(int targetIndex, int sourceIndex) { - throw new UnsupportedOperationException(); - } - - public void removeGenericGenerator(int index) { - if (genericGeneratorsSize() < index + 1){ - throw new IndexOutOfBoundsException(); - } - removeGenericGenerator(); - } - - public void removeGenericGenerator(GenericGenerator generator) { - if (this.genericGenerator =3D=3D generator){ - removeGenericGenerator(); - } - } - = - @Override - public HibernateJpaProject getJpaProject() { - return (HibernateJpaProject) super.getJpaProject(); - } - } Copied: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src= /org/jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaIdMa= ppingImpl.java (from rev 17715, trunk/hibernatetools/plugins/org.jboss.tool= s.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/contex= t/java/HibernateJavaIdMapping.java) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org= /jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaIdMappin= gImpl.java (rev 0) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org= /jboss/tools/hibernate/jpt/core/internal/context/java/HibernateJavaIdMappin= gImpl.java 2009-09-25 12:09:16 UTC (rev 17727) @@ -0,0 +1,204 @@ +/*************************************************************************= ****** + * Copyright (c) 2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.hibernate.jpt.core.internal.context.java; + +import java.util.Iterator; +import java.util.List; +import java.util.ListIterator; + +import org.eclipse.jdt.core.dom.CompilationUnit; +import org.eclipse.jpt.core.context.java.JavaGenerator; +import org.eclipse.jpt.core.context.java.JavaPersistentAttribute; +import org.eclipse.jpt.core.internal.context.java.GenericJavaIdMapping; +import org.eclipse.jpt.utility.Filter; +import org.eclipse.jpt.utility.internal.iterators.CompositeIterator; +import org.eclipse.jpt.utility.internal.iterators.EmptyIterator; +import org.eclipse.jpt.utility.internal.iterators.EmptyListIterator; +import org.eclipse.jpt.utility.internal.iterators.SingleElementIterator; +import org.eclipse.jpt.utility.internal.iterators.SingleElementListIterato= r; +import org.eclipse.wst.validation.internal.provisional.core.IMessage; +import org.eclipse.wst.validation.internal.provisional.core.IReporter; +import org.jboss.tools.hibernate.jpt.core.internal.HibernateJpaFactory; +import org.jboss.tools.hibernate.jpt.core.internal.HibernateJpaProject; +import org.jboss.tools.hibernate.jpt.core.internal.context.GenericGenerato= r; +import org.jboss.tools.hibernate.jpt.core.internal.resource.java.GenericGe= neratorAnnotation; + +/** + * @author Dmitry Geraskov + * + */ +public class HibernateJavaIdMappingImpl extends GenericJavaIdMapping = +implements HibernateJavaIdMapping { + = + protected JavaGenericGenerator genericGenerator; + = + /** + * @param parent + */ + public HibernateJavaIdMappingImpl(JavaPersistentAttribute parent) { + super(parent); + } + + @Override + protected void initialize() { + super.initialize(); + this.initializeGenericGenerator(); + } + = + @Override + public HibernateJavaColumn getColumn() { + return (HibernateJavaColumn) column; + } + = + @Override + public String getPrimaryKeyColumnName() { + return this.getColumn().getDBColumnName(); + } + = + protected void initializeGenericGenerator() { + GenericGeneratorAnnotation genericGeneratorResource =3D getResourceGener= icGenerator(); + if (genericGeneratorResource !=3D null) { + this.genericGenerator =3D buildGenericGenerator(genericGeneratorResourc= e); + } + } + = + protected GenericGeneratorAnnotation getResourceGenericGenerator() { + return (GenericGeneratorAnnotation) this.getResourcePersistentAttribute(= ).getSupportingAnnotation(GenericGeneratorAnnotation.ANNOTATION_NAME); + } + = + protected JavaGenericGenerator buildGenericGenerator(GenericGeneratorAnno= tation genericGeneratorResource) { + JavaGenericGenerator generator =3D ((HibernateJpaFactory) getJpaFactory(= )).buildJavaGenericGenerator(this); + generator.initialize(genericGeneratorResource); + return generator; + } + = + @SuppressWarnings("unchecked") + public Iterator generators() { + return new CompositeIterator(super.generators(), + (getGenericGenerator() =3D=3D null) ? EmptyIterator.instance() = + : new SingleElementIterator(getGenericGenerator())); + } + + public JavaGenericGenerator addGenericGenerator(int index) { + if (getGenericGenerator() !=3D null) { + throw new IllegalStateException("genericGenerator already exists"); //$= NON-NLS-1$ + } + this.genericGenerator =3D ((HibernateJpaFactory)getJpaFactory()).buildJa= vaGenericGenerator(this); + GenericGeneratorAnnotation genericGeneratorResource =3D (GenericGenerato= rAnnotation)getResourcePersistentAttribute() + .addSupportingAnnotation(GenericGeneratorAnnotation.ANNOTATION_NAM= E); + this.genericGenerator.initialize(genericGeneratorResource); + firePropertyChanged(GENERIC_GENERATORS_LIST, null, this.genericGenerator= ); + return this.genericGenerator; + } + + private JavaGenericGenerator getGenericGenerator() { + return genericGenerator; + } + + private void removeGenericGenerator() { + if (getGenericGenerator() =3D=3D null) { + throw new IllegalStateException("genericGenerator does not exist, canno= t be removed"); //$NON-NLS-1$ + } + JavaGenericGenerator oldGenericGenerator =3D this.genericGenerator; + this.genericGenerator =3D null; + this.getResourcePersistentAttribute().removeSupportingAnnotation(Generic= GeneratorAnnotation.ANNOTATION_NAME); + firePropertyChanged(GENERIC_GENERATORS_LIST, oldGenericGenerator,null); + } + = + private void setGenericGenerator(JavaGenericGenerator newGenericGenerator= ) { + JavaGenericGenerator oldGenericGenerator =3D this.genericGenerator; + this.genericGenerator =3D newGenericGenerator; + firePropertyChanged(GENERIC_GENERATORS_LIST, oldGenericGenerator, newGen= ericGenerator); + } + = + @Override + public void update() { + super.update(); + updateGenericGenerator(); + } + = + protected void updateGenericGenerator() { + GenericGeneratorAnnotation genericGeneratorResource =3D getResourceGener= icGenerator(); + if (genericGeneratorResource =3D=3D null) { + if (getGenericGenerator() !=3D null) { + setGenericGenerator(null); + } + } + else { + if (getGenericGenerator() =3D=3D null) { + setGenericGenerator(buildGenericGenerator(genericGeneratorResource)); + } + else { + getGenericGenerator().update(genericGeneratorResource); + } + } + } + = + @Override + public void validate(List messages, IReporter reporter, Compila= tionUnit astRoot) { + super.validate(messages, reporter, astRoot); + validateGenericGenerator(messages, reporter, astRoot); + } + = + private void validateGenericGenerator(List messages, IReporter = reporter, CompilationUnit astRoot) { + if (genericGenerator !=3D null){ + genericGenerator.validate(messages, reporter, astRoot); + } + } + = + @Override + public Iterator javaCompletionProposals(int pos, Filter f= ilter, + CompilationUnit astRoot) { + Iterator result =3D super.javaCompletionProposals(pos, filter, a= stRoot); + if (result !=3D null) { + return result; + } + if (this.getGenericGenerator() !=3D null) { + result =3D this.getGenericGenerator().javaCompletionProposals(pos, filt= er, astRoot); + if (result !=3D null) { + return result; + } + } + return null; + } + + public ListIterator genericGenerators() { + return genericGenerator =3D=3D null ? EmptyListIterator.instance() = + : new SingleElementListIterator(genericGenerator); + } + + public int genericGeneratorsSize() { + return genericGenerator =3D=3D null ? 0 : 1; + } + + public void moveGenericGenerator(int targetIndex, int sourceIndex) { + throw new UnsupportedOperationException(); + } + + public void removeGenericGenerator(int index) { + if (genericGeneratorsSize() < index + 1){ + throw new IndexOutOfBoundsException(); + } + removeGenericGenerator(); + } + + public void removeGenericGenerator(GenericGenerator generator) { + if (this.genericGenerator =3D=3D generator){ + removeGenericGenerator(); + } + } + = + @Override + public HibernateJpaProject getJpaProject() { + return (HibernateJpaProject) super.getJpaProject(); + } + +} Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/s= rc/org/jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmColu= mnImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org= /jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmColumnImpl= .java 2009-09-25 11:34:43 UTC (rev 17726) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org= /jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmColumnImpl= .java 2009-09-25 12:09:16 UTC (rev 17727) @@ -85,7 +85,7 @@ } = public String getSpecifiedDBTableName() { - if (getSpecifiedName() =3D=3D null) return null; + if (getSpecifiedTable() =3D=3D null) return null; NamingStrategy ns =3D getJpaProject().getNamingStrategy(); if (getJpaProject().isNamingStrategyEnabled() && ns !=3D null){ try { @@ -96,7 +96,7 @@ HibernateJptPlugin.logException(m.getText(), e); } } - return this.getName(); + return this.getSpecifiedTable(); } = } Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/s= rc/org/jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmEnti= tyImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org= /jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmEntityImpl= .java 2009-09-25 11:34:43 UTC (rev 17726) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org= /jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmEntityImpl= .java 2009-09-25 12:09:16 UTC (rev 17727) @@ -11,10 +11,12 @@ = package org.jboss.tools.hibernate.jpt.core.internal.context.orm; = +import java.util.Iterator; import java.util.ListIterator; = import org.eclipse.jpt.core.context.BaseJoinColumn; import org.eclipse.jpt.core.context.Entity; +import org.eclipse.jpt.core.context.Table; import org.eclipse.jpt.core.context.TypeMapping; import org.eclipse.jpt.core.context.orm.OrmBaseJoinColumn; import org.eclipse.jpt.core.context.orm.OrmPersistentType; @@ -22,6 +24,7 @@ import org.eclipse.jpt.core.resource.orm.XmlEntity; import org.eclipse.jpt.core.utility.TextRange; import org.eclipse.jpt.utility.internal.iterators.EmptyListIterator; +import org.eclipse.jpt.utility.internal.iterators.TransformationIterator; import org.eclipse.wst.validation.internal.core.Message; import org.eclipse.wst.validation.internal.provisional.core.IMessage; import org.hibernate.cfg.NamingStrategy; @@ -31,6 +34,7 @@ import org.jboss.tools.hibernate.jpt.core.internal.context.GenericGenerato= r; import org.jboss.tools.hibernate.jpt.core.internal.context.HibernateNamedN= ativeQuery; import org.jboss.tools.hibernate.jpt.core.internal.context.HibernateNamedQ= uery; +import org.jboss.tools.hibernate.jpt.core.internal.context.HibernateTable; import org.jboss.tools.hibernate.jpt.core.internal.context.Messages; import org.jboss.tools.hibernate.jpt.core.internal.context.HibernatePersis= tenceUnit.LocalMessage; = @@ -51,40 +55,15 @@ return (HibernateJpaProject) super.getJpaProject(); } = -/* - @Override - protected String buildDefaultName() { - NamingStrategy ns =3D getJpaProject().getNamingStrategy(); - if (!isMetadataComplete()) { - JavaEntity javaEntity =3D getJavaEntity(); - if (javaEntity !=3D null) { - return javaEntity.getName(); - } - } - String className =3D getClass_(); - if (className !=3D null) { - try { - String shortCalssName =3D ClassTools.shortNameForClassNamed(className); - return ns =3D=3D null ? shortCalssName : ns.classToTableName(shortCals= sName); - } catch (Exception e) { - Message m =3D new LocalMessage(IMessage.HIGH_SEVERITY, - Messages.NAMING_STRATEGY_EXCEPTION, new String[0], null); - HibernateJptPlugin.logException(m.getText(), e); - } - } - return null; - } - = - = @Override public String getPrimaryTableName() { return this.getTable().getDBTableName(); - }*/ - + } + = /** * Convert Table to it's DB name. */ -/* @Override + @Override protected Iterator tableNames(Iterator tables) { return new TransformationIterator(tables) { @Override @@ -96,7 +75,7 @@ } = } }; - }*/ + } = @Override protected OrmBaseJoinColumn.Owner createPrimaryKeyJoinColumnOwner() { Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/s= rc/org/jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmIdMa= pping.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org= /jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmIdMapping.= java 2009-09-25 11:34:43 UTC (rev 17726) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org= /jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmIdMapping.= java 2009-09-25 12:09:16 UTC (rev 17727) @@ -11,46 +11,14 @@ = package org.jboss.tools.hibernate.jpt.core.internal.context.orm; = -import org.eclipse.jpt.core.context.orm.OrmPersistentAttribute; -import org.eclipse.jpt.core.internal.context.orm.GenericOrmIdMapping; -import org.eclipse.jpt.core.resource.orm.XmlId; -import org.eclipse.wst.validation.internal.core.Message; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; -import org.hibernate.cfg.NamingStrategy; -import org.jboss.tools.hibernate.jpt.core.internal.HibernateJpaProject; -import org.jboss.tools.hibernate.jpt.core.internal.HibernateJptPlugin; -import org.jboss.tools.hibernate.jpt.core.internal.context.Messages; -import org.jboss.tools.hibernate.jpt.core.internal.context.HibernatePersis= tenceUnit.LocalMessage; +import org.eclipse.jpt.core.context.orm.OrmIdMapping; +import org.jboss.tools.hibernate.jpt.core.internal.context.basic.Hibernate= IdMapping; = /** * @author Dmitry Geraskov * */ -public class HibernateOrmIdMapping extends GenericOrmIdMapping { +public interface HibernateOrmIdMapping extends HibernateIdMapping, + OrmIdMapping { = - public HibernateOrmIdMapping(OrmPersistentAttribute parent, - XmlId resourceMapping) { - super(parent, resourceMapping); - } - = - @Override - public HibernateJpaProject getJpaProject() { - return (HibernateJpaProject) super.getJpaProject(); - } - - @Override - public String getDefaultColumnName() { - NamingStrategy namingStrategy =3D getJpaProject().getNamingStrategy(); - if (getJpaProject().isNamingStrategyEnabled() && namingStrategy !=3D nul= l && getName() !=3D null){ - try { - return namingStrategy.propertyToColumnName(getName()); - } catch (Exception e) { - Message m =3D new LocalMessage(IMessage.HIGH_SEVERITY, = - Messages.NAMING_STRATEGY_EXCEPTION, new String[0], null); - HibernateJptPlugin.logException(m.getText(), e); - } - } - return super.getDefaultColumnName(); - } - } Copied: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src= /org/jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmIdMapp= ingImpl.java (from rev 17715, trunk/hibernatetools/plugins/org.jboss.tools.= hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/= orm/HibernateOrmIdMapping.java) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org= /jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmIdMappingI= mpl.java (rev 0) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org= /jboss/tools/hibernate/jpt/core/internal/context/orm/HibernateOrmIdMappingI= mpl.java 2009-09-25 12:09:16 UTC (rev 17727) @@ -0,0 +1,124 @@ +/*************************************************************************= ****** + * Copyright (c) 2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ + +package org.jboss.tools.hibernate.jpt.core.internal.context.orm; + +import java.util.List; + +import org.eclipse.jpt.core.context.orm.OrmPersistentAttribute; +import org.eclipse.jpt.core.internal.context.orm.GenericOrmIdMapping; +import org.eclipse.jpt.core.internal.validation.DefaultJpaValidationMessag= es; +import org.eclipse.jpt.core.internal.validation.JpaValidationMessages; +import org.eclipse.jpt.core.resource.orm.XmlId; +import org.eclipse.wst.validation.internal.core.Message; +import org.eclipse.wst.validation.internal.provisional.core.IMessage; +import org.hibernate.cfg.NamingStrategy; +import org.jboss.tools.hibernate.jpt.core.internal.HibernateJpaProject; +import org.jboss.tools.hibernate.jpt.core.internal.HibernateJptPlugin; +import org.jboss.tools.hibernate.jpt.core.internal.context.Messages; +import org.jboss.tools.hibernate.jpt.core.internal.context.HibernatePersis= tenceUnit.LocalMessage; + +/** + * @author Dmitry Geraskov + * + */ +public class HibernateOrmIdMappingImpl extends GenericOrmIdMapping +implements HibernateOrmIdMapping { + + public HibernateOrmIdMappingImpl(OrmPersistentAttribute parent, + XmlId resourceMapping) { + super(parent, resourceMapping); + } + = + @Override + public HibernateJpaProject getJpaProject() { + return (HibernateJpaProject) super.getJpaProject(); + } + + @Override + public String getDefaultColumnName() { + NamingStrategy namingStrategy =3D getJpaProject().getNamingStrategy(); + if (getJpaProject().isNamingStrategyEnabled() && namingStrategy !=3D nul= l && getName() !=3D null){ + try { + return namingStrategy.propertyToColumnName(getName()); + } catch (Exception e) { + Message m =3D new LocalMessage(IMessage.HIGH_SEVERITY, + Messages.NAMING_STRATEGY_EXCEPTION, new String[0], null); + HibernateJptPlugin.logException(m.getText(), e); + } + } + return super.getDefaultColumnName(); + } + = + @Override + public HibernateOrmColumn getColumn() { + return (HibernateOrmColumn) column; + } + = + @Override + public String getPrimaryKeyColumnName() { + return this.getColumn().getDBColumnName(); + } + = + protected void validateColumn(List messages) { + OrmPersistentAttribute pa =3D this.getPersistentAttribute(); + String tableName =3D this.column.getTable(); + if (this.getTypeMapping().tableNameIsInvalid(tableName)) { + if (pa.isVirtual()) { + messages.add( + DefaultJpaValidationMessages.buildMessage( + IMessage.HIGH_SEVERITY, + JpaValidationMessages.VIRTUAL_ATTRIBUTE_COLUMN_UNRESOLVED_TABLE, + new String[] {pa.getName(), tableName, this.getColumn().getDBColumnN= ame()}, + this.column, = + this.column.getTableTextRange() + ) + ); + } else { + messages.add( + DefaultJpaValidationMessages.buildMessage( + IMessage.HIGH_SEVERITY, + JpaValidationMessages.COLUMN_UNRESOLVED_TABLE, + new String[] {tableName, this.getColumn().getDBColumnName()}, = + this.column, = + this.column.getTableTextRange() + ) + ); + } + return; + } + = + if ( ! this.column.isResolved() && this.column.getDbTable() !=3D null) { + if (pa.isVirtual()) { + messages.add( + DefaultJpaValidationMessages.buildMessage( + IMessage.HIGH_SEVERITY, + JpaValidationMessages.VIRTUAL_ATTRIBUTE_COLUMN_UNRESOLVED_NAME, + new String[] {pa.getName(), this.getColumn().getDBColumnName()}, + this.column, = + this.column.getNameTextRange() + ) + ); + } else { + messages.add( + DefaultJpaValidationMessages.buildMessage( + IMessage.HIGH_SEVERITY, + JpaValidationMessages.COLUMN_UNRESOLVED_NAME, + new String[] {this.getColumn().getDBColumnName()}, = + this.column, = + this.column.getNameTextRange() + ) + ); + } + } + } + +} Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src= /org/jboss/tools/hibernate/jpt/ui/internal/mapping/details/HibernateIdMappi= ngComposite.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/j= boss/tools/hibernate/jpt/ui/internal/mapping/details/HibernateIdMappingComp= osite.java 2009-09-25 11:34:43 UTC (rev 17726) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/j= boss/tools/hibernate/jpt/ui/internal/mapping/details/HibernateIdMappingComp= osite.java 2009-09-25 12:09:16 UTC (rev 17727) @@ -17,6 +17,7 @@ import org.eclipse.jpt.ui.WidgetFactory; import org.eclipse.jpt.ui.details.JpaComposite; import org.eclipse.jpt.ui.internal.mappings.JptUiMappingsMessages; +import org.eclipse.jpt.ui.internal.mappings.details.GenerationComposite; import org.eclipse.jpt.ui.internal.mappings.details.TemporalTypeComposite; import org.eclipse.jpt.ui.internal.widgets.FormPane; import org.eclipse.jpt.utility.internal.model.value.PropertyAspectAdapter; @@ -28,13 +29,14 @@ import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite; import org.jboss.tools.hibernate.jpt.core.internal.context.HibernateColumn; +import org.jboss.tools.hibernate.jpt.core.internal.context.basic.Hibernate= IdMapping; import org.jboss.tools.hibernate.jpt.core.internal.context.java.HibernateJ= avaIdMapping; = /** * @author Dmitry Geraskov * */ -public class HibernateIdMappingComposite extends FormPane +public class HibernateIdMappingComposite extends FormPane implements JpaComposite{ /** * Creates a new HibernateIdMappingComposite. @@ -43,7 +45,7 @@ * @param parent The parent container * @param widgetFactory The factory used to create various common widgets */ - public HibernateIdMappingComposite(PropertyValueModel subjectHolder, + public HibernateIdMappingComposite(PropertyValueModel subjectHolder, Composite parent, WidgetFactory widgetFactory) { = @@ -59,6 +61,7 @@ }; } = + @SuppressWarnings("unchecked") @Override protected void initializeLayout(Composite container) { = @@ -67,8 +70,13 @@ = initializeTypePane(container); = - // Generation pane - new HibernateGenerationComposite(this, addSubPane(container, 10)); + if (getSubject() instanceof HibernateJavaIdMapping) { + // Generic Generator required only for Java. + new HibernateGenerationComposite((FormPane) this, addSubPane(container, 10)); = + } else { + new GenerationComposite(this, addSubPane(container, 10)); + } + = } = = Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src= /org/jboss/tools/hibernate/jpt/ui/internal/platform/HibernateJpaUiFactory.j= ava =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/j= boss/tools/hibernate/jpt/ui/internal/platform/HibernateJpaUiFactory.java 20= 09-09-25 11:34:43 UTC (rev 17726) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/j= boss/tools/hibernate/jpt/ui/internal/platform/HibernateJpaUiFactory.java 20= 09-09-25 12:09:16 UTC (rev 17727) @@ -17,7 +17,9 @@ import org.eclipse.jpt.core.context.java.JavaBasicMapping; import org.eclipse.jpt.core.context.java.JavaEntity; import org.eclipse.jpt.core.context.java.JavaIdMapping; +import org.eclipse.jpt.core.context.orm.OrmBasicMapping; import org.eclipse.jpt.core.context.orm.OrmEntity; +import org.eclipse.jpt.core.context.orm.OrmIdMapping; import org.eclipse.jpt.core.context.persistence.PersistenceUnit; import org.eclipse.jpt.ui.WidgetFactory; import org.eclipse.jpt.ui.details.JpaComposite; @@ -34,6 +36,7 @@ import org.jboss.tools.hibernate.jpt.core.internal.context.java.HibernateJ= avaEntity; import org.jboss.tools.hibernate.jpt.core.internal.context.java.HibernateJ= avaIdMapping; import org.jboss.tools.hibernate.jpt.core.internal.context.orm.HibernateOr= mEntity; +import org.jboss.tools.hibernate.jpt.core.internal.context.orm.HibernateOr= mIdMapping; import org.jboss.tools.hibernate.jpt.ui.internal.java.details.HibernateJav= aEntityComposite; import org.jboss.tools.hibernate.jpt.ui.internal.mapping.details.Hibernate= BasicMappingComposite; import org.jboss.tools.hibernate.jpt.ui.internal.mapping.details.Hibernate= IdMappingComposite; @@ -116,5 +119,22 @@ WidgetFactory widgetFactory) { return new HibernateBasicMappingComposite(subjectHolder, parent, widgetF= actory); } + = + @Override + public JpaComposite createOrmBasicMappingComposite( + PropertyValueModel subjectHolder, + Composite parent, WidgetFactory widgetFactory) { + return new HibernateBasicMappingComposite(subjectHolder, parent, + widgetFactory); + } + = + @SuppressWarnings("unchecked") + @Override + public JpaComposite createOrmIdMappingComposite( + PropertyValueModel subjectHolder, + Composite parent, + WidgetFactory widgetFactory) { + return new HibernateIdMappingComposite((PropertyValueModel) subjectHolder, parent, widgetFactory); + } = } \ No newline at end of file --===============8065609365148707574==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 08:36:37 2009 Content-Type: multipart/mixed; boundary="===============0351418750592837789==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17728 - in trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools: common/model and 1 other directories. Date: Fri, 25 Sep 2009 08:36:37 -0400 Message-ID: <200909251236.n8PCabjf003416@svn01.web.mwc.hst.phx2.redhat.com> --===============0351418750592837789== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 08:36:36 -0400 (Fri, 25 Sep 2009) New Revision: 17728 Removed: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/java/jsp/ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/js= t/web/tld/TLDToPaletteHelper.java trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/js= t/web/tld/URIConstants.java Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/XModelObjectConstants.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/t= ools/common/model/XModelObjectConstants.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/XModelObjectConstants.java 2009-09-25 12:09:16 UTC (rev 17727) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/XModelObjectConstants.java 2009-09-25 12:36:36 UTC (rev 17728) @@ -63,4 +63,9 @@ // "" = // "setModified" use ENUM for compare + + //drop & palette related = + public static final String START_TEXT =3D "start text"; //$NON-NLS-1$ + public static final String END_TEXT =3D "end text"; //$NON-NLS-1$ + public static final String REFORMAT =3D "automatically reformat tag bo= dy"; //$NON-NLS-1$ } Deleted: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/to= ols/jst/web/tld/TLDToPaletteHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/TLDToPaletteHelper.java 2009-09-25 12:09:16 UTC (rev 17727) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/TLDToPaletteHelper.java 2009-09-25 12:36:36 UTC (rev 17728) @@ -1,180 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.jst.web.tld; - -import java.util.*; -import org.jboss.tools.common.model.*; - -public class TLDToPaletteHelper { - public static final String START_TEXT =3D "start text"; //$NON-NLS-1$ - public static final String END_TEXT =3D "end text"; //$NON-NLS-1$ - public static final String REFORMAT =3D "automatically reformat tag bo= dy"; //$NON-NLS-1$ - public static final String DESCRIPTION =3D "description"; //$NON-NLS-1$ - public static final String URI =3D URIConstants.LIBRARY_URI; - public static final String DEFAULT_PREFIX =3D URIConstants.DEFAULT_PRE= FIX; - public static final String ADD_TAGLIB =3D "add taglib"; //$NON-NLS-1$ - - public TLDToPaletteHelper() {} - - public XModelObject createMacroByTag(XModelObject tag, XModel model) { - Properties p =3D new Properties(); - String parentname =3D getTldName(tag.getParent()); - String prefix =3D (parentname.length() =3D=3D 0) ? "" : parentname= + ":"; //$NON-NLS-1$ //$NON-NLS-2$ - String shortname =3D tag.getAttributeValue(XModelObjectConstants.A= TTR_NAME); - String name =3D prefix + shortname; - String tagname =3D shortname; ///name; - p.setProperty(XModelObjectConstants.ATTR_NAME, shortname); - boolean empty =3D "empty".equals(tag.getAttributeValue("bodyconten= t")); //$NON-NLS-1$ //$NON-NLS-2$ - if(!empty) p.setProperty(END_TEXT, ""); //$NON-N= LS-1$ //$NON-NLS-2$ - p.setProperty(START_TEXT, getStartText(tag, empty, tagname)); - p.setProperty(DESCRIPTION, getTagDescription(tag, empty, name)); - if(!empty) p.setProperty(REFORMAT, XModelObjectConstants.YES); - return model.createModelObject("SharableMacroHTML", p); //$NON-NLS= -1$ - } - - public static String getTldName(XModelObject tld) { - if(tld =3D=3D null) return ""; //$NON-NLS-1$ - String n =3D tld.getAttributeValue("shortname"); //$NON-NLS-1$ - if(n =3D=3D null) return ""; //$NON-NLS-1$ - if(n.length() =3D=3D 0) { - n =3D tld.getAttributeValue(XModelObjectConstants.ATTR_NAME); - int q =3D n.lastIndexOf('-'); - if(q >=3D 0) n =3D n.substring(q + 1); - } - int s =3D n.lastIndexOf(' '); - if(s >=3D 0) n =3D n.substring(s + 1); - return n.toLowerCase(); - } - - private String getStartText(XModelObject tag, boolean empty, String na= me) { - StringBuffer sb =3D new StringBuffer(); - sb.append("<").append(name); //$NON-NLS-1$ - XModelObject[] as =3D tag.getChildren(); - boolean found =3D false; - for (int i =3D 0; i < as.length; i++) { - if(!TLDUtil.isAttribute(as[i])) continue; - String required =3D as[i].getAttributeValue("required"); //$NO= N-NLS-1$ - if(!XModelObjectConstants.TRUE.equals(required) && !XModelObje= ctConstants.YES.equals(required)) continue; - sb.append(' ').append(as[i].getAttributeValue(XModelObjectCons= tants.ATTR_NAME)).append("=3D\""); //$NON-NLS-1$ - if(!found) { - sb.append('|'); - found =3D true; - } - sb.append('"'); - } - if(empty) sb.append(XModelObjectConstants.SEPARATOR); - sb.append(">"); //$NON-NLS-1$ - return sb.toString(); - } - - private String getTagDescription(XModelObject tag, boolean empty, Stri= ng name) { -// String info =3D TLDUtil.getTagDescription(tag); - StringBuffer sb =3D new StringBuffer(); - sb.append("Syntax:
"); - if (empty) = - sb.append("<").append(name).append(" />"); //$NON-NLS-1$ /= /$NON-NLS-2$ - else = - sb.append("<").append(name).append(">
</= ").append(name).append(">"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - sb.append("
Attributes:
"); - int k =3D 0; - XModelObject[] as =3D tag.getChildren(); - for (int i =3D 0; i < as.length; i++) { - if(!TLDUtil.isAttribute(as[i])) continue; - if(!isRequired(as[i])) continue; - sb.append("").append(as[i].getAttributeValue(XModelObjectConstants.= ATTR_NAME)).append(""); //$NON-NLS-1$ //$NON-NLS-2$ - ++k; - if(k < as.length) sb.append(", "); //$NON-NLS-1$ - } - for (int i =3D 0; i < as.length; i++) { - if(isRequired(as[i])) continue; - sb.append(as[i].getAttributeValue(XModelObjectConstants.ATTR_NAME)); - ++k; - if(k < as.length) sb.append(", "); //$NON-NLS-1$ - } - = - sb.append(""); //$NON-NLS-1$ - -/* - sb.append("").append("\n "); - sb.append("
").append("\n "); - if(info.length() > 0) { - sb.append("").append("\n "); - sb.append("").a= ppend("\n "); - sb.append("").append("\n "); - } - sb.append("").append("\n "); - sb.append("").append("\n "); - sb.append("").append("\n "); - sb.append("
").append(info).append("
").append("\n "); - sb.append("Syntax:=
"); - if(empty) sb.append("<" + name + " />"); else sb.append("<= ;" + name + ">
</" + name + ">"); - sb.append("
").append("\n "); - sb.append("
").append("\n "); - sb.append("Atributes:").append("\n "); - sb.append("
").append("\n "); - int k =3D 0; - XModelObject[] as =3D tag.getChildren(); - for (int i =3D 0; i < as.length; i++) { - if(!TLDUtil.isAttribute(as[i])) continue; - if(!isRequired(as[i])) continue; - sb.append("").append(as[i].getAttributeValue(XModelObjectCo= nstants.ATTR_NAME)).append(""); - ++k; - if(k < as.length) sb.append(','); - sb.append("\n "); - } - for (int i =3D 0; i < as.length; i++) { - if(isRequired(as[i])) continue; - sb.append(as[i].getAttributeValue(XModelObjectConstants.ATTR_N= AME)); - ++k; - if(k < as.length) sb.append(','); - sb.append("\n "); - } - sb.append("
").append("\n "); - sb.append("
").append('\n'); - sb.append("").append('\n'); -*/ - = - return sb.toString();///XModelObjectLoaderUtil.saveToXMLAttribute(= sb.toString()); - } - - private boolean isRequired(XModelObject attr) { - String required =3D attr.getAttributeValue("required"); //$NON-NLS= -1$ - return (XModelObjectConstants.TRUE.equals(required) || XModelObjec= tConstants.YES.equals(required)); - } - - public XModelObject createTabByTLD(XModelObject tld, XModel model) { - return createGroupByTLD(tld, model, "SharablePageTabHTML"); //$NON-NL= S-1$ - } - - public XModelObject createGroupByTLD(XModelObject tld, XModel model) { - return createGroupByTLD(tld, model, "SharableGroupHTML"); //$NON-NLS-= 1$ - } - - private XModelObject createGroupByTLD(XModelObject tld, XModel model, = String entity) { - Properties p =3D new Properties(); - p.setProperty(XModelObjectConstants.ATTR_NAME, capitalize(getTldNa= me(tld))); - p.setProperty(DESCRIPTION, TLDUtil.getTagDescription(tld)); - p.setProperty(DEFAULT_PREFIX, getTldName(tld)); - p.setProperty(URIConstants.LIBRARY_URI, "" + tld.getAttributeValue= ("uri")); //$NON-NLS-1$ //$NON-NLS-2$ - XModelObject tab =3D model.createModelObject(entity, p); - XModelObject[] tags =3D tld.getChildren(); - for (int i =3D 0; i < tags.length; i++) - if(TLDUtil.isTag(tags[i])) tab.addChild(createMacroByTag(tags[i]= , model)); - return tab; - } - - - private String capitalize(String s) { - return (s.length() =3D=3D 0) ? s : Character.toUpperCase(s.charAt(= 0)) + s.substring(1); - } - -} - Deleted: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/to= ols/jst/web/tld/URIConstants.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/URIConstants.java 2009-09-25 12:09:16 UTC (rev 17727) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/URIConstants.java 2009-09-25 12:36:36 UTC (rev 17728) @@ -1,17 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.jst.web.tld; - -public interface URIConstants { - public String LIBRARY_URI =3D "library uri"; //$NON-NLS-1$ - public String LIBRARY_VERSION =3D "library version"; //$NON-NLS-1$ - public String DEFAULT_PREFIX =3D "default prefix"; //$NON-NLS-1$ -} --===============0351418750592837789==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 08:37:34 2009 Content-Type: multipart/mixed; boundary="===============1450695857070894866==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17729 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/views/palette. Date: Fri, 25 Sep 2009 08:37:34 -0400 Message-ID: <200909251237.n8PCbYL5003523@svn01.web.mwc.hst.phx2.redhat.com> --===============1450695857070894866== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 08:37:34 -0400 (Fri, 25 Sep 2009) New Revision: 17729 Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/views/palette/PaletteInsertHelper.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/views/palette/PaletteViewPart.java Log: Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/views/palette/PaletteInsertHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/views/palette/PaletteInsertHelper.java 2009-09-25 12:36:3= 6 UTC (rev 17728) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/views/palette/PaletteInsertHelper.java 2009-09-25 12:37:3= 4 UTC (rev 17729) @@ -34,11 +34,10 @@ import org.eclipse.ui.texteditor.ITextEditor; import org.jboss.tools.common.model.ServiceDialog; import org.jboss.tools.common.model.XModelObject; +import org.jboss.tools.common.model.XModelObjectConstants; import org.jboss.tools.common.model.options.PreferenceModelUtilities; import org.jboss.tools.common.model.ui.ModelUIPlugin; import org.jboss.tools.common.model.ui.editor.IModelObjectEditorInput; -import org.jboss.tools.jst.web.tld.TLDToPaletteHelper; -import org.jboss.tools.jst.web.tld.URIConstants; = /** * @author Jeremy @@ -46,15 +45,11 @@ public class PaletteInsertHelper { = public static final String PROPOPERTY_TAG_NAME =3D "tag name"; //$NON-N= LS-1$ - public static final String PROPOPERTY_START_TEXT =3D TLDToPaletteHelper.S= TART_TEXT; - public static final String PROPOPERTY_END_TEXT =3D TLDToPaletteHelper.E= ND_TEXT; + public static final String PROPOPERTY_START_TEXT =3D XModelObjectConstant= s.START_TEXT; + public static final String PROPOPERTY_END_TEXT =3D XModelObjectConstant= s.END_TEXT; public static final String PROPOPERTY_NEW_LINE =3D "new line"; //$NON-NLS= -1$ - public static final String PROPOPERTY_REFORMAT_BODY =3D TLDToPaletteHelp= er.REFORMAT; - public static final String PROPOPERTY_TAGLIBRARY_URI =3D URIConstants.LIB= RARY_URI; - public static final String PROPOPERTY_TAGLIBRARY_VERSION =3D URIConstants= .LIBRARY_VERSION; - public static final String PROPOPERTY_DEFAULT_PREFIX =3D URIConstants.DEF= AULT_PREFIX; + public static final String PROPOPERTY_REFORMAT_BODY =3D XModelObjectCons= tants.REFORMAT; public static final String PROPOPERTY_SELECTION_PROVIDER =3D "selectionPr= ovider"; //$NON-NLS-1$ - public static final String PROPOPERTY_ADD_TAGLIB =3D TLDToPaletteHelpe= r.ADD_TAGLIB; = static PaletteInsertHelper instance =3D new PaletteInsertHelper(); = Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/views/palette/PaletteViewPart.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/views/palette/PaletteViewPart.java 2009-09-25 12:36:36 UT= C (rev 17728) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/views/palette/PaletteViewPart.java 2009-09-25 12:37:34 UT= C (rev 17729) @@ -35,7 +35,6 @@ import org.jboss.tools.common.model.ui.ModelUIPlugin; import org.jboss.tools.common.model.ui.dnd.ModelTransfer; import org.jboss.tools.common.model.ui.editor.EditorPartWrapper; -import org.jboss.tools.jst.web.tld.URIConstants; = public class PaletteViewPart extends ViewPart implements IPartListener { = @@ -144,6 +143,8 @@ if(dropIntoEditor(editor, macro)) return; if(dropIntoEditor2(editor, macro)) return; = + //TODO implement a service +/** String tagname =3D macro.getAttributeValue("name"); //$NON-NLS-1$ String startText =3D "" + macro.getAttributeValue("start text"); //$NON-= NLS-1$ //$NON-NLS-2$ String endText =3D "" + macro.getAttributeValue("end text"); //$NON-NLS-= 1$ //$NON-NLS-2$ @@ -174,6 +175,7 @@ ); page.activate(part); } +*/ } = private boolean dropIntoEditor(ITextEditor editor, XModelObject macro) { --===============1450695857070894866==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 08:38:29 2009 Content-Type: multipart/mixed; boundary="===============3431840441365013232==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17730 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/dnd. Date: Fri, 25 Sep 2009 08:38:29 -0400 Message-ID: <200909251238.n8PCcT8M003635@svn01.web.mwc.hst.phx2.redhat.com> --===============3431840441365013232== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 08:38:29 -0400 (Fri, 25 Sep 2009) New Revision: 17730 Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/dnd/FileDropCommand.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/dnd/JSPPaletteInsertHelper.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/dnd/PaletteDropCommand.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/dnd/PaletteTaglibInserter.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/jspeditor/dnd/FileDropCommand.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/FileDropCommand.java 2009-09-25 12:37:34 UTC (rev 17729) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/FileDropCommand.java 2009-09-25 12:38:29 UTC (rev 17730) @@ -54,12 +54,12 @@ properties.put(PaletteInsertHelper.PROPOPERTY_START_TEXT, generateStartT= ext()); properties.put(PaletteInsertHelper.PROPOPERTY_END_TEXT, generateEndText(= )); properties.put(PaletteInsertHelper.PROPOPERTY_REFORMAT_BODY, getReformat= BodyProperty()); - properties.put(PaletteInsertHelper.PROPOPERTY_TAGLIBRARY_URI, uri); + properties.put(JSPPaletteInsertHelper.PROPOPERTY_TAGLIBRARY_URI, uri); String version =3D ((TagProposal)getDefaultModel().getTagProposal()).get= LibraryVersion(); - properties.put(PaletteInsertHelper.PROPOPERTY_TAGLIBRARY_VERSION, versio= n); - properties.put(PaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX,getDefaultM= odel().getTagProposal().getPrefix()); + properties.put(JSPPaletteInsertHelper.PROPOPERTY_TAGLIBRARY_VERSION, ver= sion); + properties.put(JSPPaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX,getDefau= ltModel().getTagProposal().getPrefix()); properties.put(PaletteInsertHelper.PROPOPERTY_SELECTION_PROVIDER, getDef= aultModel().getDropData().getSelectionProvider()); - properties.put(PaletteInsertHelper.PROPOPERTY_ADD_TAGLIB, "true"); //$NO= N-NLS-1$ + properties.put(JSPPaletteInsertHelper.PROPOPERTY_ADD_TAGLIB, "true"); //= $NON-NLS-1$ addCustomProperties(properties); JSPPaletteInsertHelper.getInstance().insertIntoEditor( getDefaultModel().getDropData().getSourceViewer(), Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/jspeditor/dnd/JSPPaletteInsertHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/JSPPaletteInsertHelper.java 2009-09-25 12:37:34 UTC (rev 17729) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/JSPPaletteInsertHelper.java 2009-09-25 12:38:29 UTC (rev 17730) @@ -6,8 +6,14 @@ import org.eclipse.jface.text.source.ISourceViewer; import org.eclipse.ui.texteditor.ITextEditor; import org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper; +import org.jboss.tools.jst.web.tld.URIConstants; +import org.jboss.tools.jst.web.tld.model.helpers.TLDToPaletteHelper; = public class JSPPaletteInsertHelper extends PaletteInsertHelper { + public static final String PROPOPERTY_ADD_TAGLIB =3D TLDToPaletteHelpe= r.ADD_TAGLIB; + public static final String PROPOPERTY_TAGLIBRARY_URI =3D URIConstants.LIB= RARY_URI; + public static final String PROPOPERTY_TAGLIBRARY_VERSION =3D URIConstants= .LIBRARY_VERSION; + public static final String PROPOPERTY_DEFAULT_PREFIX =3D URIConstants.DEF= AULT_PREFIX; = static JSPPaletteInsertHelper instance =3D new JSPPaletteInsertHelper(); = Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/jspeditor/dnd/PaletteDropCommand.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/PaletteDropCommand.java 2009-09-25 12:37:34 UTC (rev 17729) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/PaletteDropCommand.java 2009-09-25 12:38:29 UTC (rev 17730) @@ -39,9 +39,9 @@ import org.jboss.tools.common.model.ui.views.palette.PaletteInsertManager; import org.jboss.tools.common.model.util.EclipseResourceUtil; import org.jboss.tools.jst.web.tld.IWebProject; -import org.jboss.tools.jst.web.tld.TLDToPaletteHelper; import org.jboss.tools.jst.web.tld.URIConstants; import org.jboss.tools.jst.web.tld.WebProjectFactory; +import org.jboss.tools.jst.web.tld.model.helpers.TLDToPaletteHelper; = /** * = @@ -68,9 +68,9 @@ newLine =3D properties.getProperty(PaletteInsertHelper.PROPOPERTY_NEW_LI= NE); if (newLine =3D=3D null) newLine=3D"true"; //$NON-NLS-1$ runningProperties.setProperty(PaletteInsertHelper.PROPOPERTY_NEW_LINE, n= ewLine); - String addTaglib =3D properties.getProperty(PaletteInsertHelper.PROPOPER= TY_ADD_TAGLIB); + String addTaglib =3D properties.getProperty(JSPPaletteInsertHelper.PROPO= PERTY_ADD_TAGLIB); if(addTaglib =3D=3D null) addTaglib =3D "true"; //$NON-NLS-1$ - runningProperties.setProperty(PaletteInsertHelper.PROPOPERTY_ADD_TAGLIB,= addTaglib); + runningProperties.setProperty(JSPPaletteInsertHelper.PROPOPERTY_ADD_TAGL= IB, addTaglib); } = public void execute() { Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/jspeditor/dnd/PaletteTaglibInserter.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/PaletteTaglibInserter.java 2009-09-25 12:37:34 UTC (rev 17729) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/dnd/PaletteTaglibInserter.java 2009-09-25 12:38:29 UTC (rev 17730) @@ -54,12 +54,12 @@ } = private boolean checkProperties(Properties p) { - return "true".equalsIgnoreCase(p.getProperty(PaletteInsertHelper.PROPOPE= RTY_ADD_TAGLIB)) && //$NON-NLS-1$ - p.getProperty(PaletteInsertHelper.PROPOPERTY_TAGLIBRARY_URI) !=3D null= && - p.getProperty(PaletteInsertHelper.PROPOPERTY_TAGLIBRARY_URI).length() = > 0 && - !p.getProperty(PaletteInsertHelper.PROPOPERTY_TAGLIBRARY_URI).equals(J= SP_URI) && - p.getProperty(PaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX) !=3D null= && - p.getProperty(PaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX).length() = > 0 && + return "true".equalsIgnoreCase(p.getProperty(JSPPaletteInsertHelper.PROP= OPERTY_ADD_TAGLIB)) && //$NON-NLS-1$ + p.getProperty(JSPPaletteInsertHelper.PROPOPERTY_TAGLIBRARY_URI) !=3D n= ull && + p.getProperty(JSPPaletteInsertHelper.PROPOPERTY_TAGLIBRARY_URI).length= () > 0 && + !p.getProperty(JSPPaletteInsertHelper.PROPOPERTY_TAGLIBRARY_URI).equal= s(JSP_URI) && + p.getProperty(JSPPaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX) !=3D n= ull && + p.getProperty(JSPPaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX).length= () > 0 && p.getProperty(PaletteInsertHelper.PROPOPERTY_START_TEXT) !=3D null; } = @@ -81,8 +81,8 @@ if(tl =3D=3D null) tl =3D JSPPaletteInsertHelper.getPrefixes(d.get()); Element root =3D xmlDocument.getDocumentElement(); = - String uri_p =3D p.getProperty(PaletteInsertHelper.PROPOPERTY_TAGLIBRAR= Y_URI); - String defaultPrefix_p =3D p.getProperty(PaletteInsertHelper.PROPOPERTY= _DEFAULT_PREFIX); + String uri_p =3D p.getProperty(JSPPaletteInsertHelper.PROPOPERTY_TAGLIB= RARY_URI); + String defaultPrefix_p =3D p.getProperty(JSPPaletteInsertHelper.PROPOPE= RTY_DEFAULT_PREFIX); String lineDelimiter =3D PaletteInsertHelper.getLineDelimiter(d); StringBuffer tg =3D new StringBuffer(TAGLIB_START).append(" uri=3D\"").= append(uri_p).append("\"").append(" prefix=3D\"").append(defaultPrefix_p).a= ppend("\"%>").append(lineDelimiter); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS= -3$ //$NON-NLS-4$ = @@ -90,7 +90,7 @@ //If taglib already exist check the prefix if changed if (tl.containsKey(uri_p)) { if (!tl.get(uri_p).equals(defaultPrefix_p)) { - p.setProperty(PaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX, (String= )tl.get(uri_p)); + p.setProperty(JSPPaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX, (Str= ing)tl.get(uri_p)); } } else if(!tl.containsValue(defaultPrefix_p)) { if (checkplace(xmlDocument, d, "jsp:directive.taglib", tg, p, v) =3D= =3D false) { //$NON-NLS-1$ @@ -143,7 +143,7 @@ } = private static boolean checkSelectedElement(HashMap map, I= SourceViewer v, Properties p){ - String taglibUri =3D p.getProperty(PaletteInsertHelper.PROPOPERTY_TAGLIB= RARY_URI); + String taglibUri =3D p.getProperty(JSPPaletteInsertHelper.PROPOPERTY_TAG= LIBRARY_URI); if(taglibUri =3D=3D null) return false; = Node selectedNode =3D getSelectedNode(v, p); @@ -246,8 +246,8 @@ * with text formatting */ private static Properties checkTL(Element root, ISourceViewer v, Properti= es p, IDocument d) { - String uri_p =3D p.getProperty(PaletteInsertHelper.PROPOPERTY_TAGLIBRARY= _URI); - String defaultPrefix_p =3D p.getProperty(PaletteInsertHelper.PROPOPERTY_= DEFAULT_PREFIX); + String uri_p =3D p.getProperty(JSPPaletteInsertHelper.PROPOPERTY_TAGLIBR= ARY_URI); + String defaultPrefix_p =3D p.getProperty(JSPPaletteInsertHelper.PROPOPER= TY_DEFAULT_PREFIX); = HashMap map =3D new HashMap(); NamedNodeMap attrs =3D root.getAttributes(); @@ -262,7 +262,7 @@ = if (map.containsKey(uri_p) || checkSelectedElement(map, v, p)) { if (!map.get(uri_p).equals(defaultPrefix_p)) { - p.setProperty(PaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX, (String) = map.get(uri_p)); + p.setProperty(JSPPaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX, (Strin= g) map.get(uri_p)); } } else if(!map.containsValue(defaultPrefix_p)) { StringBuffer attribute =3D new StringBuffer("xmlns:").append(defaultPre= fix_p).append("=3D\"").append(uri_p).append("\""); //$NON-NLS-1$ //$NON-NL= S-2$ //$NON-NLS-3$ --===============3431840441365013232==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 08:39:23 2009 Content-Type: multipart/mixed; boundary="===============5541441701485073630==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17731 - in trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tld: model/helpers and 1 other directory. Date: Fri, 25 Sep 2009 08:39:23 -0400 Message-ID: <200909251239.n8PCdN87003751@svn01.web.mwc.hst.phx2.redhat.com> --===============5541441701485073630== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 08:39:23 -0400 (Fri, 25 Sep 2009) New Revision: 17731 Added: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tl= d/URIConstants.java Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tl= d/model/helpers/TLDToPaletteHelper.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Added: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/we= b/tld/URIConstants.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/URIConstants.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/URIConstants.java 2009-09-25 12:39:23 UTC (rev 17731) @@ -0,0 +1,17 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.web.tld; + +public interface URIConstants { + public String LIBRARY_URI =3D "library uri"; //$NON-NLS-1$ + public String LIBRARY_VERSION =3D "library version"; //$NON-NLS-1$ + public String DEFAULT_PREFIX =3D "default prefix"; //$NON-NLS-1$ +} Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst= /web/tld/model/helpers/TLDToPaletteHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/model/helpers/TLDToPaletteHelper.java 2009-09-25 12:38:29 UTC (rev 17730) +++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/model/helpers/TLDToPaletteHelper.java 2009-09-25 12:39:23 UTC (rev 17731) @@ -16,9 +16,9 @@ import org.jboss.tools.jst.web.tld.model.TLDUtil; = public class TLDToPaletteHelper { - public static final String START_TEXT =3D "start text"; //$NON-NLS-1$ - public static final String END_TEXT =3D "end text"; //$NON-NLS-1$ - public static final String REFORMAT =3D "automatically reformat tag bo= dy"; //$NON-NLS-1$ + public static final String START_TEXT =3D XModelObjectConstants.START_= TEXT; + public static final String END_TEXT =3D XModelObjectConstants.END_TEXT; + public static final String REFORMAT =3D XModelObjectConstants.REFORMAT; public static final String DESCRIPTION =3D "description"; //$NON-NLS-1$ public static final String URI =3D URIConstants.LIBRARY_URI; public static final String DEFAULT_PREFIX =3D URIConstants.DEFAULT_PRE= FIX; @@ -95,7 +95,7 @@ } for (int i =3D 0; i < as.length; i++) { if(isRequired(as[i])) continue; - sb.append(as[i].getAttributeValue("name")); //$NON-NLS-1$ + sb.append(as[i].getAttributeValue(XModelObjectConstants.ATTR_NAME)); ++k; if(k < as.length) sb.append(", "); //$NON-NLS-1$ } @@ -107,7 +107,7 @@ = private boolean isRequired(XModelObject attr) { String required =3D attr.getAttributeValue("required"); //$NON-NLS= -1$ - return ("true".equals(required) || "yes".equals(required)); //$NON= -NLS-1$ //$NON-NLS-2$ + return (XModelObjectConstants.TRUE.equals(required) || XModelObjec= tConstants.TRUE.equals(required)); } = public XModelObject createTabByTLD(XModelObject tld, XModel model) { @@ -120,7 +120,7 @@ = private XModelObject createGroupByTLD(XModelObject tld, XModel model, = String entity) { Properties p =3D new Properties(); - p.setProperty("name", capitalize(getTldName(tld))); //$NON-NLS-1$ + p.setProperty(XModelObjectConstants.ATTR_NAME, capitalize(getTldNa= me(tld))); p.setProperty(DESCRIPTION, TLDUtil.getTagDescription(tld)); p.setProperty(DEFAULT_PREFIX, getTldName(tld)); p.setProperty(URIConstants.LIBRARY_URI, "" + tld.getAttributeValue= ("uri")); //$NON-NLS-1$ //$NON-NLS-2$ --===============5541441701485073630==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 08:40:18 2009 Content-Type: multipart/mixed; boundary="===============0450107135171317556==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17732 - in trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor: toolbar/format/handler and 1 other directory. Date: Fri, 25 Sep 2009 08:40:18 -0400 Message-ID: <200909251240.n8PCeIbL004125@svn01.web.mwc.hst.phx2.redhat.com> --===============0450107135171317556== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 08:40:18 -0400 (Fri, 25 Sep 2009) New Revision: 17732 Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/men= u/action/InsertAction.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/men= u/action/InsertAction2.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/too= lbar/format/handler/FormatHandler.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/menu/action/InsertAction.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/me= nu/action/InsertAction.java 2009-09-25 12:39:23 UTC (rev 17731) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/me= nu/action/InsertAction.java 2009-09-25 12:40:18 UTC (rev 17732) @@ -20,8 +20,8 @@ import org.jboss.tools.common.model.XModelObject; import org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper; import org.jboss.tools.jst.jsp.jspeditor.dnd.JSPPaletteInsertHelper; -import org.jboss.tools.jst.web.tld.TLDToPaletteHelper; import org.jboss.tools.jst.web.tld.URIConstants; +import org.jboss.tools.jst.web.tld.model.helpers.TLDToPaletteHelper; import org.jboss.tools.vpe.editor.context.VpePageContext; import org.jboss.tools.vpe.editor.util.Constants; import org.jboss.tools.vpe.editor.util.SelectionUtil; @@ -140,7 +140,7 @@ p.setProperty(URIConstants.LIBRARY_VERSION, libraryVersion); String addTaglib =3D item.getParent().getAttributeValue(TLDToPaletteHelp= er.ADD_TAGLIB); p.setProperty(URIConstants.DEFAULT_PREFIX, defaultPrefix); - p.setProperty(PaletteInsertHelper.PROPOPERTY_ADD_TAGLIB, addTaglib); + p.setProperty(JSPPaletteInsertHelper.PROPOPERTY_ADD_TAGLIB, addTaglib); /* * Added by Dzmitry Sakovich Fix for JBIDE-1626 */ Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/menu/action/InsertAction2.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/me= nu/action/InsertAction2.java 2009-09-25 12:39:23 UTC (rev 17731) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/me= nu/action/InsertAction2.java 2009-09-25 12:40:18 UTC (rev 17732) @@ -20,8 +20,8 @@ import org.jboss.tools.common.model.XModelObject; import org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper; import org.jboss.tools.jst.jsp.jspeditor.dnd.JSPPaletteInsertHelper; -import org.jboss.tools.jst.web.tld.TLDToPaletteHelper; import org.jboss.tools.jst.web.tld.URIConstants; +import org.jboss.tools.jst.web.tld.model.helpers.TLDToPaletteHelper; import org.jboss.tools.vpe.editor.menu.InsertType; import org.jboss.tools.vpe.editor.util.Constants; import org.jboss.tools.vpe.editor.util.NodesManagingUtil; @@ -209,7 +209,7 @@ String addTaglib =3D item.getParent().getAttributeValue( TLDToPaletteHelper.ADD_TAGLIB); p.setProperty(URIConstants.DEFAULT_PREFIX, defaultPrefix); - p.setProperty(PaletteInsertHelper.PROPOPERTY_ADD_TAGLIB, addTaglib); + p.setProperty(JSPPaletteInsertHelper.PROPOPERTY_ADD_TAGLIB, addTaglib); /* * Added by Dzmitry Sakovich Fix for JBIDE-1626 */ Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/toolbar/format/handler/FormatHandler.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/to= olbar/format/handler/FormatHandler.java 2009-09-25 12:39:23 UTC (rev 17731) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/to= olbar/format/handler/FormatHandler.java 2009-09-25 12:40:18 UTC (rev 17732) @@ -113,8 +113,8 @@ if(format) { p.setProperty(PaletteInsertHelper.PROPOPERTY_REFORMAT_BODY, "yes"); //$= NON-NLS-1$ } - p.setProperty(PaletteInsertHelper.PROPOPERTY_TAGLIBRARY_URI, "http://www= .w3.org/TR/REC-html40"); //$NON-NLS-1$ - p.setProperty(PaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX, ""); //$NON= -NLS-1$ + p.setProperty(JSPPaletteInsertHelper.PROPOPERTY_TAGLIBRARY_URI, "http://= www.w3.org/TR/REC-html40"); //$NON-NLS-1$ + p.setProperty(JSPPaletteInsertHelper.PROPOPERTY_DEFAULT_PREFIX, ""); //$= NON-NLS-1$ = ITextSelection sel =3D new TextSelection(startOffcet, length); ISelectionProvider selProvider =3D viewer.getSelectionProvider(); --===============0450107135171317556==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 08:54:11 2009 Content-Type: multipart/mixed; boundary="===============7701950814948390911==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17733 - in trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools: jst/web/tld and 1 other directory. Date: Fri, 25 Sep 2009 08:54:11 -0400 Message-ID: <200909251254.n8PCsBsc006953@svn01.web.mwc.hst.phx2.redhat.com> --===============7701950814948390911== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 08:54:11 -0400 (Fri, 25 Sep 2009) New Revision: 17733 Removed: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/js= t/web/tld/FilePathEncoderFactory.java trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/js= t/web/tld/IFilePathEncoder.java Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/project/ModelNatureExtension.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/t= ools/common/model/project/ModelNatureExtension.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/project/ModelNatureExtension.java 2009-09-25 12:40:18 UTC (rev = 17732) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/project/ModelNatureExtension.java 2009-09-25 12:54:11 UTC (rev = 17733) @@ -6,9 +6,6 @@ import org.eclipse.core.runtime.IConfigurationElement; import org.eclipse.core.runtime.IExtensionPoint; import org.eclipse.core.runtime.Platform; -import org.jboss.tools.common.model.plugin.ModelPlugin; -import org.jboss.tools.common.model.util.ModelFeatureFactory; -import org.jboss.tools.jst.web.tld.IFilePathEncoder; = public class ModelNatureExtension { public static String EXTENSION_POINT =3D "org.jboss.tools.common.model.mo= delnatures"; //$NON-NLS-1$ @@ -17,7 +14,6 @@ String displayName; String pathEncoder; String watcherContributor; - IFilePathEncoder pathEncoderInstance; = public ModelNatureExtension() {} = @@ -29,25 +25,8 @@ return displayName; } = - public IFilePathEncoder getPathEncoder () { - if(pathEncoderInstance !=3D null) { - return pathEncoderInstance; - } - if(pathEncoder =3D=3D null) { - return null; - } - if(pathEncoder.length() =3D=3D 0) { - pathEncoder =3D null; - return null; - } - try { - pathEncoderInstance =3D (IFilePathEncoder)ModelFeatureFactory.getInstan= ce().createFeatureInstance(pathEncoder); - } catch (ClassCastException e) { - ModelPlugin.getPluginLog().logError(e); - } finally { - pathEncoder =3D null; - } - return pathEncoderInstance; + public String getPathEncoder () { + return pathEncoder; } = public String getWatcherContributor() { Deleted: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/to= ols/jst/web/tld/FilePathEncoderFactory.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/FilePathEncoderFactory.java 2009-09-25 12:40:18 UTC (rev 17732) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/FilePathEncoderFactory.java 2009-09-25 12:54:11 UTC (rev 17733) @@ -1,35 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.jst.web.tld; - -import org.eclipse.core.resources.IProject; -import org.eclipse.core.runtime.CoreException; -import org.jboss.tools.common.model.project.ModelNatureExtension; - -public class FilePathEncoderFactory { - - public static IFilePathEncoder getEncoder(IProject project) { - if(project =3D=3D null || !project.isOpen()) return null; - ModelNatureExtension[] es =3D ModelNatureExtension.getInstances(); - for (int i =3D 0; i < es.length; i++) { - try { - if(project.hasNature(es[i].getName())) { - IFilePathEncoder encoder =3D es[i].getPathEncoder(); - if(encoder !=3D null) return encoder; - } - } catch (CoreException e) { - //ignore - all checks are done above - } - } - return null; - } - -} Deleted: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/to= ols/jst/web/tld/IFilePathEncoder.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/IFilePathEncoder.java 2009-09-25 12:40:18 UTC (rev 17732) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/IFilePathEncoder.java 2009-09-25 12:54:11 UTC (rev 17733) @@ -1,37 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.jst.web.tld; - -import java.util.Properties; - -import org.jboss.tools.common.model.XModelObject; - -public interface IFilePathEncoder { - public static String PATH_TYPE =3D "pathType"; //$NON-NLS-1$ - public static String PATH_ADDITION =3D "pathAddition"; //$NON-NLS-1$ - = - public static String ABSOLUTE_PATH =3D "absolute"; //$NON-NLS-1$ - public static String RELATIVE_PATH =3D "relative"; //$NON-NLS-1$ - = - /** - * Returns path that should be inserted to jsp page. - * = - * @path file path relative to WebContent - */ - public String encode(String path, XModelObject f, String tag, VpeTaglibMa= nager taglibs, Properties context); - = - /** - * Returns file path relative to WebContent - * = - * @path value on jsp page - */ - public String decode(String path, XModelObject f, String tag, VpeTaglibMa= nager taglibs, Properties context); -} --===============7701950814948390911==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 08:55:13 2009 Content-Type: multipart/mixed; boundary="===============1802897165467310706==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17734 - in trunk/jst/plugins/org.jboss.tools.jst.web: src/org/jboss/tools/jst/web/tld and 1 other directory. Date: Fri, 25 Sep 2009 08:55:13 -0400 Message-ID: <200909251255.n8PCtDhi007364@svn01.web.mwc.hst.phx2.redhat.com> --===============1802897165467310706== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 08:55:12 -0400 (Fri, 25 Sep 2009) New Revision: 17734 Added: trunk/jst/plugins/org.jboss.tools.jst.web/catalog/web-facesconfig_2_0.xsd trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tl= d/FilePathEncoderFactory.java trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tl= d/IFilePathEncoder.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Added: trunk/jst/plugins/org.jboss.tools.jst.web/catalog/web-facesconfig_2_= 0.xsd =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/catalog/web-facesconfig_2_0.x= sd (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.web/catalog/web-facesconfig_2_0.x= sd 2009-09-25 12:55:12 UTC (rev 17734) @@ -0,0 +1,2743 @@ + + + + + + + + + + $Id: web-facesconfig_2_0.xsd,v 1.1.8.2 2008/03/20 21:12:50 edb= urns Exp $ + + + + + + + Copyright 2007 Sun Microsystems, Inc., = + 901 San Antonio Road, = + Palo Alto, California 94303, U.S.A. = + All rights reserved. + + Sun Microsystems, Inc. has intellectual property = + rights relating to technology described in this document. In + particular, and without limitation, these intellectual + property rights may include one or more of the U.S. patents + listed at http://www.sun.com/patents and one or more + additional patents or pending patent applications in the + U.S. and other countries. + + This document and the technology which it describes are + distributed under licenses restricting their use, copying, + distribution, and decompilation. No part of this document + may be reproduced in any form by any means without prior + written authorization of Sun and its licensors, if any. + + Third-party software, including font technology, is + copyrighted and licensed from Sun suppliers. + + Sun, Sun Microsystems, the Sun logo, Solaris, Java, Java EE, + JavaServer Pages, Enterprise JavaBeans and the Java Coffee + Cup logo are trademarks or registered trademarks of Sun + Microsystems, Inc. in the U.S. and other countries. + + Federal Acquisitions: Commercial Software - Government Users + Subject to Standard License Terms and Conditions. + + + + + + + + + ... + + + The instance documents may indicate the published + version of the schema using xsi:schemaLocation attribute + for javaee namespace with the following location: + + http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd + + ]]> + + + + + + + + + + + + + The "faces-config" element is the root of the configuration + information hierarchy, and contains nested elements for all + of the other configuration settings. + + + + + + + + + Behavior IDs must be unique within a document. + + + + + + + + + + + + + Converter IDs must be unique within a document. + + + + + + + + + + + + + 'converter-for-class' element values must be unique + within a document. + + + + + + + + + + + + + Validator IDs must be unique within a document. + + + + + + + + + + + + + Managed bean names must be unique within a document. + + + + + + + + + + + + + + + + The "faces-config" element is the root of the configuration + information hierarchy, and contains nested elements for all + of the other configuration settings. + + + + + + + + + + + + + + + = + The "name" element within the top level "faces-confi= g" + element declares the name of this application + configuration resource. Such names are used + in the document ordering scheme specified in section + JSF.11.4.6. + = + + + + = + + + + + + + + + + + + + The metadata-complete attribute defines whether this + JavaServer Faces application is complete, or whether + the class files available to this module and packaged = with + this application should be examined for annotations + that specify configuration information. + = + This attribute is only inspected on the application = + configuration resource file located at "WEB-INF/faces-= config.xml". + The presence of this attribute on any application conf= iguration + resource other than the one located at "WEB-INF/faces-= config.xml", + including any files named using the javax.faces.CONFIG= _FILES + attribute, must be ignored. + + If metadata-complete is set to "true", the JavaServer = Faces + runtime must ignore any annotations that specify confi= guration + information, which might be present in the class files + of the application. + + If metadata-complete is not specified or is set to + "false", the JavaServer Faces runtime must examine the= class + files of the application for annotations, as specified= by + the specification. + + If "WEB-INF/faces-config.xml" is not present, the Java= Server + Faces runtime will assume metadata-complete to be "fal= se". + + The value of this attribute will have no impact on + runtime annotations such as @ResourceDependency or + @ListenerFor. + + + + + + + + + + + + + + Extension element for faces-config. It may contain + implementation specific content. + + + + + + + + + + + + + + + + + + + Please see section JSF.11.4.6 for the specification of this = element. + = + + + + + + + + + + + + + This element contains a sequence of "id" elements, each of= which + refers to an application configuration resource by the "id" + declared on its faces-config element. This element can al= so contain + a single "others" element which specifies that this docume= nt comes + before or after other documents within the application. + + + + + + + + + = + + + + = + This element indicates that the ordering sub-element in wh= ich + it was placed should take special action regarding the ord= ering + of this application resource relative to other + application configuration resources. See section JSF.11.4= .6 + for the complete specification. + + + + + + + + + + + + + + + Only relevant if this is placed within the /WEB-INF/faces-co= nfig.xml. + Please see section JSF.11.4.6 for the specification for deta= ils. + + + + + + + + + + + + + + + + + + The "application" element provides a mechanism to define t= he + various per-application-singleton implementation artifacts= for + a particular web application that is utilizing = + JavaServer Faces. For nested elements that are not specif= ied, = + the JSF implementation must provide a suitable default. + + + + + + + + + = + The "action-listener" element contains the ful= ly = + qualified class name of the concrete = + ActionListener implementation class that will = be = + called during the Invoke Application phase of = the = + request processing lifecycle. + = + + + + + + + = + The "default-render-kit-id" element allows the = + application to define a renderkit to be used o= ther = + than the standard one. = + = + + + + + + + = + The base name of a resource bundle representin= g = + the message resources for this application. S= ee = + the JavaDocs for the "java.util.ResourceBundle= " = + class for more information on the syntax of = + resource bundle names. + = + + + + + + + = + The "navigation-handler" element contains the = + fully qualified class name of the concrete = + NavigationHandler implementation class that wi= ll = + be called during the Invoke Application phase = + of the request processing lifecycle, if the = + default ActionListener (provided by the JSF = + implementation) is used. + = + + + + + + + + The "partial-traversal" element contains the f= ully + qualified class name of the concrete + PartialTraversal implementation class that wil= l be + called during the "execute" and "render" phase= s of the + request processing lifecycle. + + + + + + + + = + The "view-handler" element contains the fully = + qualified class name of the concrete ViewHandl= er = + implementation class that will be called durin= g = + the Restore View and Render Response phases of= the = + request processing lifecycle. The faces = + implementation must provide a default = + implementation of this class. + = + + + + + + + = + The "state-manager" element contains the fully = + qualified class name of the concrete StateMana= ger = + implementation class that will be called durin= g = + the Restore View and Render Response phases of= the = + request processing lifecycle. The faces = + implementation must provide a default = + implementation of this class. + = + + + + + + + = + The "el-resolver" element contains the fully + qualified class name of the concrete + javax.el.ELResolver implementation class + that will be used during the processing of + EL expressions. + = + + + + + + + = + The "property-resolver" element contains the f= ully = + qualified class name of the concrete = + PropertyResolver implementation class that wil= l = + be used during the processing of value binding = + expressions. + = + + + + + + + + The "variable-resolver" element contains the f= ully + qualified class name of the concrete = + VariableResolver implementation class that wil= l = + be used during the processing of value binding = + expressions. + + + + + + + + + + + + + + + + + + + + + + + + + + + The resource-bundle element inside the application element + references a java.util.ResourceBundle instance by name + using the var element. ResourceBundles referenced in this + manner may be returned by a call to + Application.getResourceBundle() passing the current + FacesContext for this request and the value of the var + element below. + + + + + + + + + + = + The fully qualified class name of the + java.util.ResourceBundle instance. + = + + + + + + + = + The name by which this ResourceBundle instance + is retrieved by a call to + Application.getResourceBundle(). + = + + + + + + + + + + + + + + Extension element for application. It may contain + implementation specific content. + + + + + + + + + + + + + + + + + + The "factory" element provides a mechanism to define the = + various Factories that comprise parts of the implementatio= n = + of JavaServer Faces. For nested elements that are not = + specified, the JSF implementation must provide a suitable = + default. + + + + + + + + + = + The "application-factory" element contains the = + fully qualified class name of the concrete = + ApplicationFactory implementation class that will = + be called when = + FactoryFinder.getFactory(APPLICATION_FACTORY) is + called. + = + + + + + + + = + The "exception-handler-factory" element contains t= he + fully qualified class name of the concrete + ExceptionHandlerFactory implementation class that = will + be called when = + FactoryFinder.getFactory(EXCEPTION_HANDLER_FACTORY= ) = + is called. + = + + + + + + + + The "external-context-factory" element contains the + fully qualified class name of the concrete + ExternalContextFactory implementation class that w= ill + be called when + FactoryFinder.getFactory(EXTERNAL_CONTEXT_FACTORY) + is called. + + + + + = + + + + = + The "faces-context-factory" element contains the + fully qualified class name of the concrete + FacesContextFactory implementation class that will + be called when = + FactoryFinder.getFactory(FACES_CONTEXT_FACTORY) = + is called. + = + + + + + + + + + The "partial-view-context-factory" element contain= s the + fully qualified class name of the concrete + PartialViewContextFactory implementation class tha= t will + be called when FactoryFinder.getFactory + (FactoryFinder.PARTIAL_VIEW_CONTEXT_FACTORY) is ca= lled. + + + + + + + + + = + The "lifecycle-factory" element contains the fully + qualified class name of the concrete LifecycleFact= ory + implementation class that will be called when + FactoryFinder.getFactory(LIFECYCLE_FACTORY) is cal= led. + = + + + + + + + = + The "view-declaration-language-factory" element co= ntains = + the fully qualified class name of the concrete = + ViewDeclarationLanguageFactory + implementation class that will be called when + FactoryFinder.getFactory(VIEW_DECLARATION_FACTORY)= is called. + = + + + + + + + = + The "tag-handler-delegate-factory" element contain= s = + the fully qualified class name of the concrete = + ViewDeclarationLanguageFactory + implementation class that will be called when + FactoryFinder.getFactory(TAG_HANDLER_DELEGATE_FACT= ORY) is called. + = + + + + + + + + The "render-kit-factory" element contains the fully + qualified class name of the concrete RenderKitFact= ory + implementation class that will be called when + FactoryFinder.getFactory(RENDER_KIT_FACTORY) is = + called. + + + + + + + + + The "visit-context-factory" element contains the f= ully + qualified class name of the concrete VisitContextF= actory + implementation class that will be called when + FactoryFinder.getFactory(VISIT_CONTEXT_FACTORY) is = + called. + + + + + + + + + + + + + + + + Extension element for factory. It may contain + implementation specific content. + + + + + + + + + + + + + + + + + + The "attribute" element represents a named, typed, value + associated with the parent UIComponent via the generic + attributes mechanism. + + Attribute names must be unique within the scope of the par= ent + (or related) component. + + + + + + + + + + = + The "attribute-name" element represents the name u= nder = + which the corresponding value will be stored, in t= he = + generic attributes of the UIComponent we are relat= ed = + to. + = + + + + + + + + The "attribute-class" element represents the Java = type + of the value associated with this attribute name. + + + + + + + + + + + + + + + + + + Extension element for attribute. It may contain = + implementation specific content. + + + + + + + + + + + + + + + + + The "component" element represents a concrete UIComponent + implementation class that should be registered under the + specified type identifier, along with its associated = + properties and attributes. Component types must be unique = + within the entire web application. + + Nested "attribute" elements identify generic attributes th= at = + are recognized by the implementation logic of this compone= nt. + Nested "property" elements identify JavaBeans properties o= f = + the component class that may be exposed for manipulation = + via tools. + + + + + + + + + + = + The "component-type" element represents the name u= nder = + which the corresponding UIComponent class should b= e = + registered. + = + + + + + + + = + The "component-class" element represents the fully = + qualified class name of a concrete UIComponent = + implementation class. + = + + + + + + + + + + + + + + + + + Extension element for component. It may contain = + implementation specific content. + + + + + + + + + + + + + + + + The "default-locale" element declares the default locale = + for this application instance. + + It must be specified as :language:[_:country:[_:variant:]] + without the colons, for example "ja_JP_SJIS". The + separators between the segments may be '-' or '_'. + + + + + + = = + + + + + + + + + + + + The "default-value" contains the value for the property or + attribute in which this element resides. This value diffe= rs + from the "suggested-value" in that the property or attribu= te + must take the value, whereas in "suggested-value" taking t= he + value is optional. + + + + + + + + + + + + + + + EL expressions present within a faces config file + must start with the character sequence of '#{' and + end with '}'. + + + + + + + + + + + + + + + Define the name and other design-time information for a fa= cet + that is associated with a renderer or a component. + + + + + + + + + + + The "facet-name" element represents the facet name = + under which a UIComponent will be added to its par= ent. = + It must be of type "Identifier". + + + + + + + + + + + + + + + + Extension element for facet. It may contain implementation + specific content. + + + + + + + + + + + + + + + + + The value of from-view-id must contain one of the followin= g = + values: + + - The exact match for a view identifier that is recogniz= ed + by the the ViewHandler implementation being used (such= as + "/index.jsp" if you are using the default ViewHandler). + + - A proper prefix of a view identifier, plus a trailing = + "*" character. This pattern indicates that all view = + identifiers that match the portion of the pattern up t= o = + the asterisk will match the surrounding rule. When mo= re = + than one match exists, the match with the longest patt= ern = + is selected. + + - An "*" character, which means that this pattern applie= s = + to all view identifiers. + + + + + + + + + + + + + + + The "from-action" element contains an action reference = + expression that must have been executed (by the default = + ActionListener for handling application level events) = + in order to select the navigation rule. If not specified, = + this rule will be relevant no matter which action referenc= e = + was executed (or if no action reference was executed). + + + + + + + + + + + + + + + + + The "if" element defines a condition that must resolve + to true in order for the navigation case on which it is + defined to be matched, with the existing match criteria + (action method and outcome) as a prerequiste, if present. + The condition is defined declaratively using a value + expression in the body of this element. The expression is + evaluated at the time the navigation case is being matched. + If the "from-outcome" is omitted and this element is + present, the navigation handler will match a null outcome + and use the condition return value to determine if the + case should be considered a match. + + + + + + + + + + + + + + + + + The "converter" element represents a concrete Converter + implementation class that should be registered under the + specified converter identifier. Converter identifiers mus= t = + be unique within the entire web application. + + Nested "attribute" elements identify generic attributes th= at + may be configured on the corresponding UIComponent in orde= r = + to affect the operation of the Converter. Nested "propert= y" + elements identify JavaBeans properties of the Converter + implementation class that may be configured to affect the + operation of the Converter. "attribute" and "property" = + elements are intended to allow component developers to = + more completely describe their components to tools and use= rs. + These elements have no required runtime semantics. + + + + + + + + + + + + The "converter-id" element represents the = + identifier under which the corresponding = + Converter class should be registered. + + + + + = + + + + + The "converter-for-class" element represents t= he = + fully qualified class name for which a Convert= er = + class will be registered. + + + + + + = + + + + + The "converter-class" element represents the fully + qualified class name of a concrete Converter = + implementation class. + + + + + + + + + Nested "attribute" elements identify generic + attributes that may be configured on the + corresponding UIComponent in order to affect the + operation of the Converter. This attribute is + primarily for design-time tools and is not + specified to have any meaning at runtime. + + + + + + + + + Nested "property" elements identify JavaBeans + properties of the Converter implementation class + that may be configured to affect the operation of + the Converter. This attribute is primarily for + design-time tools and is not specified to have + any meaning at runtime. + + + + + + + + + + + + + + + + Extension element for converter. It may contain + implementation specific content. + + + + + + + + + + + + + + + + + + = + The "lifecycle" element provides a mechanism to specify + modifications to the behaviour of the default Lifecycle + implementation for this web application. + = + + + + + + = + + + = + The "phase-listener" element contains the fully = + qualified class name of the concrete PhaseListener = + implementation class that will be registered on = + the Lifecycle. + = + + = + + + + + + + + + + + + + + + Extension element for lifecycle. It may contain + implementation specific content. + + + + + + + + + + + = + + = + + + + + The localeType defines valid locale defined by ISO-639-1 + and ISO-3166. + + + + + + + + + + + + + + + + The "locale-config" element allows the app developer to = + declare the=C2=A0supported locales for this application. + + + + = + + + + = + + + + + + + + + + + + The "default-validators" element allows the app developer = to = + register a set of validators, referenced by identifier, th= at + are automatically assigned to any EditableValueHolder comp= onent + in the application, unless overridden or disabled locally. + + + + = + + + + + = + The "validator-id" element represents the identifi= er = + of a registered validator. + = + + + + + + + + + + + + + = + The "managed-bean" element represents a JavaBean, of a = + particular class, that will be dynamically instantiated = + at runtime (by the default VariableResolver implementation= ) = + if it is referenced as the first element of a value bindin= g = + expression, and no corresponding bean can be identified in = + any scope. In addition to the creation of the managed bea= n, = + and the optional storing of it into the specified scope, = + the nested managed-property elements can be used to = + initialize the contents of settable JavaBeans properties o= f = + the created instance. + = + + + + + + + + + + The "managed-bean-name" element represents the = + attribute name under which a managed bean will = + be searched for, as well as stored (unless the = + "managed-bean-scope" value is "none"). + + + + + + + + + The "managed-bean-class" element represents the fu= lly + qualified class name of the Java class that will b= e = + used`to instantiate a new instance if creation of = the = + specified`managed bean is requested. + + The specified class must conform to standard JavaB= eans + conventions. In particular, it must have a public + zero-arguments constructor, and zero or more public + property setters. + + + + + + + + + The "managed-bean-scope" element represents the sc= ope = + into which a newly created instance of the specifi= ed = + managed bean will be stored (unless the value is = + "none"). + + + + + + + + + + + + + + + + This attribute is only considered when associated with + an application-scoped managed bean. If the value of th= e eager + attribute is true the runtime must instantiate this cl= ass + and store the instance within the application scope wh= en the + application starts. + + If eager is unspecified or is false, the default "lazy" + instantiation and scoped storage of the managed bean + will occur. + + + + + + + + + + + + + + Extension element for managed-bean. It may contain + implementation specific content. + + + + + + + + + + + + + = + + + + + + element's body content, which includes all of the scopes + normally used in a web application, plus the "none" value + indicating that a created bean should not be stored into + any scope. Alternatively, an EL expression may be used + as the value of this element. The result of evaluating th= is + expression must by of type java.util.Map. + ]]> + + + + + + + + + + + + + + + + = + The "managed-property" element represents an individual = + property of a managed bean that will be configured to the = + specified value (or value set) if the corresponding = + managed bean is automatically created. + = + + + + + + + + = + The "property-name" element represents the JavaBea= ns = + property name under which the corresponding value = may = + be stored. + = + + + + + + + = + The "property-class" element represents the Java t= ype = + of the value associated with this property name. = + If not specified, it can be inferred from existing = + classes; however, this element should be specified = + if the configuration file is going to be the sourc= e = + for generating the corresponding classes. + = + + + + + + + + + + + + + + + + + + + + = + The "map-entry" element reprsents a single key-entry pair = + that will be added to the computed value of a managed = + property of type java.util.Map. + = + + + + + + + + The "key" element is the String representation of = a = + map key that will be stored in a managed property = of = + type java.util.Map. + + + + + + + + + + + + + + + + + + = + The "map-entries' element represents a set of key-entry pa= irs = + that will be added to the computed value of a managed prop= erty = + of type java.util.Map. In addition, the Java class types = + of the key and entry values may be optionally declared. + = + + + + + + + + = + The "key-class" element defines the Java type to w= hich = + each "key" element in a set of "map-entry" element= s = + will be converted to. If omitted, "java.lang.Stri= ng" = + is assumed. + = + + + + = + + + + + + + + + + + = + The "navigation-case" element describes a particular = + combination of conditions that must match for this case to = + be executed, and the view id of the component tree that = + should be selected next. + = + + + + + + + + + + + The "from-outcome" element contains a logical outc= ome + string returned by the execution of an application + action method selected via an "actionRef" property + (or a literal value specified by an "action" prope= rty) + of a UICommand component. If specified, this rule = + will be relevant only if the outcome value matches = + this element's value. If not specified, this rule = + will be relevant if the outcome value is non-null + or, if the "if" element is present, will be releva= nt + for any outcome value, with the assumption that the + condition specified in the "if" element ultimately + determines if this rule is a match. + + + + + + + + + Please see section JSF.7.4.2 for the specification = of this element. + + + + + + + + + The "to-view-id" element contains the view identif= ier = + of the next view that should be displayed if this + navigation rule is matched. If the contents is a + value expression, it should be resolved by the + navigation handler to obtain the view identifier. + + + + + + + + + + + + + + + + The "navigation-rule" element represents an individual = + decision rule that will be utilized by the default = + NavigationHandler implementation to make decisions on = + what view should be displayed next, based on the = + view id being processed. + + + + + + + + + + + + + + + + + + + Extension element for navigation-rule. It may contain + implementation specific content. + + + + + + + + + + + + + + + + + + The "null-value" element indicates that the managed + property in which we are nested will be explicitly + set to null if our managed bean is automatically + created. This is different from omitting the managed + property element entirely, which will cause no + property setter to be called for this property. + + The "null-value" element can only be used when the + associated "property-class" identifies a Java class, + not a Java primitive. + + + + + + = + + + + + + = + The "property" element represents a JavaBean property of t= he = + Java class represented by our parent element. + + Property names must be unique within the scope of the Java = + class that is represented by the parent element, and must = + correspond to property names that will be recognized when = + performing introspection against that class via = + java.beans.Introspector. + = + + + + + + + + = + The "property-name" element represents the JavaBea= ns = + property name under which the corresponding value = + may be stored. + = + + + + + + + = + The "property-class" element represents the Java t= ype = + of the value associated with this property name. = + If not specified, it can be inferred from existing = + classes; however, this element should be specified= if = + the configuration file is going to be the source f= or = + generating the corresponding classes. + = + + + + = + + + + + + + + + + + + + + Extension element for property. It may contain = + implementation specific content. + + + + + + + + + + + + + + + + + The "redirect" element indicates that navigation to the + specified "to-view-id" should be accomplished by = + performing an HTTP redirect rather than the usual = + ViewHandler mechanisms. + + + + + + + + + + + + + + + + + + The "view-param" element, only valid within + a "redirect" element, contains child "name" + and "value" elements that must be included in the + redirect url when the redirect is performed. + + + + + + + + + + + + + + + + + = + The "referenced-bean" element represents at design time th= e = + promise that a Java object of the specified type will exis= t at = + runtime in some scope, under the specified key. This can = be = + used by design time tools to construct user interface dial= ogs = + based on the properties of the specified class. The prese= nce = + or absence of a referenced bean element has no impact on t= he = + JavaServer Faces runtime environment inside a web applicat= ion. + = + + + + + + + + = + The "referenced-bean-name" element represents the = + attribute name under which the corresponding = + referenced bean may be assumed to be stored, in on= e = + of 'request', 'session', 'view', 'application' = + or a custom scope. + = + + + + + + + + The "referenced-bean-class" element represents the = + fully qualified class name of the Java class = + (either abstract or concrete) or Java interface = + implemented by the corresponding referenced bean. = + + + + + + + + + + + + + + = + The "render-kit" element represents a concrete RenderKit = + implementation that should be registered under the specifi= ed = + render-kit-id. If no render-kit-id is specified, the = + identifier of the default RenderKit = + (RenderKitFactory.DEFAULT_RENDER_KIT) is assumed. + = + + + = + + + + + + = + The "render-kit-id" element represents an identifi= er = + for the RenderKit represented by the parent = + "render-kit" element. + = + + + + + + + = + The "render-kit-class" element represents the full= y = + qualified class name of a concrete RenderKit = + implementation class. + = + + + + + + + + + + + + + + + + + The "client-behavior-renderer" element represents a concre= te = + ClientBehaviorRenderer implementation class that should be = + registered under the specified behavior renderer type iden= tifier, + in the RenderKit associated with the parent "render-kit" + element. Client Behavior renderer type must be unique wit= hin the RenderKit + associated with the parent "render-kit" element. + + Nested "attribute" elements identify generic component + attributes that are recognized by this renderer. + + + + + + + + + + The "client-behavior-renderer-type" element repres= ents a renderer type + identifier for the Client Behavior Renderer repres= ented by the parent + "client-behavior-renderer" element. + + + + + + + + + The "client-behavior-renderer-class" element repre= sents the fully + qualified class name of a concrete Client Behavior= Renderer + implementation class. + + + + + + + + + + + = + The "renderer" element represents a concrete Renderer = + implementation class that should be registered under the = + specified component family and renderer type identifiers, = + in the RenderKit associated with the parent "render-kit" = + element. Combinations of component family and = + renderer type must be unique within the RenderKit = + associated with the parent "render-kit" element. + + Nested "attribute" elements identify generic component = + attributes that are recognized by this renderer. + = + + + = + + + + + + = + The "component-family" element represents the = + component family for which the Renderer represente= d = + by the parent "renderer" element will be used. + = + + = + + + + + = + The "renderer-type" element represents a renderer = type = + identifier for the Renderer represented by the par= ent = + "renderer" element. + = + + + + + + + + The "renderer-class" element represents the fully + qualified class name of a concrete Renderer + implementation class. + + + + + + + + + + + + + + + + + + Extension element for renderer. It may contain implementa= tion + specific content. + + + + + + + + + + + + + + + + + Extension element for render-kit. It may contain + implementation specific content. + + + + + + + + + + + + + + + + + + The "suggested-value" contains the value for the property = or + attribute in which this element resides. This value is = + advisory only and is intended for tools to use when = + populating pallettes. + + + + + + + + + + + + + + + The "supported-locale" element allows authors to declare + which locales are supported in this application instance. + + It must be specified as :language:[_:country:[_:variant:]] + without the colons, for example "ja_JP_SJIS". The + separators between the segments may be '-' or '_'. + + + + + + = + + + + + + + + + + + The "behavior" element represents a concrete Behavior = + implementation class that should be registered under the + specified behavior identifier. Behavior identifiers must + be unique within the entire web application. + + Nested "attribute" elements identify generic attributes th= at + may be configured on the corresponding UIComponent in order + to affect the operation of the Behavior. Nested "property" + elements identify JavaBeans properties of the Behavior = + implementation class that may be configured to affect the + operation of the Behavior. "attribute" and "property" + elements are intended to allow component developers to + more completely describe their components to tools and use= rs. + These elements have no required runtime semantics. + + + + + + + + + + The "behavior-id" element represents the identifier + under which the corresponding Behavior class should + be registered. + + + + + + + + + The "behavior-class" element represents the fully + qualified class name of a concrete Behavior = + implementation class. + + + + + + + + + Nested "attribute" elements identify generic + attributes that may be configured on the + corresponding UIComponent in order to affect the + operation of the Behavior. This attribute is + primarily for design-time tools and is not + specified to have any meaning at runtime. + + + + + + + + + + Nested "property" elements identify JavaBeans + properties of the Behavior implementation class + that may be configured to affect the operation of + the Behavior. This attribute is primarily for + design-time tools and is not specified to have + any meaning at runtime. + + + + + + + + + + + + + + + Extension element for behavior. It may contain + implementation specific content. + + + + + + + + + + + + + + + + + The "validator" element represents a concrete Validator + implementation class that should be registered under the + specified validator identifier. Validator identifiers mus= t = + be unique within the entire web application. + + Nested "attribute" elements identify generic attributes th= at = + may be configured on the corresponding UIComponent in orde= r = + to affect the operation of the Validator. Nested "propert= y" + elements identify JavaBeans properties of the Validator + implementation class that may be configured to affect the + operation of the Validator. "attribute" and "property" = + elements are intended to allow component developers to = + more completely describe their components to tools and use= rs. + These elements have no required runtime semantics. + + + + + + + + + = + The "validator-id" element represents the identifi= er = + under which the corresponding Validator class shou= ld = + be registered. + = + + = + + + + + = + The "validator-class" element represents the fully = + qualified class name of a concrete Validator = + implementation class. = + = + + + + + + + = + Nested "attribute" elements identify generic + attributes that may be configured on the + corresponding UIComponent in order to affect the + operation of the Validator. This attribute is + primarily for design-time tools and is not + specified to have any meaning at runtime. + + + + + + + + + + Nested "property" elements identify JavaBeans + properties of the Validator implementation class + that may be configured to affect the operation of + the Validator. This attribute is primarily for + design-time tools and is not specified to have + any meaning at runtime. + + + + + + + + + + + + + + + + Extension element for validator. It may contain + implementation specific content. + + + + + + + + + + + + + + + + + The "value" element is the String representation of + a literal value to which a scalar managed property + will be set, or a value binding expression ("#{...}") + that will be used to calculate the required value. + It will be converted as specified for the actual + property type. + + + + + + = + + = + + + + = + The "value-class" element defines the Java type to which e= ach + "value" element's value will be converted to, prior to add= ing = + it to the "list-entries" list for a managed property that = is = + a java.util.List, or a "map-entries" map for a managed = + property that is a java.util.Map. = + = + + + + + + + + + + + + + = + The "list-entries" element represents a set of initializat= ion + elements for a managed property that is a java.util.List o= r an + array. In the former case, the "value-class" element can = + optionally be used to declare the Java type to which each = + value should be converted before adding it to the Collecti= on. + = + + + + + + + + + + + + + + + + + + + The presence of this element within the "application" elem= ent in + an application configuration resource file indicates the + developer wants to add an SystemEventListener to this + application instance. Elements nested within this element= allow + selecting the kinds of events that will be delivered to the + listener instance, and allow selecting the kinds of classe= s that + can be the source of events that are delivered to the list= ener + instance. + + + + + + + + + The "system-event-listener-class" element contains + the fully qualified class name of the concrete + SystemEventListener implementation class that will= be + called when events of the type specified by the + "system-event-class" are sent by the runtime. + + + + + + + + + The "system-event-class" element contains the fully + qualified class name of the SystemEvent subclass f= or + which events will be delivered to the class whose = fully + qualified class name is given by the + "system-event-listener-class" element. + + + + + + + + + The "source-class" element, if present, contains t= he + fully qualified class name of the class that will = be the + source for the event to be delivered to the class = whose + fully qualified class name is given by the + "system-event-listener-class" element. + + + + + + + + + + + + + + + This type contains the recognized versions of + faces-config supported. + + + + + + + + + + + Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web/catalog/web-= facesconfig_2_0.xsd ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/we= b/tld/FilePathEncoderFactory.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/FilePathEncoderFactory.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/FilePathEncoderFactory.java 2009-09-25 12:55:12 UTC (rev 17734) @@ -0,0 +1,60 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.web.tld; + +import org.eclipse.core.resources.IProject; +import org.eclipse.core.runtime.CoreException; +import org.jboss.tools.common.model.plugin.ModelPlugin; +import org.jboss.tools.common.model.project.ModelNatureExtension; +import org.jboss.tools.common.model.util.ModelFeatureFactory; + +public class FilePathEncoderFactory { + static IFilePathEncoder pathEncoderInstance; + + public static IFilePathEncoder getPathEncoder (String pathEncoder) { + if(pathEncoderInstance !=3D null) { + return pathEncoderInstance; + } + if(pathEncoder =3D=3D null) { + return null; + } + if(pathEncoder.length() =3D=3D 0) { + pathEncoder =3D null; + return null; + } + try { + pathEncoderInstance =3D (IFilePathEncoder)ModelFeatureFactory.getInstan= ce().createFeatureInstance(pathEncoder); + } catch (ClassCastException e) { + ModelPlugin.getPluginLog().logError(e); + } finally { + pathEncoder =3D null; + } + return pathEncoderInstance; + } + + + public static IFilePathEncoder getEncoder(IProject project) { + if(project =3D=3D null || !project.isOpen()) return null; + ModelNatureExtension[] es =3D ModelNatureExtension.getInstances(); + for (int i =3D 0; i < es.length; i++) { + try { + if(project.hasNature(es[i].getName())) { + IFilePathEncoder encoder =3D getPathEncoder(es[i].getPathEncoder()); + if(encoder !=3D null) return encoder; + } + } catch (CoreException e) { + //ignore - all checks are done above + } + } + return null; + } + +} Added: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/we= b/tld/IFilePathEncoder.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/IFilePathEncoder.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/IFilePathEncoder.java 2009-09-25 12:55:12 UTC (rev 17734) @@ -0,0 +1,37 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.web.tld; + +import java.util.Properties; + +import org.jboss.tools.common.model.XModelObject; + +public interface IFilePathEncoder { + public static String PATH_TYPE =3D "pathType"; //$NON-NLS-1$ + public static String PATH_ADDITION =3D "pathAddition"; //$NON-NLS-1$ + = + public static String ABSOLUTE_PATH =3D "absolute"; //$NON-NLS-1$ + public static String RELATIVE_PATH =3D "relative"; //$NON-NLS-1$ + = + /** + * Returns path that should be inserted to jsp page. + * = + * @path file path relative to WebContent + */ + public String encode(String path, XModelObject f, String tag, VpeTaglibMa= nager taglibs, Properties context); + = + /** + * Returns file path relative to WebContent + * = + * @path value on jsp page + */ + public String decode(String path, XModelObject f, String tag, VpeTaglibMa= nager taglibs, Properties context); +} --===============1802897165467310706==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 08:59:24 2009 Content-Type: multipart/mixed; boundary="===============8140941463824686750==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17735 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/jst/web/tld. Date: Fri, 25 Sep 2009 08:59:24 -0400 Message-ID: <200909251259.n8PCxORo008017@svn01.web.mwc.hst.phx2.redhat.com> --===============8140941463824686750== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 08:59:24 -0400 (Fri, 25 Sep 2009) New Revision: 17735 Removed: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/js= t/web/tld/VpeTaglibListener.java trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/js= t/web/tld/VpeTaglibManager.java trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/js= t/web/tld/VpeTaglibManagerProvider.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Deleted: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/to= ols/jst/web/tld/VpeTaglibListener.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/VpeTaglibListener.java 2009-09-25 12:55:12 UTC (rev 17734) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/VpeTaglibListener.java 2009-09-25 12:59:24 UTC (rev 17735) @@ -1,17 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.jst.web.tld; - -public interface VpeTaglibListener { - void taglibPrefixChanged(String[] prefixs); - void addTaglib(String uri, String prefix); - void removeTaglib(String uri, String prefix); -} \ No newline at end of file Deleted: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/to= ols/jst/web/tld/VpeTaglibManager.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/VpeTaglibManager.java 2009-09-25 12:55:12 UTC (rev 17734) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/VpeTaglibManager.java 2009-09-25 12:59:24 UTC (rev 17735) @@ -1,45 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.jst.web.tld; - -import java.util.List; -import org.w3c.dom.Node; - - -/** - * @author Igels - */ -public interface VpeTaglibManager { - - /** - * Add Taglib Listener to manager - * @param listener - */ - public void addTaglibListener(VpeTaglibListener listener); - - /** - * Remove Taglib Listener from manager - * @param listener - */ - public void removeTaglibListener(VpeTaglibListener listener); - - /** - * Return List of TaglibData(s) where keys are prefixes of TLD. - * @return - */ - public List getTagLibs(); - = - /** - * Sets node in scope of which we should show content assistent - * @param node - */ - public void setReferenceNode(Node node); -} \ No newline at end of file Deleted: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/to= ols/jst/web/tld/VpeTaglibManagerProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/VpeTaglibManagerProvider.java 2009-09-25 12:55:12 UTC (rev 17734) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/VpeTaglibManagerProvider.java 2009-09-25 12:59:24 UTC (rev 17735) @@ -1,24 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.jst.web.tld; - - -/** - * @author Igels - */ -public interface VpeTaglibManagerProvider { - - /** - * Returns Taglib manager. - * @return Taglib manager. - */ - public VpeTaglibManager getTaglibManager(); -} \ No newline at end of file --===============8140941463824686750==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 09:00:12 2009 Content-Type: multipart/mixed; boundary="===============5036227448781611696==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17736 - trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tld. Date: Fri, 25 Sep 2009 09:00:09 -0400 Message-ID: <200909251300.n8PD09eq008264@svn01.web.mwc.hst.phx2.redhat.com> --===============5036227448781611696== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 09:00:09 -0400 (Fri, 25 Sep 2009) New Revision: 17736 Added: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tl= d/VpeTaglibListener.java trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tl= d/VpeTaglibManager.java trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tl= d/VpeTaglibManagerProvider.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Added: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/we= b/tld/VpeTaglibListener.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/VpeTaglibListener.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/VpeTaglibListener.java 2009-09-25 13:00:09 UTC (rev 17736) @@ -0,0 +1,17 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.web.tld; + +public interface VpeTaglibListener { + void taglibPrefixChanged(String[] prefixs); + void addTaglib(String uri, String prefix); + void removeTaglib(String uri, String prefix); +} \ No newline at end of file Added: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/we= b/tld/VpeTaglibManager.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/VpeTaglibManager.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/VpeTaglibManager.java 2009-09-25 13:00:09 UTC (rev 17736) @@ -0,0 +1,45 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.web.tld; + +import java.util.List; +import org.w3c.dom.Node; + + +/** + * @author Igels + */ +public interface VpeTaglibManager { + + /** + * Add Taglib Listener to manager + * @param listener + */ + public void addTaglibListener(VpeTaglibListener listener); + + /** + * Remove Taglib Listener from manager + * @param listener + */ + public void removeTaglibListener(VpeTaglibListener listener); + + /** + * Return List of TaglibData(s) where keys are prefixes of TLD. + * @return + */ + public List getTagLibs(); + = + /** + * Sets node in scope of which we should show content assistent + * @param node + */ + public void setReferenceNode(Node node); +} \ No newline at end of file Added: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/we= b/tld/VpeTaglibManagerProvider.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/VpeTaglibManagerProvider.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/VpeTaglibManagerProvider.java 2009-09-25 13:00:09 UTC (rev 17736) @@ -0,0 +1,24 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.web.tld; + + +/** + * @author Igels + */ +public interface VpeTaglibManagerProvider { + + /** + * Returns Taglib manager. + * @return Taglib manager. + */ + public VpeTaglibManager getTaglibManager(); +} \ No newline at end of file --===============5036227448781611696==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 09:14:33 2009 Content-Type: multipart/mixed; boundary="===============1434806473865267961==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17737 - trunk/vpe/tests/org.jboss.tools.vpe.ui.test/META-INF. Date: Fri, 25 Sep 2009 09:14:33 -0400 Message-ID: <200909251314.n8PDEXRE012539@svn01.web.mwc.hst.phx2.redhat.com> --===============1434806473865267961== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 09:14:33 -0400 (Fri, 25 Sep 2009) New Revision: 17737 Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.test/META-INF/MANIFEST.MF Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.test/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/tests/org.jboss.tools.vpe.ui.test/META-INF/MANIFEST.MF 2009-0= 9-25 13:00:09 UTC (rev 17736) +++ trunk/vpe/tests/org.jboss.tools.vpe.ui.test/META-INF/MANIFEST.MF 2009-0= 9-25 13:14:33 UTC (rev 17737) @@ -11,6 +11,7 @@ org.eclipse.core.resources, org.eclipse.ui.ide, org.jboss.tools.common, + org.jboss.tools.jst.web, org.jboss.tools.jst.jsp, org.jboss.tools.common.text.ext, org.jboss.tools.common.model, --===============1434806473865267961==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 09:17:28 2009 Content-Type: multipart/mixed; boundary="===============8825319785908597448==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17738 - trunk/vpe/tests/org.jboss.tools.vpe.html.test/META-INF. Date: Fri, 25 Sep 2009 09:17:28 -0400 Message-ID: <200909251317.n8PDHSYr013324@svn01.web.mwc.hst.phx2.redhat.com> --===============8825319785908597448== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 09:17:28 -0400 (Fri, 25 Sep 2009) New Revision: 17738 Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/META-INF/MANIFEST.MF Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/tests/org.jboss.tools.vpe.html.test/META-INF/MANIFEST.MF 2009= -09-25 13:14:33 UTC (rev 17737) +++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/META-INF/MANIFEST.MF 2009= -09-25 13:17:28 UTC (rev 17738) @@ -11,6 +11,7 @@ org.eclipse.core.resources, org.eclipse.ui.ide, org.jboss.tools.common, + org.jboss.tools.jst.web, org.jboss.tools.jst.jsp, org.jboss.tools.common.text.ext, org.jboss.tools.common.model, --===============8825319785908597448==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 09:19:10 2009 Content-Type: multipart/mixed; boundary="===============7083075589760644474==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17739 - trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF. Date: Fri, 25 Sep 2009 09:19:10 -0400 Message-ID: <200909251319.n8PDJAb4013585@svn01.web.mwc.hst.phx2.redhat.com> --===============7083075589760644474== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 09:19:10 -0400 (Fri, 25 Sep 2009) New Revision: 17739 Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST= .MF Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/M= ANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFES= T.MF 2009-09-25 13:17:28 UTC (rev 17738) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFES= T.MF 2009-09-25 13:19:10 UTC (rev 17739) @@ -12,6 +12,7 @@ org.eclipse.core.resources, org.eclipse.ui.ide, org.jboss.tools.common, + org.jboss.tools.jst.web, org.jboss.tools.jst.jsp, org.jboss.tools.common.text.ext, org.jboss.tools.common.model, --===============7083075589760644474==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 09:45:59 2009 Content-Type: multipart/mixed; boundary="===============5019758874520264382==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17740 - trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/view. Date: Fri, 25 Sep 2009 09:45:58 -0400 Message-ID: <200909251345.n8PDjwoQ019205@svn01.web.mwc.hst.phx2.redhat.com> --===============5019758874520264382== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: sdzmitrovich Date: 2009-09-25 09:45:58 -0400 (Fri, 25 Sep 2009) New Revision: 17740 Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/vi= ew/CSSEditorView.java Log: https://jira.jboss.org/jira/browse/JBIDE-4849 Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/view/CSSEditorView.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/v= iew/CSSEditorView.java 2009-09-25 13:19:10 UTC (rev 17739) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/v= iew/CSSEditorView.java 2009-09-25 13:45:58 UTC (rev 17740) @@ -17,7 +17,9 @@ import org.eclipse.ui.IWorkbenchPart; import org.eclipse.ui.PartInitException; import org.eclipse.ui.part.IContributedContentsView; +import org.eclipse.ui.part.IPage; import org.eclipse.ui.part.IPageBookViewPage; +import org.eclipse.ui.part.PageBook; import org.eclipse.ui.views.contentoutline.ContentOutline; import org.eclipse.ui.views.properties.IPropertySheetPage; import org.eclipse.ui.views.properties.PropertySheet; @@ -51,11 +53,23 @@ = } = + protected IPage createDefaultPage(PageBook book) { + return createCssPropertyPage(); + } + @Override protected PageRec doCreatePage(final IWorkbenchPart part) { - // if (part instanceof PropertySheet) { - // return null; - // } + IPage page =3D createCssPropertyPage(); + + if (page !=3D null) { + return new PageRec(part, page); + } + + return null; + } + + private IPage createCssPropertyPage() { + IPropertySheetPage page =3D new CSSPropertyPage( new ITabbedPropertySheetPageContributor() { = @@ -68,10 +82,10 @@ initPage((IPageBookViewPage) page); } page.createControl(getPageBook()); - return new PageRec(part, page); } = - return null; + return page; + } = @Override @@ -100,6 +114,7 @@ ((CSSPropertyPage) getCurrentPage()).update(); = } + @Override protected boolean isImportant(IWorkbenchPart part) { if ((part instanceof IEditorPart) || (part instanceof ContentOutline)) --===============5019758874520264382==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 10:06:00 2009 Content-Type: multipart/mixed; boundary="===============2282054094471944678==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17741 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/jst/web/tld. Date: Fri, 25 Sep 2009 10:06:00 -0400 Message-ID: <200909251406.n8PE60V4022919@svn01.web.mwc.hst.phx2.redhat.com> --===============2282054094471944678== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 10:06:00 -0400 (Fri, 25 Sep 2009) New Revision: 17741 Removed: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/js= t/web/tld/TaglibData.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Deleted: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/to= ols/jst/web/tld/TaglibData.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/TaglibData.java 2009-09-25 13:45:58 UTC (rev 17740) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/TaglibData.java 2009-09-25 14:06:00 UTC (rev 17741) @@ -1,69 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.jst.web.tld; - -import java.util.Iterator; -import java.util.List; - -public class TaglibData { - private int id; - private String uri; - private String prefix; - private boolean ns; - - public TaglibData(int id, String uri, String prefix, boolean ns) { - this.id =3D id; - this.uri =3D uri; - this.prefix =3D prefix; - this.ns =3D ns; - } - - public TaglibData(int id, String uri, String prefix) { - this.id =3D id; - this.uri =3D uri; - this.prefix =3D prefix; - this.ns =3D true; - } - - public int getId() { - return id; - } - - public String getUri() { - return uri; - } - - public String getPrefix() { - return prefix; - } - - public boolean isNs() { - return ns; - } - - public boolean isEquals(TaglibData another) { - return this =3D=3D another || - uri.equals(another.getUri()) && prefix.equals(another.getPrefix()); - } - - public boolean inList(List taglibs) { - if (taglibs =3D=3D null) { - return false; - } - Iterator iter =3D taglibs.iterator(); - while (iter.hasNext()) { - if (isEquals((TaglibData)iter.next())) { - return true; - } - } - return false; - } -} \ No newline at end of file --===============2282054094471944678==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 10:07:02 2009 Content-Type: multipart/mixed; boundary="===============5313062584064323831==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17742 - trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tld. Date: Fri, 25 Sep 2009 10:07:02 -0400 Message-ID: <200909251407.n8PE7226023106@svn01.web.mwc.hst.phx2.redhat.com> --===============5313062584064323831== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 10:07:01 -0400 (Fri, 25 Sep 2009) New Revision: 17742 Added: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tl= d/TaglibData.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Added: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/we= b/tld/TaglibData.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/TaglibData.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/TaglibData.java 2009-09-25 14:07:01 UTC (rev 17742) @@ -0,0 +1,69 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.web.tld; + +import java.util.Iterator; +import java.util.List; + +public class TaglibData { + private int id; + private String uri; + private String prefix; + private boolean ns; + + public TaglibData(int id, String uri, String prefix, boolean ns) { + this.id =3D id; + this.uri =3D uri; + this.prefix =3D prefix; + this.ns =3D ns; + } + + public TaglibData(int id, String uri, String prefix) { + this.id =3D id; + this.uri =3D uri; + this.prefix =3D prefix; + this.ns =3D true; + } + + public int getId() { + return id; + } + + public String getUri() { + return uri; + } + + public String getPrefix() { + return prefix; + } + + public boolean isNs() { + return ns; + } + + public boolean isEquals(TaglibData another) { + return this =3D=3D another || + uri.equals(another.getUri()) && prefix.equals(another.getPrefix()); + } + + public boolean inList(List taglibs) { + if (taglibs =3D=3D null) { + return false; + } + Iterator iter =3D taglibs.iterator(); + while (iter.hasNext()) { + if (isEquals((TaglibData)iter.next())) { + return true; + } + } + return false; + } +} \ No newline at end of file --===============5313062584064323831==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 10:07:46 2009 Content-Type: multipart/mixed; boundary="===============5869057019213227756==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17743 - in trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf: src/org/jboss/tools/jsf/vpe/jsf/template and 1 other directory. Date: Fri, 25 Sep 2009 10:07:45 -0400 Message-ID: <200909251407.n8PE7jhd023220@svn01.web.mwc.hst.phx2.redhat.com> --===============5869057019213227756== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 10:07:44 -0400 (Fri, 25 Sep 2009) New Revision: 17743 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/META-INF/MANIFEST.MF trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vp= e/jsf/template/JsfFacet.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/META-INF/MANIFEST.MF 2009= -09-25 14:07:01 UTC (rev 17742) +++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/META-INF/MANIFEST.MF 2009= -09-25 14:07:44 UTC (rev 17743) @@ -10,6 +10,7 @@ org.jboss.tools.common, org.jboss.tools.vpe, org.mozilla.xpcom, + org.jboss.tools.jst.web, org.jboss.tools.jst.jsp, org.eclipse.wst.sse.core, org.eclipse.jst.jsp.core, Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools= /jsf/vpe/jsf/template/JsfFacet.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/v= pe/jsf/template/JsfFacet.java 2009-09-25 14:07:01 UTC (rev 17742) +++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/v= pe/jsf/template/JsfFacet.java 2009-09-25 14:07:44 UTC (rev 17743) @@ -12,7 +12,6 @@ = import java.util.List; = -import org.jboss.tools.jst.web.tld.TaglibData; import org.jboss.tools.vpe.editor.context.VpePageContext; import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate; import org.jboss.tools.vpe.editor.template.VpeChildrenInfo; @@ -53,12 +52,8 @@ for (int i =3D 0; i < children.getLength(); i++) { Node child =3D children.item(i); String sourcePrefix =3D child.getPrefix(); - List taglibs =3D XmlUtil.getTaglibsForNode(sourceNode, - pageContext); - TaglibData sourceNodeTaglib =3D XmlUtil.getTaglibForPrefix( - sourcePrefix, taglibs); - if (null !=3D sourceNodeTaglib) { - String sourceNodeUri =3D sourceNodeTaglib.getUri(); + if (XmlUtil.hasTaglib(sourceNode, pageContext, sourcePrefix)) { + String sourceNodeUri =3D XmlUtil.getTaglibUri(sourceNode, pageContext, s= ourcePrefix); if ((child.getNodeType() =3D=3D Node.ELEMENT_NODE) && (VisualDomUtil.JSF_CORE_URI.equalsIgnoreCase(sourceNodeUri) || VisualDomUtil.JSF_HTML_URI.equalsIgnoreCase(sourceNodeUri) --===============5869057019213227756==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 10:08:33 2009 Content-Type: multipart/mixed; boundary="===============8088597126530560709==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17744 - in trunk/vpe/plugins/org.jboss.tools.vpe: src/org/jboss/tools/vpe/editor/util and 1 other directory. Date: Fri, 25 Sep 2009 10:08:33 -0400 Message-ID: <200909251408.n8PE8XHj023339@svn01.web.mwc.hst.phx2.redhat.com> --===============8088597126530560709== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 10:08:32 -0400 (Fri, 25 Sep 2009) New Revision: 17744 Modified: trunk/vpe/plugins/org.jboss.tools.vpe/META-INF/MANIFEST.MF trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/uti= l/XmlUtil.java Log: https://jira.jboss.org/jira/browse/JBIDE-4913 Modified: trunk/vpe/plugins/org.jboss.tools.vpe/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/META-INF/MANIFEST.MF 2009-09-25 1= 4:07:44 UTC (rev 17743) +++ trunk/vpe/plugins/org.jboss.tools.vpe/META-INF/MANIFEST.MF 2009-09-25 1= 4:08:32 UTC (rev 17744) @@ -50,7 +50,7 @@ org.jboss.tools.vpe.xulrunner, org.mozilla.xpcom, org.eclipse.draw2d, - org.jboss.tools.jst.web, + org.jboss.tools.jst.web;visibility:=3Dreexport, org.jboss.tools.vpe.resref, org.jboss.tools.common.el.core, org.jboss.tools.common.el.ui, Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/util/XmlUtil.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/ut= il/XmlUtil.java 2009-09-25 14:07:44 UTC (rev 17743) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/ut= il/XmlUtil.java 2009-09-25 14:08:32 UTC (rev 17744) @@ -147,7 +147,28 @@ .getPrefix(), true); } return taglibData; - } = + } + + //helper method + public static boolean hasTaglib(Node sourceNode, + VpePageContext pageContext, String sourcePrefix) { + List taglibs =3D XmlUtil.getTaglibsForNode(sourceNode, + pageContext); + TaglibData sourceNodeTaglib =3D XmlUtil.getTaglibForPrefix( + sourcePrefix, taglibs); + return sourceNodeTaglib !=3D null; + } + + //helper method + public static String getTaglibUri(Node sourceNode, + VpePageContext pageContext, String sourcePrefix) { + List taglibs =3D XmlUtil.getTaglibsForNode(sourceNode, + pageContext); + TaglibData sourceNodeTaglib =3D XmlUtil.getTaglibForPrefix( + sourcePrefix, taglibs); + return sourceNodeTaglib =3D=3D null ? null : sourceNodeTaglib.getUri(); + } + /** * Processes taglib attribute * @param taglibs --===============8088597126530560709==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 10:31:56 2009 Content-Type: multipart/mixed; boundary="===============2473170856975276014==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17745 - in trunk/cdi/plugins/org.jboss.tools.cdi.core: src/org/jboss/tools/cdi/core and 1 other directory. Date: Fri, 25 Sep 2009 10:31:56 -0400 Message-ID: <200909251431.n8PEVu1X028064@svn01.web.mwc.hst.phx2.redhat.com> --===============2473170856975276014== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-25 10:31:56 -0400 (Fri, 25 Sep 2009) New Revision: 17745 Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/= IBean.java trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/= IBeanManager.java trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/= ICDIProject.java trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/= IInject.java trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/= INamed.java trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/= IProduces.java trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/= IQualifier.java trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/= IScope.java trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/= IStereotype.java Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/META-INF/MANIFEST.MF Log: https://jira.jboss.org/jira/browse/JBIDE-4943 Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.core/META-INF/MANIFEST.MF 2009-09= -25 14:08:32 UTC (rev 17744) +++ trunk/cdi/plugins/org.jboss.tools.cdi.core/META-INF/MANIFEST.MF 2009-09= -25 14:31:56 UTC (rev 17745) @@ -1,12 +1,14 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: Context and Dependency Injection Core -Bundle-SymbolicName: org.jboss.tools.cdi.core +Bundle-SymbolicName: org.jboss.tools.cdi.core;singleton:=3Dtrue Bundle-Version: 1.0.0 Bundle-Activator: org.jboss.tools.cdi.core.CDICorePlugin Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime, - org.jboss.tools.common + org.jboss.tools.common, + org.eclipse.jdt.core;bundle-version=3D"3.5.0" Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Bundle-Vendor: JBoss by Red Hat +Export-Package: org.jboss.tools.cdi.core Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/c= ore/IBean.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /IBean.java (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /IBean.java 2009-09-25 14:31:56 UTC (rev 17745) @@ -0,0 +1,19 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.cdi.core; + +/** + * Represents a managed bean + * @author Alexey Kazakov + */ +public interface IBean { + +} \ No newline at end of file Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jbo= ss/tools/cdi/core/IBean.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/c= ore/IBeanManager.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /IBeanManager.java (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /IBeanManager.java 2009-09-25 14:31:56 UTC (rev 17745) @@ -0,0 +1,42 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.cdi.core; + +import java.util.Set; + +import org.eclipse.jdt.core.IAnnotation; +import org.eclipse.jdt.core.IType; + +/** + * @author Alexey Kazakov + */ +public interface IBeanManager { + + /** + * Returns the set of beans which match the given EL name + * = + * @param name the name used to restrict the beans matched + * @return the matched beans + */ + public Set getBeans(String name); + + /** + * Returns the set of beans which match the given required type and bi= ndings. + * = + * @param beanType the type of the beans to be resolved + * @param bindings the bindings used to restrict the matched beans. If= no + * bindings are passed to getBeans(), the default binding @C= urrent + * is assumed. + * @return the matched beans + */ + public Set getBeans(IType beanType, IAnnotation... bindings); + +} \ No newline at end of file Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jbo= ss/tools/cdi/core/IBeanManager.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/c= ore/ICDIProject.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /ICDIProject.java (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /ICDIProject.java 2009-09-25 14:31:56 UTC (rev 17745) @@ -0,0 +1,18 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.cdi.core; + +/** + * @author Alexey Kazakov + */ +public interface ICDIProject extends IBeanManager { + +} \ No newline at end of file Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jbo= ss/tools/cdi/core/ICDIProject.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/c= ore/IInject.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /IInject.java (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /IInject.java 2009-09-25 14:31:56 UTC (rev 17745) @@ -0,0 +1,18 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.cdi.core; + +/** + * @author Alexey Kazakov + */ +public interface IInject { + +} \ No newline at end of file Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jbo= ss/tools/cdi/core/IInject.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/c= ore/INamed.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /INamed.java (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /INamed.java 2009-09-25 14:31:56 UTC (rev 17745) @@ -0,0 +1,18 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.cdi.core; + +/** + * @author Alexey Kazakov + */ +public interface INamed { + +} \ No newline at end of file Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jbo= ss/tools/cdi/core/INamed.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/c= ore/IProduces.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /IProduces.java (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /IProduces.java 2009-09-25 14:31:56 UTC (rev 17745) @@ -0,0 +1,18 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.cdi.core; + +/** + * @author Alexey Kazakov + */ +public interface IProduces { + +} \ No newline at end of file Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jbo= ss/tools/cdi/core/IProduces.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/c= ore/IQualifier.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /IQualifier.java (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /IQualifier.java 2009-09-25 14:31:56 UTC (rev 17745) @@ -0,0 +1,18 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.cdi.core; + +/** + * @author Alexey Kazakov + */ +public interface IQualifier { + +} \ No newline at end of file Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jbo= ss/tools/cdi/core/IQualifier.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/c= ore/IScope.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /IScope.java (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /IScope.java 2009-09-25 14:31:56 UTC (rev 17745) @@ -0,0 +1,18 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.cdi.core; + +/** + * @author Alexey Kazakov + */ +public interface IScope { + +} \ No newline at end of file Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jbo= ss/tools/cdi/core/IScope.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/c= ore/IStereotype.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /IStereotype.java (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core= /IStereotype.java 2009-09-25 14:31:56 UTC (rev 17745) @@ -0,0 +1,18 @@ +/*************************************************************************= ****** = + * Copyright (c) 2009 Red Hat, Inc. = + * Distributed under license by Red Hat, Inc. All rights reserved. = + * This program is made available under the terms of the = + * Eclipse Public License v1.0 which accompanies this distribution, = + * and is available at http://www.eclipse.org/legal/epl-v10.html = + * = + * Contributors: = + * Red Hat, Inc. - initial API and implementation = + *************************************************************************= *****/ = +package org.jboss.tools.cdi.core; + +/** + * @author Alexey Kazakov + */ +public interface IStereotype { + +} \ No newline at end of file Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jbo= ss/tools/cdi/core/IStereotype.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============2473170856975276014==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 10:58:27 2009 Content-Type: multipart/mixed; boundary="===============3451984990313607777==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17746 - trunk/jst/plugins. Date: Fri, 25 Sep 2009 10:58:27 -0400 Message-ID: <200909251458.n8PEwR5T032316@svn01.web.mwc.hst.phx2.redhat.com> --===============3451984990313607777== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 10:58:27 -0400 (Fri, 25 Sep 2009) New Revision: 17746 Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/ Log: Share project "org.jboss.tools.jst.text.ext" into "https://svn.jboss.org/re= pos/jbosstools" --===============3451984990313607777==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 11:01:55 2009 Content-Type: multipart/mixed; boundary="===============7795737015283084047==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17747 - in trunk/jst/plugins/org.jboss.tools.jst.text.ext: .settings and 11 other directories. Date: Fri, 25 Sep 2009 11:01:55 -0400 Message-ID: <200909251501.n8PF1tc7000596@svn01.web.mwc.hst.phx2.redhat.com> --===============7795737015283084047== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 11:01:55 -0400 (Fri, 25 Sep 2009) New Revision: 17747 Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/.classpath trunk/jst/plugins/org.jboss.tools.jst.text.ext/.cvsignore trunk/jst/plugins/org.jboss.tools.jst.text.ext/.options.template trunk/jst/plugins/org.jboss.tools.jst.text.ext/.project trunk/jst/plugins/org.jboss.tools.jst.text.ext/.ruleset trunk/jst/plugins/org.jboss.tools.jst.text.ext/.settings/ trunk/jst/plugins/org.jboss.tools.jst.text.ext/.settings/org.eclipse.jdt= .core.prefs trunk/jst/plugins/org.jboss.tools.jst.text.ext/META-INF/ trunk/jst/plugins/org.jboss.tools.jst.text.ext/META-INF/MANIFEST.MF trunk/jst/plugins/org.jboss.tools.jst.text.ext/about.html trunk/jst/plugins/org.jboss.tools.jst.text.ext/build.properties trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin.properties trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin.xml trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin_ja.properties trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/JSTExtensionsPlugin.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/CSSClassHyperlink.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/CSSClassHyperlinkPartitioner.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/FilterNameHyperlink.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/JSPStylesheetRelLinkHyperlink.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/RoleNameHyperlink.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/ServletNameHyperlink.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/TLDAttributeNameHyperlink.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/TaglibDefinitionFilesHyperlinkPartitioner.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPBeanGetPropertyHyperlink.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPBeanGetPropertyHyperlinkPartitioner.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPBeanSetPropertyHyperlink.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPBeanSetPropertyHyperlinkPartitioner.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPCSSClassHyperlinkPartitioner.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPClassHyperlinkPartitioner.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPElementAttributeValueHyperlinkPartitioner.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPElementHyperlinkPartitioner.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPElementNameHyperlink.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPElementNameHyperlinkPartitioner.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPForBeanIdHyperlink.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPForBeanIdHyperlinkPartitioner.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPLinkHyperlinkPartitioner.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPRelativeLinkHyperlinkPartitioner.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPRootHyperlinkPartitioner.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPStylesheetRelLinkHyperlinkPartitioner.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPTagAttributeHyperlinkPartitioner.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPTagAttributeValueHyperlinkPartitioner.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPTaglibHyperlink.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPTaglibHyperlinkPartitioner.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPTextHyperlinkPartitioner.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPXmlNsHyperlink.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPXmlNsHyperlinkPartitioner.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/util/ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/util/CSSTextScanner.java trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/util/TaglibManagerWrapper.java Log: https://jira.jboss.org/jira/browse/JBIDE-4950 Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/.classpath =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/.classpath = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/.classpath 2009-09-25 15= :01:55 UTC (rev 17747) @@ -0,0 +1,7 @@ + + + + + + + Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/.classp= ath ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/.cvsignore =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/.cvsignore = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/.cvsignore 2009-09-25 15= :01:55 UTC (rev 17747) @@ -0,0 +1 @@ +bin Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/.cvsign= ore ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/.options.template =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/.options.template = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/.options.template 2009-0= 9-25 15:01:55 UTC (rev 17747) @@ -0,0 +1 @@ +org.jboss.tools.jsf.text.ext/debug=3Dfalse \ No newline at end of file Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/.project = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/.project 2009-09-25 15:0= 1:55 UTC (rev 17747) @@ -0,0 +1,34 @@ + + + org.jboss.tools.jst.text.ext + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + net.sourceforge.pmd.runtime.pmdBuilder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.pde.PluginNature + net.sourceforge.pmd.runtime.pmdNature + + Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/.project ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/.ruleset =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/.ruleset = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/.ruleset 2009-09-25 15:0= 1:55 UTC (rev 17747) @@ -0,0 +1,17 @@ + + + + + +1 + + + + + + + + + + Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/.settings/org.eclipse= .jdt.core.prefs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/.settings/org.eclipse.jd= t.core.prefs (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/.settings/org.eclipse.jd= t.core.prefs 2009-09-25 15:01:55 UTC (rev 17747) @@ -0,0 +1,9 @@ +#Fri Sep 25 18:49:45 GMT+03:00 2009 +eclipse.preferences.version=3D1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=3Denabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=3D1.5 +org.eclipse.jdt.core.compiler.compliance=3D1.5 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=3Derror +org.eclipse.jdt.core.compiler.problem.enumIdentifier=3Derror +org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=3Dwarni= ng +org.eclipse.jdt.core.compiler.source=3D1.5 Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/.settin= gs/org.eclipse.jdt.core.prefs ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/META-INF/MANIFEST.MF = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/META-INF/MANIFEST.MF 200= 9-09-25 15:01:55 UTC (rev 17747) @@ -0,0 +1,31 @@ +Manifest-Version: 1.0 +Eclipse-LazyStart: true +Bundle-Activator: org.jboss.tools.jst.text.ext.JSTExtensionsPlugin +Export-Package: org.jboss.tools.jst.text.ext, + org.jboss.tools.jst.text.ext.hyperlink, + org.jboss.tools.jst.text.ext.hyperlink.jsp, + org.jboss.tools.jst.text.ext.util +Bundle-Version: 2.0.0 +Bundle-Name: %Bundle-Name.0 +Bundle-ManifestVersion: 2 +Bundle-Vendor: %providerName +Plugin-Class: org.jboss.tools.jst.text.ext.JSTExtensionsPlugin +Bundle-SymbolicName: org.jboss.tools.jst.text.ext;singleton:=3Dtrue +Bundle-Localization: plugin +Require-Bundle: org.jboss.tools.common.model, + org.jboss.tools.common.text.ext, + org.eclipse.ui.ide, + org.eclipse.ui, + org.eclipse.jface.text, + org.eclipse.ui.workbench.texteditor, + org.eclipse.jdt.ui, + org.eclipse.wst.sse.core;visibility:=3Dreexport, + org.eclipse.wst.sse.ui;visibility:=3Dreexport, + org.eclipse.jst.jsp.core;visibility:=3Dreexport, + org.eclipse.wst.common.modulecore;visibility:=3Dreexport, + org.eclipse.pde.ui, + org.jboss.tools.common.el.core;bundle-version=3D"2.0.0", + org.eclipse.emf.ecore;bundle-version=3D"2.5.0", + org.eclipse.wst.css.core, + org.eclipse.wst.html.core +Bundle-RequiredExecutionEnvironment: J2SE-1.5 Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/META-IN= F/MANIFEST.MF ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/about.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/about.html = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/about.html 2009-09-25 15= :01:55 UTC (rev 17747) @@ -0,0 +1,34 @@ + + + + +About + + + + + +

About This Content

+ +

©2007 Red Hat, Inc. All rights reserved

+ +

License

+ +

Red Hat Inc., through its JBoss division, makes available all content i= n this plug-in = +("Content"). Unless otherwise indicated below, the Content is provided to = you = +under the terms and conditions of the Eclipse Public License Version 1.0 = +("EPL"). A copy of the EPL is available at +http://www.ec= lipse.org/org/documents/epl-v10.php. = +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from Red Hat Inc., the = +Content is being redistributed by another party ("Redistributor") and diff= erent = +terms and conditions may apply to your use of any object code in the Conte= nt. = +Check the Redistributor's license that was provided with the Content. If n= o such = +license exists, contact the Redistributor. Unless otherwise indicated belo= w, the = +terms and conditions of the EPL still apply to any source code in the Cont= ent = +and such source code may be obtained at + http://www.jboss.org/tools. + + + \ No newline at end of file Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/about.h= tml ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/build.properties = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/build.properties 2009-09= -25 15:01:55 UTC (rev 17747) @@ -0,0 +1,10 @@ +jars.compile.order =3D . +source.. =3D src/ +output.. =3D bin/ +bin.includes =3D .,\ + plugin.xml,\ + plugin.properties,\ + META-INF/,\ + about.html +src.includes =3D src/,\ + plugin.xml Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/build.p= roperties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin.properties = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin.properties 2009-0= 9-25 15:01:55 UTC (rev 17747) @@ -0,0 +1,3 @@ +providerName=3DJBoss by Red Hat + +Bundle-Name.0 =3D Text Editors Extensions \ No newline at end of file Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin.= properties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin.xml = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin.xml 2009-09-25 15= :01:55 UTC (rev 17747) @@ -0,0 +1,5 @@ + + + + + Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin.= xml ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin_ja.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin_ja.properties = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin_ja.properties 200= 9-09-25 15:01:55 UTC (rev 17747) @@ -0,0 +1,2 @@ +providerName=3DJBoss by Red Hat +Bundle-Name.0=3D\u30C6\u30AD\u30B9\u30C8\u30FB\u30A8\u30C7\u30A3\u30BF\u30= FC\u62E1\u5F35 Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin_= ja.properties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/JSTExtensionsPlugin.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/JSTExtensionsPlugin.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/JSTExtensionsPlugin.java 2009-09-25 15:01:55 UTC (rev 17747) @@ -0,0 +1,64 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext; + +import org.eclipse.core.runtime.IAdaptable; +import org.eclipse.core.runtime.IPluginDescriptor; +import org.eclipse.jface.text.hyperlink.IHyperlinkDetector; +import org.jboss.tools.common.log.BaseUIPlugin; +import org.jboss.tools.common.log.IPluginLog; +import org.jboss.tools.common.text.ext.hyperlink.HyperlinkDetector; +import org.osgi.framework.BundleContext; + + +/** + * @author Jeremy + * + * TODO To change the template for this generated type comment go to + * Window - Preferences - Java - Code Style - Code Templates + */ +public class JSTExtensionsPlugin extends BaseUIPlugin implements IAdaptabl= e { + //The shared instance. + private static JSTExtensionsPlugin plugin; + = + public static final String PLUGIN_ID =3D "org.jboss.tools.common.text.ext= "; //$NON-NLS-1$ + + /** + * The constructor. + */ + public JSTExtensionsPlugin() { + super(); + plugin =3D this; + } + + /** + * Returns the shared instance. + */ + public static JSTExtensionsPlugin getDefault() { + return plugin; + } + + public Object getAdapter(Class adapter) { + if (adapter =3D=3D IHyperlinkDetector.class) { + return HyperlinkDetector.getInstance(); + } + return null; + } + + = + /** + * @return IPluginLog object + */ + public static IPluginLog getPluginLog() { + return getDefault(); + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/JSTExtensionsPlugin.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/CSSClassHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/CSSClassHyperlink.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/CSSClassHyperlink.java 2009-09-25 15:01:55 UTC (rev 1774= 7) @@ -0,0 +1,509 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jst.text.ext.hyperlink; + +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.text.MessageFormat; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.Comparator; +import java.util.List; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +import org.eclipse.core.resources.IFile; +import org.eclipse.jface.text.BadLocationException; +import org.eclipse.jface.text.IRegion; +import org.eclipse.jface.text.Region; +import org.eclipse.ui.IEditorPart; +import org.eclipse.ui.IWorkbenchPage; +import org.eclipse.ui.PartInitException; +import org.eclipse.ui.ide.IDE; +import org.eclipse.wst.css.core.internal.provisional.adapters.IModelProvid= eAdapter; +import org.eclipse.wst.css.core.internal.provisional.adapters.IStyleSheetA= dapter; +import org.eclipse.wst.css.core.internal.provisional.document.ICSSDocument; +import org.eclipse.wst.css.core.internal.provisional.document.ICSSModel; +import org.eclipse.wst.css.core.internal.provisional.document.ICSSNode; +import org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleRul= e; +import org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleShe= et; +import org.eclipse.wst.html.core.internal.htmlcss.LinkElementAdapter; +import org.eclipse.wst.html.core.internal.htmlcss.URLModelProvider; +import org.eclipse.wst.sse.core.internal.provisional.INodeNotifier; +import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel; +import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode; +import org.jboss.tools.common.text.ext.ExtensionsPlugin; +import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlink; +import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages; +import org.jboss.tools.common.text.ext.util.RegionHolder; +import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; +import org.jboss.tools.common.text.ext.util.StructuredSelectionHelper; +import org.jboss.tools.common.text.ext.util.Utils; +import org.w3c.dom.Attr; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.Node; +import org.w3c.dom.NodeList; +import org.w3c.dom.css.CSSRule; +import org.w3c.dom.css.CSSRuleList; +import org.w3c.dom.css.CSSStyleSheet; + +/** + * @author Jeremy + */ +public class CSSClassHyperlink extends AbstractHyperlink { + + public static final String[] STYLE_TAGS =3D new String[] { "style", "link= " }; //$NON-NLS-1$//$NON-NLS-2$ + public static final String LINK_TAG =3D "link"; //$NON-NLS-1$ + public static final String HREF_ATTRIBUTE =3D "href"; //$NON-NLS-1$ + public static final String COMPARE_CLASS_REGEX_PREFIX =3D "[\\.]?"; //$NO= N-NLS-1$ + public static final String CONTEXT_PATH_EXPRESSION =3D "^\\s*(\\#|\\$)\\{= facesContext.externalContext.requestContextPath\\}"; //$NON-NLS-1$ + + /** + * = + */ + protected void doHyperlink(IRegion region) { + + IDOMModel model =3D (IDOMModel) getModelManager() + .getExistingModelForRead(getDocument()); + + // get name of looked for style + String styleName =3D getStyleName(region); + + // get elements which copntans information about styles (style and link + // tags) + List styleElementList =3D getStyleContainerList(model); + + // sort nodes by position in inverse order - from larger position to + // smaller + Collections.sort(styleElementList, new Comparator() { + + public int compare(Node o1, Node o2) { + return ((IDOMNode) o2).getStartOffset() + - ((IDOMNode) o1).getStartOffset(); + } + + }); + + RegionHolder styleRegion =3D null; + // look for style in each Style element + for (Node styleContainer : styleElementList) { + + styleRegion =3D findStyleRegion(styleContainer, styleName); + + if (styleRegion !=3D null) { + showRegion(styleRegion); + break; + } + + } + + model.releaseFromRead(); + } + + /** + * = + * @param model + * @return + */ + private List getStyleContainerList(IDOMModel model) { + + // get model of current page + IDOMDocument document =3D model.getDocument(); + + List getStyleContainerList =3D new ArrayList(); + + // get all tags which contains style ( link, style) + for (String tagName : STYLE_TAGS) { + getStyleContainerList.addAll(getList(document + .getElementsByTagName(tagName))); + } + + return getStyleContainerList; + } + + /** + * move nodes from NodeList to List + * = + * @param nodeList + * @return + */ + List getList(NodeList nodeList) { + + List newContainerList =3D new ArrayList(); + for (int i =3D 0; i < nodeList.getLength(); i++) { + newContainerList.add(nodeList.item(i)); + } + return newContainerList; + } + + /** + * = + * @param stylesContainer + * @param styleName + * @return + */ + public RegionHolder findStyleRegion(Node stylesContainer, String styleNam= e) { + + // get style sheet + CSSStyleSheet sheet =3D getSheet(stylesContainer); + + if (sheet !=3D null) { + + CSSRuleList ruleList =3D sheet.getCssRules(); + + // for each cssRule + for (int i =3D 0; i < ruleList.getLength(); i++) { + + CSSRule cssRule =3D ruleList.item(i); + + // if cssRule describe looked for style + if (isRuleMatch(cssRule, styleName)) { + + return new RegionHolder(getFile((ICSSNode) cssRule), + getRegion(cssRule)); + + } + } + + } + return null; + } + + /** + * = + * @param stylesContainer + * @return + */ + private CSSStyleSheet getSheet(final Node stylesContainer) { + + INodeNotifier notifier =3D (INodeNotifier) stylesContainer; + + IStyleSheetAdapter adapter =3D (IStyleSheetAdapter) notifier + .getAdapterFor(IStyleSheetAdapter.class); + + if (LINK_TAG.equalsIgnoreCase(stylesContainer.getNodeName()) + && !(adapter instanceof ExtendedLinkElementAdapter)) { + + notifier.removeAdapter(adapter); + adapter =3D new ExtendedLinkElementAdapter( + (Element) stylesContainer); + notifier.addAdapter(adapter); + + } + + CSSStyleSheet sheet =3D null; + + if (adapter !=3D null) { + sheet =3D (CSSStyleSheet) adapter.getSheet(); + + } + + return sheet; + + } + + protected String processURL(String href) { + // TODO Auto-generated method stub + return null; + } + + /** + * = + * @param cssRule + * @param styleName + * @return + */ + private boolean isRuleMatch(CSSRule cssRule, String styleName) { + + // get selector text + String selectorText =3D ((ICSSStyleRule) cssRule).getSelectorText(); + + if (selectorText !=3D null) { + + // split selector text by whitespace + String[] styles =3D selectorText.trim().split(" "); //$NON-NLS-1$ + int searchIndex =3D Arrays.binarySearch(styles, styleName, + new Comparator() { + + public int compare(String o1, String o2) { + Matcher matcher =3D Pattern.compile( + COMPARE_CLASS_REGEX_PREFIX + o2) + .matcher(o1); + return matcher.matches() ? 0 : 1; + } + + }); + if (searchIndex >=3D 0) + return true; + } + return false; + } + + /** + * = + * @param node + * @return + */ + private IFile getFile(ICSSNode node) { + + ICSSDocument sheet =3D node.getOwnerDocument(); + + return AbstractHyperlink.getFile(sheet.getModel()); + } + + /** + * = + * @param cssRule + * @return + */ + protected Region getRegion(CSSRule cssRule) { + + int offset =3D ((IndexedRegion) cssRule).getStartOffset(); + + // if css rule is contained in style tag so it is require to take into + // account offset of this tag + ICSSStyleSheet document =3D (ICSSStyleSheet) ((ICSSStyleRule) cssRule) + .getOwnerDocument(); + + ICSSModel model =3D document.getModel(); + + // get style tag + Node node =3D model.getOwnerDOMNode(); + + // increase offset + if (node instanceof IDOMElement) + offset +=3D ((IDOMElement) node).getStartEndOffset(); + + return new Region(offset, 0); + + } + + /** + * = + * @param styleRegion + */ + private void showRegion(RegionHolder styleRegion) { + + IWorkbenchPage workbenchPage =3D ExtensionsPlugin.getDefault() + .getWorkbench().getActiveWorkbenchWindow().getActivePage(); + IEditorPart part =3D null; + if (styleRegion.file !=3D null) { + try { + part =3D IDE.openEditor(workbenchPage, styleRegion.file, true); + } catch (PartInitException e) { + e.printStackTrace(); + } + if (part =3D=3D null) { + openFileFailed(); + return; + } + } + StructuredSelectionHelper.setSelectionAndReveal(part, + styleRegion.region); + } + + /** + * = + * @param region + * @return + */ + private String getStyleName(IRegion region) { + try { + return getDocument().get(region.getOffset(), region.getLength()); + } catch (BadLocationException e) { + return null; + } + } + + IRegion fLastRegion =3D null; + + /** + * @see com.ibm.sse.editor.AbstractHyperlink#doGetHyperlinkRegion(int) + */ + protected IRegion doGetHyperlinkRegion(int offset) { + fLastRegion =3D getRegion(offset); + return fLastRegion; + } + + /** + * TODO research method + * = + * @param offset + * @return + */ + protected IRegion getRegion(int offset) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(getDocument()); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) + return null; + + Node n =3D Utils.findNodeForOffset(xmlDocument, offset); + + if (n =3D=3D null || !(n instanceof Attr)) + return null; + int start =3D Utils.getValueStart(n); + int end =3D Utils.getValueEnd(n); + if (start > offset) + return null; + + String attrText =3D getDocument().get(start, end - start); + + StringBuffer sb =3D new StringBuffer(attrText); + // find start of bean property + int bStart =3D offset - start; + while (bStart >=3D 0) { + if (!Character.isJavaIdentifierPart(sb.charAt(bStart)) + && sb.charAt(bStart) !=3D '_' && sb.charAt(bStart) !=3D '-' + && sb.charAt(bStart) !=3D '.') { + bStart++; + break; + } + + if (bStart =3D=3D 0) + break; + bStart--; + } + // find end of bean property + int bEnd =3D offset - start; + while (bEnd < sb.length()) { + if (!Character.isJavaIdentifierPart(sb.charAt(bEnd)) + && sb.charAt(bEnd) !=3D '_' && sb.charAt(bEnd) !=3D '-' + && sb.charAt(bEnd) !=3D '.') + break; + bEnd++; + } + + final int propStart =3D bStart + start; + final int propLength =3D bEnd - bStart; + + if (propStart > offset || propStart + propLength < offset) + return null; + return new Region(propStart, propLength); + } catch (BadLocationException x) { + // ignore + return null; + } finally { + smw.dispose(); + } + } + + /* + * (non-Javadoc) + * = + * @see IHyperlink#getHyperlinkText() + */ + public String getHyperlinkText() { + String styleName =3D getStyleName(fLastRegion); + if (styleName =3D=3D null) + return MessageFormat.format(Messages.OpenA, Messages.CSSStyle); + + return MessageFormat.format(Messages.OpenCSSStyle, styleName); + } + + @Override + protected String findAndReplaceElVariable(String fileName) { + if (fileName !=3D null) + fileName =3D fileName + .replaceFirst( + "^\\s*(\\#|\\$)\\{facesContext.externalContext.requestContextPath\\= }", + ""); + return super.findAndReplaceElVariable(fileName); + } + + public class ExtendedLinkElementAdapter extends LinkElementAdapter { + + private Element element; + + public ExtendedLinkElementAdapter(Element element) { + this.element =3D element; + } + + @Override + public Element getElement() { + return element; + } + + @Override + protected boolean isValidAttribute() { + String href =3D getElement().getAttribute(HREF_ATTRIBUTE); + if (href =3D=3D null || href.length() =3D=3D 0) + return false; + return true; + } + + /** + */ + public ICSSModel getModel() { + ICSSModel model =3D super.getModel(); + if (model =3D=3D null) { + model =3D retrieveModel(); + setModel(model); + } + return model; + } + + /** + */ + private ICSSModel retrieveModel() { + if (!isValidAttribute()) { + return null; + } + + // null,attr check is done in isValidAttribute() + Element element =3D getElement(); + String href =3D findAndReplaceElVariable(element + .getAttribute(HREF_ATTRIBUTE)); + + IDOMModel baseModel =3D ((IDOMNode) element).getModel(); + if (baseModel =3D=3D null) + return null; + Object id =3D baseModel.getId(); + if (!(id instanceof String)) + return null; + // String base =3D (String)id; + + // get ModelProvideAdapter + IModelProvideAdapter adapter =3D (IModelProvideAdapter) ((INodeNotifier= ) getElement()) + .getAdapterFor(IModelProvideAdapter.class); + + URLModelProvider provider =3D new URLModelProvider(); + try { + IStructuredModel newModel =3D provider.getModelForRead(baseModel, + href); + if (newModel =3D=3D null) + return null; + if (!(newModel instanceof ICSSModel)) { + newModel.releaseFromRead(); + return null; + } + + // notify adapter + if (adapter !=3D null) + adapter.modelProvided(newModel); + + return (ICSSModel) newModel; + } catch (UnsupportedEncodingException e) { + } catch (IOException e) { + } + + return null; + } + } + +} \ No newline at end of file Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/CSSClassHyperlink.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/CSSClassHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/CSSClassHyperlinkPartitioner.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/CSSClassHyperlinkPartitioner.java 2009-09-25 15:01:55 UT= C (rev 17747) @@ -0,0 +1,84 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jst.text.ext.hyperlink; + +import org.eclipse.jface.text.IDocument; +import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlinkPartitio= ner; +import org.jboss.tools.common.text.ext.hyperlink.HyperlinkRegion; +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkPartitionRecogn= izer; +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; +import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; +import org.jboss.tools.common.text.ext.util.Utils; +import org.w3c.dom.Attr; +import org.w3c.dom.Document; +import org.w3c.dom.Node; + +/** + * = + * @author Sergey Dzmitrovich + * + */ +public class CSSClassHyperlinkPartitioner extends + AbstractHyperlinkPartitioner implements IHyperlinkPartitionRecognizer { + + public static final String CSS_CLASS_PARTITION =3D "org.jboss.tools.commo= n.text.ext.CSS_CLASS"; //$NON-NLS-1$ + + private static final String CSS_CLASS_TOKEN =3D "class/"; //$NON-NLS-1$ + + /** + * @see com.ibm.sse.editor.hyperlink.AbstractHyperlinkPartitioner#parse(o= rg.eclipse.jface.text.IDocument, + * com.ibm.sse.editor.extensions.hyperlink.IHyperlinkRegion) + */ + protected IHyperlinkRegion parse(IDocument document, + IHyperlinkRegion superRegion) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(document); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) + return null; + + Node n =3D Utils.findNodeForOffset(xmlDocument, superRegion + .getOffset()); + if (n =3D=3D null || !(n instanceof Attr)) + return null; + + String axis =3D getAxis(document, superRegion); + String contentType =3D superRegion.getContentType(); + String type =3D getPartitionType(axis); + int start =3D Utils.getValueStart(n); + int end =3D Utils.getValueEnd(n); + if (start < 0 || end < start) + return null; + int length =3D end - start; + int offset =3D superRegion.getOffset(); + + IHyperlinkRegion region =3D new HyperlinkRegion(offset, length, axis, + contentType, type); + return region; + } finally { + smw.dispose(); + } + } + + private String getPartitionType(String axis) { + return CSS_CLASS_PARTITION; + } + + public boolean recognize(IDocument document, IHyperlinkRegion region) { + + if (region.getAxis() !=3D null + && region.getAxis().toLowerCase().endsWith(CSS_CLASS_TOKEN)) + return true; + return false; + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/CSSClassHyperlinkPartitioner.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/FilterNameHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/FilterNameHyperlink.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/FilterNameHyperlink.java 2009-09-25 15:01:55 UTC (rev 17= 747) @@ -0,0 +1,35 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink; + +import org.jboss.tools.common.text.ext.hyperlink.JumpToHyperlink; +import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages; +/** + * @author Jeremy + * + * TODO To change the template for this generated type comment go to + * Window - Preferences - Java - Code Style - Code Templates + */ +public class FilterNameHyperlink extends JumpToHyperlink { + protected String getDestinationAxis() { + return "/web-app/filter/filter-name/"; //$NON-NLS-1$ + } + = + /* + * (non-Javadoc) + * = + * @see IHyperlink#getHyperlinkText() + */ + public String getHyperlinkText() { + return Messages.BrowseToFilterNameDefinition; + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/FilterNameHyperlink.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/JSPStylesheetRelLinkHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/JSPStylesheetRelLinkHyperlink.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/JSPStylesheetRelLinkHyperlink.java 2009-09-25 15:01:55 U= TC (rev 17747) @@ -0,0 +1,110 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink; + +import org.eclipse.jface.text.BadLocationException; +import org.eclipse.jface.text.IRegion; +import org.eclipse.jface.text.Region; +import org.w3c.dom.Attr; +import org.w3c.dom.Document; +import org.w3c.dom.Node; +import org.w3c.dom.Text; + +import org.jboss.tools.common.text.ext.hyperlink.RelativeLinkHyperlink; +import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; +import org.jboss.tools.common.text.ext.util.Utils; + +/** + * @author Jeremy + * + */ +public class JSPStylesheetRelLinkHyperlink extends RelativeLinkHyperlink { + = + private static final String HREF_ATTRNAME =3D "href"; //$NON-NLS-1$ + + protected IRegion getRegion (int offset) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + smw.init(getDocument()); + try { + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, offset); + = + if (n =3D=3D null || !(n instanceof Text || n instanceof Attr)) return = null; + = + String text =3D null; + int bStart =3D 0; + int bEnd =3D 0; + = + if (n instanceof Text) { + int start =3D Utils.getValueStart(n); + int end =3D Utils.getValueEnd(n); + if (start < 0 || start > offset) return null; + = + text =3D getDocument().get(start, end - start); + bStart =3D offset - start; + bEnd =3D offset - start; + } else if (n instanceof Attr) { + Attr attr =3D (Attr)n; + if (!HREF_ATTRNAME.equalsIgnoreCase(attr.getName())) return null; + int start =3D Utils.getValueStart(n); + int end =3D Utils.getValueEnd(n); + if(start < 0) return null; + = + text =3D getDocument().get(start, end - start); + bStart =3D offset - start; + bEnd =3D offset - start; + } + StringBuffer sb =3D new StringBuffer(text); + //find start of bean property + while (bStart >=3D 0) { = + if (!Character.isJavaIdentifierPart(sb.charAt(bStart)) && + sb.charAt(bStart) !=3D '\\' && sb.charAt(bStart) !=3D '/' && + sb.charAt(bStart) !=3D ':' && sb.charAt(bStart) !=3D '-' && + sb.charAt(bStart) !=3D '.' && sb.charAt(bStart) !=3D '_' && + sb.charAt(bStart) !=3D '%' && sb.charAt(bStart) !=3D '?' && + sb.charAt(bStart) !=3D '&' && sb.charAt(bStart) !=3D '=3D') { + bStart++; + break; + } + = + if (bStart =3D=3D 0) break; + bStart--; + } + // find end of bean property + while (bEnd >=3D 0 && bEnd < sb.length()) { = + if (!Character.isJavaIdentifierPart(sb.charAt(bEnd)) && + sb.charAt(bEnd) !=3D '\\' && sb.charAt(bEnd) !=3D '/' && + sb.charAt(bEnd) !=3D ':' && sb.charAt(bEnd) !=3D '-' && + sb.charAt(bEnd) !=3D '.' && sb.charAt(bEnd) !=3D '_' && + sb.charAt(bEnd) !=3D '%' && sb.charAt(bEnd) !=3D '?' && + sb.charAt(bEnd) !=3D '&' && sb.charAt(bEnd) !=3D '=3D') { + break; + } + bEnd++; + } + = + final int propStart =3D bStart + Utils.getValueStart(n); + final int propLength =3D bEnd - bStart; + = + if (propStart > offset || propStart + propLength < offset) return null; + = + return new Region(propStart,propLength); + } catch (BadLocationException x) { + //ignore + return null; + } finally { + smw.dispose(); + } + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/JSPStylesheetRelLinkHyperlink.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/RoleNameHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/RoleNameHyperlink.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/RoleNameHyperlink.java 2009-09-25 15:01:55 UTC (rev 1774= 7) @@ -0,0 +1,37 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink; + +import org.jboss.tools.common.text.ext.hyperlink.JumpToHyperlink; +import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages; + + +/** + * @author Jeremy + * + * TODO To change the template for this generated type comment go to + * Window - Preferences - Java - Code Style - Code Templates + */ +public class RoleNameHyperlink extends JumpToHyperlink { + protected String getDestinationAxis() { + return "/web-app/security-role/role-name/"; //$NON-NLS-1$ + } + = + /* + * (non-Javadoc) + * = + * @see IHyperlink#getHyperlinkText() + */ + public String getHyperlinkText() { + return Messages.BrowseToRoleNameDefinition; + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/RoleNameHyperlink.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/ServletNameHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/ServletNameHyperlink.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/ServletNameHyperlink.java 2009-09-25 15:01:55 UTC (rev 1= 7747) @@ -0,0 +1,37 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink; + +import org.jboss.tools.common.text.ext.hyperlink.JumpToHyperlink; +import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages; + + +/** + * @author Jeremy + * + * TODO To change the template for this generated type comment go to + * Window - Preferences - Java - Code Style - Code Templates + */ +public class ServletNameHyperlink extends JumpToHyperlink { + protected String getDestinationAxis() { + return "/web-app/servlet/servlet-name/"; //$NON-NLS-1$ + } + = + /* + * (non-Javadoc) + * = + * @see IHyperlink#getHyperlinkText() + */ + public String getHyperlinkText() { + return Messages.BrowseToServletNameDefinition; + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/ServletNameHyperlink.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/TLDAttributeNameHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/TLDAttributeNameHyperlink.java (= rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/TLDAttributeNameHyperlink.java 2009-09-25 15:01:55 UTC (= rev 17747) @@ -0,0 +1,90 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink; + +import java.util.ArrayList; +import java.util.List; +import java.util.StringTokenizer; + +import org.eclipse.jface.text.IRegion; +import org.jboss.tools.common.text.ext.hyperlink.JumpToHyperlink; +import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages; +import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; +import org.jboss.tools.common.text.ext.util.Utils; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.Node; +import org.w3c.dom.NodeList; + +/** + * @author Jeremy + * + */ +public class TLDAttributeNameHyperlink extends JumpToHyperlink { + protected String getDestinationAxis() { + return "/taglib/tag/attribute/name/"; //$NON-NLS-1$ + } + = + protected NodeList getRootElementsToSearch (IRegion region) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(getDocument()); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + + Node n =3D Utils.findNodeForOffset(xmlDocument, region.getOffset()); + + Element tagElement =3D null; + while(n !=3D null && tagElement =3D=3D null) { + n =3D n.getParentNode(); + if (n instanceof Element && validAxis(n, "/taglib/tag/")) { //$NON-NLS= -1$ + tagElement =3D (Element)n; + } + } + if (tagElement =3D=3D null) + return null; + = + return tagElement.getChildNodes(); + } finally { + smw.dispose(); + } + } + = + private boolean validAxis(Node n, String validAxisEnding) { + if (validAxisEnding =3D=3D null || validAxisEnding.lastIndexOf('/') =3D= =3D -1) return false; + StringTokenizer st =3D new StringTokenizer(validAxisEnding, "/"); //$NON= -NLS-1$ + List tokens =3D new ArrayList(); + while (st.hasMoreTokens()) { + tokens.add(st.nextToken()); + } + if (tokens.size() =3D=3D 0) return false; + Node currentElement =3D n; + for (int i =3D tokens.size() - 1; i >=3D 0; i--) { + if (currentElement =3D=3D null || !(currentElement instanceof Element)) + return false; + String token =3D (String)tokens.get(i); + if (!token.equals(currentElement.getNodeName())) + return false; + currentElement =3D currentElement.getParentNode(); + } + return true; + } + + /* + * (non-Javadoc) + * = + * @see IHyperlink#getHyperlinkText() + */ + public String getHyperlinkText() { + return Messages.BrowseToTLDAttributeNameDeclaration; + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/TLDAttributeNameHyperlink.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/TaglibDefinitionFilesHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/TaglibDefinitionFilesHyperlinkPartitioner.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/TaglibDefinitionFilesHyperlinkPartitioner.java 2009-09-2= 5 15:01:55 UTC (rev 17747) @@ -0,0 +1,58 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jst.text.ext.hyperlink; + +import org.eclipse.jface.text.IDocument; +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; +import org.jboss.tools.common.text.ext.hyperlink.xml.XMLClassHyperlinkPart= itioner; +import org.jboss.tools.common.text.ext.hyperlink.xml.XMLTextHyperlinkParti= tioner; +import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; +import org.jboss.tools.common.text.ext.util.Utils; +import org.w3c.dom.Document; +import org.w3c.dom.Node; +import org.w3c.dom.Text; + +/** + * @author mareshkau + * + */ +public class TaglibDefinitionFilesHyperlinkPartitioner extends XMLTextHype= rlinkPartitioner { + + public static final String TAGLIB_XML_PARTITION =3D "org.jboss.tools.comm= on.text.ext.xml.TAGLIB_XML"; //$NON-NLS-1$ + /* (non-Javadoc) + * @see org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlinkPartit= ioner#parse(org.eclipse.jface.text.IDocument, org.jboss.tools.common.text.e= xt.hyperlink.IHyperlinkRegion) + */ + /** + * @see com.ibm.sse.editor.extensions.hyperlink.IHyperlinkPartitionRecogn= izer#recognize(org.eclipse.jface.text.IDocument, com.ibm.sse.editor.extensi= ons.hyperlink.IHyperlinkRegion) + */ + @Override + public boolean recognize(IDocument document, IHyperlinkRegion region) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(document); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return false; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, region.getOffset()); + return (n instanceof Text); + } finally { + smw.dispose(); + } + } + + @Override + protected String getPartitionType(String axis) { + if(axis!=3Dnull && axis.contains("class")) { //$NON-NLS-1$ + return XMLClassHyperlinkPartitioner.XML_CLASS_PARTITION; + } + return TAGLIB_XML_PARTITION; + } +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/TaglibDefinitionFilesHyperlinkPartition= er.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPBeanGetPropertyHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPBeanGetPropertyHyperlink.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPBeanGetPropertyHyperlink.java 2009-09-25 15:01:55= UTC (rev 17747) @@ -0,0 +1,199 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import java.text.MessageFormat; + +import org.eclipse.core.runtime.CoreException; +import org.eclipse.jdt.core.IJavaElement; +import org.eclipse.jdt.ui.JavaUI; +import org.eclipse.jface.text.BadLocationException; +import org.eclipse.jface.text.IRegion; +import org.eclipse.ui.IEditorPart; +import org.jboss.tools.common.text.ext.hyperlink.ClassMethodHyperlink; +import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages; +import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; +import org.jboss.tools.common.text.ext.util.Utils; +import org.w3c.dom.Attr; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.Node; +import org.w3c.dom.NodeList; + +/** + * @author Jeremy + * + */ +public class JSPBeanGetPropertyHyperlink extends ClassMethodHyperlink { + private static final String USEBEAN_TAGNAME =3D "jsp:useBean"; //$NON-NLS= -1$ + private static final String ID_ATTRNAME =3D "id"; //$NON-NLS-1$ + private static final String NAME_ATTRNAME =3D "name"; //$NON-NLS-1$ + private static final String CLASS_ATTRNAME =3D "class"; //$NON-NLS-1$ + private static final String TYPE_ATTRNAME =3D "type"; //$NON-NLS-1$ + protected static final String GET_METHOD_PREFIX =3D "get"; //$NON-NLS-1$ + protected static final String SET_METHOD_PREFIX =3D "set"; //$NON-NLS-1$ + + protected String getMethodPrefix() { + return GET_METHOD_PREFIX; + } + = + private String getMethodName(String propertyName) { + String name =3D propertyName.trim(); + // Capitalize first letter of the name + name =3D name.substring(0, 1).toUpperCase() + name.substring(1); + return getMethodPrefix() + name; + } + = + protected String getClassName(IRegion region) { + return null; + } + protected String getMethodName(IRegion region) { + return null; + } + = + /** = + * @see com.ibm.sse.editor.AbstractHyperlink#doHyperlink(org.eclipse.jfac= e.text.IRegion) + */ + protected void doHyperlink(IRegion region) { + try { + String beanID =3D getBeanId(region); + String propertyName =3D getPropertyName(region); + = + Element elementByID =3D findElementByIDBackward(beanID, region.getOffse= t(), USEBEAN_TAGNAME); + String className =3D getAttributeValue(elementByID, CLASS_ATTRNAME); + String typeName =3D getAttributeValue(elementByID, TYPE_ATTRNAME); + = + IJavaElement beanMethod =3D null; + if (className !=3D null && className.trim().length() > 0) { + beanMethod =3D searchForClassMethod(className, getMethodName(propertyN= ame)); + } + if (beanMethod =3D=3D null && (typeName !=3D null && typeName.trim().le= ngth() > 0)) { + beanMethod =3D searchForClassMethod(typeName, getMethodName(propertyNa= me)); + } + + if (beanMethod !=3D null) { + IEditorPart part =3D JavaUI.openInEditor(beanMethod); + if (part !=3D null) { + JavaUI.revealInEditor(part, beanMethod); + } + else { + // could not open editor + openFileFailed(); + } + } else { + openFileFailed(); + } + } catch (CoreException x) { + openFileFailed(); + } + } + + private Element findElementByIDBackward (String id, int endOffset, String= tagname) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(getDocument()); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + + Node n =3D Utils.findNodeForOffset(xmlDocument, endOffset); + + if (n =3D=3D null) return null; + if (n instanceof Attr) n =3D ((Attr)n).getOwnerElement(); + + Element element =3D null; + for (Node parent =3D n;parent !=3D null && element =3D=3D null; parent = =3D parent.getParentNode()) { + element =3D findElementByIDBackward(xmlDocument.getChildNodes(), id, e= ndOffset, tagname); = + } + return element; + } finally { + smw.dispose(); + } + } + = + private Element findElementByIDBackward(NodeList list, String id, int end= Offset, String tagName) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(getDocument()); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + + for (int i =3D list.getLength() - 1; list !=3D null && i >=3D 0; i--) { + if(!(list.item(i) instanceof Element)) continue; + Element element =3D (Element)list.item(i); + int start =3D Utils.getValueStart(element); + if (start < 0 || start >=3D endOffset) continue; + = + String elementName =3D element.getNodeName(); + if (tagName.equals(elementName)) { + = + Attr idAttr =3D element.getAttributeNode(ID_ATTRNAME); + if (idAttr !=3D null) { + String val =3D Utils.trimQuotes(idAttr.getNodeValue()); + if (id.equals(val)) { + return element; + } + } + } + = + if (element.hasChildNodes()) { + Element child =3D findElementByIDBackward(element.getChildNodes(), i= d, endOffset, tagName); + if (child !=3D null) return child; + } + + } + } finally { + smw.dispose(); + } + return null; + } + + String getPropertyName(IRegion region) { + try { + return Utils.trimQuotes(getDocument().get(region.getOffset(), region.ge= tLength())); + } catch (BadLocationException x) { + //ignore + return null; + } + } + + private String getBeanId(IRegion region) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(getDocument()); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, region.getOffset()); + + if (n =3D=3D null || !(n instanceof Attr)) return null; + = + Node node =3D ((Attr)n).getOwnerElement(); + + return getAttributeValue(node, NAME_ATTRNAME); + } finally { + smw.dispose(); + } + } + + /* + * (non-Javadoc) + * = + * @see IHyperlink#getHyperlinkText() + */ + public String getHyperlinkText() { + String propertyName =3D getPropertyName(fLastRegion); + if (propertyName =3D=3D null) + return MessageFormat.format(Messages.OpenA, Messages.Getter); + = + return MessageFormat.format(Messages.OpenGetterOrSetterForProperty, Mess= ages.Getter, propertyName); + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPBeanGetPropertyHyperlink.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPBeanGetPropertyHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPBeanGetPropertyHyperlinkPartitioner.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPBeanGetPropertyHyperlinkPartitioner.java 2009-09-= 25 15:01:55 UTC (rev 17747) @@ -0,0 +1,92 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import org.eclipse.jface.text.IDocument; + +import org.w3c.dom.Attr; +import org.w3c.dom.Document; +import org.w3c.dom.Node; + +import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlinkPartitio= ner; +import org.jboss.tools.common.text.ext.hyperlink.HyperlinkRegion; +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkPartitionRecogn= izer; +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; +import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; +import org.jboss.tools.common.text.ext.util.Utils; + +/** + * @author Jeremy + */ +public class JSPBeanGetPropertyHyperlinkPartitioner extends AbstractHyperl= inkPartitioner implements IHyperlinkPartitionRecognizer { + public static final String JSP_BEAN_GET_PROPERTY_PARTITION =3D "org.jboss= .tools.common.text.ext.jsp.JSP_BEAN_GET_PROPERTY"; //$NON-NLS-1$ + + /** + * @see com.ibm.sse.editor.hyperlink.AbstractHyperlinkPartitioner#parse(o= rg.eclipse.jface.text.IDocument, com.ibm.sse.editor.extensions.hyperlink.IH= yperlinkRegion) + */ + protected IHyperlinkRegion parse(IDocument document, IHyperlinkRegion sup= erRegion) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(document); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, superRegion.getOffset()= ); + if (n =3D=3D null || !(n instanceof Attr)) return null; + int start =3D Utils.getValueStart(n); + int end =3D Utils.getValueEnd(n); + if(start < 0) return null; + + String axis =3D getAxis(document, superRegion); + String contentType =3D superRegion.getContentType(); + String type =3D JSP_BEAN_GET_PROPERTY_PARTITION; + int length =3D end - start - (superRegion.getOffset() - start); + int offset =3D superRegion.getOffset(); + = + IHyperlinkRegion region =3D new HyperlinkRegion(offset, length, axis, c= ontentType, type); + return region; + } finally { + smw.dispose(); + } + } + = + protected String getAxis(IDocument document, IHyperlinkRegion superRegion= ) { + if (superRegion.getAxis() =3D=3D null || superRegion.getAxis().length() = =3D=3D 0) { + return JSPRootHyperlinkPartitioner.computeAxis(document, superRegion.ge= tOffset()) + "/"; //$NON-NLS-1$ + } + return superRegion.getAxis(); + } + + /** + * @see com.ibm.sse.editor.extensions.hyperlink.IHyperlinkPartitionRecogn= izer#recognize(org.eclipse.jface.text.IDocument, com.ibm.sse.editor.extensi= ons.hyperlink.IHyperlinkRegion) + */ + public boolean recognize(IDocument document, IHyperlinkRegion region) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(document); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return false; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, region.getOffset()); + if (!(n instanceof Attr)) return false; + int start =3D Utils.getValueStart(n); + int end =3D Utils.getValueEnd(n); + = + if (start < 0 || start > region.getOffset() || end < region.getOffset()= ) = + return false; + + return true; + } finally { + smw.dispose(); + } + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPBeanGetPropertyHyperlinkPartitio= ner.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPBeanSetPropertyHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPBeanSetPropertyHyperlink.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPBeanSetPropertyHyperlink.java 2009-09-25 15:01:55= UTC (rev 17747) @@ -0,0 +1,42 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import java.text.MessageFormat; + +import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages; + +/** + * @author Jeremy + * + * TODO To change the template for this generated type comment go to + * Window - Preferences - Java - Code Style - Code Templates + */ +public class JSPBeanSetPropertyHyperlink extends JSPBeanGetPropertyHyperli= nk { + + protected String getMethodPrefix() { + return SET_METHOD_PREFIX; + } + + /* + * (non-Javadoc) + * = + * @see IHyperlink#getHyperlinkText() + */ + public String getHyperlinkText() { + String propertyName =3D getPropertyName(fLastRegion); + if (propertyName =3D=3D null) + return MessageFormat.format(Messages.OpenA, Messages.Setter); + = + return MessageFormat.format(Messages.OpenGetterOrSetterForProperty, Mess= ages.Setter, propertyName); + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPBeanSetPropertyHyperlink.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPBeanSetPropertyHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPBeanSetPropertyHyperlinkPartitioner.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPBeanSetPropertyHyperlinkPartitioner.java 2009-09-= 25 15:01:55 UTC (rev 17747) @@ -0,0 +1,90 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import org.eclipse.jface.text.IDocument; +import org.w3c.dom.Attr; +import org.w3c.dom.Document; +import org.w3c.dom.Node; + +import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlinkPartitio= ner; +import org.jboss.tools.common.text.ext.hyperlink.HyperlinkRegion; +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkPartitionRecogn= izer; +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; +import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; +import org.jboss.tools.common.text.ext.util.Utils; + +/** + * @author Jeremy + */ +public class JSPBeanSetPropertyHyperlinkPartitioner extends AbstractHyperl= inkPartitioner implements IHyperlinkPartitionRecognizer { + public static final String JSP_BEAN_SET_PROPERTY_PARTITION =3D "org.jboss= .tools.common.text.ext.jsp.JSP_BEAN_SET_PROPERTY"; //$NON-NLS-1$ + + /** + * @see com.ibm.sse.editor.hyperlink.AbstractHyperlinkPartitioner#parse(o= rg.eclipse.jface.text.IDocument, com.ibm.sse.editor.extensions.hyperlink.IH= yperlinkRegion) + */ + protected IHyperlinkRegion parse(IDocument document, IHyperlinkRegion sup= erRegion) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(document); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, superRegion.getOffset()= ); + if (n =3D=3D null || !(n instanceof Attr)) return null; + int start =3D Utils.getValueStart(n); + int end =3D Utils.getValueEnd(n); + + String axis =3D getAxis(document, superRegion); + String contentType =3D superRegion.getContentType(); + String type =3D JSP_BEAN_SET_PROPERTY_PARTITION; + int length =3D end - start - (superRegion.getOffset() - start); + int offset =3D superRegion.getOffset(); + + IHyperlinkRegion region =3D new HyperlinkRegion(offset, length, axis, c= ontentType, type); + return region; + } finally { + smw.dispose(); + } + } + = + protected String getAxis(IDocument document, IHyperlinkRegion superRegion= ) { + if (superRegion.getAxis() =3D=3D null || superRegion.getAxis().length() = =3D=3D 0) { + return JSPRootHyperlinkPartitioner.computeAxis(document, superRegion.ge= tOffset()) + "/"; //$NON-NLS-1$ + } + return superRegion.getAxis(); + } + + /** + * @see com.ibm.sse.editor.extensions.hyperlink.IHyperlinkPartitionRecogn= izer#recognize(org.eclipse.jface.text.IDocument, com.ibm.sse.editor.extensi= ons.hyperlink.IHyperlinkRegion) + */ + public boolean recognize(IDocument document, IHyperlinkRegion region) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(document); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return false; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, region.getOffset()); + if (!(n instanceof Attr)) return false; + int start =3D Utils.getValueStart(n); + int end =3D Utils.getValueEnd(n); + = + if (start < 0 || start > region.getOffset() || end < region.getOffset()= ) = + return false; + + return true; + } finally { + smw.dispose(); + } + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPBeanSetPropertyHyperlinkPartitio= ner.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPCSSClassHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPCSSClassHyperlinkPartitioner.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPCSSClassHyperlinkPartitioner.java 2009-09-25 15:0= 1:55 UTC (rev 17747) @@ -0,0 +1,118 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import org.eclipse.jface.text.BadLocationException; +import org.eclipse.jface.text.IDocument; +import org.w3c.dom.Attr; +import org.w3c.dom.Document; +import org.w3c.dom.Node; + +import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlinkPartitio= ner; +import org.jboss.tools.common.text.ext.hyperlink.HyperlinkRegion; +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; +import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; +import org.jboss.tools.common.text.ext.util.Utils; + +/** + * * @deprecated see org.jboss.tools.common.text.ext.hyperlink.CSSClassHy= perlinkPartitioner + * @author Jeremy + */ +public class JSPCSSClassHyperlinkPartitioner extends AbstractHyperlinkPart= itioner /*implements IHyperlinkPartitionRecognizer */{ + public static final String JSP_CSS_CLASS_PARTITION =3D "org.jboss.tools.c= ommon.text.ext.jsp.JSP_CSS_CLASS"; //$NON-NLS-1$ + + /** + * @see com.ibm.sse.editor.hyperlink.AbstractHyperlinkPartitioner#parse(o= rg.eclipse.jface.text.IDocument, com.ibm.sse.editor.extensions.hyperlink.IH= yperlinkRegion) + */ + protected IHyperlinkRegion parse(IDocument document, IHyperlinkRegion sup= erRegion) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(document); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + = + Utils.findNodeForOffset(xmlDocument, superRegion.getOffset()); +// if (!recognize(document, superRegion)) return null; + IHyperlinkRegion r =3D getRegion(document, superRegion.getOffset()); + if (r =3D=3D null) return null; + = + String axis =3D getAxis(document, superRegion); + String contentType =3D superRegion.getContentType(); + String type =3D JSP_CSS_CLASS_PARTITION; + int length =3D r.getLength() - (superRegion.getOffset() - r.getOffset()= ); + int offset =3D superRegion.getOffset(); + + IHyperlinkRegion region =3D new HyperlinkRegion(offset, length, axis, c= ontentType, type); + return region; + } finally { + smw.dispose(); + } + } + + protected String getAxis(IDocument document, IHyperlinkRegion superRegion= ) { + if (superRegion.getAxis() =3D=3D null || superRegion.getAxis().length() = =3D=3D 0) { + return JSPRootHyperlinkPartitioner.computeAxis(document, superRegion.ge= tOffset()) + "/"; //$NON-NLS-1$ + } + return superRegion.getAxis(); + } + = + public static IHyperlinkRegion getRegion(IDocument document, final int of= fset) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(document); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, offset); + + if (n =3D=3D null || !(n instanceof Attr)) return null; + = + int start =3D Utils.getValueStart(n); + int end =3D Utils.getValueEnd(n); + = + if (start < 0 || start > offset) return null; + + String attrText =3D document.get(start, end - start); + StringBuffer sb =3D new StringBuffer(attrText); + + //find start and end of path property + int bStart =3D 0; + int bEnd =3D attrText.length() - 1; + + while (bStart < bEnd && = + (sb.charAt(bStart) =3D=3D '\'' || sb.charAt(bStart) =3D=3D '\"' || + Character.isWhitespace(sb.charAt(bStart)))) { = + bStart++; + } + while (bEnd > bStart && = + (sb.charAt(bEnd) =3D=3D '\'' || sb.charAt(bEnd) =3D=3D '\"' || + Character.isWhitespace(sb.charAt(bEnd)))) { = + bEnd--; + } + bEnd++; + + int propStart =3D bStart + start; + int propLength =3D bEnd - bStart; + = + if (propStart > offset || propStart + propLength < offset) return null; + = + IHyperlinkRegion region =3D new HyperlinkRegion(propStart, propLength, = null, null, null); + return region; + } catch (BadLocationException x) { + //ignore + return null; + } finally { + smw.dispose(); + } + = + } + +} \ No newline at end of file Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPCSSClassHyperlinkPartitioner.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPClassHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPClassHyperlinkPartitioner.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPClassHyperlinkPartitioner.java 2009-09-25 15:01:5= 5 UTC (rev 17747) @@ -0,0 +1,28 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import org.eclipse.jface.text.IDocument; + +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; +import org.jboss.tools.common.text.ext.hyperlink.xml.XMLClassHyperlinkPart= itioner; + +/** + * @author Jeremy + */ +public class JSPClassHyperlinkPartitioner extends XMLClassHyperlinkPartiti= oner { + protected String getAxis(IDocument document, IHyperlinkRegion superRegion= ) { + if (superRegion.getAxis() =3D=3D null || superRegion.getAxis().length() = =3D=3D 0) { + return JSPRootHyperlinkPartitioner.computeAxis(document, superRegion.ge= tOffset()) + "/"; //$NON-NLS-1$ + } + return superRegion.getAxis(); + } +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPClassHyperlinkPartitioner.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPElementAttributeValueHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPElementAttributeValueHyperlinkPartitioner.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPElementAttributeValueHyperlinkPartitioner.java 20= 09-09-25 15:01:55 UTC (rev 17747) @@ -0,0 +1,28 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import org.eclipse.jface.text.IDocument; + +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; +import org.jboss.tools.common.text.ext.hyperlink.xml.XMLElementAttributeVa= lueHyperlinkPartitioner; + +/** + * @author Jeremy + */ +public class JSPElementAttributeValueHyperlinkPartitioner extends XMLEleme= ntAttributeValueHyperlinkPartitioner { + protected String getAxis(IDocument document, IHyperlinkRegion superRegion= ) { + if (superRegion.getAxis() =3D=3D null || superRegion.getAxis().length() = =3D=3D 0) { + return JSPRootHyperlinkPartitioner.computeAxis(document, superRegion.ge= tOffset()) + "/"; //$NON-NLS-1$ + } + return superRegion.getAxis(); + } +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPElementAttributeValueHyperlinkPa= rtitioner.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPElementHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPElementHyperlinkPartitioner.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPElementHyperlinkPartitioner.java 2009-09-25 15:01= :55 UTC (rev 17747) @@ -0,0 +1,29 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import org.eclipse.jface.text.IDocument; + +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; +import org.jboss.tools.common.text.ext.hyperlink.xml.XMLElementHyperlinkPa= rtitioner; + +/** + * @author Jeremy + */ +public class JSPElementHyperlinkPartitioner extends XMLElementHyperlinkPar= titioner { + protected String getAxis(IDocument document, IHyperlinkRegion superRegion= ) { + if (superRegion.getAxis() =3D=3D null || superRegion.getAxis().length() = =3D=3D 0) { + return JSPRootHyperlinkPartitioner.computeAxis(document, superRegion.ge= tOffset()) + "/"; //$NON-NLS-1$ + } + return superRegion.getAxis(); + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPElementHyperlinkPartitioner.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPElementNameHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPElementNameHyperlink.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPElementNameHyperlink.java 2009-09-25 15:01:55 UTC= (rev 17747) @@ -0,0 +1,141 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import java.text.MessageFormat; + +import org.eclipse.jface.text.BadLocationException; +import org.eclipse.jface.text.IRegion; +import org.eclipse.ui.IEditorInput; +import org.eclipse.ui.IEditorPart; +import org.jboss.tools.common.model.XModel; +import org.jboss.tools.common.model.XModelObject; +import org.jboss.tools.common.model.util.FindObjectHelper; +import org.jboss.tools.common.text.ext.ExtensionsPlugin; +import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlink; +import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages; +import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; +import org.jboss.tools.common.text.ext.util.TaglibManagerWrapper; +import org.jboss.tools.jst.web.tld.ITaglibMapping; +import org.jboss.tools.jst.web.tld.IWebProject; +import org.jboss.tools.jst.web.tld.WebProjectFactory; +import org.w3c.dom.Document; + +/** + * @author Jeremy + */ +public class JSPElementNameHyperlink extends AbstractHyperlink { + + /** = + * @see com.ibm.sse.editor.AbstractHyperlink#doHyperlink(org.eclipse.jfac= e.text.IRegion) + */ + protected void doHyperlink(IRegion region) { + XModelObject object =3D getFilename(region); + if(object !=3D null) { + FindObjectHelper.findModelObject(object, FindObjectHelper.IN_EDITOR_ONL= Y); + } else { + openFileFailed(); + } + } + = + protected final String JAR_FILE_PROTOCOL =3D "jar:file:/";//$NON-NLS-1$ + = + /* + * @see com.ibm.sse.editor.hyperlink.AbstractHyperlink#openFileInEdito= r(java.lang.String) + */ + protected void openFileInEditor(String fileString) { + = + if (fileString.startsWith(JAR_FILE_PROTOCOL)) { + fileString =3D fileString.substring(JAR_FILE_PROTOCOL.length()); + = + IEditorInput jarEditorInput =3D createEditorInput(fileString); + IEditorPart part =3D openFileInEditor(jarEditorInput, fileString= ); + if (part =3D=3D null) openFileFailed(); + } else { + super.openFileInEditor(fileString); = + } + } + + private XModelObject getFilename(IRegion region) { + XModel xModel =3D getXModel(); + if (xModel =3D=3D null) return null; + + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(getDocument()); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + = + String nodePrefix =3D getTagPrefix(region); + if (nodePrefix =3D=3D null) = + return null; + + TaglibManagerWrapper tmw =3D new TaglibManagerWrapper(); + tmw.init(getDocument(), region.getOffset()); + if(!tmw.exists()) return null; + String uri =3D tmw.getUri(nodePrefix); + + if (uri =3D=3D null) return null; + = + IWebProject wp =3D WebProjectFactory.instance.getWebProject(xModel); + if (wp =3D=3D null) return null; + = + ITaglibMapping tm =3D wp.getTaglibMapping(); + if (tm =3D=3D null) return null; + tm.invalidate(); + return tm.getTaglibObject(uri); + } finally { + smw.dispose(); + } + } + = + private String getTagPrefix(IRegion region) { + if (region =3D=3D null) + return null; + = + String nodeName; + try { + nodeName =3D getDocument().get(region.getOffset(), region.getLength()); + } catch (BadLocationException e) { + // Ignore + return null; + } + if (nodeName.indexOf(":") !=3D -1) { //$NON-NLS-1$ + String nodePrefix =3D nodeName.substring(0, nodeName.indexOf(":")); //$= NON-NLS-1$ + if (nodePrefix !=3D null && nodePrefix.length() > 0) = + return nodePrefix; + } + return null; + } + = + IRegion fLastRegion =3D null; + /** = + * @see com.ibm.sse.editor.AbstractHyperlink#doGetHyperlinkRegion(int) + */ + protected IRegion doGetHyperlinkRegion(int offset) { + fLastRegion =3D JSPElementNameHyperlinkPartitioner.getRegion(getDocument= (), offset); + return fLastRegion; + } + + /* + * (non-Javadoc) + * = + * @see IHyperlink#getHyperlinkText() + */ + public String getHyperlinkText() { + String tagPrefix =3D getTagPrefix(fLastRegion); + if (tagPrefix =3D=3D null) + return MessageFormat.format(Messages.OpenA, Messages.TagLibrary); + = + return MessageFormat.format(Messages.OpenTagLibraryForPrefix, tagPrefix); + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPElementNameHyperlink.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPElementNameHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPElementNameHyperlinkPartitioner.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPElementNameHyperlinkPartitioner.java 2009-09-25 1= 5:01:55 UTC (rev 17747) @@ -0,0 +1,66 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import java.util.Map; +import org.eclipse.jface.text.IDocument; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.Node; + +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; +import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; +import org.jboss.tools.common.text.ext.util.Utils; +import org.jboss.tools.common.text.ext.hyperlink.xml.XMLElementNameHyperli= nkPartitioner; + +/** + * @author Jeremy + */ +public class JSPElementNameHyperlinkPartitioner extends XMLElementNameHype= rlinkPartitioner { + protected String getAxis(IDocument document, IHyperlinkRegion superRegion= ) { + if (superRegion.getAxis() =3D=3D null || superRegion.getAxis().length() = =3D=3D 0) { + return JSPRootHyperlinkPartitioner.computeAxis(document, superRegion.ge= tOffset()) + "/"; //$NON-NLS-1$ + } + return superRegion.getAxis(); + } + + /** + * @see com.ibm.sse.editor.extensions.hyperlink.IHyperlinkPartitionRecogn= izer#recognize(org.eclipse.jface.text.IDocument, com.ibm.sse.editor.extensi= ons.hyperlink.IHyperlinkRegion) + */ + public boolean recognize(IDocument document, IHyperlinkRegion region) { + if (!super.recognize(document, region)) return false; + = + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(document); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return false; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, region.getOffset()); + Element elem =3D (Element)n; + + IHyperlinkRegion r =3D getRegion(document, region.getOffset()); + if (r =3D=3D null) return false; + = + String nodeName =3D elem.getNodeName(); + if (nodeName.indexOf(":") =3D=3D -1) return false; //$NON-NLS-1$ + String nodePrefix =3D nodeName.substring(0, nodeName.indexOf(":")); //$= NON-NLS-1$ + if (nodePrefix =3D=3D null || nodePrefix.length() =3D=3D 0) return fals= e; + = + Map trackers =3D JSPRootHyperlinkPartitioner.getTrackersMap(document, r= egion.getOffset()); + return (trackers !=3D null && trackers.containsKey(nodePrefix)); + } finally { + smw.dispose(); + } + } + + = +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPElementNameHyperlinkPartitioner.= java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPForBeanIdHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPForBeanIdHyperlink.java (= rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPForBeanIdHyperlink.java 2009-09-25 15:01:55 UTC (= rev 17747) @@ -0,0 +1,196 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import java.text.MessageFormat; + +import org.eclipse.jface.text.BadLocationException; +import org.eclipse.jface.text.IRegion; +import org.eclipse.jface.text.Region; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement; +import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlink; +import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages; +import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; +import org.jboss.tools.common.text.ext.util.StructuredSelectionHelper; +import org.jboss.tools.common.text.ext.util.Utils; +import org.w3c.dom.Attr; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.Node; +import org.w3c.dom.NodeList; +import org.w3c.dom.Text; + +/** + * @author Jeremy + */ +public class JSPForBeanIdHyperlink extends AbstractHyperlink { + private static final String USEBEAN_TAGNAME =3D "jsp:useBean"; //$NON-NLS= -1$ + private static final String ID_ATTRNAME =3D "id"; //$NON-NLS-1$ + + /** = + * @see com.ibm.sse.editor.AbstractHyperlink#doHyperlink(org.eclipse.jfac= e.text.IRegion) + */ + protected void doHyperlink(IRegion region) { + String forID =3D getForId(region); + IRegion elementByID =3D findElementByIDBackward(forID, region.getOffset(= ), USEBEAN_TAGNAME); + if (elementByID !=3D null) { + StructuredSelectionHelper.setSelectionAndRevealInActiveEditor(elementBy= ID); + } else { + openFileFailed(); + } + } + = + private IRegion findElementByIDBackward (String id, int endOffset, String= tagname) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(getDocument()); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + + Node n =3D Utils.findNodeForOffset(xmlDocument, endOffset); + + if (n =3D=3D null) return null; + if (n instanceof Attr) n =3D ((Attr)n).getOwnerElement(); + if (n =3D=3D null) return null; + + Element element =3D null; + for (Node parent =3D n; parent !=3D null && element =3D=3D null; parent= =3D parent.getParentNode()) { + element =3D findElementByIDBackward(xmlDocument.getChildNodes(), id, e= ndOffset, tagname); = + } + + if (!(element instanceof IDOMElement)) return null; + = + final int offset =3D Utils.getValueStart(element); + final int length =3D ((IDOMElement)element).getStartStructuredDocumentR= egion().getLength(); + return new Region (offset, length); + } finally { + smw.dispose(); + } + } + = + private Element findElementByIDBackward(NodeList list, String id, int end= Offset, String tagName) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(getDocument()); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + + for (int i =3D list.getLength() - 1; list !=3D null && i >=3D 0; i--) { + if(!(list.item(i) instanceof Element)) continue; + Element element =3D (Element)list.item(i); + int start =3D Utils.getValueStart(element); + if (start < 0 || start >=3D endOffset) continue; + = + String elementName =3D element.getNodeName(); + if (tagName.equals(elementName)) { + = + Attr idAttr =3D (Attr)element.getAttributeNode(ID_ATTRNAME); + if (idAttr !=3D null) { + String val =3D Utils.trimQuotes(idAttr.getNodeValue()); + if (id.equals(val)) { + return element; + } + } + } + = + if (element.hasChildNodes()) { + Element child =3D findElementByIDBackward(element.getChildNodes(), i= d, endOffset, tagName); + if (child !=3D null) return child; + } + } + } finally { + smw.dispose(); + } + return null; + } + + + String getForId(IRegion region) { + try { + return Utils.trimQuotes(getDocument().get(region.getOffset(), region.ge= tLength())); + } catch (BadLocationException x) { + //ignore + return null; + } + } + + IRegion fLastRegion =3D null; + /* + * (non-Javadoc) + * = + * @see com.ibm.sse.editor.AbstractHyperlink#doGetHyperlinkRegion(int) + */ + protected IRegion doGetHyperlinkRegion(int offset) { + fLastRegion =3D getRegion(offset); + return fLastRegion; + } + + private IRegion getRegion(int offset) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(getDocument()); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, offset); + + if (n =3D=3D null || !(n instanceof Attr || n instanceof Text)) return = null; + = + int start =3D Utils.getValueStart(n); + int end =3D Utils.getValueEnd(n); + + if (start > offset || end < offset) return null; + + String text =3D getDocument().get(start, end - start); + StringBuffer sb =3D new StringBuffer(text); + + //find start and end of path property + int bStart =3D 0; + int bEnd =3D text.length() - 1; + + while (bStart < bEnd && (Character.isWhitespace(sb.charAt(bStart)) = + || sb.charAt(bStart) =3D=3D '\"' || sb.charAt(bStart) =3D=3D '\"')) { = + bStart++; + } + while (bEnd > bStart && (Character.isWhitespace(sb.charAt(bEnd)) = + || sb.charAt(bEnd) =3D=3D '\"' || sb.charAt(bEnd) =3D=3D '\"')) { = + bEnd--; + } + bEnd++; + + final int propStart =3D bStart + start; + final int propLength =3D bEnd - bStart; + = + if (propStart > offset || propStart + propLength < offset) return null; + = + return new Region (propStart,propLength); + } catch (BadLocationException x) { + //ignore + return null; + } finally { + smw.dispose(); + } + } + + /* + * (non-Javadoc) + * = + * @see IHyperlink#getHyperlinkText() + */ + public String getHyperlinkText() { + String forId =3D getForId(fLastRegion); + if (forId =3D=3D null) + return MessageFormat.format(Messages.BrowseFor, Messages.BeanId); + = + return MessageFormat.format(Messages.BrowseForBeanId, forId); + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPForBeanIdHyperlink.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPForBeanIdHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPForBeanIdHyperlinkPartitioner.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPForBeanIdHyperlinkPartitioner.java 2009-09-25 15:= 01:55 UTC (rev 17747) @@ -0,0 +1,117 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import org.eclipse.jface.text.BadLocationException; +import org.eclipse.jface.text.IDocument; +import org.w3c.dom.Attr; +import org.w3c.dom.Document; +import org.w3c.dom.Node; + +import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlinkPartitio= ner; +import org.jboss.tools.common.text.ext.hyperlink.HyperlinkRegion; +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; +import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; +import org.jboss.tools.common.text.ext.util.Utils; + +/** + * @author Jeremy + */ +public class JSPForBeanIdHyperlinkPartitioner extends AbstractHyperlinkPar= titioner /*implements IHyperlinkPartitionRecognizer */{ + public static final String JSP_FOR_BEAN_ID_PARTITION =3D "org.jboss.tools= .common.text.ext.jsp.JSP_FOR_BEAN_ID"; //$NON-NLS-1$ + + /** + * @see com.ibm.sse.editor.hyperlink.AbstractHyperlinkPartitioner#parse(o= rg.eclipse.jface.text.IDocument, com.ibm.sse.editor.extensions.hyperlink.IH= yperlinkRegion) + */ + protected IHyperlinkRegion parse(IDocument document, IHyperlinkRegion sup= erRegion) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(document); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + = + Utils.findNodeForOffset(xmlDocument, superRegion.getOffset()); +// if (!recognize(document, superRegion)) return null; + IHyperlinkRegion r =3D getRegion(document, superRegion.getOffset()); + if (r =3D=3D null) return null; + = + String axis =3D getAxis(document, superRegion); + String contentType =3D superRegion.getContentType(); + String type =3D JSP_FOR_BEAN_ID_PARTITION; + int length =3D r.getLength() - (superRegion.getOffset() - r.getOffset()= ); + int offset =3D superRegion.getOffset(); + + IHyperlinkRegion region =3D new HyperlinkRegion(offset, length, axis, c= ontentType, type); + return region; + } finally { + smw.dispose(); + } + } + + protected String getAxis(IDocument document, IHyperlinkRegion superRegion= ) { + if (superRegion.getAxis() =3D=3D null || superRegion.getAxis().length() = =3D=3D 0) { + return JSPRootHyperlinkPartitioner.computeAxis(document, superRegion.ge= tOffset()) + "/"; //$NON-NLS-1$ + } + return superRegion.getAxis(); + } + = + public static IHyperlinkRegion getRegion(IDocument document, final int of= fset) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(document); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, offset); + + if (n =3D=3D null || !(n instanceof Attr)) return null; + = + int start =3D Utils.getValueStart(n); + int end =3D Utils.getValueEnd(n); + = + if (start < 0 || start > offset) return null; + + String attrText =3D document.get(start, end - start); + StringBuffer sb =3D new StringBuffer(attrText); + + //find start and end of path property + int bStart =3D 0; + int bEnd =3D attrText.length() - 1; + + while (bStart < bEnd && = + (sb.charAt(bStart) =3D=3D '\'' || sb.charAt(bStart) =3D=3D '\"' || + Character.isWhitespace(sb.charAt(bStart)))) { = + bStart++; + } + while (bEnd > bStart && = + (sb.charAt(bEnd) =3D=3D '\'' || sb.charAt(bEnd) =3D=3D '\"' || + Character.isWhitespace(sb.charAt(bEnd)))) { = + bEnd--; + } + bEnd++; + + int propStart =3D bStart + start; + int propLength =3D bEnd - bStart; + = + if (propStart > offset || propStart + propLength < offset) return null; + = + IHyperlinkRegion region =3D new HyperlinkRegion(propStart, propLength, = null, null, null); + return region; + } catch (BadLocationException x) { + //ignore + return null; + } finally { + smw.dispose(); + } + = + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPForBeanIdHyperlinkPartitioner.ja= va ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPLinkHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPLinkHyperlinkPartitioner.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPLinkHyperlinkPartitioner.java 2009-09-25 15:01:55= UTC (rev 17747) @@ -0,0 +1,44 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import org.eclipse.jface.text.IDocument; + +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; +import org.jboss.tools.common.text.ext.hyperlink.xml.XMLLinkHyperlinkParti= tioner; + +/** + * @author Jeremy + */ +public class JSPLinkHyperlinkPartitioner extends XMLLinkHyperlinkPartition= er { + public static final String JSP_LINK_PARTITION =3D "org.jboss.tools.common= .text.ext.jsp.JSP_LINK"; //$NON-NLS-1$ + + /* (non-Javadoc) + * @see org.jboss.tools.common.text.ext.hyperlink.XMLLinkHyperlinkPartiti= oner#getPartitionType() + */ + protected String getPartitionType() { + return JSP_LINK_PARTITION; + } + + /* (non-Javadoc) + * @see com.ibm.sse.editor.extensions.hyperlink.IHyperlinkPartitionRecogn= izer#recognize(org.eclipse.jface.text.IDocument, com.ibm.sse.editor.extensi= ons.hyperlink.IHyperlinkRegion) + */ + public boolean recognize(IDocument document, IHyperlinkRegion region) { + return true; + } + + protected String getAxis(IDocument document, IHyperlinkRegion superRegion= ) { + if (superRegion.getAxis() =3D=3D null || superRegion.getAxis().length() = =3D=3D 0) { + return JSPRootHyperlinkPartitioner.computeAxis(document, superRegion.ge= tOffset()) + "/"; //$NON-NLS-1$ + } + return superRegion.getAxis(); + } +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPLinkHyperlinkPartitioner.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPRelativeLinkHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPRelativeLinkHyperlinkPartitioner.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPRelativeLinkHyperlinkPartitioner.java 2009-09-25 = 15:01:55 UTC (rev 17747) @@ -0,0 +1,44 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import org.eclipse.jface.text.IDocument; + +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; +import org.jboss.tools.common.text.ext.hyperlink.xml.XMLLinkHyperlinkParti= tioner; + +/** + * @author Jeremy + */ +public class JSPRelativeLinkHyperlinkPartitioner extends XMLLinkHyperlinkP= artitioner { + public static final String JSP_RELATIVE_LINK_PARTITION =3D "org.jboss.too= ls.common.text.ext.jsp.JSP_RELATIVE_LINK"; //$NON-NLS-1$ + + /* (non-Javadoc) + * @see org.jboss.tools.common.text.ext.hyperlink.XMLLinkHyperlinkPartiti= oner#getPartitionType() + */ + protected String getPartitionType() { + return JSP_RELATIVE_LINK_PARTITION; + } + + /* (non-Javadoc) + * @see com.ibm.sse.editor.extensions.hyperlink.IHyperlinkPartitionRecogn= izer#recognize(org.eclipse.jface.text.IDocument, com.ibm.sse.editor.extensi= ons.hyperlink.IHyperlinkRegion) + */ + public boolean recognize(IDocument document, IHyperlinkRegion region) { + return true; + } + + protected String getAxis(IDocument document, IHyperlinkRegion superRegion= ) { + if (superRegion.getAxis() =3D=3D null || superRegion.getAxis().length() = =3D=3D 0) { + return JSPRootHyperlinkPartitioner.computeAxis(document, superRegion.ge= tOffset()) + "/"; //$NON-NLS-1$ + } + return superRegion.getAxis(); + } +} \ No newline at end of file Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPRelativeLinkHyperlinkPartitioner= .java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPRootHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPRootHyperlinkPartitioner.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPRootHyperlinkPartitioner.java 2009-09-25 15:01:55= UTC (rev 17747) @@ -0,0 +1,229 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.eclipse.core.resources.IFile; +import org.eclipse.jface.text.IDocument; +import org.eclipse.jst.jsp.core.internal.contentmodel.TaglibController; +import org.eclipse.jst.jsp.core.internal.contentmodel.tld.TLDCMDocumentMan= ager; +import org.eclipse.jst.jsp.core.internal.contentmodel.tld.TaglibTracker; +import org.jboss.tools.common.model.XModel; +import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlink; +import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlinkPartitio= ner; +import org.jboss.tools.common.text.ext.hyperlink.HyperlinkRegion; +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkPartitionRecogn= izer; +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; +import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; +import org.jboss.tools.common.text.ext.util.Utils; +import org.jboss.tools.jst.web.tld.ITaglibMapping; +import org.jboss.tools.jst.web.tld.WebProjectFactory; +import org.w3c.dom.Attr; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.NamedNodeMap; +import org.w3c.dom.Node; + +/** + * @author Jeremy + */ +public class JSPRootHyperlinkPartitioner extends AbstractHyperlinkPartitio= ner implements IHyperlinkPartitionRecognizer { + public static final String JSP_ROOT_PARTITION =3D "org.jboss.tools.common= .text.ext.jsp.JSP_ROOT"; //$NON-NLS-1$ + = + /** + * @see com.ibm.sse.editor.hyperlink.AbstractHyperlinkPartitioner#parse(o= rg.eclipse.jface.text.IDocument, com.ibm.sse.editor.extensions.hyperlink.IH= yperlinkRegion) + */ + protected IHyperlinkRegion parse(IDocument document, IHyperlinkRegion sup= erRegion) { + if (!recognize(document, superRegion)) return null; + = + String axis =3D computeAxis(document, superRegion.getOffset()) + "/"; //= $NON-NLS-1$ + String contentType =3D superRegion.getContentType(); + String type =3D JSP_ROOT_PARTITION; + int length =3D superRegion.getLength(); + int offset =3D superRegion.getOffset(); + = + IHyperlinkRegion region =3D new HyperlinkRegion(offset, length, axis, co= ntentType, type); + return region; + } + + public static String computeAxis(IDocument document, int offset) { + String axis =3D ""; //$NON-NLS-1$ + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + smw.init(document); + try { + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, offset); + Map trackersMap =3D getTrackersMap(document, offset); + = + IFile file =3D smw.getFile(); + XModel xModel =3D AbstractHyperlink.getXModel(file); + ITaglibMapping tm =3D xModel =3D=3D null ? null : WebProjectFactory.ins= tance.getWebProject(xModel).getTaglibMapping(); + + if (n !=3D null) { + if ((n instanceof Element || n instanceof Attr) && + n.getNodeName() !=3D null && n.getNodeName().length() > 0) { + = + String name =3D n.getNodeName(); + + // The node name extraction must be done by taking into account 'jsfc= ' attribute value + if (n instanceof Element) { + Element e =3D (Element)n; + String jsfcAttrValue =3D e.getAttribute("jsfc"); //$NON-NLS-1$ + if (jsfcAttrValue !=3D null && jsfcAttrValue.trim().length() > 0) { + name =3D jsfcAttrValue; + } + } + = + String nodeName =3D extractName(name, trackersMap, tm); + axis =3D "/" + nodeName; //$NON-NLS-1$ + } + Node parent =3D (n instanceof Attr)? ((Attr)n).getOwnerElement() : n.g= etParentNode(); + while (parent instanceof Element) { + // Get the axis part depending on the type and name of node + String name =3D parent.getNodeName(); + + // The node name extraction must be done by taking into account 'jsfc= ' attribute value + if (parent instanceof Element) { + Element e =3D (Element)parent; + String jsfcAttrValue =3D e.getAttribute("jsfc"); //$NON-NLS-1$ + if (jsfcAttrValue !=3D null && jsfcAttrValue.trim().length() > 0) { + name =3D jsfcAttrValue; + } + } + = + String nodeName =3D extractName(name, trackersMap, tm); + if (nodeName !=3D null && nodeName.length() > 0) = + axis =3D "/" + nodeName + axis; //$NON-NLS-1$ + parent =3D parent.getParentNode(); + } + } + } finally { + smw.dispose(); + } + = + if (axis =3D=3D null || axis.length() =3D=3D 0) axis =3D ""; //$NON-NLS-= 1$ + return axis; + } + = + public static String extractName (String name, Map trackersMap, ITaglibMa= pping tm) { + if (trackersMap =3D=3D null || trackersMap.size() =3D=3D 0) return name; + if (name =3D=3D null) return null; + int column =3D name.indexOf(":"); //$NON-NLS-1$ + if (column =3D=3D -1) return name; + String prefix =3D name.substring(0, column); + if (prefix =3D=3D null || prefix.trim().length() =3D=3D 0) return name; + = + String uri =3D (String)trackersMap.get(prefix); + if (uri =3D=3D null || uri.length() =3D=3D 0) return name; + = + String resolvedUri =3D (tm =3D=3D null ? uri : tm.resolveURI(uri)); + = + return "[" + resolvedUri + "]" + name.substring(column); //$NON-NLS-1$ = //$NON-NLS-2$ + } + + public static Map getTrackersMap(IDocument document, int offset) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(document); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + = + TLDCMDocumentManager manager =3D TaglibController.getTLDCMDocumentManag= er(document); + = + List trackers =3D (manager =3D=3D null? null : manager.getCMDocumentTra= ckers(offset)); + = + Map map =3D new HashMap(); + // Find F tracker +// TaglibTracker fTT =3D null; + for (int i =3D 0; trackers !=3D null && i < trackers.size(); i++) { + TaglibTracker tt =3D (TaglibTracker)trackers.get(i); + String prefix =3D tt.getPrefix(); + String uri =3D tt.getURI(); + if (prefix !=3D null && prefix.trim().length() > 0 && + uri !=3D null && uri.trim().length() > 0) { + map.put(prefix.trim(), uri.trim()); + } + } + map =3D addAlternativeTrackersMap(map, document, offset); + + return map; + } finally { + smw.dispose(); + } + } + + // DONE: alternative trackers map (for use along with xhtml documents) + public static Map addAlternativeTrackersMap(Map map, IDocument document, int offset) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(document); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + = + if (map =3D=3D null) map =3D new HashMap(); + + Node n =3D Utils.findNodeForOffset(xmlDocument, offset); + while (n !=3D null) { + if (!(n instanceof Element)) { + if (n instanceof Attr) { + n =3D ((Attr)n).getOwnerElement(); + } else { + n =3D n.getParentNode(); + } + continue; + } + = + NamedNodeMap attrs =3D n.getAttributes(); + for (int j =3D 0; attrs !=3D null && j < attrs.getLength(); j++) { + Attr a =3D (Attr)attrs.item(j); + String name =3D a.getName(); + if (name.startsWith("xmlns:")) { //$NON-NLS-1$ + String uri =3D a.getValue(); + String prefix =3D name.substring("xmlns:".length()); //$NON-NLS-1$ + map.put(prefix.trim(), uri.trim()); + } + } + = + n =3D n.getParentNode(); + } + + return map; + } finally { + smw.dispose(); + } + } + + /* (non-Javadoc) + * @see com.ibm.sse.editor.extensions.hyperlink.IHyperlinkPartitionRecogn= izer#recognize(org.eclipse.jface.text.IDocument, com.ibm.sse.editor.extensi= ons.hyperlink.IHyperlinkRegion) + */ + public boolean recognize(IDocument document, IHyperlinkRegion region) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(document); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return false; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, region.getOffset()); + + if (n =3D=3D null) return false; + = + return true; + } finally { + smw.dispose(); + } + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPRootHyperlinkPartitioner.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPStylesheetRelLinkHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPStylesheetRelLinkHyperlinkPartitioner.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPStylesheetRelLinkHyperlinkPartitioner.java 2009-0= 9-25 15:01:55 UTC (rev 17747) @@ -0,0 +1,237 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import org.eclipse.jface.text.BadLocationException; +import org.eclipse.jface.text.IDocument; +import org.eclipse.jface.text.IRegion; +import org.eclipse.jface.text.Region; +import org.w3c.dom.Attr; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.Node; +import org.w3c.dom.Text; + +import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlinkPartitio= ner; +import org.jboss.tools.common.text.ext.hyperlink.HyperlinkRegion; +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkPartitionRecogn= izer; +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; +import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; +import org.jboss.tools.common.text.ext.util.Utils; + +/** + * @author Jeremy + */ +public class JSPStylesheetRelLinkHyperlinkPartitioner extends AbstractHype= rlinkPartitioner implements IHyperlinkPartitionRecognizer { + public static final String JSP_STYLESHEET_REL_LINK_PARTITION =3D "org.jbo= ss.tools.common.text.ext.jsp.JSP_STYLESHEET_REL_LINK"; //$NON-NLS-1$ + = + private static final String LINK_TAGNAME =3D "link"; //$NON-NLS-1$ + private static final String REL_ATTRNAME =3D "rel"; //$NON-NLS-1$ + private static final String VALID_REL_ATTRVALUE =3D "stylesheet"; //$NON-= NLS-1$ + private static final String HREF_ATTRNAME =3D "href"; //$NON-NLS-1$ + + private static final String IMPORT_DIRECTIVENAME =3D "@import"; //$NON-NL= S-1$ + private static final String URL_METHODSTART =3D "url("; //$NON-NLS-1$ + private static final String URL_METHODEND =3D ")"; //$NON-NLS-1$ + private static final String URL_METHODEND_2 =3D ";"; //$NON-NLS-1$ + = + /** + * @see com.ibm.sse.editor.hyperlink.AbstractHyperlinkPartitioner#parse(o= rg.eclipse.jface.text.IDocument, com.ibm.sse.editor.extensions.hyperlink.IH= yperlinkRegion) + */ + protected IHyperlinkRegion parse(IDocument document, IHyperlinkRegion sup= erRegion) { + if(superRegion =3D=3D null) return null; + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + smw.init(document); + try { + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + = + Utils.findNodeForOffset(xmlDocument, superRegion.getOffset()); +// if (!recognize(document, superRegion)) return null; + IRegion r =3D getRegion(document, superRegion.getOffset()); + if (r =3D=3D null) return null; + = + String axis =3D getAxis(document, superRegion); + String contentType =3D superRegion.getContentType(); + String type =3D JSP_STYLESHEET_REL_LINK_PARTITION; + int length =3D r.getLength() - (superRegion.getOffset() - r.getOffset()= ); + int offset =3D superRegion.getOffset(); + + IHyperlinkRegion region =3D new HyperlinkRegion(offset, length, axis, c= ontentType, type); + return region; + } finally { + smw.dispose(); + } + } + + /** + * @see com.ibm.sse.editor.extensions.hyperlink.IHyperlinkPartitionRecogn= izer#recognize(org.eclipse.jface.text.IDocument, com.ibm.sse.editor.extensi= ons.hyperlink.IHyperlinkRegion) + */ + public boolean recognize(IDocument document, IHyperlinkRegion region) { + if(region =3D=3D null) return false; + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + smw.init(document); + try { + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return false; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, region.getOffset()); + + Attr attr =3D null; + Node tag =3D null; + Text styleText =3D null; + = + if (n instanceof Attr) { + attr =3D (Attr)n; + tag =3D ((Attr)n).getOwnerElement(); + } else if (n instanceof Element) { + tag =3D n; + } else if (n instanceof Text) { + styleText =3D (Text)n; + } else = + return false; + = + + if (attr !=3D null || tag !=3D null) { + // do recognize link tag + if (!LINK_TAGNAME.equalsIgnoreCase(tag.getNodeName())) = + return false; + = + String linkRel =3D Utils.getAttributeValue(document, tag, REL_ATTRNAME= ); + if (!VALID_REL_ATTRVALUE.equalsIgnoreCase(linkRel)) + return false; + = + return true; + } + = + if (styleText =3D=3D null) return false; + + // do recognize style text + int start =3D Utils.getValueStart(styleText); + int current =3D region.getOffset(); + = + String text =3D styleText.getData(); + if (text =3D=3D null || text.length() =3D=3D 0) return false; + + text =3D text.toLowerCase(); + = + int importStart =3D text.lastIndexOf(IMPORT_DIRECTIVENAME.toLowerCase()= , current - start); + if (importStart =3D=3D -1) + return false; + = + int urlMethodStart =3D text.indexOf(URL_METHODSTART.toLowerCase(), impo= rtStart); + if (urlMethodStart =3D=3D -1) + return false; + = + int urlMethodEnd =3D text.indexOf(URL_METHODEND.toLowerCase(), urlMetho= dStart); + if (urlMethodEnd =3D=3D -1) + return false; + + int urlMethodEnd2 =3D text.indexOf(URL_METHODEND_2.toLowerCase(), urlMe= thodEnd); + if (urlMethodEnd2 =3D=3D -1) + return false; + + if (current < start + urlMethodStart + URL_METHODSTART.length() || + current >=3D start + urlMethodEnd) + return false; + = + return true; + } finally { + smw.dispose(); + } + } + + protected String getAxis(IDocument document, IHyperlinkRegion superRegion= ) { + if (superRegion.getAxis() =3D=3D null || superRegion.getAxis().length() = =3D=3D 0) { + return JSPRootHyperlinkPartitioner.computeAxis(document, superRegion.ge= tOffset()) + "/"; //$NON-NLS-1$ + } + return superRegion.getAxis(); + } + + protected IRegion getRegion (IDocument document, int offset) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + smw.init(document); + smw.init(document); + try { + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, offset); + = + if (n =3D=3D null || !(n instanceof Text || n instanceof Attr)) return = null; + = + String text =3D null; + int bStart =3D 0; + int bEnd =3D 0; + = + if (n instanceof Text) { + int start =3D Utils.getValueStart(n); + int end =3D Utils.getValueEnd(n); + + if (start < 0 || start > offset) return null; + = + text =3D document.get(start, end - start); + bStart =3D offset - start; + bEnd =3D offset - start; + } else if (n instanceof Attr) { + Attr attr =3D (Attr)n; + if (!HREF_ATTRNAME.equalsIgnoreCase(attr.getName())) return null; + int start =3D Utils.getValueStart(n); + int end =3D Utils.getValueEnd(n); + if(start < 0) return null; + = + text =3D document.get(start, end - start); + bStart =3D offset - start; + bEnd =3D offset - start; + } + StringBuffer sb =3D new StringBuffer(text); + //find start of bean property + while (bStart >=3D 0) { = + if (!Character.isJavaIdentifierPart(sb.charAt(bStart)) && + sb.charAt(bStart) !=3D '\\' && sb.charAt(bStart) !=3D '/' && + sb.charAt(bStart) !=3D ':' && sb.charAt(bStart) !=3D '-' && + sb.charAt(bStart) !=3D '.' && sb.charAt(bStart) !=3D '_' && + sb.charAt(bStart) !=3D '%' && sb.charAt(bStart) !=3D '?' && + sb.charAt(bStart) !=3D '&' && sb.charAt(bStart) !=3D '=3D') { + bStart++; + break; + } + = + if (bStart =3D=3D 0) break; + bStart--; + } + // find end of bean property + while (bEnd >=3D 0 && bEnd < sb.length()) { = + if (!Character.isJavaIdentifierPart(sb.charAt(bEnd)) && + sb.charAt(bEnd) !=3D '\\' && sb.charAt(bEnd) !=3D '/' && + sb.charAt(bEnd) !=3D ':' && sb.charAt(bEnd) !=3D '-' && + sb.charAt(bEnd) !=3D '.' && sb.charAt(bEnd) !=3D '_' && + sb.charAt(bEnd) !=3D '%' && sb.charAt(bEnd) !=3D '?' && + sb.charAt(bEnd) !=3D '&' && sb.charAt(bEnd) !=3D '=3D') { + break; + } + bEnd++; + } + = + final int propStart =3D bStart + Utils.getValueStart(n); + final int propLength =3D bEnd - bStart; + = + if (propStart > offset || propStart + propLength < offset) return null; + return new Region(propStart,propLength); + } catch (BadLocationException x) { + //ignore + return null; + } finally { + smw.dispose(); + } + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPStylesheetRelLinkHyperlinkPartit= ioner.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPTagAttributeHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPTagAttributeHyperlinkPartitioner.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPTagAttributeHyperlinkPartitioner.java 2009-09-25 = 15:01:55 UTC (rev 17747) @@ -0,0 +1,94 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import org.eclipse.jface.text.IDocument; +import org.w3c.dom.Attr; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.Node; + +import org.jboss.tools.common.text.ext.hyperlink.HyperlinkRegion; +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkPartitionRecogn= izer; +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; +import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; +import org.jboss.tools.common.text.ext.util.Utils; + +/** + * @author Jeremy + */ +public class JSPTagAttributeHyperlinkPartitioner extends JSPElementAttribu= teValueHyperlinkPartitioner implements IHyperlinkPartitionRecognizer { + public static final String JSP_TAG_ATTRIBUTE_PARTITION =3D "org.jboss.too= ls.common.text.ext.jsp.JSP_TAG_ATTRIBUTE"; //$NON-NLS-1$ + = + private static final String JSP_ATTRIBUTE_TAGNAME =3D "jsp:attribute"; //= $NON-NLS-1$ + private static final String JSP_ELEMENT_TAGNAME =3D "jsp:element"; //$NON= -NLS-1$ + + /** + * @see com.ibm.sse.editor.hyperlink.AbstractHyperlinkPartitioner#parse(o= rg.eclipse.jface.text.IDocument, com.ibm.sse.editor.extensions.hyperlink.IH= yperlinkRegion) + */ + protected IHyperlinkRegion parse(IDocument document, IHyperlinkRegion sup= erRegion) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + smw.init(document); + try { + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, superRegion.getOffset()= ); + if (n instanceof Attr) n =3D ((Attr)n).getOwnerElement(); + if (!(n instanceof Element)) return null; + + int start =3D Utils.getValueStart(n); + int end =3D Utils.getValueEnd(n); + if(start < 0) return null; + + String axis =3D getAxis(document, superRegion); + String contentType =3D superRegion.getContentType(); + String type =3D JSP_TAG_ATTRIBUTE_PARTITION; + int length =3D end - start - (superRegion.getOffset() - start); + int offset =3D superRegion.getOffset(); + + IHyperlinkRegion region =3D new HyperlinkRegion(offset, length, axis, c= ontentType, type); + return region; + } finally { + smw.dispose(); + } + } + + /** + * @see com.ibm.sse.editor.extensions.hyperlink.IHyperlinkPartitionRecogn= izer#recognize(org.eclipse.jface.text.IDocument, com.ibm.sse.editor.extensi= ons.hyperlink.IHyperlinkRegion) + */ + public boolean recognize(IDocument document, IHyperlinkRegion region) { + if(region =3D=3D null) return false; + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + smw.init(document); + try { + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return false; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, region.getOffset()); + if (n instanceof Attr) n =3D ((Attr)n).getOwnerElement(); + if (!(n instanceof Element)) return false; + return (JSP_ATTRIBUTE_TAGNAME.equals(n.getNodeName()) && = + !JSP_ELEMENT_TAGNAME.equals(n.getParentNode().getNodeName()) && = + n.getNodeName().indexOf(':') !=3D -1); + } finally { + smw.dispose(); + } + } + + protected String getAxis(IDocument document, IHyperlinkRegion superRegion= ) { + if (superRegion.getAxis() =3D=3D null || superRegion.getAxis().length() = =3D=3D 0) { + return JSPRootHyperlinkPartitioner.computeAxis(document, superRegion.ge= tOffset()) + "/"; //$NON-NLS-1$ + } + return superRegion.getAxis(); + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPTagAttributeHyperlinkPartitioner= .java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPTagAttributeValueHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPTagAttributeValueHyperlinkPartitioner.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPTagAttributeValueHyperlinkPartitioner.java 2009-0= 9-25 15:01:55 UTC (rev 17747) @@ -0,0 +1,30 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import org.eclipse.jface.text.IDocument; + +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkPartitionRecogn= izer; +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; +import org.jboss.tools.common.text.ext.hyperlink.xml.XMLTagAttributeValueH= yperlinkPartitioner; + +/** + * @author Jeremy + */ +public abstract class JSPTagAttributeValueHyperlinkPartitioner extends XML= TagAttributeValueHyperlinkPartitioner implements IHyperlinkPartitionRecogni= zer { + protected String getAxis(IDocument document, IHyperlinkRegion superRegion= ) { + if (superRegion.getAxis() =3D=3D null || superRegion.getAxis().length() = =3D=3D 0) { + return JSPRootHyperlinkPartitioner.computeAxis(document, superRegion.ge= tOffset()) + "/"; //$NON-NLS-1$ + } + return superRegion.getAxis(); + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPTagAttributeValueHyperlinkPartit= ioner.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPTaglibHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPTaglibHyperlink.java (rev= 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPTaglibHyperlink.java 2009-09-25 15:01:55 UTC (rev= 17747) @@ -0,0 +1,160 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import java.text.MessageFormat; + +import org.eclipse.core.resources.IFile; +import org.eclipse.jface.text.IRegion; +import org.eclipse.jface.text.Region; +import org.eclipse.ui.IEditorInput; +import org.eclipse.ui.IEditorPart; +import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMAttr; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel; +import org.jboss.tools.common.model.XModel; +import org.jboss.tools.common.model.XModelObject; +import org.jboss.tools.common.model.util.FindObjectHelper; +import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlink; +import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages; +import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; +import org.jboss.tools.common.text.ext.util.Utils; +import org.jboss.tools.jst.web.tld.ITaglibMapping; +import org.jboss.tools.jst.web.tld.IWebProject; +import org.jboss.tools.jst.web.tld.WebProjectFactory; +import org.w3c.dom.Attr; +import org.w3c.dom.Document; +import org.w3c.dom.Node; + +/** + * @author Jeremy + */ +public class JSPTaglibHyperlink extends AbstractHyperlink { + = + /** = + * @see com.ibm.sse.editor.AbstractHyperlink#doHyperlink(org.eclipse.jfac= e.text.IRegion) + */ + protected void doHyperlink(IRegion region) { + XModelObject object =3D getFilename(region); + if(object !=3D null) = + FindObjectHelper.findModelObject(object, FindObjectHelper.IN_EDITOR_ONL= Y); + else { + openFileFailed(); + } + + } + = + protected final String JAR_FILE_PROTOCOL =3D "jar:file:/";//$NON-NLS-1$ + = + /* (non-Javadoc) + * @see com.ibm.sse.editor.hyperlink.AbstractHyperlink#openFileInEdito= r(java.lang.String) + */ + protected void openFileInEditor(String fileString) { + if (fileString.startsWith(JAR_FILE_PROTOCOL)) { + fileString =3D fileString.substring(JAR_FILE_PROTOCOL.length()); + IEditorInput jarEditorInput =3D createEditorInput(fileString); + IEditorPart part =3D openFileInEditor(jarEditorInput, fileString); + if (part =3D=3D null) openFileFailed(); + } else { + super.openFileInEditor(fileString); = + } + } + = + private XModelObject getFilename(IRegion region) { + IFile file =3D getFile(); + XModel xModel =3D getXModel(file); + if (xModel =3D=3D null) return null; + + String uri =3D getTaglibUri(region); + if (uri =3D=3D null) return null; + = + IWebProject wp =3D WebProjectFactory.instance.getWebProject(xModel); + if (wp =3D=3D null) return null; + = + ITaglibMapping tm =3D wp.getTaglibMapping(); + if (tm =3D=3D null) return null; + = + return tm.getTaglibObject(uri); + } + = + private String getTaglibUri(IRegion region) { + IStructuredModel model =3D null; + try { = + model =3D getModelManager().getExistingModelForRead(getDocument()); + IDOMDocument xmlDocument =3D (model instanceof IDOMModel) ? ((IDOMModel= ) model).getDocument() : null; + if (xmlDocument =3D=3D null) return null; + + Node n =3D Utils.findNodeForOffset(xmlDocument, region.getOffset()); + if (n instanceof IDOMAttr) n =3D ((IDOMAttr)n).getOwnerElement(); + if (!(n instanceof IDOMElement)) return null; + if(!"jsp:directive.taglib".equals(n.getNodeName())) return null; //$NON= -NLS-1$ + + IDOMElement taglib =3D (IDOMElement)n; + = + String uri =3D taglib.getAttribute("uri"); //$NON-NLS-1$ + if (uri =3D=3D null || uri.trim().length() =3D=3D 0) return null; + = + return uri; + } finally { + if (model !=3D null) model.releaseFromRead(); + } + } + + IRegion fLastRegion =3D null; + /* + * (non-Javadoc) + * = + * @seecom.ibm.sse.editor.AbstractHyperlink#doGetHyperlinkRegion(int) + */ + protected IRegion doGetHyperlinkRegion(int offset) { + fLastRegion =3D getRegion(offset); + return fLastRegion; + } + = + private IRegion getRegion(int offset) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + smw.init(getDocument()); + try { = + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, offset); + if (n instanceof Attr) n =3D ((Attr)n).getOwnerElement(); + if (!(n instanceof IDOMElement)) return null; + if (!"jsp:directive.taglib".equals(n.getNodeName())) return null; //$NO= N-NLS-1$ + + IDOMElement taglib =3D (IDOMElement)n; + = + final int taglibLength =3D taglib.getEndOffset() - taglib.getStartOffse= t(); + final int taglibOffset =3D taglib.getStartOffset(); + = + return new Region(taglibOffset,taglibLength); + } finally { + smw.dispose(); + } + } + = + /* + * (non-Javadoc) + * = + * @see IHyperlink#getHyperlinkText() + */ + public String getHyperlinkText() { + String uri =3D getTaglibUri(fLastRegion); + if (uri =3D=3D null) + return MessageFormat.format(Messages.OpenA, Messages.TagLibrary); + = + return MessageFormat.format(Messages.OpenTagLibraryForUri, uri); + } + +} \ No newline at end of file Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPTaglibHyperlink.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPTaglibHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPTaglibHyperlinkPartitioner.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPTaglibHyperlinkPartitioner.java 2009-09-25 15:01:= 55 UTC (rev 17747) @@ -0,0 +1,91 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import org.eclipse.jface.text.IDocument; +import org.w3c.dom.Attr; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.Node; + +import org.jboss.tools.common.text.ext.hyperlink.HyperlinkRegion; +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkPartitionRecogn= izer; +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; +import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; +import org.jboss.tools.common.text.ext.util.Utils; + +/** + * @author Jeremy + */ +public class JSPTaglibHyperlinkPartitioner extends JSPElementAttributeValu= eHyperlinkPartitioner implements IHyperlinkPartitionRecognizer { + public static final String JSP_TAGLIB_PARTITION =3D "org.jboss.tools.comm= on.text.ext.jsp.JSP_TAGLIB"; //$NON-NLS-1$ + + /** + * @see com.ibm.sse.editor.hyperlink.AbstractHyperlinkPartitioner#parse(o= rg.eclipse.jface.text.IDocument, com.ibm.sse.editor.extensions.hyperlink.IH= yperlinkRegion) + */ + protected IHyperlinkRegion parse(IDocument document, IHyperlinkRegion sup= erRegion) { + if(document =3D=3D null || superRegion =3D=3D null) return null; + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + smw.init(document); + try { + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, superRegion.getOffset()= ); + if (n instanceof Attr) n =3D ((Attr)n).getOwnerElement(); + if (!(n instanceof Element)) return null; + if (!"jsp:directive.taglib".equals(n.getNodeName())) return null; //$NO= N-NLS-1$ + + int start =3D Utils.getValueStart(n); + int end =3D Utils.getValueEnd(n); + if(start < 0) return null; + = + String axis =3D getAxis(document, superRegion); + String contentType =3D superRegion.getContentType(); + String type =3D JSP_TAGLIB_PARTITION; + int length =3D end - start - (superRegion.getOffset() - start); + int offset =3D superRegion.getOffset(); + = + IHyperlinkRegion region =3D new HyperlinkRegion(offset, length, axis, c= ontentType, type); + return region; + } finally { + smw.dispose(); + } + } + = + + /** + * @see com.ibm.sse.editor.extensions.hyperlink.IHyperlinkPartitionRecogn= izer#recognize(org.eclipse.jface.text.IDocument, com.ibm.sse.editor.extensi= ons.hyperlink.IHyperlinkRegion) + */ + public boolean recognize(IDocument document, IHyperlinkRegion region) { + if(document =3D=3D null || region =3D=3D null) return false; + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + smw.init(document); + try { + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return false; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, region.getOffset()); + if (n instanceof Attr) n =3D ((Attr)n).getOwnerElement(); + if (!(n instanceof Element)) return false; + return ("jsp:directive.taglib".equals(n.getNodeName())); //$NON-NLS-1$ + } finally { + smw.dispose(); + } + } + + protected String getAxis(IDocument document, IHyperlinkRegion superRegion= ) { + if (superRegion.getAxis() =3D=3D null || superRegion.getAxis().length() = =3D=3D 0) { + return JSPRootHyperlinkPartitioner.computeAxis(document, superRegion.ge= tOffset()) + "/"; //$NON-NLS-1$ + } + return superRegion.getAxis(); + } +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPTaglibHyperlinkPartitioner.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPTextHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPTextHyperlinkPartitioner.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPTextHyperlinkPartitioner.java 2009-09-25 15:01:55= UTC (rev 17747) @@ -0,0 +1,29 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import org.eclipse.jface.text.IDocument; + +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; +import org.jboss.tools.common.text.ext.hyperlink.xml.XMLTextHyperlinkParti= tioner; + +/** + * @author Jeremy + */ +public class JSPTextHyperlinkPartitioner extends XMLTextHyperlinkPartition= er { + protected String getAxis(IDocument document, IHyperlinkRegion superRegion= ) { + if (superRegion.getAxis() =3D=3D null || superRegion.getAxis().length() = =3D=3D 0) { + return JSPRootHyperlinkPartitioner.computeAxis(document, superRegion.ge= tOffset()) + "/"; //$NON-NLS-1$ + } + return superRegion.getAxis(); + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPTextHyperlinkPartitioner.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPXmlNsHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPXmlNsHyperlink.java (rev = 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPXmlNsHyperlink.java 2009-09-25 15:01:55 UTC (rev = 17747) @@ -0,0 +1,174 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import java.text.MessageFormat; + +import org.eclipse.core.resources.IFile; +import org.eclipse.jface.text.IRegion; +import org.eclipse.jface.text.Region; +import org.eclipse.ui.IEditorInput; +import org.eclipse.ui.IEditorPart; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMAttr; +import org.jboss.tools.common.model.XModel; +import org.jboss.tools.common.model.XModelObject; +import org.jboss.tools.common.model.util.FindObjectHelper; +import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlink; +import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages; +import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; +import org.jboss.tools.common.text.ext.util.Utils; +import org.jboss.tools.jst.web.tld.ITaglibMapping; +import org.jboss.tools.jst.web.tld.IWebProject; +import org.jboss.tools.jst.web.tld.WebProjectFactory; +import org.w3c.dom.Attr; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.Node; + +/** + * @author Jeremy + */ +public class JSPXmlNsHyperlink extends AbstractHyperlink { + = + /** = + * @see com.ibm.sse.editor.AbstractHyperlink#doHyperlink(org.eclipse.jfac= e.text.IRegion) + */ + protected void doHyperlink(IRegion region) { + XModelObject object =3D getFilename(region); + if(object !=3D null) FindObjectHelper.findModelObject(object, FindObject= Helper.IN_EDITOR_ONLY); + else { + openFileFailed(); + } + } + = + protected final String JAR_FILE_PROTOCOL =3D "jar:file:/";//$NON-NLS-1$ + = + /** + * @see com.ibm.sse.editor.hyperlink.AbstractHyperlink#openFileInEdito= r(java.lang.String) + */ + protected void openFileInEditor(String fileString) { + if (fileString.startsWith(JAR_FILE_PROTOCOL)) { + fileString =3D fileString.substring(JAR_FILE_PROTOCOL.length()); + IEditorInput jarEditorInput =3D createEditorInput(fileString); + IEditorPart part =3D openFileInEditor(jarEditorInput, fileStrin= g); + if (part =3D=3D null) openFileFailed(); + } else { + super.openFileInEditor(fileString); = + } + } + = + private XModelObject getFilename(IRegion region) { + IFile file =3D getFile(); + XModel xModel =3D getXModel(file); + if (xModel =3D=3D null) return null; + + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(getDocument()); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + + Node n =3D Utils.findNodeForOffset(xmlDocument, region.getOffset()); + if (!(n instanceof IDOMAttr)) return null; = + Attr xmlnsAttr =3D (Attr)n; + if (xmlnsAttr.getName() =3D=3D null || !xmlnsAttr.getName().startsWith(= "xmlns:")) return null; //$NON-NLS-1$ + Element rootElem =3D (Element)xmlnsAttr.getOwnerElement(); + if (!(rootElem.getNodeName().equals("jsp:root") || rootElem.getNodeName= ().equalsIgnoreCase("html"))) return null; //$NON-NLS-1$ //$NON-NLS-2$ + + String uri =3D xmlnsAttr.getValue(); + if (uri =3D=3D null || uri.trim().length() =3D=3D 0) return null; + = + IWebProject wp =3D WebProjectFactory.instance.getWebProject(xModel); + if (wp =3D=3D null) return null; + = + ITaglibMapping tm =3D wp.getTaglibMapping(); + if (tm =3D=3D null) return null; + return tm.getTaglibObject(uri); + } finally { + smw.dispose(); + } + } + + private String getUri(IRegion region) { + IFile file =3D getFile(); + XModel xModel =3D getXModel(file); + if (xModel =3D=3D null) return null; + + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(getDocument()); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + + Node n =3D Utils.findNodeForOffset(xmlDocument, region.getOffset()); + if (!(n instanceof IDOMAttr)) return null; = + Attr xmlnsAttr =3D (Attr)n; + if (xmlnsAttr.getName() =3D=3D null || !xmlnsAttr.getName().startsWith(= "xmlns:")) return null; //$NON-NLS-1$ + Element rootElem =3D (Element)xmlnsAttr.getOwnerElement(); + if (!(rootElem.getNodeName().equals("jsp:root") || rootElem.getNodeName= ().equalsIgnoreCase("html"))) return null; //$NON-NLS-1$ //$NON-NLS-2$ + + String uri =3D xmlnsAttr.getValue(); + if (uri =3D=3D null || uri.trim().length() =3D=3D 0) return null; + = + return uri; + } finally { + smw.dispose(); + } + } + + + IRegion fLastRegion =3D null; + /** = + * @seecom.ibm.sse.editor.AbstractHyperlink#doGetHyperlinkRegion(int) + */ + protected IRegion doGetHyperlinkRegion(int offset) { + fLastRegion =3D getRegion(offset); + return fLastRegion; + } + = + private IRegion getRegion(int offset) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(getDocument()); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + = + = + Node n =3D Utils.findNodeForOffset(xmlDocument, offset); + if (!(n instanceof IDOMAttr)) return null; = + IDOMAttr xmlnsAttr =3D (IDOMAttr)n; + if (xmlnsAttr.getName() =3D=3D null || !xmlnsAttr.getName().startsWith(= "xmlns:")) return null; //$NON-NLS-1$ + Element rootElem =3D xmlnsAttr.getOwnerElement(); + if (!(rootElem.getNodeName().equals("jsp:root") || rootElem.getNodeName= ().equalsIgnoreCase("html"))) return null; //$NON-NLS-1$ //$NON-NLS-2$ + + final int taglibLength =3D xmlnsAttr.getValueRegionText().length(); + final int taglibOffset =3D xmlnsAttr.getValueRegionStartOffset(); + + return new Region(taglibOffset,taglibLength); + } finally { + smw.dispose(); + } + + } + + /* + * (non-Javadoc) + * = + * @see IHyperlink#getHyperlinkText() + */ + public String getHyperlinkText() { + String uri =3D getUri(fLastRegion); + if (uri =3D=3D null) + return MessageFormat.format(Messages.NotFound, "URI"); //$NON-NLS-1$ + = + return MessageFormat.format(Messages.Open, uri); + } +} \ No newline at end of file Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPXmlNsHyperlink.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/hyperlink/jsp/JSPXmlNsHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPXmlNsHyperlinkPartitioner.java = (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPXmlNsHyperlinkPartitioner.java 2009-09-25 15:01:5= 5 UTC (rev 17747) @@ -0,0 +1,92 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.hyperlink.jsp; + +import org.eclipse.jface.text.IDocument; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMAttr; +import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlinkPartitio= ner; +import org.jboss.tools.common.text.ext.hyperlink.HyperlinkRegion; +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkPartitionRecogn= izer; +import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; +import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; +import org.jboss.tools.common.text.ext.util.Utils; +import org.w3c.dom.Attr; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.Node; + +/** + * @author Jeremy + */ +public class JSPXmlNsHyperlinkPartitioner extends AbstractHyperlinkPartiti= oner implements IHyperlinkPartitionRecognizer { + public static final String JSP_XMLNS_PARTITION =3D "org.jboss.tools.commo= n.text.ext.jsp.JSP_XMLNS"; //$NON-NLS-1$ + + /** + * @see com.ibm.sse.editor.hyperlink.AbstractHyperlinkPartitioner#parse(o= rg.eclipse.jface.text.IDocument, com.ibm.sse.editor.extensions.hyperlink.IH= yperlinkRegion) + */ + protected IHyperlinkRegion parse(IDocument document, IHyperlinkRegion sup= erRegion) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(document); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return null; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, superRegion.getOffset()= ); + if (!(n instanceof IDOMAttr)) return null; = + IDOMAttr xmlnsAttr =3D (IDOMAttr)n; + if (xmlnsAttr.getName() =3D=3D null || !xmlnsAttr.getName().startsWith(= "xmlns:")) return null; //$NON-NLS-1$ + Element rootElem =3D xmlnsAttr.getOwnerElement(); + if (!(rootElem.getNodeName().equals("jsp:root") || rootElem.getNodeName= ().equalsIgnoreCase("html"))) return null; //$NON-NLS-1$ //$NON-NLS-2$ + String xmlns =3D xmlnsAttr.getValueRegionText(); + String axis =3D getAxis(document, superRegion); + String contentType =3D superRegion.getContentType(); + String type =3D JSP_XMLNS_PARTITION; + int length =3D xmlns.length() - (superRegion.getOffset() - xmlnsAttr.ge= tValueRegionStartOffset()); + int offset =3D superRegion.getOffset(); + + IHyperlinkRegion region =3D new HyperlinkRegion(offset, length, axis, c= ontentType, type); + return region; + } finally { + smw.dispose(); + } + } + = + + /** + * @see com.ibm.sse.editor.extensions.hyperlink.IHyperlinkPartitionRecogn= izer#recognize(org.eclipse.jface.text.IDocument, com.ibm.sse.editor.extensi= ons.hyperlink.IHyperlinkRegion) + */ + public boolean recognize(IDocument document, IHyperlinkRegion region) { + StructuredModelWrapper smw =3D new StructuredModelWrapper(); + try { + smw.init(document); + Document xmlDocument =3D smw.getDocument(); + if (xmlDocument =3D=3D null) return false; + = + Node n =3D Utils.findNodeForOffset(xmlDocument, region.getOffset()); + if (!(n instanceof Attr)) return false; = + Attr xmlnsAttr =3D (Attr)n; + if (xmlnsAttr.getName() =3D=3D null || !xmlnsAttr.getName().startsWith(= "xmlns:")) return false; //$NON-NLS-1$ + Element rootElem =3D xmlnsAttr.getOwnerElement(); + if (!(rootElem.getNodeName().equals("jsp:root") || rootElem.getNodeName= ().equalsIgnoreCase("html"))) return false; //$NON-NLS-1$ //$NON-NLS-2$ + return true; + } finally { + smw.dispose(); + } + } + + = + protected String getAxis(IDocument document, IHyperlinkRegion superRegion= ) { + if (superRegion.getAxis() =3D=3D null || superRegion.getAxis().length() = =3D=3D 0) { + return JSPRootHyperlinkPartitioner.computeAxis(document, superRegion.ge= tOffset()) + "/"; //$NON-NLS-1$ + } + return superRegion.getAxis(); + } +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/hyperlink/jsp/JSPXmlNsHyperlinkPartitioner.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/util/CSSTextScanner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/util/CSSTextScanner.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/util/CSSTextScanner.java 2009-09-25 15:01:55 UTC (rev 17747) @@ -0,0 +1,213 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.util; + +import java.io.InputStream; +import java.io.Reader; + +import org.eclipse.jface.text.rules.ICharacterScanner; +import org.eclipse.jface.text.rules.IToken; +import org.jboss.tools.common.text.ext.util.TextScanner; + +/** + * @author Jeremy + * + */ +public class CSSTextScanner extends TextScanner { + public static final String CSS_CLASS_NAME =3D "___css_class_name"; //$NON= -NLS-1$ + public static final String CSS_CLASS_NAME_SEPARATOR =3D "___css_class_nam= e_separator"; //$NON-NLS-1$ + public static final String CSS_CLASS_BODY =3D "___css_class_body"; //$NON= -NLS-1$ + public static final String CSS_CLASS_COMMENT =3D "___css_class_comment"; = //$NON-NLS-1$ + = + private static final int STATE_START =3D 0; + private static final int STATE_NAME =3D 1; + private static final int STATE_NAME_SEPARATOR =3D 2; + private static final int STATE_BODY =3D 3; + private static final int STATE_COMMENT =3D 4; + private static final int STATE_END =3D 5; + + private int state; + private int savedForCommentState; + = + /** + * @param stream + */ + public CSSTextScanner(InputStream stream) { + super(stream); + this.state =3D STATE_START; + } + /** + * @param reader + */ + public CSSTextScanner(Reader reader) { + super(reader); + this.state =3D STATE_START; + } + + private void setState(int newState) { + if (this.state !=3D STATE_COMMENT) + this.savedForCommentState =3D this.state; + this.state =3D newState; + } + = + /* (non-Javadoc) + * @see org.jboss.tools.jsf.text.ext.util.TextScanner#nextToken() + */ + public IToken nextToken() { + offset +=3D length; + switch (state) { + case STATE_START: + case STATE_NAME_SEPARATOR: + return nextNameSeparatorToken(); + case STATE_NAME: + return nextNameToken(); + case STATE_BODY: + return nextBodyToken(); + case STATE_COMMENT: + return nextCommentToken(); + } + return nextEndToken(); + } + = + private IToken nextNameToken() { + // Check first one char in the stream + int ch =3D read(); + if (ch =3D=3D ICharacterScanner.EOF) { + return getToken(CSS_CLASS_NAME); + } + if (!NMTOKEN_DETECTOR.isWordStart((char)ch)) { + // Emulate END of text + clearText(); + return getToken(CSS_CLASS_NAME); + } + + ch =3D read(); + int readsCount =3D 0; + while (ch !=3D ICharacterScanner.EOF) { + if (!NMTOKEN_DETECTOR.isWordPart((char)ch)) { + unread(); + state =3D STATE_NAME_SEPARATOR; + return getToken(CSS_CLASS_NAME); + } + readsCount++; + ch =3D read(); + } + return getToken(CSS_CLASS_NAME); + } + + private IToken nextNameSeparatorToken() { + int count =3D skipWhitespaceToken(); + if (count > 0) { + state =3D STATE_NAME_SEPARATOR; + return getToken(null); + } + int ch =3D read(); + int readsCount =3D 0; + while (ch !=3D ICharacterScanner.EOF) { + if (NMTOKEN_DETECTOR.isWordStart((char)ch)) { + unread(); + state =3D STATE_NAME; + return (readsCount > 0 ? getToken(CSS_CLASS_NAME_SEPARATOR) : nextName= Token()); + } + if (ch =3D=3D '{') { + unread(); + state =3D STATE_BODY; + return (readsCount > 0 ? getToken(CSS_CLASS_NAME_SEPARATOR) : nextBody= Token()); + } + if (ch =3D=3D '/') { + ch =3D read(); + if (ch =3D=3D ICharacterScanner.EOF) { + break; = + } + if (ch =3D=3D '*') { + // Comment openning + unread(); // Unread '*'-char + unread(); // Unread '/'-char + setState(STATE_COMMENT); + if (readsCount > 0) { + return getToken(CSS_CLASS_NAME_SEPARATOR); = + } else { + return nextCommentToken(); + } + } + // Broken file ??? Emulate END of text + clearText(); + return getToken(CSS_CLASS_NAME_SEPARATOR); + } + readsCount++; + ch =3D read(); + } + state =3D STATE_END; + return getToken(CSS_CLASS_NAME_SEPARATOR); + } + + private IToken nextBodyToken() { + int level =3D 0; + int ch =3D read(); + while (ch !=3D ICharacterScanner.EOF) { + if (ch =3D=3D '{') { + level++; + } else if (ch =3D=3D '}') { + level--; + if (level <=3D 0) { + state =3D STATE_START; + return getToken(CSS_CLASS_BODY); + } + } + if (ch =3D=3D '/') { + ch =3D read(); + if (ch =3D=3D ICharacterScanner.EOF) { + break; = + } + if (ch =3D=3D '*') { + // Comment openning + unread(); // Unread '*'-char + unread(); // Unread '/'-char + setState(STATE_COMMENT); + return getToken(CSS_CLASS_BODY); + } + // Broken file ??? Emulate END of text + clearText(); + return getToken(CSS_CLASS_BODY); + } + ch =3D read(); + } + state =3D STATE_END; + return getToken(CSS_CLASS_BODY); + } + = + private IToken nextCommentToken() { + int ch =3D read(); + while (ch !=3D ICharacterScanner.EOF) { + if (ch =3D=3D '*') { + ch =3D read(); + if (ch =3D=3D ICharacterScanner.EOF) break; = + if (ch =3D=3D '/') { + // Comment closing + setState(savedForCommentState); + return getToken(CSS_CLASS_COMMENT); + } + unread(); // Unread last char = + } + ch =3D read(); + } + setState(savedForCommentState); + return getToken(CSS_CLASS_COMMENT); + } + = + private IToken nextEndToken () { + state =3D STATE_END; + // Emulate END of text + clearText(); + return getToken(null); + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/util/CSSTextScanner.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/j= st/text/ext/util/TaglibManagerWrapper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/util/TaglibManagerWrapper.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/util/TaglibManagerWrapper.java 2009-09-25 15:01:55 UTC (rev 17747) @@ -0,0 +1,61 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.text.ext.util; + +import java.util.List; + +import org.eclipse.jface.text.IDocument; +import org.eclipse.jst.jsp.core.internal.contentmodel.TaglibController; +import org.eclipse.jst.jsp.core.internal.contentmodel.tld.TLDCMDocumentMan= ager; +import org.eclipse.jst.jsp.core.internal.contentmodel.tld.TaglibTracker; + +public class TaglibManagerWrapper { + TLDCMDocumentManager manager; + List trackers; + + public TaglibManagerWrapper() {} + = + public void init(IDocument document, int offset) { + manager =3D TaglibController.getTLDCMDocumentManager(document); + if(exists()) { + trackers =3D manager.getCMDocumentTrackers(offset); + } + } + = + public boolean exists() { + return manager !=3D null; + } + = + public String getUri(String prefix) { + for (int i =3D 0; i < trackers.size(); i++) { + TaglibTracker tt =3D (TaglibTracker)trackers.get(i); + if (prefix.equals(tt.getPrefix())) { + return tt.getURI(); + } + } + return null; + } + + public String getPrefix(String uri) { + for (int i =3D 0; i < trackers.size(); i++) { + TaglibTracker tt =3D (TaglibTracker)trackers.get(i); + if (uri.equals(tt.getURI())) { + return tt.getPrefix(); + } + } + return null; + } + + public String getCorePrefix() { + return getPrefix("http://java.sun.com/jsf/core"); //$NON-NLS-1$ + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org= /jboss/tools/jst/text/ext/util/TaglibManagerWrapper.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============7795737015283084047==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 11:07:07 2009 Content-Type: multipart/mixed; boundary="===============4260483568376820337==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17748 - trunk/jsf/features/org.jboss.tools.richfaces.feature. Date: Fri, 25 Sep 2009 11:07:07 -0400 Message-ID: <200909251507.n8PF77dI001499@svn01.web.mwc.hst.phx2.redhat.com> --===============4260483568376820337== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 11:07:07 -0400 (Fri, 25 Sep 2009) New Revision: 17748 Modified: trunk/jsf/features/org.jboss.tools.richfaces.feature/feature.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4950 Modified: trunk/jsf/features/org.jboss.tools.richfaces.feature/feature.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/features/org.jboss.tools.richfaces.feature/feature.xml 2009-0= 9-25 15:01:55 UTC (rev 17747) +++ trunk/jsf/features/org.jboss.tools.richfaces.feature/feature.xml 2009-0= 9-25 15:07:07 UTC (rev 17748) @@ -167,6 +167,13 @@ unpack=3D"false"/> = + + --===============7671697603730219958== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 11:12:15 -0400 (Fri, 25 Sep 2009) New Revision: 17749 Modified: trunk/seam/plugins/org.jboss.tools.seam.text.ext/META-INF/MANIFEST.MF trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/sea= m/text/ext/hyperlink/SeamBeanHyperlinkPartitioner.java trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/sea= m/text/ext/hyperlink/SeamViewHyperlinkPartitioner.java Log: https://jira.jboss.org/jira/browse/JBIDE-4950 Modified: trunk/seam/plugins/org.jboss.tools.seam.text.ext/META-INF/MANIFES= T.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.text.ext/META-INF/MANIFEST.MF 2= 009-09-25 15:07:07 UTC (rev 17748) +++ trunk/seam/plugins/org.jboss.tools.seam.text.ext/META-INF/MANIFEST.MF 2= 009-09-25 15:12:15 UTC (rev 17749) @@ -22,6 +22,7 @@ org.jboss.tools.common.model, org.jboss.tools.common.el.core, org.jboss.tools.common.text.ext, + org.jboss.tools.jst.text.ext, org.jboss.tools.jst.web, org.jboss.tools.jsf, org.jboss.tools.seam.core, Modified: trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/to= ols/seam/text/ext/hyperlink/SeamBeanHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/se= am/text/ext/hyperlink/SeamBeanHyperlinkPartitioner.java 2009-09-25 15:07:07= UTC (rev 17748) +++ trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/se= am/text/ext/hyperlink/SeamBeanHyperlinkPartitioner.java 2009-09-25 15:12:15= UTC (rev 17749) @@ -35,7 +35,7 @@ import org.jboss.tools.common.text.ext.hyperlink.IHyperLinkPartitionPriori= ty; import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkPartitionRecogn= izer; import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPRootHyperlinkParti= tioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPRootHyperlinkPartitio= ner; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.Utils; import org.jboss.tools.seam.core.ISeamContextVariable; Modified: trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/to= ols/seam/text/ext/hyperlink/SeamViewHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/se= am/text/ext/hyperlink/SeamViewHyperlinkPartitioner.java 2009-09-25 15:07:07= UTC (rev 17748) +++ trunk/seam/plugins/org.jboss.tools.seam.text.ext/src/org/jboss/tools/se= am/text/ext/hyperlink/SeamViewHyperlinkPartitioner.java 2009-09-25 15:12:15= UTC (rev 17749) @@ -16,7 +16,7 @@ import org.eclipse.core.runtime.CoreException; import org.eclipse.jface.text.IDocument; import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPLinkHyperlinkParti= tioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPLinkHyperlinkPartitio= ner; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.seam.internal.core.SeamProject; import org.jboss.tools.seam.text.ext.SeamExtPlugin; --===============7671697603730219958==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 11:15:50 2009 Content-Type: multipart/mixed; boundary="===============4059986602069337021==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17750 - trunk/seam/tests/org.jboss.tools.seam.ui.test/META-INF. Date: Fri, 25 Sep 2009 11:15:50 -0400 Message-ID: <200909251515.n8PFFoCD003669@svn01.web.mwc.hst.phx2.redhat.com> --===============4059986602069337021== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 11:15:50 -0400 (Fri, 25 Sep 2009) New Revision: 17750 Modified: trunk/seam/tests/org.jboss.tools.seam.ui.test/META-INF/MANIFEST.MF Log: https://jira.jboss.org/jira/browse/JBIDE-4950 Modified: trunk/seam/tests/org.jboss.tools.seam.ui.test/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.ui.test/META-INF/MANIFEST.MF 2009= -09-25 15:12:15 UTC (rev 17749) +++ trunk/seam/tests/org.jboss.tools.seam.ui.test/META-INF/MANIFEST.MF 2009= -09-25 15:15:50 UTC (rev 17750) @@ -25,6 +25,7 @@ org.eclipse.wst.sse.core, org.eclipse.wst.sse.ui, org.jboss.tools.common.text.ext, + org.jboss.tools.jst.text.ext, org.jboss.tools.seam.text.ext, org.eclipse.jface.text, org.eclipse.wst.web.ui, --===============4059986602069337021==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 11:18:59 2009 Content-Type: multipart/mixed; boundary="===============4052907666953013371==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17751 - in trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets: src/org/jboss/tools/jsf/text/ext/facelets/hyperlink and 1 other directory. Date: Fri, 25 Sep 2009 11:18:59 -0400 Message-ID: <200909251518.n8PFIxWI004024@svn01.web.mwc.hst.phx2.redhat.com> --===============4052907666953013371== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 11:18:59 -0400 (Fri, 25 Sep 2009) New Revision: 17751 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/META-INF/MANIFES= T.MF trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/to= ols/jsf/text/ext/facelets/hyperlink/FaceletsAttributeValueWithExprHyperlink= Partitioner.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/to= ols/jsf/text/ext/facelets/hyperlink/FaceletsAttributeValueWithNoExprHyperli= nkPartitioner.java Log: https://jira.jboss.org/jira/browse/JBIDE-4950 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/META-INF/= MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/META-INF/MANIFE= ST.MF 2009-09-25 15:15:50 UTC (rev 17750) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/META-INF/MANIFE= ST.MF 2009-09-25 15:18:59 UTC (rev 17751) @@ -10,6 +10,7 @@ org.eclipse.ui,org.eclipse.core.runtime, org.eclipse.core.resources,org.eclipse.jface.text, org.jboss.tools.common.text.ext, + org.jboss.tools.jst.text.ext, org.jboss.tools.jsf.text.ext Export-Package: org.jboss.tools.jsf.text.ext.facelets, org.jboss.tools.jsf.text.ext.facelets.hyperlink Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/j= boss/tools/jsf/text/ext/facelets/hyperlink/FaceletsAttributeValueWithExprHy= perlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/t= ools/jsf/text/ext/facelets/hyperlink/FaceletsAttributeValueWithExprHyperlin= kPartitioner.java 2009-09-25 15:15:50 UTC (rev 17750) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/t= ools/jsf/text/ext/facelets/hyperlink/FaceletsAttributeValueWithExprHyperlin= kPartitioner.java 2009-09-25 15:18:59 UTC (rev 17751) @@ -14,7 +14,7 @@ = import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; import org.jboss.tools.jsf.text.ext.hyperlink.JSPExprHyperlinkPartitioner; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPElementAttributeVa= lueHyperlinkPartitioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPElementAttributeValue= HyperlinkPartitioner; = public class FaceletsAttributeValueWithExprHyperlinkPartitioner extends JS= PElementAttributeValueHyperlinkPartitioner { public static final String FACELETS_ATTRIBUTE_VALUE_WITH_EXPR_PARTITION = =3D "org.jboss.tools.common.text.ext.jsp.FACELETS_ATTRIBUTE_VALUE_WITH_EXPR= "; //$NON-NLS-1$ Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/j= boss/tools/jsf/text/ext/facelets/hyperlink/FaceletsAttributeValueWithNoExpr= HyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/t= ools/jsf/text/ext/facelets/hyperlink/FaceletsAttributeValueWithNoExprHyperl= inkPartitioner.java 2009-09-25 15:15:50 UTC (rev 17750) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.facelets/src/org/jboss/t= ools/jsf/text/ext/facelets/hyperlink/FaceletsAttributeValueWithNoExprHyperl= inkPartitioner.java 2009-09-25 15:18:59 UTC (rev 17751) @@ -15,7 +15,7 @@ = import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; import org.jboss.tools.jsf.text.ext.hyperlink.JSPExprHyperlinkPartitioner; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPElementAttributeVa= lueHyperlinkPartitioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPElementAttributeValue= HyperlinkPartitioner; = public class FaceletsAttributeValueWithNoExprHyperlinkPartitioner extends = JSPElementAttributeValueHyperlinkPartitioner { public static final String FACELETS_ATTRIBUTE_VALUE_WITH_NO_EXPR_PARTITIO= N =3D "org.jboss.tools.common.text.ext.jsp.FACELETS_ATTRIBUTE_VALUE_WITH_NO= _EXPR"; //$NON-NLS-1$ --===============4052907666953013371==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 11:25:56 2009 Content-Type: multipart/mixed; boundary="===============2417797043685655634==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17752 - in trunk/jsf/plugins/org.jboss.tools.jsf.text.ext: src/org/jboss/tools/jsf/text/ext/hyperlink and 1 other directory. Date: Fri, 25 Sep 2009 11:25:55 -0400 Message-ID: <200909251525.n8PFPtT6005544@svn01.web.mwc.hst.phx2.redhat.com> --===============2417797043685655634== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 11:25:55 -0400 (Fri, 25 Sep 2009) New Revision: 17752 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/META-INF/MANIFEST.MF trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/JSFJSPLinkHyperlinkPartitioner.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/JSPBeanHyperlinkPartitioner.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/JSPBundleHyperlinkPartitioner.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/JSPCSSClassHyperlinkPartitioner.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/JSPConverterHyperlinkPartitioner.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/JSPExprHyperlinkPartitioner.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/JSPForIDHyperlinkPartitioner.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/JSPForwardHyperlinkPartitioner.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/JSPLoadBundleHyperlinkPartitioner.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/JSPNavigationCaseHyperlinkPartitioner.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/JSPValidatorHyperlinkPartitioner.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/JsfJSPTagAttributeHyperlinkPartitioner.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/JsfJSPTagNameHyperlink.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/JsfJSPTagNameHyperlinkPartitioner.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/JsfJSPXmlNsHyperlinkPartitioner.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/JsfTaglibDirectiveHyperlinkPartitioner.java Log: https://jira.jboss.org/jira/browse/JBIDE-4950 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/META-INF/MANIFEST.= MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/META-INF/MANIFEST.MF 200= 9-09-25 15:18:59 UTC (rev 17751) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/META-INF/MANIFEST.MF 200= 9-09-25 15:25:55 UTC (rev 17752) @@ -10,6 +10,7 @@ org.eclipse.ui, org.eclipse.jface.text, org.jboss.tools.common.text.ext, + org.jboss.tools.jst.text.ext, org.jboss.tools.jsf Export-Package: org.jboss.tools.jsf.text.ext, org.jboss.tools.jsf.text.ext.hyperlink Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/JSFJSPLinkHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSFJSPLinkHyperlinkPartitioner.java 2009-09-25 15:18:59 = UTC (rev 17751) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSFJSPLinkHyperlinkPartitioner.java 2009-09-25 15:25:55 = UTC (rev 17752) @@ -18,7 +18,7 @@ import org.jboss.tools.jsf.project.JSFNature; import org.jboss.tools.jsf.text.ext.JSFExtensionsPlugin; import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPLinkHyperlinkParti= tioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPLinkHyperlinkPartitio= ner; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; = public class JSFJSPLinkHyperlinkPartitioner extends JSPLinkHyperlinkPartit= ioner { Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/JSPBeanHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPBeanHyperlinkPartitioner.java 2009-09-25 15:18:59 UTC= (rev 17751) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPBeanHyperlinkPartitioner.java 2009-09-25 15:25:55 UTC= (rev 17752) @@ -28,7 +28,7 @@ import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.Utils; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPRootHyperlinkParti= tioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPRootHyperlinkPartitio= ner; import org.jboss.tools.jsf.text.ext.JSFExtensionsPlugin; import org.jboss.tools.jst.web.project.list.WebPromptingProvider; = Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/JSPBundleHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPBundleHyperlinkPartitioner.java 2009-09-25 15:18:59 U= TC (rev 17751) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPBundleHyperlinkPartitioner.java 2009-09-25 15:25:55 U= TC (rev 17752) @@ -29,7 +29,7 @@ import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.TaglibManagerWrapper; import org.jboss.tools.common.text.ext.util.Utils; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPRootHyperlinkParti= tioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPRootHyperlinkPartitio= ner; import org.jboss.tools.jsf.text.ext.JSFExtensionsPlugin; = /** Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/JSPCSSClassHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPCSSClassHyperlinkPartitioner.java 2009-09-25 15:18:59= UTC (rev 17751) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPCSSClassHyperlinkPartitioner.java 2009-09-25 15:25:55= UTC (rev 17752) @@ -21,7 +21,7 @@ import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.Utils; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPRootHyperlinkParti= tioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPRootHyperlinkPartitio= ner; import org.jboss.tools.jsf.text.ext.JSFExtensionsPlugin; = /** Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/JSPConverterHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPConverterHyperlinkPartitioner.java 2009-09-25 15:18:5= 9 UTC (rev 17751) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPConverterHyperlinkPartitioner.java 2009-09-25 15:25:5= 5 UTC (rev 17752) @@ -21,7 +21,7 @@ import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.Utils; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPRootHyperlinkParti= tioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPRootHyperlinkPartitio= ner; import org.jboss.tools.jsf.text.ext.JSFExtensionsPlugin; = /** Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/JSPExprHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPExprHyperlinkPartitioner.java 2009-09-25 15:18:59 UTC= (rev 17751) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPExprHyperlinkPartitioner.java 2009-09-25 15:25:55 UTC= (rev 17752) @@ -23,7 +23,7 @@ import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.Utils; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPRootHyperlinkParti= tioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPRootHyperlinkPartitio= ner; = /** * @author Jeremy Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/JSPForIDHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPForIDHyperlinkPartitioner.java 2009-09-25 15:18:59 UT= C (rev 17751) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPForIDHyperlinkPartitioner.java 2009-09-25 15:25:55 UT= C (rev 17752) @@ -22,7 +22,7 @@ import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.Utils; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPRootHyperlinkParti= tioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPRootHyperlinkPartitio= ner; import org.jboss.tools.jsf.text.ext.JSFExtensionsPlugin; = /** Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/JSPForwardHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPForwardHyperlinkPartitioner.java 2009-09-25 15:18:59 = UTC (rev 17751) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPForwardHyperlinkPartitioner.java 2009-09-25 15:25:55 = UTC (rev 17752) @@ -24,7 +24,7 @@ import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.TaglibManagerWrapper; import org.jboss.tools.common.text.ext.util.Utils; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPRootHyperlinkParti= tioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPRootHyperlinkPartitio= ner; import org.jboss.tools.jsf.text.ext.JSFExtensionsPlugin; = /** Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/JSPLoadBundleHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPLoadBundleHyperlinkPartitioner.java 2009-09-25 15:18:= 59 UTC (rev 17751) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPLoadBundleHyperlinkPartitioner.java 2009-09-25 15:25:= 55 UTC (rev 17752) @@ -24,7 +24,7 @@ import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.TaglibManagerWrapper; import org.jboss.tools.common.text.ext.util.Utils; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPRootHyperlinkParti= tioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPRootHyperlinkPartitio= ner; import org.jboss.tools.jsf.text.ext.JSFExtensionsPlugin; = /** Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/JSPNavigationCaseHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPNavigationCaseHyperlinkPartitioner.java 2009-09-25 15= :18:59 UTC (rev 17751) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPNavigationCaseHyperlinkPartitioner.java 2009-09-25 15= :25:55 UTC (rev 17752) @@ -22,7 +22,7 @@ import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.Utils; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPRootHyperlinkParti= tioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPRootHyperlinkPartitio= ner; import org.jboss.tools.jsf.text.ext.JSFExtensionsPlugin; = /** Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/JSPValidatorHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPValidatorHyperlinkPartitioner.java 2009-09-25 15:18:5= 9 UTC (rev 17751) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPValidatorHyperlinkPartitioner.java 2009-09-25 15:25:5= 5 UTC (rev 17752) @@ -23,7 +23,7 @@ import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.Utils; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPRootHyperlinkParti= tioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPRootHyperlinkPartitio= ner; import org.jboss.tools.jsf.text.ext.JSFExtensionsPlugin; = /** Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/JsfJSPTagAttributeHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JsfJSPTagAttributeHyperlinkPartitioner.java 2009-09-25 1= 5:18:59 UTC (rev 17751) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JsfJSPTagAttributeHyperlinkPartitioner.java 2009-09-25 1= 5:25:55 UTC (rev 17752) @@ -22,7 +22,7 @@ import org.jboss.tools.common.text.ext.hyperlink.HyperlinkRegion; import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkPartitionRecogn= izer; import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPRootHyperlinkParti= tioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPRootHyperlinkPartitio= ner; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.Utils; import org.jboss.tools.jsf.project.JSFNature; Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/JsfJSPTagNameHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JsfJSPTagNameHyperlink.java 2009-09-25 15:18:59 UTC (rev= 17751) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JsfJSPTagNameHyperlink.java 2009-09-25 15:25:55 UTC (rev= 17752) @@ -21,7 +21,7 @@ import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement; import org.jboss.tools.common.model.XModel; import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlink; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPRootHyperlinkParti= tioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPRootHyperlinkPartitio= ner; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.Utils; import org.jboss.tools.jsf.text.ext.JSFTextExtMessages; Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/JsfJSPTagNameHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JsfJSPTagNameHyperlinkPartitioner.java 2009-09-25 15:18:= 59 UTC (rev 17751) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JsfJSPTagNameHyperlinkPartitioner.java 2009-09-25 15:25:= 55 UTC (rev 17752) @@ -28,7 +28,7 @@ import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.Utils; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPRootHyperlinkParti= tioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPRootHyperlinkPartitio= ner; = /** * @author Jeremy Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/JsfJSPXmlNsHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JsfJSPXmlNsHyperlinkPartitioner.java 2009-09-25 15:18:59= UTC (rev 17751) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JsfJSPXmlNsHyperlinkPartitioner.java 2009-09-25 15:25:55= UTC (rev 17752) @@ -17,7 +17,7 @@ import org.eclipse.jface.text.IRegion; import org.eclipse.jface.text.Region; import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPTagAttributeValueH= yperlinkPartitioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPTagAttributeValueHype= rlinkPartitioner; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.Utils; import org.jboss.tools.jsf.project.JSFNature; Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/JsfTaglibDirectiveHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JsfTaglibDirectiveHyperlinkPartitioner.java 2009-09-25 1= 5:18:59 UTC (rev 17751) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JsfTaglibDirectiveHyperlinkPartitioner.java 2009-09-25 1= 5:25:55 UTC (rev 17752) @@ -26,7 +26,7 @@ import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.Utils; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPTagAttributeValueH= yperlinkPartitioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPTagAttributeValueHype= rlinkPartitioner; = /** * @author Jeremy --===============2417797043685655634==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 11:33:05 2009 Content-Type: multipart/mixed; boundary="===============5701116561031509591==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17753 - in trunk/struts/plugins/org.jboss.tools.struts.text.ext: src/org/jboss/tools/struts/text/ext/hyperlink and 1 other directory. Date: Fri, 25 Sep 2009 11:33:05 -0400 Message-ID: <200909251533.n8PFX5gd006923@svn01.web.mwc.hst.phx2.redhat.com> --===============5701116561031509591== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 11:33:04 -0400 (Fri, 25 Sep 2009) New Revision: 17753 Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/META-INF/MANIFEST.MF trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools= /struts/text/ext/hyperlink/StrutsActionHyperlinkPartitioner.java trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools= /struts/text/ext/hyperlink/StrutsActionMappingHyperlinkPartitioner.java trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools= /struts/text/ext/hyperlink/StrutsBeanNameHyperlink.java trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools= /struts/text/ext/hyperlink/StrutsBeanNameHyperlinkPartitioner.java trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools= /struts/text/ext/hyperlink/StrutsBundleHyperlinkPartitioner.java trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools= /struts/text/ext/hyperlink/StrutsBundleKeyHyperlinkPartitioner.java trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools= /struts/text/ext/hyperlink/StrutsFormActionHyperlinkPartitioner.java trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools= /struts/text/ext/hyperlink/StrutsFormBeanHyperlinkPartitioner.java trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools= /struts/text/ext/hyperlink/StrutsForwardHyperlinkPartitioner.java trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools= /struts/text/ext/hyperlink/StrutsJSPLinkHyperlinkPartitioner.java trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools= /struts/text/ext/hyperlink/StrutsJSPTagAttributeHyperlinkPartitioner.java trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools= /struts/text/ext/hyperlink/StrutsJSPTagNameHyperlinkPartitioner.java trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools= /struts/text/ext/hyperlink/StrutsLogicPropertyHyperlink.java trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools= /struts/text/ext/hyperlink/StrutsLogicPropertyHyperlinkPartitioner.java trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools= /struts/text/ext/hyperlink/StrutsPageHyperlinkPartitioner.java trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools= /struts/text/ext/hyperlink/StrutsPropertyHyperlinkPartitioner.java trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools= /struts/text/ext/hyperlink/StrutsTaglibDirectiveHyperlinkPartitioner.java Log: https://jira.jboss.org/jira/browse/JBIDE-4950 Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/META-INF/MAN= IFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.text.ext/META-INF/MANIFEST.= MF 2009-09-25 15:25:55 UTC (rev 17752) +++ trunk/struts/plugins/org.jboss.tools.struts.text.ext/META-INF/MANIFEST.= MF 2009-09-25 15:33:04 UTC (rev 17753) @@ -16,6 +16,7 @@ org.eclipse.core.resources, org.jboss.tools.struts, org.jboss.tools.common.text.ext, + org.jboss.tools.jst.text.ext, org.jboss.tools.jst.web, org.eclipse.wst.sse.core, org.jboss.tools.common.model, Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jbos= s/tools/struts/text/ext/hyperlink/StrutsActionHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsActionHyperlinkPartitioner.java 2009-09-2= 5 15:25:55 UTC (rev 17752) +++ trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsActionHyperlinkPartitioner.java 2009-09-2= 5 15:33:04 UTC (rev 17753) @@ -10,7 +10,7 @@ *************************************************************************= *****/ = package org.jboss.tools.struts.text.ext.hyperlink; = -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPTagAttributeValueH= yperlinkPartitioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPTagAttributeValueHype= rlinkPartitioner; = = /** Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jbos= s/tools/struts/text/ext/hyperlink/StrutsActionMappingHyperlinkPartitioner.j= ava =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsActionMappingHyperlinkPartitioner.java 20= 09-09-25 15:25:55 UTC (rev 17752) +++ trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsActionMappingHyperlinkPartitioner.java 20= 09-09-25 15:33:04 UTC (rev 17753) @@ -10,7 +10,7 @@ *************************************************************************= *****/ = package org.jboss.tools.struts.text.ext.hyperlink; = -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPTagAttributeValueH= yperlinkPartitioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPTagAttributeValueHype= rlinkPartitioner; = = /** Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jbos= s/tools/struts/text/ext/hyperlink/StrutsBeanNameHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsBeanNameHyperlink.java 2009-09-25 15:25:5= 5 UTC (rev 17752) +++ trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsBeanNameHyperlink.java 2009-09-25 15:33:0= 4 UTC (rev 17753) @@ -19,7 +19,7 @@ import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement; import org.jboss.tools.common.model.XModel; import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlink; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPRootHyperlinkParti= tioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPRootHyperlinkPartitio= ner; import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.StructuredSelectionHelper; Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jbos= s/tools/struts/text/ext/hyperlink/StrutsBeanNameHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsBeanNameHyperlinkPartitioner.java 2009-09= -25 15:25:55 UTC (rev 17752) +++ trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsBeanNameHyperlinkPartitioner.java 2009-09= -25 15:33:04 UTC (rev 17753) @@ -10,7 +10,7 @@ *************************************************************************= *****/ = package org.jboss.tools.struts.text.ext.hyperlink; = -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPTagAttributeValueH= yperlinkPartitioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPTagAttributeValueHype= rlinkPartitioner; = /** * @author Jeremy Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jbos= s/tools/struts/text/ext/hyperlink/StrutsBundleHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsBundleHyperlinkPartitioner.java 2009-09-2= 5 15:25:55 UTC (rev 17752) +++ trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsBundleHyperlinkPartitioner.java 2009-09-2= 5 15:33:04 UTC (rev 17753) @@ -10,7 +10,7 @@ *************************************************************************= *****/ = package org.jboss.tools.struts.text.ext.hyperlink; = -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPTagAttributeValueH= yperlinkPartitioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPTagAttributeValueHype= rlinkPartitioner; = /** * @author Jeremy Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jbos= s/tools/struts/text/ext/hyperlink/StrutsBundleKeyHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsBundleKeyHyperlinkPartitioner.java 2009-0= 9-25 15:25:55 UTC (rev 17752) +++ trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsBundleKeyHyperlinkPartitioner.java 2009-0= 9-25 15:33:04 UTC (rev 17753) @@ -10,7 +10,7 @@ *************************************************************************= *****/ = package org.jboss.tools.struts.text.ext.hyperlink; = -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPTagAttributeValueH= yperlinkPartitioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPTagAttributeValueHype= rlinkPartitioner; = /** * @author Jeremy Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jbos= s/tools/struts/text/ext/hyperlink/StrutsFormActionHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsFormActionHyperlinkPartitioner.java 2009-= 09-25 15:25:55 UTC (rev 17752) +++ trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsFormActionHyperlinkPartitioner.java 2009-= 09-25 15:33:04 UTC (rev 17753) @@ -20,7 +20,7 @@ import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.Utils; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPTagAttributeValueH= yperlinkPartitioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPTagAttributeValueHype= rlinkPartitioner; import org.jboss.tools.struts.text.ext.StrutsExtensionsPlugin; = /** Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jbos= s/tools/struts/text/ext/hyperlink/StrutsFormBeanHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsFormBeanHyperlinkPartitioner.java 2009-09= -25 15:25:55 UTC (rev 17752) +++ trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsFormBeanHyperlinkPartitioner.java 2009-09= -25 15:33:04 UTC (rev 17753) @@ -10,7 +10,7 @@ *************************************************************************= *****/ = package org.jboss.tools.struts.text.ext.hyperlink; = -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPTagAttributeValueH= yperlinkPartitioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPTagAttributeValueHype= rlinkPartitioner; = /** * @author Jeremy Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jbos= s/tools/struts/text/ext/hyperlink/StrutsForwardHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsForwardHyperlinkPartitioner.java 2009-09-= 25 15:25:55 UTC (rev 17752) +++ trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsForwardHyperlinkPartitioner.java 2009-09-= 25 15:33:04 UTC (rev 17753) @@ -10,7 +10,7 @@ *************************************************************************= *****/ = package org.jboss.tools.struts.text.ext.hyperlink; = -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPTagAttributeValueH= yperlinkPartitioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPTagAttributeValueHype= rlinkPartitioner; = /** * @author Jeremy Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jbos= s/tools/struts/text/ext/hyperlink/StrutsJSPLinkHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsJSPLinkHyperlinkPartitioner.java 2009-09-= 25 15:25:55 UTC (rev 17752) +++ trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsJSPLinkHyperlinkPartitioner.java 2009-09-= 25 15:33:04 UTC (rev 17753) @@ -18,7 +18,7 @@ import org.jboss.tools.struts.StrutsProject; import org.jboss.tools.struts.text.ext.StrutsExtensionsPlugin; import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPLinkHyperlinkParti= tioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPLinkHyperlinkPartitio= ner; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.w3c.dom.Document; = Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jbos= s/tools/struts/text/ext/hyperlink/StrutsJSPTagAttributeHyperlinkPartitioner= .java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsJSPTagAttributeHyperlinkPartitioner.java = 2009-09-25 15:25:55 UTC (rev 17752) +++ trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsJSPTagAttributeHyperlinkPartitioner.java = 2009-09-25 15:33:04 UTC (rev 17753) @@ -21,7 +21,7 @@ import org.jboss.tools.common.text.ext.hyperlink.HyperlinkRegion; import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkPartitionRecogn= izer; import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPRootHyperlinkParti= tioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPRootHyperlinkPartitio= ner; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.Utils; import org.jboss.tools.struts.StrutsProject; Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jbos= s/tools/struts/text/ext/hyperlink/StrutsJSPTagNameHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsJSPTagNameHyperlinkPartitioner.java 2009-= 09-25 15:25:55 UTC (rev 17752) +++ trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsJSPTagNameHyperlinkPartitioner.java 2009-= 09-25 15:33:04 UTC (rev 17753) @@ -20,7 +20,7 @@ import org.jboss.tools.common.text.ext.hyperlink.HyperlinkRegion; import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkPartitionRecogn= izer; import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPRootHyperlinkParti= tioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPRootHyperlinkPartitio= ner; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.Utils; import org.jboss.tools.struts.StrutsProject; Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jbos= s/tools/struts/text/ext/hyperlink/StrutsLogicPropertyHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsLogicPropertyHyperlink.java 2009-09-25 15= :25:55 UTC (rev 17752) +++ trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsLogicPropertyHyperlink.java 2009-09-25 15= :33:04 UTC (rev 17753) @@ -22,7 +22,7 @@ import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement; import org.jboss.tools.common.model.XModel; import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlink; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPRootHyperlinkParti= tioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPRootHyperlinkPartitio= ner; import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.Utils; Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jbos= s/tools/struts/text/ext/hyperlink/StrutsLogicPropertyHyperlinkPartitioner.j= ava =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsLogicPropertyHyperlinkPartitioner.java 20= 09-09-25 15:25:55 UTC (rev 17752) +++ trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsLogicPropertyHyperlinkPartitioner.java 20= 09-09-25 15:33:04 UTC (rev 17753) @@ -10,7 +10,7 @@ *************************************************************************= *****/ = package org.jboss.tools.struts.text.ext.hyperlink; = -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPTagAttributeValueH= yperlinkPartitioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPTagAttributeValueHype= rlinkPartitioner; = /** * @author Jeremy Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jbos= s/tools/struts/text/ext/hyperlink/StrutsPageHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsPageHyperlinkPartitioner.java 2009-09-25 = 15:25:55 UTC (rev 17752) +++ trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsPageHyperlinkPartitioner.java 2009-09-25 = 15:33:04 UTC (rev 17753) @@ -10,7 +10,7 @@ *************************************************************************= *****/ = package org.jboss.tools.struts.text.ext.hyperlink; = -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPTagAttributeValueH= yperlinkPartitioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPTagAttributeValueHype= rlinkPartitioner; = /** * @author Jeremy Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jbos= s/tools/struts/text/ext/hyperlink/StrutsPropertyHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsPropertyHyperlinkPartitioner.java 2009-09= -25 15:25:55 UTC (rev 17752) +++ trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsPropertyHyperlinkPartitioner.java 2009-09= -25 15:33:04 UTC (rev 17753) @@ -10,7 +10,7 @@ *************************************************************************= *****/ = package org.jboss.tools.struts.text.ext.hyperlink; = -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPTagAttributeValueH= yperlinkPartitioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPTagAttributeValueHype= rlinkPartitioner; = /** * @author Jeremy Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jbos= s/tools/struts/text/ext/hyperlink/StrutsTaglibDirectiveHyperlinkPartitioner= .java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsTaglibDirectiveHyperlinkPartitioner.java = 2009-09-25 15:25:55 UTC (rev 17752) +++ trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsTaglibDirectiveHyperlinkPartitioner.java = 2009-09-25 15:33:04 UTC (rev 17753) @@ -17,7 +17,7 @@ import org.eclipse.jface.text.IRegion; import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode; import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; -import org.jboss.tools.common.text.ext.hyperlink.jsp.JSPTagAttributeValueH= yperlinkPartitioner; +import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPTagAttributeValueHype= rlinkPartitioner; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; import org.jboss.tools.common.text.ext.util.Utils; import org.jboss.tools.struts.StrutsProject; --===============5701116561031509591==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 11:57:37 2009 Content-Type: multipart/mixed; boundary="===============7456398037961086272==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17754 - in trunk/common/plugins/org.jboss.tools.common.text.ext: META-INF and 1 other directories. Date: Fri, 25 Sep 2009 11:57:37 -0400 Message-ID: <200909251557.n8PFvbH3012364@svn01.web.mwc.hst.phx2.redhat.com> --===============7456398037961086272== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 11:57:36 -0400 (Fri, 25 Sep 2009) New Revision: 17754 Removed: trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools= /common/text/ext/hyperlink/CSSClassHyperlink.java trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools= /common/text/ext/hyperlink/CSSClassHyperlinkPartitioner.java trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools= /common/text/ext/hyperlink/FilterNameHyperlink.java trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools= /common/text/ext/hyperlink/JSPStylesheetRelLinkHyperlink.java trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools= /common/text/ext/hyperlink/RoleNameHyperlink.java trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools= /common/text/ext/hyperlink/ServletNameHyperlink.java trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools= /common/text/ext/hyperlink/TLDAttributeNameHyperlink.java trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools= /common/text/ext/hyperlink/TaglibDefinitionFilesHyperlinkPartitioner.java trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools= /common/text/ext/hyperlink/jsp/ Modified: trunk/common/plugins/org.jboss.tools.common.text.ext/META-INF/MANIFEST.MF trunk/common/plugins/org.jboss.tools.common.text.ext/plugin.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4950 Modified: trunk/common/plugins/org.jboss.tools.common.text.ext/META-INF/MAN= IFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.text.ext/META-INF/MANIFEST.= MF 2009-09-25 15:33:04 UTC (rev 17753) +++ trunk/common/plugins/org.jboss.tools.common.text.ext/META-INF/MANIFEST.= MF 2009-09-25 15:57:36 UTC (rev 17754) @@ -3,7 +3,6 @@ Bundle-Activator: org.jboss.tools.common.text.ext.ExtensionsPlugin Export-Package: org.jboss.tools.common.text.ext, org.jboss.tools.common.text.ext.hyperlink, - org.jboss.tools.common.text.ext.hyperlink.jsp, org.jboss.tools.common.text.ext.hyperlink.xml, org.jboss.tools.common.text.ext.hyperlink.xpl, org.jboss.tools.common.text.ext.util, Modified: trunk/common/plugins/org.jboss.tools.common.text.ext/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.text.ext/plugin.xml 2009-09= -25 15:33:04 UTC (rev 17753) +++ trunk/common/plugins/org.jboss.tools.common.text.ext/plugin.xml 2009-09= -25 15:57:36 UTC (rev 17754) @@ -10,19 +10,6 @@ id=3D"org.jboss.tools.common.text.ext.hyperlinkPartitioner" name=3D"org.jboss.tools.common.text.ext.hyperlinkPartitioner"> = - - - - - - - - - - - = - - - - - - - - - = = @@ -252,176 +228,6 @@ = = - = - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = - - - - - - - - = - - - - - - - - - = - - - - - - - - = - - - - - - - - = - - - - - - - - - - - - - - - - - - - - = - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = - - = - - = - - = - - - - - = @@ -748,62 +535,7 @@ = = - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -833,17 +565,6 @@ = - - - - - - - - - @@ -869,100 +590,7 @@ = - - = - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = - Deleted: trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss= /tools/common/text/ext/hyperlink/CSSClassHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/hyperlink/CSSClassHyperlink.java 2009-09-25 15:33:04 UTC = (rev 17753) +++ trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/hyperlink/CSSClassHyperlink.java 2009-09-25 15:57:36 UTC = (rev 17754) @@ -1,508 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ -package org.jboss.tools.common.text.ext.hyperlink; - -import java.io.IOException; -import java.io.UnsupportedEncodingException; -import java.text.MessageFormat; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.Comparator; -import java.util.List; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import org.eclipse.core.resources.IFile; -import org.eclipse.jface.text.BadLocationException; -import org.eclipse.jface.text.IRegion; -import org.eclipse.jface.text.Region; -import org.eclipse.ui.IEditorPart; -import org.eclipse.ui.IWorkbenchPage; -import org.eclipse.ui.PartInitException; -import org.eclipse.ui.ide.IDE; -import org.eclipse.wst.css.core.internal.provisional.adapters.IModelProvid= eAdapter; -import org.eclipse.wst.css.core.internal.provisional.adapters.IStyleSheetA= dapter; -import org.eclipse.wst.css.core.internal.provisional.document.ICSSDocument; -import org.eclipse.wst.css.core.internal.provisional.document.ICSSModel; -import org.eclipse.wst.css.core.internal.provisional.document.ICSSNode; -import org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleRul= e; -import org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleShe= et; -import org.eclipse.wst.html.core.internal.htmlcss.LinkElementAdapter; -import org.eclipse.wst.html.core.internal.htmlcss.URLModelProvider; -import org.eclipse.wst.sse.core.internal.provisional.INodeNotifier; -import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel; -import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion; -import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument; -import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement; -import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel; -import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode; -import org.jboss.tools.common.text.ext.ExtensionsPlugin; -import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages; -import org.jboss.tools.common.text.ext.util.RegionHolder; -import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; -import org.jboss.tools.common.text.ext.util.StructuredSelectionHelper; -import org.jboss.tools.common.text.ext.util.Utils; -import org.w3c.dom.Attr; -import org.w3c.dom.Document; -import org.w3c.dom.Element; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; -import org.w3c.dom.css.CSSRule; -import org.w3c.dom.css.CSSRuleList; -import org.w3c.dom.css.CSSStyleSheet; - -/** - * @author Jeremy - */ -public class CSSClassHyperlink extends AbstractHyperlink { - - public static final String[] STYLE_TAGS =3D new String[] { "style", "link= " }; //$NON-NLS-1$//$NON-NLS-2$ - public static final String LINK_TAG =3D "link"; //$NON-NLS-1$ - public static final String HREF_ATTRIBUTE =3D "href"; //$NON-NLS-1$ - public static final String COMPARE_CLASS_REGEX_PREFIX =3D "[\\.]?"; //$NO= N-NLS-1$ - public static final String CONTEXT_PATH_EXPRESSION =3D "^\\s*(\\#|\\$)\\{= facesContext.externalContext.requestContextPath\\}"; //$NON-NLS-1$ - - /** - * = - */ - protected void doHyperlink(IRegion region) { - - IDOMModel model =3D (IDOMModel) getModelManager() - .getExistingModelForRead(getDocument()); - - // get name of looked for style - String styleName =3D getStyleName(region); - - // get elements which copntans information about styles (style and link - // tags) - List styleElementList =3D getStyleContainerList(model); - - // sort nodes by position in inverse order - from larger position to - // smaller - Collections.sort(styleElementList, new Comparator() { - - public int compare(Node o1, Node o2) { - return ((IDOMNode) o2).getStartOffset() - - ((IDOMNode) o1).getStartOffset(); - } - - }); - - RegionHolder styleRegion =3D null; - // look for style in each Style element - for (Node styleContainer : styleElementList) { - - styleRegion =3D findStyleRegion(styleContainer, styleName); - - if (styleRegion !=3D null) { - showRegion(styleRegion); - break; - } - - } - - model.releaseFromRead(); - } - - /** - * = - * @param model - * @return - */ - private List getStyleContainerList(IDOMModel model) { - - // get model of current page - IDOMDocument document =3D model.getDocument(); - - List getStyleContainerList =3D new ArrayList(); - - // get all tags which contains style ( link, style) - for (String tagName : STYLE_TAGS) { - getStyleContainerList.addAll(getList(document - .getElementsByTagName(tagName))); - } - - return getStyleContainerList; - } - - /** - * move nodes from NodeList to List - * = - * @param nodeList - * @return - */ - List getList(NodeList nodeList) { - - List newContainerList =3D new ArrayList(); - for (int i =3D 0; i < nodeList.getLength(); i++) { - newContainerList.add(nodeList.item(i)); - } - return newContainerList; - } - - /** - * = - * @param stylesContainer - * @param styleName - * @return - */ - public RegionHolder findStyleRegion(Node stylesContainer, String styleNam= e) { - - // get style sheet - CSSStyleSheet sheet =3D getSheet(stylesContainer); - - if (sheet !=3D null) { - - CSSRuleList ruleList =3D sheet.getCssRules(); - - // for each cssRule - for (int i =3D 0; i < ruleList.getLength(); i++) { - - CSSRule cssRule =3D ruleList.item(i); - - // if cssRule describe looked for style - if (isRuleMatch(cssRule, styleName)) { - - return new RegionHolder(getFile((ICSSNode) cssRule), - getRegion(cssRule)); - - } - } - - } - return null; - } - - /** - * = - * @param stylesContainer - * @return - */ - private CSSStyleSheet getSheet(final Node stylesContainer) { - - INodeNotifier notifier =3D (INodeNotifier) stylesContainer; - - IStyleSheetAdapter adapter =3D (IStyleSheetAdapter) notifier - .getAdapterFor(IStyleSheetAdapter.class); - - if (LINK_TAG.equalsIgnoreCase(stylesContainer.getNodeName()) - && !(adapter instanceof ExtendedLinkElementAdapter)) { - - notifier.removeAdapter(adapter); - adapter =3D new ExtendedLinkElementAdapter( - (Element) stylesContainer); - notifier.addAdapter(adapter); - - } - - CSSStyleSheet sheet =3D null; - - if (adapter !=3D null) { - sheet =3D (CSSStyleSheet) adapter.getSheet(); - - } - - return sheet; - - } - - protected String processURL(String href) { - // TODO Auto-generated method stub - return null; - } - - /** - * = - * @param cssRule - * @param styleName - * @return - */ - private boolean isRuleMatch(CSSRule cssRule, String styleName) { - - // get selector text - String selectorText =3D ((ICSSStyleRule) cssRule).getSelectorText(); - - if (selectorText !=3D null) { - - // split selector text by whitespace - String[] styles =3D selectorText.trim().split(" "); //$NON-NLS-1$ - int searchIndex =3D Arrays.binarySearch(styles, styleName, - new Comparator() { - - public int compare(String o1, String o2) { - Matcher matcher =3D Pattern.compile( - COMPARE_CLASS_REGEX_PREFIX + o2) - .matcher(o1); - return matcher.matches() ? 0 : 1; - } - - }); - if (searchIndex >=3D 0) - return true; - } - return false; - } - - /** - * = - * @param node - * @return - */ - private IFile getFile(ICSSNode node) { - - ICSSDocument sheet =3D node.getOwnerDocument(); - - return AbstractHyperlink.getFile(sheet.getModel()); - } - - /** - * = - * @param cssRule - * @return - */ - protected Region getRegion(CSSRule cssRule) { - - int offset =3D ((IndexedRegion) cssRule).getStartOffset(); - - // if css rule is contained in style tag so it is require to take into - // account offset of this tag - ICSSStyleSheet document =3D (ICSSStyleSheet) ((ICSSStyleRule) cssRule) - .getOwnerDocument(); - - ICSSModel model =3D document.getModel(); - - // get style tag - Node node =3D model.getOwnerDOMNode(); - - // increase offset - if (node instanceof IDOMElement) - offset +=3D ((IDOMElement) node).getStartEndOffset(); - - return new Region(offset, 0); - - } - - /** - * = - * @param styleRegion - */ - private void showRegion(RegionHolder styleRegion) { - - IWorkbenchPage workbenchPage =3D ExtensionsPlugin.getDefault() - .getWorkbench().getActiveWorkbenchWindow().getActivePage(); - IEditorPart part =3D null; - if (styleRegion.file !=3D null) { - try { - part =3D IDE.openEditor(workbenchPage, styleRegion.file, true); - } catch (PartInitException e) { - e.printStackTrace(); - } - if (part =3D=3D null) { - openFileFailed(); - return; - } - } - StructuredSelectionHelper.setSelectionAndReveal(part, - styleRegion.region); - } - - /** - * = - * @param region - * @return - */ - private String getStyleName(IRegion region) { - try { - return getDocument().get(region.getOffset(), region.getLength()); - } catch (BadLocationException e) { - return null; - } - } - - IRegion fLastRegion =3D null; - - /** - * @see com.ibm.sse.editor.AbstractHyperlink#doGetHyperlinkRegion(int) - */ - protected IRegion doGetHyperlinkRegion(int offset) { - fLastRegion =3D getRegion(offset); - return fLastRegion; - } - - /** - * TODO research method - * = - * @param offset - * @return - */ - protected IRegion getRegion(int offset) { - StructuredModelWrapper smw =3D new StructuredModelWrapper(); - try { - smw.init(getDocument()); - Document xmlDocument =3D smw.getDocument(); - if (xmlDocument =3D=3D null) - return null; - - Node n =3D Utils.findNodeForOffset(xmlDocument, offset); - - if (n =3D=3D null || !(n instanceof Attr)) - return null; - int start =3D Utils.getValueStart(n); - int end =3D Utils.getValueEnd(n); - if (start > offset) - return null; - - String attrText =3D getDocument().get(start, end - start); - - StringBuffer sb =3D new StringBuffer(attrText); - // find start of bean property - int bStart =3D offset - start; - while (bStart >=3D 0) { - if (!Character.isJavaIdentifierPart(sb.charAt(bStart)) - && sb.charAt(bStart) !=3D '_' && sb.charAt(bStart) !=3D '-' - && sb.charAt(bStart) !=3D '.') { - bStart++; - break; - } - - if (bStart =3D=3D 0) - break; - bStart--; - } - // find end of bean property - int bEnd =3D offset - start; - while (bEnd < sb.length()) { - if (!Character.isJavaIdentifierPart(sb.charAt(bEnd)) - && sb.charAt(bEnd) !=3D '_' && sb.charAt(bEnd) !=3D '-' - && sb.charAt(bEnd) !=3D '.') - break; - bEnd++; - } - - final int propStart =3D bStart + start; - final int propLength =3D bEnd - bStart; - - if (propStart > offset || propStart + propLength < offset) - return null; - return new Region(propStart, propLength); - } catch (BadLocationException x) { - // ignore - return null; - } finally { - smw.dispose(); - } - } - - /* - * (non-Javadoc) - * = - * @see IHyperlink#getHyperlinkText() - */ - public String getHyperlinkText() { - String styleName =3D getStyleName(fLastRegion); - if (styleName =3D=3D null) - return MessageFormat.format(Messages.OpenA, Messages.CSSStyle); - - return MessageFormat.format(Messages.OpenCSSStyle, styleName); - } - - @Override - protected String findAndReplaceElVariable(String fileName) { - if (fileName !=3D null) - fileName =3D fileName - .replaceFirst( - "^\\s*(\\#|\\$)\\{facesContext.externalContext.requestContextPath\\= }", - ""); - return super.findAndReplaceElVariable(fileName); - } - - public class ExtendedLinkElementAdapter extends LinkElementAdapter { - - private Element element; - - public ExtendedLinkElementAdapter(Element element) { - this.element =3D element; - } - - @Override - public Element getElement() { - return element; - } - - @Override - protected boolean isValidAttribute() { - String href =3D getElement().getAttribute(HREF_ATTRIBUTE); - if (href =3D=3D null || href.length() =3D=3D 0) - return false; - return true; - } - - /** - */ - public ICSSModel getModel() { - ICSSModel model =3D super.getModel(); - if (model =3D=3D null) { - model =3D retrieveModel(); - setModel(model); - } - return model; - } - - /** - */ - private ICSSModel retrieveModel() { - if (!isValidAttribute()) { - return null; - } - - // null,attr check is done in isValidAttribute() - Element element =3D getElement(); - String href =3D findAndReplaceElVariable(element - .getAttribute(HREF_ATTRIBUTE)); - - IDOMModel baseModel =3D ((IDOMNode) element).getModel(); - if (baseModel =3D=3D null) - return null; - Object id =3D baseModel.getId(); - if (!(id instanceof String)) - return null; - // String base =3D (String)id; - - // get ModelProvideAdapter - IModelProvideAdapter adapter =3D (IModelProvideAdapter) ((INodeNotifier= ) getElement()) - .getAdapterFor(IModelProvideAdapter.class); - - URLModelProvider provider =3D new URLModelProvider(); - try { - IStructuredModel newModel =3D provider.getModelForRead(baseModel, - href); - if (newModel =3D=3D null) - return null; - if (!(newModel instanceof ICSSModel)) { - newModel.releaseFromRead(); - return null; - } - - // notify adapter - if (adapter !=3D null) - adapter.modelProvided(newModel); - - return (ICSSModel) newModel; - } catch (UnsupportedEncodingException e) { - } catch (IOException e) { - } - - return null; - } - } - -} \ No newline at end of file Deleted: trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss= /tools/common/text/ext/hyperlink/CSSClassHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/hyperlink/CSSClassHyperlinkPartitioner.java 2009-09-25 15= :33:04 UTC (rev 17753) +++ trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/hyperlink/CSSClassHyperlinkPartitioner.java 2009-09-25 15= :57:36 UTC (rev 17754) @@ -1,84 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007-2009 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributor: - * Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ -package org.jboss.tools.common.text.ext.hyperlink; - -import org.eclipse.jface.text.IDocument; -import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlinkPartitio= ner; -import org.jboss.tools.common.text.ext.hyperlink.HyperlinkRegion; -import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkPartitionRecogn= izer; -import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; -import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; -import org.jboss.tools.common.text.ext.util.Utils; -import org.w3c.dom.Attr; -import org.w3c.dom.Document; -import org.w3c.dom.Node; - -/** - * = - * @author Sergey Dzmitrovich - * - */ -public class CSSClassHyperlinkPartitioner extends - AbstractHyperlinkPartitioner implements IHyperlinkPartitionRecognizer { - - public static final String CSS_CLASS_PARTITION =3D "org.jboss.tools.commo= n.text.ext.CSS_CLASS"; //$NON-NLS-1$ - - private static final String CSS_CLASS_TOKEN =3D "class/"; //$NON-NLS-1$ - - /** - * @see com.ibm.sse.editor.hyperlink.AbstractHyperlinkPartitioner#parse(o= rg.eclipse.jface.text.IDocument, - * com.ibm.sse.editor.extensions.hyperlink.IHyperlinkRegion) - */ - protected IHyperlinkRegion parse(IDocument document, - IHyperlinkRegion superRegion) { - StructuredModelWrapper smw =3D new StructuredModelWrapper(); - try { - smw.init(document); - Document xmlDocument =3D smw.getDocument(); - if (xmlDocument =3D=3D null) - return null; - - Node n =3D Utils.findNodeForOffset(xmlDocument, superRegion - .getOffset()); - if (n =3D=3D null || !(n instanceof Attr)) - return null; - - String axis =3D getAxis(document, superRegion); - String contentType =3D superRegion.getContentType(); - String type =3D getPartitionType(axis); - int start =3D Utils.getValueStart(n); - int end =3D Utils.getValueEnd(n); - if (start < 0 || end < start) - return null; - int length =3D end - start; - int offset =3D superRegion.getOffset(); - - IHyperlinkRegion region =3D new HyperlinkRegion(offset, length, axis, - contentType, type); - return region; - } finally { - smw.dispose(); - } - } - - private String getPartitionType(String axis) { - return CSS_CLASS_PARTITION; - } - - public boolean recognize(IDocument document, IHyperlinkRegion region) { - - if (region.getAxis() !=3D null - && region.getAxis().toLowerCase().endsWith(CSS_CLASS_TOKEN)) - return true; - return false; - } - -} Deleted: trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss= /tools/common/text/ext/hyperlink/FilterNameHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/hyperlink/FilterNameHyperlink.java 2009-09-25 15:33:04 UT= C (rev 17753) +++ trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/hyperlink/FilterNameHyperlink.java 2009-09-25 15:57:36 UT= C (rev 17754) @@ -1,34 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.common.text.ext.hyperlink; - -import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages; -/** - * @author Jeremy - * - * TODO To change the template for this generated type comment go to - * Window - Preferences - Java - Code Style - Code Templates - */ -public class FilterNameHyperlink extends JumpToHyperlink { - protected String getDestinationAxis() { - return "/web-app/filter/filter-name/"; //$NON-NLS-1$ - } - = - /* - * (non-Javadoc) - * = - * @see IHyperlink#getHyperlinkText() - */ - public String getHyperlinkText() { - return Messages.BrowseToFilterNameDefinition; - } - -} Deleted: trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss= /tools/common/text/ext/hyperlink/JSPStylesheetRelLinkHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/hyperlink/JSPStylesheetRelLinkHyperlink.java 2009-09-25 1= 5:33:04 UTC (rev 17753) +++ trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/hyperlink/JSPStylesheetRelLinkHyperlink.java 2009-09-25 1= 5:57:36 UTC (rev 17754) @@ -1,109 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.common.text.ext.hyperlink; - -import org.eclipse.jface.text.BadLocationException; -import org.eclipse.jface.text.IRegion; -import org.eclipse.jface.text.Region; -import org.w3c.dom.Attr; -import org.w3c.dom.Document; -import org.w3c.dom.Node; -import org.w3c.dom.Text; - -import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; -import org.jboss.tools.common.text.ext.util.Utils; - -/** - * @author Jeremy - * - */ -public class JSPStylesheetRelLinkHyperlink extends RelativeLinkHyperlink { - = - private static final String HREF_ATTRNAME =3D "href"; //$NON-NLS-1$ - - protected IRegion getRegion (int offset) { - StructuredModelWrapper smw =3D new StructuredModelWrapper(); - smw.init(getDocument()); - try { - Document xmlDocument =3D smw.getDocument(); - if (xmlDocument =3D=3D null) return null; - = - Node n =3D Utils.findNodeForOffset(xmlDocument, offset); - = - if (n =3D=3D null || !(n instanceof Text || n instanceof Attr)) return = null; - = - String text =3D null; - int bStart =3D 0; - int bEnd =3D 0; - = - if (n instanceof Text) { - int start =3D Utils.getValueStart(n); - int end =3D Utils.getValueEnd(n); - if (start < 0 || start > offset) return null; - = - text =3D getDocument().get(start, end - start); - bStart =3D offset - start; - bEnd =3D offset - start; - } else if (n instanceof Attr) { - Attr attr =3D (Attr)n; - if (!HREF_ATTRNAME.equalsIgnoreCase(attr.getName())) return null; - int start =3D Utils.getValueStart(n); - int end =3D Utils.getValueEnd(n); - if(start < 0) return null; - = - text =3D getDocument().get(start, end - start); - bStart =3D offset - start; - bEnd =3D offset - start; - } - StringBuffer sb =3D new StringBuffer(text); - //find start of bean property - while (bStart >=3D 0) { = - if (!Character.isJavaIdentifierPart(sb.charAt(bStart)) && - sb.charAt(bStart) !=3D '\\' && sb.charAt(bStart) !=3D '/' && - sb.charAt(bStart) !=3D ':' && sb.charAt(bStart) !=3D '-' && - sb.charAt(bStart) !=3D '.' && sb.charAt(bStart) !=3D '_' && - sb.charAt(bStart) !=3D '%' && sb.charAt(bStart) !=3D '?' && - sb.charAt(bStart) !=3D '&' && sb.charAt(bStart) !=3D '=3D') { - bStart++; - break; - } - = - if (bStart =3D=3D 0) break; - bStart--; - } - // find end of bean property - while (bEnd >=3D 0 && bEnd < sb.length()) { = - if (!Character.isJavaIdentifierPart(sb.charAt(bEnd)) && - sb.charAt(bEnd) !=3D '\\' && sb.charAt(bEnd) !=3D '/' && - sb.charAt(bEnd) !=3D ':' && sb.charAt(bEnd) !=3D '-' && - sb.charAt(bEnd) !=3D '.' && sb.charAt(bEnd) !=3D '_' && - sb.charAt(bEnd) !=3D '%' && sb.charAt(bEnd) !=3D '?' && - sb.charAt(bEnd) !=3D '&' && sb.charAt(bEnd) !=3D '=3D') { - break; - } - bEnd++; - } - = - final int propStart =3D bStart + Utils.getValueStart(n); - final int propLength =3D bEnd - bStart; - = - if (propStart > offset || propStart + propLength < offset) return null; - = - return new Region(propStart,propLength); - } catch (BadLocationException x) { - //ignore - return null; - } finally { - smw.dispose(); - } - } - -} Deleted: trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss= /tools/common/text/ext/hyperlink/RoleNameHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/hyperlink/RoleNameHyperlink.java 2009-09-25 15:33:04 UTC = (rev 17753) +++ trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/hyperlink/RoleNameHyperlink.java 2009-09-25 15:57:36 UTC = (rev 17754) @@ -1,36 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.common.text.ext.hyperlink; - -import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages; - - -/** - * @author Jeremy - * - * TODO To change the template for this generated type comment go to - * Window - Preferences - Java - Code Style - Code Templates - */ -public class RoleNameHyperlink extends JumpToHyperlink { - protected String getDestinationAxis() { - return "/web-app/security-role/role-name/"; //$NON-NLS-1$ - } - = - /* - * (non-Javadoc) - * = - * @see IHyperlink#getHyperlinkText() - */ - public String getHyperlinkText() { - return Messages.BrowseToRoleNameDefinition; - } - -} Deleted: trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss= /tools/common/text/ext/hyperlink/ServletNameHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/hyperlink/ServletNameHyperlink.java 2009-09-25 15:33:04 U= TC (rev 17753) +++ trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/hyperlink/ServletNameHyperlink.java 2009-09-25 15:57:36 U= TC (rev 17754) @@ -1,36 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.common.text.ext.hyperlink; - -import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages; - - -/** - * @author Jeremy - * - * TODO To change the template for this generated type comment go to - * Window - Preferences - Java - Code Style - Code Templates - */ -public class ServletNameHyperlink extends JumpToHyperlink { - protected String getDestinationAxis() { - return "/web-app/servlet/servlet-name/"; //$NON-NLS-1$ - } - = - /* - * (non-Javadoc) - * = - * @see IHyperlink#getHyperlinkText() - */ - public String getHyperlinkText() { - return Messages.BrowseToServletNameDefinition; - } - -} Deleted: trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss= /tools/common/text/ext/hyperlink/TLDAttributeNameHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/hyperlink/TLDAttributeNameHyperlink.java 2009-09-25 15:33= :04 UTC (rev 17753) +++ trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/hyperlink/TLDAttributeNameHyperlink.java 2009-09-25 15:57= :36 UTC (rev 17754) @@ -1,89 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.common.text.ext.hyperlink; - -import java.util.ArrayList; -import java.util.List; -import java.util.StringTokenizer; - -import org.eclipse.jface.text.IRegion; -import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages; -import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; -import org.jboss.tools.common.text.ext.util.Utils; -import org.w3c.dom.Document; -import org.w3c.dom.Element; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; - -/** - * @author Jeremy - * - */ -public class TLDAttributeNameHyperlink extends JumpToHyperlink { - protected String getDestinationAxis() { - return "/taglib/tag/attribute/name/"; //$NON-NLS-1$ - } - = - protected NodeList getRootElementsToSearch (IRegion region) { - StructuredModelWrapper smw =3D new StructuredModelWrapper(); - try { - smw.init(getDocument()); - Document xmlDocument =3D smw.getDocument(); - if (xmlDocument =3D=3D null) return null; - - Node n =3D Utils.findNodeForOffset(xmlDocument, region.getOffset()); - - Element tagElement =3D null; - while(n !=3D null && tagElement =3D=3D null) { - n =3D n.getParentNode(); - if (n instanceof Element && validAxis(n, "/taglib/tag/")) { //$NON-NLS= -1$ - tagElement =3D (Element)n; - } - } - if (tagElement =3D=3D null) - return null; - = - return tagElement.getChildNodes(); - } finally { - smw.dispose(); - } - } - = - private boolean validAxis(Node n, String validAxisEnding) { - if (validAxisEnding =3D=3D null || validAxisEnding.lastIndexOf('/') =3D= =3D -1) return false; - StringTokenizer st =3D new StringTokenizer(validAxisEnding, "/"); //$NON= -NLS-1$ - List tokens =3D new ArrayList(); - while (st.hasMoreTokens()) { - tokens.add(st.nextToken()); - } - if (tokens.size() =3D=3D 0) return false; - Node currentElement =3D n; - for (int i =3D tokens.size() - 1; i >=3D 0; i--) { - if (currentElement =3D=3D null || !(currentElement instanceof Element)) - return false; - String token =3D (String)tokens.get(i); - if (!token.equals(currentElement.getNodeName())) - return false; - currentElement =3D currentElement.getParentNode(); - } - return true; - } - - /* - * (non-Javadoc) - * = - * @see IHyperlink#getHyperlinkText() - */ - public String getHyperlinkText() { - return Messages.BrowseToTLDAttributeNameDeclaration; - } - -} Deleted: trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss= /tools/common/text/ext/hyperlink/TaglibDefinitionFilesHyperlinkPartitioner.= java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/hyperlink/TaglibDefinitionFilesHyperlinkPartitioner.java = 2009-09-25 15:33:04 UTC (rev 17753) +++ trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/hyperlink/TaglibDefinitionFilesHyperlinkPartitioner.java = 2009-09-25 15:57:36 UTC (rev 17754) @@ -1,57 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007-2009 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributor: - * Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ -package org.jboss.tools.common.text.ext.hyperlink; - -import org.eclipse.jface.text.IDocument; -import org.jboss.tools.common.text.ext.hyperlink.xml.XMLClassHyperlinkPart= itioner; -import org.jboss.tools.common.text.ext.hyperlink.xml.XMLTextHyperlinkParti= tioner; -import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; -import org.jboss.tools.common.text.ext.util.Utils; -import org.w3c.dom.Document; -import org.w3c.dom.Node; -import org.w3c.dom.Text; - -/** - * @author mareshkau - * - */ -public class TaglibDefinitionFilesHyperlinkPartitioner extends XMLTextHype= rlinkPartitioner { - - public static final String TAGLIB_XML_PARTITION =3D "org.jboss.tools.comm= on.text.ext.xml.TAGLIB_XML"; //$NON-NLS-1$ - /* (non-Javadoc) - * @see org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlinkPartit= ioner#parse(org.eclipse.jface.text.IDocument, org.jboss.tools.common.text.e= xt.hyperlink.IHyperlinkRegion) - */ - /** - * @see com.ibm.sse.editor.extensions.hyperlink.IHyperlinkPartitionRecogn= izer#recognize(org.eclipse.jface.text.IDocument, com.ibm.sse.editor.extensi= ons.hyperlink.IHyperlinkRegion) - */ - @Override - public boolean recognize(IDocument document, IHyperlinkRegion region) { - StructuredModelWrapper smw =3D new StructuredModelWrapper(); - try { - smw.init(document); - Document xmlDocument =3D smw.getDocument(); - if (xmlDocument =3D=3D null) return false; - = - Node n =3D Utils.findNodeForOffset(xmlDocument, region.getOffset()); - return (n instanceof Text); - } finally { - smw.dispose(); - } - } - - @Override - protected String getPartitionType(String axis) { - if(axis!=3Dnull && axis.contains("class")) { //$NON-NLS-1$ - return XMLClassHyperlinkPartitioner.XML_CLASS_PARTITION; - } - return TAGLIB_XML_PARTITION; - } -} --===============7456398037961086272==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 11:59:22 2009 Content-Type: multipart/mixed; boundary="===============4488341424213271317==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17755 - in trunk/jst/plugins/org.jboss.tools.jst.text.ext: src/org/jboss/tools/jst/text/ext/hyperlink/jsp and 1 other directory. Date: Fri, 25 Sep 2009 11:59:22 -0400 Message-ID: <200909251559.n8PFxMJJ012613@svn01.web.mwc.hst.phx2.redhat.com> --===============4488341424213271317== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 11:59:22 -0400 (Fri, 25 Sep 2009) New Revision: 17755 Modified: trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin.xml trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPCSSClassHyperlinkPartitioner.java Log: https://jira.jboss.org/jira/browse/JBIDE-4950 Modified: trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin.xml 2009-09-25 15= :57:36 UTC (rev 17754) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin.xml 2009-09-25 15= :59:22 UTC (rev 17755) @@ -2,4 +2,391 @@ = + + = + + + + + + + + + + + + + + + + + + + + + + + + + + + = + + = + + = + + = + + + + + = + = + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + = + + + + + + + + = + + + + + + + + + = + + + + + + + + = + + + + + + + + = + + + + + + + + + + + + + + + + + + + + = + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + = + + = + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + = + + + + + + + + + + + + + + + + + + + + = + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Modified: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tool= s/jst/text/ext/hyperlink/jsp/JSPCSSClassHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPCSSClassHyperlinkPartitioner.java 2009-09-25 15:5= 7:36 UTC (rev 17754) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPCSSClassHyperlinkPartitioner.java 2009-09-25 15:5= 9:22 UTC (rev 17755) @@ -23,7 +23,7 @@ import org.jboss.tools.common.text.ext.util.Utils; = /** - * * @deprecated see org.jboss.tools.common.text.ext.hyperlink.CSSClassHy= perlinkPartitioner + * * @deprecated see org.jboss.tools.jst.text.ext.hyperlink.CSSClassHyper= linkPartitioner * @author Jeremy */ public class JSPCSSClassHyperlinkPartitioner extends AbstractHyperlinkPart= itioner /*implements IHyperlinkPartitionRecognizer */{ --===============4488341424213271317==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 12:04:52 2009 Content-Type: multipart/mixed; boundary="===============5718896206621113874==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17756 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editors/dnd. Date: Fri, 25 Sep 2009 12:04:52 -0400 Message-ID: <200909251604.n8PG4qLc014100@svn01.web.mwc.hst.phx2.redhat.com> --===============5718896206621113874== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 12:04:52 -0400 (Fri, 25 Sep 2009) New Revision: 17756 Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/DropUtils.java Log: https://jira.jboss.org/jira/browse/JBIDE-4950 Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/editors/dnd/DropUtils.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/DropUtils.java 2009-09-25 15:59:22 UTC (rev 1= 7755) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/DropUtils.java 2009-09-25 16:04:52 UTC (rev 1= 7756) @@ -18,6 +18,7 @@ import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.Path; import org.jboss.tools.common.model.XModelObject; @@ -25,8 +26,6 @@ import org.jboss.tools.common.model.ui.ModelUIPlugin; import org.jboss.tools.common.model.ui.editors.dnd.composite.TagAttributes= Composite; import org.jboss.tools.common.model.util.EclipseResourceUtil; -import org.jboss.tools.jst.web.tld.IWebProject; -import org.jboss.tools.jst.web.tld.WebProjectFactory; = /** * = @@ -94,8 +93,10 @@ container =3D (IContainer)EclipseResourceUtil.getResource(o); } if(container =3D=3D null) { - IWebProject p =3D WebProjectFactory.instance.getWebProject(modelNature.= getModel()); - container =3D ResourcesPlugin.getWorkspace().getRoot().getContainerForL= ocation(new Path(p.getWebRootLocation())); + IResource r =3D EclipseResourceUtil.getFirstWebContentResource(project); + if(r instanceof IContainer) { + container =3D (IContainer)r; + } } return container; } --===============5718896206621113874==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 12:09:21 2009 Content-Type: multipart/mixed; boundary="===============4317823453539376578==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17757 - trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tld. Date: Fri, 25 Sep 2009 12:09:21 -0400 Message-ID: <200909251609.n8PG9LXI015144@svn01.web.mwc.hst.phx2.redhat.com> --===============4317823453539376578== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 12:09:21 -0400 (Fri, 25 Sep 2009) New Revision: 17757 Added: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tl= d/ITaglibMapping.java trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tl= d/IWebProject.java trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tl= d/IWebProjectFactory.java trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tl= d/WebProjectFactory.java Log: https://jira.jboss.org/jira/browse/JBIDE-4950 Added: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/we= b/tld/ITaglibMapping.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/ITaglibMapping.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/ITaglibMapping.java 2009-09-25 16:09:21 UTC (rev 17757) @@ -0,0 +1,21 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.web.tld; + +import org.jboss.tools.common.model.XModelObject; + +public interface ITaglibMapping { + public XModelObject getTaglibObject(String uri); + public void invalidate(); + public String getTaglibPath(String uri); + public String resolveURI(String uri); + = +} Added: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/we= b/tld/IWebProject.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/IWebProject.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/IWebProject.java 2009-09-25 16:09:21 UTC (rev 17757) @@ -0,0 +1,19 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.web.tld; + +import org.jboss.tools.common.model.XModelObject; + +public interface IWebProject { + public ITaglibMapping getTaglibMapping(); + public String getWebRootLocation(); + public String getPathInWebRoot(XModelObject o); +} Added: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/we= b/tld/IWebProjectFactory.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/IWebProjectFactory.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/IWebProjectFactory.java 2009-09-25 16:09:21 UTC (rev 17757) @@ -0,0 +1,17 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.web.tld; + +import org.jboss.tools.common.model.XModel; + +public interface IWebProjectFactory { + public IWebProject getWebProject(XModel model); +} Added: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/we= b/tld/WebProjectFactory.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/WebProjectFactory.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/WebProjectFactory.java 2009-09-25 16:09:21 UTC (rev 17757) @@ -0,0 +1,25 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.web.tld; + +import org.jboss.tools.common.model.plugin.ModelPlugin; +import org.jboss.tools.common.model.util.ModelFeatureFactory; + +public class WebProjectFactory { + public static IWebProjectFactory instance =3D null; + static { + try { + instance =3D (IWebProjectFactory)ModelFeatureFactory.getInstance().crea= teFeatureInstance("org.jboss.tools.jst.web.tld.WebProjectFactoryImpl"); //$= NON-NLS-1$ + } catch (ClassCastException e) { + ModelPlugin.getPluginLog().logError(e); + } + } +} --===============4317823453539376578==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 12:09:47 2009 Content-Type: multipart/mixed; boundary="===============6946343272098994854==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17758 - trunk/jst/plugins/org.jboss.tools.jst.text.ext/META-INF. Date: Fri, 25 Sep 2009 12:09:47 -0400 Message-ID: <200909251609.n8PG9lEZ015213@svn01.web.mwc.hst.phx2.redhat.com> --===============6946343272098994854== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 12:09:46 -0400 (Fri, 25 Sep 2009) New Revision: 17758 Modified: trunk/jst/plugins/org.jboss.tools.jst.text.ext/META-INF/MANIFEST.MF Log: https://jira.jboss.org/jira/browse/JBIDE-4950 Modified: trunk/jst/plugins/org.jboss.tools.jst.text.ext/META-INF/MANIFEST.= MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/META-INF/MANIFEST.MF 200= 9-09-25 16:09:21 UTC (rev 17757) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/META-INF/MANIFEST.MF 200= 9-09-25 16:09:46 UTC (rev 17758) @@ -14,6 +14,7 @@ Bundle-Localization: plugin Require-Bundle: org.jboss.tools.common.model, org.jboss.tools.common.text.ext, + org.jboss.tools.jst.web, org.eclipse.ui.ide, org.eclipse.ui, org.eclipse.jface.text, --===============6946343272098994854==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 12:10:33 2009 Content-Type: multipart/mixed; boundary="===============2201271264472567053==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17759 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/jst/web/tld. Date: Fri, 25 Sep 2009 12:10:33 -0400 Message-ID: <200909251610.n8PGAXSY015603@svn01.web.mwc.hst.phx2.redhat.com> --===============2201271264472567053== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 12:10:32 -0400 (Fri, 25 Sep 2009) New Revision: 17759 Removed: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/js= t/web/tld/ITaglibMapping.java trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/js= t/web/tld/IWebProject.java trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/js= t/web/tld/IWebProjectFactory.java trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/js= t/web/tld/WebProjectFactory.java Log: https://jira.jboss.org/jira/browse/JBIDE-4950 Deleted: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/to= ols/jst/web/tld/ITaglibMapping.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/ITaglibMapping.java 2009-09-25 16:09:46 UTC (rev 17758) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/ITaglibMapping.java 2009-09-25 16:10:32 UTC (rev 17759) @@ -1,21 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.jst.web.tld; - -import org.jboss.tools.common.model.XModelObject; - -public interface ITaglibMapping { - public XModelObject getTaglibObject(String uri); - public void invalidate(); - public String getTaglibPath(String uri); - public String resolveURI(String uri); - = -} Deleted: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/to= ols/jst/web/tld/IWebProject.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/IWebProject.java 2009-09-25 16:09:46 UTC (rev 17758) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/IWebProject.java 2009-09-25 16:10:32 UTC (rev 17759) @@ -1,19 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.jst.web.tld; - -import org.jboss.tools.common.model.XModelObject; - -public interface IWebProject { - public ITaglibMapping getTaglibMapping(); - public String getWebRootLocation(); - public String getPathInWebRoot(XModelObject o); -} Deleted: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/to= ols/jst/web/tld/IWebProjectFactory.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/IWebProjectFactory.java 2009-09-25 16:09:46 UTC (rev 17758) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/IWebProjectFactory.java 2009-09-25 16:10:32 UTC (rev 17759) @@ -1,17 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.jst.web.tld; - -import org.jboss.tools.common.model.XModel; - -public interface IWebProjectFactory { - public IWebProject getWebProject(XModel model); -} Deleted: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/to= ols/jst/web/tld/WebProjectFactory.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/WebProjectFactory.java 2009-09-25 16:09:46 UTC (rev 17758) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/WebProjectFactory.java 2009-09-25 16:10:32 UTC (rev 17759) @@ -1,25 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.jst.web.tld; - -import org.jboss.tools.common.model.plugin.ModelPlugin; -import org.jboss.tools.common.model.util.ModelFeatureFactory; - -public class WebProjectFactory { - public static IWebProjectFactory instance =3D null; - static { - try { - instance =3D (IWebProjectFactory)ModelFeatureFactory.getInstance().crea= teFeatureInstance("org.jboss.tools.jst.web.tld.WebProjectFactoryImpl"); //$= NON-NLS-1$ - } catch (ClassCastException e) { - ModelPlugin.getPluginLog().logError(e); - } - } -} --===============2201271264472567053==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 12:14:10 2009 Content-Type: multipart/mixed; boundary="===============6089024843311567190==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17760 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editors/dnd/context. Date: Fri, 25 Sep 2009 12:14:10 -0400 Message-ID: <200909251614.n8PGEAbp016180@svn01.web.mwc.hst.phx2.redhat.com> --===============6089024843311567190== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 12:14:10 -0400 (Fri, 25 Sep 2009) New Revision: 17760 Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/editors/dnd/context/DropContext.java Log: https://jira.jboss.org/jira/browse/JBIDE-4950 Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/editors/dnd/context/DropContext.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/context/DropContext.java 2009-09-25 16:10:32 = UTC (rev 17759) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/editors/dnd/context/DropContext.java 2009-09-25 16:14:10 = UTC (rev 17760) @@ -38,7 +38,6 @@ import org.jboss.tools.common.model.ui.dnd.VpeTextDropAction; import org.jboss.tools.common.model.ui.editors.dnd.DropUtils; import org.jboss.tools.common.model.util.EclipseResourceUtil; -import org.jboss.tools.jst.web.tld.TLDUtil; = /** * @author glory @@ -171,11 +170,21 @@ private boolean dropAsFileObject(XModelObject o) { if(o =3D=3D null) return false; if(o.getFileType() !=3D XModelObject.FILE || isOverAttributeValue) retur= n false; - if(TLDUtil.isTaglib(o)) return false; + if(isTaglib(o)) return false; String extension =3D o.getAttributeValue("extension"); //$NON-NLS-1$ return extension !=3D null && isExtensionMapped(extension); } - = + + //TODO do not reference tld here + //TLDUtil.isTaglib(o) + static String FILE_ENTITIES =3D ".FileTLD_PRO.FileTLD_1_2.FileTLD_2_0.= FileTLD_2_1."; //$NON-NLS-1$ + public static boolean isTaglib(XModelObject o) { + return isOfEntity(o, FILE_ENTITIES); + } + private static boolean isOfEntity(XModelObject o, String entities) { + return entities.indexOf("." + o.getModelEntity().getName() + ".") = >=3D 0; //$NON-NLS-1$//$NON-NLS-2$ + } + class TransferHolder { Transfer transfer; TransferProcessor processor; --===============6089024843311567190==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 12:21:56 2009 Content-Type: multipart/mixed; boundary="===============4491691938055317110==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17761 - in trunk/common/plugins/org.jboss.tools.common.model: src/org/jboss/tools/jst/web/tld and 1 other directory. Date: Fri, 25 Sep 2009 12:21:56 -0400 Message-ID: <200909251621.n8PGLuGk018220@svn01.web.mwc.hst.phx2.redhat.com> --===============4491691938055317110== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 12:21:56 -0400 (Fri, 25 Sep 2009) New Revision: 17761 Removed: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/js= t/web/tld/TLDUtil.java Modified: trunk/common/plugins/org.jboss.tools.common.model/META-INF/MANIFEST.MF Log: https://jira.jboss.org/jira/browse/JBIDE-4950 Modified: trunk/common/plugins/org.jboss.tools.common.model/META-INF/MANIFE= ST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/META-INF/MANIFEST.MF = 2009-09-25 16:14:10 UTC (rev 17760) +++ trunk/common/plugins/org.jboss.tools.common.model/META-INF/MANIFEST.MF = 2009-09-25 16:21:56 UTC (rev 17761) @@ -59,7 +59,6 @@ org.jboss.tools.common.model.loaders.impl, org.jboss.tools.common.model.search, org.jboss.tools.common.model.search.impl, - org.jboss.tools.jst.web.tld, images, org.jboss.tools.common.model.refactoring Require-Bundle: org.jboss.tools.common;visibility:=3Dreexport, Deleted: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/to= ols/jst/web/tld/TLDUtil.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/TLDUtil.java 2009-09-25 16:14:10 UTC (rev 17760) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/j= st/web/tld/TLDUtil.java 2009-09-25 16:21:56 UTC (rev 17761) @@ -1,51 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.jst.web.tld; - -import org.jboss.tools.common.model.*; - -public class TLDUtil { - static String FILE_ENTITIES =3D ".FileTLD_PRO.FileTLD_1_2.FileTLD_2_0.= FileTLD_2_1."; //$NON-NLS-1$ - static String TAG_ENTITIES =3D ".TLDTag.TLDTag12.TLDTag21."; //$NON-NL= S-1$ - static String ATTR_ENTITIES =3D ".TLDAttribute.TLDAttribute12."; //$NO= N-NLS-1$ - - public static boolean isTaglib(XModelObject o) { - return isOfEntity(o, FILE_ENTITIES); - } - - public static boolean isTag(XModelObject o) { - return isOfEntity(o, TAG_ENTITIES); - } - - public static boolean isAttribute(XModelObject o) { - return isOfEntity(o, ATTR_ENTITIES); - } - - private static boolean isOfEntity(XModelObject o, String entities) { - return entities.indexOf("." + o.getModelEntity().getName() + ".") = >=3D 0; //$NON-NLS-1$//$NON-NLS-2$ - } - - public static String getTagDescription(XModelObject o) { - String attr =3D (o.getModelEntity().getAttribute("info") !=3D null= ) ? "info" : "description"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - String s =3D o.getAttributeValue(attr); - s =3D (s =3D=3D null) ? "" : s.trim(); //$NON-NLS-1$ - StringBuffer sb =3D new StringBuffer(); - for (int i =3D 0; i < s.length(); i++) { - char c =3D s.charAt(i); - if(c =3D=3D '<') sb.append("<"); //$NON-NLS-1$ - else if(c =3D=3D '>') sb.append(">"); //$NON-NLS-1$ - else sb.append(c); - } - return sb.toString(); - } - = -} - --===============4491691938055317110==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 12:22:49 2009 Content-Type: multipart/mixed; boundary="===============2334874656953743251==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17762 - trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tld. Date: Fri, 25 Sep 2009 12:22:49 -0400 Message-ID: <200909251622.n8PGMnwj018309@svn01.web.mwc.hst.phx2.redhat.com> --===============2334874656953743251== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 12:22:49 -0400 (Fri, 25 Sep 2009) New Revision: 17762 Added: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tl= d/TLDUtil.java Log: https://jira.jboss.org/jira/browse/JBIDE-4950 Added: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/we= b/tld/TLDUtil.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/TLDUtil.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/TLDUtil.java 2009-09-25 16:22:49 UTC (rev 17762) @@ -0,0 +1,51 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.jst.web.tld; + +import org.jboss.tools.common.model.*; + +public class TLDUtil { + static String FILE_ENTITIES =3D ".FileTLD_PRO.FileTLD_1_2.FileTLD_2_0.= FileTLD_2_1."; //$NON-NLS-1$ + static String TAG_ENTITIES =3D ".TLDTag.TLDTag12.TLDTag21."; //$NON-NL= S-1$ + static String ATTR_ENTITIES =3D ".TLDAttribute.TLDAttribute12."; //$NO= N-NLS-1$ + + public static boolean isTaglib(XModelObject o) { + return isOfEntity(o, FILE_ENTITIES); + } + + public static boolean isTag(XModelObject o) { + return isOfEntity(o, TAG_ENTITIES); + } + + public static boolean isAttribute(XModelObject o) { + return isOfEntity(o, ATTR_ENTITIES); + } + + private static boolean isOfEntity(XModelObject o, String entities) { + return entities.indexOf("." + o.getModelEntity().getName() + ".") = >=3D 0; //$NON-NLS-1$//$NON-NLS-2$ + } + + public static String getTagDescription(XModelObject o) { + String attr =3D (o.getModelEntity().getAttribute("info") !=3D null= ) ? "info" : "description"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + String s =3D o.getAttributeValue(attr); + s =3D (s =3D=3D null) ? "" : s.trim(); //$NON-NLS-1$ + StringBuffer sb =3D new StringBuffer(); + for (int i =3D 0; i < s.length(); i++) { + char c =3D s.charAt(i); + if(c =3D=3D '<') sb.append("<"); //$NON-NLS-1$ + else if(c =3D=3D '>') sb.append(">"); //$NON-NLS-1$ + else sb.append(c); + } + return sb.toString(); + } + = +} + --===============2334874656953743251==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 12:38:02 2009 Content-Type: multipart/mixed; boundary="===============8610720339731683559==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17763 - in trunk/hibernatetools/docs/reference/en: modules and 1 other directory. Date: Fri, 25 Sep 2009 12:38:02 -0400 Message-ID: <200909251638.n8PGc2Tw020832@svn01.web.mwc.hst.phx2.redhat.com> --===============8610720339731683559== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: chukhutsina Date: 2009-09-25 12:38:02 -0400 (Fri, 25 Sep 2009) New Revision: 17763 Added: trunk/hibernatetools/docs/reference/en/images/plugins/autoLayout.png trunk/hibernatetools/docs/reference/en/images/plugins/expandState.png trunk/hibernatetools/docs/reference/en/images/plugins/layout.png trunk/hibernatetools/docs/reference/en/images/plugins/map_diagram1.png trunk/hibernatetools/docs/reference/en/images/plugins/map_diagram2.png trunk/hibernatetools/docs/reference/en/images/plugins/map_diagram3.png trunk/hibernatetools/docs/reference/en/images/plugins/plugins_18_f.png trunk/hibernatetools/docs/reference/en/images/plugins/plugins_18_g.png trunk/hibernatetools/docs/reference/en/images/plugins/toggleConnections.= png trunk/hibernatetools/docs/reference/en/images/plugins/visibleState.png Modified: trunk/hibernatetools/docs/reference/en/images/plugins/plugins_18_c.png trunk/hibernatetools/docs/reference/en/images/plugins/plugins_18_e.png trunk/hibernatetools/docs/reference/en/modules/plugins.xml Log:

https://jira.jboss.org/jira/browse/JBDS-863 -Updated the information abo= ut Mapping Diagram in the section 4.9.1.1 of Doc-Hibernate.

Added: trunk/hibernatetools/docs/reference/en/images/plugins/autoLayout.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/hibernatetools/docs/reference/en/images/plugins/= autoLayout.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/hibernatetools/docs/reference/en/images/plugins/expandState.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/hibernatetools/docs/reference/en/images/plugins/= expandState.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/hibernatetools/docs/reference/en/images/plugins/layout.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/hibernatetools/docs/reference/en/images/plugins/= layout.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/hibernatetools/docs/reference/en/images/plugins/map_diagram1.p= ng =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/hibernatetools/docs/reference/en/images/plugins/= map_diagram1.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/hibernatetools/docs/reference/en/images/plugins/map_diagram2.p= ng =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/hibernatetools/docs/reference/en/images/plugins/= map_diagram2.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/hibernatetools/docs/reference/en/images/plugins/map_diagram3.p= ng =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/hibernatetools/docs/reference/en/images/plugins/= map_diagram3.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/hibernatetools/docs/reference/en/images/plugins/plugins_18_= c.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/hibernatetools/docs/reference/en/images/plugins/plugins_18_= e.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Added: trunk/hibernatetools/docs/reference/en/images/plugins/plugins_18_f.p= ng =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/hibernatetools/docs/reference/en/images/plugins/= plugins_18_f.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/hibernatetools/docs/reference/en/images/plugins/plugins_18_g.p= ng =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/hibernatetools/docs/reference/en/images/plugins/= plugins_18_g.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/hibernatetools/docs/reference/en/images/plugins/toggleConnecti= ons.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/hibernatetools/docs/reference/en/images/plugins/= toggleConnections.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/hibernatetools/docs/reference/en/images/plugins/visibleState.p= ng =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/hibernatetools/docs/reference/en/images/plugins/= visibleState.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/hibernatetools/docs/reference/en/modules/plugins.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/docs/reference/en/modules/plugins.xml 2009-09-25 1= 6:22:49 UTC (rev 17762) +++ trunk/hibernatetools/docs/reference/en/modules/plugins.xml 2009-09-25 1= 6:38:02 UTC (rev 17763) @@ -1787,7 +1787,7 @@ In order to get a visual feel on how entities are related as= well as view their structures, a Mapping Diagram is provided. = It is available by right clicking on the entity you want a mapping diagram for and then c= hoosing - Open Mapping Diagram. + Mapping Diagram. =
Mapping Diagram @@ -1801,8 +1801,47 @@
- - For better navigating on the Diagram use Outline v= iew which is + To make Mapping Diagram usage easier y= ou can use Rules, + Grid,Snap to Geometry = checkboxes in the + View menu. +
+ View menu + = + + + + + +
+ If you will select + Rules checkbox, the view print p= age scale will be added to the page. + The numbers on the scale show its size in inches.If you click on= the scale a + Ruler Guide will appear on the= diagram. + You can connect any diagram item to it.To connect the items you = should move their tops + to the Ruler Guide. And while moving the ruler guide, the items = will be moved together with it as a whole. +
+ Moving the Ruler guide + = + + + + + +
+ If you'll select + Grid checkbox, the grid will app= ear on the diagram. +
+ Grid on Mapping diagram + = + + + + + +
+ The checkbox + Snap to Geometry helps to put th= e items of the diagram into allineation with the grid. + For better navigating through the diagram use Outl= ine view which is available in the structural and graphical modes.
Navigating in the Structural Mode @@ -1854,7 +1893,7 @@
= - Finally, if you need to have your Diagram exported as .png + If you need to have your Diagram exported as .png , .jpeg @@ -1872,13 +1911,54 @@ - - As you can see on the figure above, Undo= , + Using + Toggle connections option( + + ) you can hide all the connectio= ns on the diagram except the ones, + that connect POJO class to DB table. +
+ Toggle connections option usage + = + + + + + +
+ + Auto layout ( + + ) is used to dispose all the ite= ms of the diagram in a standard manner. + As you can see on the figure above, Coll= apse All, - Redo + Expand All and - Auto layout + Select All options are also available through the context menu.= + When you open the context menu while clicking an item on the= diagram, it quite differs from the one described before. +
+ Context menu in mapping item + = + + + + + +
+ Now you can see two extra options in the menu: + Toggle visible state, + Toggle expand state. + + + Toggle visible state ( + + ) is used to hide/show an ite= m on the mapping diagram. + + Toggle expand state ( + + ) is used for expanding/colla= psing fields of the item. + + All the described types of the context menu are also availab= le in the Outline view.
= --===============8610720339731683559==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 12:45:57 2009 Content-Type: multipart/mixed; boundary="===============2344315313892917405==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17764 - trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/text/ext/hyperlink. Date: Fri, 25 Sep 2009 12:45:57 -0400 Message-ID: <200909251645.n8PGjvph021930@svn01.web.mwc.hst.phx2.redhat.com> --===============2344315313892917405== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 12:45:56 -0400 (Fri, 25 Sep 2009) New Revision: 17764 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/BundleHyperlink.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/JSPBundleHyperlinkPartitioner.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/JSPForwardHyperlinkPartitioner.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/JSPLoadBundleHyperlinkPartitioner.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/JsfJSPTagAttributeHyperlink.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/t= ext/ext/hyperlink/LoadBundleHyperlink.java Log: https://jira.jboss.org/jira/browse/JBIDE-4950 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/BundleHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/BundleHyperlink.java 2009-09-25 16:38:02 UTC (rev 17763) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/BundleHyperlink.java 2009-09-25 16:45:56 UTC (rev 17764) @@ -24,7 +24,7 @@ import org.jboss.tools.common.text.ext.hyperlink.XModelBasedHyperlink; import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; -import org.jboss.tools.common.text.ext.util.TaglibManagerWrapper; +import org.jboss.tools.jst.text.ext.util.TaglibManagerWrapper; import org.jboss.tools.common.text.ext.util.Utils; import org.jboss.tools.jsf.text.ext.JSFExtensionsPlugin; import org.jboss.tools.jst.web.project.list.WebPromptingProvider; Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/JSPBundleHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPBundleHyperlinkPartitioner.java 2009-09-25 16:38:02 U= TC (rev 17763) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPBundleHyperlinkPartitioner.java 2009-09-25 16:45:56 U= TC (rev 17764) @@ -27,7 +27,7 @@ import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkPartitionRecogn= izer; import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; -import org.jboss.tools.common.text.ext.util.TaglibManagerWrapper; +import org.jboss.tools.jst.text.ext.util.TaglibManagerWrapper; import org.jboss.tools.common.text.ext.util.Utils; import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPRootHyperlinkPartitio= ner; import org.jboss.tools.jsf.text.ext.JSFExtensionsPlugin; Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/JSPForwardHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPForwardHyperlinkPartitioner.java 2009-09-25 16:38:02 = UTC (rev 17763) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPForwardHyperlinkPartitioner.java 2009-09-25 16:45:56 = UTC (rev 17764) @@ -22,7 +22,7 @@ import org.jboss.tools.common.text.ext.hyperlink.HyperlinkRegion; import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; -import org.jboss.tools.common.text.ext.util.TaglibManagerWrapper; +import org.jboss.tools.jst.text.ext.util.TaglibManagerWrapper; import org.jboss.tools.common.text.ext.util.Utils; import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPRootHyperlinkPartitio= ner; import org.jboss.tools.jsf.text.ext.JSFExtensionsPlugin; Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/JSPLoadBundleHyperlinkPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPLoadBundleHyperlinkPartitioner.java 2009-09-25 16:38:= 02 UTC (rev 17763) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JSPLoadBundleHyperlinkPartitioner.java 2009-09-25 16:45:= 56 UTC (rev 17764) @@ -22,7 +22,7 @@ import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkPartitionRecogn= izer; import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkRegion; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; -import org.jboss.tools.common.text.ext.util.TaglibManagerWrapper; +import org.jboss.tools.jst.text.ext.util.TaglibManagerWrapper; import org.jboss.tools.common.text.ext.util.Utils; import org.jboss.tools.jst.text.ext.hyperlink.jsp.JSPRootHyperlinkPartitio= ner; import org.jboss.tools.jsf.text.ext.JSFExtensionsPlugin; Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/JsfJSPTagAttributeHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JsfJSPTagAttributeHyperlink.java 2009-09-25 16:38:02 UTC= (rev 17763) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/JsfJSPTagAttributeHyperlink.java 2009-09-25 16:45:56 UTC= (rev 17764) @@ -21,7 +21,7 @@ import org.jboss.tools.common.model.XModel; import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlink; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; -import org.jboss.tools.common.text.ext.util.TaglibManagerWrapper; +import org.jboss.tools.jst.text.ext.util.TaglibManagerWrapper; import org.jboss.tools.common.text.ext.util.Utils; import org.jboss.tools.jsf.text.ext.JSFExtensionsPlugin; import org.jboss.tools.jsf.text.ext.JSFTextExtMessages; Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tool= s/jsf/text/ext/hyperlink/LoadBundleHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/LoadBundleHyperlink.java 2009-09-25 16:38:02 UTC (rev 17= 763) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext/src/org/jboss/tools/jsf/= text/ext/hyperlink/LoadBundleHyperlink.java 2009-09-25 16:45:56 UTC (rev 17= 764) @@ -19,7 +19,7 @@ import org.jboss.tools.common.text.ext.hyperlink.XModelBasedHyperlink; import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; -import org.jboss.tools.common.text.ext.util.TaglibManagerWrapper; +import org.jboss.tools.jst.text.ext.util.TaglibManagerWrapper; import org.jboss.tools.common.text.ext.util.Utils; import org.jboss.tools.jsf.text.ext.JSFExtensionsPlugin; import org.jboss.tools.jst.web.project.list.WebPromptingProvider; --===============2344315313892917405==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 12:47:19 2009 Content-Type: multipart/mixed; boundary="===============8049172986104167284==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17765 - trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/text/ext/hyperlink/jsp. Date: Fri, 25 Sep 2009 12:47:19 -0400 Message-ID: <200909251647.n8PGlJRt022648@svn01.web.mwc.hst.phx2.redhat.com> --===============8049172986104167284== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 12:47:19 -0400 (Fri, 25 Sep 2009) New Revision: 17765 Modified: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/t= ext/ext/hyperlink/jsp/JSPElementNameHyperlink.java Log: https://jira.jboss.org/jira/browse/JBIDE-4950 Modified: trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tool= s/jst/text/ext/hyperlink/jsp/JSPElementNameHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPElementNameHyperlink.java 2009-09-25 16:45:56 UTC= (rev 17764) +++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/src/org/jboss/tools/jst/= text/ext/hyperlink/jsp/JSPElementNameHyperlink.java 2009-09-25 16:47:19 UTC= (rev 17765) @@ -19,11 +19,10 @@ import org.jboss.tools.common.model.XModel; import org.jboss.tools.common.model.XModelObject; import org.jboss.tools.common.model.util.FindObjectHelper; -import org.jboss.tools.common.text.ext.ExtensionsPlugin; import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlink; import org.jboss.tools.common.text.ext.hyperlink.xpl.Messages; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; -import org.jboss.tools.common.text.ext.util.TaglibManagerWrapper; +import org.jboss.tools.jst.text.ext.util.TaglibManagerWrapper; import org.jboss.tools.jst.web.tld.ITaglibMapping; import org.jboss.tools.jst.web.tld.IWebProject; import org.jboss.tools.jst.web.tld.WebProjectFactory; --===============8049172986104167284==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 12:50:29 2009 Content-Type: multipart/mixed; boundary="===============3542300981164725684==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17766 - in trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces: src/org/jboss/tools/jsf/text/ext/richfaces/hyperlink and 1 other directory. Date: Fri, 25 Sep 2009 12:50:29 -0400 Message-ID: <200909251650.n8PGoTex023101@svn01.web.mwc.hst.phx2.redhat.com> --===============3542300981164725684== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 12:50:28 -0400 (Fri, 25 Sep 2009) New Revision: 17766 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/MANIFE= ST.MF trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/t= ools/jsf/text/ext/richfaces/hyperlink/RichfacesBundleHyperlink.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/t= ools/jsf/text/ext/richfaces/hyperlink/RichfacesJSPBundleHyperlinkPartitione= r.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/t= ools/jsf/text/ext/richfaces/hyperlink/RichfacesJSPLoadBundleHyperlinkPartit= ioner.java trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/t= ools/jsf/text/ext/richfaces/hyperlink/RichfacesLoadBundleHyperlink.java Log: https://jira.jboss.org/jira/browse/JBIDE-4950 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF= /MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/MANIF= EST.MF 2009-09-25 16:47:19 UTC (rev 17765) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/META-INF/MANIF= EST.MF 2009-09-25 16:50:28 UTC (rev 17766) @@ -10,6 +10,7 @@ org.eclipse.ui, org.eclipse.jface.text, org.jboss.tools.common.text.ext, + org.jboss.tools.jst.text.ext, org.jboss.tools.jsf.text.ext, org.jboss.tools.jst.web;bundle-version=3D"2.0.0" Export-Package: org.jboss.tools.jsf.text.ext.richfaces, Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/= jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesBundleHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/= tools/jsf/text/ext/richfaces/hyperlink/RichfacesBundleHyperlink.java 2009-0= 9-25 16:47:19 UTC (rev 17765) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/= tools/jsf/text/ext/richfaces/hyperlink/RichfacesBundleHyperlink.java 2009-0= 9-25 16:50:28 UTC (rev 17766) @@ -15,7 +15,7 @@ = import org.eclipse.jface.text.IRegion; import org.eclipse.ui.IEditorPart; -import org.jboss.tools.common.text.ext.util.TaglibManagerWrapper; +import org.jboss.tools.jst.text.ext.util.TaglibManagerWrapper; import org.jboss.tools.jsf.text.ext.hyperlink.BundleHyperlink; import org.jboss.tools.jsf.text.ext.richfaces.RichfacesExtensionsPlugin; import org.jboss.tools.jst.web.tld.TaglibData; Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/= jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesJSPBundleHyperlinkPar= titioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/= tools/jsf/text/ext/richfaces/hyperlink/RichfacesJSPBundleHyperlinkPartition= er.java 2009-09-25 16:47:19 UTC (rev 17765) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/= tools/jsf/text/ext/richfaces/hyperlink/RichfacesJSPBundleHyperlinkPartition= er.java 2009-09-25 16:50:28 UTC (rev 17766) @@ -16,7 +16,7 @@ import java.util.Set; = import org.eclipse.jface.text.IDocument; -import org.jboss.tools.common.text.ext.util.TaglibManagerWrapper; +import org.jboss.tools.jst.text.ext.util.TaglibManagerWrapper; import org.jboss.tools.jsf.text.ext.hyperlink.JSPBundleHyperlinkPartitione= r; import org.jboss.tools.jsf.text.ext.hyperlink.JsfJSPBundleHyperlinkPartiti= oner; = Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/= jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesJSPLoadBundleHyperlin= kPartitioner.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/= tools/jsf/text/ext/richfaces/hyperlink/RichfacesJSPLoadBundleHyperlinkParti= tioner.java 2009-09-25 16:47:19 UTC (rev 17765) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/= tools/jsf/text/ext/richfaces/hyperlink/RichfacesJSPLoadBundleHyperlinkParti= tioner.java 2009-09-25 16:50:28 UTC (rev 17766) @@ -14,7 +14,7 @@ import java.util.ArrayList; = import org.eclipse.jface.text.IDocument; -import org.jboss.tools.common.text.ext.util.TaglibManagerWrapper; +import org.jboss.tools.jst.text.ext.util.TaglibManagerWrapper; import org.jboss.tools.jsf.text.ext.hyperlink.JSPLoadBundleHyperlinkPartit= ioner; = /** Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/= jboss/tools/jsf/text/ext/richfaces/hyperlink/RichfacesLoadBundleHyperlink.j= ava =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/= tools/jsf/text/ext/richfaces/hyperlink/RichfacesLoadBundleHyperlink.java 20= 09-09-25 16:47:19 UTC (rev 17765) +++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/= tools/jsf/text/ext/richfaces/hyperlink/RichfacesLoadBundleHyperlink.java 20= 09-09-25 16:50:28 UTC (rev 17766) @@ -15,7 +15,7 @@ = import org.eclipse.jface.text.IRegion; import org.eclipse.ui.IEditorPart; -import org.jboss.tools.common.text.ext.util.TaglibManagerWrapper; +import org.jboss.tools.jst.text.ext.util.TaglibManagerWrapper; import org.jboss.tools.jsf.text.ext.hyperlink.LoadBundleHyperlink; import org.jboss.tools.jsf.text.ext.richfaces.RichfacesExtensionsPlugin; import org.jboss.tools.jst.web.tld.TaglibData; --===============3542300981164725684==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 12:52:01 2009 Content-Type: multipart/mixed; boundary="===============8649017892753313936==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17767 - trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools/struts/text/ext/hyperlink. Date: Fri, 25 Sep 2009 12:52:01 -0400 Message-ID: <200909251652.n8PGq1fd023261@svn01.web.mwc.hst.phx2.redhat.com> --===============8649017892753313936== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 12:52:01 -0400 (Fri, 25 Sep 2009) New Revision: 17767 Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools= /struts/text/ext/hyperlink/StrutsJSPTagAttributeHyperlink.java trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tools= /struts/text/ext/hyperlink/StrutsJSPTagNameHyperlink.java Log: https://jira.jboss.org/jira/browse/JBIDE-4950 Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jbos= s/tools/struts/text/ext/hyperlink/StrutsJSPTagAttributeHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsJSPTagAttributeHyperlink.java 2009-09-25 = 16:50:28 UTC (rev 17766) +++ trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsJSPTagAttributeHyperlink.java 2009-09-25 = 16:52:01 UTC (rev 17767) @@ -21,7 +21,7 @@ import org.jboss.tools.common.model.XModel; import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlink; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; -import org.jboss.tools.common.text.ext.util.TaglibManagerWrapper; +import org.jboss.tools.jst.text.ext.util.TaglibManagerWrapper; import org.jboss.tools.common.text.ext.util.Utils; import org.jboss.tools.jst.web.project.list.WebPromptingProvider; import org.jboss.tools.struts.text.ext.StrutsExtensionsPlugin; Modified: trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jbos= s/tools/struts/text/ext/hyperlink/StrutsJSPTagNameHyperlink.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsJSPTagNameHyperlink.java 2009-09-25 16:50= :28 UTC (rev 17766) +++ trunk/struts/plugins/org.jboss.tools.struts.text.ext/src/org/jboss/tool= s/struts/text/ext/hyperlink/StrutsJSPTagNameHyperlink.java 2009-09-25 16:52= :01 UTC (rev 17767) @@ -22,7 +22,7 @@ import org.jboss.tools.common.model.XModel; import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlink; import org.jboss.tools.common.text.ext.util.StructuredModelWrapper; -import org.jboss.tools.common.text.ext.util.TaglibManagerWrapper; +import org.jboss.tools.jst.text.ext.util.TaglibManagerWrapper; import org.jboss.tools.common.text.ext.util.Utils; import org.jboss.tools.jst.web.project.list.WebPromptingProvider; import org.jboss.tools.struts.text.ext.StrutsExtensionsPlugin; --===============8649017892753313936==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 12:52:55 2009 Content-Type: multipart/mixed; boundary="===============3908107855727707874==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17768 - trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/util. Date: Fri, 25 Sep 2009 12:52:55 -0400 Message-ID: <200909251652.n8PGqtWr023318@svn01.web.mwc.hst.phx2.redhat.com> --===============3908107855727707874== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-25 12:52:55 -0400 (Fri, 25 Sep 2009) New Revision: 17768 Removed: trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools= /common/text/ext/util/TaglibManagerWrapper.java Log: https://jira.jboss.org/jira/browse/JBIDE-4950 Deleted: trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss= /tools/common/text/ext/util/TaglibManagerWrapper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/util/TaglibManagerWrapper.java 2009-09-25 16:52:01 UTC (r= ev 17767) +++ trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/util/TaglibManagerWrapper.java 2009-09-25 16:52:55 UTC (r= ev 17768) @@ -1,61 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.common.text.ext.util; - -import java.util.List; - -import org.eclipse.jface.text.IDocument; -import org.eclipse.jst.jsp.core.internal.contentmodel.TaglibController; -import org.eclipse.jst.jsp.core.internal.contentmodel.tld.TLDCMDocumentMan= ager; -import org.eclipse.jst.jsp.core.internal.contentmodel.tld.TaglibTracker; - -public class TaglibManagerWrapper { - TLDCMDocumentManager manager; - List trackers; - - public TaglibManagerWrapper() {} - = - public void init(IDocument document, int offset) { - manager =3D TaglibController.getTLDCMDocumentManager(document); - if(exists()) { - trackers =3D manager.getCMDocumentTrackers(offset); - } - } - = - public boolean exists() { - return manager !=3D null; - } - = - public String getUri(String prefix) { - for (int i =3D 0; i < trackers.size(); i++) { - TaglibTracker tt =3D (TaglibTracker)trackers.get(i); - if (prefix.equals(tt.getPrefix())) { - return tt.getURI(); - } - } - return null; - } - - public String getPrefix(String uri) { - for (int i =3D 0; i < trackers.size(); i++) { - TaglibTracker tt =3D (TaglibTracker)trackers.get(i); - if (uri.equals(tt.getURI())) { - return tt.getPrefix(); - } - } - return null; - } - - public String getCorePrefix() { - return getPrefix("http://java.sun.com/jsf/core"); //$NON-NLS-1$ - } - -} --===============3908107855727707874==-- From jbosstools-commits at lists.jboss.org Fri Sep 25 15:39:24 2009 Content-Type: multipart/mixed; boundary="===============1539193700600371044==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17769 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar. Date: Fri, 25 Sep 2009 15:39:24 -0400 Message-ID: <200909251939.n8PJdO1m024649@svn01.web.mwc.hst.phx2.redhat.com> --===============1539193700600371044== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: yradtsevich Date: 2009-09-25 15:39:23 -0400 (Fri, 25 Sep 2009) New Revision: 17769 Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar/Sel= ectionBar.java Log: issue JBIDE-4945: VPE Selection Bar: provide the ability to select tags bac= k and forward. = https://jira.jboss.org/jira/browse/JBIDE-4945 - NPE fixed Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/sel= bar/SelectionBar.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar/Se= lectionBar.java 2009-09-25 16:52:55 UTC (rev 17768) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar/Se= lectionBar.java 2009-09-25 19:39:23 UTC (rev 17769) @@ -77,6 +77,7 @@ = private Splitter splitter; = + private boolean resizeListenerAdded =3D false; private VpeController vpeController =3D null; private ToolBar selBar =3D null; private FormData selBarData; @@ -123,11 +124,6 @@ // Main composite of the visible splitter cmpToolBar =3D new Composite(splitter, SWT.NONE); cmpToolBar.setLayout(new FormLayout()); - cmpToolBar.addListener(SWT.Resize, new Listener() { - public void handleEvent(Event event) { - updateNodes(true); - } - }); = final Image closeImage =3D PlatformUI.getWorkbench().getSharedImages() .getImage(ISharedImages.IMG_TOOL_DELETE); @@ -405,6 +401,15 @@ if (node !=3D null && node.getNodeType() =3D=3D Node.DOCUMENT_NODE) { addNodeListenerTo(node); } + + if (!resizeListenerAdded ) { + cmpToolBar.addListener(SWT.Resize, new Listener() { + public void handleEvent(Event event) { + updateNodes(true); + } + }); + resizeListenerAdded =3D true; + } } = /** --===============1539193700600371044==-- From jbosstools-commits at lists.jboss.org Sat Sep 26 02:37:21 2009 Content-Type: multipart/mixed; boundary="===============5557160348934463431==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17770 - in trunk: struts/features/org.jboss.tools.struts.feature and 7 other directories. Date: Sat, 26 Sep 2009 02:37:21 -0400 Message-ID: <200909260637.n8Q6bL4H022412@svn01.web.mwc.hst.phx2.redhat.com> --===============5557160348934463431== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-26 02:37:20 -0400 (Sat, 26 Sep 2009) New Revision: 17770 Removed: trunk/struts/plugins/org.jboss.tools.struts/meta/ Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/plugin.xml trunk/struts/features/org.jboss.tools.struts.feature/feature.xml trunk/struts/plugins/org.jboss.tools.struts.ui/META-INF/MANIFEST.MF trunk/struts/plugins/org.jboss.tools.struts.ui/build.properties trunk/struts/plugins/org.jboss.tools.struts.ui/plugin.xml trunk/struts/plugins/org.jboss.tools.struts.validator.ui/META-INF/MANIFE= ST.MF trunk/struts/plugins/org.jboss.tools.struts.validator.ui/build.properties trunk/struts/plugins/org.jboss.tools.struts.validator.ui/plugin.xml trunk/struts/plugins/org.jboss.tools.struts/META-INF/MANIFEST.MF trunk/struts/plugins/org.jboss.tools.struts/build.properties trunk/struts/plugins/org.jboss.tools.struts/plugin.xml trunk/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml Log: https://jira.jboss.org/jira/browse/JBIDE-3628 - Plugins should be .jar's no= t directories for efficiency sake to make Plug-ins were converted to jars: seam.pages.xml struts struts.ui struts.validator.ui Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/plugin.xml 2009-09-25= 19:39:23 UTC (rev 17769) +++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/plugin.xml 2009-09-26= 06:37:20 UTC (rev 17770) @@ -14,11 +14,6 @@ = - - - - = = + version=3D"0.0.0" + unpack=3D"false"/> = + version=3D"0.0.0" + unpack=3D"false"/> = + version=3D"0.0.0" + unpack=3D"false"/> = + uri=3D"platform:/plugin/org.jboss.tools.struts/dtds/struts-confi= g_1_0.dtd"/> + uri=3D"platform:/plugin/org.jboss.tools.struts/dtds/struts-confi= g_1_1.dtd"/> + uri=3D"platform:/plugin/org.jboss.tools.struts/dtds/struts-confi= g_1_2.dtd"/> + uri=3D"platform:/plugin/org.jboss.tools.struts/dtds/validator_1_= 0.dtd"/> = @@ -411,4 +411,4 @@ = - \ No newline at end of file + Modified: trunk/struts/plugins/org.jboss.tools.struts.ui/META-INF/MANIFEST.= MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.ui/META-INF/MANIFEST.MF 200= 9-09-25 19:39:23 UTC (rev 17769) +++ trunk/struts/plugins/org.jboss.tools.struts.ui/META-INF/MANIFEST.MF 200= 9-09-26 06:37:20 UTC (rev 17770) @@ -1,6 +1,5 @@ Manifest-Version: 1.0 Bundle-Name: %pluginName -Bundle-ClassPath: strutsui.jar Bundle-Activator: org.jboss.tools.struts.ui.StrutsUIPlugin Bundle-ManifestVersion: 2 Bundle-Vendor: %providerName Modified: trunk/struts/plugins/org.jboss.tools.struts.ui/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.ui/build.properties 2009-09= -25 19:39:23 UTC (rev 17769) +++ trunk/struts/plugins/org.jboss.tools.struts.ui/build.properties 2009-09= -26 06:37:20 UTC (rev 17770) @@ -1,12 +1,28 @@ -source.strutsui.jar =3D src/,\ - resources/ +source.. =3D src/,\ + resources/ bin.includes =3D plugin.xml,\ plugin.properties,\ images/,\ about.html,\ META-INF/,\ - strutsui.jar,\ + .,\ about.ini,\ about.mappings,\ about.properties,\ jboss_about.png +src.includes =3D src/,\ + resources/,\ + plugin.xml,\ + plugin.properties,\ + jboss_about.png,\ + images/,\ + build.properties,\ + about.properties,\ + about.mappings,\ + about.ini,\ + about.html,\ + META-INF/,\ + .project,\ + .options.template,\ + .cvsignore,\ + .classpath Modified: trunk/struts/plugins/org.jboss.tools.struts.ui/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.ui/plugin.xml 2009-09-25 19= :39:23 UTC (rev 17769) +++ trunk/struts/plugins/org.jboss.tools.struts.ui/plugin.xml 2009-09-26 06= :37:20 UTC (rev 17770) @@ -20,13 +20,13 @@ - + @@ -37,7 +37,7 @@ category=3D"org.jboss.tools.jst.web/org.jboss.tools.struts" class=3D"org.jboss.tools.struts.ui.wizard.project.NewProjectWi= zard" finalPerspective=3D"org.jboss.tools.jst.web.ui.WebDevelopmentP= erspective" - icon=3D"images/xstudio/wizards/new_project.gif" + icon=3D"$nl$/images/xstudio/wizards/new_project.gif" id=3D"org.jboss.tools.struts.ui.wizard.project.NewStrutsProjec= tWizard" name=3D"%newProjectWizard.name" preferredPerspectives=3D"org.jboss.tools.jst.web.ui.WebDevelop= mentPerspective" @@ -50,7 +50,7 @@ category=3D"org.jboss.tools.jst.web/org.jboss.tools.struts" class=3D"org.jboss.tools.struts.ui.wizard.newfile.NewStrutsCon= figFileWizard" finalPerspective=3D"org.jboss.tools.jst.web.ui.WebDevelopmentP= erspective" - icon=3D"images/xstudio/wizards/new_struts.gif" + icon=3D"$nl$/images/xstudio/wizards/new_struts.gif" id=3D"org.jboss.tools.struts.ui.wizard.newfile.NewStrutsConfig= FileWizard" name=3D"%strutsConfig.11" preferredPerspectives=3D"org.jboss.tools.jst.web.ui.WebDevelop= mentPerspective" @@ -65,7 +65,7 @@ category=3D"org.jboss.tools.jst.web/org.jboss.tools.struts" class=3D"org.jboss.tools.struts.ui.wizard.newfile.NewValidatio= nFileWizard" finalPerspective=3D"org.jboss.tools.jst.web.ui.WebDevelopmentP= erspective" - icon=3D"images/xstudio/wizards/new_validator_file.gif" + icon=3D"$nl$/images/xstudio/wizards/new_validator_file.gif" id=3D"org.jboss.tools.struts.ui.wizard.newfile.NewValidationFi= leWizard" name=3D"%new.validation" preferredPerspectives=3D"org.jboss.tools.jst.web.ui.WebDevelop= mentPerspective" @@ -77,7 +77,7 @@ class=3D"org.eclipse.core.resources.IResource"> - @@ -100,7 +100,7 @@ Create a new Project from a WEB project in the file = system. Struts support will be added if it is missing. @@ -108,7 +108,7 @@ Create a new Project from a Struts project in a WAR = file. The content of WAR file will be copied to the workspace. @@ -154,7 +154,7 @@ @@ -169,7 +169,7 @@ - + @@ -187,7 +187,7 @@ - + @@ -248,10 +248,10 @@ - + - + Modified: trunk/struts/plugins/org.jboss.tools.struts.validator.ui/META-INF= /MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.validator.ui/META-INF/MANIF= EST.MF 2009-09-25 19:39:23 UTC (rev 17769) +++ trunk/struts/plugins/org.jboss.tools.struts.validator.ui/META-INF/MANIF= EST.MF 2009-09-26 06:37:20 UTC (rev 17770) @@ -1,7 +1,6 @@ Manifest-Version: 1.0 Bundle-Name: %pluginName Bundle-ManifestVersion: 2 -Bundle-ClassPath: strutsvalidatorui.jar Bundle-Activator: org.jboss.tools.struts.validator.ui.XStudioValidato rPlugin Bundle-Vendor: %providerName Modified: trunk/struts/plugins/org.jboss.tools.struts.validator.ui/build.pr= operties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.validator.ui/build.properti= es 2009-09-25 19:39:23 UTC (rev 17769) +++ trunk/struts/plugins/org.jboss.tools.struts.validator.ui/build.properti= es 2009-09-26 06:37:20 UTC (rev 17770) @@ -1,8 +1,20 @@ -source.strutsvalidatorui.jar =3D src/ +source.. =3D src/ bin.includes =3D plugin.xml,\ plugin.properties,\ images/,\ extensions.xml,\ about.html,\ META-INF/,\ - strutsvalidatorui.jar + . +src.includes =3D .classpath,\ + .cvsignore,\ + .options.template,\ + .project,\ + META-INF/,\ + about.html,\ + build.properties,\ + extensions.xml,\ + images/,\ + plugin.properties,\ + plugin.xml,\ + src/ Modified: trunk/struts/plugins/org.jboss.tools.struts.validator.ui/plugin.x= ml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/plugins/org.jboss.tools.struts.validator.ui/plugin.xml 200= 9-09-25 19:39:23 UTC (rev 17769) +++ trunk/struts/plugins/org.jboss.tools.struts.validator.ui/plugin.xml 200= 9-09-26 06:37:20 UTC (rev 17770) @@ -45,7 +45,7 @@ @@ -73,4 +73,4 @@ class=3D"org.jboss.tools.struts.validator.ui.wizard.key.SelectKeyWizard= "/> = - \ No newline at end of file + Modified: trunk/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml 2009-0= 9-25 19:39:23 UTC (rev 17769) +++ trunk/vpe/features/org.jboss.tools.xulrunner.feature/feature.xml 2009-0= 9-26 06:37:20 UTC (rev 17770) @@ -76,6 +76,7 @@ id=3D"org.jboss.tools.xulrunner" download-size=3D"0" install-size=3D"0" - version=3D"0.0.0"/> + version=3D"0.0.0" + unpack=3D"false"/> = --===============5557160348934463431==-- From jbosstools-commits at lists.jboss.org Sat Sep 26 18:15:21 2009 Content-Type: multipart/mixed; boundary="===============2047544025090557451==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17771 - in trunk/cdi: features and 1 other directory. Date: Sat, 26 Sep 2009 18:15:21 -0400 Message-ID: <200909262215.n8QMFLBt014510@svn01.web.mwc.hst.phx2.redhat.com> --===============2047544025090557451== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-26 18:15:20 -0400 (Sat, 26 Sep 2009) New Revision: 17771 Added: trunk/cdi/features/ trunk/cdi/features/org.jboss.tools.cdi.feature/ Log: Share project "org.jboss.tools.cdi.feature" into "https://svn.jboss.org/rep= os/jbosstools" --===============2047544025090557451==-- From jbosstools-commits at lists.jboss.org Sat Sep 26 18:20:12 2009 Content-Type: multipart/mixed; boundary="===============5084238791119195338==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17772 - in trunk/cdi: plugins/org.jboss.tools.cdi.core and 1 other directories. Date: Sat, 26 Sep 2009 18:20:08 -0400 Message-ID: <200909262220.n8QMK8MA015295@svn01.web.mwc.hst.phx2.redhat.com> --===============5084238791119195338== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-26 18:20:08 -0400 (Sat, 26 Sep 2009) New Revision: 17772 Added: trunk/cdi/features/org.jboss.tools.cdi.feature/.project trunk/cdi/features/org.jboss.tools.cdi.feature/build.properties trunk/cdi/features/org.jboss.tools.cdi.feature/feature.properties trunk/cdi/features/org.jboss.tools.cdi.feature/feature.xml trunk/cdi/features/org.jboss.tools.cdi.feature/license.html trunk/cdi/plugins/org.jboss.tools.cdi.core/about.html trunk/cdi/plugins/org.jboss.tools.cdi.ui/about.html Log: CDI RT Feature was added to repository Added: trunk/cdi/features/org.jboss.tools.cdi.feature/.project =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/features/org.jboss.tools.cdi.feature/.project = (rev 0) +++ trunk/cdi/features/org.jboss.tools.cdi.feature/.project 2009-09-26 22:2= 0:08 UTC (rev 17772) @@ -0,0 +1,17 @@ + + + org.jboss.tools.cdi.feature + + + + + + org.eclipse.pde.FeatureBuilder + + + + + + org.eclipse.pde.FeatureNature + + Property changes on: trunk/cdi/features/org.jboss.tools.cdi.feature/.project ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/features/org.jboss.tools.cdi.feature/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/features/org.jboss.tools.cdi.feature/build.properties = (rev 0) +++ trunk/cdi/features/org.jboss.tools.cdi.feature/build.properties 2009-09= -26 22:20:08 UTC (rev 17772) @@ -0,0 +1 @@ +bin.includes =3D feature.xml Property changes on: trunk/cdi/features/org.jboss.tools.cdi.feature/build.p= roperties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/features/org.jboss.tools.cdi.feature/feature.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/features/org.jboss.tools.cdi.feature/feature.properties = (rev 0) +++ trunk/cdi/features/org.jboss.tools.cdi.feature/feature.properties 2009-= 09-26 22:20:08 UTC (rev 17772) @@ -0,0 +1,25 @@ +featureName=3DContext and Dependency Injection Tools +featureProvider=3DJBoss by Red Hat + +# "updateSiteName" property - label for the update site +updateSiteName=3DJBossTools Update Site + +# "description" property - description of the feature +description=3DContext and Dependency Injection Tools + +# "licenseURL" property - URL of the "Feature License" +# do not translate value - just change to point to a locale-specific HTML = page +licenseURL=3Dlicense.html + +# START NON-TRANSLATABLE +# "license" property - text of the "Feature Update License" +# should be plain text version of license agreement pointed to be "license= URL" +license=3DRed Hat, Inc. licenses these features and plugins to you under \ +certain open source licenses (or aggregations of such licenses), which \ +in a particular case may include the Eclipse Public License, the GNU \ +Lesser General Public License, and/or certain other open source \ +licenses. For precise licensing details, consult the corresponding \ +source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, \ +Raleigh NC 27606 USA. +# END NON-TRANSLATABLE +########### end of license property ######################################= #### \ No newline at end of file Property changes on: trunk/cdi/features/org.jboss.tools.cdi.feature/feature= .properties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/features/org.jboss.tools.cdi.feature/feature.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/features/org.jboss.tools.cdi.feature/feature.xml = (rev 0) +++ trunk/cdi/features/org.jboss.tools.cdi.feature/feature.xml 2009-09-26 2= 2:20:08 UTC (rev 17772) @@ -0,0 +1,42 @@ + + + + + %description + + + + JBoss, Home of Professional Open Source +Copyright 2006-2009, JBoss by Red Hat, and individual contributors +as indicated +by the @authors tag. See the copyright.txt in the distribution +for a full listing of individual contributors. + + + + %license + + + + + + + + + + + Property changes on: trunk/cdi/features/org.jboss.tools.cdi.feature/feature= .xml ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/features/org.jboss.tools.cdi.feature/license.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/features/org.jboss.tools.cdi.feature/license.html = (rev 0) +++ trunk/cdi/features/org.jboss.tools.cdi.feature/license.html 2009-09-26 = 22:20:08 UTC (rev 17772) @@ -0,0 +1,14 @@ + + + + +

Red Hat, Inc. licenses these features and plugins to you under +certain open source licenses (or aggregations of such licenses), which +in a particular case may include the Eclipse Public License, the GNU +Lesser General Public License, and/or certain other open source +licenses. For precise licensing details, consult the corresponding +source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, +Raleigh NC 27606 USA. +

+ + \ No newline at end of file Property changes on: trunk/cdi/features/org.jboss.tools.cdi.feature/license= .html ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/about.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.core/about.html = (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.core/about.html 2009-09-26 22:20:= 08 UTC (rev 17772) @@ -0,0 +1,34 @@ + + + + +About + + + + + +

About This Content

+ +

©2007 Red Hat, Inc. All rights reserved

+ +

License

+ +

Red Hat Inc., through its JBoss division, makes available all content i= n this plug-in = +("Content"). Unless otherwise indicated below, the Content is provided to = you = +under the terms and conditions of the Eclipse Public License Version 1.0 = +("EPL"). A copy of the EPL is available at +http://www.ec= lipse.org/org/documents/epl-v10.php. = +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from Red Hat Inc., the = +Content is being redistributed by another party ("Redistributor") and diff= erent = +terms and conditions may apply to your use of any object code in the Conte= nt. = +Check the Redistributor's license that was provided with the Content. If n= o such = +license exists, contact the Redistributor. Unless otherwise indicated belo= w, the = +terms and conditions of the EPL still apply to any source code in the Cont= ent = +and such source code may be obtained at + http://www.jboss.org/tools. + + + \ No newline at end of file Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.core/about.html ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/cdi/plugins/org.jboss.tools.cdi.ui/about.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cdi/plugins/org.jboss.tools.cdi.ui/about.html = (rev 0) +++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/about.html 2009-09-26 22:20:08= UTC (rev 17772) @@ -0,0 +1,34 @@ + + + + +About + + + + + +

About This Content

+ +

©2007 Red Hat, Inc. All rights reserved

+ +

License

+ +

Red Hat Inc., through its JBoss division, makes available all content i= n this plug-in = +("Content"). Unless otherwise indicated below, the Content is provided to = you = +under the terms and conditions of the Eclipse Public License Version 1.0 = +("EPL"). A copy of the EPL is available at +http://www.ec= lipse.org/org/documents/epl-v10.php. = +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from Red Hat Inc., the = +Content is being redistributed by another party ("Redistributor") and diff= erent = +terms and conditions may apply to your use of any object code in the Conte= nt. = +Check the Redistributor's license that was provided with the Content. If n= o such = +license exists, contact the Redistributor. Unless otherwise indicated belo= w, the = +terms and conditions of the EPL still apply to any source code in the Cont= ent = +and such source code may be obtained at + http://www.jboss.org/tools. + + + \ No newline at end of file Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.ui/about.html ___________________________________________________________________ Name: svn:mime-type + text/plain --===============5084238791119195338==-- From jbosstools-commits at lists.jboss.org Sat Sep 26 20:24:49 2009 Content-Type: multipart/mixed; boundary="===============5424218579553323263==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17773 - trunk/birt/plugins/org.jboss.tools.birt.core/resources. Date: Sat, 26 Sep 2009 20:24:49 -0400 Message-ID: <200909270024.n8R0Onkj006682@svn01.web.mwc.hst.phx2.redhat.com> --===============5424218579553323263== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: snjeza Date: 2009-09-26 20:24:49 -0400 (Sat, 26 Sep 2009) New Revision: 17773 Modified: trunk/birt/plugins/org.jboss.tools.birt.core/resources/jboss-seam-birt.j= ar Log: https://jira.jboss.org/jira/browse/JBIDE-4937 birt - Seam component always = null with birt embed Modified: trunk/birt/plugins/org.jboss.tools.birt.core/resources/jboss-seam= -birt.jar =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) --===============5424218579553323263==-- From jbosstools-commits at lists.jboss.org Mon Sep 28 06:14:02 2009 Content-Type: multipart/mixed; boundary="===============8987054112407963799==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17774 - in trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces: src/org/jboss/tools/jsf/vpe/richfaces and 1 other directory. Date: Mon, 28 Sep 2009 06:14:01 -0400 Message-ID: <200909281014.n8SAE1lG011452@svn01.web.mwc.hst.phx2.redhat.com> --===============8987054112407963799== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-28 06:14:01 -0400 (Mon, 28 Sep 2009) New Revision: 17774 Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/= jsf/vpe/richfaces/richfaces-palette.xml Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/plugin.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4952 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/plugin.xml 2009-09-= 27 00:24:49 UTC (rev 17773) +++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/plugin.xml 2009-09-= 28 10:14:01 UTC (rev 17774) @@ -9,4 +9,10 @@ path=3D"templates/vpe-templates-richfaces.xml"/> = + + + + \ No newline at end of file Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/to= ols/jsf/vpe/richfaces/richfaces-palette.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools= /jsf/vpe/richfaces/richfaces-palette.xml (rev 0) +++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools= /jsf/vpe/richfaces/richfaces-palette.xml 2009-09-28 10:14:01 UTC (rev 17774) @@ -0,0 +1,416 @@ + + + + + + \ No newline at end of file Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/sr= c/org/jboss/tools/jsf/vpe/richfaces/richfaces-palette.xml ___________________________________________________________________ Name: svn:mime-type + text/plain --===============8987054112407963799==-- From jbosstools-commits at lists.jboss.org Mon Sep 28 06:14:44 2009 Content-Type: multipart/mixed; boundary="===============4747217999332904012==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17775 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/options/impl. Date: Mon, 28 Sep 2009 06:14:44 -0400 Message-ID: <200909281014.n8SAEiNJ011522@svn01.web.mwc.hst.phx2.redhat.com> --===============4747217999332904012== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-28 06:14:43 -0400 (Mon, 28 Sep 2009) New Revision: 17775 Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/options/impl/XStudioContribution.java Log: https://jira.jboss.org/jira/browse/JBIDE-4952 Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/t= ools/common/model/options/impl/XStudioContribution.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/options/impl/XStudioContribution.java 2009-09-28 10:14:01 UTC (= rev 17774) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/options/impl/XStudioContribution.java 2009-09-28 10:14:43 UTC (= rev 17775) @@ -33,12 +33,18 @@ try { Bundle b =3D Platform.getBundle(loader); URL u =3D b.getResource(resource); + if(u =3D=3D null) { + ModelPlugin.getPluginLog().logWarning("Cannot find resource " + = resource + " in plugin " + b); //$NON-NLS-1$ //$NON-NLS-2$ + return null; + } URLConnection c =3D u.openConnection(); return c.getInputStream(); } catch (IOException e) { - e.printStackTrace(); ModelPlugin.getPluginLog().logError(e); return null; + } catch (NoClassDefFoundError e2) { + ModelPlugin.getPluginLog().logError(e2); + return null; } } = --===============4747217999332904012==-- From jbosstools-commits at lists.jboss.org Mon Sep 28 06:17:37 2009 Content-Type: multipart/mixed; boundary="===============5615784203888057565==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17776 - in trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf: src/org/jboss/tools/jsf/vpe/ajax4jsf and 1 other directory. Date: Mon, 28 Sep 2009 06:17:36 -0400 Message-ID: <200909281017.n8SAHaoG012141@svn01.web.mwc.hst.phx2.redhat.com> --===============5615784203888057565== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-28 06:17:36 -0400 (Mon, 28 Sep 2009) New Revision: 17776 Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/tools/j= sf/vpe/ajax4jsf/ajax4jsf-palette.xml Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/plugin.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4952 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/plugin.xml 2009-09-2= 8 10:14:43 UTC (rev 17775) +++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/plugin.xml 2009-09-2= 8 10:17:36 UTC (rev 17776) @@ -9,4 +9,10 @@ path=3D"templates/vpe-templates-ajax4jsf.xml"/> = + + + + \ No newline at end of file Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/too= ls/jsf/vpe/ajax4jsf/ajax4jsf-palette.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/tools/= jsf/vpe/ajax4jsf/ajax4jsf-palette.xml (rev 0) +++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/tools/= jsf/vpe/ajax4jsf/ajax4jsf-palette.xml 2009-09-28 10:17:36 UTC (rev 17776) @@ -0,0 +1,127 @@ + + + + + + \ No newline at end of file Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src= /org/jboss/tools/jsf/vpe/ajax4jsf/ajax4jsf-palette.xml ___________________________________________________________________ Name: svn:mime-type + text/plain --===============5615784203888057565==-- From jbosstools-commits at lists.jboss.org Mon Sep 28 06:28:08 2009 Content-Type: multipart/mixed; boundary="===============4646821092600094005==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17777 - in trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam: src/org/jboss/tools/jsf/vpe/seam and 1 other directory. Date: Mon, 28 Sep 2009 06:28:08 -0400 Message-ID: <200909281028.n8SAS8wo013837@svn01.web.mwc.hst.phx2.redhat.com> --===============4646821092600094005== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-28 06:28:07 -0400 (Mon, 28 Sep 2009) New Revision: 17777 Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/src/org/jboss/tools/jsf/v= pe/seam/seam-palette.xml Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/plugin.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4952 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/plugin.xml 2009-09-28 10= :17:36 UTC (rev 17776) +++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/plugin.xml 2009-09-28 10= :28:07 UTC (rev 17777) @@ -8,4 +8,10 @@ path=3D"templates/vpe-templates-seam.xml"/> = + + + + Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/src/org/jboss/tools/j= sf/vpe/seam/seam-palette.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/src/org/jboss/tools/jsf/= vpe/seam/seam-palette.xml (rev 0) +++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/src/org/jboss/tools/jsf/= vpe/seam/seam-palette.xml 2009-09-28 10:28:07 UTC (rev 17777) @@ -0,0 +1,164 @@ + + + + + + \ No newline at end of file Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/src/org= /jboss/tools/jsf/vpe/seam/seam-palette.xml ___________________________________________________________________ Name: svn:mime-type + text/plain --===============4646821092600094005==-- From jbosstools-commits at lists.jboss.org Mon Sep 28 06:28:52 2009 Content-Type: multipart/mixed; boundary="===============1519709471321068333==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17778 - in trunk/seam/plugins/org.jboss.tools.seam.xml: resources/meta and 1 other directory. Date: Mon, 28 Sep 2009 06:28:52 -0400 Message-ID: <200909281028.n8SASqjF013903@svn01.web.mwc.hst.phx2.redhat.com> --===============1519709471321068333== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-28 06:28:51 -0400 (Mon, 28 Sep 2009) New Revision: 17778 Removed: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/jboss-palette= .xml Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4952 Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml 2009-09-28 10:28= :07 UTC (rev 17777) +++ trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml 2009-09-28 10:28= :51 UTC (rev 17778) @@ -377,10 +377,4 @@ = - - - - Deleted: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/jboss-p= alette.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/jboss-palett= e.xml 2009-09-28 10:28:07 UTC (rev 17777) +++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/jboss-palett= e.xml 2009-09-28 10:28:51 UTC (rev 17778) @@ -1,689 +0,0 @@ - - - - - - \ No newline at end of file --===============1519709471321068333==-- From jbosstools-commits at lists.jboss.org Mon Sep 28 09:12:33 2009 Content-Type: multipart/mixed; boundary="===============4850597386892443250==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17779 - in trunk/jst/tests/org.jboss.tools.jst.css.test: resources/cssTest/WebContent/pages/JBIDE/4677 and 2 other directories. Date: Mon, 28 Sep 2009 09:12:33 -0400 Message-ID: <200909281312.n8SDCXOQ017804@svn01.web.mwc.hst.phx2.redhat.com> --===============4850597386892443250== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: sdzmitrovich Date: 2009-09-28 09:12:32 -0400 (Mon, 28 Sep 2009) New Revision: 17779 Added: trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConten= t/pages/JBIDE/4677/ trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConten= t/pages/JBIDE/4677/notCompletedCss .css trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css= /test/jbide/NotCompletedCSS_JBIDE4677.java Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css= /test/CSSAllTests.java Log: JBIDE-4677 Added: trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebCo= ntent/pages/JBIDE/4677/notCompletedCss .css =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConte= nt/pages/JBIDE/4677/notCompletedCss .css (rev 0) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConte= nt/pages/JBIDE/4677/notCompletedCss .css 2009-09-28 13:12:32 UTC (rev 17779) @@ -0,0 +1 @@ +.cssclass{ \ No newline at end of file Property changes on: trunk/jst/tests/org.jboss.tools.jst.css.test/resources= /cssTest/WebContent/pages/JBIDE/4677/notCompletedCss .css ___________________________________________________________________ Name: svn:mime-type + text/css Name: svn:eol-style + native Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/= jst/css/test/CSSAllTests.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/CSSAllTests.java 2009-09-28 10:28:51 UTC (rev 17778) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/CSSAllTests.java 2009-09-28 13:12:32 UTC (rev 17779) @@ -16,6 +16,7 @@ = import org.jboss.tools.jst.css.test.jbide.ExtendingCSSViewTest_JBIDE4850; import org.jboss.tools.jst.css.test.jbide.InputFractionalValueTest_JBIDE47= 90; +import org.jboss.tools.jst.css.test.jbide.NotCompletedCSS_JBIDE4677; import org.jboss.tools.jst.css.test.jbide.SelectionLosingByPropertySheet_J= BIDE4791; import org.jboss.tools.test.util.ProjectImportTestSetup; = @@ -37,6 +38,7 @@ suite.addTestSuite(InputFractionalValueTest_JBIDE4790.class); suite.addTestSuite(SelectionLosingByPropertySheet_JBIDE4791.class); suite.addTestSuite(ExtendingCSSViewTest_JBIDE4850.class); + suite.addTestSuite(NotCompletedCSS_JBIDE4677.class); // $JUnit-END$ = return new ProjectImportTestSetup( Added: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst= /css/test/jbide/NotCompletedCSS_JBIDE4677.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/NotCompletedCSS_JBIDE4677.java (rev 0) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/NotCompletedCSS_JBIDE4677.java 2009-09-28 13:12:32 UTC (rev 17= 779) @@ -0,0 +1,63 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jst.css.test.jbide; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.jface.viewers.StructuredSelection; +import org.eclipse.ui.part.IPage; +import org.eclipse.wst.sse.ui.StructuredTextEditor; +import org.jboss.tools.jst.css.properties.CSSPropertyPage; +import org.jboss.tools.jst.css.test.AbstractCSSViewTest; +import org.jboss.tools.jst.css.view.CSSEditorView; +import org.jboss.tools.test.util.JobUtils; + +/** + * @author Sergey Dzmitrovich + * = + */ +public class NotCompletedCSS_JBIDE4677 extends AbstractCSSViewTest { + + public static final String TEST_PAGE_NAME =3D "JBIDE/4677/notCompletedCss= .css"; //$NON-NLS-1$ + + public void testInlineStyleEditing() throws CoreException, + SecurityException, IllegalArgumentException, NoSuchFieldException, + IllegalAccessException { + + IFile pageFile =3D getComponentPath(TEST_PAGE_NAME, getProjectName()); + + assertNotNull(pageFile); + + StructuredTextEditor editor =3D (StructuredTextEditor) openEditor( + pageFile, CSS_EDITOR_ID); + + JobUtils.waitForIdle(); + + assertNotNull(editor); + + CSSEditorView view =3D (CSSEditorView) openView(CSS_EDITOR_VIEW); + + assertNotNull(view); + + IPage page =3D view.getCurrentPage(); + + assertNotNull(page); + + StructuredSelection selection =3D (StructuredSelection) ((CSSPropertyPag= e) page) + .getCurrentSelection(); + + assertNotNull(selection); + = + assertNull(selection.getFirstElement()); + + } + +} Property changes on: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/j= boss/tools/jst/css/test/jbide/NotCompletedCSS_JBIDE4677.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + native --===============4850597386892443250==-- From jbosstools-commits at lists.jboss.org Mon Sep 28 09:16:21 2009 Content-Type: multipart/mixed; boundary="===============1581650529187060714==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17780 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline. Date: Mon, 28 Sep 2009 09:16:21 -0400 Message-ID: <200909281316.n8SDGLlq018537@svn01.web.mwc.hst.phx2.redhat.com> --===============1581650529187060714== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-28 09:16:20 -0400 (Mon, 28 Sep 2009) New Revision: 17780 Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/ou= tline/ValueHelper.java Log: https://jira.jboss.org/jira/browse/JBIDE-4815 Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/outline/ValueHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/o= utline/ValueHelper.java 2009-09-28 13:12:32 UTC (rev 17779) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/o= utline/ValueHelper.java 2009-09-28 13:16:20 UTC (rev 17780) @@ -20,6 +20,7 @@ import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IProject; import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.Platform; import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.source.ISourceViewer; import org.eclipse.ui.IEditorInput; @@ -64,9 +65,11 @@ public static IPromptingProvider seamPromptingProvider; = static { - Object o =3D ModelFeatureFactory.getInstance().createFeatureInstance("or= g.jboss.tools.seam.internal.core.el.SeamPromptingProvider"); //$NON-NLS-1$ - if(o instanceof IPromptingProvider) { - seamPromptingProvider =3D (IPromptingProvider)o; + if(Platform.getBundle("org.jboss.tools.seam.core") !=3D null) { //$NON-N= LS-1$ + Object o =3D ModelFeatureFactory.getInstance().createFeatureInstance("o= rg.jboss.tools.seam.internal.core.el.SeamPromptingProvider"); //$NON-NLS-1$ + if(o instanceof IPromptingProvider) { + seamPromptingProvider =3D (IPromptingProvider)o; + } } } //JBIDE-1983, coused a memmory link --===============1581650529187060714==-- From jbosstools-commits at lists.jboss.org Mon Sep 28 11:09:59 2009 Content-Type: multipart/mixed; boundary="===============9122733771849481576==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17781 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/diagram/editors/actions. Date: Mon, 28 Sep 2009 11:09:58 -0400 Message-ID: <200909281509.n8SF9wZu000772@svn01.web.mwc.hst.phx2.redhat.com> --===============9122733771849481576== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vyemialyanchyk Date: 2009-09-28 11:09:58 -0400 (Mon, 28 Sep 2009) New Revision: 17781 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/actions/ToggleForeignKeyConstraintAction= .java Log: https://jira.jboss.org/jira/browse/JBIDE-4620 & https://jira.jboss.org/jira= /browse/JBIDE-4873 - are fixed, JBIDE-4956 (Mapping Diagram viewer should d= isplay db tables relations) - for next steps todo. Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/actions/ToggleForeignKeyConstrain= tAction.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ToggleForeignKeyConstraintActio= n.java 2009-09-28 13:16:20 UTC (rev 17780) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/actions/ToggleForeignKeyConstraintActio= n.java 2009-09-28 15:09:58 UTC (rev 17781) @@ -40,4 +40,10 @@ boolean state =3D getDiagramViewer().getConnectionsVisibilityForeignKeyC= onstraint(); getDiagramViewer().setConnectionsVisibilityForeignKeyConstraint(!state); } + + @Override + public boolean isEnabled() { + // TODO: JBIDE-4956 -> still not implemented + return false; + } } --===============9122733771849481576==-- From jbosstools-commits at lists.jboss.org Mon Sep 28 16:03:27 2009 Content-Type: multipart/mixed; boundary="===============1422889740453582950==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17782 - in trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core: src/org/jboss/ide/eclipse/as/wtp/core/util and 1 other directory. Date: Mon, 28 Sep 2009 16:03:27 -0400 Message-ID: <200909282003.n8SK3R4C031789@svn01.web.mwc.hst.phx2.redhat.com> --===============1422889740453582950== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: rob.stryker(a)jboss.com Date: 2009-09-28 16:03:27 -0400 (Mon, 28 Sep 2009) New Revision: 17782 Added: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ecl= ipse/as/wtp/core/util/VCFUtil.java Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/META-INF/MANIFEST.MF Log: making a vcf utility class Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/META-INF/MANIF= EST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/META-INF/MANIFEST.MF= 2009-09-28 15:09:58 UTC (rev 17781) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/META-INF/MANIFEST.MF= 2009-09-28 20:03:27 UTC (rev 17782) @@ -24,5 +24,6 @@ Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 Export-Package: org.jboss.ide.eclipse.as.wtp.core.modules, + org.jboss.ide.eclipse.as.wtp.core.util, org.jboss.ide.eclipse.as.wtp.core.vcf Bundle-Vendor: JBoss by Red Hat Added: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide= /eclipse/as/wtp/core/util/VCFUtil.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/util/VCFUtil.java (rev 0) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/ec= lipse/as/wtp/core/util/VCFUtil.java 2009-09-28 20:03:27 UTC (rev 17782) @@ -0,0 +1,52 @@ +package org.jboss.ide.eclipse.as.wtp.core.util; + +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.NullProgressMonitor; +import org.eclipse.core.runtime.Status; +import org.eclipse.wst.common.componentcore.datamodel.properties.ICreateRe= ferenceComponentsDataModelProperties; +import org.eclipse.wst.common.componentcore.internal.operation.CreateRefer= enceComponentsDataModelProvider; +import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; +import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory; +import org.eclipse.wst.common.frameworks.datamodel.IDataModel; +import org.eclipse.wst.common.frameworks.datamodel.IDataModelProvider; +import org.jboss.ide.eclipse.as.wtp.core.Activator; + +public class VCFUtil { + public static void addReference(IVirtualComponent component, = + IVirtualComponent rootComponent, = + String path, String archiveName) + throws CoreException { + IDataModelProvider provider =3D new CreateReferenceComponentsDataModelPr= ovider(); + IDataModel dm =3D DataModelFactory.createDataModel(provider); + = + dm.setProperty(ICreateReferenceComponentsDataModelProperties.SOURCE_COMP= ONENT, rootComponent); + dm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMP= ONENT_LIST, Arrays.asList(component)); + = + //[Bug 238264] the uri map needs to be manually set correctly + Map uriMap =3D new HashMap(); + uriMap.put(component, archiveName); + dm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMP= ONENTS_TO_URI_MAP, uriMap); + dm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGE= T_COMPONENTS_DEPLOY_PATH, path); + + IStatus stat =3D dm.validateProperty(ICreateReferenceComponentsDataModel= Properties.TARGET_COMPONENT_LIST); + Throwable t =3D stat =3D=3D null ? null : stat.getException(); + if (stat =3D=3D null || stat.isOK()) { + try { + dm.getDefaultOperation().execute(new NullProgressMonitor(), null); + return; + } catch (ExecutionException e) { + t =3D e; + } = + } + if( t !=3D null ) { + IStatus status =3D new Status(IStatus.ERROR, Activator.PLUGIN_ID, t.get= Message(), t); + throw new CoreException(status); + } + } +} --===============1422889740453582950==-- From jbosstools-commits at lists.jboss.org Mon Sep 28 16:05:02 2009 Content-Type: multipart/mixed; boundary="===============7712403409639050480==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17783 - trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/facet. Date: Mon, 28 Sep 2009 16:05:02 -0400 Message-ID: <200909282005.n8SK52Rf031945@svn01.web.mwc.hst.phx2.redhat.com> --===============7712403409639050480== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: rob.stryker(a)jboss.com Date: 2009-09-28 16:05:02 -0400 (Mon, 28 Sep 2009) New Revision: 17783 Modified: trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/e= sb/core/facet/JBossESBFacetInstallationDelegate.java Log: organized imports, moved one method into as.wtp.core as utility method Modified: trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/= tools/esb/core/facet/JBossESBFacetInstallationDelegate.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/= esb/core/facet/JBossESBFacetInstallationDelegate.java 2009-09-28 20:03:27 U= TC (rev 17782) +++ trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/= esb/core/facet/JBossESBFacetInstallationDelegate.java 2009-09-28 20:05:02 U= TC (rev 17783) @@ -11,11 +11,7 @@ package org.jboss.tools.esb.core.facet; = import java.io.ByteArrayInputStream; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; = -import org.eclipse.core.commands.ExecutionException; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IFolder; import org.eclipse.core.resources.IProject; @@ -25,27 +21,21 @@ import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.NullProgressMonitor; import org.eclipse.core.runtime.Path; import org.eclipse.core.runtime.Status; import org.eclipse.core.runtime.preferences.IEclipsePreferences; import org.eclipse.core.runtime.preferences.IScopeContext; -import org.eclipse.jdt.core.IClasspathEntry; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jdt.core.JavaCore; import org.eclipse.jst.common.project.facet.WtpUtils; import org.eclipse.jst.common.project.facet.core.ClasspathHelper; -import org.eclipse.wst.common.componentcore.ComponentCore; -import org.eclipse.wst.common.componentcore.datamodel.properties.ICreateRe= ferenceComponentsDataModelProperties; -import org.eclipse.wst.common.componentcore.internal.operation.CreateRefer= enceComponentsDataModelProvider; import org.eclipse.wst.common.componentcore.internal.util.IComponentImplFa= ctory; import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; import org.eclipse.wst.common.componentcore.resources.IVirtualFolder; -import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory; import org.eclipse.wst.common.frameworks.datamodel.IDataModel; -import org.eclipse.wst.common.frameworks.datamodel.IDataModelProvider; import org.eclipse.wst.common.project.facet.core.IDelegate; import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion; +import org.jboss.ide.eclipse.as.wtp.core.util.VCFUtil; import org.jboss.ide.eclipse.as.wtp.core.vcf.OutputFoldersVirtualComponent; import org.jboss.tools.esb.core.ESBProjectCorePlugin; import org.jboss.tools.esb.core.component.ESBVirtualComponent; @@ -93,7 +83,7 @@ = //addESBNature(project); IVirtualComponent outputFoldersComponent =3D new OutputFoldersVirtualCom= ponent(project, newComponent); - addReference(outputFoldersComponent, newComponent, "/", null); + VCFUtil.addReference(outputFoldersComponent, newComponent, "/", null); = = JBossClassPathCommand command =3D new JBossClassPathCommand(project, @@ -107,31 +97,6 @@ ClasspathHelper.addClasspathEntries(project, fv); } = - private void addReference(IVirtualComponent component, IVirtualComponent = rootComponent, String path, String archiveName) { - IDataModelProvider provider =3D new CreateReferenceComponentsDataModelPr= ovider(); - IDataModel dm =3D DataModelFactory.createDataModel(provider); - = - dm.setProperty(ICreateReferenceComponentsDataModelProperties.SOURCE_COMP= ONENT, rootComponent); - dm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMP= ONENT_LIST, Arrays.asList(component)); - = - //[Bug 238264] the uri map needs to be manually set correctly - Map uriMap =3D new HashMap(); - uriMap.put(component, archiveName); - dm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMP= ONENTS_TO_URI_MAP, uriMap); - dm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGE= T_COMPONENTS_DEPLOY_PATH, path); - - IStatus stat =3D dm.validateProperty(ICreateReferenceComponentsDataModel= Properties.TARGET_COMPONENT_LIST); - Throwable t =3D stat.getException(); - if (stat =3D=3D null || stat.isOK()) { - try { - dm.getDefaultOperation().execute(new NullProgressMonitor(), null); - return; - } catch (ExecutionException e) { - t =3D e; - } = - } - // TODO Log exception e - } = private IFile createJBossESBXML(IFolder folder) throws CoreException{ StringBuffer emptyESB =3D new StringBuffer(); --===============7712403409639050480==-- From jbosstools-commits at lists.jboss.org Mon Sep 28 19:49:44 2009 Content-Type: multipart/mixed; boundary="===============7950077928668509553==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17784 - trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/propertypage. Date: Mon, 28 Sep 2009 19:49:44 -0400 Message-ID: <200909282349.n8SNniba011216@svn01.web.mwc.hst.phx2.redhat.com> --===============7950077928668509553== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: rob.stryker(a)jboss.com Date: 2009-09-28 19:49:44 -0400 (Mon, 28 Sep 2009) New Revision: 17784 Added: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclip= se/as/wtp/ui/propertypage/IReferenceEditor.java Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclip= se/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclip= se/as/wtp/ui/propertypage/DependencyPageExtensionManager.java trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclip= se/as/wtp/ui/propertypage/ExportedClasspathFoldersReferenceWizardFragment.j= ava trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclip= se/as/wtp/ui/propertypage/NewReferenceWizard.java trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclip= se/as/wtp/ui/propertypage/OutputFolderReferenceWizardFragment.java Log: JBIDE-4957 - adding edit button to new reference wizard Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/id= e/eclipse/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java 2009-09= -28 20:05:02 UTC (rev 17783) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java 2009-09= -28 23:49:44 UTC (rev 17784) @@ -97,7 +97,7 @@ protected Text componentNameText; protected Label availableModules; protected TableViewer availableComponentsViewer; - protected Button addMappingButton, addReferenceButton, removeButton; + protected Button addMappingButton, addReferenceButton, editReferenceButto= n, removeButton; protected Composite buttonColumn; protected static final IStatus OK_STATUS =3D IDataModelProvider.OK_STATUS; protected Listener tableListener; @@ -191,6 +191,7 @@ protected void createPushButtons() { addMappingButton =3D createPushButton("Add Folder..."); addReferenceButton =3D createPushButton("Add Reference..."); + editReferenceButton =3D createPushButton("Edit Reference..."); removeButton =3D createPushButton("Remove selected"); } = @@ -424,6 +425,8 @@ handleAddMappingButton(); else if( event.widget =3D=3D addReferenceButton) = handleAddReferenceButton(); + else if( event.widget =3D=3D editReferenceButton ) = + handleEditReferenceButton(); else if( event.widget =3D=3D removeButton ) = handleRemoveSelectedButton(); } @@ -442,13 +445,35 @@ } = protected void handleAddReferenceButton() { + showReferenceWizard(false); + } + + protected void handleEditReferenceButton() { + showReferenceWizard(true); + } + + protected void showReferenceWizard(boolean editing) { + NewReferenceWizard wizard =3D new NewReferenceWizard(); // fill the task model wizard.getTaskModel().putObject(NewReferenceWizard.PROJECT, project); wizard.getTaskModel().putObject(NewReferenceWizard.ROOT_COMPONENT, rootC= omponent); + + IVirtualComponent selected =3D null; + if( editing ) { + Object o =3D ((IStructuredSelection)availableComponentsViewer.getSelect= ion()).getFirstElement(); + if( o instanceof IVirtualComponent ) { + selected =3D (IVirtualComponent)o; + wizard.getTaskModel().putObject(NewReferenceWizard.COMPONENT, selected= ); + wizard.getTaskModel().putObject(NewReferenceWizard.COMPONENT_PATH, obj= ectToRuntimePath.get(selected)); + } + } = WizardDialog wd =3D new WizardDialog(addReferenceButton.getShell(), wiza= rd); if( wd.open() !=3D Window.CANCEL) { + if( editing && selected !=3D null) { + objectToRuntimePath.remove(selected); // remove old + } Object c1 =3D wizard.getTaskModel().getObject(NewReferenceWizard.COMPON= ENT); Object p1 =3D wizard.getTaskModel().getObject(NewReferenceWizard.COMPON= ENT_PATH); IVirtualComponent[] compArr =3D c1 instanceof IVirtualComponent ? = Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/id= e/eclipse/as/wtp/ui/propertypage/DependencyPageExtensionManager.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/DependencyPageExtensionManager.java 2009-09-28 2= 0:05:02 UTC (rev 17783) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/DependencyPageExtensionManager.java 2009-09-28 2= 3:49:44 UTC (rev 17784) @@ -52,6 +52,19 @@ providers =3D temp; } = + public WizardFragment[] loadAllReferenceWizardFragments() { + IExtensionRegistry registry =3D Platform.getExtensionRegistry(); + IConfigurationElement[] cf =3D registry.getConfigurationElementsFor( + WTPOveridePlugin.PLUGIN_ID, "referenceWizardFragment"); //$NON-NLS-1$ + ArrayList list =3D new ArrayList(); + for( int i =3D 0; i < cf.length; i++ ) { + try { + list.add((WizardFragment)cf[i].createExecutableExtension("class")); + } catch( CoreException ce) {} + } + return (WizardFragment[]) list.toArray(new WizardFragment[list.size()]); + } + = public WizardFragment loadReferenceWizardFragment(String id) { IExtensionRegistry registry =3D Platform.getExtensionRegistry(); IConfigurationElement[] cf =3D registry.getConfigurationElementsFor( Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/id= e/eclipse/as/wtp/ui/propertypage/ExportedClasspathFoldersReferenceWizardFra= gment.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/ExportedClasspathFoldersReferenceWizardFragment.= java 2009-09-28 20:05:02 UTC (rev 17783) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/ExportedClasspathFoldersReferenceWizardFragment.= java 2009-09-28 23:49:44 UTC (rev 17784) @@ -43,8 +43,8 @@ import org.eclipse.wst.server.ui.wizard.WizardFragment; import org.jboss.ide.eclipse.as.wtp.core.vcf.ExportedClasspathFoldersVirtu= alComponent; = -public class ExportedClasspathFoldersReferenceWizardFragment extends - WizardFragment { +public class ExportedClasspathFoldersReferenceWizardFragment = + extends WizardFragment implements IReferenceEditor { = protected TreeViewer viewer; protected IPath[] paths; @@ -62,7 +62,6 @@ = public Composite createComposite(Composite parent, IWizardHandle handle) { this.handle =3D handle; - int x =3D 1; handle.setTitle("Add exported folders from the build pathx"); handle.setDescription("This reference will allow you to add references t= o exported classpaths from this project's build page. Please select all ent= ries you wish to be published."); IVirtualComponent parentComp =3D (IVirtualComponent)getTaskModel().getOb= ject(NewReferenceWizard.ROOT_COMPONENT); @@ -209,4 +208,10 @@ protected IPath getNewPath(IClasspathEntry cpe) { return new Path("/"); } + + public boolean canEdit(IVirtualComponent vc) { + if( vc instanceof ExportedClasspathFoldersVirtualComponent ) + return true; + return false; + } } Added: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/e= clipse/as/wtp/ui/propertypage/IReferenceEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/IReferenceEditor.java (r= ev 0) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/IReferenceEditor.java 2009-09-28 23:49:44 UTC (r= ev 17784) @@ -0,0 +1,7 @@ +package org.jboss.ide.eclipse.as.wtp.ui.propertypage; + +import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; + +public interface IReferenceEditor { + public boolean canEdit(IVirtualComponent vc); +} Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/id= e/eclipse/as/wtp/ui/propertypage/NewReferenceWizard.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/NewReferenceWizard.java 2009-09-28 20:05:02 UTC = (rev 17783) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/NewReferenceWizard.java 2009-09-28 23:49:44 UTC = (rev 17784) @@ -4,6 +4,7 @@ = import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.ui.IWorkbench; +import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; import org.eclipse.wst.server.ui.internal.wizard.TaskWizard; import org.eclipse.wst.server.ui.wizard.WizardFragment; = @@ -15,13 +16,30 @@ public static final String ROOT_COMPONENT =3D "root.component"; = public NewReferenceWizard() { - super("New Reference Wizard", new WizardFragment() { - protected void createChildFragments(List list) { + super("New Reference Wizard", new RootWizardFragment()); + getRootFragment().setTaskModel(getTaskModel()); + } + = + protected static class RootWizardFragment extends WizardFragment { + protected void createChildFragments(List list) { + IVirtualComponent component =3D (IVirtualComponent)getTaskModel().getOb= ject(COMPONENT); + if( component =3D=3D null ) list.add(new NewReferenceRootWizardFragment()); + else { + WizardFragment[] frags =3D DependencyPageExtensionManager.getManager()= .loadAllReferenceWizardFragments(); + for( int i =3D 0; i < frags.length; i++ ) { + if( frags[i] instanceof IReferenceEditor ) { + if( ((IReferenceEditor)frags[i]).canEdit(component)) { + // accept first one + list.add(frags[i]); + return; + } + } + } } - }); + } } - + = public void init(IWorkbench newWorkbench, IStructuredSelection newSelecti= on) { // do nothing } Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/id= e/eclipse/as/wtp/ui/propertypage/OutputFolderReferenceWizardFragment.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/OutputFolderReferenceWizardFragment.java 2009-09= -28 20:05:02 UTC (rev 17783) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/OutputFolderReferenceWizardFragment.java 2009-09= -28 23:49:44 UTC (rev 17784) @@ -25,7 +25,7 @@ import org.eclipse.wst.server.ui.wizard.WizardFragment; import org.jboss.ide.eclipse.as.wtp.core.vcf.OutputFoldersVirtualComponent; = -public class OutputFolderReferenceWizardFragment extends WizardFragment { +public class OutputFolderReferenceWizardFragment extends WizardFragment im= plements IReferenceEditor { = protected TreeViewer viewer; protected IPath[] paths; @@ -59,11 +59,14 @@ viewer.getTree().setLayoutData(fd); viewer.addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { - IVirtualComponent parentComp =3D (IVirtualComponent)getTaskModel().get= Object(NewReferenceWizard.ROOT_COMPONENT); IStructuredSelection sel =3D (IStructuredSelection)viewer.getSelection= (); selected =3D (IProject)sel.getFirstElement(); } }); + = + IVirtualComponent vc =3D (IVirtualComponent)getTaskModel().getObject(New= ReferenceWizard.COMPONENT); + if( vc !=3D null ) + selected =3D vc.getProject(); return c; } = @@ -104,6 +107,14 @@ selected =3D selected =3D=3D null ? parentComp.getProject() : selected; OutputFoldersVirtualComponent vc =3D new OutputFoldersVirtualComponent(s= elected, parentComp); getTaskModel().putObject(NewReferenceWizard.COMPONENT, vc); - getTaskModel().putObject(NewReferenceWizard.COMPONENT_PATH, "/"); + String s =3D (String)getTaskModel().getObject(NewReferenceWizard.COMPON= ENT_PATH); + if( s =3D=3D null ) = + getTaskModel().putObject(NewReferenceWizard.COMPONENT_PATH, "/"); } + + public boolean canEdit(IVirtualComponent vc) { + if( vc instanceof OutputFoldersVirtualComponent ) + return true; + return false; + } } --===============7950077928668509553==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 05:26:56 2009 Content-Type: multipart/mixed; boundary="===============4492569721586402193==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17785 - trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver. Date: Tue, 29 Sep 2009 05:26:55 -0400 Message-ID: <200909290926.n8T9QtMa030320@svn01.web.mwc.hst.phx2.redhat.com> --===============4492569721586402193== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: akazakov Date: 2009-09-29 05:26:55 -0400 (Tue, 29 Sep 2009) New Revision: 17785 Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/= common/el/core/resolver/ElVarSearcher.java Log: return empty List instead of null Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss= /tools/common/el/core/resolver/ElVarSearcher.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ElVarSearcher.java 2009-09-28 23:49:44 UTC (rev 17= 784) +++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools= /common/el/core/resolver/ElVarSearcher.java 2009-09-29 09:26:55 UTC (rev 17= 785) @@ -206,14 +206,11 @@ * @return All var/value that can be used in node and null if can't find = anyone. */ public static List findAllVars(Node node, ELParserFactory factory) { - ArrayList vars =3D null; + ArrayList vars =3D new ArrayList(); Node parentNode =3D node; while(parentNode!=3Dnull) { Var var =3D findVar(parentNode, factory); if(var!=3Dnull) { - if(vars =3D=3D null) { - vars =3D new ArrayList(); - } vars.add(0, var); } parentNode =3D parentNode.getParentNode(); --===============4492569721586402193==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 06:24:22 2009 Content-Type: multipart/mixed; boundary="===============3657151030794885007==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17786 - in trunk/jst/tests/org.jboss.tools.jst.css.test: resources/cssTest/WebContent/pages/JBIDE/4677 and 3 other directories. Date: Tue, 29 Sep 2009 06:24:22 -0400 Message-ID: <200909291024.n8TAOMMQ009694@svn01.web.mwc.hst.phx2.redhat.com> --===============3657151030794885007== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: sdzmitrovich Date: 2009-09-29 06:24:21 -0400 (Tue, 29 Sep 2009) New Revision: 17786 Added: trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConten= t/pages/JBIDE/4677/notCompletedCss.css trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConten= t/pages/JBIDE/4849/ trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConten= t/pages/JBIDE/4849/incorrectPageTest.css trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css= /test/jbide/IncorrectPageAfterSelectionTest_JBIDE4849.java Removed: trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConten= t/pages/JBIDE/4677/notCompletedCss .css Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css= /test/CSSAllTests.java trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css= /test/jbide/NotCompletedCSS_JBIDE4677.java Log: https://jira.jboss.org/jira/browse/JBIDE-4849 Deleted: trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/Web= Content/pages/JBIDE/4677/notCompletedCss .css =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConte= nt/pages/JBIDE/4677/notCompletedCss .css 2009-09-29 09:26:55 UTC (rev 17785) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConte= nt/pages/JBIDE/4677/notCompletedCss .css 2009-09-29 10:24:21 UTC (rev 17786) @@ -1 +0,0 @@ -.cssclass{ \ No newline at end of file Copied: trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebC= ontent/pages/JBIDE/4677/notCompletedCss.css (from rev 17785, trunk/jst/test= s/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/JBIDE/467= 7/notCompletedCss .css) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConte= nt/pages/JBIDE/4677/notCompletedCss.css (rev 0) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConte= nt/pages/JBIDE/4677/notCompletedCss.css 2009-09-29 10:24:21 UTC (rev 17786) @@ -0,0 +1 @@ +.cssclass{ \ No newline at end of file Added: trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebCo= ntent/pages/JBIDE/4849/incorrectPageTest.css =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConte= nt/pages/JBIDE/4849/incorrectPageTest.css (rev 0) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConte= nt/pages/JBIDE/4849/incorrectPageTest.css 2009-09-29 10:24:21 UTC (rev 1778= 6) @@ -0,0 +1,3 @@ +.test { + color: red; +} \ No newline at end of file Property changes on: trunk/jst/tests/org.jboss.tools.jst.css.test/resources= /cssTest/WebContent/pages/JBIDE/4849/incorrectPageTest.css ___________________________________________________________________ Name: svn:mime-type + text/css Name: svn:eol-style + native Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/= jst/css/test/CSSAllTests.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/CSSAllTests.java 2009-09-29 09:26:55 UTC (rev 17785) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/CSSAllTests.java 2009-09-29 10:24:21 UTC (rev 17786) @@ -15,6 +15,7 @@ import junit.framework.TestSuite; = import org.jboss.tools.jst.css.test.jbide.ExtendingCSSViewTest_JBIDE4850; +import org.jboss.tools.jst.css.test.jbide.IncorrectPageAfterSelectionTest_= JBIDE4849; import org.jboss.tools.jst.css.test.jbide.InputFractionalValueTest_JBIDE47= 90; import org.jboss.tools.jst.css.test.jbide.NotCompletedCSS_JBIDE4677; import org.jboss.tools.jst.css.test.jbide.SelectionLosingByPropertySheet_J= BIDE4791; @@ -39,6 +40,7 @@ suite.addTestSuite(SelectionLosingByPropertySheet_JBIDE4791.class); suite.addTestSuite(ExtendingCSSViewTest_JBIDE4850.class); suite.addTestSuite(NotCompletedCSS_JBIDE4677.class); + suite.addTestSuite(IncorrectPageAfterSelectionTest_JBIDE4849.class); // $JUnit-END$ = return new ProjectImportTestSetup( Added: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst= /css/test/jbide/IncorrectPageAfterSelectionTest_JBIDE4849.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/IncorrectPageAfterSelectionTest_JBIDE4849.java = (rev 0) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/IncorrectPageAfterSelectionTest_JBIDE4849.java 2009-09-29 10:2= 4:21 UTC (rev 17786) @@ -0,0 +1,58 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jst.css.test.jbide; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.ui.part.IPage; +import org.eclipse.wst.sse.ui.StructuredTextEditor; +import org.jboss.tools.jst.css.properties.CSSPropertyPage; +import org.jboss.tools.jst.css.test.AbstractCSSViewTest; +import org.jboss.tools.jst.css.view.CSSEditorView; +import org.jboss.tools.test.util.JobUtils; + +/** + * @author Sergey Dzmitrovich + * = + */ +public class IncorrectPageAfterSelectionTest_JBIDE4849 extends + AbstractCSSViewTest { + + public static final String TEST_PAGE_NAME =3D "JBIDE/4849/incorrectPageTe= st.css"; //$NON-NLS-1$ + + public void testInlineStyleEditing() throws CoreException, + SecurityException, IllegalArgumentException, NoSuchFieldException, + IllegalAccessException { + + IFile pageFile =3D getComponentPath(TEST_PAGE_NAME, getProjectName()); + + assertNotNull(pageFile); + + StructuredTextEditor editor =3D (StructuredTextEditor) openEditor( + pageFile, CSS_EDITOR_ID); + + JobUtils.waitForIdle(); + + assertNotNull(editor); + + CSSEditorView view =3D (CSSEditorView) openView(CSS_EDITOR_VIEW); + + assertNotNull(view); + + IPage page =3D view.getDefaultPage(); + + assertNotNull(page); + + assertTrue(page instanceof CSSPropertyPage); + + } + +} Property changes on: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/j= boss/tools/jst/css/test/jbide/IncorrectPageAfterSelectionTest_JBIDE4849.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + native Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/= jst/css/test/jbide/NotCompletedCSS_JBIDE4677.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/NotCompletedCSS_JBIDE4677.java 2009-09-29 09:26:55 UTC (rev 17= 785) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/NotCompletedCSS_JBIDE4677.java 2009-09-29 10:24:21 UTC (rev 17= 786) @@ -26,7 +26,7 @@ */ public class NotCompletedCSS_JBIDE4677 extends AbstractCSSViewTest { = - public static final String TEST_PAGE_NAME =3D "JBIDE/4677/notCompletedCss= .css"; //$NON-NLS-1$ + public static final String TEST_PAGE_NAME =3D "JBIDE/4677/notCompletedCss= .css"; //$NON-NLS-1$ = public void testInlineStyleEditing() throws CoreException, SecurityException, IllegalArgumentException, NoSuchFieldException, --===============3657151030794885007==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 06:56:43 2009 Content-Type: multipart/mixed; boundary="===============1828917151154296535==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17787 - in trunk: jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebContent/pages/JBIDE/4954 and 2 other directories. Date: Tue, 29 Sep 2009 06:56:43 -0400 Message-ID: <200909291056.n8TAuhgI016051@svn01.web.mwc.hst.phx2.redhat.com> --===============1828917151154296535== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: mareshkau Date: 2009-09-29 06:56:42 -0400 (Tue, 29 Sep 2009) New Revision: 17787 Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebC= ontent/pages/JBIDE/4954/ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebC= ontent/pages/JBIDE/4954/inputUserName.jsp trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/WebC= ontent/pages/JBIDE/4954/inputUserName.jsp.xml Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf= /vpe/jsf/test/jbide/JBIDE2550Test.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/tem= plate/expression/VpeFunctionSrc.java Log: https://jira.jboss.org/jira/browse/JBIDE-4954 Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/= WebContent/pages/JBIDE/4954/inputUserName.jsp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/Web= Content/pages/JBIDE/4954/inputUserName.jsp (rev 0) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/Web= Content/pages/JBIDE/4954/inputUserName.jsp 2009-09-29 10:56:42 UTC (rev 177= 87) @@ -0,0 +1,14 @@ +<%@ taglib uri=3D"http://java.sun.com/jsf/core" prefix=3D"f" %> +<%@ taglib uri=3D"http://java.sun.com/jsf/html" prefix=3D"h" %> + + + + + + +

Test for JBIDE-4954

+ + + + + Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/= WebContent/pages/JBIDE/4954/inputUserName.jsp.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/Web= Content/pages/JBIDE/4954/inputUserName.jsp.xml (rev= 0) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/Web= Content/pages/JBIDE/4954/inputUserName.jsp.xml 2009-09-29 10:56:42 UTC (rev= 17787) @@ -0,0 +1,13 @@ + + +
+

+ +Test for JBIDE-4954 + +

+ + +
+
+
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/to= ols/jsf/vpe/jsf/test/jbide/JBIDE2550Test.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/js= f/vpe/jsf/test/jbide/JBIDE2550Test.java 2009-09-29 10:24:21 UTC (rev 17786) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/js= f/vpe/jsf/test/jbide/JBIDE2550Test.java 2009-09-29 10:56:42 UTC (rev 17787) @@ -27,6 +27,10 @@ performContentTest("JBIDE/2550/jbide2550.xhtml"); //$NON-NLS-1$ } = + public void testOfJSF2ResourceForEmptyString() throws Throwable{ + performContentTest("JBIDE/4954/inputUserName.jsp"); //$NON-NLS-1$ + } + = @Override protected String getTestProjectName() { return JsfAllTests.IMPORT_JSF_20_PROJECT_NAME; Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/template/expression/VpeFunctionSrc.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/te= mplate/expression/VpeFunctionSrc.java 2009-09-29 10:24:21 UTC (rev 17786) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/te= mplate/expression/VpeFunctionSrc.java 2009-09-29 10:56:42 UTC (rev 17787) @@ -326,8 +326,13 @@ if(zipEntry!=3Dnull){ InputStream inputStream =3D jarPackageFragmentRoot.getJar().getInput= Stream(zipEntry); IPath stateLocation =3D VpePlugin.getDefault().getStateLocation(); - String fileName =3D classPathResource.substring(classPathResource.la= stIndexOf("/")+1,classPathResource.lastIndexOf(".")); //$NON-NLS-1$ //$NON-= NLS-2$ - String fileExtension =3D classPathResource.substring(classPathResour= ce.lastIndexOf("."),classPathResource.length()); //$NON-NLS-1$ + = + String fileName =3D null; + String fileExtension =3D null; + if(classPathResource.lastIndexOf(".")!=3D-1) { //$NON-NLS-1$ //added= by mareshkau, fix for JBIDE-4954 + fileName =3D classPathResource.substring(classPathResource.lastInde= xOf("/")+1,classPathResource.lastIndexOf(".")); //$NON-NLS-1$ //$NON-NLS-2$ + fileExtension =3D classPathResource.substring(classPathResource.las= tIndexOf("."),classPathResource.length()); //$NON-NLS-1$ + } if(fileName!=3Dnull && fileName.length()>0 && fileExtension!=3Dnull && fileExtension.length()>0) { File temporaryFile =3DFile.createTempFile( --===============1828917151154296535==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 07:02:03 2009 Content-Type: multipart/mixed; boundary="===============6595074642458723506==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17788 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard. Date: Tue, 29 Sep 2009 07:02:03 -0400 Message-ID: <200909291102.n8TB23C6017093@svn01.web.mwc.hst.phx2.redhat.com> --===============6595074642458723506== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgeraskov Date: 2009-09-29 07:02:02 -0400 (Tue, 29 Sep 2009) New Revision: 17788 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jb= oss/tools/hibernate/jpt/ui/wizard/GenerateDdlWizard.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jb= oss/tools/hibernate/jpt/ui/wizard/GenerateDdlWizardPage.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jb= oss/tools/hibernate/jpt/ui/wizard/Messages.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jb= oss/tools/hibernate/jpt/ui/wizard/messages.properties Log: https://jira.jboss.org/jira/browse/JBIDE-4733 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src= /org/jboss/tools/hibernate/jpt/ui/wizard/GenerateDdlWizard.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/j= boss/tools/hibernate/jpt/ui/wizard/GenerateDdlWizard.java 2009-09-29 10:56:= 42 UTC (rev 17787) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/j= boss/tools/hibernate/jpt/ui/wizard/GenerateDdlWizard.java 2009-09-29 11:02:= 02 UTC (rev 17788) @@ -62,7 +62,7 @@ prop.put("outputFileName", initPage.getFilename()); //$NON-NLS-1$ prop.put("format", "true"); //$NON-NLS-1$ //$NON-NLS-2$ prop.put("scriptToConsole", "false"); //$NON-NLS-1$ //$NON-NLS-2$ - prop.put("exportToDatabase", "false");//$NON-NLS-1$ //$NON-NLS-2$ = + prop.put("exportToDatabase", Boolean.toString(initPage.isExportToDB()))= ;//$NON-NLS-1$ = wc.setAttribute(HibernateJpaPlatformUi.full_exporter_id + ".properties"= , prop); //$NON-NLS-1$ wc.setAttribute(HibernateJpaPlatformUi.full_exporter_id + ".extension_i= d", HibernateLaunchConstants.ATTR_PREFIX + "hbm2ddl"); //$NON-NLS-1$ //$NON= -NLS-2$ Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src= /org/jboss/tools/hibernate/jpt/ui/wizard/GenerateDdlWizardPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/j= boss/tools/hibernate/jpt/ui/wizard/GenerateDdlWizardPage.java 2009-09-29 10= :56:42 UTC (rev 17787) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/j= boss/tools/hibernate/jpt/ui/wizard/GenerateDdlWizardPage.java 2009-09-29 11= :02:02 UTC (rev 17788) @@ -14,6 +14,9 @@ import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.IStatus; import org.eclipse.jdt.internal.ui.wizards.dialogfields.StringDialogField; +import org.eclipse.swt.SWT; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite; import org.hibernate.util.StringHelper; import org.jboss.tools.hibernate.jpt.core.internal.HibernateJpaProject; @@ -26,13 +29,12 @@ = private StringDialogField filename; = + private Button exportToDB; + = protected GenerateDdlWizardPage(HibernateJpaProject jpaProject) { super(jpaProject); } = - /* (non-Javadoc) - * @see org.jboss.tools.hibernate.jpt.ui.wizard.GenerateInitWizardPage#cr= eateChildControls(org.eclipse.swt.widgets.Composite) - */ @Override protected void createChildControls(Composite container) { filename =3D new StringDialogField(); @@ -40,6 +42,13 @@ filename.setText("schema.ddl"); //$NON-NLS-1$ filename.setDialogFieldListener(fieldlistener); filename.doFillIntoGrid(container, numColumns); + = + exportToDB =3D new Button(container, SWT.CHECK); + exportToDB.setText(Messages.GenerateInitWizardPage_export_to_db); + GridData gd =3D new GridData(GridData.FILL_HORIZONTAL); + gd.horizontalSpan =3D numColumns; + exportToDB.setLayoutData(gd); = + = } = protected void dialogChanged() { @@ -65,7 +74,8 @@ return filename.getText(); } = + public boolean isExportToDB(){ + return exportToDB.getSelection(); + } = - - } Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src= /org/jboss/tools/hibernate/jpt/ui/wizard/Messages.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/j= boss/tools/hibernate/jpt/ui/wizard/Messages.java 2009-09-29 10:56:42 UTC (r= ev 17787) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/j= boss/tools/hibernate/jpt/ui/wizard/Messages.java 2009-09-29 11:02:02 UTC (r= ev 17788) @@ -20,6 +20,7 @@ private static final String BUNDLE_NAME =3D "org.jboss.tools.hibernate.jp= t.ui.wizard.messages"; //$NON-NLS-1$ = public static String GenerateInitWizardPage_title; + public static String GenerateInitWizardPage_export_to_db; public static String GenerateInitWizardPage_autodetect; public static String GenerateInitWizardPage_use_console_configuration; public static String GenerateInitWizardPage_refresh; Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src= /org/jboss/tools/hibernate/jpt/ui/wizard/messages.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/j= boss/tools/hibernate/jpt/ui/wizard/messages.properties 2009-09-29 10:56:42 = UTC (rev 17787) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/j= boss/tools/hibernate/jpt/ui/wizard/messages.properties 2009-09-29 11:02:02 = UTC (rev 17788) @@ -1,4 +1,5 @@ GenerateInitWizardPage_title=3DUse existing console configuration or conne= ction profile for database connection +GenerateInitWizardPage_export_to_db=3DExport to Database GenerateInitWizardPage_use_console_configuration=3DUse Console Configurati= on GenerateInitWizardPage_refresh=3DRefresh GenerateInitWizardPage_autodetect=3D[Autodetect] --===============6595074642458723506==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 07:28:00 2009 Content-Type: multipart/mixed; boundary="===============3477224549780518464==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17789 - in trunk/jst/tests/org.jboss.tools.jst.css.test: resources/cssTest/WebContent/pages/JBIDE/4940 and 2 other directories. Date: Tue, 29 Sep 2009 07:28:00 -0400 Message-ID: <200909291128.n8TBS00i022437@svn01.web.mwc.hst.phx2.redhat.com> --===============3477224549780518464== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: sdzmitrovich Date: 2009-09-29 07:28:00 -0400 (Tue, 29 Sep 2009) New Revision: 17789 Added: trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConten= t/pages/JBIDE/4940/ trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConten= t/pages/JBIDE/4940/caseSensitiveTest.css trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css= /test/jbide/CaseSensitiveTest_JBIDE4940.java Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css= /test/CSSAllTests.java trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css= /test/jbide/IncorrectPageAfterSelectionTest_JBIDE4849.java trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css= /test/jbide/NotCompletedCSS_JBIDE4677.java Log: https://jira.jboss.org/jira/browse/JBIDE-4940 Added: trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebCo= ntent/pages/JBIDE/4940/caseSensitiveTest.css =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConte= nt/pages/JBIDE/4940/caseSensitiveTest.css (rev 0) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebConte= nt/pages/JBIDE/4940/caseSensitiveTest.css 2009-09-29 11:28:00 UTC (rev 1778= 9) @@ -0,0 +1,3 @@ +.test { + COLOR: red; +} \ No newline at end of file Property changes on: trunk/jst/tests/org.jboss.tools.jst.css.test/resources= /cssTest/WebContent/pages/JBIDE/4940/caseSensitiveTest.css ___________________________________________________________________ Name: svn:mime-type + text/css Name: svn:eol-style + native Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/= jst/css/test/CSSAllTests.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/CSSAllTests.java 2009-09-29 11:02:02 UTC (rev 17788) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/CSSAllTests.java 2009-09-29 11:28:00 UTC (rev 17789) @@ -14,6 +14,7 @@ import junit.framework.Test; import junit.framework.TestSuite; = +import org.jboss.tools.jst.css.test.jbide.CaseSensitiveTest_JBIDE4940; import org.jboss.tools.jst.css.test.jbide.ExtendingCSSViewTest_JBIDE4850; import org.jboss.tools.jst.css.test.jbide.IncorrectPageAfterSelectionTest_= JBIDE4849; import org.jboss.tools.jst.css.test.jbide.InputFractionalValueTest_JBIDE47= 90; @@ -41,6 +42,7 @@ suite.addTestSuite(ExtendingCSSViewTest_JBIDE4850.class); suite.addTestSuite(NotCompletedCSS_JBIDE4677.class); suite.addTestSuite(IncorrectPageAfterSelectionTest_JBIDE4849.class); + suite.addTestSuite(CaseSensitiveTest_JBIDE4940.class); // $JUnit-END$ = return new ProjectImportTestSetup( Added: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst= /css/test/jbide/CaseSensitiveTest_JBIDE4940.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/CaseSensitiveTest_JBIDE4940.java (rev = 0) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/CaseSensitiveTest_JBIDE4940.java 2009-09-29 11:28:00 UTC (rev = 17789) @@ -0,0 +1,62 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jst.css.test.jbide; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.ui.part.IPage; +import org.eclipse.wst.sse.ui.StructuredTextEditor; +import org.jboss.tools.jst.css.properties.CSSPropertyPage; +import org.jboss.tools.jst.css.test.AbstractCSSViewTest; +import org.jboss.tools.jst.css.view.CSSEditorView; +import org.jboss.tools.test.util.JobUtils; + +/** + * @author Sergey Dzmitrovich + * = + */ +public class CaseSensitiveTest_JBIDE4940 extends AbstractCSSViewTest { + + public static final String TEST_PAGE_NAME =3D "/JBIDE/4940/caseSensitiveT= est.css"; //$NON-NLS-1$ + + public static final String TESTED_ATTRIBUTE =3D "color"; //$NON-NLS-1$ + + public void testCaseSensitive() throws CoreException, + SecurityException, IllegalArgumentException, NoSuchFieldException, + IllegalAccessException { + + IFile pageFile =3D getComponentPath(TEST_PAGE_NAME, getProjectName()); + + assertNotNull(pageFile); + + StructuredTextEditor editor =3D (StructuredTextEditor) openEditor( + pageFile, CSS_EDITOR_ID); + + JobUtils.waitForIdle(); + + assertNotNull(editor); + + CSSEditorView view =3D (CSSEditorView) openView(CSS_EDITOR_VIEW); + + assertNotNull(view); + + IPage page =3D view.getCurrentPage(); + + assertNotNull(page); + + assertTrue(page instanceof CSSPropertyPage); + + assertNotNull(((CSSPropertyPage) page).getStyleAttributes().get( + TESTED_ATTRIBUTE)); + + } + +} Property changes on: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/j= boss/tools/jst/css/test/jbide/CaseSensitiveTest_JBIDE4940.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + native Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/= jst/css/test/jbide/IncorrectPageAfterSelectionTest_JBIDE4849.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/IncorrectPageAfterSelectionTest_JBIDE4849.java 2009-09-29 11:0= 2:02 UTC (rev 17788) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/IncorrectPageAfterSelectionTest_JBIDE4849.java 2009-09-29 11:2= 8:00 UTC (rev 17789) @@ -28,7 +28,7 @@ = public static final String TEST_PAGE_NAME =3D "JBIDE/4849/incorrectPageTe= st.css"; //$NON-NLS-1$ = - public void testInlineStyleEditing() throws CoreException, + public void testIncorrectPageAfterSelection() throws CoreException, SecurityException, IllegalArgumentException, NoSuchFieldException, IllegalAccessException { = Modified: trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/= jst/css/test/jbide/NotCompletedCSS_JBIDE4677.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/NotCompletedCSS_JBIDE4677.java 2009-09-29 11:02:02 UTC (rev 17= 788) +++ trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/cs= s/test/jbide/NotCompletedCSS_JBIDE4677.java 2009-09-29 11:28:00 UTC (rev 17= 789) @@ -28,7 +28,7 @@ = public static final String TEST_PAGE_NAME =3D "JBIDE/4677/notCompletedCss= .css"; //$NON-NLS-1$ = - public void testInlineStyleEditing() throws CoreException, + public void testNotCompletedCSS() throws CoreException, SecurityException, IllegalArgumentException, NoSuchFieldException, IllegalAccessException { = --===============3477224549780518464==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 07:46:19 2009 Content-Type: multipart/mixed; boundary="===============3454360285636204219==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17790 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context. Date: Tue, 29 Sep 2009 07:46:19 -0400 Message-ID: <200909291146.n8TBkJVU026232@svn01.web.mwc.hst.phx2.redhat.com> --===============3454360285636204219== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgeraskov Date: 2009-09-29 07:46:19 -0400 (Tue, 29 Sep 2009) New Revision: 17790 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/= jboss/tools/hibernate/jpt/core/internal/context/NamingStrategyMappingTools.= java Log: https://jira.jboss.org/jira/browse/JBIDE-4879 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/s= rc/org/jboss/tools/hibernate/jpt/core/internal/context/NamingStrategyMappin= gTools.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org= /jboss/tools/hibernate/jpt/core/internal/context/NamingStrategyMappingTools= .java 2009-09-29 11:28:00 UTC (rev 17789) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org= /jboss/tools/hibernate/jpt/core/internal/context/NamingStrategyMappingTools= .java 2009-09-29 11:46:19 UTC (rev 17790) @@ -108,8 +108,7 @@ } } String name =3D owningTable.getName() + '_' + targetTable.getName(); - //return owningTable.getDatabase().convertNameToIdentifier(name); - return name; + return owningTable.getDatabase().convertNameToIdentifier(name); } = public static String buildJoinColumnDefaultName(HibernateJoinColumn joinC= olumn) { = --===============3454360285636204219==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 08:00:36 2009 Content-Type: multipart/mixed; boundary="===============3606248943122741415==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17791 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/loaders/impl. Date: Tue, 29 Sep 2009 08:00:36 -0400 Message-ID: <200909291200.n8TC0agj028657@svn01.web.mwc.hst.phx2.redhat.com> --===============3606248943122741415== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-29 08:00:36 -0400 (Tue, 29 Sep 2009) New Revision: 17791 Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/loaders/impl/PropertiesLoader.java Log: Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/t= ools/common/model/loaders/impl/PropertiesLoader.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/loaders/impl/PropertiesLoader.java 2009-09-29 11:46:19 UTC (rev= 17790) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/loaders/impl/PropertiesLoader.java 2009-09-29 12:00:36 UTC (rev= 17791) @@ -311,7 +311,7 @@ if(ch || mod) o1.setModified(true); } = - private static int getSeparatorIndex(String s) { + public static int getSeparatorIndex(String s) { String tr =3D s.trim(); if(tr.length() =3D=3D 0 || tr.charAt(0) =3D=3D '#' || tr.charAt(0) =3D= =3D '!') return -1; boolean n =3D false; --===============3606248943122741415==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 08:32:41 2009 Content-Type: multipart/mixed; boundary="===============8187679117181905553==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17792 - in trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui: diagram/editors/model and 1 other directories. Date: Tue, 29 Sep 2009 08:32:41 -0400 Message-ID: <200909291232.n8TCWfp9002647@svn01.web.mwc.hst.phx2.redhat.com> --===============8187679117181905553== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vyemialyanchyk Date: 2009-09-29 08:32:40 -0400 (Tue, 29 Sep 2009) New Revision: 17792 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/DiagramViewer.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/model/ElementsFactory.java trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/view/ObjectEditorInput.java Log: https://jira.jboss.org/jira/browse/JBIDE-4865 - fixed Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/DiagramViewer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/DiagramViewer.java 2009-09-29 12:00:36 = UTC (rev 17791) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/DiagramViewer.java 2009-09-29 12:32:40 = UTC (rev 17792) @@ -13,7 +13,6 @@ import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.ArrayList; -import java.util.Collections; import java.util.HashSet; import java.util.Iterator; import java.util.List; @@ -275,64 +274,30 @@ public boolean isDirty() { return ormDiagram.isDirty(); } - = - protected String getItemName(RootClass rootClass) { - String res =3D rootClass.getEntityName(); - if (res =3D=3D null) { - res =3D rootClass.getClassName(); - } - if (res =3D=3D null) { - res =3D rootClass.getNodeName(); - } - res =3D res.substring(res.lastIndexOf(".") + 1); //$NON-NLS-1$ - return res; - } = protected void setInput(IEditorInput input) { ObjectEditorInput objectEditorInput =3D (ObjectEditorInput)input; ConsoleConfiguration configuration =3D objectEditorInput.getConfiguratio= n(); - Object obj =3D objectEditorInput.getObject(); - setPartName(DiagramViewerMessages.DiagramViewer_diagram_for + " " + getD= iagramName(obj)); //$NON-NLS-1$ - if (obj instanceof RootClass) { - RootClass rootClass =3D (RootClass)obj; + ArrayList roots =3D objectEditorInput.getRootClasses(); + setPartName(DiagramViewerMessages.DiagramViewer_diagram_for + " " + obje= ctEditorInput.getName()); //$NON-NLS-1$ + if (roots.size() =3D=3D 1) { + RootClass rootClass =3D roots.get(0); ormDiagram =3D new OrmDiagram(configuration, rootClass); - } else if (obj instanceof RootClass[]) { - RootClass[] rootClasses =3D (RootClass[])obj; + } else if (roots.size() > 1) { + RootClass[] rootClasses =3D roots.toArray(new RootClass[0]); ormDiagram =3D new OrmDiagram(configuration, rootClasses); } super.setInput(input); loadProperties(); } = - protected String getDiagramName(Object obj) { - String name =3D ""; //$NON-NLS-1$ - if (obj instanceof RootClass) { - RootClass rootClass =3D (RootClass)obj; - name =3D getItemName(rootClass); - } else if (obj instanceof RootClass[]) { - RootClass[] rootClasses =3D (RootClass[])obj; - ArrayList names =3D new ArrayList(); - for (int i =3D 0; i < rootClasses.length; i++) { - names.add(getItemName(rootClasses[i])); - } - // sort to get same name for same combinations of entities - Collections.sort(names); - name =3D names.size() > 0 ? names.get(0) : ""; //$NON-NLS-1$ - for (int i =3D 1; i < rootClasses.length; i++) { - name +=3D " & " + names.get(i); //$NON-NLS-1$ - } - } - return name; - } - public String getDiagramName() { IEditorInput input =3D getEditorInput(); - Object obj =3D null; if (input instanceof ObjectEditorInput) { ObjectEditorInput objectEditorInput =3D (ObjectEditorInput)input; - obj =3D objectEditorInput.getObject(); + return objectEditorInput.getName(); } - return getDiagramName(obj); + return ""; //$NON-NLS-1$ } = /** Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/model/ElementsFactory.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/model/ElementsFactory.java 2009-09-29 1= 2:00:36 UTC (rev 17791) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/model/ElementsFactory.java 2009-09-29 1= 2:32:40 UTC (rev 17792) @@ -58,7 +58,8 @@ } Iterator it =3D element.getChildrenList().iterator(); while (it.hasNext()) { - createChildren(it.next()); + final Shape shape =3D it.next(); + createChildren(shape); } } = Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/view/ObjectEditorInput.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/view/ObjectEditorInput.java 2009-09-29 12:00:36 UTC (re= v 17791) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/view/ObjectEditorInput.java 2009-09-29 12:32:40 UTC (re= v 17792) @@ -1,5 +1,5 @@ /*************************************************************************= ****** - * Copyright (c) 2007 Red Hat, Inc. + * Copyright (c) 2007-2009 Red Hat, Inc. * Distributed under license by Red Hat, Inc. All rights reserved. * This program is made available under the terms of the * Eclipse Public License v1.0 which accompanies this distribution, @@ -10,43 +10,89 @@ *************************************************************************= *****/ package org.jboss.tools.hibernate.ui.view; = +import java.util.ArrayList; +import java.util.Collections; +import java.util.Comparator; + import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.ui.IEditorInput; import org.eclipse.ui.IPersistableElement; import org.hibernate.console.ConsoleConfiguration; +import org.hibernate.mapping.RootClass; = /** * + * author: ? + * author: Vitali Yemialyanchyk */ public class ObjectEditorInput implements IEditorInput{ = - protected Object fObject; + protected ArrayList roots; protected ConsoleConfiguration configuration; = - public ObjectEditorInput(ConsoleConfiguration configuration, Object objec= t) { - fObject =3D object; + public ObjectEditorInput(ConsoleConfiguration configuration, RootClass rc= ) { + roots =3D new ArrayList(); + roots.add(rc); this.configuration =3D configuration; } = - public Object getObject() { - return fObject; + public ObjectEditorInput(ConsoleConfiguration configuration, RootClass[] = rcs) { + roots =3D new ArrayList(); + for (int i =3D 0; i < rcs.length; i++) { + roots.add(rcs[i]); + } + Collections.sort(roots, new RootClassComparator()); + this.configuration =3D configuration; } + = + public class RootClassComparator implements Comparator { + public int compare(RootClass o1, RootClass o2) { + return getItemName(o1).compareTo(getItemName(o2)); + } + } = - public boolean exists() { return false; } = + public ArrayList getRootClasses() { + return roots; + } = public ImageDescriptor getImageDescriptor() { return ImageDescriptor.getMissingImageDescriptor(); } = - public String getName() { - return ""; //$NON-NLS-1$ + return getDiagramName(); } = + public String getDiagramName() { + String name =3D ""; //$NON-NLS-1$ + ArrayList names =3D new ArrayList(); + for (int i =3D 0; i < roots.size(); i++) { + names.add(getItemName(roots.get(i))); + } + // sort to get same name for same combinations of entities + Collections.sort(names); + name =3D names.size() > 0 ? names.get(0) : ""; //$NON-NLS-1$ + for (int i =3D 1; i < names.size(); i++) { + name +=3D " & " + names.get(i); //$NON-NLS-1$ + } + return name; + } + = + protected String getItemName(RootClass rootClass) { + String res =3D rootClass.getEntityName(); + if (res =3D=3D null) { + res =3D rootClass.getClassName(); + } + if (res =3D=3D null) { + res =3D rootClass.getNodeName(); + } + res =3D res.substring(res.lastIndexOf(".") + 1); //$NON-NLS-1$ + return res; + } = public IPersistableElement getPersistable() { return null; @@ -68,10 +114,29 @@ } = public boolean equals(Object obj) { - return (obj instanceof ObjectEditorInput && ((ObjectEditorInput)obj).fOb= ject =3D=3D fObject); + boolean res =3D false; + if (!(obj instanceof ObjectEditorInput)) { + return res; + } + final ObjectEditorInput oei =3D (ObjectEditorInput)obj; + if (!configuration.equals(oei.getConfiguration())) { + return res; + } + final ArrayList rootsOei =3D oei.getRootClasses(); + if (roots.size() !=3D rootsOei.size()) { + return res; + } + res =3D true; + for (int i =3D 0; i < roots.size(); i++) { + if (!roots.get(i).equals(rootsOei.get(i))) { + res =3D false; + break; + } + } + return res; } = public int hashCode() { - return fObject.hashCode(); + return roots.hashCode() + configuration.hashCode(); } } --===============8187679117181905553==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 09:34:22 2009 Content-Type: multipart/mixed; boundary="===============4253029580637702570==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17793 - in trunk/jsf/docs/userguide/en: modules and 1 other directory. Date: Tue, 29 Sep 2009 09:34:22 -0400 Message-ID: <200909291334.n8TDYMsO014632@svn01.web.mwc.hst.phx2.redhat.com> --===============4253029580637702570== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: chukhutsina Date: 2009-09-29 09:34:22 -0400 (Tue, 29 Sep 2009) New Revision: 17793 Added: trunk/jsf/docs/userguide/en/images/editors_features/editors_features_8e.= png Modified: trunk/jsf/docs/userguide/en/modules/richfaces_support.xml Log:

https://jira.jboss.org/jira/browse/JBDS-790 -Added the info about suppor= ted OpenOn in "ForID"-like attributes.

Added: trunk/jsf/docs/userguide/en/images/editors_features/editors_features= _8e.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/jsf/docs/userguide/en/images/editors_features/ed= itors_features_8e.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/jsf/docs/userguide/en/modules/richfaces_support.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/docs/userguide/en/modules/richfaces_support.xml 2009-09-29 12= :32:40 UTC (rev 17792) +++ trunk/jsf/docs/userguide/en/modules/richfaces_support.xml 2009-09-29 13= :34:22 UTC (rev 17793) @@ -92,6 +92,16 @@ + OpenOn is also supported in "ForID"-lik= e attributes = + (the attributes, where the value should be ID or the list of IDs) in RichFaces. +
+ OpenOn With "ForID"-like attributes + + + + + +
=
--===============4253029580637702570==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 10:33:56 2009 Content-Type: multipart/mixed; boundary="===============2016701340099186302==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17794 - trunk/hibernatetools/docs/reference/en/modules. Date: Tue, 29 Sep 2009 10:33:55 -0400 Message-ID: <200909291433.n8TEXtOc026473@svn01.web.mwc.hst.phx2.redhat.com> --===============2016701340099186302== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: ochikvina Date: 2009-09-29 10:33:55 -0400 (Tue, 29 Sep 2009) New Revision: 17794 Modified: trunk/hibernatetools/docs/reference/en/modules/plugins.xml Log: https://jira.jboss.org/jira/browse/JBDS-685 Modified: trunk/hibernatetools/docs/reference/en/modules/plugins.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/docs/reference/en/modules/plugins.xml 2009-09-29 1= 3:34:22 UTC (rev 17793) +++ trunk/hibernatetools/docs/reference/en/modules/plugins.xml 2009-09-29 1= 4:33:55 UTC (rev 17794) @@ -76,11 +76,13 @@ file if you do not already have such one. = Start the wizard by clicking - New > Other (Ctrl+N) or on a web Seam project i= n Web Projects view WebContent -> New -> File -> Hibernate Conf= iguration 3.0 = - , then + New > Other (Ctrl+N), then Hibernate > Hibernate Configuration File (cfg.xml) and press Next + + or on a web Seam project in the Web Projects vi= ew = + WebContent -> New -> File -> Hibernate Configur= ation 3.0 = . After selecting the wanted location for the hibernate.cfg.xml file, you will see the following page: --===============2016701340099186302==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 10:50:15 2009 Content-Type: multipart/mixed; boundary="===============5638022268814993412==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17795 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/diagram/editors/model. Date: Tue, 29 Sep 2009 10:50:14 -0400 Message-ID: <200909291450.n8TEoEv0029771@svn01.web.mwc.hst.phx2.redhat.com> --===============5638022268814993412== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vyemialyanchyk Date: 2009-09-29 10:50:14 -0400 (Tue, 29 Sep 2009) New Revision: 17795 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/= tools/hibernate/ui/diagram/editors/model/ElementsFactory.java Log: https://jira.jboss.org/jira/browse/JBIDE-4958 - fixed Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org= /jboss/tools/hibernate/ui/diagram/editors/model/ElementsFactory.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/model/ElementsFactory.java 2009-09-29 1= 4:33:55 UTC (rev 17794) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss= /tools/hibernate/ui/diagram/editors/model/ElementsFactory.java 2009-09-29 1= 4:50:14 UTC (rev 17795) @@ -78,7 +78,7 @@ if (clazz instanceof RootClass) { RootClass rootClass =3D (RootClass)clazz; s =3D getOrCreatePersistentClass(rootClass, null); - if (!isConnectionExist(shape, s)) { + if (shouldCreateConnection(shape, s)) { connections.add(new Connection(shape, s)); } } else if (clazz instanceof Subclass) { @@ -87,7 +87,7 @@ } } else { s =3D getOrCreatePersistentClass(new SpecialRootClass(property), null); - if (!isConnectionExist(shape, s)) { + if (shouldCreateConnection(shape, s)) { connections.add(new Connection(shape, s)); } createConnections(s, getOrCreateDatabaseTable(property.getValue().getTa= ble())); @@ -118,63 +118,67 @@ } SimpleValue value =3D (SimpleValue)csChild0.getOrmElement(); OrmShape tableShape =3D getOrCreateDatabaseTable(value.getTable()); - Iterator it =3D value.getColumnIterator(); - while (it.hasNext()) { - Object el =3D it.next(); - if (el instanceof Column) { - Column col =3D (Column)el; - Shape shape =3D tableShape.getChild(col); - if (shape !=3D null && !isConnectionExist(csChild0, shape)) { - connections.add(new Connection(csChild0, shape)); + if (tableShape !=3D null) { + Iterator it =3D value.getColumnIterator(); + while (it.hasNext()) { + Object el =3D it.next(); + if (el instanceof Column) { + Column col =3D (Column)el; + Shape shape =3D tableShape.getChild(col); + if (shouldCreateConnection(csChild0, shape)) { + connections.add(new Connection(csChild0, shape)); + } } } } - if (!isConnectionExist(csChild1, childShape)) { + if (shouldCreateConnection(csChild1, childShape)) { connections.add(new Connection(csChild1, childShape)); } = } else if (collection.isOneToMany()) { childShape =3D getOrCreateAssociationClass(property); - if (childShape =3D=3D null) { - return; - } - if (!isConnectionExist(csChild1, childShape)) { - connections.add(new Connection(csChild1, childShape)); - } - OrmShape keyTableShape =3D getOrCreateDatabaseTable(collection.getKey()= .getTable()); - Iterator it =3D collection.getKey().getColumnIterator(); - while (it.hasNext()) { - Object el =3D it.next(); - if (el instanceof Column) { - Column col =3D (Column)el; - Shape shape =3D keyTableShape.getChild(col); - if (shape !=3D null && !isConnectionExist(csChild0, shape)) { - connections.add(new Connection(csChild0, shape)); + if (childShape !=3D null) { + if (shouldCreateConnection(csChild1, childShape)) { + connections.add(new Connection(csChild1, childShape)); + } + OrmShape keyTableShape =3D getOrCreateDatabaseTable(collection.getKey(= ).getTable()); + Iterator it =3D collection.getKey().getColumnIterator(); + while (it.hasNext()) { + Object el =3D it.next(); + if (el instanceof Column) { + Column col =3D (Column)el; + Shape shape =3D keyTableShape.getChild(col); + if (shouldCreateConnection(csChild0, shape)) { + connections.add(new Connection(csChild0, shape)); + } } } } - = - } else /* if (collection.isMap() || collection.isSet()) */ { + + } else { + // this is case: if (collection.isMap() || collection.isSet()) childShape =3D getOrCreateDatabaseTable(collection.getCollectionTable()= ); - Iterator it =3D ((DependantValue)csChild0.getOrmElement()).getColumnIte= rator(); - while (it.hasNext()) { - Object el =3D it.next(); - if (el instanceof Column) { - Column col =3D (Column)el; - Shape shape =3D childShape.getChild(col); - if (shape !=3D null && !isConnectionExist(csChild0, shape)) { - connections.add(new Connection(csChild0, shape)); + if (childShape !=3D null) { + Iterator it =3D ((DependantValue)csChild0.getOrmElement()).getColumnIt= erator(); + while (it.hasNext()) { + Object el =3D it.next(); + if (el instanceof Column) { + Column col =3D (Column)el; + Shape shape =3D childShape.getChild(col); + if (shouldCreateConnection(csChild0, shape)) { + connections.add(new Connection(csChild0, shape)); + } } } - } - it =3D ((SimpleValue)csChild1.getOrmElement()).getColumnIterator(); - while (it.hasNext()) { - Object el =3D it.next(); - if (el instanceof Column) { - Column col =3D (Column)el; - Shape shape =3D childShape.getChild(col); - if (shape !=3D null && !isConnectionExist(csChild1, shape)) { - connections.add(new Connection(csChild1, shape)); + it =3D ((SimpleValue)csChild1.getOrmElement()).getColumnIterator(); + while (it.hasNext()) { + Object el =3D it.next(); + if (el instanceof Column) { + Column col =3D (Column)el; + Shape shape =3D childShape.getChild(col); + if (shouldCreateConnection(csChild1, shape)) { + connections.add(new Connection(csChild1, shape)); + } } } } @@ -193,7 +197,11 @@ Object clazz =3D iterator.next(); if (clazz instanceof RootClass) { RootClass cls =3D (RootClass)clazz; - getOrCreatePersistentClass(cls, null); + if (databaseTable.equals(cls.getTable())) { + // create persistent class shape only for RootClass, + // which has same table reference + getOrCreatePersistentClass(cls, null); + } } } } = @@ -202,7 +210,8 @@ } = @SuppressWarnings("unchecked") - protected OrmShape getOrCreatePersistentClass(PersistentClass persistentC= lass, Table componentClassDatabaseTable) { + protected OrmShape getOrCreatePersistentClass(PersistentClass persistentC= lass, = + Table componentClassDatabaseTable) { OrmShape classShape =3D null; if (persistentClass =3D=3D null) { return classShape; @@ -221,7 +230,7 @@ shape =3D getOrCreateDatabaseTable(componentClassDatabaseTable); } createConnections(classShape, shape); - if (!isConnectionExist(classShape, shape)) { + if (shouldCreateConnection(classShape, shape)) { connections.add(new Connection(classShape, shape)); } } @@ -239,12 +248,12 @@ Table jcTable =3D ((Subclass)element).getTable(); OrmShape jcTableShape =3D getOrCreateDatabaseTable(jcTable); createConnections(subclassShape, jcTableShape); - if (!isConnectionExist(subclassShape, jcTableShape)) { + if (shouldCreateConnection(subclassShape, jcTableShape)) { connections.add(new Connection(subclassShape, jcTableShape)); } } else { createConnections(subclassShape, shape); - if (!isConnectionExist(subclassShape, shape)) { + if (shouldCreateConnection(subclassShape, shape)) { connections.add(new Connection(subclassShape, shape)); } } @@ -272,7 +281,7 @@ componentClassShape =3D getOrCreateComponentClass(((RootClass)persist= entClass).getIdentifierProperty()); = Shape idPropertyShape =3D classShape.getChild(persistentClass.getIden= tifierProperty()); - if (idPropertyShape !=3D null && !isConnectionExist(idPropertyShape, = componentClassShape)) { + if (shouldCreateConnection(idPropertyShape, componentClassShape)) { connections.add(new Connection(idPropertyShape, componentClassShape)= ); } = @@ -290,7 +299,7 @@ Iterator iterator =3D join.getPropertyIterator(); while (iterator.hasNext()) { Property property =3D iterator.next(); - OrmShape tableShape =3D getOrCreateDatabaseTable(property.getValue().= getTable()); + OrmShape tableShape =3D getOrCreateDatabaseTable(property.getValue().g= etTable()); createConnections(classShape, tableShape); } } @@ -311,13 +320,14 @@ tableShape =3D getOrCreateDatabaseTable(component.getTable()); } createConnections(classShape, tableShape); - if (!isConnectionExist(classShape, tableShape)) { + if (shouldCreateConnection(classShape, tableShape)) { connections.add(new Connection(classShape, tableShape)); } Shape parentShape =3D ((SpecialOrmShape)classShape).getParentShape(); if (parentShape !=3D null) { - OrmShape parentClassShape =3D elements.get(Utils.getName(((Property)p= arentShape.getOrmElement()).getPersistentClass().getEntityName())); - if (!isConnectionExist(parentShape, parentClassShape)) { + OrmShape parentClassShape =3D elements.get( + Utils.getName(((Property)parentShape.getOrmElement()).getPersistent= Class().getEntityName())); + if (shouldCreateConnection(parentShape, parentClassShape)) { connections.add(new Connection(parentShape, parentClassShape)); } } @@ -347,7 +357,7 @@ tableShape =3D getOrCreateDatabaseTable(component.getAssociatedClass()= .getTable()); } createConnections(classShape, tableShape); - if (!isConnectionExist(classShape, tableShape)) { + if (shouldCreateConnection(classShape, tableShape)) { connections.add(new Connection(classShape, tableShape)); } } @@ -381,7 +391,11 @@ = = @SuppressWarnings("unchecked") - private void createConnections(ExpandableShape persistentClass, Expandabl= eShape dbTable) { + private boolean createConnections(ExpandableShape persistentClass, Expand= ableShape dbTable) { + boolean res =3D false; + if (persistentClass =3D=3D null || dbTable =3D=3D null) { + return res; + } Property parentProperty =3D null; if (persistentClass.getOrmElement() instanceof SpecialRootClass) { parentProperty =3D ((SpecialRootClass)persistentClass.getOrmElement()).= getParentProperty(); @@ -421,14 +435,16 @@ name2 =3D property2.getName(); } if (dbColumn.getName().equals(name2)) { - if (!isConnectionExist(shape, shapeCol)) { + if (shouldCreateConnection(shape, shapeCol)) { connections.add(new Connection(shape, shapeCol)); + res =3D true; } processed.add(shapeCol); } = } } } + return res; } = = @@ -447,4 +463,14 @@ private boolean isConnectionExist(Shape source, Shape target) { return Utils.isConnectionExist(source, target); } + = + private boolean shouldCreateConnection(Shape source, Shape target) { + if (source =3D=3D null || target =3D=3D null || source =3D=3D target) { + return false; + } + if (isConnectionExist(source, target)) { + return false; + } + return true; + } } --===============5638022268814993412==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 11:11:16 2009 Content-Type: multipart/mixed; boundary="===============4305020037925994484==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17796 - in trunk/common/plugins/org.jboss.tools.common.model.ui: schema and 1 other directories. Date: Tue, 29 Sep 2009 11:11:15 -0400 Message-ID: <200909291511.n8TFBFgi001251@svn01.web.mwc.hst.phx2.redhat.com> --===============4305020037925994484== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-29 11:11:15 -0400 (Tue, 29 Sep 2009) New Revision: 17796 Added: trunk/common/plugins/org.jboss.tools.common.model.ui/schema/propertiesFi= leContentAssist.exsd trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/texteditors/propertyeditor/AbstractPropertiesContentAssist= Processor.java trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/texteditors/propertyeditor/PropertiesSourceViewerConfigura= tion.java Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools= /common/model/ui/texteditors/propertyeditor/PropertiesTextEditorStub.java Log: https://jira.jboss.org/jira/browse/JBIDE-4916 Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml 2009-09= -29 14:50:14 UTC (rev 17795) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml 2009-09= -29 15:11:15 UTC (rev 17796) @@ -10,6 +10,7 @@ + = Added: trunk/common/plugins/org.jboss.tools.common.model.ui/schema/properti= esFileContentAssist.exsd =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/schema/propertiesF= ileContentAssist.exsd (rev 0) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/schema/propertiesF= ileContentAssist.exsd 2009-09-29 15:11:15 UTC (rev 17796) @@ -0,0 +1,109 @@ + + + + + + + + + [Enter description of this extension point.] + + + + + + + + + + + + + + + + + = + + + + + + + = + + + + + + + = + + + + + + + + + + + + + + + = + + + + + + + + + + = + + + + + + + + + + + + [Enter the first release in which this extension point appears.] + + + + + + + + + [Enter extension point usage example here.] + + + + + + + + + [Enter API information here.] + + + + + + + + + [Enter information about supplied implementation of this extensio= n point.] + + + + + Property changes on: trunk/common/plugins/org.jboss.tools.common.model.ui/s= chema/propertiesFileContentAssist.exsd ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/t= ools/common/model/ui/texteditors/propertyeditor/AbstractPropertiesContentAs= sistProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/texteditors/propertyeditor/AbstractPropertiesContentAssis= tProcessor.java (rev 0) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/texteditors/propertyeditor/AbstractPropertiesContentAssis= tProcessor.java 2009-09-29 15:11:15 UTC (rev 17796) @@ -0,0 +1,162 @@ +package org.jboss.tools.common.model.ui.texteditors.propertyeditor; + +import java.util.HashSet; +import java.util.Set; + +import org.eclipse.jface.text.ITextViewer; +import org.eclipse.jface.text.contentassist.ICompletionProposal; +import org.eclipse.jface.text.contentassist.IContentAssistProcessor; +import org.eclipse.jface.text.contentassist.IContextInformation; +import org.eclipse.jface.text.contentassist.IContextInformationValidator; +import org.jboss.tools.common.model.XModelObject; +import org.jboss.tools.common.model.XModelObjectConstants; +import org.jboss.tools.common.model.loaders.impl.PropertiesLoader; + +public class AbstractPropertiesContentAssistProcessor implements IContentA= ssistProcessor { + protected XModelObject object; + = + public AbstractPropertiesContentAssistProcessor() {} + + public void setModelObject(XModelObject object) { + this.object =3D object; + } + + public ICompletionProposal[] computeCompletionProposals(ITextViewer viewe= r, + int offset) { + return null; + } + + public IContextInformation[] computeContextInformation(ITextViewer viewer, + int offset) { + return null; + } + + public char[] getCompletionProposalAutoActivationCharacters() { + return null; + } + + public char[] getContextInformationAutoActivationCharacters() { + return null; + } + + public IContextInformationValidator getContextInformationValidator() { + return null; + } + + public String getErrorMessage() { + return null; + } + + protected class Context { + boolean inComment =3D false; + int offset; + int nameOffset; + int nameLength; + boolean inPropertyName =3D false; + String propertyName; + + int valueOffset; + int valueLength; + String propertyValue; + Set allProperties =3D new HashSet(); + = + public boolean isInComment() { + return inComment; + } + + public boolean isInPropertyName() { + return inPropertyName; + } + + public int getNameOffset() { + return nameOffset; + } + + public int getNameLength() { + return nameLength; + } + + public int getValueOffset() { + return valueOffset; + } + + public int getValueLength() { + return valueLength; + } + + public String getPropertyName() { + return propertyName; + } + + public boolean hasProperty(String property) { + return allProperties.contains(property) && !property.equals(propertyNam= e); + } + + public boolean isInValue() { + return !isInPropertyName() && offset >=3D valueOffset; + } + } + + public Context getContext(ITextViewer viewer, int offset) { + Context context =3D new Context(); + context.offset =3D offset; + XModelObject[] ps =3D object.getChildren(); + for (int i =3D 0; i < ps.length; i++) { + String name =3D ps[i].getAttributeValue(XModelObjectConstants.ATTR_NAME= ); + context.allProperties.add(name); + } + int lineOffset =3D getNameOffset(viewer, offset); + context.nameOffset =3D lineOffset; + int valueEnd =3D getValueEnd(viewer, offset); + String line =3D viewer.getDocument().get().substring(context.nameOffset,= valueEnd); + if(line.trim().startsWith("#")) { + context.inComment =3D true; + return context; + } + int si =3D PropertiesLoader.getSeparatorIndex(line); + if(si < 0) si =3D line.length(); + if(si =3D=3D line.length()) { + context.inPropertyName =3D true; + } + String name =3D line.substring(0, si).trim(); + context.propertyName =3D name; + context.nameLength =3D name.length(); + if(name.length() > 0) { + int b =3D line.indexOf(name); + if(b >=3D 0) { + context.nameOffset +=3D b; + } + } + if(offset >=3D context.nameOffset && offset <=3D context.nameOffset + co= ntext.nameLength) { + context.inPropertyName =3D true; + } + String value =3D (si >=3D line.length()) ? "" : line.substring(si + 1, l= ine.length()); + context.valueLength =3D value.length(); + context.propertyValue =3D value; + if(si < line.length()) { + context.valueOffset =3D lineOffset + si + 1; + int b =3D line.indexOf(value, si + 1); + if(b > 0) { + context.valueOffset =3D lineOffset + b; + } + } + return context; + } + + int getNameOffset(ITextViewer viewer, int offset) { + String body =3D viewer.getDocument().get(); + for (int i =3D offset - 1; i >=3D 0; i--) { + char c =3D body.charAt(i); + if(c =3D=3D '\n' || c =3D=3D '\r') return i + 1; + } + return 0; + } + int getValueEnd(ITextViewer viewer, int offset) { + String body =3D viewer.getDocument().get(); + for (int i =3D offset; i < body.length(); i++) { + char c =3D body.charAt(i); + if(c =3D=3D '\n' || c =3D=3D '\r') return i; + } + return body.length(); + } +} Property changes on: trunk/common/plugins/org.jboss.tools.common.model.ui/s= rc/org/jboss/tools/common/model/ui/texteditors/propertyeditor/AbstractPrope= rtiesContentAssistProcessor.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/t= ools/common/model/ui/texteditors/propertyeditor/PropertiesSourceViewerConfi= guration.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/texteditors/propertyeditor/PropertiesSourceViewerConfigur= ation.java (rev 0) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/texteditors/propertyeditor/PropertiesSourceViewerConfigur= ation.java 2009-09-29 15:11:15 UTC (rev 17796) @@ -0,0 +1,82 @@ +package org.jboss.tools.common.model.ui.texteditors.propertyeditor; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IConfigurationElement; +import org.eclipse.core.runtime.IExtensionPoint; +import org.eclipse.core.runtime.Platform; +import org.eclipse.jdt.internal.ui.JavaPlugin; +import org.eclipse.jdt.internal.ui.propertiesfileeditor.IPropertiesFilePar= titions; +import org.eclipse.jdt.internal.ui.propertiesfileeditor.PropertiesFileSour= ceViewerConfiguration; +import org.eclipse.jdt.ui.text.IColorManager; +import org.eclipse.jface.preference.IPreferenceStore; +import org.eclipse.jface.text.DefaultInformationControl; +import org.eclipse.jface.text.IInformationControl; +import org.eclipse.jface.text.IInformationControlCreator; +import org.eclipse.jface.text.contentassist.ContentAssistant; +import org.eclipse.jface.text.contentassist.IContentAssistant; +import org.eclipse.jface.text.source.ISourceViewer; +import org.eclipse.swt.widgets.Shell; +import org.eclipse.ui.IEditorInput; +import org.eclipse.ui.IFileEditorInput; +import org.eclipse.ui.texteditor.ITextEditor; +import org.jboss.tools.common.model.XModelObject; +import org.jboss.tools.common.model.ui.ModelUIPlugin; +import org.jboss.tools.common.model.ui.editor.IModelObjectEditorInput; + +public class PropertiesSourceViewerConfiguration extends PropertiesFileSou= rceViewerConfiguration { + + ContentAssistant fContentAssistant; + + public PropertiesSourceViewerConfiguration(IColorManager colorManager, + IPreferenceStore preferenceStore, ITextEditor editor, + String partitioning) { + super(colorManager, preferenceStore, editor, partitioning); + + } + + public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) { + if(fContentAssistant =3D=3D null) { + fContentAssistant =3D new ContentAssistant(); + IEditorInput input =3D getEditor().getEditorInput(); + if(input instanceof IFileEditorInput && input instanceof IModelObjectEd= itorInput) { + IFile f =3D ((IFileEditorInput)input).getFile(); + String name =3D f.getName(); + AbstractPropertiesContentAssistProcessor p =3D createProcessorByFileNa= me(name); + if(p !=3D null) { + XModelObject o =3D ((IModelObjectEditorInput)input).getXModelObject(); + p.setModelObject(o); + fContentAssistant.setContentAssistProcessor(p, "__dftl_partition_cont= ent_type"); + } + fContentAssistant.setInformationControlCreator(new IInformationControl= Creator() { + public IInformationControl createInformationControl(Shell parent) { + return new DefaultInformationControl(parent, JavaPlugin.getAdditiona= lInfoAffordanceString()); + } + }); + } + } + return fContentAssistant; + } + + static String EXTENSION_POINT =3D "org.jboss.tools.common.model.ui.proper= tiesFileContentAssist"; + = + private AbstractPropertiesContentAssistProcessor createProcessorByFileNam= e(String fileName) { + IExtensionPoint point =3D Platform.getExtensionRegistry().getExtensionPo= int(EXTENSION_POINT); + if(point =3D=3D null) return null; + IConfigurationElement[] cs =3D point.getConfigurationElements(); + for (IConfigurationElement c: cs) { + if(fileName.equals(c.getAttribute("fileName"))) { + try { + AbstractPropertiesContentAssistProcessor p =3D (AbstractPropertiesCon= tentAssistProcessor)c.createExecutableExtension("processor"); + return p; + } catch (CoreException e) { + ModelUIPlugin.getPluginLog().logError(e); + } catch (ClassCastException e2) { + ModelUIPlugin.getPluginLog().logError(e2); + } + } = + } + + return null; + } +} Property changes on: trunk/common/plugins/org.jboss.tools.common.model.ui/s= rc/org/jboss/tools/common/model/ui/texteditors/propertyeditor/PropertiesSou= rceViewerConfiguration.java ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jbos= s/tools/common/model/ui/texteditors/propertyeditor/PropertiesTextEditorStub= .java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/texteditors/propertyeditor/PropertiesTextEditorStub.java = 2009-09-29 14:50:14 UTC (rev 17795) +++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tool= s/common/model/ui/texteditors/propertyeditor/PropertiesTextEditorStub.java = 2009-09-29 15:11:15 UTC (rev 17796) @@ -18,7 +18,12 @@ import org.eclipse.core.resources.IResource; import org.jboss.tools.common.model.ui.texteditors.dnd.TextEditorDrop; import org.jboss.tools.common.model.ui.texteditors.dnd.TextEditorDropProvi= der; +import org.eclipse.jdt.internal.ui.JavaPlugin; +import org.eclipse.jdt.internal.ui.propertiesfileeditor.IPropertiesFilePar= titions; import org.eclipse.jdt.internal.ui.propertiesfileeditor.PropertiesFileEdit= or; +import org.eclipse.jdt.internal.ui.propertiesfileeditor.PropertiesFileSour= ceViewerConfiguration; +import org.eclipse.jdt.ui.text.JavaTextTools; +import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.jface.text.DocumentEvent; import org.eclipse.jface.text.IDocumentListener; import org.eclipse.jface.text.source.ISourceViewer; @@ -92,4 +97,11 @@ } = } + + protected void initializeEditor() { + super.initializeEditor(); + IPreferenceStore store=3D JavaPlugin.getDefault().getCombinedPreferenceS= tore(); + JavaTextTools textTools=3D JavaPlugin.getDefault().getJavaTextTools(); + setSourceViewerConfiguration(new PropertiesSourceViewerConfiguration(tex= tTools.getColorManager(), store, this, IPropertiesFilePartitions.PROPERTIES= _FILE_PARTITIONING)); + } } --===============4305020037925994484==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 11:14:46 2009 Content-Type: multipart/mixed; boundary="===============9011312077771327827==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17797 - in trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml: resources/help and 1 other directory. Date: Tue, 29 Sep 2009 11:14:46 -0400 Message-ID: <200909291514.n8TFEkAs001782@svn01.web.mwc.hst.phx2.redhat.com> --===============9011312077771327827== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-29 11:14:46 -0400 (Tue, 29 Sep 2009) New Revision: 17797 Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/hel= p/keys-hibernate-config.properties Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4916 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin= .xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin.xml 2= 009-09-29 15:11:15 UTC (rev 17796) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin.xml 2= 009-09-29 15:14:46 UTC (rev 17797) @@ -12,6 +12,7 @@ + Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources= /help/keys-hibernate-config.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/he= lp/keys-hibernate-config.properties (rev 0) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/he= lp/keys-hibernate-config.properties 2009-09-29 15:14:46 UTC (rev 17797) @@ -0,0 +1,2 @@ +hibernate.connection.pool_size.description=3Dmaximum number of pooled conn= ections +hibernate.dialect.description=3D

Full class name of dialect

In most ca= ses Hibernate will actually be able to choose the correct org.hibernate.dia= lect.Dialect implementation based on the JDBC metadata returned by the JDBC= driver.

Write all SQL statements to console. This is an alternative to s= etting the log category org.hibernate.SQL to debug. \ No newline at end of file Property changes on: trunk/hibernatetools/plugins/org.jboss.tools.hibernate= .xml/resources/help/keys-hibernate-config.properties ___________________________________________________________________ Name: svn:mime-type + text/plain --===============9011312077771327827==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 11:16:01 2009 Content-Type: multipart/mixed; boundary="===============5757794905525528425==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17798 - in trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui: src/org/jboss/tools/hibernate/ui/xml/editor and 1 other directory. Date: Tue, 29 Sep 2009 11:16:01 -0400 Message-ID: <200909291516.n8TFG1Gd002828@svn01.web.mwc.hst.phx2.redhat.com> --===============5757794905525528425== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-29 11:16:01 -0400 (Tue, 29 Sep 2009) New Revision: 17798 Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jb= oss/tools/hibernate/ui/xml/editor/HibernatePropertiesContentAssistProcessor= .java Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/plugin.xml Log: https://jira.jboss.org/jira/browse/JBIDE-4916 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/plu= gin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/plugin.xm= l 2009-09-29 15:14:46 UTC (rev 17797) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/plugin.xm= l 2009-09-29 15:16:01 UTC (rev 17798) @@ -62,5 +62,12 @@ + + + = Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/or= g/jboss/tools/hibernate/ui/xml/editor/HibernatePropertiesContentAssistProce= ssor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/j= boss/tools/hibernate/ui/xml/editor/HibernatePropertiesContentAssistProcesso= r.java (rev 0) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/j= boss/tools/hibernate/ui/xml/editor/HibernatePropertiesContentAssistProcesso= r.java 2009-09-29 15:16:01 UTC (rev 17798) @@ -0,0 +1,171 @@ +/*************************************************************************= ****** + * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Exadel, Inc. and Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ = +package org.jboss.tools.hibernate.ui.xml.editor; + +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.TreeMap; + +import org.eclipse.core.resources.IProject; +import org.eclipse.jdt.core.IJavaProject; +import org.eclipse.jdt.core.IType; +import org.eclipse.jdt.core.JavaModelException; +import org.eclipse.jdt.internal.ui.text.javadoc.JavadocContentAccess2; +import org.eclipse.jface.fieldassist.IContentProposal; +import org.eclipse.jface.fieldassist.IContentProposalProvider; +import org.eclipse.jface.text.ITextViewer; +import org.eclipse.jface.text.contentassist.ICompletionProposal; +import org.eclipse.jface.text.contentassist.CompletionProposal; +import org.jboss.tools.common.meta.XAttribute; +import org.jboss.tools.common.meta.XChild; +import org.jboss.tools.common.meta.XModelEntity; +import org.jboss.tools.common.meta.constraint.XAttributeConstraint; +import org.jboss.tools.common.meta.constraint.impl.XAttributeConstraintALi= st; +import org.jboss.tools.common.meta.key.WizardKeys; +import org.jboss.tools.common.model.ui.attribute.adapter.JavaClassContentA= ssistProvider; +import org.jboss.tools.common.model.ui.texteditors.propertyeditor.Abstract= PropertiesContentAssistProcessor; +import org.jboss.tools.common.model.util.EclipseJavaUtil; +import org.jboss.tools.common.model.util.EclipseResourceUtil; +import org.jboss.tools.hibernate.xml.model.impl.HibConfigComplexPropertyIm= pl; + +/** + * = + * @author Viacheslav Kabanovich + * + */ +public class HibernatePropertiesContentAssistProcessor extends + AbstractPropertiesContentAssistProcessor { + + public HibernatePropertiesContentAssistProcessor() {} + + public ICompletionProposal[] computeCompletionProposals(ITextViewer viewe= r, + int offset) { + Context context =3D getContext(viewer, offset); + String text =3D viewer.getDocument().get(); + + List result =3D new ArrayList(= ); + + Map attributes =3D getAttributes(); + + if(context.isInComment()) { + return new ICompletionProposal[0]; + } + if(context.isInPropertyName()) { + int nameOffset =3D context.getNameOffset(); + String namePrefix =3D nameOffset < offset ? text.substring(nameOffset, = offset) : ""; //$NON-NLS-1$ + String[] ps =3D attributes.keySet().toArray(new String[0]); + for (int i =3D 0; i < ps.length; i++) { + if(context.hasProperty(ps[i])) continue; + String description =3D WizardKeys.getString(ps[i] + ".description"); /= /$NON-NLS-1$ + if("@NULL_KEY@".equals(description) || description =3D=3D null) { + description =3D ps[i] + "

TODO - add description into keys-hibernat= e-config.properties"; + } + if(ps[i].startsWith(namePrefix)) { + CompletionProposal proposal =3D new CompletionProposal( + ps[i], + nameOffset, + context.getNameLength(), + ps[i].length(), + null, + ps[i], = + null, = + description); + result.add( proposal); + } + } = + } else if(context.isInValue()) { + int valueOffset =3D context.getValueOffset(); + String valuePrefix =3D valueOffset < offset && valueOffset >=3D 0 ? tex= t.substring(valueOffset, offset) : ""; //$NON-NLS-1$ + String propertyName =3D context.getPropertyName(); + if(attributes.containsKey(propertyName)) { + XAttribute attr =3D attributes.get(propertyName); + if(attr =3D=3D null) { + return new ICompletionProposal[0]; + } + XAttributeConstraint c =3D attr.getConstraint(); + if(c instanceof XAttributeConstraintAList) { + String[] vs =3D ((XAttributeConstraintAList)c).getValues(); + for (int i =3D 0; i < vs.length; i++) { + if(vs[i].length() =3D=3D 0) continue; + if(vs[i].startsWith(valuePrefix)) { + CompletionProposal proposal =3D new CompletionProposal( + vs[i], + valueOffset, + context.getValueLength(), + vs[i].length(), + null, + vs[i], = + null, = + vs[i]); //should we put more substantial description? + result.add( proposal); + } + } + } else if("AccessibleJava".equals(attr.getEditor().getName())) { //$NO= N-NLS-1$ + JavaClassContentAssistProvider p =3D new JavaClassContentAssistProvid= er(); + p.init(object, attr); + IContentProposalProvider pp =3D p.getContentProposalProvider(); + IContentProposal[] ps =3D pp.getProposals(valuePrefix, valuePrefix.le= ngth()); + IProject project =3D EclipseResourceUtil.getProject(object); + IJavaProject jp =3D EclipseResourceUtil.getJavaProject(project); + if(ps !=3D null) for (int i =3D 0; i < ps.length; i++) { + String value =3D ps[i].getContent(); + String descr =3D null; + if(jp !=3D null) try { + IType type =3D EclipseJavaUtil.findType(jp, value); + if(type !=3D null) descr =3D JavadocContentAccess2.getHTMLContent(t= ype, true); + } catch (JavaModelException e) { + //ignore + } + CompletionProposal proposal =3D new CompletionProposal( + value, + valueOffset, + context.getValueLength(), + value.length(), + null, + ps[i].getLabel(), + null, = + descr !=3D null ? descr : ps[i].getDescription()); + result.add(proposal); + } + } else { + //TODO + } + } + } + return result.toArray(new ICompletionProposal[0]); + } + + static Map attributes =3D null; + + public Map getAttributes() { + if(attributes =3D=3D null) { + attributes =3D new TreeMap(); + XModelEntity entity =3D object.getModel().getMetaData().getEntity("HibC= onfig3PropertiesFolder"); //$NON-NLS-1$ + XChild[] cs =3D entity.getChildren(); + for (int i =3D 0; i < cs.length; i++) { + if(cs[i].isRequired()) { + XModelEntity cEntity =3D object.getModel().getMetaData().getEntity(cs= [i].getName()); + if(cEntity =3D=3D null) continue; + XAttribute[] as =3D cEntity.getAttributes(); + for (int j =3D 0; j < as.length; j++) { + String hProperty =3D as[j].getProperty(HibConfigComplexPropertyImpl.= H_PROPERTY); + if(hProperty =3D=3D null || hProperty.length() =3D=3D 0) continue; + attributes.put(hProperty, as[j]); + } + } + } + } + return attributes; + = + } + +} Property changes on: trunk/hibernatetools/plugins/org.jboss.tools.hibernate= .xml.ui/src/org/jboss/tools/hibernate/ui/xml/editor/HibernatePropertiesCont= entAssistProcessor.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============5757794905525528425==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 12:41:55 2009 Content-Type: multipart/mixed; boundary="===============7630826261479549447==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17799 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist. Date: Tue, 29 Sep 2009 12:41:55 -0400 Message-ID: <200909291641.n8TGftxc015312@svn01.web.mwc.hst.phx2.redhat.com> --===============7630826261479549447== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-29 12:41:55 -0400 (Tue, 29 Sep 2009) New Revision: 17799 Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/co= ntentassist/AbstractXMLContentAssistProcessor.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/co= ntentassist/FaceletPageContectAssistProcessor.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/co= ntentassist/JspContentAssistProcessor.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/co= ntentassist/XmlContentAssistProcessor.java Log: JBIDE-4923: Code assist for EL doesn't work in XML files. Issue is fixed Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/contentassist/AbstractXMLContentAssistProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/AbstractXMLContentAssistProcessor.java 2009-09-29 15:16:01 UTC= (rev 17798) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/AbstractXMLContentAssistProcessor.java 2009-09-29 16:41:55 UTC= (rev 17799) @@ -703,7 +703,16 @@ */ abstract protected ELContext createContext(); = + = /** + * Creates an empty org.jboss.tools.common.el.core.resolver.ELConte= xt instance + * to be used in createContext() method + * = + * = + */ + abstract protected ELContext createContextInstance(); + = + /** * Creates and fulfills the org.jboss.tools.jst.web.kb.KbQuery = * instance * Important: the Context is to be set before any call to createKbQuery Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/contentassist/FaceletPageContectAssistProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/FaceletPageContectAssistProcessor.java 2009-09-29 15:16:01 UTC= (rev 17798) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/FaceletPageContectAssistProcessor.java 2009-09-29 16:41:55 UTC= (rev 17799) @@ -24,6 +24,8 @@ import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement; import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel; import org.eclipse.wst.xml.ui.internal.contentassist.ContentAssistRequest; +import org.jboss.tools.common.el.core.resolver.ELContext; +import org.jboss.tools.common.el.core.resolver.ELContextImpl; import org.jboss.tools.common.text.TextProposal; import org.jboss.tools.jst.jsp.messages.JstUIMessages; import org.jboss.tools.jst.web.kb.IFaceletPageContext; @@ -32,6 +34,7 @@ import org.jboss.tools.jst.web.kb.PageProcessor; import org.jboss.tools.jst.web.kb.KbQuery.Type; import org.jboss.tools.jst.web.kb.internal.FaceletPageContextImpl; +import org.jboss.tools.jst.web.kb.internal.XmlContextImpl; import org.jboss.tools.jst.web.kb.internal.taglib.NameSpace; import org.jboss.tools.jst.web.kb.taglib.CustomTagLibManager; import org.jboss.tools.jst.web.kb.taglib.INameSpace; @@ -51,6 +54,11 @@ = private boolean replaceJsfcTags; = + @Override + protected ELContext createContextInstance() { + return new FaceletPageContextImpl(); + } + = /* * (non-Javadoc) * @see org.jboss.tools.jst.jsp.contentassist.JspContentAssistProcessor#c= reateContext() @@ -59,7 +67,7 @@ protected IPageContext createContext() { IPageContext superContext =3D super.createContext(); = - FaceletPageContextImpl context =3D new FaceletPageContextImpl(); + FaceletPageContextImpl context =3D (FaceletPageContextImpl)createContext= Instance(); context.setResource(superContext.getResource()); context.setElResolvers(superContext.getElResolvers()); setVars(context, superContext.getResource()); Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/contentassist/JspContentAssistProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/JspContentAssistProcessor.java 2009-09-29 15:16:01 UTC (rev 17= 798) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/JspContentAssistProcessor.java 2009-09-29 16:41:55 UTC (rev 17= 799) @@ -11,11 +11,13 @@ package org.jboss.tools.jst.jsp.contentassist; = import java.util.ArrayList; +import java.util.Collections; import java.util.List; import java.util.Map; = import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IProject; +import org.eclipse.jface.text.BadLocationException; import org.eclipse.jface.text.IRegion; import org.eclipse.jface.text.Region; import org.eclipse.jface.text.contentassist.IContextInformation; @@ -32,7 +34,16 @@ import org.eclipse.wst.xml.ui.internal.contentassist.ContentAssistRequest; import org.eclipse.wst.xml.ui.internal.editor.XMLEditorPluginImageHelper; import org.eclipse.wst.xml.ui.internal.editor.XMLEditorPluginImages; +import org.jboss.tools.common.el.core.model.ELExpression; +import org.jboss.tools.common.el.core.parser.ELParserFactory; +import org.jboss.tools.common.el.core.parser.ELParserUtil; +import org.jboss.tools.common.el.core.resolver.ELCompletionEngine; import org.jboss.tools.common.el.core.resolver.ELContext; +import org.jboss.tools.common.el.core.resolver.ELContextImpl; +import org.jboss.tools.common.el.core.resolver.ELResolution; +import org.jboss.tools.common.el.core.resolver.ELResolutionImpl; +import org.jboss.tools.common.el.core.resolver.ElVarSearcher; +import org.jboss.tools.common.el.core.resolver.Var; import org.jboss.tools.common.text.TextProposal; import org.jboss.tools.jst.jsp.JspEditorPlugin; import org.jboss.tools.jst.jsp.messages.JstUIMessages; @@ -42,6 +53,7 @@ import org.jboss.tools.jst.web.kb.PageProcessor; import org.jboss.tools.jst.web.kb.KbQuery.Type; import org.jboss.tools.jst.web.kb.internal.JspContextImpl; +import org.jboss.tools.jst.web.kb.internal.XmlContextImpl; import org.jboss.tools.jst.web.kb.internal.ResourceBundle; import org.jboss.tools.jst.web.kb.internal.taglib.NameSpace; import org.jboss.tools.jst.web.kb.taglib.INameSpace; @@ -61,36 +73,19 @@ */ public class JspContentAssistProcessor extends XmlContentAssistProcessor { = - protected static final Image JSF_EL_PROPOSAL_IMAGE =3D JspEditorPlugin.ge= tDefault().getImage(JspEditorPlugin.CA_JSF_EL_IMAGE_PATH); - = - /** - * (non-Javadoc) - * @see org.jboss.tools.jst.jsp.contentassist.XmlContentAssistProcessor#c= reateContext() - */ @Override - protected IPageContext createContext() { - ELContext superContext =3D super.createContext(); - = - IFile file =3D getResource(); - = - JspContextImpl context =3D new JspContextImpl(); - context.setResource(superContext.getResource()); - context.setElResolvers(superContext.getElResolvers()); - context.setDocument(getDocument()); - setVars(context, file); - setNameSpaces(context); - context.setLibraries(getTagLibraries(context)); - context.setResourceBundles(getResourceBundles(context)); - = - return context; + protected ELContext createContextInstance() { + return new JspContextImpl(); } - + = /** * Collects the namespaces over the JSP-page and sets them up to the cont= ext specified. * = * @param context */ - protected void setNameSpaces(JspContextImpl context) { + protected void setNameSpaces(XmlContextImpl context) { + super.setNameSpaces(context); + = IStructuredModel sModel =3D StructuredModelManager .getModelManager() .getExistingModelForRead(getDocument()); @@ -129,38 +124,7 @@ } } = - private static final ITagLibrary[] EMPTY_LIBRARIES =3D new ITagLibrary[0]; = - /** - * Returns the Tag Libraries for the namespaces collected in the context. - * Important: The context must be created using createContext() method be= fore using this method. - * = - * @param context The context object instance - * @return - */ - public ITagLibrary[] getTagLibraries(IPageContext context) { - Map> nameSpaces =3D context.getNameSpaces(getO= ffset()); - if (nameSpaces =3D=3D null || nameSpaces.isEmpty()) - return EMPTY_LIBRARIES; - = - IProject project =3D context.getResource() =3D=3D null ? null : context.= getResource().getProject(); - if (project =3D=3D null) - return EMPTY_LIBRARIES; - = - List tagLibraries =3D new ArrayList(); - for (List nameSpace : nameSpaces.values()) { - for (INameSpace n : nameSpace) { - ITagLibrary[] libs =3D TagLibriryManager.getLibraries(project, n.getUR= I()); - if (libs !=3D null && libs.length > 0) { - for (ITagLibrary lib : libs) { - tagLibraries.add(lib); - } - } - } - } = - return (tagLibraries.isEmpty() ? EMPTY_LIBRARIES : - (ITagLibrary[])tagLibraries.toArray(new ITagLibrary[tagLibraries.size(= )])); - } = /** * Returns the resource bundles = @@ -234,16 +198,6 @@ } = /** - * Returns the org.jboss.tools.common.el.core.resolver.ELContext instance - * = - * @return - */ - @Override - public IPageContext getContext() { - return (IPageContext)super.getContext(); - } - - /** * Returns URI string for the prefix specified using the namespaces colle= cted for = * the {@link IPageContext} context. * Important: The context must be created using createContext() method be= fore using this method. @@ -320,140 +274,6 @@ } = /** - * Calculates and adds the tag proposals to the Content Assist Request ob= ject - * = - * @param contentAssistRequest Content Assist Request object - * @param childPosition the = - */ - - @Override - protected void addTagInsertionProposals( - ContentAssistRequest contentAssistRequest, int childPosition) { - = - // Need to check if an EL Expression is opened here. - // If it is true we don't need to start any new tag proposals - TextRegion prefix =3D getELPrefix(); - if (prefix !=3D null && prefix.isELStarted()) { - return; - } - = - try { - String matchString =3D contentAssistRequest.getMatchString(); - String query =3D matchString; - if (query =3D=3D null) - query =3D ""; //$NON-NLS-1$ - String stringQuery =3D "<" + matchString; //$NON-NLS-1$ - = - KbQuery kbQuery =3D createKbQuery(Type.TAG_NAME, query, stringQuery); - TextProposal[] proposals =3D PageProcessor.getInstance().getProposals(k= bQuery, getContext()); - = - for (int i =3D 0; proposals !=3D null && i < proposals.length; i++) { - TextProposal textProposal =3D proposals[i]; - = - String replacementString =3D textProposal.getReplacementString(); - String closingTag =3D textProposal.getLabel(); - if (closingTag !=3D null && closingTag.startsWith("<")) { //$NON-NLS-1$ - closingTag =3D closingTag.substring(1); - } - - if (!replacementString.endsWith("/>")) { //$NON-NLS-1$ - replacementString +=3D ""; //$NON-NLS-1$ //$NON-= NLS-2$ - } - - - int replacementOffset =3D contentAssistRequest.getReplacementBeginPosi= tion(); - int replacementLength =3D contentAssistRequest.getReplacementLength(); - int cursorPosition =3D getCursorPositionForProposedText(replacementStr= ing); - Image image =3D textProposal.getImage(); - if (image =3D=3D null) { - image =3D XMLEditorPluginImageHelper.getInstance().getImage(XMLEditor= PluginImages.IMG_OBJ_TAG_GENERIC); - } - String displayString =3D closingTag; //$NON-NLS-1$ - IContextInformation contextInformation =3D null; - String additionalProposalInfo =3D textProposal.getContextInfo(); - int relevance =3D textProposal.getRelevance(); - if (relevance =3D=3D TextProposal.R_NONE) { - relevance =3D TextProposal.R_TAG_INSERTION; - } - AutoContentAssistantProposal proposal =3D new AutoContentAssistantProp= osal(true, replacementString, = - replacementOffset, replacementLength, cursorPosition, image, display= String, = - contextInformation, additionalProposalInfo, relevance); - - contentAssistRequest.addProposal(proposal); - } - } finally { - } - return; - } - - - /** - * Calculates and adds the tag name proposals to the Content Assist Reque= st object - * = - * @param contentAssistRequest Content Assist Request object - * @param childPosition the = - */ - - @Override - protected void addTagNameProposals( - ContentAssistRequest contentAssistRequest, int childPosition) { - try { - String matchString =3D contentAssistRequest.getMatchString(); - String query =3D matchString; - if (query =3D=3D null) - query =3D ""; //$NON-NLS-1$ - String stringQuery =3D "<" + matchString; //$NON-NLS-1$ - = - KbQuery kbQuery =3D createKbQuery(Type.TAG_NAME, query, stringQuery); - TextProposal[] proposals =3D PageProcessor.getInstance().getProposals(k= bQuery, getContext()); - = - for (int i =3D 0; proposals !=3D null && i < proposals.length; i++) { - TextProposal textProposal =3D proposals[i]; - = - String replacementString =3D textProposal.getReplacementString(); - String closingTag =3D textProposal.getLabel(); - if (closingTag !=3D null && closingTag.startsWith("<")) { //$NON-NLS-1$ - closingTag =3D closingTag.substring(1); - } - = - if (replacementString.startsWith("<")) { //$NON-NLS-1$ - // Because the tag starting char is already in the text - replacementString =3D replacementString.substring(1); - } - if (!replacementString.endsWith("/>")) { //$NON-NLS-1$ - replacementString +=3D ""; //$NON-NLS-1$ //$NON-= NLS-2$ - } - - = - int replacementOffset =3D contentAssistRequest.getReplacementBeginPosi= tion(); - int replacementLength =3D contentAssistRequest.getReplacementLength(); - int cursorPosition =3D getCursorPositionForProposedText(replacementStr= ing); - Image image =3D textProposal.getImage(); - if (image =3D=3D null) { - image =3D XMLEditorPluginImageHelper.getInstance().getImage(XMLEditor= PluginImages.IMG_OBJ_TAG_GENERIC); - } - - String displayString =3D closingTag; //$NON-NLS-1$ - IContextInformation contextInformation =3D null; - String additionalProposalInfo =3D textProposal.getContextInfo(); - int relevance =3D textProposal.getRelevance(); - if (relevance =3D=3D TextProposal.R_NONE) { - relevance =3D TextProposal.R_TAG_INSERTION; - } - - AutoContentAssistantProposal proposal =3D new AutoContentAssistantProp= osal(true, replacementString, = - replacementOffset, replacementLength, cursorPosition, image, display= String, = - contextInformation, additionalProposalInfo, relevance); - - contentAssistRequest.addProposal(proposal); - } - } finally { - } - return; - } - = - = - /** * Calculates and adds the attribute name proposals to the Content Assist= Request object * = * @param contentAssistRequest Content Assist Request object @@ -503,60 +323,7 @@ } } = - /** - * Calculates and adds the attribute value proposals to the Content Assis= t Request object - */ - protected void addAttributeValueProposals(ContentAssistRequest contentAss= istRequest) { - // Need to check if an EL Expression is opened here. - // If it is true we don't need to start any new tag proposals - TextRegion prefix =3D getELPrefix(); - if (prefix !=3D null && prefix.isELStarted()) { - return; - } - try { - String matchString =3D contentAssistRequest.getMatchString(); - String query =3D matchString; - if (query =3D=3D null) - query =3D ""; //$NON-NLS-1$ - String stringQuery =3D matchString; = - KbQuery kbQuery =3D createKbQuery(Type.ATTRIBUTE_VALUE, query, stringQu= ery); - TextProposal[] proposals =3D PageProcessor.getInstance().getProposals(k= bQuery, getContext()); - - for (int i =3D 0; proposals !=3D null && i < proposals.length; i++) { - TextProposal textProposal =3D proposals[i]; - int replacementOffset =3D contentAssistRequest.getReplacementBeginPosi= tion(); - int replacementLength =3D contentAssistRequest.getReplacementLength(); - if(textProposal.getStart() >=3D 0 && textProposal.getEnd() >=3D 0) { - replacementOffset +=3D textProposal.getStart() + 1; - replacementLength =3D textProposal.getEnd() - textProposal.getStart(); - } - String replacementString =3D "\"" + textProposal.getReplacementString(= ) + "\""; //$NON-NLS-1$ //$NON-NLS-2$ - if(textProposal.getStart() >=3D 0 && textProposal.getEnd() >=3D 0) { - replacementString =3D textProposal.getReplacementString(); - } - int cursorPosition =3D getCursorPositionForProposedText(replacementStr= ing); - Image image =3D textProposal.getImage(); - String displayString =3D textProposal.getLabel() =3D=3D null ? = - replacementString : = - textProposal.getLabel(); - IContextInformation contextInformation =3D null; - String additionalProposalInfo =3D textProposal.getContextInfo(); - int relevance =3D textProposal.getRelevance(); - if (relevance =3D=3D TextProposal.R_NONE) { - relevance =3D TextProposal.R_JSP_ATTRIBUTE_VALUE; - } - - AutoContentAssistantProposal proposal =3D new AutoContentAssistantProp= osal(replacementString, = - replacementOffset, replacementLength, cursorPosition, image, display= String, = - contextInformation, additionalProposalInfo, relevance); - - contentAssistRequest.addProposal(proposal); - } - } finally { - } - } - /** * Calculates and adds the EL proposals to the Content Assist Request obj= ect */ @@ -564,76 +331,35 @@ protected void addTextELProposals(ContentAssistRequest contentAssistReque= st) { } = - /** - * Calculates and adds the EL proposals to the Content Assist Request obj= ect - */ - @Override - protected void addAttributeValueELProposals(ContentAssistRequest contentA= ssistRequest) { - try { - TextRegion prefix =3D getELPrefix(); - if (prefix =3D=3D null) { - return; + protected void setVars(ELContextImpl context, IFile file) { + ELCompletionEngine fakeEngine =3D new ELCompletionEngine() { + + public ELResolution resolveELOperand(IFile file, + ELExpression operand, boolean returnEqualedVariablesOnly, + List vars, ElVarSearcher varSearcher) + throws BadLocationException, StringIndexOutOfBoundsException { + return new ELResolutionImpl(); } = - if(!prefix.isELStarted()) { - AutoContentAssistantProposal proposal =3D new AutoContentAssistantProp= osal(true, "#{}", //$NON-NLS-1$ - getOffset(), 0, 2, JSF_EL_PROPOSAL_IMAGE, JstUIMessages.JspContentAs= sistProcessor_NewELExpression, = - null, JstUIMessages.JspContentAssistProcessor_NewELExpressionAttrInf= o, TextProposal.R_XML_ATTRIBUTE_VALUE_TEMPLATE); + public ELParserFactory getParserFactory() { + return ELParserUtil.getJbossFactory(); + } = - contentAssistRequest.addProposal(proposal); - return; + public List getProposals(ELContext context, String el) { + return Collections.emptyList(); } - String matchString =3D "#{" + prefix.getText(); //$NON-NLS-1$ - String query =3D matchString; - if (query =3D=3D null) - query =3D ""; //$NON-NLS-1$ - String stringQuery =3D matchString; - = - int beginChangeOffset =3D prefix.getStartOffset() + prefix.getOffset(); - = - KbQuery kbQuery =3D createKbQuery(Type.ATTRIBUTE_VALUE, query, stringQu= ery); - TextProposal[] proposals =3D PageProcessor.getInstance().getProposals(k= bQuery, getContext()); - = - for (int i =3D 0; proposals !=3D null && i < proposals.length; i++) { - TextProposal textProposal =3D proposals[i]; - = - int replacementOffset =3D beginChangeOffset; - int replacementLength =3D prefix.getLength(); - String replacementString =3D prefix.getText().substring(0, replacement= Length) + textProposal.getReplacementString(); - int cursorPosition =3D replacementString.length(); - Image image =3D textProposal.getImage(); - = - // JBIDE-512, JBIDE-2541 related changes =3D=3D=3D>>> -// String displayString =3D prefix.getText().substring(0, replacementLe= ngth) + textProposal.getReplacementString(); - String displayString =3D textProposal.getLabel(); - if (displayString =3D=3D null) - displayString =3D textProposal.getReplacementString() =3D=3D null ? r= eplacementString : textProposal.getReplacementString(); - = - // <<<=3D=3D=3D JBIDE-512, JBIDE-2541 related changes = - IContextInformation contextInformation =3D null; - String additionalProposalInfo =3D (textProposal.getContextInfo() =3D= =3D null ? "" : textProposal.getContextInfo()); //$NON-NLS-1$ - int relevance =3D textProposal.getRelevance(); - if (relevance =3D=3D TextProposal.R_NONE) { - relevance =3D TextProposal.R_JSP_JSF_EL_VARIABLE_ATTRIBUTE_VALUE; - } - - AutoContentAssistantProposal proposal =3D new AutoContentAssistantProp= osal(replacementString, = - replacementOffset, replacementLength, cursorPosition, image, display= String, = - contextInformation, additionalProposalInfo, relevance); - - contentAssistRequest.addProposal(proposal); + public ELResolution resolve(ELContext context, ELExpression operand) { + return new ELResolutionImpl(); } + }; + ElVarSearcher varSearcher =3D new ElVarSearcher(file, fakeEngine); + List vars =3D varSearcher.findAllVars(file, getOffset()); = - if (prefix.isELStarted() && !prefix.isELClosed()) { - AutoContentAssistantProposal proposal =3D new AutoContentAssistantProp= osal("}", //$NON-NLS-1$ - getOffset(), 0, 1, JSF_EL_PROPOSAL_IMAGE, JstUIMessages.JspContentAs= sistProcessor_CloseELExpression, = - null, JstUIMessages.JspContentAssistProcessor_CloseELExpressionInfo,= TextProposal.R_XML_ATTRIBUTE_VALUE_TEMPLATE); - - contentAssistRequest.addProposal(proposal); + if (vars !=3D null) { + for (Var var : vars) { + context.addVar(new Region(getOffset(), 0), var); } - } finally { } } - } \ No newline at end of file Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/contentassist/XmlContentAssistProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/XmlContentAssistProcessor.java 2009-09-29 15:16:01 UTC (rev 17= 798) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/XmlContentAssistProcessor.java 2009-09-29 16:41:55 UTC (rev 17= 799) @@ -10,28 +10,47 @@ *************************************************************************= *****/ package org.jboss.tools.jst.jsp.contentassist; = -import java.util.Collections; +import java.util.ArrayList; import java.util.List; +import java.util.Map; = import org.eclipse.core.resources.IFile; -import org.eclipse.jface.text.BadLocationException; +import org.eclipse.core.resources.IProject; import org.eclipse.jface.text.Region; +import org.eclipse.jface.text.contentassist.IContextInformation; +import org.eclipse.swt.graphics.Image; +import org.eclipse.wst.sse.core.StructuredModelManager; +import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel; +import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion; +import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocum= entRegion; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement; +import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel; import org.eclipse.wst.xml.ui.internal.contentassist.ContentAssistRequest; -import org.jboss.tools.common.el.core.model.ELExpression; -import org.jboss.tools.common.el.core.parser.ELParserFactory; -import org.jboss.tools.common.el.core.parser.ELParserUtil; -import org.jboss.tools.common.el.core.resolver.ELCompletionEngine; +import org.eclipse.wst.xml.ui.internal.editor.XMLEditorPluginImageHelper; +import org.eclipse.wst.xml.ui.internal.editor.XMLEditorPluginImages; import org.jboss.tools.common.el.core.resolver.ELContext; import org.jboss.tools.common.el.core.resolver.ELContextImpl; -import org.jboss.tools.common.el.core.resolver.ELResolution; -import org.jboss.tools.common.el.core.resolver.ELResolutionImpl; import org.jboss.tools.common.el.core.resolver.ELResolver; -import org.jboss.tools.common.el.core.resolver.ElVarSearcher; -import org.jboss.tools.common.el.core.resolver.Var; import org.jboss.tools.common.text.TextProposal; +import org.jboss.tools.jst.jsp.JspEditorPlugin; +import org.jboss.tools.jst.jsp.contentassist.AbstractXMLContentAssistProce= ssor.TextRegion; +import org.jboss.tools.jst.jsp.messages.JstUIMessages; import org.jboss.tools.jst.web.kb.IPageContext; +import org.jboss.tools.jst.web.kb.IResourceBundle; import org.jboss.tools.jst.web.kb.KbQuery; +import org.jboss.tools.jst.web.kb.PageProcessor; import org.jboss.tools.jst.web.kb.KbQuery.Type; +import org.jboss.tools.jst.web.kb.internal.JspContextImpl; +import org.jboss.tools.jst.web.kb.internal.XmlContextImpl; +import org.jboss.tools.jst.web.kb.internal.taglib.NameSpace; +import org.jboss.tools.jst.web.kb.taglib.INameSpace; +import org.jboss.tools.jst.web.kb.taglib.ITagLibrary; +import org.jboss.tools.jst.web.kb.taglib.TagLibriryManager; +import org.w3c.dom.Attr; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.NamedNodeMap; +import org.w3c.dom.Node; = /** * = @@ -39,54 +58,47 @@ * */ public class XmlContentAssistProcessor extends AbstractXMLContentAssistPro= cessor { + protected static final Image JSF_EL_PROPOSAL_IMAGE =3D JspEditorPlugin.ge= tDefault().getImage(JspEditorPlugin.CA_JSF_EL_IMAGE_PATH); = + @Override + protected ELContext createContextInstance() { + return new XmlContextImpl(); + } + = /* * (non-Javadoc) * @see org.jboss.tools.jst.jsp.contentassist.AbstractXMLContentAssistPro= cessor#createContext() */ @Override - protected ELContext createContext() { + protected IPageContext createContext() { IFile file =3D getResource(); ELResolver[] elResolvers =3D getELResolvers(file); - - ELContextImpl context =3D new ELContextImpl(); - context.setResource(getResource()); + = + XmlContextImpl context =3D (XmlContextImpl)createContextInstance(); + context.setResource(file); + context.setDocument(getDocument()); context.setElResolvers(elResolvers); setVars(context, file); - + = + setNameSpaces(context); + context.setLibraries(getTagLibraries(context)); + context.setResourceBundles(getResourceBundles(context)); + = return context; } - + = protected void setVars(ELContextImpl context, IFile file) { - ELCompletionEngine fakeEngine =3D new ELCompletionEngine() { + // No vars can be set for this processor + } = - public ELResolution resolveELOperand(IFile file, - ELExpression operand, boolean returnEqualedVariablesOnly, - List vars, ElVarSearcher varSearcher) - throws BadLocationException, StringIndexOutOfBoundsException { - return new ELResolutionImpl(); - } - - public ELParserFactory getParserFactory() { - return ELParserUtil.getJbossFactory(); - } - - public List getProposals(ELContext context, String el) { - return Collections.emptyList(); - } - - public ELResolution resolve(ELContext context, ELExpression operand) { - return new ELResolutionImpl(); - } - }; - ElVarSearcher varSearcher =3D new ElVarSearcher(file, fakeEngine); - List vars =3D varSearcher.findAllVars(file, getOffset()); - - if (vars !=3D null) { - for (Var var : vars) { - context.addVar(new Region(getOffset(), 0), var); - } - } + /** + * Returns the org.jboss.tools.common.el.core.resolver.ELContext instance + * = + * @return + */ + @Override + public IPageContext getContext() { + return (IPageContext)super.getContext(); } = @Override = @@ -123,25 +135,440 @@ return null; } = + /** + * Calculates and adds the tag proposals to the Content Assist Request ob= ject + * = + * @param contentAssistRequest Content Assist Request object + * @param childPosition the = + */ = @Override - protected void addTagNameProposals( + protected void addTagInsertionProposals( ContentAssistRequest contentAssistRequest, int childPosition) { - // TODO Auto-generated method stub = + // Need to check if an EL Expression is opened here. + // If it is true we don't need to start any new tag proposals + TextRegion prefix =3D getELPrefix(); + if (prefix !=3D null && prefix.isELStarted()) { + return; + } + = + try { + String matchString =3D contentAssistRequest.getMatchString(); + String query =3D matchString; + if (query =3D=3D null) + query =3D ""; //$NON-NLS-1$ + String stringQuery =3D "<" + matchString; //$NON-NLS-1$ + = + KbQuery kbQuery =3D createKbQuery(Type.TAG_NAME, query, stringQuery); + TextProposal[] proposals =3D PageProcessor.getInstance().getProposals(k= bQuery, getContext()); + = + for (int i =3D 0; proposals !=3D null && i < proposals.length; i++) { + TextProposal textProposal =3D proposals[i]; + = + String replacementString =3D textProposal.getReplacementString(); + String closingTag =3D textProposal.getLabel(); + if (closingTag !=3D null && closingTag.startsWith("<")) { //$NON-NLS-1$ + closingTag =3D closingTag.substring(1); + } + + if (!replacementString.endsWith("/>")) { //$NON-NLS-1$ + replacementString +=3D ""; //$NON-NLS-1$ //$NON-= NLS-2$ + } + + + int replacementOffset =3D contentAssistRequest.getReplacementBeginPosi= tion(); + int replacementLength =3D contentAssistRequest.getReplacementLength(); + int cursorPosition =3D getCursorPositionForProposedText(replacementStr= ing); + Image image =3D textProposal.getImage(); + if (image =3D=3D null) { + image =3D XMLEditorPluginImageHelper.getInstance().getImage(XMLEditor= PluginImages.IMG_OBJ_TAG_GENERIC); + } + String displayString =3D closingTag; //$NON-NLS-1$ + IContextInformation contextInformation =3D null; + String additionalProposalInfo =3D textProposal.getContextInfo(); + int relevance =3D textProposal.getRelevance(); + if (relevance =3D=3D TextProposal.R_NONE) { + relevance =3D TextProposal.R_TAG_INSERTION; + } + AutoContentAssistantProposal proposal =3D new AutoContentAssistantProp= osal(true, replacementString, = + replacementOffset, replacementLength, cursorPosition, image, display= String, = + contextInformation, additionalProposalInfo, relevance); + + contentAssistRequest.addProposal(proposal); + } + } finally { + } + return; } = + + /** + * Calculates and adds the tag name proposals to the Content Assist Reque= st object + * = + * @param contentAssistRequest Content Assist Request object + * @param childPosition the = + */ @Override + protected void addTagNameProposals( + ContentAssistRequest contentAssistRequest, int childPosition) { + try { + String matchString =3D contentAssistRequest.getMatchString(); + String query =3D matchString; + if (query =3D=3D null) + query =3D ""; //$NON-NLS-1$ + String stringQuery =3D "<" + matchString; //$NON-NLS-1$ + = + KbQuery kbQuery =3D createKbQuery(Type.TAG_NAME, query, stringQuery); + TextProposal[] proposals =3D PageProcessor.getInstance().getProposals(k= bQuery, getContext()); + = + for (int i =3D 0; proposals !=3D null && i < proposals.length; i++) { + TextProposal textProposal =3D proposals[i]; + = + String replacementString =3D textProposal.getReplacementString(); + String closingTag =3D textProposal.getLabel(); + if (closingTag !=3D null && closingTag.startsWith("<")) { //$NON-NLS-1$ + closingTag =3D closingTag.substring(1); + } + = + if (replacementString.startsWith("<")) { //$NON-NLS-1$ + // Because the tag starting char is already in the text + replacementString =3D replacementString.substring(1); + } + if (!replacementString.endsWith("/>")) { //$NON-NLS-1$ + replacementString +=3D ""; //$NON-NLS-1$ //$NON-= NLS-2$ + } + + = + int replacementOffset =3D contentAssistRequest.getReplacementBeginPosi= tion(); + int replacementLength =3D contentAssistRequest.getReplacementLength(); + int cursorPosition =3D getCursorPositionForProposedText(replacementStr= ing); + Image image =3D textProposal.getImage(); + if (image =3D=3D null) { + image =3D XMLEditorPluginImageHelper.getInstance().getImage(XMLEditor= PluginImages.IMG_OBJ_TAG_GENERIC); + } + + String displayString =3D closingTag; //$NON-NLS-1$ + IContextInformation contextInformation =3D null; + String additionalProposalInfo =3D textProposal.getContextInfo(); + int relevance =3D textProposal.getRelevance(); + if (relevance =3D=3D TextProposal.R_NONE) { + relevance =3D TextProposal.R_TAG_INSERTION; + } + + AutoContentAssistantProposal proposal =3D new AutoContentAssistantProp= osal(true, replacementString, = + replacementOffset, replacementLength, cursorPosition, image, display= String, = + contextInformation, additionalProposalInfo, relevance); + + contentAssistRequest.addProposal(proposal); + } + } finally { + } + return; + } + + /** + * Calculates and adds the attribute value proposals to the Content Assis= t Request object + */ + protected void addAttributeValueProposals(ContentAssistRequest contentAss= istRequest) { + // Need to check if an EL Expression is opened here. + // If it is true we don't need to start any new tag proposals + TextRegion prefix =3D getELPrefix(); + if (prefix !=3D null && prefix.isELStarted()) { + return; + } + try { + String matchString =3D contentAssistRequest.getMatchString(); + String query =3D matchString; + if (query =3D=3D null) + query =3D ""; //$NON-NLS-1$ + String stringQuery =3D matchString; + + KbQuery kbQuery =3D createKbQuery(Type.ATTRIBUTE_VALUE, query, stringQu= ery); + TextProposal[] proposals =3D PageProcessor.getInstance().getProposals(k= bQuery, getContext()); + + for (int i =3D 0; proposals !=3D null && i < proposals.length; i++) { + TextProposal textProposal =3D proposals[i]; + int replacementOffset =3D contentAssistRequest.getReplacementBeginPosi= tion(); + int replacementLength =3D contentAssistRequest.getReplacementLength(); + if(textProposal.getStart() >=3D 0 && textProposal.getEnd() >=3D 0) { + replacementOffset +=3D textProposal.getStart() + 1; + replacementLength =3D textProposal.getEnd() - textProposal.getStart(); + } + String replacementString =3D "\"" + textProposal.getReplacementString(= ) + "\""; //$NON-NLS-1$ //$NON-NLS-2$ + if(textProposal.getStart() >=3D 0 && textProposal.getEnd() >=3D 0) { + replacementString =3D textProposal.getReplacementString(); + } + int cursorPosition =3D getCursorPositionForProposedText(replacementStr= ing); + Image image =3D textProposal.getImage(); + String displayString =3D textProposal.getLabel() =3D=3D null ? = + replacementString : = + textProposal.getLabel(); + IContextInformation contextInformation =3D null; + String additionalProposalInfo =3D textProposal.getContextInfo(); + int relevance =3D textProposal.getRelevance(); + if (relevance =3D=3D TextProposal.R_NONE) { + relevance =3D TextProposal.R_JSP_ATTRIBUTE_VALUE; + } + + AutoContentAssistantProposal proposal =3D new AutoContentAssistantProp= osal(replacementString, = + replacementOffset, replacementLength, cursorPosition, image, display= String, = + contextInformation, additionalProposalInfo, relevance); + + contentAssistRequest.addProposal(proposal); + } + } finally { + } + } + + @Override protected void addAttributeValueELProposals(ContentAssistRequest contentA= ssistRequest) { - // TODO Auto-generated method stub - = + try { + TextRegion prefix =3D getELPrefix(); + if (prefix =3D=3D null) { + return; + } + + if(!prefix.isELStarted()) { + AutoContentAssistantProposal proposal =3D new AutoContentAssistantProp= osal(true, "#{}", //$NON-NLS-1$ + getOffset(), 0, 2, JSF_EL_PROPOSAL_IMAGE, JstUIMessages.JspContentAs= sistProcessor_NewELExpression, = + null, JstUIMessages.JspContentAssistProcessor_NewELExpressionAttrInf= o, TextProposal.R_XML_ATTRIBUTE_VALUE_TEMPLATE); + + contentAssistRequest.addProposal(proposal); + return; + } + String matchString =3D "#{" + prefix.getText(); //$NON-NLS-1$ + String query =3D matchString; + if (query =3D=3D null) + query =3D ""; //$NON-NLS-1$ + String stringQuery =3D matchString; + = + int beginChangeOffset =3D prefix.getStartOffset() + prefix.getOffset(); + = + KbQuery kbQuery =3D createKbQuery(Type.ATTRIBUTE_VALUE, query, stringQu= ery); + TextProposal[] proposals =3D PageProcessor.getInstance().getProposals(k= bQuery, getContext()); + = + for (int i =3D 0; proposals !=3D null && i < proposals.length; i++) { + TextProposal textProposal =3D proposals[i]; + = + int replacementOffset =3D beginChangeOffset; + int replacementLength =3D prefix.getLength(); + String replacementString =3D prefix.getText().substring(0, replacement= Length) + textProposal.getReplacementString(); + int cursorPosition =3D replacementString.length(); + Image image =3D textProposal.getImage(); + = + // JBIDE-512, JBIDE-2541 related changes =3D=3D=3D>>> +// String displayString =3D prefix.getText().substring(0, replacementLe= ngth) + textProposal.getReplacementString(); + String displayString =3D textProposal.getLabel(); + if (displayString =3D=3D null) + displayString =3D textProposal.getReplacementString() =3D=3D null ? r= eplacementString : textProposal.getReplacementString(); + = + // <<<=3D=3D=3D JBIDE-512, JBIDE-2541 related changes + + IContextInformation contextInformation =3D null; + String additionalProposalInfo =3D (textProposal.getContextInfo() =3D= =3D null ? "" : textProposal.getContextInfo()); //$NON-NLS-1$ + int relevance =3D textProposal.getRelevance(); + if (relevance =3D=3D TextProposal.R_NONE) { + relevance =3D TextProposal.R_JSP_JSF_EL_VARIABLE_ATTRIBUTE_VALUE; + } + + AutoContentAssistantProposal proposal =3D new AutoContentAssistantProp= osal(replacementString, = + replacementOffset, replacementLength, cursorPosition, image, display= String, = + contextInformation, additionalProposalInfo, relevance); + + contentAssistRequest.addProposal(proposal); + } + + if (prefix.isELStarted() && !prefix.isELClosed()) { + AutoContentAssistantProposal proposal =3D new AutoContentAssistantProp= osal("}", //$NON-NLS-1$ + getOffset(), 0, 1, JSF_EL_PROPOSAL_IMAGE, JstUIMessages.JspContentAs= sistProcessor_CloseELExpression, = + null, JstUIMessages.JspContentAssistProcessor_CloseELExpressionInfo,= TextProposal.R_XML_ATTRIBUTE_VALUE_TEMPLATE); + + contentAssistRequest.addProposal(proposal); + } + } finally { + } } = @Override protected void addTextELProposals(ContentAssistRequest contentAssistReque= st) { - // TODO Auto-generated method stub + TextRegion prefix =3D getELPrefix(); + if (prefix =3D=3D null || !prefix.isELStarted()) { + AutoContentAssistantProposal proposal =3D new AutoContentAssistantPropo= sal(true, "#{}", //$NON-NLS-1$ = + contentAssistRequest.getReplacementBeginPosition(), = + 0, 2, JSF_EL_PROPOSAL_IMAGE, JstUIMessages.JspContentAssistProcessor_= NewELExpression, null, = + JstUIMessages.FaceletPageContectAssistProcessor_NewELExpressionTextIn= fo, TextProposal.R_XML_ATTRIBUTE_VALUE_TEMPLATE); + = + contentAssistRequest.addProposal(proposal); + return; + } + String matchString =3D "#{" + prefix.getText(); //$NON-NLS-1$ + String query =3D matchString; + if (query =3D=3D null) + query =3D ""; //$NON-NLS-1$ + String stringQuery =3D matchString; + + int beginChangeOffset =3D prefix.getStartOffset() + prefix.getOffset(); + + KbQuery kbQuery =3D createKbQuery(Type.TEXT, query, stringQuery); + TextProposal[] proposals =3D PageProcessor.getInstance().getProposals(kb= Query, getContext()); + + for (int i =3D 0; proposals !=3D null && i < proposals.length; i++) { + TextProposal textProposal =3D proposals[i]; + + int replacementOffset =3D beginChangeOffset; + int replacementLength =3D prefix.getLength(); + String replacementString =3D prefix.getText().substring(0, replacementL= ength) + textProposal.getReplacementString(); + int cursorPosition =3D replacementString.length(); + Image image =3D textProposal.getImage(); + + // JBIDE-512, JBIDE-2541 related changes =3D=3D=3D>>> +// String displayString =3D prefix.getText().substring(0, replacementLen= gth) + textProposal.getReplacementString(); + String displayString =3D textProposal.getLabel(); + if (displayString =3D=3D null) + displayString =3D textProposal.getReplacementString() =3D=3D null ? re= placementString : textProposal.getReplacementString(); + + // <<<=3D=3D=3D JBIDE-512, JBIDE-2541 related changes + IContextInformation contextInformation =3D null; + String additionalProposalInfo =3D textProposal.getContextInfo(); + int relevance =3D textProposal.getRelevance(); + if (relevance =3D=3D TextProposal.R_NONE) { + relevance =3D TextProposal.R_JSP_JSF_EL_VARIABLE_ATTRIBUTE_VALUE; + } + + AutoContentAssistantProposal proposal =3D new AutoContentAssistantPropo= sal(replacementString, = + replacementOffset, replacementLength, cursorPosition, image, displayS= tring, = + contextInformation, additionalProposalInfo, relevance); + + contentAssistRequest.addProposal(proposal); + } + + if (prefix.isELStarted() && !prefix.isELClosed()) { + AutoContentAssistantProposal proposal =3D new AutoContentAssistantPropo= sal("}", //$NON-NLS-1$ + getOffset(), 0, 1, JSF_EL_PROPOSAL_IMAGE, JstUIMessages.JspContentAss= istProcessor_CloseELExpression, = + null, JstUIMessages.JspContentAssistProcessor_CloseELExpressionInfo, = TextProposal.R_XML_ATTRIBUTE_VALUE_TEMPLATE); + + contentAssistRequest.addProposal(proposal); + } + } + = + /** + * Collects the namespaces over the JSP-page and sets them up to the cont= ext specified. + * = + * @param context + */ + protected void setNameSpaces(XmlContextImpl context) { + IStructuredModel sModel =3D StructuredModelManager + .getModelManager() + .getExistingModelForRead(getDocument()); + + try { + if (sModel =3D=3D null) + return; + + Document xmlDocument =3D (sModel instanceof IDOMModel) ? ((IDOMModel) s= Model) + .getDocument() + : null; + + if (xmlDocument =3D=3D null) + return; + + // Get Fixed Structured Document Region + IStructuredDocumentRegion sdFixedRegion =3D this.getStructuredDocumentR= egion(getOffset()); + if (sdFixedRegion =3D=3D null) + return; + = + Node n =3D findNodeForOffset(xmlDocument, sdFixedRegion.getStartOffset(= )); + while (n !=3D null) { + if (!(n instanceof Element)) { + if (n instanceof Attr) { + n =3D ((Attr) n).getOwnerElement(); + } else { + n =3D n.getParentNode(); + } + continue; + } + + NamedNodeMap attrs =3D n.getAttributes(); + for (int j =3D 0; attrs !=3D null && j < attrs.getLength(); j++) { + Attr a =3D (Attr) attrs.item(j); + String name =3D a.getName(); + if (name.startsWith("xmlns:")) { //$NON-NLS-1$ + final String prefix =3D name.substring("xmlns:".length()); //$NON-NL= S-1$ + final String uri =3D a.getValue(); + if (prefix !=3D null && prefix.trim().length() > 0 && + uri !=3D null && uri.trim().length() > 0) { + + int start =3D ((IndexedRegion)n).getStartOffset(); + int length =3D ((IndexedRegion)n).getLength(); + = + IDOMElement domElement =3D (n instanceof IDOMElement ? (IDOMElement= )n : null); + if (domElement !=3D null) { + start =3D domElement.getStartOffset(); + length =3D (domElement.hasEndTag() ? = + domElement.getEndStructuredDocumentRegion().getEnd() : + domElement.getLength()); + = + } + + Region region =3D new Region(start, length); + INameSpace nameSpace =3D new NameSpace(uri.trim(), prefix.trim()); + context.addNameSpace(region, nameSpace); + } + } + } + + n =3D n.getParentNode(); + } + + return; + } finally { + if (sModel !=3D null) { + sModel.releaseFromRead(); + } + } + } + + protected static final ITagLibrary[] EMPTY_LIBRARIES =3D new ITagLibrary[= 0]; = + protected static final IResourceBundle[] EMPTY_RESOURCE_BUNDLES =3D new I= ResourceBundle[0]; + + /** + * Returns the Tag Libraries for the namespaces collected in the context. + * Important: The context must be created using createContext() method be= fore using this method. + * = + * @param context The context object instance + * @return + */ + public ITagLibrary[] getTagLibraries(IPageContext context) { + Map> nameSpaces =3D context.getNameSpaces(getO= ffset()); + if (nameSpaces =3D=3D null || nameSpaces.isEmpty()) + return EMPTY_LIBRARIES; = + IProject project =3D context.getResource() =3D=3D null ? null : context.= getResource().getProject(); + if (project =3D=3D null) + return EMPTY_LIBRARIES; + = + List tagLibraries =3D new ArrayList(); + for (List nameSpace : nameSpaces.values()) { + for (INameSpace n : nameSpace) { + ITagLibrary[] libs =3D TagLibriryManager.getLibraries(project, n.getUR= I()); + if (libs !=3D null && libs.length > 0) { + for (ITagLibrary lib : libs) { + tagLibraries.add(lib); + } + } + } + } = + return (tagLibraries.isEmpty() ? EMPTY_LIBRARIES : + (ITagLibrary[])tagLibraries.toArray(new ITagLibrary[tagLibraries.size(= )])); } - = - = + + /** + * Returns the resource bundles = + * = + * @return + */ + protected IResourceBundle[] getResourceBundles(IPageContext context) { + return EMPTY_RESOURCE_BUNDLES; + } } \ No newline at end of file --===============7630826261479549447==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 12:42:32 2009 Content-Type: multipart/mixed; boundary="===============1854990285899842469==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17800 - trunk/jst/plugins/org.jboss.tools.jst.jsp. Date: Tue, 29 Sep 2009 12:42:32 -0400 Message-ID: <200909291642.n8TGgWh4015352@svn01.web.mwc.hst.phx2.redhat.com> --===============1854990285899842469== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-29 12:42:31 -0400 (Tue, 29 Sep 2009) New Revision: 17800 Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml Log: JBIDE-4923: Code assist for EL doesn't work in XML files. Issue is fixed Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml 2009-09-29 16:41:5= 5 UTC (rev 17799) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/plugin.xml 2009-09-29 16:42:3= 1 UTC (rev 17800) @@ -472,6 +472,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + = --===============2867326793217163887== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-29 12:44:19 -0400 (Tue, 29 Sep 2009) New Revision: 17801 Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web= /kb/PageProcessor.java Log: JBIDE-4923: Code assist for EL doesn't work in XML files. Issue is fixed Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/= jst/web/kb/PageProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/PageProcessor.java 2009-09-29 16:42:31 UTC (rev 17800) +++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/PageProcessor.java 2009-09-29 16:44:19 UTC (rev 17801) @@ -16,6 +16,7 @@ = import org.jboss.tools.common.el.core.resolver.ELResolver; import org.jboss.tools.common.text.TextProposal; +import org.jboss.tools.jst.web.kb.internal.XmlContextImpl; import org.jboss.tools.jst.web.kb.internal.taglib.CustomTagLibAttribute; import org.jboss.tools.jst.web.kb.taglib.CustomTagLibManager; import org.jboss.tools.jst.web.kb.taglib.IAttribute; @@ -103,7 +104,7 @@ = private boolean isQueryForELProposals(KbQuery query, IPageContext context= ) { if (query.getType() !=3D KbQuery.Type.ATTRIBUTE_VALUE && - ((query.getType() !=3D KbQuery.Type.TEXT ) || !(context instanceof IFa= celetPageContext))) { = + ((query.getType() !=3D KbQuery.Type.TEXT ) || !(context instanceof IFa= celetPageContext || context instanceof XmlContextImpl))) { = return false; } = --===============2867326793217163887==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 12:45:43 2009 Content-Type: multipart/mixed; boundary="===============4275016866276021720==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17802 - in trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp: jspeditor and 1 other directory. Date: Tue, 29 Sep 2009 12:45:43 -0400 Message-ID: <200909291645.n8TGjhCE015823@svn01.web.mwc.hst.phx2.redhat.com> --===============4275016866276021720== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-29 12:45:41 -0400 (Tue, 29 Sep 2009) New Revision: 17802 Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/co= ntentassist/FaceletPageContectAssistProcessor.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/co= ntentassist/JspContentAssistProcessor.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/co= ntentassist/XmlContentAssistProcessor.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/js= peditor/JSPTextEditor.java Log: JBIDE-4923: Code assist for EL doesn't work in XML files. Issue is fixed Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/contentassist/FaceletPageContectAssistProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/FaceletPageContectAssistProcessor.java 2009-09-29 16:44:19 UTC= (rev 17801) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/FaceletPageContectAssistProcessor.java 2009-09-29 16:45:41 UTC= (rev 17802) @@ -25,7 +25,6 @@ import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel; import org.eclipse.wst.xml.ui.internal.contentassist.ContentAssistRequest; import org.jboss.tools.common.el.core.resolver.ELContext; -import org.jboss.tools.common.el.core.resolver.ELContextImpl; import org.jboss.tools.common.text.TextProposal; import org.jboss.tools.jst.jsp.messages.JstUIMessages; import org.jboss.tools.jst.web.kb.IFaceletPageContext; @@ -34,7 +33,6 @@ import org.jboss.tools.jst.web.kb.PageProcessor; import org.jboss.tools.jst.web.kb.KbQuery.Type; import org.jboss.tools.jst.web.kb.internal.FaceletPageContextImpl; -import org.jboss.tools.jst.web.kb.internal.XmlContextImpl; import org.jboss.tools.jst.web.kb.internal.taglib.NameSpace; import org.jboss.tools.jst.web.kb.taglib.CustomTagLibManager; import org.jboss.tools.jst.web.kb.taglib.INameSpace; Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/contentassist/JspContentAssistProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/JspContentAssistProcessor.java 2009-09-29 16:44:19 UTC (rev 17= 801) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/JspContentAssistProcessor.java 2009-09-29 16:45:41 UTC (rev 17= 802) @@ -16,7 +16,6 @@ import java.util.Map; = import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IProject; import org.eclipse.jface.text.BadLocationException; import org.eclipse.jface.text.IRegion; import org.eclipse.jface.text.Region; @@ -45,20 +44,16 @@ import org.jboss.tools.common.el.core.resolver.ElVarSearcher; import org.jboss.tools.common.el.core.resolver.Var; import org.jboss.tools.common.text.TextProposal; -import org.jboss.tools.jst.jsp.JspEditorPlugin; -import org.jboss.tools.jst.jsp.messages.JstUIMessages; import org.jboss.tools.jst.web.kb.IPageContext; import org.jboss.tools.jst.web.kb.IResourceBundle; import org.jboss.tools.jst.web.kb.KbQuery; import org.jboss.tools.jst.web.kb.PageProcessor; import org.jboss.tools.jst.web.kb.KbQuery.Type; import org.jboss.tools.jst.web.kb.internal.JspContextImpl; -import org.jboss.tools.jst.web.kb.internal.XmlContextImpl; import org.jboss.tools.jst.web.kb.internal.ResourceBundle; +import org.jboss.tools.jst.web.kb.internal.XmlContextImpl; import org.jboss.tools.jst.web.kb.internal.taglib.NameSpace; import org.jboss.tools.jst.web.kb.taglib.INameSpace; -import org.jboss.tools.jst.web.kb.taglib.ITagLibrary; -import org.jboss.tools.jst.web.kb.taglib.TagLibriryManager; import org.w3c.dom.Attr; import org.w3c.dom.Document; import org.w3c.dom.Element; Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/contentassist/XmlContentAssistProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/XmlContentAssistProcessor.java 2009-09-29 16:44:19 UTC (rev 17= 801) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/c= ontentassist/XmlContentAssistProcessor.java 2009-09-29 16:45:41 UTC (rev 17= 802) @@ -33,14 +33,12 @@ import org.jboss.tools.common.el.core.resolver.ELResolver; import org.jboss.tools.common.text.TextProposal; import org.jboss.tools.jst.jsp.JspEditorPlugin; -import org.jboss.tools.jst.jsp.contentassist.AbstractXMLContentAssistProce= ssor.TextRegion; import org.jboss.tools.jst.jsp.messages.JstUIMessages; import org.jboss.tools.jst.web.kb.IPageContext; import org.jboss.tools.jst.web.kb.IResourceBundle; import org.jboss.tools.jst.web.kb.KbQuery; import org.jboss.tools.jst.web.kb.PageProcessor; import org.jboss.tools.jst.web.kb.KbQuery.Type; -import org.jboss.tools.jst.web.kb.internal.JspContextImpl; import org.jboss.tools.jst.web.kb.internal.XmlContextImpl; import org.jboss.tools.jst.web.kb.internal.taglib.NameSpace; import org.jboss.tools.jst.web.kb.taglib.INameSpace; Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/jspeditor/JSPTextEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/JSPTextEditor.java 2009-09-29 16:44:19 UTC (rev 17801) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/j= speditor/JSPTextEditor.java 2009-09-29 16:45:41 UTC (rev 17802) @@ -113,7 +113,6 @@ import org.jboss.tools.common.model.ui.texteditors.dnd.TextEditorDrop; import org.jboss.tools.common.model.ui.texteditors.dnd.TextEditorDropProvi= der; import org.jboss.tools.common.model.ui.views.palette.IIgnoreSelection; -import org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper; import org.jboss.tools.common.model.util.XModelObjectLoaderUtil; import org.jboss.tools.common.text.xml.IOccurrencePreferenceProvider; import org.jboss.tools.common.text.xml.XmlEditorPlugin; --===============4275016866276021720==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 12:46:34 2009 Content-Type: multipart/mixed; boundary="===============3287023376899917592==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17803 - trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal. Date: Tue, 29 Sep 2009 12:46:33 -0400 Message-ID: <200909291646.n8TGkXBw015914@svn01.web.mwc.hst.phx2.redhat.com> --===============3287023376899917592== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-29 12:46:33 -0400 (Tue, 29 Sep 2009) New Revision: 17803 Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web= /kb/internal/XmlContextImpl.java Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web= /kb/internal/JspContextImpl.java Log: JBIDE-4923: Code assist for EL doesn't work in XML files. Issue is fixed Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/= jst/web/kb/internal/JspContextImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/internal/JspContextImpl.java 2009-09-29 16:45:41 UTC (rev 17802) +++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/internal/JspContextImpl.java 2009-09-29 16:46:33 UTC (rev 17803) @@ -11,6 +11,7 @@ package org.jboss.tools.jst.web.kb.internal; = import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -21,6 +22,7 @@ import org.jboss.tools.common.el.core.resolver.ELContextImpl; import org.jboss.tools.jst.web.kb.IPageContext; import org.jboss.tools.jst.web.kb.IResourceBundle; +import org.jboss.tools.jst.web.kb.internal.taglib.NameSpace; import org.jboss.tools.jst.web.kb.taglib.INameSpace; import org.jboss.tools.jst.web.kb.taglib.ITagLibrary; = @@ -28,117 +30,20 @@ * JSP page context * @author Alexey Kazakov */ -public class JspContextImpl extends ELContextImpl implements IPageContext { - protected IDocument document; - protected ITagLibrary[] libs; - protected Map> nameSpaces =3D new HashMa= p>(); - protected IResourceBundle[] bundles; +public class JspContextImpl extends XmlContextImpl { = - /* - * (non-Javadoc) - * @see org.jboss.tools.jst.web.kb.IPageContext#getLibraries() - */ - public ITagLibrary[] getLibraries() { - return libs; - } - - public void setLibraries(ITagLibrary[] libs) { - this.libs =3D libs; - } - - /* - * (non-Javadoc) - * @see org.jboss.tools.jst.web.kb.IPageContext#getResourceBundles() - */ - public IResourceBundle[] getResourceBundles() { - return bundles; - } - - /** - * Sets resource bundles - * @param bundles - */ - public void setResourceBundles(IResourceBundle[] bundles) { - this.bundles =3D bundles; - } - - /** - * @param document the document to set - */ - public void setDocument(IDocument document) { - this.document =3D document; - } - - /* - * (non-Javadoc) - * @see org.jboss.tools.jst.web.kb.PageContext#getDocument() - */ - public IDocument getDocument() { - return document; - } - - /* (non-Javadoc) - * @see org.jboss.tools.jst.web.kb.IPageContext#getNameSpaces(int) - */ + = + = + @Override public Map> getNameSpaces(int offset) { - Map> result =3D new HashMap>(); - Map namespaceToRegions =3D new HashMap(); - - for (IRegion region : nameSpaces.keySet()) { - if(offset>=3Dregion.getOffset() && offset<=3Dregion.getOffset() + regio= n.getLength()) { - Map namespaces =3D nameSpaces.get(region); - if (namespaces !=3D null) { - for (INameSpace ns : namespaces.values()) { - INameSpace existingNameSpace =3D findNameSpaceByPrefix(namespaceToRe= gions.keySet(), ns.getPrefix()); - IRegion existingRegion =3D namespaceToRegions.get(existingNameSpace)= ; = - if (existingRegion !=3D null) { - // Perform visibility check for region - if (region.getOffset() > existingRegion.getOffset()) { - // Replace existingNS by this ns - namespaceToRegions.remove(existingNameSpace); - namespaceToRegions.put(ns, region); - } - } else { - namespaceToRegions.put(ns, region); - } - } - } - } - } - - for (INameSpace ns : namespaceToRegions.keySet()) { - List list =3D result.get(ns.getURI()); - if(list=3D=3Dnull) { - list =3D new ArrayList(); - } - list.add(ns); - result.put(ns.getURI(), list); - } - - return result; + Map> superNameSpaces =3D super.getNameSpaces(of= fset); + = + List fakeForHtmlNS =3D new ArrayList(); + fakeForHtmlNS.add(new NameSpace("", "")); //$NON-NLS-1$ //$NON-NLS-2$ + superNameSpaces.put("", fakeForHtmlNS); //$NON-NLS-1$ + = + return superNameSpaces; } - - private INameSpace findNameSpaceByPrefix(Set namespaces, Stri= ng prefix) { - if (namespaces !=3D null && prefix !=3D null) { - for (INameSpace ns : namespaces) { - if (prefix.equals(ns.getPrefix())) { - return ns; - } - } - } - return null; - } - - /** - * Adds new name space to the context - * @param region - * @param name space - */ - public void addNameSpace(IRegion region, INameSpace nameSpace) { - if (nameSpaces.get(region) =3D=3D null) { - Map nameSpaceMap =3D new HashMap(); - nameSpaces.put(region, nameSpaceMap); - } - nameSpaces.get(region).put(nameSpace.getURI(), nameSpace); - } + = + = } \ No newline at end of file Added: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst= /web/kb/internal/XmlContextImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/internal/XmlContextImpl.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/internal/XmlContextImpl.java 2009-09-29 16:46:33 UTC (rev 17803) @@ -0,0 +1,130 @@ +package org.jboss.tools.jst.web.kb.internal; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import org.eclipse.jface.text.IDocument; +import org.eclipse.jface.text.IRegion; +import org.jboss.tools.common.el.core.resolver.ELContextImpl; +import org.jboss.tools.jst.web.kb.IPageContext; +import org.jboss.tools.jst.web.kb.IResourceBundle; +import org.jboss.tools.jst.web.kb.taglib.INameSpace; +import org.jboss.tools.jst.web.kb.taglib.ITagLibrary; + +public class XmlContextImpl extends ELContextImpl implements IPageContext { + protected IDocument document; + protected ITagLibrary[] libs; + protected Map> nameSpaces =3D new HashMa= p>(); + protected IResourceBundle[] bundles; + + /* + * (non-Javadoc) + * @see org.jboss.tools.jst.web.kb.IPageContext#getLibraries() + */ + public ITagLibrary[] getLibraries() { + return libs; + } + + public void setLibraries(ITagLibrary[] libs) { + this.libs =3D libs; + } + + /* + * (non-Javadoc) + * @see org.jboss.tools.jst.web.kb.IPageContext#getResourceBundles() + */ + public IResourceBundle[] getResourceBundles() { + return bundles; + } + + /** + * Sets resource bundles + * @param bundles + */ + public void setResourceBundles(IResourceBundle[] bundles) { + this.bundles =3D bundles; + } + + /** + * @param document the document to set + */ + public void setDocument(IDocument document) { + this.document =3D document; + } + + /* + * (non-Javadoc) + * @see org.jboss.tools.jst.web.kb.PageContext#getDocument() + */ + public IDocument getDocument() { + return document; + } + + /* (non-Javadoc) + * @see org.jboss.tools.jst.web.kb.IPageContext#getNameSpaces(int) + */ + public Map> getNameSpaces(int offset) { + Map> result =3D new HashMap>(); + Map namespaceToRegions =3D new HashMap(); + + for (IRegion region : nameSpaces.keySet()) { + if(offset>=3Dregion.getOffset() && offset<=3Dregion.getOffset() + regio= n.getLength()) { + Map namespaces =3D nameSpaces.get(region); + if (namespaces !=3D null) { + for (INameSpace ns : namespaces.values()) { + INameSpace existingNameSpace =3D findNameSpaceByPrefix(namespaceToRe= gions.keySet(), ns.getPrefix()); + IRegion existingRegion =3D namespaceToRegions.get(existingNameSpace)= ; = + if (existingRegion !=3D null) { + // Perform visibility check for region + if (region.getOffset() > existingRegion.getOffset()) { + // Replace existingNS by this ns + namespaceToRegions.remove(existingNameSpace); + namespaceToRegions.put(ns, region); + } + } else { + namespaceToRegions.put(ns, region); + } + } + } + } + } + + for (INameSpace ns : namespaceToRegions.keySet()) { + List list =3D result.get(ns.getURI()); + if(list=3D=3Dnull) { + list =3D new ArrayList(); + } + list.add(ns); + result.put(ns.getURI(), list); + } + + return result; + } + + private INameSpace findNameSpaceByPrefix(Set namespaces, Stri= ng prefix) { + if (namespaces !=3D null && prefix !=3D null) { + for (INameSpace ns : namespaces) { + if (prefix.equals(ns.getPrefix())) { + return ns; + } + } + } + return null; + } + + /** + * Adds new name space to the context + * @param region + * @param name space + */ + public void addNameSpace(IRegion region, INameSpace nameSpace) { + if (nameSpaces.get(region) =3D=3D null) { + Map nameSpaceMap =3D new HashMap(); + nameSpaces.put(region, nameSpaceMap); + } + nameSpaces.get(region).put(nameSpace.getURI(), nameSpace); + } +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/j= boss/tools/jst/web/kb/internal/XmlContextImpl.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============3287023376899917592==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 12:48:18 2009 Content-Type: multipart/mixed; boundary="===============6756709581984396047==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17804 - in trunk/seam/plugins: org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/reveng and 1 other directory. Date: Tue, 29 Sep 2009 12:48:18 -0400 Message-ID: <200909291648.n8TGmIbO016534@svn01.web.mwc.hst.phx2.redhat.com> --===============6756709581984396047== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-29 12:48:17 -0400 (Tue, 29 Sep 2009) New Revision: 17804 Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/project/facet/Seam2ProjectCreator.java trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/i= nternal/reveng/JDBCTablesColumnsReader.java Log: Code clean up, catch(Exception) blocks were fixed Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/project/facet/Seam2ProjectCreator.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/project/facet/Seam2ProjectCreator.java 2009-09-29 16:46:33 UTC= (rev 17803) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/project/facet/Seam2ProjectCreator.java 2009-09-29 16:48:17 UTC= (rev 17804) @@ -283,7 +283,10 @@ } try { new FormatProcessorXML().formatFile((IFile) jbossAppXml); - } catch (Exception ignore) { + } catch (IOException e) { + = + } catch (CoreException e) { + = } } = Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/se= am/ui/internal/reveng/JDBCTablesColumnsReader.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= internal/reveng/JDBCTablesColumnsReader.java 2009-09-29 16:46:33 UTC (rev 1= 7803) +++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/= internal/reveng/JDBCTablesColumnsReader.java 2009-09-29 16:48:17 UTC (rev 1= 7804) @@ -100,12 +100,8 @@ } } } finally { - try { - if (null !=3D tableIterator) { - metadataDialect.close(tableIterator); - } - } catch (Exception ignore) { - SeamGuiPlugin.getPluginLog().logError(ignore); + if (null !=3D tableIterator) { + metadataDialect.close(tableIterator); } } } @@ -148,12 +144,8 @@ tcc.addColumnName(catalogName, schemaName, quote(tableName), columnNam= e); } } finally { - try { - if (null !=3D columnIterator) { - metadataDialect.close(columnIterator); - } - } catch (Exception ignore) { - SeamGuiPlugin.getPluginLog().logError(ignore); + if (null !=3D columnIterator) { + metadataDialect.close(columnIterator); } } } --===============6756709581984396047==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 12:48:36 2009 Content-Type: multipart/mixed; boundary="===============6249497282372372262==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17805 - trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal. Date: Tue, 29 Sep 2009 12:48:36 -0400 Message-ID: <200909291648.n8TGmasB016679@svn01.web.mwc.hst.phx2.redhat.com> --===============6249497282372372262== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-29 12:48:35 -0400 (Tue, 29 Sep 2009) New Revision: 17805 Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web= /kb/internal/JspContextImpl.java Log: JBIDE-4923: Code assist for EL doesn't work in XML files. Issue is fixed Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/= jst/web/kb/internal/JspContextImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/internal/JspContextImpl.java 2009-09-29 16:48:17 UTC (rev 17804) +++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/internal/JspContextImpl.java 2009-09-29 16:48:35 UTC (rev 17805) @@ -11,20 +11,11 @@ package org.jboss.tools.jst.web.kb.internal; = import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.Set; = -import org.eclipse.jface.text.IDocument; -import org.eclipse.jface.text.IRegion; -import org.jboss.tools.common.el.core.resolver.ELContextImpl; -import org.jboss.tools.jst.web.kb.IPageContext; -import org.jboss.tools.jst.web.kb.IResourceBundle; import org.jboss.tools.jst.web.kb.internal.taglib.NameSpace; import org.jboss.tools.jst.web.kb.taglib.INameSpace; -import org.jboss.tools.jst.web.kb.taglib.ITagLibrary; = /** * JSP page context --===============6249497282372372262==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 12:53:35 2009 Content-Type: multipart/mixed; boundary="===============2899949254395360862==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17806 - trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib. Date: Tue, 29 Sep 2009 12:53:35 -0400 Message-ID: <200909291653.n8TGrZjX017285@svn01.web.mwc.hst.phx2.redhat.com> --===============2899949254395360862== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: vrubezhny Date: 2009-09-29 12:53:34 -0400 (Tue, 29 Sep 2009) New Revision: 17806 Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web= /kb/internal/taglib/HTMLTagLibrary.java Log: JBIDE-4923: Code assist for EL doesn't work in XML files. Issue is fixed Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/= jst/web/kb/internal/taglib/HTMLTagLibrary.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/internal/taglib/HTMLTagLibrary.java 2009-09-29 16:48:35 UTC (rev 17805) +++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/we= b/kb/internal/taglib/HTMLTagLibrary.java 2009-09-29 16:53:34 UTC (rev 17806) @@ -13,11 +13,13 @@ import java.io.File; import java.util.ArrayList; import java.util.List; +import java.util.Map; import java.util.Set; = import org.jboss.tools.jst.web.kb.IPageContext; import org.jboss.tools.jst.web.kb.KbQuery; import org.jboss.tools.jst.web.kb.taglib.IComponent; +import org.jboss.tools.jst.web.kb.taglib.INameSpace; import org.w3c.dom.Element; import org.w3c.dom.NodeList; = @@ -65,13 +67,32 @@ return result.toArray(new IComponent[0]); } = + private static final List EMPTY_PREFIXES =3D new ArrayList(); /* * (non-Javadoc) * @see org.jboss.tools.jst.web.kb.internal.taglib.AbstractTagLib#getPref= ixes(org.jboss.tools.jst.web.kb.KbQuery, org.jboss.tools.jst.web.kb.IPageCo= ntext) */ @Override protected List getPrefixes(KbQuery query, IPageContext context) { - return null; + + Map> nameSpaces =3D context.getNameSpaces(query= .getOffset()); + if(nameSpaces!=3Dnull) { + List nameSpace =3D nameSpaces.get(getURI()); + if(nameSpace!=3Dnull) { + for (INameSpace n : nameSpace) { + String sPrefix =3D n.getPrefix(); + = + // JBIDE-4923: This fake URI is added by JSP- or FaceletPage- Content= Assist Processors = + // due to indicate that HTML schemas are to be used is query. + // For the Xml Content Assist Processor we need to return an empty pr= efix list (but not null) + // due to prevent HTML schemas usage + // = + if ("".equals(sPrefix)) //$NON-NLS-1$ + return null; + } + } + } + return EMPTY_PREFIXES; } = /* --===============2899949254395360862==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 12:53:45 2009 Content-Type: multipart/mixed; boundary="===============7919508686737293922==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17807 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring. Date: Tue, 29 Sep 2009 12:53:45 -0400 Message-ID: <200909291653.n8TGrjT3017307@svn01.web.mwc.hst.phx2.redhat.com> --===============7919508686737293922== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-29 12:53:44 -0400 (Tue, 29 Sep 2009) New Revision: 17807 Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/refactoring/RenameComponentProcessor.java trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/refactoring/RenameSeamContextVariableProcessor.java trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/refactoring/SeamRenameProcessor.java Log: PMD violations ReturnEmptyArrayRatherThanNull were fixed = Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/refactoring/RenameComponentProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/RenameComponentProcessor.java 2009-09-29 16:53:34 = UTC (rev 17806) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/RenameComponentProcessor.java 2009-09-29 16:53:44 = UTC (rev 17807) @@ -27,8 +27,8 @@ */ public class RenameComponentProcessor extends SeamRenameProcessor { private ISeamComponent component; + = - /** * @param component Renamed component */ @@ -137,6 +137,6 @@ @Override public RefactoringParticipant[] loadParticipants(RefactoringStatus status, SharableParticipants sharedParticipants) throws CoreException { - return null; + return EMPTY_REF_PARTICIPANT; } } \ No newline at end of file Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/refactoring/RenameSeamContextVariableProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/RenameSeamContextVariableProcessor.java 2009-09-29= 16:53:34 UTC (rev 17806) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/RenameSeamContextVariableProcessor.java 2009-09-29= 16:53:44 UTC (rev 17807) @@ -252,6 +252,6 @@ @Override public RefactoringParticipant[] loadParticipants(RefactoringStatus status, SharableParticipants sharedParticipants) throws CoreException { - return null; + return EMPTY_REF_PARTICIPANT; } } \ No newline at end of file Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/refactoring/SeamRenameProcessor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRenameProcessor.java 2009-09-29 16:53:34 UTC (= rev 17806) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRenameProcessor.java 2009-09-29 16:53:44 UTC (= rev 17807) @@ -22,6 +22,7 @@ import org.eclipse.ltk.core.refactoring.CompositeChange; import org.eclipse.ltk.core.refactoring.RefactoringStatus; import org.eclipse.ltk.core.refactoring.TextFileChange; +import org.eclipse.ltk.core.refactoring.participants.RefactoringParticipan= t; import org.eclipse.ltk.core.refactoring.participants.RenameProcessor; import org.eclipse.ltk.internal.core.refactoring.Messages; import org.eclipse.text.edits.MultiTextEdit; @@ -53,6 +54,8 @@ protected static final String JSP_EXT =3D "jsp"; //$NON-NLS-1$ protected static final String PROPERTIES_EXT =3D "properties"; //$NON-NLS= -1$ = + protected static final RefactoringParticipant[] EMPTY_REF_PARTICIPANT =3D= new RefactoringParticipant[0]; = + = protected static final String SEAM_PROPERTIES_FILE =3D "seam.properties";= //$NON-NLS-1$ = protected RefactoringStatus status; --===============7919508686737293922==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 14:58:08 2009 Content-Type: multipart/mixed; boundary="===============0517892024955431966==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17808 - trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/propertypage. Date: Tue, 29 Sep 2009 14:58:08 -0400 Message-ID: <200909291858.n8TIw8Lk012634@svn01.web.mwc.hst.phx2.redhat.com> --===============0517892024955431966== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: rob.stryker(a)jboss.com Date: 2009-09-29 14:58:07 -0400 (Tue, 29 Sep 2009) New Revision: 17808 Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclip= se/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclip= se/as/wtp/ui/propertypage/NewReferenceWizard.java Log: JBIDE-4957 - adding edit button to new reference wizard (changes to default= enablement) Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/id= e/eclipse/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java 2009-09= -29 16:53:44 UTC (rev 17807) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/AddModuleDependenciesPropertiesPage.java 2009-09= -29 18:58:07 UTC (rev 17808) @@ -79,6 +79,7 @@ import org.eclipse.wst.common.frameworks.datamodel.IDataModel; import org.eclipse.wst.common.frameworks.datamodel.IDataModelOperation; import org.eclipse.wst.common.frameworks.datamodel.IDataModelProvider; +import org.eclipse.wst.server.ui.wizard.WizardFragment; import org.jboss.ide.eclipse.as.wtp.ui.Messages; import org.jboss.ide.eclipse.as.wtp.ui.WTPOveridePlugin; = @@ -304,7 +305,7 @@ } case SWT.MouseHover: { TableItem item =3D table.getItem(new Point(event.x, event.y)); - if (item !=3D null && item.getData() !=3D null && !canEdit(item.getDa= ta())) { + if (item !=3D null && item.getData() !=3D null && !canEditPath(item.g= etData())) { if (tip !=3D null && !tip.isDisposed()) tip.dispose(); tip =3D new Shell(PlatformUI.getWorkbench() @@ -337,7 +338,7 @@ }; } = - protected boolean canEdit(Object data) { + protected boolean canEditPath(Object data) { if( data =3D=3D null ) return false; if( !(data instanceof VirtualArchiveComponent)) return true; = @@ -370,9 +371,17 @@ } = protected void viewerSelectionChanged() { - removeButton.setEnabled(getSelectedObject() !=3D null && canEdit(getSele= ctedObject())); + editReferenceButton.setEnabled(hasEditWizardPage(getSelectedObject())); + removeButton.setEnabled(getSelectedObject() !=3D null && canEditPath(get= SelectedObject())); } = + protected boolean hasEditWizardPage(Object o) { + if( o =3D=3D null || !(o instanceof IVirtualComponent)) = + return false; + WizardFragment wf =3D NewReferenceWizard.getFirstEditingFragment((IVirtu= alComponent)o); + return wf !=3D null; + } + = protected Object getSelectedObject() { IStructuredSelection sel =3D (IStructuredSelection)availableComponentsVi= ewer.getSelection(); return sel.getFirstElement(); @@ -384,7 +393,7 @@ if( property.equals(DEPLOY_PATH_PROPERTY)) { if (element instanceof VirtualArchiveComponent) { try { - return canEdit(element); + return canEditPath(element); } catch (IllegalArgumentException iae) { } } @@ -588,6 +597,8 @@ allMappings[i].getSourcePath(), allMappings[i].getRuntimePath() )); } + removeButton.setEnabled(false); + editReferenceButton.setEnabled(false); hasInitialized =3D true; } = Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/id= e/eclipse/as/wtp/ui/propertypage/NewReferenceWizard.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/NewReferenceWizard.java 2009-09-29 16:53:44 UTC = (rev 17807) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/ecli= pse/as/wtp/ui/propertypage/NewReferenceWizard.java 2009-09-29 18:58:07 UTC = (rev 17808) @@ -26,18 +26,24 @@ if( component =3D=3D null ) list.add(new NewReferenceRootWizardFragment()); else { - WizardFragment[] frags =3D DependencyPageExtensionManager.getManager()= .loadAllReferenceWizardFragments(); - for( int i =3D 0; i < frags.length; i++ ) { - if( frags[i] instanceof IReferenceEditor ) { - if( ((IReferenceEditor)frags[i]).canEdit(component)) { - // accept first one - list.add(frags[i]); - return; - } - } + WizardFragment fragment =3D getFirstEditingFragment(component); + if( fragment !=3D null ) + list.add(fragment); + } + } + } + = + public static WizardFragment getFirstEditingFragment(IVirtualComponent co= mponent ) { + WizardFragment[] frags =3D DependencyPageExtensionManager.getManager().l= oadAllReferenceWizardFragments(); + for( int i =3D 0; i < frags.length; i++ ) { + if( frags[i] instanceof IReferenceEditor ) { + if( ((IReferenceEditor)frags[i]).canEdit(component)) { + // accept first one + return frags[i]; } } } + return null; } = public void init(IWorkbench newWorkbench, IStructuredSelection newSelecti= on) { --===============0517892024955431966==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 15:32:46 2009 Content-Type: multipart/mixed; boundary="===============2624662265608637270==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17809 - in trunk/hibernatetools: features and 23 other directories. Date: Tue, 29 Sep 2009 15:32:45 -0400 Message-ID: <200909291932.n8TJWjMS019789@svn01.web.mwc.hst.phx2.redhat.com> --===============2624662265608637270== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: nickboldt Date: 2009-09-29 15:32:45 -0400 (Tue, 29 Sep 2009) New Revision: 17809 Added: trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempla= teFeature/ trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempla= teFeature/build.properties trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempla= teFeature/feature.properties trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempla= teFeature/license.html trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempla= tePlugin/ trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempla= tePlugin/about.ini trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempla= tePlugin/about.mappings trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempla= tePlugin/about.properties trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempla= tePlugin/build.properties trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempla= tePlugin/plugin.properties trunk/hibernatetools/features/org.hibernate.eclipse.sdk.feature/ trunk/hibernatetools/features/org.hibernate.eclipse.sdk.feature/.cvsigno= re trunk/hibernatetools/features/org.hibernate.eclipse.sdk.feature/.project trunk/hibernatetools/features/org.hibernate.eclipse.sdk.feature/build.pr= operties trunk/hibernatetools/features/org.hibernate.eclipse.sdk.feature/feature.= properties trunk/hibernatetools/features/org.hibernate.eclipse.sdk.feature/feature.= xml trunk/hibernatetools/releng/ trunk/hibernatetools/releng/build.properties trunk/hibernatetools/releng/build.properties.example.linux trunk/hibernatetools/releng/build.properties.example.windows trunk/hibernatetools/releng/build.xml trunk/hibernatetools/releng/jbosstools-trunk hibernatetools releng build= .xml.launch trunk/hibernatetools/releng/maps/ trunk/hibernatetools/releng/maps/project.map trunk/hibernatetools/releng/psfs/ trunk/hibernatetools/releng/psfs/athena.psf trunk/hibernatetools/releng/testing.properties Modified: trunk/hibernatetools/features/org.hibernate.eclipse.feature/feature.xml trunk/hibernatetools/features/org.hibernate.eclipse.test.feature/feature= .xml trunk/hibernatetools/plugins/org.hibernate.eclipse.console/META-INF/MANI= FEST.MF trunk/hibernatetools/plugins/org.hibernate.eclipse.help/META-INF/MANIFES= T.MF trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.apt.ui/META-INF/M= ANIFEST.MF trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/META-INF/MANIF= EST.MF trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/META-INF/MANIF= EST.MF trunk/hibernatetools/plugins/org.hibernate.eclipse/META-INF/MANIFEST.MF trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/META-INF= /MANIFEST.MF trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/META-INF/M= ANIFEST.MF trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/META-INF/MANIF= EST.MF trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/META-INF/M= ANIFEST.MF trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/META-INF/MANI= FEST.MF trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/M= ANIFEST.MF trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/META-INF/MA= NIFEST.MF trunk/hibernatetools/tests/org.jboss.tools.hibernate.jpt.core.test/META-= INF/MANIFEST.MF trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/META-INF/MA= NIFEST.MF Log: https://jira.jboss.org/jira/browse/JBIDE-4959 athen builder & sdk feature Modified: trunk/hibernatetools/features/org.hibernate.eclipse.feature/featu= re.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/features/org.hibernate.eclipse.feature/feature.xml= 2009-09-29 18:58:07 UTC (rev 17808) +++ trunk/hibernatetools/features/org.hibernate.eclipse.feature/feature.xml= 2009-09-29 19:32:45 UTC (rev 17809) @@ -2,7 +2,7 @@ = Added: trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTe= mplateFeature/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempl= ateFeature/build.properties (rev 0) +++ trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempl= ateFeature/build.properties 2009-09-29 19:32:45 UTC (rev 17809) @@ -0,0 +1,15 @@ +##########################################################################= ##### +# Copyright (c) 2009 Red Hat and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# = +# Contributors: +# Red Hat - initial API and implementation +##########################################################################= ##### + +bin.includes =3D feature.*,\ + license.html + + Property changes on: trunk/hibernatetools/features/org.hibernate.eclipse.fe= ature/sourceTemplateFeature/build.properties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTe= mplateFeature/feature.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempl= ateFeature/feature.properties (rev 0) +++ trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempl= ateFeature/feature.properties 2009-09-29 19:32:45 UTC (rev 17809) @@ -0,0 +1,28 @@ +featureName=3DHibernate Tools Source +featureProvider=3DJBoss by Red Hat + +# "updateSiteName" property - label for the update site +updateSiteName=3DJBossTools Update Site + = +# "description" property - description of the feature +description=3DHibernate Tools Eclipse Plugin provides development wizards,= \n\ +a query console and a mapping editor for Hibernate 3.\n\ +Also includes hibernate-tools.jar for use with standalone Ant tools. + +# "licenseURL" property - URL of the "Feature License" +# do not translate value - just change to point to a locale-specific HTML = page +licenseURL=3Dlicense.html + +# START NON-TRANSLATABLE +# "license" property - text of the "Feature Update License" +# should be plain text version of license agreement pointed to be "license= URL" +license=3DRed Hat, Inc. licenses these features and plugins to you under +certain open source licenses (or aggregations of such licenses), which +in a particular case may include the Eclipse Public License, the GNU +Lesser General Public License, and/or certain other open source +licenses. For precise licensing details, consult the corresponding +source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, +Raleigh NC 27606 USA. +# END NON-TRANSLATABLE +########### end of license property ######################################= #### + = \ No newline at end of file Property changes on: trunk/hibernatetools/features/org.hibernate.eclipse.fe= ature/sourceTemplateFeature/feature.properties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTe= mplateFeature/license.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempl= ateFeature/license.html (rev 0) +++ trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempl= ateFeature/license.html 2009-09-29 19:32:45 UTC (rev 17809) @@ -0,0 +1,14 @@ + + + + +

Red Hat, Inc. licenses these features and plugins to you under +certain open source licenses (or aggregations of such licenses), which +in a particular case may include the Eclipse Public License, the GNU +Lesser General Public License, and/or certain other open source +licenses. For precise licensing details, consult the corresponding +source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, +Raleigh NC 27606 USA. +

+ + \ No newline at end of file Property changes on: trunk/hibernatetools/features/org.hibernate.eclipse.fe= ature/sourceTemplateFeature/license.html ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTe= mplatePlugin/about.ini =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempl= atePlugin/about.ini (rev 0) +++ trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempl= atePlugin/about.ini 2009-09-29 19:32:45 UTC (rev 17809) @@ -0,0 +1,29 @@ +# about.ini +# contains information about a feature +# java.io.Properties file (ISO 8859-1 with "\" escapes) +# "%key" are externalized strings defined in about.properties +# This file does not need to be translated. + +# Property "aboutText" contains blurb for "About" dialog (translated) +aboutText=3D%blurb + +# Property "windowImage" contains path to window icon (16x16) +# needed for primary features only + +# Property "featureImage" contains path to feature image (32x32) +#featureImage=3Declipse32.png + +# Property "aboutImage" contains path to product image (500x330 or 115x164) +# needed for primary features only + +# Property "appName" contains name of the application (translated) +# needed for primary features only + +# Property "welcomePage" contains path to welcome page (special XML-based = format) +# optional + +# Property "welcomePerspective" contains the id of the perspective in whic= h the +# welcome page is to be opened. +# optional + + Property changes on: trunk/hibernatetools/features/org.hibernate.eclipse.fe= ature/sourceTemplatePlugin/about.ini ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTe= mplatePlugin/about.mappings =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempl= atePlugin/about.mappings (rev 0) +++ trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempl= atePlugin/about.mappings 2009-09-29 19:32:45 UTC (rev 17809) @@ -0,0 +1,6 @@ +# about.mappings +# contains fill-ins for about.properties +# java.io.Properties file (ISO 8859-1 with "\" escapes) +# This file does not need to be translated. + +0=3D@build@ \ No newline at end of file Added: trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTe= mplatePlugin/about.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempl= atePlugin/about.properties (rev 0) +++ trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempl= atePlugin/about.properties 2009-09-29 19:32:45 UTC (rev 17809) @@ -0,0 +1,7 @@ +blurb=3DHibernate Tools Source\n\ +\n\ +Version: {featureVersion}\n\ +Build id: {0}\n\ +\n\ +(c) Copyright Red Hat contributors and others, 2009. All rights reserved.= \n\ +Visit http://www.jboss.org/tools Property changes on: trunk/hibernatetools/features/org.hibernate.eclipse.fe= ature/sourceTemplatePlugin/about.properties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTe= mplatePlugin/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempl= atePlugin/build.properties (rev 0) +++ trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempl= atePlugin/build.properties 2009-09-29 19:32:45 UTC (rev 17809) @@ -0,0 +1,5 @@ +bin.includes =3D plugin.*,\ + about.*,\ + src/,\ + META-INF/ +sourcePlugin =3D true Property changes on: trunk/hibernatetools/features/org.hibernate.eclipse.fe= ature/sourceTemplatePlugin/build.properties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTe= mplatePlugin/plugin.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempl= atePlugin/plugin.properties (rev 0) +++ trunk/hibernatetools/features/org.hibernate.eclipse.feature/sourceTempl= atePlugin/plugin.properties 2009-09-29 19:32:45 UTC (rev 17809) @@ -0,0 +1,3 @@ +pluginName =3D Hibernate Tools Source +providerName =3D JBoss by Red Hat + Property changes on: trunk/hibernatetools/features/org.hibernate.eclipse.fe= ature/sourceTemplatePlugin/plugin.properties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/hibernatetools/features/org.hibernate.eclipse.sdk.feature/.cvs= ignore =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/features/org.hibernate.eclipse.sdk.feature/.cvsign= ore (rev 0) +++ trunk/hibernatetools/features/org.hibernate.eclipse.sdk.feature/.cvsign= ore 2009-09-29 19:32:45 UTC (rev 17809) @@ -0,0 +1 @@ +.settings Property changes on: trunk/hibernatetools/features/org.hibernate.eclipse.sd= k.feature/.cvsignore ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + text/plain Added: trunk/hibernatetools/features/org.hibernate.eclipse.sdk.feature/.pro= ject =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/features/org.hibernate.eclipse.sdk.feature/.projec= t (rev 0) +++ trunk/hibernatetools/features/org.hibernate.eclipse.sdk.feature/.projec= t 2009-09-29 19:32:45 UTC (rev 17809) @@ -0,0 +1,17 @@ + + + org.hibernate.eclipse.feature + + + + + + org.eclipse.pde.FeatureBuilder + + + + + + org.eclipse.pde.FeatureNature + + Property changes on: trunk/hibernatetools/features/org.hibernate.eclipse.sd= k.feature/.project ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + text/plain Added: trunk/hibernatetools/features/org.hibernate.eclipse.sdk.feature/buil= d.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/features/org.hibernate.eclipse.sdk.feature/build.p= roperties (rev 0) +++ trunk/hibernatetools/features/org.hibernate.eclipse.sdk.feature/build.p= roperties 2009-09-29 19:32:45 UTC (rev 17809) @@ -0,0 +1,3 @@ +bin.includes =3D feature.xml,\ + feature.properties +generate.feature(a)org.hibernate.eclipse.source.feature=3Dorg.hibernate.ec= lipse.feature Property changes on: trunk/hibernatetools/features/org.hibernate.eclipse.sd= k.feature/build.properties ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + text/plain Added: trunk/hibernatetools/features/org.hibernate.eclipse.sdk.feature/feat= ure.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/features/org.hibernate.eclipse.sdk.feature/feature= .properties (rev 0) +++ trunk/hibernatetools/features/org.hibernate.eclipse.sdk.feature/feature= .properties 2009-09-29 19:32:45 UTC (rev 17809) @@ -0,0 +1,31 @@ +##########################################################################= ##### +# Copyright (c) 2009 JBoss by Red Hat and others. +# All rights reserved. This program and the accompanying materials = +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# = +# Contributors: +# JBoss by Red Hat - Initial implementation. +##########################################################################= #### +# feature.properties +# contains externalized strings for feature.xml +# "%foo" in feature.xml corresponds to the key "foo" in this file +# java.io.Properties file (ISO 8859-1 with "\" escapes) +# This file should be translated. + +# "featureName" property - name of the feature +featureName=3DHibernate Tools SDK + +# "providerName" property - name of the company that provides the feature +providerName=3DJBoss by Red Hat + +# "updateSiteName" property - label for the update site +updateSiteName=3DJBossTools Update Site + +devUpdateSiteName=3DJBossTools Development Update Site + +# "description" property - description of the feature +description=3DHibernate Tools Eclipse Plugin provides development wizards,= \n\ +a query console and a mapping editor for Hibernate 3.\n\ +Also includes hibernate-tools.jar for use with standalone Ant tools. Property changes on: trunk/hibernatetools/features/org.hibernate.eclipse.sd= k.feature/feature.properties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/hibernatetools/features/org.hibernate.eclipse.sdk.feature/feat= ure.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/features/org.hibernate.eclipse.sdk.feature/feature= .xml (rev 0) +++ trunk/hibernatetools/features/org.hibernate.eclipse.sdk.feature/feature= .xml 2009-09-29 19:32:45 UTC (rev 17809) @@ -0,0 +1,36 @@ + + + + + %description + + + Red Hat, Inc. licenses these features and plugins to you under +certain open source licenses (or aggregations of such licenses), which +in a particular case may include the Eclipse Public License, the GNU +Lesser General Public License, and/or certain other open source +licenses. For precise licensing details, consult the corresponding +source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, +Raleigh NC 27606 USA. + + + + + + + + + + + + + Property changes on: trunk/hibernatetools/features/org.hibernate.eclipse.sd= k.feature/feature.xml ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + text/plain Modified: trunk/hibernatetools/features/org.hibernate.eclipse.test.feature/= feature.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/features/org.hibernate.eclipse.test.feature/featur= e.xml 2009-09-29 18:58:07 UTC (rev 17808) +++ trunk/hibernatetools/features/org.hibernate.eclipse.test.feature/featur= e.xml 2009-09-29 19:32:45 UTC (rev 17809) @@ -2,7 +2,7 @@ = Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse/META-INF/MANIF= EST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse/META-INF/MANIFEST.MF= 2009-09-29 18:58:07 UTC (rev 17808) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse/META-INF/MANIFEST.MF= 2009-09-29 19:32:45 UTC (rev 17809) @@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: %Bundle-Name.0 Bundle-SymbolicName: org.hibernate.eclipse -Bundle-Version: 3.2.0.beta10 +Bundle-Version: 3.3.0.qualifier Bundle-ClassPath: org.hibernate.eclipse.jar, lib/hibernate/asm.jar, lib/hibernate/asm-attrs.jar, Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/META-I= NF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/META-INF/MAN= IFEST.MF 2009-09-29 18:58:07 UTC (rev 17808) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/META-INF/MAN= IFEST.MF 2009-09-29 19:32:45 UTC (rev 17809) @@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: %Bundle-Name.0 Bundle-SymbolicName: org.hibernate.eclipse.console; singleton:=3Dtrue -Bundle-Version: 3.2.0.beta9 +Bundle-Version: 3.3.0.qualifier Bundle-ClassPath: org.hibernate.eclipse.console.jar Bundle-Activator: org.hibernate.eclipse.console.HibernateConsolePlugin Bundle-Vendor: %Bundle-Vendor.0 Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.help/META-INF/= MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse.help/META-INF/MANIFE= ST.MF 2009-09-29 18:58:07 UTC (rev 17808) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse.help/META-INF/MANIFE= ST.MF 2009-09-29 19:32:45 UTC (rev 17809) @@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: %Bundle-Name.0 Bundle-SymbolicName: org.hibernate.eclipse.help; singleton:=3Dtrue -Bundle-Version: 3.2.0.beta9 +Bundle-Version: 3.3.0.qualifier Bundle-ClassPath: help.jar Bundle-Activator: org.hibernate.eclipse.help.HelpPlugin Bundle-Vendor: %Bundle-Vendor.0 Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.apt.ui/MET= A-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.apt.ui/META-INF/= MANIFEST.MF 2009-09-29 18:58:07 UTC (rev 17808) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.apt.ui/META-INF/= MANIFEST.MF 2009-09-29 19:32:45 UTC (rev 17809) @@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: %Bundle-Name.0 Bundle-SymbolicName: org.hibernate.eclipse.jdt.apt.ui;singleton:=3Dtrue -Bundle-Version: 3.2.0.beta8 +Bundle-Version: 3.3.0.qualifier Bundle-Activator: org.hibernate.eclipse.jdt.apt.ui.Activator Bundle-Vendor: %Bundle-Vendor.0 Bundle-Localization: plugin Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/META-IN= F/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/META-INF/MANI= FEST.MF 2009-09-29 18:58:07 UTC (rev 17808) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/META-INF/MANI= FEST.MF 2009-09-29 19:32:45 UTC (rev 17809) @@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: %Bundle-Name.0 Bundle-SymbolicName: org.hibernate.eclipse.jdt.ui;singleton:=3Dtrue -Bundle-Version: 3.2.0.beta9 +Bundle-Version: 3.3.0.qualifier Bundle-Activator: org.hibernate.eclipse.jdt.ui.Activator Bundle-Vendor: %Bundle-Vendor.0 Bundle-Localization: plugin Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/META-IN= F/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/META-INF/MANI= FEST.MF 2009-09-29 18:58:07 UTC (rev 17808) +++ trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/META-INF/MANI= FEST.MF 2009-09-29 19:32:45 UTC (rev 17809) @@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: %Bundle-Name.0 Bundle-SymbolicName: org.hibernate.eclipse.mapper; singleton:=3Dtrue -Bundle-Version: 3.2.0.beta9 +Bundle-Version: 3.3.0.qualifier Bundle-ClassPath: org.hibernate.eclipse.mapper.jar Bundle-Activator: org.hibernate.eclipse.mapper.MapperPlugin Bundle-Vendor: %Bundle-Vendor.0 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/M= ETA-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/META-IN= F/MANIFEST.MF 2009-09-29 18:58:07 UTC (rev 17808) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/META-IN= F/MANIFEST.MF 2009-09-29 19:32:45 UTC (rev 17809) @@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: %Bundle-Name.0 Bundle-SymbolicName: org.jboss.tools.hibernate.jpt.core;singleton:=3Dtrue -Bundle-Version: 1.0.0 +Bundle-Version: 3.3.0.qualifier Require-Bundle: = org.eclipse.core.runtime, org.eclipse.wst.validation, Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/MET= A-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/META-INF/= MANIFEST.MF 2009-09-29 18:58:07 UTC (rev 17808) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/META-INF/= MANIFEST.MF 2009-09-29 19:32:45 UTC (rev 17809) @@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: Hibernate Jdt UI Bundle-SymbolicName: org.jboss.tools.hibernate.jpt.ui;singleton:=3Dtrue -Bundle-Version: 1.0.0 +Bundle-Version: 3.3.0.qualifier Bundle-Activator: org.jboss.tools.hibernate.jpt.ui.HibernateJptUIPlugin Require-Bundle: = org.hibernate.eclipse.console, Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/META-IN= F/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/META-INF/MANI= FEST.MF 2009-09-29 18:58:07 UTC (rev 17808) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/META-INF/MANI= FEST.MF 2009-09-29 19:32:45 UTC (rev 17809) @@ -18,7 +18,7 @@ org.eclipse.jdt.core, org.eclipse.jdt.ui, org.hibernate.eclipse.console -Bundle-Version: 2.0.0 +Bundle-Version: 3.3.0.qualifier Export-Package: org.jboss.tools.hibernate.ui.diagram, org.jboss.tools.hibernate.ui.diagram.editors, org.jboss.tools.hibernate.ui.diagram.editors.actions, Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/META-I= NF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/META-INF/MAN= IFEST.MF 2009-09-29 18:58:07 UTC (rev 17808) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/META-INF/MAN= IFEST.MF 2009-09-29 19:32:45 UTC (rev 17809) @@ -24,5 +24,5 @@ org.eclipse.core.runtime, org.jboss.tools.common, org.jboss.tools.common.model -Bundle-Version: 2.0.0 +Bundle-Version: 3.3.0.qualifier Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/MET= A-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/META-INF/= MANIFEST.MF 2009-09-29 18:58:07 UTC (rev 17808) +++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/META-INF/= MANIFEST.MF 2009-09-29 19:32:45 UTC (rev 17809) @@ -25,5 +25,5 @@ org.jboss.tools.common.model.ui, org.jboss.tools.hibernate.xml, org.eclipse.wst.xml.ui -Bundle-Version: 2.0.0 +Bundle-Version: 3.3.0.qualifier Bundle-RequiredExecutionEnvironment: J2SE-1.5 Added: trunk/hibernatetools/releng/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/releng/build.properties (r= ev 0) +++ trunk/hibernatetools/releng/build.properties 2009-09-29 19:32:45 UTC (r= ev 17809) @@ -0,0 +1,47 @@ +## BEGIN PROJECT BUILD PROPERTIES ## + +# this property allows ant-contrib and pde-svn-plugin to be fetched and in= stalled automatically for you +thirdPartyDownloadLicenseAcceptance=3D"I accept" + +projectid=3Djbosstools.hibernatetools +zipPrefix=3DHibernateTools +incubation=3D +buildType=3DN +version=3D3.3.0 + +mainFeatureToBuildID=3Dorg.hibernate.eclipse.sdk.feature +testFeatureToBuildID=3Dorg.hibernate.eclipse.test.feature + +build.steps=3DbuildUpdate,buildTests,generateDigests,test,publish,cleanup + +# Re-use local sources? +#localSourceCheckoutDir=3D/home/nboldt/eclipse/workspace-jboss/jbosstools-= trunk/hibernatetools +relengBuilderDir=3D/home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/h= ibernatetools/releng +relengBaseBuilderDir=3D/home/nboldt/eclipse/workspace-jboss/org.eclipse.re= leng.basebuilder +relengCommonBuilderDir=3D/home/nboldt/eclipse/workspace-jboss/org.eclipse.= dash.common.releng + +JAVA_HOME=3D/usr/lib/jvm/java +JAVA50_HOME=3D/usr/lib/jvm/java + +dependencyURLs=3D\ +http://repository.jboss.org/eclipse/galileo/eclipse-SDK-3.5.1-linux-gtk.ta= r.gz,\ +http://repository.jboss.org/eclipse/galileo/wtp-R-3.1.1-20090917225226.zip= ,\ +http://repository.jboss.org/eclipse/galileo/emf-runtime-2.5.0.zip,\ +http://repository.jboss.org/eclipse/galileo/xsd-runtime-2.5.0.zip,\ +http://downloads.sourceforge.net/sourceforge/hibernate/hibernate-3.0.3.zip + +flattenDependencies=3Dtrue +parallelCompilation=3Dtrue +generateFeatureVersionSuffix=3Dtrue +individualSourceBundles=3Dtrue + +domainNamespace=3D* +projNamespace=3Dorg.hibernate.eclipse +projRelengName=3Dorg.hibernate.eclipse.releng + +# needed for Hudson, not for local? +#projRelengRoot=3Dsvn://svn.jboss.org/repos/jbosstools/trunk/jmx +#projRelengPath=3Dreleng +#basebuilderBranch=3DR35_M6 + +## END PROJECT BUILD PROPERTIES ## Property changes on: trunk/hibernatetools/releng/build.properties ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + text/plain Added: trunk/hibernatetools/releng/build.properties.example.linux =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/releng/build.properties.example.linux = (rev 0) +++ trunk/hibernatetools/releng/build.properties.example.linux 2009-09-29 1= 9:32:45 UTC (rev 17809) @@ -0,0 +1,47 @@ +## BEGIN PROJECT BUILD PROPERTIES ## + +# this property allows ant-contrib and pde-svn-plugin to be fetched and in= stalled automatically for you +thirdPartyDownloadLicenseAcceptance=3D"I accept" + +projectid=3Djbosstools.hibernatetools +zipPrefix=3DHibernateTools +incubation=3D +buildType=3DN +version=3D3.3.0 + +mainFeatureToBuildID=3Dorg.hibernate.eclipse.sdk.feature +testFeatureToBuildID=3Dorg.hibernate.eclipse.test.feature + +build.steps=3DbuildUpdate,buildTests,generateDigests,test,publish,cleanup + +# Re-use local sources? +#localSourceCheckoutDir=3D/home/nboldt/eclipse/workspace-jboss/jbosstools-= trunk/hibernatetools +relengBuilderDir=3D/home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/h= ibernatetools/releng +relengBaseBuilderDir=3D/home/nboldt/eclipse/workspace-jboss/org.eclipse.re= leng.basebuilder +relengCommonBuilderDir=3D/home/nboldt/eclipse/workspace-jboss/org.eclipse.= dash.common.releng + +JAVA_HOME=3D/usr/lib/jvm/java +JAVA50_HOME=3D/usr/lib/jvm/java + +dependencyURLs=3D\ +http://repository.jboss.org/eclipse/galileo/eclipse-SDK-3.5.1-linux-gtk.ta= r.gz,\ +http://repository.jboss.org/eclipse/galileo/wtp-R-3.1.1-20090917225226.zip= ,\ +http://repository.jboss.org/eclipse/galileo/emf-runtime-2.5.0.zip,\ +http://repository.jboss.org/eclipse/galileo/xsd-runtime-2.5.0.zip,\ +http://downloads.sourceforge.net/sourceforge/hibernate/hibernate-3.0.3.zip + +flattenDependencies=3Dtrue +parallelCompilation=3Dtrue +generateFeatureVersionSuffix=3Dtrue +individualSourceBundles=3Dtrue + +domainNamespace=3D* +projNamespace=3Dorg.hibernate.eclipse +projRelengName=3Dorg.hibernate.eclipse.releng + +# needed for Hudson, not for local? +#projRelengRoot=3Dsvn://svn.jboss.org/repos/jbosstools/trunk/jmx +#projRelengPath=3Dreleng +#basebuilderBranch=3DR35_M6 + +## END PROJECT BUILD PROPERTIES ## Property changes on: trunk/hibernatetools/releng/build.properties.example.l= inux ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + text/plain Added: trunk/hibernatetools/releng/build.properties.example.windows =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/releng/build.properties.example.windows = (rev 0) +++ trunk/hibernatetools/releng/build.properties.example.windows 2009-09-29= 19:32:45 UTC (rev 17809) @@ -0,0 +1,55 @@ +## BEGIN PROJECT BUILD PROPERTIES ## + +# this property allows ant-contrib and pde-svn-plugin to be fetched and in= stalled automatically for you +thirdPartyDownloadLicenseAcceptance=3D"I accept" + +projectid=3Djbosstools.hibernatetools +zipPrefix=3DHibernateTools +incubation=3D +buildType=3DN +version=3D3.3.0 + +mainFeatureToBuildID=3Dorg.hibernate.eclipse.sdk.feature +testFeatureToBuildID=3Dorg.hibernate.eclipse.test.feature + +build.steps=3DbuildUpdate,buildTests,generateDigests,test,publish,cleanup + +# Re-use local sources? +localSourceCheckoutDir=3DC:/workspace2 + +# For windows, must be explicit about paths using correct slashes (/); dir= s with spaces should be avoided +writableBuildRoot=3DC:/tmp/build + +#relengBuilderDir=3DC:/Users/max/workspace-hibernatetoolsbuild/org.hiberna= te.eclipse.releng +#relengBaseBuilderDir=3DC:/Users/max/workspace-hibernatetoolsbuild/org.ecl= ipse.releng.basebuilder +#relengCommonBuilderDir=3DC:/Users/max/workspace-hibernatetoolsbuild/org.e= clipse.dash.common.releng +relengBuilderDir=3DC:/workspace2/org.hibernate.eclipse.releng +relengBaseBuilderDir=3DC:/workspace2/org.eclipse.releng.basebuilder +relengCommonBuilderDir=3DC:/workspace2/org.eclipse.dash.common.releng + +JAVA_HOME=3DC:/Progra~1/Java/jdk1.6.0_11 +JAVA50_HOME=3DC:/Progra~1/Java/jdk1.6.0_11 +JAVA60_HOME=3DC:/Progra~1/Java/jdk1.6.0_11 + +dependencyURLs=3D\ +http://repository.jboss.org/eclipse/galileo/eclipse-SDK-3.5.1-win32.zip,\ +http://repository.jboss.org/eclipse/galileo/wtp-R-3.1.1-20090917225226.zip= ,\ +http://repository.jboss.org/eclipse/galileo/emf-runtime-2.5.0.zip,\ +http://repository.jboss.org/eclipse/galileo/xsd-runtime-2.5.0.zip,\ +http://downloads.sourceforge.net/sourceforge/hibernate/hibernate-3.0.3.zip + +flattenDependencies=3Dtrue +parallelCompilation=3Dtrue +generateFeatureVersionSuffix=3Dtrue +individualSourceBundles=3Dtrue + +domainNamespace=3D* +projNamespace=3Dorg.hibernate.eclipse +projRelengName=3Dorg.hibernate.eclipse.releng + +# needed for Hudson, not for local? +#projRelengRoot=3Dsvn://svn.jboss.org/repos/jbosstools/trunk/jmx +#projRelengPath=3Dreleng +#basebuilderBranch=3DR35_M6 + +## END PROJECT BUILD PROPERTIES ## Property changes on: trunk/hibernatetools/releng/build.properties.example.w= indows ___________________________________________________________________ Name: svn:executable + * Added: trunk/hibernatetools/releng/build.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/releng/build.xml (rev 0) +++ trunk/hibernatetools/releng/build.xml 2009-09-29 19:32:45 UTC (rev 1780= 9) @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Property changes on: trunk/hibernatetools/releng/build.xml ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + text/plain Added: trunk/hibernatetools/releng/jbosstools-trunk hibernatetools releng b= uild.xml.launch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/releng/jbosstools-trunk hibernatetools releng buil= d.xml.launch (rev 0) +++ trunk/hibernatetools/releng/jbosstools-trunk hibernatetools releng buil= d.xml.launch 2009-09-29 19:32:45 UTC (rev 17809) @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + Property changes on: trunk/hibernatetools/releng/jbosstools-trunk hibernate= tools releng build.xml.launch ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/hibernatetools/releng/maps/project.map =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/releng/maps/project.map (r= ev 0) +++ trunk/hibernatetools/releng/maps/project.map 2009-09-29 19:32:45 UTC (r= ev 17809) @@ -0,0 +1,13 @@ +feature(a)org.hibernate.eclipse.sdk.feature=3DSVN,,http://anonsvn.jboss.or= g/repos,,jbosstools/trunk/hibernatetools/features/org.hibernate.eclipse.sdk= .feature +feature(a)org.hibernate.eclipse.feature=3DSVN,,http://anonsvn.jboss.org/re= pos,,jbosstools/trunk/hibernatetools/features/org.hibernate.eclipse.feature +feature(a)org.hibernate.eclipse.test.feature=3DSVN,,http://anonsvn.jboss.o= rg/repos,,jbosstools/trunk/hibernatetools/features/org.hibernate.eclipse.te= st.feature + +plugin(a)org.hibernate.eclipse=3DSVN,,http://anonsvn.jboss.org/repos,,jbos= stools/trunk/hibernatetools/plugins/org.hibernate.eclipse +plugin(a)org.hibernate.eclipse.console=3DSVN,,http://anonsvn.jboss.org/rep= os,,jbosstools/trunk/hibernatetools/plugins/org.hibernate.eclipse.console +plugin(a)org.hibernate.eclipse.mapper=3DSVN,,http://anonsvn.jboss.org/repo= s,,jbosstools/trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper +plugin(a)org.hibernate.eclipse.help=3DSVN,,http://anonsvn.jboss.org/repos,= ,jbosstools/trunk/hibernatetools/plugins/org.hibernate.eclipse.help +plugin(a)org.hibernate.eclipse.jdt.ui=3DSVN,,http://anonsvn.jboss.org/repo= s,,jbosstools/trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui +plugin(a)org.hibernate.eclipse.jdt.apt.ui=3DSVN,,http://anonsvn.jboss.org/= repos,,jbosstools/trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ap= t.ui +plugin(a)org.jboss.tools.hibernate.ui=3DSVN,,http://anonsvn.jboss.org/repo= s,,jbosstools/trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui +plugin(a)org.jboss.tools.hibernate.jpt.core=3DSVN,,http://anonsvn.jboss.or= g/repos,,jbosstools/trunk/hibernatetools/plugins/org.jboss.tools.hibernate.= jpt.core +plugin(a)org.jboss.tools.hibernate.jpt.ui=3DSVN,,http://anonsvn.jboss.org/= repos,,jbosstools/trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jp= t.ui Property changes on: trunk/hibernatetools/releng/maps/project.map ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/hibernatetools/releng/psfs/athena.psf =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/releng/psfs/athena.psf (re= v 0) +++ trunk/hibernatetools/releng/psfs/athena.psf 2009-09-29 19:32:45 UTC (re= v 17809) @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file Property changes on: trunk/hibernatetools/releng/psfs/athena.psf ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/hibernatetools/releng/testing.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/releng/testing.properties = (rev 0) +++ trunk/hibernatetools/releng/testing.properties 2009-09-29 19:32:45 UTC = (rev 17809) @@ -0,0 +1,10 @@ +#extraVMargs=3D"-Dfoo=3Dbar" + +#csv list of test plugins to run +testPluginsToRun=3Dorg.hibernate.eclipse.console.test,org.hibernate.eclips= e.jdt.ui.test,org.jboss.tools.hibernate.ui.test + +# define which suite to run within each test plugin; or, include a test.xm= l script in = +# the test plugin to deviate from default one-suite-per-plugin operation +org.hibernate.eclipse.console.test.suite=3Dorg.hibernate.eclipse.console.t= est.ConsolePluginAllTests +org.hibernate.eclipse.jdt.ui.test.suite=3Dorg.hibernate.eclipse.jdt.ui.tes= t.JDTuiAllTests +org.jboss.tools.hibernate.ui.test.suite=3Dorg.jboss.tools.hibernate.ui.tes= t.HibernateUiTestSuite Property changes on: trunk/hibernatetools/releng/testing.properties ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/MET= A-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/= MANIFEST.MF 2009-09-29 18:58:07 UTC (rev 17808) +++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/= MANIFEST.MF 2009-09-29 19:32:45 UTC (rev 17809) @@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: %Bundle-Name.0 Bundle-SymbolicName: org.hibernate.eclipse.console.test -Bundle-Version: 3.1.0.beta5 +Bundle-Version: 3.3.0.qualifier Bundle-ClassPath: org.hibernate.eclipse.console.test.test/, lib/hibernate-tools-tests.jar, lib/hsqldb.jar, Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/META= -INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/META-INF/M= ANIFEST.MF 2009-09-29 18:58:07 UTC (rev 17808) +++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/META-INF/M= ANIFEST.MF 2009-09-29 19:32:45 UTC (rev 17809) @@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: %Bundle-Name.0 Bundle-SymbolicName: org.hibernate.eclipse.jdt.ui.test -Bundle-Version: 1.0.0 +Bundle-Version: 3.3.0.qualifier Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime, org.hibernate.eclipse.console.test, Modified: trunk/hibernatetools/tests/org.jboss.tools.hibernate.jpt.core.tes= t/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/tests/org.jboss.tools.hibernate.jpt.core.test/META= -INF/MANIFEST.MF 2009-09-29 18:58:07 UTC (rev 17808) +++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.jpt.core.test/META= -INF/MANIFEST.MF 2009-09-29 19:32:45 UTC (rev 17809) @@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: %Bundle-Name.0 Bundle-SymbolicName: org.jboss.tools.hibernate.jpt.core.test -Bundle-Version: 1.0.0 +Bundle-Version: 3.3.0.qualifier Require-Bundle: org.junit;bundle-version=3D"3.8.2", org.eclipse.wst.common.project.facet.ui;bundle-version=3D"1.3.0", org.eclipse.jpt.core;bundle-version=3D"2.0.0", Modified: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/META= -INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/META-INF/M= ANIFEST.MF 2009-09-29 18:58:07 UTC (rev 17808) +++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/META-INF/M= ANIFEST.MF 2009-09-29 19:32:45 UTC (rev 17809) @@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: %Bundle-Name.0 Bundle-SymbolicName: org.jboss.tools.hibernate.ui.test -Bundle-Version: 1.0.0 +Bundle-Version: 3.3.0.qualifier Require-Bundle: org.junit;bundle-version=3D"3.8.2", org.eclipse.wst.common.project.facet.ui;bundle-version=3D"1.3.0", org.eclipse.jdt.core, --===============2624662265608637270==-- From jbosstools-commits at lists.jboss.org Tue Sep 29 16:19:58 2009 Content-Type: multipart/mixed; boundary="===============0497009067583383463==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17810 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp. Date: Tue, 29 Sep 2009 16:19:58 -0400 Message-ID: <200909292019.n8TKJw5Q028814@svn01.web.mwc.hst.phx2.redhat.com> --===============0497009067583383463== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-29 16:19:58 -0400 (Tue, 29 Sep 2009) New Revision: 17810 Added: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/IT= extViewerConfiguration.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/Te= xtViewerConfigurationDelegate.java Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/HT= MLTextViewerConfiguration.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/JS= PTextViewerConfiguration.java Log: duplicated code was removed from JSP editor Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/HTMLTextViewerConfiguration.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/H= TMLTextViewerConfiguration.java 2009-09-29 19:32:45 UTC (rev 17809) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/H= TMLTextViewerConfiguration.java 2009-09-29 20:19:58 UTC (rev 17810) @@ -31,97 +31,29 @@ import org.jboss.tools.jst.jsp.format.HTMLFormatProcessor; import org.osgi.framework.Bundle; = -public class HTMLTextViewerConfiguration extends StructuredTextViewerConfi= gurationHTML { +public class HTMLTextViewerConfiguration extends StructuredTextViewerConfi= gurationHTML implements ITextViewerConfiguration{ = + TextViewerConfigurationDelegate configurationDelegate; = public HTMLTextViewerConfiguration() { super(); + configurationDelegate =3D new TextViewerConfigurationDelegate(this); } = @SuppressWarnings("restriction") protected IContentAssistProcessor[] getContentAssistProcessors(ISource= Viewer sourceViewer, String partitionType) { - SortingCompoundContentAssistProcessor sortingCompoundProcessor =3D new S= ortingCompoundContentAssistProcessor(sourceViewer, partitionType); - = - if (sortingCompoundProcessor.supportsPartitionType(partitionType)) { - // Add the default WTP CA processors to our SortingCompoundContentAssis= tProcessor - IContentAssistProcessor[] superProcessors =3D super.getContentAssistPro= cessors(sourceViewer, partitionType); - - if (superProcessors !=3D null && superProcessors.length > 0) { - for (int i =3D 0; i < superProcessors.length; i++) - sortingCompoundProcessor.addContentAssistProcessor(partitionType, sup= erProcessors[i]); - } - - return new IContentAssistProcessor[] {sortingCompoundProcessor}; - } - - = - return new IContentAssistProcessor[0]; + return configurationDelegate.getContentAssistProcessors(sourceViewer, pa= rtitionType); } = - /* * @see org.eclipse.jface.text.source.SourceViewerConfiguration#getHyperl= inkDetectors(org.eclipse.jface.text.source.ISourceViewer) * @since 3.1 */ public IHyperlinkDetector[] getHyperlinkDetectors(ISourceViewer sourceVie= wer) { - if (fPreferenceStore =3D=3D null) - return null; - if (sourceViewer =3D=3D null || !fPreferenceStore.getBoolean(AbstractDec= oratedTextEditorPreferenceConstants.EDITOR_HYPERLINKS_ENABLED)) - return null; - - List allDetectors =3D new ArrayList(0); - - IHyperlinkDetector extHyperlinkDetector =3D getTextEditorsExtensionsHype= rlinkDetector(); = - - if (extHyperlinkDetector !=3D null) allDetectors.add(extHyperlinkDetecto= r); - = -/* = - IHyperlinkDetector[] superDetectors =3D super.getHyperlinkDetectors(sour= ceViewer); - for (int m =3D 0; m < superDetectors.length; m++) { - IHyperlinkDetector detector =3D superDetectors[m]; - if (!allDetectors.contains(detector)) { - allDetectors.add(detector); - } - } -*/ - return (IHyperlinkDetector[]) allDetectors.toArray(new IHyperlinkDetecto= r[0]); + return configurationDelegate.getHyperlinkDetectors( + sourceViewer, + fPreferenceStore.getBoolean(AbstractDecoratedTextEditorPreferenceCons= tants.EDITOR_HYPERLINKS_ENABLED)); } = - private IHyperlinkDetector getTextEditorsExtensionsHyperlinkDetector() { - Plugin plugin =3D Platform.getPlugin("org.jboss.tools.common.text.ext");= //$NON-NLS-1$ - return (plugin !=3D null && plugin instanceof IAdaptable ? (IHyperlinkDe= tector)((IAdaptable)plugin).getAdapter(IHyperlinkDetector.class):null); - } - - private IHyperlinkDetector getTextEditorsExtensionsHyperlinkDetector1() { - IHyperlinkDetector result =3D null; - final Object[] bundleActivationResult =3D new Object[] { Boolean.FALSE }; - final Bundle bundle =3D Platform.getBundle("org.jboss.tools.common.text.= ext"); //$NON-NLS-1$ - if (bundle !=3D null && bundle.getState() =3D=3D org.osgi.framework.Bund= le.ACTIVE) { - bundleActivationResult[0] =3D Boolean.TRUE; - } else { - BusyIndicator.showWhile(null, new Runnable() { - public void run() { - bundleActivationResult[0] =3D Boolean.TRUE; - } - }); - } - - if (Boolean.TRUE.equals(bundleActivationResult[0])) { - try { - Dictionary headers =3D bundle.getHeaders(); - String pluginClass =3D (String)headers.get("Plugin-Class"); //$NON-NLS= -1$ - Class plugin =3D bundle.loadClass(pluginClass); - = - Object obj =3D plugin.newInstance(); - if (obj instanceof IAdaptable) { - result =3D (IHyperlinkDetector)((IAdaptable)obj).getAdapter(IHyperlin= kDetector.class); - } - } catch (Exception x) { - JspEditorPlugin.getPluginLog().logError("Error in loading hyperlink de= tector", x); //$NON-NLS-1$ - } - } - return result; - } - /* * (non-Javadoc) * @see org.eclipse.wst.html.ui.StructuredTextViewerConfigurationHTML#get= ContentFormatter(org.eclipse.jface.text.source.ISourceViewer) @@ -131,4 +63,9 @@ formatter.setMasterStrategy(new StructuredFormattingStrategy(new HTMLFor= matProcessor())); return formatter; } + + public IContentAssistProcessor[] getContentAssistProcessorsForPartitionTy= pe( + ISourceViewer sourceViewer, String partitionType) { + return super.getContentAssistProcessors(sourceViewer, partitionType); + } } \ No newline at end of file Added: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/js= p/ITextViewerConfiguration.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/I= TextViewerConfiguration.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/I= TextViewerConfiguration.java 2009-09-29 20:19:58 UTC (rev 17810) @@ -0,0 +1,11 @@ +package org.jboss.tools.jst.jsp; + +import org.eclipse.jface.text.contentassist.IContentAssistProcessor; +import org.eclipse.jface.text.hyperlink.IHyperlinkDetector; +import org.eclipse.jface.text.source.ISourceViewer; + +public interface ITextViewerConfiguration { + static final IHyperlinkDetector[] NO_CA_DETECTORS =3D new IHyperlinkDetec= tor[0]; + IContentAssistProcessor[] getContentAssistProcessorsForPartitionType(ISou= rceViewer sourceViewer, String partitionType); + IHyperlinkDetector[] getHyperlinkDetectors(ISourceViewer sourceViewer); +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jbos= s/tools/jst/jsp/ITextViewerConfiguration.java ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/JSPTextViewerConfiguration.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/J= SPTextViewerConfiguration.java 2009-09-29 19:32:45 UTC (rev 17809) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/J= SPTextViewerConfiguration.java 2009-09-29 20:19:58 UTC (rev 17810) @@ -10,54 +10,28 @@ *************************************************************************= *****/ = package org.jboss.tools.jst.jsp; = -import java.util.ArrayList; -import java.util.Dictionary; -import java.util.List; - -import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.core.runtime.Platform; -import org.eclipse.core.runtime.Plugin; import org.eclipse.jface.text.contentassist.IContentAssistProcessor; import org.eclipse.jface.text.hyperlink.IHyperlinkDetector; import org.eclipse.jface.text.source.ISourceViewer; import org.eclipse.jst.jsp.core.text.IJSPPartitions; import org.eclipse.jst.jsp.ui.StructuredTextViewerConfigurationJSP; import org.eclipse.jst.jsp.ui.internal.style.jspel.LineStyleProviderForJSP= EL; -import org.eclipse.swt.custom.BusyIndicator; import org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceCons= tants; import org.eclipse.wst.sse.ui.internal.provisional.style.LineStyleProvider; -import org.jboss.tools.common.text.xml.contentassist.SortingCompoundConten= tAssistProcessor; -import org.osgi.framework.Bundle; = /** * @author Igels */ -public class JSPTextViewerConfiguration extends StructuredTextViewerConfig= urationJSP { +public class JSPTextViewerConfiguration extends StructuredTextViewerConfig= urationJSP implements ITextViewerConfiguration { + = + private TextViewerConfigurationDelegate configurationDelegate; = public JSPTextViewerConfiguration() { super(); + configurationDelegate =3D new TextViewerConfigurationDelegate(this); } = - protected IContentAssistProcessor[] getContentAssistProcessors(ISourceVie= wer sourceViewer, String partitionType) { - SortingCompoundContentAssistProcessor sortingCompoundProcessor =3D new S= ortingCompoundContentAssistProcessor(sourceViewer, partitionType); - = - if (sortingCompoundProcessor.supportsPartitionType(partitionType)) { - // Add the default WTP CA processors to our SortingCompoundContentAssis= tProcessor - IContentAssistProcessor[] superProcessors =3D super.getContentAssistPro= cessors(sourceViewer, partitionType); = - if (superProcessors !=3D null && superProcessors.length > 0) { - for (int i =3D 0; i < superProcessors.length; i++) - sortingCompoundProcessor.addContentAssistProcessor(partitionType, sup= erProcessors[i]); - } - - return new IContentAssistProcessor[] {sortingCompoundProcessor}; - } - - = - return new IContentAssistProcessor[0]; - } - - = /* * JBIDE-4390: = * The line style provider for partition type =3D=3D "org.eclipse.jst.jsp= .SCRIPT.JSP_EL2", = @@ -99,67 +73,23 @@ return providers; } = + protected IContentAssistProcessor[] getContentAssistProcessors(ISourceVie= wer sourceViewer, String partitionType) { + return configurationDelegate.getContentAssistProcessors(sourceViewer, pa= rtitionType); + } = /* * @see org.eclipse.jface.text.source.SourceViewerConfiguration#getHyperl= inkDetectors(org.eclipse.jface.text.source.ISourceViewer) * @since 3.1 */ public IHyperlinkDetector[] getHyperlinkDetectors(ISourceViewer sourceVie= wer) { - if (fPreferenceStore =3D=3D null) - return null; - if (sourceViewer =3D=3D null || !fPreferenceStore.getBoolean(AbstractDec= oratedTextEditorPreferenceConstants.EDITOR_HYPERLINKS_ENABLED)) - return null; - - List allDetectors =3D new ArrayList(0); - - IHyperlinkDetector extHyperlinkDetector =3D getTextEditorsExtensionsHype= rlinkDetector(); = - - if (extHyperlinkDetector !=3D null) allDetectors.add(extHyperlinkDetecto= r); - -/* IHyperlinkDetector[] superDetectors =3D super.getHyperlinkDetectors(so= urceViewer); - for (int m =3D 0; m < superDetectors.length; m++) { - IHyperlinkDetector detector =3D superDetectors[m]; - if (!allDetectors.contains(detector)) { - allDetectors.add(detector); - } - } -*/ - return (IHyperlinkDetector[]) allDetectors.toArray(new IHyperlinkDetecto= r[0]); + return configurationDelegate.getHyperlinkDetectors( + sourceViewer, + fPreferenceStore.getBoolean(AbstractDecoratedTextEditorPreferenceConst= ants.EDITOR_HYPERLINKS_ENABLED)); = } = - private IHyperlinkDetector getTextEditorsExtensionsHyperlinkDetector() { - Plugin plugin =3D Platform.getPlugin("org.jboss.tools.common.text.ext");= //$NON-NLS-1$ - return (plugin !=3D null && plugin instanceof IAdaptable ? (IHyperlinkDe= tector)((IAdaptable)plugin).getAdapter(IHyperlinkDetector.class):null); + public IContentAssistProcessor[] getContentAssistProcessorsForPartitionTy= pe( + ISourceViewer sourceViewer, String partitionType) { + // TODO Auto-generated method stub + return super.getContentAssistProcessors(sourceViewer, partitionType); } - - private IHyperlinkDetector getTextEditorsExtensionsHyperlinkDetector1() { - IHyperlinkDetector result =3D null; - final Object[] bundleActivationResult =3D new Object[] { Boolean.FALSE }; - final Bundle bundle =3D Platform.getBundle("org.jboss.tools.common.text.= ext"); //$NON-NLS-1$ - if (bundle !=3D null && bundle.getState() =3D=3D org.osgi.framework.Bund= le.ACTIVE) { - bundleActivationResult[0] =3D Boolean.TRUE; - } else { - BusyIndicator.showWhile(null, new Runnable() { - public void run() { - bundleActivationResult[0] =3D Boolean.TRUE; - } - }); - } - - if (Boolean.TRUE.equals(bundleActivationResult[0])) { - try { - Dictionary headers =3D bundle.getHeaders(); - String pluginClass =3D (String)headers.get("Plugin-Class"); //$NON-NLS= -1$ - Class plugin =3D bundle.loadClass(pluginClass); - = - Object obj =3D plugin.newInstance(); - if (obj instanceof IAdaptable) { - result =3D (IHyperlinkDetector)((IAdaptable)obj).getAdapter(IHyperlin= kDetector.class); - } - } catch (Exception x) { - JspEditorPlugin.getPluginLog().logError("Error in loading hyperlink de= tector", x); //$NON-NLS-1$ - } - } - return result; - } } \ No newline at end of file Added: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/js= p/TextViewerConfigurationDelegate.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/T= extViewerConfigurationDelegate.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/T= extViewerConfigurationDelegate.java 2009-09-29 20:19:58 UTC (rev 17810) @@ -0,0 +1,68 @@ +package org.jboss.tools.jst.jsp; + +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.jface.text.contentassist.IContentAssistProcessor; +import org.eclipse.jface.text.hyperlink.IHyperlinkDetector; +import org.eclipse.jface.text.source.ISourceViewer; +import org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceCons= tants; +import org.eclipse.wst.html.ui.StructuredTextViewerConfigurationHTML; +import org.eclipse.wst.sse.ui.StructuredTextViewerConfiguration; +import org.jboss.tools.common.text.ext.hyperlink.HyperlinkDetector; +import org.jboss.tools.common.text.xml.contentassist.SortingCompoundConten= tAssistProcessor; + +public class TextViewerConfigurationDelegate { + = + ITextViewerConfiguration target; = + = + public TextViewerConfigurationDelegate(ITextViewerConfiguration config) { + this.target =3D config; + } + + protected IContentAssistProcessor[] getContentAssistProcessors(ISource= Viewer sourceViewer, String partitionType) { + SortingCompoundContentAssistProcessor sortingCompoundProcessor =3D new S= ortingCompoundContentAssistProcessor(sourceViewer, partitionType); + = + if (sortingCompoundProcessor.supportsPartitionType(partitionType)) { + // Add the default WTP CA processors to our SortingCompoundContentAssis= tProcessor + IContentAssistProcessor[] superProcessors =3D target.getContentAssistPr= ocessorsForPartitionType(sourceViewer, partitionType); + + if (superProcessors !=3D null && superProcessors.length > 0) { + for (int i =3D 0; i < superProcessors.length; i++) + sortingCompoundProcessor.addContentAssistProcessor(partitionType, sup= erProcessors[i]); + } + + return new IContentAssistProcessor[] {sortingCompoundProcessor}; + } + + = + return new IContentAssistProcessor[0]; + } = + = + /* + * @see org.eclipse.jface.text.source.SourceViewerConfiguration#getHyperl= inkDetectors(org.eclipse.jface.text.source.ISourceViewer) + * @since 3.1 + */ + public IHyperlinkDetector[] getHyperlinkDetectors(ISourceViewer sourceVie= wer, boolean enabled) { + IHyperlinkDetector[] result =3D ITextViewerConfiguration.NO_CA_DETECTORS; + if (enabled) { + List allDetectors =3D new ArrayList(0); + = + IHyperlinkDetector extHyperlinkDetector =3D HyperlinkDetector.getInstan= ce(); = + = + if (extHyperlinkDetector !=3D null) allDetectors.add(extHyperlinkDetect= or); + = + /* IHyperlinkDetector[] superDetectors =3D super.getHyperlinkDetectors(s= ourceViewer); + for (int m =3D 0; m < superDetectors.length; m++) { + IHyperlinkDetector detector =3D superDetectors[m]; + if (!allDetectors.contains(detector)) { + allDetectors.add(detector); + } + } + */ + result =3D allDetectors.toArray(new IHyperlinkDetector[0]); + } + return result; + } + = +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jbos= s/tools/jst/jsp/TextViewerConfigurationDelegate.java ___________________________________________________________________ Name: svn:mime-type + text/plain --===============0497009067583383463==-- From jbosstools-commits at lists.jboss.org Wed Sep 30 03:46:47 2009 Content-Type: multipart/mixed; boundary="===============7415014529658575384==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17811 - in trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink: xpl and 1 other directory. Date: Wed, 30 Sep 2009 03:46:47 -0400 Message-ID: <200909300746.n8U7klNo003375@svn01.web.mwc.hst.phx2.redhat.com> --===============7415014529658575384== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-30 03:46:46 -0400 (Wed, 30 Sep 2009) New Revision: 17811 Modified: trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools= /common/text/ext/hyperlink/HyperlinkDetector.java trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools= /common/text/ext/hyperlink/xpl/BaseHyperlinkDetector.java Log: code cleanup = Modified: trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jbos= s/tools/common/text/ext/hyperlink/HyperlinkDetector.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/hyperlink/HyperlinkDetector.java 2009-09-29 20:19:58 UTC = (rev 17810) +++ trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/hyperlink/HyperlinkDetector.java 2009-09-30 07:46:46 UTC = (rev 17811) @@ -20,8 +20,18 @@ import org.jboss.tools.common.text.ext.util.AxisUtil; = public class HyperlinkDetector extends BaseHyperlinkDetector { + = + private static HyperlinkDetector fInstance; = - + /** + * returns singleton instance of HyperlinkDetector + * = + * @return HyperlinkDetector + */ + public static HyperlinkDetector getInstance() { + return HyperlinkDetectorHolder.INSTANCE; + } + = /** * Returns the partition types located at offset in the document * = @@ -73,4 +83,7 @@ return types.toArray(new String[types.size()]); } = + static class HyperlinkDetectorHolder { + static HyperlinkDetector INSTANCE =3D new HyperlinkDetector(); = + } } \ No newline at end of file Modified: trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jbos= s/tools/common/text/ext/hyperlink/xpl/BaseHyperlinkDetector.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/hyperlink/xpl/BaseHyperlinkDetector.java 2009-09-29 20:19= :58 UTC (rev 17810) +++ trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tool= s/common/text/ext/hyperlink/xpl/BaseHyperlinkDetector.java 2009-09-30 07:46= :46 UTC (rev 17811) @@ -23,26 +23,12 @@ import org.eclipse.wst.sse.core.internal.provisional.IModelManager; import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel; import org.eclipse.wst.sse.core.internal.provisional.StructuredModelManage= r; -import org.eclipse.wst.sse.ui.internal.StructuredTextViewer; import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlink; import org.jboss.tools.common.text.ext.hyperlink.HyperlinkBuilder; import org.jboss.tools.common.text.ext.hyperlink.HyperlinkDetector; = public class BaseHyperlinkDetector implements IHyperlinkDetector{ - private static HyperlinkDetector fInstance; = - /** - * returns singleton instance of HyperlinkDetector - * = - * @return HyperlinkDetector - */ - public synchronized static HyperlinkDetector getInstance() { - if (fInstance =3D=3D null) { - fInstance =3D new HyperlinkDetector(); - } - return fInstance; - } - public IHyperlink[] getHyperlinks(ITextViewer textViewer, IRegion region)= { IHyperlink[] hyperlinks =3D null; = --===============7415014529658575384==-- From jbosstools-commits at lists.jboss.org Wed Sep 30 06:09:06 2009 Content-Type: multipart/mixed; boundary="===============0344529243917532173==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17812 - in trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css: properties and 1 other directories. Date: Wed, 30 Sep 2009 06:09:05 -0400 Message-ID: <200909301009.n8UA95Cc025930@svn01.web.mwc.hst.phx2.redhat.com> --===============0344529243917532173== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: sdzmitrovich Date: 2009-09-30 06:09:05 -0400 (Wed, 30 Sep 2009) New Revision: 17812 Added: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/StyleElementRuleContainer.java Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/co= mmon/CSSStyleManager.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/pr= operties/CSSPropertyPage.java trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/vi= ew/CSSEditorView.java Log: https://jira.jboss.org/jira/browse/JBIDE-4951 Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/common/CSSStyleManager.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleManager.java 2009-09-30 07:46:46 UTC (rev 17811) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/CSSStyleManager.java 2009-09-30 10:09:05 UTC (rev 17812) @@ -99,7 +99,7 @@ CSSStyleRule styleRule =3D getStyleRule(node); = if (styleRule !=3D null) { - container =3D new CSSStyleRuleContainer(styleRule); + container =3D new StyleElementRuleContainer(styleText, styleRule); } } } Added: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/cs= s/common/StyleElementRuleContainer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/StyleElementRuleContainer.java (rev 0) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/c= ommon/StyleElementRuleContainer.java 2009-09-30 10:09:05 UTC (rev 17812) @@ -0,0 +1,33 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jst.css.common; + +import org.w3c.dom.Node; +import org.w3c.dom.css.CSSStyleRule; + +/** + * @author Sergey Dzmitrovich + * = + */ +public class StyleElementRuleContainer extends CSSStyleRuleContainer { + + private Node styleNode; + + public StyleElementRuleContainer(Node styleNode, CSSStyleRule styleRule) { + super(styleRule); + this.styleNode =3D styleNode; + } + + public Object getStyleObject() { + return styleNode; + } + +} Property changes on: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jbos= s/tools/jst/css/common/StyleElementRuleContainer.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + native Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/properties/CSSPropertyPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/p= roperties/CSSPropertyPage.java 2009-09-30 07:46:46 UTC (rev 17811) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/p= roperties/CSSPropertyPage.java 2009-09-30 10:09:05 UTC (rev 17812) @@ -124,14 +124,8 @@ .getStyleProperties()); } = - notifySelectionChanged(getCurrentSelection()); - } = - protected void notifySelectionChanged(ISelection selection) { - part.postSelectionChanged(new SelectionChangedEvent(part - .getSelectionProvider(), selection)); - } = /** * = Modified: trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst= /css/view/CSSEditorView.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/v= iew/CSSEditorView.java 2009-09-30 07:46:46 UTC (rev 17811) +++ trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/v= iew/CSSEditorView.java 2009-09-30 10:09:05 UTC (rev 17812) @@ -93,10 +93,6 @@ return super.getSelectionProvider(); } = - public void postSelectionChanged(SelectionChangedEvent event) { - getSelectionProvider().postSelectionChanged(event); - } - @Override public Object getAdapter(Class key) { if (key =3D=3D IContributedContentsView.class) { --===============0344529243917532173==-- From jbosstools-commits at lists.jboss.org Wed Sep 30 07:41:38 2009 Content-Type: multipart/mixed; boundary="===============7663602571551588212==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17813 - in trunk: vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/editor/mozilla/icons and 6 other directories. Date: Wed, 30 Sep 2009 07:41:38 -0400 Message-ID: <200909301141.n8UBfceJ015463@svn01.web.mwc.hst.phx2.redhat.com> --===============7663602571551588212== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dmaliarevich Date: 2009-09-30 07:41:36 -0400 (Wed, 30 Sep 2009) New Revision: 17813 Added: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/edit= or/mozilla/icons/bundle-as-el-hide.gif trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/edit= or/mozilla/icons/bundle-as-el-show.gif trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/edit= or/mozilla/icons/non-visusal-tags-hide.gif trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/edit= or/mozilla/icons/non-visusal-tags-show.gif trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/edit= or/mozilla/icons/selbar-hide.gif trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/edit= or/mozilla/icons/selbar-show.gif trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/edit= or/mozilla/icons/text-formatting-hide.gif trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/edit= or/mozilla/icons/text-formatting-show.gif trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/edit= or/mozilla/icons/visual_left.gif trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/edit= or/mozilla/icons/visual_top.gif Removed: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/edit= or/mozilla/icons/source_bottom.gif trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/edit= or/mozilla/icons/source_right.gif Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/pr= eferences/IVpePreferencesPage.java trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/pr= eferences/VpePreferencesInitializer.java trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/edit= or/mozilla/icons/source_left.gif trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/edit= or/mozilla/icons/source_top.gif trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vpe= EditorPart.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/bun= dle/BundleMap.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/moz= illa/MozillaEditor.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/pre= ferences/VpePreferencesPage.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/too= lbar/IVpeToolBarManager.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/too= lbar/VpeToolBarManager.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/V= peUIMessages.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/m= essages.properties Log: https://jira.jboss.org/jira/browse/JBIDE-4914, VPE toolbar icons were creat= ed instead of drop down menu. Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/preferences/IVpePreferencesPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/p= references/IVpePreferencesPage.java 2009-09-30 10:09:05 UTC (rev 17812) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/p= references/IVpePreferencesPage.java 2009-09-30 11:41:36 UTC (rev 17813) @@ -15,6 +15,7 @@ static final String SHOW_BORDER_FOR_UNKNOWN_TAGS =3D "Show Border for Unk= nown Tags"; //$NON-NLS-1$ static final String SHOW_NON_VISUAL_TAGS =3D "Show non-visual tags"; //$N= ON-NLS-1$ static final String SHOW_SELECTION_TAG_BAR =3D "Show Selection Tag Bar"; = //$NON-NLS-1$ + static final String SHOW_TEXT_FORMATTING =3D "Show Text Formatting bar"; = //$NON-NLS-1$ static final String SHOW_RESOURCE_BUNDLES_USAGE_AS_EL =3D "Show Resource = Bundles Usage as EL Expressions"; //$NON-NLS-1$ static final String ASK_TAG_ATTRIBUTES_ON_TAG_INSERT =3D "Ask for tag att= ributes during tag insert"; //$NON-NLS-1$ static final String ASK_CONFIRMATION_ON_CLOSING_SELECTION_BAR =3D "Ask fo= r confirmation when closing Selection Bar"; //$NON-NLS-1$ Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst= /jsp/preferences/VpePreferencesInitializer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/p= references/VpePreferencesInitializer.java 2009-09-30 10:09:05 UTC (rev 1781= 2) +++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/p= references/VpePreferencesInitializer.java 2009-09-30 11:41:36 UTC (rev 1781= 3) @@ -24,7 +24,8 @@ = defaultPreferences.putBoolean(IVpePreferencesPage.SHOW_BORDER_FOR_UNKNOW= N_TAGS, false); defaultPreferences.putBoolean(IVpePreferencesPage.SHOW_NON_VISUAL_TAGS, = false); - defaultPreferences.putBoolean(IVpePreferencesPage.SHOW_SELECTION_TAG_BAR= , false); + defaultPreferences.putBoolean(IVpePreferencesPage.SHOW_SELECTION_TAG_BAR= , true); + defaultPreferences.putBoolean(IVpePreferencesPage.SHOW_TEXT_FORMATTING, = true); defaultPreferences.putBoolean(IVpePreferencesPage.SHOW_RESOURCE_BUNDLES_= USAGE_AS_EL, false); defaultPreferences.putBoolean(IVpePreferencesPage.ASK_TAG_ATTRIBUTES_ON_= TAG_INSERT, true); defaultPreferences.putBoolean(IVpePreferencesPage.ASK_CONFIRMATION_ON_CL= OSING_SELECTION_BAR, true); Added: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/= editor/mozilla/icons/bundle-as-el-hide.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jb= oss/tools/vpe/editor/mozilla/icons/bundle-as-el-hide.gif ___________________________________________________________________ Name: svn:mime-type + image/gif Added: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/= editor/mozilla/icons/bundle-as-el-show.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jb= oss/tools/vpe/editor/mozilla/icons/bundle-as-el-show.gif ___________________________________________________________________ Name: svn:mime-type + image/gif Added: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/= editor/mozilla/icons/non-visusal-tags-hide.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jb= oss/tools/vpe/editor/mozilla/icons/non-visusal-tags-hide.gif ___________________________________________________________________ Name: svn:mime-type + image/gif Added: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/= editor/mozilla/icons/non-visusal-tags-show.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jb= oss/tools/vpe/editor/mozilla/icons/non-visusal-tags-show.gif ___________________________________________________________________ Name: svn:mime-type + image/gif Added: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/= editor/mozilla/icons/selbar-hide.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jb= oss/tools/vpe/editor/mozilla/icons/selbar-hide.gif ___________________________________________________________________ Name: svn:mime-type + image/gif Added: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/= editor/mozilla/icons/selbar-show.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jb= oss/tools/vpe/editor/mozilla/icons/selbar-show.gif ___________________________________________________________________ Name: svn:mime-type + image/gif Deleted: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vp= e/editor/mozilla/icons/source_bottom.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/v= pe/editor/mozilla/icons/source_left.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Deleted: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vp= e/editor/mozilla/icons/source_right.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/v= pe/editor/mozilla/icons/source_top.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Added: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/= editor/mozilla/icons/text-formatting-hide.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jb= oss/tools/vpe/editor/mozilla/icons/text-formatting-hide.gif ___________________________________________________________________ Name: svn:mime-type + image/gif Added: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/= editor/mozilla/icons/text-formatting-show.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jb= oss/tools/vpe/editor/mozilla/icons/text-formatting-show.gif ___________________________________________________________________ Name: svn:mime-type + image/gif Added: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/= editor/mozilla/icons/visual_left.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jb= oss/tools/vpe/editor/mozilla/icons/visual_left.gif ___________________________________________________________________ Name: svn:mime-type + image/gif Added: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jboss/tools/vpe/= editor/mozilla/icons/visual_top.gif =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/vpe/plugins/org.jboss.tools.vpe/resources/org/jb= oss/tools/vpe/editor/mozilla/icons/visual_top.gif ___________________________________________________________________ Name: svn:mime-type + image/gif Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/VpeEditorPart.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eEditorPart.java 2009-09-30 10:09:05 UTC (rev 17812) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eEditorPart.java 2009-09-30 11:41:36 UTC (rev 17813) @@ -898,7 +898,6 @@ VpeEditorPart.this)); selectionBar.setVpeController(visualEditor.getController()); visualEditor.getController().setSelectionBarController(selectionBar); - createShowSelectionBarMenuItem(); visualEditor.getController().init(sourceEditor, visualEditor); } }); @@ -907,36 +906,6 @@ visualEditor.createPartControl(visualContent); } = - /** - * Creates new MenuItem in VPE drop-down menu. This menu item provides = - * option to show/hide selection bar. - */ - private void createShowSelectionBarMenuItem() { - final MenuItem selectionBarVisibilityMenuItem =3D = - new MenuItem(visualEditor.getDropDownMenu().getDropDownMenu(), SWT.PUS= H); - - selectionBarVisibilityMenuItem.setText(selectionBar.isVisible() = - ? VpeUIMessages.HIDE_SELECTION_BAR - : VpeUIMessages.SHOW_SELECTION_BAR); - - // add menu item listener - selectionBarVisibilityMenuItem.addSelectionListener(new SelectionAdapter= () { - public void widgetSelected(SelectionEvent e) { - boolean selectionBarVisible =3D !selectionBar.isVisible(); - selectionBar.setAlwaysVisibleOption(selectionBarVisible); - selectionBar.setVisible(selectionBarVisible); - } - }); - // add selection bar listener - selectionBar.addVisibilityListener(new VisibilityListener() { - public void visibilityChanged(VisibilityEvent event) { - selectionBarVisibilityMenuItem.setText(event.getSource().isVisible() = - ? VpeUIMessages.HIDE_SELECTION_BAR - : VpeUIMessages.SHOW_SELECTION_BAR); = - } - }); - } - public void createPreviewBrowser() { previewWebBrowser =3D new MozillaPreview(this, sourceEditor); try { @@ -1190,6 +1159,10 @@ * has been pressed. */ public void updatePartAccordingToPreferences() { + /* + * Update MozillaEditor's toolbar items + */ + visualEditor.setDefaultToolBarItems(); /* * When switching from Source view to Visual/Source * controller could be null. @@ -1204,4 +1177,13 @@ } } = + public void updateSelectionBar(boolean isSelectionBarVisible) { + if (selectionBar !=3D null) { + selectionBar.setAlwaysVisibleOption(isSelectionBarVisible); + selectionBar.setVisible(isSelectionBarVisible); + } else { + VpePlugin.getDefault().logError("VPE Selection Bar is not initialized."= ); + } + } + = } Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/bundle/BundleMap.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/bu= ndle/BundleMap.java 2009-09-30 10:09:05 UTC (rev 17812) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/bu= ndle/BundleMap.java 2009-09-30 11:41:36 UTC (rev 17813) @@ -358,7 +358,9 @@ } = public String getBundleValue(String name){ - if(isShowBundleUsageAsEL) return name; + if(isShowBundleUsageAsEL) { + return name; + } List is =3D parseJSFExpression(name); if(is =3D=3D null) return null; StringBuffer sb =3D new StringBuffer(); @@ -463,14 +465,16 @@ } } = - public void updateShowBundleUsageAsEL() { - boolean b =3D JspEditorPlugin.getDefault().getPreferenceStore().getBoole= an( - IVpePreferencesPage.SHOW_RESOURCE_BUNDLES_USAGE_AS_EL); - if(isShowBundleUsageAsEL !=3D b) { - isShowBundleUsageAsEL =3D b; + public void updateShowBundleUsageAsEL(boolean showBundlesAsEL) { + if(isShowBundleUsageAsEL !=3D showBundlesAsEL) { + isShowBundleUsageAsEL =3D showBundlesAsEL; refresh(); } = } + public void updateShowBundleUsageAsEL() { + updateShowBundleUsageAsEL(JspEditorPlugin.getDefault().getPreferenceStor= e().getBoolean( + IVpePreferencesPage.SHOW_RESOURCE_BUNDLES_USAGE_AS_EL)); + } = static class Expression { public String prefix; Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/mozilla/MozillaEditor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mo= zilla/MozillaEditor.java 2009-09-30 10:09:05 UTC (rev 17812) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mo= zilla/MozillaEditor.java 2009-09-30 11:41:36 UTC (rev 17813) @@ -32,16 +32,11 @@ import org.eclipse.swt.browser.ProgressEvent; import org.eclipse.swt.browser.ProgressListener; import org.eclipse.swt.custom.BusyIndicator; -import org.eclipse.swt.custom.ScrolledComposite; import org.eclipse.swt.events.DisposeEvent; import org.eclipse.swt.events.DisposeListener; import org.eclipse.swt.events.MouseEvent; import org.eclipse.swt.events.MouseListener; -import org.eclipse.swt.events.SelectionAdapter; -import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.graphics.Color; -import org.eclipse.swt.graphics.Point; -import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Composite; @@ -50,8 +45,6 @@ import org.eclipse.swt.widgets.Link; import org.eclipse.swt.widgets.Listener; import org.eclipse.swt.widgets.Menu; -import org.eclipse.swt.widgets.MenuItem; -import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.ToolBar; import org.eclipse.swt.widgets.ToolItem; import org.eclipse.ui.IEditorInput; @@ -74,12 +67,10 @@ import org.jboss.tools.vpe.editor.toolbar.VpeToolBarManager; import org.jboss.tools.vpe.editor.toolbar.format.FormatControllerManager; import org.jboss.tools.vpe.editor.toolbar.format.TextFormattingToolBar; -import org.jboss.tools.vpe.editor.util.Constants; import org.jboss.tools.vpe.editor.util.DocTypeUtil; import org.jboss.tools.vpe.editor.util.FileUtil; import org.jboss.tools.vpe.editor.util.HTML; import org.jboss.tools.vpe.messages.VpeUIMessages; -import org.jboss.tools.vpe.resref.core.ReferenceWizard; import org.jboss.tools.vpe.resref.core.VpeResourcesDialog; import org.jboss.tools.vpe.xulrunner.XPCOM; import org.jboss.tools.vpe.xulrunner.editor.XulRunnerEditor; @@ -111,9 +102,17 @@ public static final String ICON_PAGE_DESIGN_OPTIONS_DISABLED =3D "icons/p= oint_to_css_disabled.gif"; //$NON-NLS-1$ public static final String ICON_ORIENTATION_SOURCE_LEFT =3D "icons/source= _left.gif"; //$NON-NLS-1$ public static final String ICON_ORIENTATION_SOURCE_TOP =3D "icons/source_= top.gif"; //$NON-NLS-1$ - public static final String ICON_ORIENTATION_SOURCE_RIGHT =3D "icons/sourc= e_right.gif"; //$NON-NLS-1$ - public static final String ICON_ORIENTATION_SOURCE_BOTTOM =3D "icons/sour= ce_bottom.gif"; //$NON-NLS-1$ + public static final String ICON_ORIENTATION_VISUAL_LEFT =3D "icons/visual= _left.gif"; //$NON-NLS-1$ + public static final String ICON_ORIENTATION_VISUAI_TOP =3D "icons/visual_= top.gif"; //$NON-NLS-1$ public static final String ICON_ORIENTATION_SOURCE_LEFT_DISABLED =3D "ico= ns/source_left_disabled.gif"; //$NON-NLS-1$ + public static final String ICON_NON_VISUAL_TAGS_SHOW =3D "icons/non-visus= al-tags-show.gif"; //$NON-NLS-1$ + public static final String ICON_NON_VISUAL_TAGS_HIDE =3D "icons/non-visus= al-tags-hide.gif"; //$NON-NLS-1$ + public static final String ICON_SELECTION_BAR_SHOW =3D "icons/selbar-show= .gif"; //$NON-NLS-1$ + public static final String ICON_SELECTION_BAR_HIDE =3D "icons/selbar-hide= .gif"; //$NON-NLS-1$ + public static final String ICON_TEXT_FORMATTING_SHOW =3D "icons/text-form= atting-show.gif"; //$NON-NLS-1$ + public static final String ICON_TEXT_FORMATTING_HIDE =3D "icons/text-form= atting-hide.gif"; //$NON-NLS-1$ + public static final String ICON_BUNDLE_AS_EL_SHOW =3D "icons/bundle-as-el= -show.gif"; //$NON-NLS-1$ + public static final String ICON_BUNDLE_AS_EL_HIDE =3D "icons/bundle-as-el= -hide.gif"; //$NON-NLS-1$ = static String SELECT_BAR =3D "SELECT_LBAR"; //$NON-NLS-1$ private XulRunnerEditor xulRunnerEditor; @@ -135,12 +134,27 @@ private static Map layoutNames; private static List layoutValues; private int currentOrientationIndex =3D 1; + private ToolItem rotateEditorsItem; + private ToolItem showNonVisualTagsItem; + private ToolItem showSelectionBarItem; + private ToolItem showBundlesAsELItem; + private ToolItem showTextFormattingItem; + private boolean showNonVisualTags =3D false; + private boolean showSelectionBar =3D true; + private boolean showTextFormatting =3D true; + private boolean showBundlesAsEL =3D false; + = static { + /* + * Values from layoutValues should correspond to the order + * when increasing the index of the array will cause = + * the source editor rotation = + */ layoutIcons =3D new HashMap(); layoutIcons.put(IVpePreferencesPage.SPLITTING_HORIZ_LEFT_SOURCE_VALUE= , ICON_ORIENTATION_SOURCE_LEFT); layoutIcons.put(IVpePreferencesPage.SPLITTING_VERT_TOP_SOURCE_VALUE, = ICON_ORIENTATION_SOURCE_TOP); - layoutIcons.put(IVpePreferencesPage.SPLITTING_HORIZ_LEFT_VISUAL_VALUE= , ICON_ORIENTATION_SOURCE_RIGHT); - layoutIcons.put(IVpePreferencesPage.SPLITTING_VERT_TOP_VISUAL_VALUE, = ICON_ORIENTATION_SOURCE_BOTTOM); + layoutIcons.put(IVpePreferencesPage.SPLITTING_HORIZ_LEFT_VISUAL_VALUE= , ICON_ORIENTATION_VISUAL_LEFT); + layoutIcons.put(IVpePreferencesPage.SPLITTING_VERT_TOP_VISUAL_VALUE, = ICON_ORIENTATION_VISUAI_TOP); = layoutNames =3D new HashMap(); layoutNames.put(IVpePreferencesPage.SPLITTING_HORIZ_LEFT_SOURCE_VALUE= , VpeUIMessages.SPLITTING_HORIZ_LEFT_SOURCE); @@ -263,46 +277,25 @@ }); = /* - * https://jira.jboss.org/jira/browse/JBIDE-4152 - * Compute initial icon state and add it to the tool bar. + * Create ROTATE EDITORS tool bar icon */ - currentOrientationIndex =3D layoutValues.indexOf(JspEditorPlugin - .getDefault().getPreferenceStore().getString( - IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING)); - int newIndx =3D currentOrientationIndex+1; - if (newIndx =3D=3D layoutValues.size()) { - newIndx =3D newIndx % layoutValues.size(); - } - String newOrientation =3D layoutValues.get(newIndx); - - final ToolItem rotateEditorsItem =3D createToolItem(verBar, SWT.BUTTON1, - layoutIcons.get(newOrientation), - ICON_ORIENTATION_SOURCE_LEFT_DISABLED, = - layoutNames.get(newOrientation), true); + createRotateEditorsItem(verBar); = - rotateEditorsItem.addListener(SWT.Selection, new Listener() { - public void handleEvent(Event event) { - /* - * Rotate editors orientation clockwise. Store this new - * orientation to the preferences. - */ - currentOrientationIndex++; - if (currentOrientationIndex =3D=3D layoutValues.size()) { - currentOrientationIndex =3D currentOrientationIndex % layoutValues.si= ze(); - } - String newOrientation =3D layoutValues.get(currentOrientationIndex); - rotateEditorsItem.setImage(ImageDescriptor.createFromFile( - MozillaEditor.class, layoutIcons.get(newOrientation)) - .createImage()); - rotateEditorsItem.setToolTipText(layoutNames.get(newOrientation)); - /* - * Call filContainer() from VpeEditorPart - * to redraw CustomSashForm with new layout. - */ - getController().getPageContext().getEditPart().fillContainer(true, new= Orientation); - } - }); + /* + * Create SHOW INVISIBLE TAGS tool bar icon + */ + createShowNonVisualTagsItem(verBar); = + /* + * Create SHOW SELECTION BAR tool bar icon + */ + createShowSelectionBarItem(verBar); + = + /* + * Create SHOW BUNDLE'S MESSAGES AS EL tool bar icon + */ + createShowBundlesAsELItem(verBar); + = verBar.pack(); return verBar; } @@ -352,53 +345,19 @@ * and only after that MozillaEditor should be created itself. = */ if (null !=3D verBar) { - dropDownMenu =3D new VpeDropDownMenu(verBar, VpeUIMessages.MENU); = - // add Invisible tags support to menu - // create menu item - MenuItem menuItem =3D new MenuItem(dropDownMenu.getDropDownMenu(), SWT.= PUSH); - // get default value of flag - boolean showInvisibleTags =3D JspEditorPlugin.getDefault().getPreferenc= eStore().getBoolean( - IVpePreferencesPage.SHOW_NON_VISUAL_TAGS); - = - // set text - menuItem.setText(showInvisibleTags ? VpeUIMessages.HIDE_NON_VISUAL_TAGS - : VpeUIMessages.SHOW_NON_VISUAL_TAGS); - = - // add listener - menuItem.addSelectionListener(new SelectionAdapter() { - @Override - public void widgetSelected(SelectionEvent e) { - MenuItem selectedItem =3D (MenuItem) e.widget; - = - // get current value of flag - boolean showInvisibleTags =3D !controller.getVisualBuilder() - .isShowInvisibleTags(); - = - // change text - selectedItem - .setText((showInvisibleTags ? VpeUIMessages.HIDE - : VpeUIMessages.SHOW) - + Constants.WHITE_SPACE - + VpeUIMessages.NON_VISUAL_TAGS); - = - // change flag - controller.getVisualBuilder().setShowInvisibleTags( - showInvisibleTags); - // update vpe - controller.visualRefresh(); - } - }); // Use vpeToolBarManager to create a horizontal toolbar. - vpeToolBarManager =3D new VpeToolBarManager(dropDownMenu - .getDropDownMenu()); + vpeToolBarManager =3D new VpeToolBarManager(); if (vpeToolBarManager !=3D null) { vpeToolBarManager.createToolBarComposite(cmpEdTl); vpeToolBarManager.addToolBar(new TextFormattingToolBar(formatControlle= rManager)); + = + /* + * Create SHOW TEXT FORMATTING tool bar icon + */ + createShowTextFormattingItem(verBar); } } = - = - = //Create a composite to the Editor Composite cmpEd =3D new Composite (cmpEdTl, SWT.NATIVE); GridLayout layoutEd =3D new GridLayout(1, false); @@ -987,4 +946,228 @@ public VpeDropDownMenu getDropDownMenu() { return dropDownMenu; } + = + private void createShowNonVisualTagsItem(ToolBar parent) { + showNonVisualTags =3D JspEditorPlugin.getDefault().getPreferenceStore().= getBoolean( + IVpePreferencesPage.SHOW_NON_VISUAL_TAGS); + showNonVisualTagsItem =3D createToolItem(parent, SWT.BUTTON1, + showNonVisualTags ? ICON_NON_VISUAL_TAGS_SHOW + : ICON_NON_VISUAL_TAGS_HIDE, "", //$NON-NLS-1$ + showNonVisualTags ? VpeUIMessages.SHOW_NON_VISUAL_TAGS + : VpeUIMessages.HIDE_NON_VISUAL_TAGS, true); + showNonVisualTagsItem.addListener(SWT.Selection, new Listener() { + public void handleEvent(Event event) { + /* + * Switch the value + */ + showNonVisualTags =3D !showNonVisualTags; + = + /* + * Update icon and tooltip + */ + updateShowNonVisualTagsItem(showNonVisualTags); + /* + * Change flag + */ + controller.getVisualBuilder().setShowInvisibleTags( + showNonVisualTags); + /* + * Update VPE + */ + controller.visualRefresh(); + } + }); + } + = + private void updateShowNonVisualTagsItem(boolean showInvisibleTags) { + showNonVisualTagsItem.setImage(ImageDescriptor.createFromFile( + MozillaEditor.class, + showInvisibleTags ? ICON_NON_VISUAL_TAGS_SHOW + : ICON_NON_VISUAL_TAGS_HIDE).createImage()); + showNonVisualTagsItem.setToolTipText(showInvisibleTags ? VpeUIMessages.S= HOW_NON_VISUAL_TAGS + : VpeUIMessages.HIDE_NON_VISUAL_TAGS); + } + = + private void createShowSelectionBarItem(ToolBar parent) { + showSelectionBar =3D JspEditorPlugin.getDefault().getPreferenceStore().g= etBoolean( + IVpePreferencesPage.SHOW_SELECTION_TAG_BAR); + showSelectionBarItem =3D createToolItem(parent, SWT.BUTTON1, = + showSelectionBar ? ICON_SELECTION_BAR_SHOW + : ICON_SELECTION_BAR_HIDE, "", //$NON-NLS-1$ + showSelectionBar ? VpeUIMessages.SHOW_SELECTION_BAR + : VpeUIMessages.HIDE_SELECTION_BAR, true); + showSelectionBarItem.addListener(SWT.Selection, new Listener() { + public void handleEvent(Event event) { + /* + * Switch the value + */ + showSelectionBar =3D !showSelectionBar; + /* + * Update icon and tooltip + */ + updateShowSelectionBarItem(showSelectionBar); + = + /* + * Update Selection Bar = + */ + controller.getPageContext().getEditPart().updateSelectionBar(showSelec= tionBar); + } + }); + } + = + private void updateShowSelectionBarItem(boolean showSelectionBar) { + showSelectionBarItem.setImage(ImageDescriptor.createFromFile( + MozillaEditor.class, + showSelectionBar ? ICON_SELECTION_BAR_SHOW + : ICON_SELECTION_BAR_HIDE).createImage()); + showSelectionBarItem + .setToolTipText(showSelectionBar ? VpeUIMessages.SHOW_SELECTION_BAR + : VpeUIMessages.HIDE_SELECTION_BAR); + } + = + private void createShowBundlesAsELItem(ToolBar parent) { + showBundlesAsEL =3D JspEditorPlugin.getDefault().getPreferenceStore().ge= tBoolean( + IVpePreferencesPage.SHOW_RESOURCE_BUNDLES_USAGE_AS_EL); + showBundlesAsELItem =3D createToolItem(parent, SWT.BUTTON1, + showBundlesAsEL ? ICON_BUNDLE_AS_EL_SHOW + : ICON_BUNDLE_AS_EL_HIDE, "", //$NON-NLS-1$ + showBundlesAsEL ? VpeUIMessages.SHOW_BUNDLES_AS_EL + : VpeUIMessages.SHOW_BUNDLES_AS_MESSAGES, true); + showBundlesAsELItem.addListener(SWT.Selection, new Listener() { + public void handleEvent(Event event) { + /* + * Switch the value + */ + showBundlesAsEL =3D !showBundlesAsEL; + /* + * Update icon and tooltip + */ + updateShowBundlesAsELItem(showBundlesAsEL); + = + /* + * Update bundle messages. = + */ + controller.getPageContext().getBundle().updateShowBundleUsageAsEL(show= BundlesAsEL); + controller.visualRefresh(); + } + }); + } + = + private void updateShowBundlesAsELItem(boolean showBundlesAsEL) { + showBundlesAsELItem.setImage(ImageDescriptor.createFromFile( + MozillaEditor.class, + showBundlesAsEL ? ICON_BUNDLE_AS_EL_SHOW + : ICON_BUNDLE_AS_EL_HIDE).createImage()); + showBundlesAsELItem + .setToolTipText(showBundlesAsEL ? VpeUIMessages.SHOW_BUNDLES_AS_EL + : VpeUIMessages.SHOW_BUNDLES_AS_MESSAGES); + } + = + private void createShowTextFormattingItem(ToolBar parent) { + showTextFormatting =3D JspEditorPlugin.getDefault().getPreferenceStore()= .getBoolean( + IVpePreferencesPage.SHOW_TEXT_FORMATTING); + showTextFormattingItem =3D createToolItem(parent, + SWT.BUTTON1, + showTextFormatting ? ICON_TEXT_FORMATTING_SHOW + : ICON_TEXT_FORMATTING_HIDE, "", //$NON-NLS-1$ + showTextFormatting ? VpeUIMessages.SHOW_TEXT_FORMATTING + : VpeUIMessages.HIDE_TEXT_FORMATTING, true); + showTextFormattingItem.addListener(SWT.Selection, new Listener() { + public void handleEvent(Event event) { + /* + * Switch the value + */ + showTextFormatting =3D !showTextFormatting; + = + /* + * Update icon and tooltip + */ + updateShowTextFormattingItem(showTextFormatting); + = + /* + * Update Text Formatting Bar = + */ + vpeToolBarManager.setToolbarVisibility(showTextFormatting); + } + }); + } + = + private void updateShowTextFormattingItem(boolean showTextFormatting) { + showTextFormattingItem.setImage(ImageDescriptor.createFromFile( + MozillaEditor.class, + showTextFormatting ? ICON_TEXT_FORMATTING_SHOW + : ICON_TEXT_FORMATTING_HIDE).createImage()); + showTextFormattingItem + .setToolTipText(showTextFormatting ? VpeUIMessages.SHOW_TEXT_FORMATTING + : VpeUIMessages.HIDE_TEXT_FORMATTING); + } + = + private void createRotateEditorsItem(ToolBar parent) { + /* + * https://jira.jboss.org/jira/browse/JBIDE-4152 + * Compute initial icon state and add it to the tool bar. + */ + String newOrientation =3D JspEditorPlugin + .getDefault().getPreferenceStore().getString( + IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING); + currentOrientationIndex =3D layoutValues.indexOf(newOrientation); + rotateEditorsItem =3D createToolItem(parent, SWT.BUTTON1, + layoutIcons.get(newOrientation), + ICON_ORIENTATION_SOURCE_LEFT_DISABLED, = + layoutNames.get(newOrientation), true); + = + rotateEditorsItem.addListener(SWT.Selection, new Listener() { + public void handleEvent(Event event) { + /* + * Rotate editors orientation clockwise. + */ + currentOrientationIndex++; + if (currentOrientationIndex >=3D layoutValues.size()) { + currentOrientationIndex =3D currentOrientationIndex % layoutValues.si= ze(); + } + String newOrientation =3D layoutValues.get(currentOrientationIndex); + /* + * Update icon and tooltip + */ + updateRotateEditorsItem(newOrientation); + /* + * Call filContainer() from VpeEditorPart + * to redraw CustomSashForm with new layout. + */ + getController().getPageContext().getEditPart().fillContainer(true, new= Orientation); + } + }); + } + = + private void updateRotateEditorsItem(String newOrientation) { + rotateEditorsItem.setImage(ImageDescriptor.createFromFile( + MozillaEditor.class, layoutIcons.get(newOrientation)) + .createImage()); + rotateEditorsItem.setToolTipText(layoutNames.get(newOrientation)); + } + + public void setDefaultToolBarItems() { + String newOrientation =3D JspEditorPlugin + .getDefault().getPreferenceStore().getString( + IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING); + currentOrientationIndex =3D layoutValues.indexOf(newOrientation); + updateRotateEditorsItem(newOrientation); + = + showNonVisualTags =3D JspEditorPlugin.getDefault().getPreferenceStore() + .getBoolean(IVpePreferencesPage.SHOW_NON_VISUAL_TAGS); + updateShowNonVisualTagsItem(showNonVisualTags); + = + showSelectionBar =3D JspEditorPlugin.getDefault().getPreferenceStore() + .getBoolean(IVpePreferencesPage.SHOW_SELECTION_TAG_BAR); + updateShowSelectionBarItem(showSelectionBar); + = + showBundlesAsEL =3D JspEditorPlugin.getDefault().getPreferenceStore() + .getBoolean( + IVpePreferencesPage.SHOW_RESOURCE_BUNDLES_USAGE_AS_EL); + updateShowBundlesAsELItem(showBundlesAsEL); + = + showTextFormatting =3D JspEditorPlugin.getDefault().getPreferenceStore() + .getBoolean(IVpePreferencesPage.SHOW_TEXT_FORMATTING); + updateShowTextFormattingItem(showTextFormatting); + } } Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/preferences/VpePreferencesPage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/pr= eferences/VpePreferencesPage.java 2009-09-30 10:09:05 UTC (rev 17812) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/pr= eferences/VpePreferencesPage.java 2009-09-30 11:41:36 UTC (rev 17813) @@ -136,6 +136,8 @@ VpeUIMessages.SHOW_NON_VISUAL_TAGS, visualAppearanceGroup)); addField(new BooleanFieldEditor(SHOW_SELECTION_TAG_BAR, VpeUIMessages.SHOW_SELECTION_TAG_BAR, visualAppearanceGroup)); + addField(new BooleanFieldEditor(SHOW_TEXT_FORMATTING, + VpeUIMessages.SHOW_TEXT_FORMATTING, visualAppearanceGroup)); addField(new BooleanFieldEditor(SHOW_RESOURCE_BUNDLES_USAGE_AS_EL, VpeUIMessages.SHOW_RESOURCE_BUNDLES_USAGE_AS_EL, visualAppearanceGroup= )); addField(new BooleanFieldEditor(ASK_TAG_ATTRIBUTES_ON_TAG_INSERT, Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/toolbar/IVpeToolBarManager.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/to= olbar/IVpeToolBarManager.java 2009-09-30 10:09:05 UTC (rev 17812) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/to= olbar/IVpeToolBarManager.java 2009-09-30 11:41:36 UTC (rev 17813) @@ -35,5 +35,10 @@ */ public void addToolBar(IVpeToolBar bar); = + /* + * Sets the toolbar visibility + */ + void setToolbarVisibility(boolean isVisible); + = public void dispose(); } \ No newline at end of file Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/toolbar/VpeToolBarManager.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/to= olbar/VpeToolBarManager.java 2009-09-30 10:09:05 UTC (rev 17812) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/to= olbar/VpeToolBarManager.java 2009-09-30 11:41:36 UTC (rev 17813) @@ -10,12 +10,9 @@ *************************************************************************= *****/ package org.jboss.tools.vpe.editor.toolbar; = -import java.text.MessageFormat; = import org.eclipse.compare.Splitter; import org.eclipse.swt.SWT; -import org.eclipse.swt.events.SelectionAdapter; -import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.graphics.Point; import org.eclipse.swt.layout.FormAttachment; import org.eclipse.swt.layout.FormData; @@ -23,11 +20,9 @@ import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.Display; -import org.eclipse.swt.widgets.Menu; -import org.eclipse.swt.widgets.MenuItem; +import org.jboss.tools.jst.jsp.JspEditorPlugin; +import org.jboss.tools.jst.jsp.preferences.IVpePreferencesPage; import org.jboss.tools.vpe.VpePlugin; -import org.jboss.tools.vpe.messages.VpeUIMessages; = /** * @author Erick Created on 14.07.2005 @@ -36,17 +31,10 @@ public class VpeToolBarManager implements IVpeToolBarManager { = private Splitter splitter; + private Composite cmpToolBar; = - private Menu dropDownMenu; + public VpeToolBarManager() { } = - public static final String SHOW =3D "show"; //$NON-NLS-1$ - public static final String HIDE =3D "hide"; //$NON-NLS-1$ - - public VpeToolBarManager(Menu dropDownMenu) { - - this.dropDownMenu =3D dropDownMenu; - } - public Composite createToolBarComposite(Composite parent) { splitter =3D new Splitter(parent, SWT.NONE) { = @@ -71,7 +59,7 @@ = public void addToolBar(IVpeToolBar bar) { = - Composite cmpToolBar =3D new Composite(splitter, SWT.NONE); + cmpToolBar =3D new Composite(splitter, SWT.NONE); FormData data =3D new FormData(); data.left =3D new FormAttachment(0); data.right =3D new FormAttachment(100); @@ -93,43 +81,20 @@ ToolbarContainer toolbarContainer =3D new ToolbarContainer(cmpToolBar, b= ar); = // show or hide toolbar - setStateToolbar(cmpToolBar, isShowedToolbar(bar)); + setStateToolbar(cmpToolBar, JspEditorPlugin.getDefault().getPreferenceSt= ore().getBoolean( + IVpePreferencesPage.SHOW_TEXT_FORMATTING)); = - // create item to manage show/hide toolbar - attachToMenu(dropDownMenu, toolbarContainer); } = - /** - * create item to manage show/hide toolbar - * = - * @param menu - * @param toolbarContainer - */ - public void attachToMenu(Menu menu, ToolbarContainer toolbarContainer) { - MenuItem menuItem =3D new MenuItem(dropDownMenu, SWT.PUSH); - - boolean showToolbar =3D isShowedToolbar(toolbarContainer.getToolbar()); - - // set text to menu item - menuItem.setText( - MessageFormat.format((showToolbar ? VpeUIMessages.HIDE_TOOLBAR : VpeUI= Messages.SHOW_TOOLBAR), - toolbarContainer.getToolbar().getName())); - - // add listener - menuItem.addSelectionListener( - new ToolbarManagerSelectionListener(toolbarContainer, showToolbar)); + public void setToolbarVisibility(boolean isVisible) { + if (cmpToolBar !=3D null) { + setStateToolbar(cmpToolBar, isVisible); + } else { + VpePlugin.getDefault().logError("Toolbar control is not initialized."); + } } = /** - * = - * @param bar - * @return - */ - protected boolean isShowedToolbar(IVpeToolBar bar) { - return !HIDE.equalsIgnoreCase(getPreference(bar.getId())); - } - - /** * show/hide toolbar * = * @param toolBar @@ -145,73 +110,8 @@ splitter.dispose(); splitter =3D null; } - - for (MenuItem menuItem : dropDownMenu.getItems()) { - menuItem.dispose(); - } - } = - /** - * get preference by key - * = - * @param key - * @return - */ - private String getPreference(String key) { - - return VpePlugin.getDefault().getPreferenceStore().getString(key); - } - - /** - * set preference - * = - * @param key - * @param value - */ - private void setPreference(String key, String value) { - - VpePlugin.getDefault().getPreferenceStore().setValue(key, value); - } - - /** - * selection listener to manage toolbars - * = - * @author Sergey Dzmitrovich - * = - */ - private class ToolbarManagerSelectionListener extends SelectionAdapter { - - private ToolbarContainer toolbarContainer; - private boolean showBar; - - public ToolbarManagerSelectionListener( - ToolbarContainer toolbarContainer, boolean showBar) { - this.toolbarContainer =3D toolbarContainer; - this.showBar =3D showBar; - } - - @Override - public void widgetSelected(SelectionEvent e) { - MenuItem selectedItem =3D (MenuItem) e.widget; - - // change flag - showBar =3D !showBar; - - // set new value of preference = - setPreference(toolbarContainer.getToolbar().getId(), = - showBar ? SHOW : HIDE); - // change text - selectedItem.setText( - MessageFormat.format(showBar ? VpeUIMessages.HIDE_TOOLBAR = - : VpeUIMessages.SHOW_TOOLBAR, - toolbarContainer.getToolbar().getName()) - ); - // show or hide toolbar - setStateToolbar(toolbarContainer.getParent(), showBar); - } - } - /* * This class describe the container for toolbars */ Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/mes= sages/VpeUIMessages.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/= VpeUIMessages.java 2009-09-30 10:09:05 UTC (rev 17812) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/= VpeUIMessages.java 2009-09-30 11:41:36 UTC (rev 17813) @@ -118,7 +118,11 @@ public static String VPE_PREFERENCES_PAGE_DESCRIPTION; public static String SHOW_BORDER_FOR_UNKNOWN_TAGS; public static String SHOW_SELECTION_TAG_BAR; + public static String SHOW_TEXT_FORMATTING; + public static String HIDE_TEXT_FORMATTING; public static String SHOW_RESOURCE_BUNDLES_USAGE_AS_EL; + public static String SHOW_BUNDLES_AS_EL; + public static String SHOW_BUNDLES_AS_MESSAGES; public static String ASK_TAG_ATTRIBUTES_ON_TAG_INSERT; public static String ASK_CONFIRMATION_ON_CLOSING_SELECTION_BAR; public static String DEFAULT_VPE_TAB; Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/mes= sages/messages.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/= messages.properties 2009-09-30 10:09:05 UTC (rev 17812) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/= messages.properties 2009-09-30 11:41:36 UTC (rev 17813) @@ -98,7 +98,11 @@ VPE_PREFERENCES_PAGE_DESCRIPTION=3DVisual Page Editor settings SHOW_BORDER_FOR_UNKNOWN_TAGS=3DShow border for unknown tags SHOW_SELECTION_TAG_BAR=3DShow selection tag bar +SHOW_TEXT_FORMATTING =3D Show Text Formatting bar +HIDE_TEXT_FORMATTING =3D Hide Text Formatting bar SHOW_RESOURCE_BUNDLES_USAGE_AS_EL=3DShow resource bundles usage as EL expr= essions +SHOW_BUNDLES_AS_EL=3DShow bundle's messages as EL +SHOW_BUNDLES_AS_MESSAGES=3DShow bundle's messages explicitly ASK_TAG_ATTRIBUTES_ON_TAG_INSERT=3DAsk for tag attributes during tag insert ASK_CONFIRMATION_ON_CLOSING_SELECTION_BAR=3DAsk for confirmation when clos= ing Selection Bar DEFAULT_VPE_TAB=3DSelect the default active editor's tab for files that ha= ven't been previously opened in the VPE --===============7663602571551588212==-- From jbosstools-commits at lists.jboss.org Wed Sep 30 08:36:21 2009 Content-Type: multipart/mixed; boundary="===============8279042045852401262==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17814 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor. Date: Wed, 30 Sep 2009 08:36:21 -0400 Message-ID: <200909301236.n8UCaL2U028334@svn01.web.mwc.hst.phx2.redhat.com> --===============8279042045852401262== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-30 08:36:20 -0400 (Wed, 30 Sep 2009) New Revision: 17814 Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vpe= Controller.java Log: https://jira.jboss.org/jira/browse/JBIDE-4934 Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/VpeController.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eController.java 2009-09-30 11:41:36 UTC (rev 17813) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eController.java 2009-09-30 12:36:20 UTC (rev 17814) @@ -93,8 +93,8 @@ import org.jboss.tools.jst.jsp.jspeditor.dnd.JSPPaletteInsertHelper; import org.jboss.tools.jst.jsp.jspeditor.dnd.JSPTagProposalFactory; import org.jboss.tools.jst.jsp.preferences.VpePreference; -import org.jboss.tools.jst.web.tld.TLDUtil; import org.jboss.tools.jst.web.tld.URIConstants; +import org.jboss.tools.jst.web.tld.model.TLDUtil; import org.jboss.tools.vpe.VpeDebug; import org.jboss.tools.vpe.VpePlugin; import org.jboss.tools.vpe.dnd.DndUtil; --===============8279042045852401262==-- From jbosstools-commits at lists.jboss.org Wed Sep 30 08:46:08 2009 Content-Type: multipart/mixed; boundary="===============3247290608164505077==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17815 - in trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tld: model and 2 other directories. Date: Wed, 30 Sep 2009 08:46:08 -0400 Message-ID: <200909301246.n8UCk8iB029896@svn01.web.mwc.hst.phx2.redhat.com> --===============3247290608164505077== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-30 08:46:07 -0400 (Wed, 30 Sep 2009) New Revision: 17815 Removed: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tl= d/TLDUtil.java Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tl= d/model/TLDUtil.java trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tl= d/model/handlers/ImportTLDToPaletteSupport.java trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tl= d/model/handlers/PaletteAdopt.java trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tl= d/model/helpers/TLDToPaletteHelper.java Log: https://jira.jboss.org/jira/browse/JBIDE-4934 Deleted: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/= web/tld/TLDUtil.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/TLDUtil.java 2009-09-30 12:36:20 UTC (rev 17814) +++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/TLDUtil.java 2009-09-30 12:46:07 UTC (rev 17815) @@ -1,51 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.jst.web.tld; - -import org.jboss.tools.common.model.*; - -public class TLDUtil { - static String FILE_ENTITIES =3D ".FileTLD_PRO.FileTLD_1_2.FileTLD_2_0.= FileTLD_2_1."; //$NON-NLS-1$ - static String TAG_ENTITIES =3D ".TLDTag.TLDTag12.TLDTag21."; //$NON-NL= S-1$ - static String ATTR_ENTITIES =3D ".TLDAttribute.TLDAttribute12."; //$NO= N-NLS-1$ - - public static boolean isTaglib(XModelObject o) { - return isOfEntity(o, FILE_ENTITIES); - } - - public static boolean isTag(XModelObject o) { - return isOfEntity(o, TAG_ENTITIES); - } - - public static boolean isAttribute(XModelObject o) { - return isOfEntity(o, ATTR_ENTITIES); - } - - private static boolean isOfEntity(XModelObject o, String entities) { - return entities.indexOf("." + o.getModelEntity().getName() + ".") = >=3D 0; //$NON-NLS-1$//$NON-NLS-2$ - } - - public static String getTagDescription(XModelObject o) { - String attr =3D (o.getModelEntity().getAttribute("info") !=3D null= ) ? "info" : "description"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - String s =3D o.getAttributeValue(attr); - s =3D (s =3D=3D null) ? "" : s.trim(); //$NON-NLS-1$ - StringBuffer sb =3D new StringBuffer(); - for (int i =3D 0; i < s.length(); i++) { - char c =3D s.charAt(i); - if(c =3D=3D '<') sb.append("<"); //$NON-NLS-1$ - else if(c =3D=3D '>') sb.append(">"); //$NON-NLS-1$ - else sb.append(c); - } - return sb.toString(); - } - = -} - Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst= /web/tld/model/TLDUtil.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/model/TLDUtil.java 2009-09-30 12:36:20 UTC (rev 17814) +++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/model/TLDUtil.java 2009-09-30 12:46:07 UTC (rev 17815) @@ -15,8 +15,11 @@ public class TLDUtil { static String FILE_ENTITIES =3D ".FileTLD_PRO.FileTLD_1_2.FileTLD_2_0.= FileTLD_2_1."; //$NON-NLS-1$ static String TAG_ENTITIES =3D ".TLDTag.TLDTag12.TLDTag20.TLDTag21."; = //$NON-NLS-1$ - static String ATTR_ENTITIES =3D ".TLDAttribute.TLDAttribute12."; //$NO= N-NLS-1$ + static String ATTR_ENTITIES =3D ".TLDAttribute.TLDAttribute12.TLDAttri= bute20.TLDAttribute2F."; //$NON-NLS-1$ = + static String FACELET_TAGLIB_ENTITIES =3D ".FileFaceletTaglib."; //$NO= N-NLS-1$ + static String FACELET_TAG_ENTITIES =3D ".FaceletTaglibTag."; //$NON-NL= S-1$ + public static boolean isTaglib(XModelObject o) { return isOfEntity(o, FILE_ENTITIES); } @@ -46,6 +49,13 @@ } return sb.toString(); } - = + + public static boolean isFaceletTaglib(XModelObject o) { + return isOfEntity(o, FACELET_TAGLIB_ENTITIES); + } + public static boolean isFaceletTag(XModelObject o) { + return isOfEntity(o, FACELET_TAG_ENTITIES); + } + } = Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst= /web/tld/model/handlers/ImportTLDToPaletteSupport.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/model/handlers/ImportTLDToPaletteSupport.java 2009-09-30 12:36:20 UTC (r= ev 17814) +++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/model/handlers/ImportTLDToPaletteSupport.java 2009-09-30 12:46:07 UTC (r= ev 17815) @@ -30,6 +30,7 @@ import org.jboss.tools.jst.web.messages.xpl.WebUIMessages; import org.jboss.tools.jst.web.model.tree.AllTldsTree; import org.jboss.tools.jst.web.tld.URIConstants; +import org.jboss.tools.jst.web.tld.model.TLDUtil; import org.jboss.tools.jst.web.tld.model.helpers.TLDToPaletteHelper; = public class ImportTLDToPaletteSupport extends SpecialWizardSupport { @@ -133,7 +134,9 @@ String name =3D selectedFile.getAttributeValue("display-name"); //$NO= N-NLS-1$ if(name =3D=3D null || name.length() =3D=3D 0) name =3D selectedFile.= getAttributeValue("shortname"); //$NON-NLS-1$ setAttributeValue(0, NAME, name); - String pref =3D TLDToPaletteHelper.getTldName(selectedFile); + String pref =3D TLDUtil.isTaglib(selectedFile) ? TLDToPaletteHelper.g= etTldName(selectedFile) + : TLDUtil.isFaceletTaglib(selectedFile) ? TLDToPaletteHelper.getFac= eletTldName(selectedFile) + : ""; //$NON-NLS-1$ setAttributeValue(0, URIConstants.DEFAULT_PREFIX, pref); String uri =3D selectedFile.getAttributeValue("uri"); //$NON-NLS-1$ setAttributeValue(0, URIConstants.LIBRARY_URI, uri); Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst= /web/tld/model/handlers/PaletteAdopt.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/model/handlers/PaletteAdopt.java 2009-09-30 12:36:20 UTC (rev 17814) +++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/model/handlers/PaletteAdopt.java 2009-09-30 12:46:07 UTC (rev 17815) @@ -26,33 +26,43 @@ public PaletteAdopt() {} = public boolean isAdoptable(XModelObject target, XModelObject object) { - return isAdoptableTag(target, object) || isAdoptableTaglib(target,= object); + return isAdoptableTag(target, object) = + || isAdoptableTaglib(target, object) + || isAdoptableFaceletTaglib(target, object); } = public void adopt(XModelObject target, XModelObject object, java.util.= Properties p) throws XModelException { if(isAdoptableTag(target, object)) adoptTag(target, object); else if(isAdoptableTaglib(target, object)) adoptTaglib(target, obj= ect); + else if(isAdoptableFaceletTaglib(target, object)) adoptFaceletTagl= ib(target, object); } = protected boolean isAdoptableTag(XModelObject target, XModelObject obj= ect) { if(!TLDUtil.isTag(object)) return false; - String te =3D target.getModelEntity().getName(); - if(!te.startsWith("SharablePageTab") && //$NON-NLS-1$ - !te.startsWith("SharableGroup") && //$NON-NLS-1$ - !te.startsWith("SharableMacro")) return false; //$NON-NLS-1$ + if(!isPaletteObject(target, true)) return false; return true; } = + private boolean isPaletteObject(XModelObject target, boolean excludeRo= ot) { + String te =3D target.getModelEntity().getName(); + if(te.startsWith("SharablePageTab")) return true; //$NON-NLS-1$ + if(te.startsWith("SharableGroup")) return true; //$NON-NLS-1$ + if(te.startsWith("SharableMacro")) return true; //$NON-NLS-1$ + if(!excludeRoot && te.startsWith("SharablePalette")) return true; //$= NON-NLS-1$ + return false; + } protected boolean isAdoptableTaglib(XModelObject target, XModelObject = object) { if(!TLDUtil.isTaglib(object)) return false; - String te =3D target.getModelEntity().getName(); - if(!te.startsWith("SharablePageTab") && //$NON-NLS-1$ - !te.startsWith("SharableGroup") && //$NON-NLS-1$ - !te.equals("SharablePalette") && //$NON-NLS-1$ - !te.startsWith("SharableMacro")) return false; //$NON-NLS-1$ + if(!isPaletteObject(target, false)) return false; return true; } - = + + protected boolean isAdoptableFaceletTaglib(XModelObject target, XModel= Object object) { + if(!TLDUtil.isFaceletTaglib(object)) return false; + if(!isPaletteObject(target, false)) return false; + return true; + } + public void adoptTag(XModelObject target, XModelObject object) throws = XModelException { if(target.getModelEntity().getName().startsWith("SharableMacro")) tar= get =3D target.getParent(); //$NON-NLS-1$ add(target, object, helper.createMacroByTag(object, target.getMode= l())); @@ -83,6 +93,10 @@ XActionInvoker.invoke("ImportTLDToPaletteWizard", "CreateActions.ImportT= LD", paletteRoot, p); //$NON-NLS-1$ //$NON-NLS-2$ } = + public void adoptFaceletTaglib(XModelObject target, XModelObject objec= t) { + adoptTaglib(target, object); + } + static void add(XModelObject target, XModelObject object, XModelObject= created) throws XModelException { if(created =3D=3D null) return; XModelObject old =3D target.getChildByPath(created.getPathPart()); Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst= /web/tld/model/helpers/TLDToPaletteHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/model/helpers/TLDToPaletteHelper.java 2009-09-30 12:36:20 UTC (rev 17814) +++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/t= ld/model/helpers/TLDToPaletteHelper.java 2009-09-30 12:46:07 UTC (rev 17815) @@ -105,6 +105,43 @@ return sb.toString(); } = + public XModelObject createMacroByFaceletTag(XModelObject tag, XModel m= odel) { + Properties p =3D new Properties(); + String parentname =3D getFaceletTldName(tag.getParent()); + String prefix =3D (parentname.length() =3D=3D 0) ? "" : parentname= + ":"; //$NON-NLS-1$ //$NON-NLS-2$ + String shortname =3D tag.getAttributeValue("tag-name"); //$NON-NLS= -1$ + String name =3D prefix + shortname; + String tagname =3D shortname; ///name; + p.setProperty("name", shortname); //$NON-NLS-1$ + boolean empty =3D false; //we know nothing + if(!empty) p.setProperty(END_TEXT, ""); //$NON-N= LS-1$ //$NON-NLS-2$ + p.setProperty(START_TEXT, getStartText(tag, empty, tagname)); + p.setProperty(DESCRIPTION, getTagDescription(tag, empty, name)); + if(!empty) p.setProperty(REFORMAT, "yes"); //$NON-NLS-1$ + return model.createModelObject("SharableMacroHTML", p); //$NON-NLS= -1$ + } + + public static String getFaceletTldName(XModelObject tld) { + if(tld =3D=3D null) return ""; //$NON-NLS-1$ + String n =3D tld.getAttributeValue(XModelObjectConstants.ATTR_NAME= ); + String suff =3D ".taglib"; //$NON-NLS-1$ + if(n.endsWith(suff)) { + String p =3D n.substring(0, n.length() - suff.length()).toLowerCa= se(); + if(!"jsp".equals(p)) { //$NON-NLS-1$ + return p; + } + } + String u =3D tld.getAttributeValue("uri"); //$NON-NLS-1$ + if(u !=3D null) { + int q =3D u.lastIndexOf('/'); + if(q >=3D 0) u =3D u.substring(q + 1); + n =3D u; + } + int s =3D n.lastIndexOf(' '); + if(s >=3D 0) n =3D n.substring(s + 1); + return n.toLowerCase(); + } + private boolean isRequired(XModelObject attr) { String required =3D attr.getAttributeValue("required"); //$NON-NLS= -1$ return (XModelObjectConstants.TRUE.equals(required) || XModelObjec= tConstants.TRUE.equals(required)); @@ -126,12 +163,13 @@ p.setProperty(URIConstants.LIBRARY_URI, "" + tld.getAttributeValue= ("uri")); //$NON-NLS-1$ //$NON-NLS-2$ XModelObject tab =3D model.createModelObject(entity, p); XModelObject[] tags =3D tld.getChildren(); - for (int i =3D 0; i < tags.length; i++) - if(TLDUtil.isTag(tags[i])) tab.addChild(createMacroByTag(tags[i]= , model)); + for (int i =3D 0; i < tags.length; i++) { + if(TLDUtil.isTag(tags[i])) tab.addChild(createMacroByTag(tags[i],= model)); + if(TLDUtil.isFaceletTag(tags[i])) tab.addChild(createMacroByFacel= etTag(tags[i], model)); + } return tab; } = - private String capitalize(String s) { return (s.length() =3D=3D 0) ? s : Character.toUpperCase(s.charAt(= 0)) + s.substring(1); } --===============3247290608164505077==-- From jbosstools-commits at lists.jboss.org Wed Sep 30 08:49:42 2009 Content-Type: multipart/mixed; boundary="===============6906247295151028091==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17816 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring. Date: Wed, 30 Sep 2009 08:49:42 -0400 Message-ID: <200909301249.n8UCngVZ030262@svn01.web.mwc.hst.phx2.redhat.com> --===============6906247295151028091== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dazarov Date: 2009-09-30 08:49:41 -0400 (Wed, 30 Sep 2009) New Revision: 17816 Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/refactoring/SeamRefactorSearcher.java Log: https://jira.jboss.org/jira/browse/JBIDE-4771 Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/refactoring/SeamRefactorSearcher.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java 2009-09-30 12:46:07 UTC = (rev 17815) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java 2009-09-30 12:49:41 UTC = (rev 17816) @@ -279,19 +279,40 @@ for(ELInvocationExpression ie : instance.getExpression().getInvocation= s()){ ELInvocationExpression expression =3D findComponentReference(ie); if(expression !=3D null){ - if(expression instanceof ELPropertyInvocation){ - ELPropertyInvocation pi =3D (ELPropertyInvocation)expression; - checkMatch(file, pi, offset+pi.getName().getStart(), pi.getName().g= etLength()); - }else if(expression instanceof ELMethodInvocation){ - ELMethodInvocation mi =3D (ELMethodInvocation)expression; - checkMatch(file, mi, offset+mi.getName().getStart(), mi.getName().g= etLength()); - } + ELInvocationExpression left =3D expression.getLeft(); + checkMatch(file, expression, offset+getOffset(left), offset+getOffse= t(expression), getLength(expression)); } } } } } = + private int getOffset(ELInvocationExpression expression){ + if(expression instanceof ELPropertyInvocation){ + ELPropertyInvocation pi =3D (ELPropertyInvocation)expression; + = + return pi.getName().getStart(); + }else if(expression instanceof ELMethodInvocation){ + ELMethodInvocation mi =3D (ELMethodInvocation)expression; + = + return mi.getName().getStart(); + } + return 0; + } + = + private int getLength(ELInvocationExpression expression){ + if(expression instanceof ELPropertyInvocation){ + ELPropertyInvocation pi =3D (ELPropertyInvocation)expression; + = + return pi.getName().getLength(); + }else if(expression instanceof ELMethodInvocation){ + ELMethodInvocation mi =3D (ELMethodInvocation)expression; + = + return mi.getName().getLength(); + } + return 0; + } + = private void scanProperties(IFile file, String content){ scanString(file, content, 0); = @@ -352,9 +373,9 @@ = protected abstract void match(IFile file, int offset, int length); = - private void checkMatch(IFile file, ELExpression operand, int offset, int= length){ + private void checkMatch(IFile file, ELExpression operand, int leftOffset,= int offset, int length){ if(javaElement !=3D null && operand !=3D null) - resolve(file, operand, offset, length); + resolve(file, operand, leftOffset, offset, length); else match(file, offset, length); } @@ -388,7 +409,8 @@ return false; } = - private void resolve(IFile file, ELExpression operand, int offset, int le= ngth){ + private void resolve(IFile file, ELExpression operand, int leftOffset, in= t offset, int length){ + //System.out.println("resolve file - "+file.getFullPath()+" leftOffset -= "+leftOffset+" offset - "+offset); ELResolver[] resolvers =3D ELResolverFactoryManager.getInstance().getRes= olvers(file); = for(ELResolver resolver : resolvers){ @@ -400,13 +422,13 @@ context.setResource(file); context.setElResolvers(resolvers); = - List vars =3D ElVarSearcher.findAllVars(context, offset, resolver); + List vars =3D ElVarSearcher.findAllVars(context, leftOffset, resol= ver); = context.setVars(vars); = ELResolution resolution =3D resolver.resolve(context, operand); = - ELSegment segment =3D resolution.findSegmentByOffset(offset); + ELSegment segment =3D resolution.findSegmentByOffset(leftOffset); = if(segment !=3D null && segment instanceof JavaMemberELSegment && segme= nt.isResolved()) { JavaMemberELSegment javaSegment =3D (JavaMemberELSegment)segment; --===============6906247295151028091==-- From jbosstools-commits at lists.jboss.org Wed Sep 30 09:23:51 2009 Content-Type: multipart/mixed; boundary="===============4340615627774710691==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17817 - in trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe: selbar and 1 other directory. Date: Wed, 30 Sep 2009 09:23:51 -0400 Message-ID: <200909301323.n8UDNpnC004996@svn01.web.mwc.hst.phx2.redhat.com> --===============4340615627774710691== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dmaliarevich Date: 2009-09-30 09:23:51 -0400 (Wed, 30 Sep 2009) New Revision: 17817 Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vpe= EditorPart.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar/Sel= ectionBar.java Log: https://jira.jboss.org/jira/browse/JBIDE-4914, selection bar refresh was up= dated. Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/VpeEditorPart.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eEditorPart.java 2009-09-30 12:49:41 UTC (rev 17816) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eEditorPart.java 2009-09-30 13:23:51 UTC (rev 17817) @@ -1168,7 +1168,9 @@ * controller could be null. */ if (getController() !=3D null) { - selectionBar.setVisible(selectionBar.getAlwaysVisibleOption()); + selectionBar.setVisible(JspEditorPlugin.getDefault() + .getPreferenceStore().getBoolean( + IVpePreferencesPage.SHOW_SELECTION_TAG_BAR)); fillContainer(false, null); getController().getVisualBuilder().setShowInvisibleTags(JspEditorPlugi= n.getDefault().getPreferenceStore().getBoolean( IVpePreferencesPage.SHOW_NON_VISUAL_TAGS)); @@ -1179,7 +1181,6 @@ = public void updateSelectionBar(boolean isSelectionBarVisible) { if (selectionBar !=3D null) { - selectionBar.setAlwaysVisibleOption(isSelectionBarVisible); selectionBar.setVisible(isSelectionBarVisible); } else { VpePlugin.getDefault().logError("VPE Selection Bar is not initialized."= ); Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/sel= bar/SelectionBar.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar/Se= lectionBar.java 2009-09-30 12:49:41 UTC (rev 17816) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar/Se= lectionBar.java 2009-09-30 13:23:51 UTC (rev 17817) @@ -98,12 +98,6 @@ private Node currentSelectedNode =3D null; private Node currentLastNode =3D null; = -// private ToolItem arrowButton; - - - final static String PREFERENCE_YES =3D "yes"; //$NON-NLS-1$ - final static String PREFERENCE_NO =3D "no"; //$NON-NLS-1$ - public Composite createToolBarComposite(Composite parent, boolean visible= ) { splitter =3D new Splitter(parent, SWT.NONE); splitter.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); @@ -147,7 +141,6 @@ setAskConfirmationOnClosingSelectionBar(dialog.getToggleState()); } = - setAlwaysVisibleOption(false); setVisible(false); } }; @@ -175,36 +168,6 @@ return splitter; } = - private void setPersistentOption(String name, String value) { - XModelObject optionsObject =3D getOptionsObject(); - optionsObject.setAttributeValue(name, value); - - /* - * Fixes http://jira.jboss.com/jira/browse/JBIDE-2298 - * To get stored in xml XModelObject - * should be marked as modified. - */ - optionsObject.setModified(true); - performStore(optionsObject); - } - - private XModelObject getOptionsObject() { - XModelObject optionsObject =3D ModelUtilities.getPreferenceModel() - .getByPath(VpePreference.VPE_EDITOR_PATH); - return optionsObject; - } - - public void setAlwaysVisibleOption(boolean visible) { - final String optionValue; - if (visible) { - optionValue =3D PREFERENCE_YES; - } else { - optionValue =3D PREFERENCE_NO; - } - - setPersistentOption(VpePreference.ATT_SHOW_SELECTION_TAG_BAR, optionValu= e); - } - public boolean getAlwaysVisibleOption() { return JspEditorPlugin.getDefault().getPreferenceStore().getBoolean( IVpePreferencesPage.SHOW_SELECTION_TAG_BAR); @@ -561,39 +524,6 @@ public void widgetDefaultSelected(SelectionEvent e) { } = - /** - * Performs storing model object in the model and xml file. - * - * @param xmo the model object to store - */ - private void performStore(XModelObject xmo) { - if (null =3D=3D xmo || null =3D=3D xmo.getModel() - || null =3D=3D xmo.getModelEntity()) { - return; - } - - ArrayList adapters =3D new ArrayList(); - XAttribute[] attribute =3D xmo.getModelEntity().getAttributes(); - for (int i =3D 0; i < attribute.length; i++) { - if(!attribute[i].isVisible()) { - continue; - } - IModelPropertyEditorAdapter adapter =3D AdapterFactory.getAdapter(attri= bute[i], xmo, xmo.getModel()); - adapters.add(adapter); - } - /* - * Stores model object by its adaptors. - */ - for (IModelPropertyEditorAdapter adapter : adapters) { - adapter.store(); - } - - /* - * Saves model options - */ - xmo.getModel().saveOptions(); - } - @Override public String toString() { StringBuffer st =3D new StringBuffer("CountItem: "); //$NON-NLS-1$ --===============4340615627774710691==-- From jbosstools-commits at lists.jboss.org Wed Sep 30 09:42:54 2009 Content-Type: multipart/mixed; boundary="===============2018355199893909120==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17818 - trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/navigator. Date: Wed, 30 Sep 2009 09:42:54 -0400 Message-ID: <200909301342.n8UDgsqZ008052@svn01.web.mwc.hst.phx2.redhat.com> --===============2018355199893909120== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-30 09:42:53 -0400 (Wed, 30 Sep 2009) New Revision: 17818 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/navi= gator/JsfProjectsTreeListener.java Log: https://jira.jboss.org/jira/browse/JBIDE-4934 Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/= ui/navigator/JsfProjectsTreeListener.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/nav= igator/JsfProjectsTreeListener.java 2009-09-30 13:23:51 UTC (rev 17817) +++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/nav= igator/JsfProjectsTreeListener.java 2009-09-30 13:42:53 UTC (rev 17818) @@ -19,6 +19,7 @@ import org.jboss.tools.jsf.model.pv.JSFProjectTagLibs; import org.jboss.tools.jsf.model.pv.JSFProjectsRoot; import org.jboss.tools.jst.web.model.pv.WebProjectNode; +import org.jboss.tools.jst.web.tld.model.TLDUtil; = public class JsfProjectsTreeListener extends TreeViewerModelListenerImpl { = @@ -65,7 +66,7 @@ String entity =3D c.getModelEntity().getName(); if("FilePROPERTIES".equals(c.getModelEntity().getName())) { //$NON-NLS-= 1$ invalidateBundles(source.getModel()); - } else if(JSFProjectTagLibs.isTLDFile(c) || JSFProjectTagLibs.isFacelet= TaglibFile(c) + } else if(JSFProjectTagLibs.isTLDFile(c) || TLDUtil.isFaceletTaglib(c) || "FileSystemJar".equals(entity)) { //$NON-NLS-1$ invalidateTagLibs(source.getModel()); } else if(entity.startsWith(JSFConstants.ENT_FACESCONFIG)) { --===============2018355199893909120==-- From jbosstools-commits at lists.jboss.org Wed Sep 30 09:43:49 2009 Content-Type: multipart/mixed; boundary="===============1068038420780962318==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17819 - trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/pv. Date: Wed, 30 Sep 2009 09:43:49 -0400 Message-ID: <200909301343.n8UDhnvR008136@svn01.web.mwc.hst.phx2.redhat.com> --===============1068038420780962318== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-30 09:43:49 -0400 (Wed, 30 Sep 2009) New Revision: 17819 Modified: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/pv/J= SFProjectTagLibs.java Log: https://jira.jboss.org/jira/browse/JBIDE-4934 Modified: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/mod= el/pv/JSFProjectTagLibs.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/pv/= JSFProjectTagLibs.java 2009-09-30 13:42:53 UTC (rev 17818) +++ trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/pv/= JSFProjectTagLibs.java 2009-09-30 13:43:49 UTC (rev 17819) @@ -16,12 +16,11 @@ import org.jboss.tools.common.model.XModelObject; import org.jboss.tools.common.model.filesystems.FileSystemsHelper; import org.jboss.tools.jst.web.model.helpers.WebAppHelper; +import org.jboss.tools.jst.web.tld.model.TLDUtil; = public class JSFProjectTagLibs extends JSFProjectResourceBundles { private static final long serialVersionUID =3D 7805053632320764494L; = - static String FILE_FACELET_TAGLIB =3D "FileFaceletTaglib"; - protected Iterator getRoots() { List list =3D new ArrayList(); XModelObject r =3D getModel().getByPath("FileSystems/WEB-INF"); @@ -48,13 +47,16 @@ } = Iterator it =3D list.iterator(); - Set set =3D new HashSet(); + Set tlds =3D new HashSet(); + Set facelets =3D new HashSet(); while(it.hasNext()) { XModelObject o =3D it.next(); String uri =3D o.getAttributeValue("uri"); - if(uri !=3D null && uri.length() =3D=3D 0 && isFaceletTaglibFile(o)) { + boolean isFacelet =3D TLDUtil.isFaceletTaglib(o); + if(uri !=3D null && uri.length() =3D=3D 0 && isFacelet) { uri =3D o.getAttributeValue("library-class"); } + Set set =3D isFacelet ? facelets : tlds; if(set.contains(uri)) { it.remove(); } else { @@ -87,7 +89,7 @@ = protected boolean acceptFile(XModelObject o) { if("META-INF".equals(o.getParent().getAttributeValue("name"))) { - if(isFaceletTaglibFile(o)) return true; + if(TLDUtil.isFaceletTaglib(o)) return true; } return isTLDFile(o); } @@ -97,11 +99,6 @@ return TLD_ENTITIES.indexOf(entity) >=3D 0; } = - public static boolean isFaceletTaglibFile(XModelObject o) { - String entity =3D o.getModelEntity().getName(); - return entity.startsWith(FILE_FACELET_TAGLIB); - } - public Object getAdapter(Class adapter) { if(adapter =3D=3D IResource.class) { XModelObject o =3D getModel().getByPath("FileSystems/WEB-INF"); --===============1068038420780962318==-- From jbosstools-commits at lists.jboss.org Wed Sep 30 11:10:15 2009 Content-Type: multipart/mixed; boundary="===============7669005298711773010==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17820 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el. Date: Wed, 30 Sep 2009 11:10:15 -0400 Message-ID: <200909301510.n8UFAFqG024166@svn01.web.mwc.hst.phx2.redhat.com> --===============7669005298711773010== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dazarov Date: 2009-09-30 11:10:15 -0400 (Wed, 30 Sep 2009) New Revision: 17820 Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/el/SeamExpressionResolver.java Log: https://jira.jboss.org/jira/browse/JBIDE-4771 Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/el/SeamExpressionResolver.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/el/SeamExpressionResolver.java 2009-09-30 13:43:49 UTC (rev 17= 819) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/el/SeamExpressionResolver.java 2009-09-30 15:10:15 UTC (rev 17= 820) @@ -342,7 +342,7 @@ ELInvocationExpression expr =3D (ELInvocationExpression)ex; try { ELResolution resolution =3D engine.resolveEL(null, expr, false); - if(resolution.isResolved()) { + if(resolution !=3D null && resolution.isResolved()) { ELSegment segment =3D resolution.getLastSegment(); if(segment instanceof JavaMemberELSegmentImpl) { member =3D ((JavaMemberELSegmentImpl)segment).getMemberInfo(); --===============7669005298711773010==-- From jbosstools-commits at lists.jboss.org Wed Sep 30 13:05:15 2009 Content-Type: multipart/mixed; boundary="===============2986401582458113628==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17821 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring. Date: Wed, 30 Sep 2009 13:05:15 -0400 Message-ID: <200909301705.n8UH5Fgd016014@svn01.web.mwc.hst.phx2.redhat.com> --===============2986401582458113628== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dazarov Date: 2009-09-30 13:05:14 -0400 (Wed, 30 Sep 2009) New Revision: 17821 Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/in= ternal/core/refactoring/SeamRefactorSearcher.java Log: https://jira.jboss.org/jira/browse/JBIDE-4771 Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/= seam/internal/core/refactoring/SeamRefactorSearcher.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java 2009-09-30 15:10:15 UTC = (rev 17820) +++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/i= nternal/core/refactoring/SeamRefactorSearcher.java 2009-09-30 17:05:14 UTC = (rev 17821) @@ -23,6 +23,7 @@ import org.eclipse.core.runtime.IPath; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IJavaProject; +import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.search.IJavaSearchScope; import org.eclipse.jdt.internal.ui.text.FastJavaPartitionScanner; import org.eclipse.jdt.ui.text.IJavaPartitions; @@ -57,6 +58,7 @@ import org.jboss.tools.common.el.core.resolver.JavaMemberELSegment; import org.jboss.tools.common.el.core.resolver.SimpleELContext; import org.jboss.tools.common.el.core.resolver.Var; +import org.jboss.tools.common.model.util.EclipseJavaUtil; import org.jboss.tools.common.model.util.EclipseResourceUtil; import org.jboss.tools.common.util.FileUtil; import org.jboss.tools.seam.core.SeamCorePlugin; @@ -280,7 +282,7 @@ ELInvocationExpression expression =3D findComponentReference(ie); if(expression !=3D null){ ELInvocationExpression left =3D expression.getLeft(); - checkMatch(file, expression, offset+getOffset(left), offset+getOffse= t(expression), getLength(expression)); + checkMatch(file, left, offset+getOffset(left), offset+getOffset(expr= ession), getLength(expression)); } } } @@ -409,12 +411,13 @@ return false; } = - private void resolve(IFile file, ELExpression operand, int leftOffset, in= t offset, int length){ - //System.out.println("resolve file - "+file.getFullPath()+" leftOffset -= "+leftOffset+" offset - "+offset); - ELResolver[] resolvers =3D ELResolverFactoryManager.getInstance().getRes= olvers(file); + private void resolve(IFile file, ELExpression operand, int leftOffset, + int offset, int length) { + ELResolver[] resolvers =3D ELResolverFactoryManager.getInstance() + .getResolvers(file); = - for(ELResolver resolver : resolvers){ - if(!(resolver instanceof ELCompletionEngine)) + for (ELResolver resolver : resolvers) { + if (!(resolver instanceof ELCompletionEngine)) continue; = SimpleELContext context =3D new SimpleELContext(); @@ -422,7 +425,8 @@ context.setResource(file); context.setElResolvers(resolvers); = - List vars =3D ElVarSearcher.findAllVars(context, leftOffset, resol= ver); + List vars =3D ElVarSearcher.findAllVars(context, leftOffset, + resolver); = context.setVars(vars); = @@ -430,10 +434,19 @@ = ELSegment segment =3D resolution.findSegmentByOffset(leftOffset); = - if(segment !=3D null && segment instanceof JavaMemberELSegment && segme= nt.isResolved()) { - JavaMemberELSegment javaSegment =3D (JavaMemberELSegment)segment; + if (segment !=3D null && segment instanceof JavaMemberELSegment + && segment.isResolved()) { + JavaMemberELSegment javaSegment =3D (JavaMemberELSegment) segment; IJavaElement segmentJavaElement =3D javaSegment.getJavaElement(); - if(javaElement.equals(segmentJavaElement)) + if (javaElement instanceof IType + && segmentJavaElement instanceof IType) { + if (EclipseJavaUtil.isDerivedClass( + ((IType) segmentJavaElement) + .getFullyQualifiedName(), + ((IType) javaElement).getFullyQualifiedName(), file + .getProject())) + ; + } else if (javaElement.equals(segmentJavaElement)) match(file, offset, length); } } --===============2986401582458113628==-- From jbosstools-commits at lists.jboss.org Wed Sep 30 13:06:28 2009 Content-Type: multipart/mixed; boundary="===============6044674645207449915==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17822 - in trunk/common/plugins/org.jboss.tools.common.model: resources/meta and 3 other directories. Date: Wed, 30 Sep 2009 13:06:28 -0400 Message-ID: <200909301706.n8UH6Sn0016273@svn01.web.mwc.hst.phx2.redhat.com> --===============6044674645207449915== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: scabanovich Date: 2009-09-30 13:06:27 -0400 (Wed, 30 Sep 2009) New Revision: 17822 Removed: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/engines/impl/StopProcessHandler.java trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/engines/impl/XProcessStorage.java trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/util/Messages.java Modified: trunk/common/plugins/org.jboss.tools.common.model/plugin.xml trunk/common/plugins/org.jboss.tools.common.model/resources/meta/ant.meta trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/meta/action/impl/handlers/OpenWithExternalHandler.java trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/co= mmon/model/util/XModelUtil.java Log: Dead code removed Modified: trunk/common/plugins/org.jboss.tools.common.model/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/plugin.xml 2009-09-30= 17:05:14 UTC (rev 17821) +++ trunk/common/plugins/org.jboss.tools.common.model/plugin.xml 2009-09-30= 17:06:27 UTC (rev 17822) @@ -127,8 +127,6 @@ class=3D"org.jboss.tools.common.meta.help.HelpHandler"/> - - map =3D s.getRunningInstances(path); - Long[] ls =3D map.keySet().toArray(new Long[0]); - for (int i =3D 0; i < ls.length; i++) { - s.stopInstance(path, ls[i].longValue()); - object.getModel().getOut().println(MessageFormat.format("Proce= ss executing {0} ({1}) stopped.", - FindObjectHelper.makeRef(object), new Date(ls[i].longValue()))); - } - } - -} Deleted: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/to= ols/common/model/engines/impl/XProcessStorage.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/engines/impl/XProcessStorage.java 2009-09-30 17:05:14 UTC (rev = 17821) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/engines/impl/XProcessStorage.java 2009-09-30 17:06:27 UTC (rev = 17822) @@ -1,66 +0,0 @@ -/*************************************************************************= ****** - * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Exadel, Inc. and Red Hat, Inc. - initial API and implementation - *************************************************************************= *****/ = -package org.jboss.tools.common.model.engines.impl; - -import java.util.*; - -public class XProcessStorage { - private static XProcessStorage storage =3D new XProcessStorage(); - - public static XProcessStorage getDefaultStorage() { - return storage; - } - - private HashMap> objects =3D new HashMap= >(); - - public XProcessStorage() {} - - public void addInstance(String path, XProcess p) { - if(p =3D=3D null || !p.isRunning()) return; - getInstances(path).put(Long.valueOf(System.currentTimeMillis()), p= ); - } - - private HashMap getInstances(String path) { - HashMap is =3D objects.get(path); - if(is =3D=3D null) { - is =3D new HashMap(); - objects.put(path, is); - } - return is; - } - - public HashMap getRunningInstances(String path) { - HashMap is =3D objects.get(path); - if(is =3D=3D null) return null; - validate(is); - return (is.size() =3D=3D 0) ? null : is; - } - - private void validate(HashMap is) { - Iterator ks =3D is.keySet().iterator(); - while(ks.hasNext()) { - Object k =3D ks.next(); - XProcess p =3D is.get(k); - if(!p.isRunning()) ks.remove(); - } - } - - public void stopInstance(String path, long time) { - HashMap is =3D getRunningInstances(path); - if(is =3D=3D null) return; - Long l =3D Long.valueOf(time); - XProcess p =3D is.get(l); - if(p =3D=3D null) return; - p.stop(); - is.remove(l); - } - -} Deleted: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/to= ols/common/model/util/Messages.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/util/Messages.java 2009-09-30 17:05:14 UTC (rev 17821) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/util/Messages.java 2009-09-30 17:06:27 UTC (rev 17822) @@ -1,22 +0,0 @@ -package org.jboss.tools.common.model.util; - -import java.util.MissingResourceException; -import java.util.ResourceBundle; - -public class Messages { - private static final String BUNDLE_NAME =3D "org.jboss.tools.common.model= .util.XBundle"; //$NON-NLS-1$ - - private static final ResourceBundle RESOURCE_BUNDLE =3D ResourceBundle - .getBundle(BUNDLE_NAME); - - private Messages() { - } - - public static String getString(String key) { - try { - return RESOURCE_BUNDLE.getString(key); - } catch (MissingResourceException e) { - return '!' + key + '!'; - } - } -} Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/t= ools/common/model/util/XModelUtil.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/util/XModelUtil.java 2009-09-30 17:05:14 UTC (rev 17821) +++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/c= ommon/model/util/XModelUtil.java 2009-09-30 17:06:27 UTC (rev 17822) @@ -14,31 +14,11 @@ = import org.jboss.tools.common.meta.action.XActionInvoker; import org.jboss.tools.common.model.*; -import org.jboss.tools.common.model.filesystems.FileSystemsHelper; -import org.jboss.tools.common.model.impl.*; = public class XModelUtil { - private static final String DEFAULT_MODEL_VERSION =3D "5.0"; //$NON-NLS-1$ - = private static final String PROPERTIES_ACTION =3D "Properties/Properties"= ; //$NON-NLS-1$ private static final String EDIT_ACTION =3D "Edit"; //$NON-NLS-1$ = - public static void addModifyListener(XModel model, Object listener) { - RootImpl impl =3D (RootImpl)model.getRoot(); - impl.addModifyListener(listener); - } - - public static void addHistoryListener(XModel model, Object listener) { - model.getUndoManager().addListener(listener); - } - - public static String getModelVersion(XModel model) { - XModelObject fss =3D FileSystemsHelper.getFileSystems(model); - if(fss =3D=3D null) return DEFAULT_MODEL_VERSION; - String modelVersionStr =3D fss.getAttributeValue(XModelConstants.MODEL_V= ERSION); - return (modelVersionStr =3D=3D null || "".equals(modelVersionStr)) ? DEF= AULT_MODEL_VERSION : modelVersionStr; //$NON-NLS-1$ - } - = public static void openProperyDialog(XModelObject object){ XActionInvoker.invoke(PROPERTIES_ACTION, object, new Properties()); } --===============6044674645207449915==-- From jbosstools-commits at lists.jboss.org Wed Sep 30 13:28:32 2009 Content-Type: multipart/mixed; boundary="===============6757478916473786392==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17823 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar. Date: Wed, 30 Sep 2009 13:28:32 -0400 Message-ID: <200909301728.n8UHSWJG019660@svn01.web.mwc.hst.phx2.redhat.com> --===============6757478916473786392== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: yradtsevich Date: 2009-09-30 13:28:32 -0400 (Wed, 30 Sep 2009) New Revision: 17823 Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/too= lbar/SplitToolBar.java Log: issue JBIDE-4734: Layout for VPE tool bar formatting is broken under Linux. = https://jira.jboss.org/jira/browse/JBIDE-4734 - now all hidden buttons are accessible from chevron-menu Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/toolbar/SplitToolBar.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/to= olbar/SplitToolBar.java 2009-09-30 17:06:27 UTC (rev 17822) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/to= olbar/SplitToolBar.java 2009-09-30 17:28:32 UTC (rev 17823) @@ -68,14 +68,14 @@ coolItem.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent event) { if (event.detail =3D=3D SWT.ARROW) { - CoolItem item =3D (CoolItem) event.widget; - Rectangle itemBounds =3D item.getBounds(); + CoolItem coolItem =3D (CoolItem) event.widget; + ToolBar bar =3D (ToolBar) coolItem.getControl(); + ToolItem[] tools =3D bar.getItems(); + Rectangle itemBounds =3D bar.getBounds(); Point pt =3D coolBar.toDisplay(new Point(itemBounds.x, itemBounds.y)); itemBounds.x =3D pt.x; itemBounds.y =3D pt.y; - ToolBar bar =3D (ToolBar) item.getControl(); - ToolItem[] tools =3D bar.getItems(); = int i =3D 0; while (i < tools.length) { @@ -368,4 +368,3 @@ return result; } } - --===============6757478916473786392==-- From jbosstools-commits at lists.jboss.org Wed Sep 30 14:26:08 2009 Content-Type: multipart/mixed; boundary="===============5865267312763724417==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17824 - trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs. Date: Wed, 30 Sep 2009 14:26:08 -0400 Message-ID: <200909301826.n8UIQ88Z027160@svn01.web.mwc.hst.phx2.redhat.com> --===============5865267312763724417== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-30 14:26:08 -0400 (Wed, 30 Sep 2009) New Revision: 17824 Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclip= se/as/ui/dialogs/TwiddleDialog.java Log: Code clean up for TwiddleDialog Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/id= e/eclipse/as/ui/dialogs/TwiddleDialog.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/ecli= pse/as/ui/dialogs/TwiddleDialog.java 2009-09-30 17:28:32 UTC (rev 17823) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/ecli= pse/as/ui/dialogs/TwiddleDialog.java 2009-09-30 18:26:08 UTC (rev 17824) @@ -39,7 +39,7 @@ import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Text; -import org.eclipse.ui.internal.Workbench; +import org.eclipse.ui.PlatformUI; import org.eclipse.wst.server.core.IServer; import org.jboss.ide.eclipse.as.core.server.internal.launch.TwiddleLaunchC= onfiguration; import org.jboss.ide.eclipse.as.core.server.internal.launch.TwiddleLaunche= r; @@ -149,7 +149,7 @@ queryLabelData.top =3D new FormAttachment(0,5); queryLabel.setLayoutData(queryLabelData); = - Workbench.getInstance().getHelpSystem().setHelp(getShell(), + PlatformUI.getWorkbench().getHelpSystem().setHelp(getShell(), "org.jboss.ide.eclipse.as.ui.twiddle_usage_tutorial_help"); //$NON-NLS= -1$ = query =3D new Text(main, SWT.BORDER); --===============5865267312763724417==-- From jbosstools-commits at lists.jboss.org Wed Sep 30 14:56:24 2009 Content-Type: multipart/mixed; boundary="===============1735585376147750509==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17825 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar. Date: Wed, 30 Sep 2009 14:56:24 -0400 Message-ID: <200909301856.n8UIuO4J031720@svn01.web.mwc.hst.phx2.redhat.com> --===============1735585376147750509== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: yradtsevich Date: 2009-09-30 14:56:24 -0400 (Wed, 30 Sep 2009) New Revision: 17825 Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/too= lbar/SplitToolBar.java Log: issue JBIDE-4734: Layout for VPE tool bar formatting is broken under Linux. = https://jira.jboss.org/jira/browse/JBIDE-4734 - now if an ToolItem with a Combo intersects the bounds of the toolBar it = is ensured that the combo is invisible. Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/toolbar/SplitToolBar.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/to= olbar/SplitToolBar.java 2009-09-30 18:26:08 UTC (rev 17824) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/to= olbar/SplitToolBar.java 2009-09-30 18:56:24 UTC (rev 17825) @@ -30,6 +30,7 @@ import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.CoolBar; import org.eclipse.swt.widgets.CoolItem; +import org.eclipse.swt.widgets.Event; import org.eclipse.swt.widgets.Listener; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.ToolBar; @@ -51,7 +52,7 @@ public abstract void createItems(ToolBar bar); = public void createToolBarControl(Composite parent) { - final Composite comp =3D new Composite(parent, SWT.NONE); + Composite comp =3D new Composite(parent, SWT.NONE); comp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); comp.setLayout(new GridLayout()); coolBar =3D new CoolBar(comp, SWT.FLAT | SWT.WRAP); @@ -59,7 +60,7 @@ = final ToolBar toolBar =3D new ToolBar(coolBar, SWT.FLAT | SWT.WRAP); createItems(toolBar); - CoolItem coolItem =3D new CoolItem(coolBar, SWT.DROP_DOWN); + final CoolItem coolItem =3D new CoolItem(coolBar, SWT.DROP_DOWN); coolItem.setControl(toolBar); Point size =3D toolBar.computeSize(SWT.DEFAULT, SWT.DEFAULT); Point coolSize =3D coolItem.computeSize(size.x, size.y); @@ -68,89 +69,11 @@ coolItem.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent event) { if (event.detail =3D=3D SWT.ARROW) { - CoolItem coolItem =3D (CoolItem) event.widget; - ToolBar bar =3D (ToolBar) coolItem.getControl(); - ToolItem[] tools =3D bar.getItems(); - Rectangle itemBounds =3D bar.getBounds(); - Point pt =3D coolBar.toDisplay(new Point(itemBounds.x, - itemBounds.y)); - itemBounds.x =3D pt.x; - itemBounds.y =3D pt.y; + int shownItemsCount =3D getShownItemsCount(toolBar); + final Shell floatingShell + =3D createFloatingShell(toolBar, shownItemsCount); = - int i =3D 0; - while (i < tools.length) { - Rectangle toolBounds =3D tools[i].getBounds(); - pt =3D bar.toDisplay(new Point(toolBounds.x, toolBounds.y)); - toolBounds.x =3D pt.x; - toolBounds.y =3D pt.y; - - /* - * Figure out the visible portion of the tool by looking - * at the intersection of the tool bounds with the cool - * item bounds. - */ - Rectangle intersection =3D itemBounds - .intersection(toolBounds); - - /* - * If the tool is not completely within the cool item - * bounds, then it is partially hidden, and all - * remaining tools are completely hidden. - */ - if (!intersection.equals(toolBounds)) { - break; - } - i++; - } - - /* - * Create a menu with items for each of the completely - * hidden buttons. - */ - final Shell floatingShell =3D new Shell(coolBar.getShell(), - SWT.ON_TOP); - FillLayout shellLayout =3D new FillLayout(SWT.VERTICAL); - shellLayout.marginHeight =3D 5; - shellLayout.marginWidth =3D 5; - shellLayout.spacing =3D 5; - = - floatingShell.setLayout(shellLayout); - SelectionListener selectionListener =3D new SelectionAdapter() { - public void widgetSelected(SelectionEvent e) { - floatingShell.dispose(); - } - }; - = - ToolBar floatingBar =3D null; - for (int j =3D i; j < tools.length; j++) { - ToolItem tool =3D tools[j]; - int style =3D tool.getStyle(); - - if ((style & SWT.SEPARATOR) !=3D 0) { - Control control =3D tool.getControl(); - if (control instanceof Combo) { - cloneCombo(floatingShell, selectionListener, - (Combo) control); - } - } else { - if (floatingBar =3D=3D null) { - floatingBar =3D new ToolBar(floatingShell, = - SWT.FLAT | SWT.WRAP); - } - cloneItem(floatingBar, tool, selectionListener); - } - } -// Point size =3D floatingBar.computeSize (300, SWT.DEFAULT); -// System.out.println(size); -// floatingBar.setSize (size); -// floatingBar.pack(); - floatingShell.pack(); - - /* - * Drop down the menu below the chevron, with the left edges - * aligned. - */ - pt =3D coolBar.toDisplay(new Point(event.x, event.y)); + Point pt =3D coolBar.toDisplay(new Point(event.x, event.y)); arrange(floatingShell, pt); floatingShell.setVisible(true); floatingShell.setFocus(); @@ -162,6 +85,13 @@ } } }); + toolBar.addListener(SWT.Resize, new Listener() { + public void handleEvent(Event event) { + int shownItemsCount =3D getShownItemsCount(toolBar); + ensureVisibility(shownItemsCount, toolBar); + } + }); + coolBar.pack(); // coolBar.layout(); = @@ -281,7 +211,6 @@ Arrays.asList(combo.getItems()), combo.getSelectionIndex()); copiedCombo.setEnabled(combo.getEnabled()); - copiedCombo.setVisible(combo.getVisible()); copySelectionListeners(combo, copiedCombo); copiedCombo.addSelectionListener(selectionListener); } @@ -367,4 +296,106 @@ = return result; } + = + /** + * Ensures that the first {@code shownItemsCount} items of + * the given {@code toolBar} are shown and the rest are hidden. + * = + * Also see JBIDE-4734 (screenshot-2.jpeg). + */ + private void ensureVisibility(int shownItemsCount, + ToolBar toolBar) { + int toolItemCount =3D toolBar.getItemCount(); + for (int i =3D 0; i < toolItemCount; i++) { + ToolItem toolItem =3D toolBar.getItem(i); + Control control =3D toolItem.getControl(); + if (control !=3D null) { + control.setVisible(i < shownItemsCount); + } + } + } + + /** + * Creates a floating toolbar with copy of items from + * {@code fixedToolBar} beginning from {@code firstItemIndex}. + */ + private Shell createFloatingShell(ToolBar fixedToolBar, + int firstItemIndex) { + final Shell floatingShell =3D new Shell(coolBar.getShell(), + SWT.ON_TOP); + FillLayout shellLayout =3D new FillLayout(SWT.VERTICAL); + shellLayout.marginHeight =3D 5; + shellLayout.marginWidth =3D 5; + shellLayout.spacing =3D 5; + floatingShell.setLayout(shellLayout); + SelectionListener selectionListener =3D new SelectionAdapter() { + public void widgetSelected(SelectionEvent e) { + floatingShell.dispose(); + } + }; + + ToolBar buttonsBar =3D null; + ToolItem[] tools =3D fixedToolBar.getItems(); + for (int j =3D firstItemIndex; j < tools.length; j++) { + ToolItem tool =3D tools[j]; + int style =3D tool.getStyle(); + + if ((style & SWT.SEPARATOR) !=3D 0) { + Control control =3D tool.getControl(); + if (control instanceof Combo) { + cloneCombo(floatingShell, selectionListener, + (Combo) control); + } + } else { + if (buttonsBar =3D=3D null) { + buttonsBar =3D new ToolBar(floatingShell, = + SWT.FLAT | SWT.WRAP); + } + cloneItem(buttonsBar, tool, selectionListener); + } + } + + floatingShell.pack(); + = + return floatingShell; + } + + /** + * Returns the number of shown items in the {@code toolBar}. + */ + private int getShownItemsCount(ToolBar bar) { + Rectangle barBounds =3D bar.getBounds(); + Point pt =3D coolBar.toDisplay(new Point(barBounds.x, + barBounds.y)); + barBounds.x =3D pt.x; + barBounds.y =3D pt.y; + + ToolItem[] tools =3D bar.getItems(); + int i =3D 0; + while (i < tools.length) { + Rectangle toolBounds =3D tools[i].getBounds(); + pt =3D bar.toDisplay(new Point(toolBounds.x, toolBounds.y)); + toolBounds.x =3D pt.x; + toolBounds.y =3D pt.y; + + /* + * Figure out the visible portion of the tool by looking + * at the intersection of the tool bounds with the toolbar + * bounds. + */ + Rectangle intersection =3D barBounds + .intersection(toolBounds); + + /* + * If the tool is not completely within the toolbar + * bounds, then it is partially hidden, and all + * remaining tools are completely hidden. + */ + if (!intersection.equals(toolBounds)) { + break; + } + i++; + } + return i; + } } --===============1735585376147750509==-- From jbosstools-commits at lists.jboss.org Wed Sep 30 15:05:30 2009 Content-Type: multipart/mixed; boundary="===============8544937310169898275==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r17826 - in trunk/as: plugins/org.jboss.ide.eclipse.archives.webtools and 4 other directories. Date: Wed, 30 Sep 2009 15:05:30 -0400 Message-ID: <200909301905.n8UJ5TET000734@svn01.web.mwc.hst.phx2.redhat.com> --===============8544937310169898275== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dgolovin Date: 2009-09-30 15:05:29 -0400 (Wed, 30 Sep 2009) New Revision: 17826 Modified: trunk/as/features/org.jboss.ide.eclipse.as.feature/feature.xml trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/plugin.xml trunk/as/plugins/org.jboss.ide.eclipse.as.core/META-INF/MANIFEST.MF trunk/as/plugins/org.jboss.ide.eclipse.as.core/build.properties trunk/as/plugins/org.jboss.ide.eclipse.as.core/plugin.xml trunk/as/plugins/org.jboss.ide.eclipse.as.ui/META-INF/MANIFEST.MF trunk/as/plugins/org.jboss.ide.eclipse.as.ui/build.properties trunk/as/plugins/org.jboss.ide.eclipse.as.ui/plugin.xml Log: https://jira.jboss.org/jira/browse/JBIDE-3628 - Plug-ins should be .jar's n= ot directories for efficiency sake. as feature plug-ins converted to jars = Modified: trunk/as/features/org.jboss.ide.eclipse.as.feature/feature.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/features/org.jboss.ide.eclipse.as.feature/feature.xml 2009-09-= 30 18:56:24 UTC (rev 17825) +++ trunk/as/features/org.jboss.ide.eclipse.as.feature/feature.xml 2009-09-= 30 19:05:29 UTC (rev 17826) @@ -14,16 +14,16 @@ %copyright = - Red Hat, Inc. licenses these features and plugins to you under + + Red Hat, Inc. licenses these features and plugins to you under certain open source licenses (or aggregations of such licenses), which in a particular case may include the Eclipse Public License, the GNU Lesser General Public License, and/or certain other open source licenses. For precise licensing details, consult the corresponding source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, Raleigh NC 27606 USA. - + = - @@ -89,13 +89,15 @@ id=3D"org.jboss.ide.eclipse.as.core" download-size=3D"0" install-size=3D"0" - version=3D"0.0.0"/> + version=3D"0.0.0" + unpack=3D"false"/> = + version=3D"0.0.0" + unpack=3D"false"/> = + version=3D"0.0.0" + unpack=3D"false"/> = - = + Modified: trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/plugin.x= ml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/plugin.xml 200= 9-09-30 18:56:24 UTC (rev 17825) +++ trunk/as/plugins/org.jboss.ide.eclipse.archives.webtools/plugin.xml 200= 9-09-30 19:05:29 UTC (rev 17826) @@ -55,13 +55,13 @@ point=3D"org.jboss.ide.eclipse.archives.ui.nodePopupMenus"> @@ -70,17 +70,17 @@ point=3D"org.jboss.ide.eclipse.archives.ui.newArchiveActions">
@@ -104,7 +104,7 @@ = = = + uri=3D"platform:/plugin/org.jboss.ide.eclipse.as.core/dtd/jboss-ws-= security_1_0.xsd"/> + uri=3D"platform:/plugin/org.jboss.ide.eclipse.as.core/dtd/= jaxws-config_2_0.xsd"/> = = Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/META-INF/MANIFEST.MF =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/META-INF/MANIFEST.MF 2009-= 09-30 18:56:24 UTC (rev 17825) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/META-INF/MANIFEST.MF 2009-= 09-30 19:05:29 UTC (rev 17826) @@ -53,7 +53,6 @@ org.jboss.ide.eclipse.as.ui.views.server.extensions, org.jboss.ide.eclipse.as.ui.wizards, org.jboss.tools.as.wst.server.ui.xpl -Bundle-ClassPath: jbossui.jar Bundle-Activator: org.jboss.ide.eclipse.as.ui.JBossServerUIPlugin Bundle-Vendor: %Bundle-Vendor.0 Bundle-RequiredExecutionEnvironment: J2SE-1.5 Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/build.properties =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/build.properties 2009-09-3= 0 18:56:24 UTC (rev 17825) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/build.properties 2009-09-3= 0 19:05:29 UTC (rev 17826) @@ -1,7 +1,7 @@ -source.jbossui.jar =3D jbossui/ -output.jbossui.jar =3D bin/ +source.. =3D jbossui/ +output.. =3D bin/ bin.includes =3D META-INF/,\ - jbossui.jar,\ + .,\ plugin.xml,\ plugin.properties,\ icons/,\ Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/plugin.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/plugin.xml 2009-09-30 18:5= 6:24 UTC (rev 17825) +++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/plugin.xml 2009-09-30 19:0= 5:29 UTC (rev 17826) @@ -8,20 +8,20 @@ = @@ -66,11 +66,11 @@ @@ -113,7 +113,7 @@ point=3D"org.eclipse.ui.perspectives"> @@ -189,13 +189,13 @@ point=3D"org.eclipse.debug.ui.launchConfigurationTypeImages"> = - @@ -209,7 +209,7 @@ @@ -243,15 +243,15 @@ = - + - + - + - + - + @@ -275,11 +275,11 @@ name=3D"%ViewName_JBossServerView" category=3D"org.eclipse.wst.server.ui" class=3D"org.jboss.tools.as.wst.server.ui.xpl.ServersView" - icon=3D"icons/jboss.gif"/> + icon=3D"$nl$/icons/jboss.gif"/> @@ -291,7 +291,7 @@ @@ -531,7 +531,7 @@ point=3D"org.eclipse.debug.ui.launchConfigurationTypeImages"> --===============8544937310169898275==--