JBoss Tools SVN: r10943 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2008-10-17 14:09:05 -0400 (Fri, 17 Oct 2008)
New Revision: 10943
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2731
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java 2008-10-17 18:06:39 UTC (rev 10942)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java 2008-10-17 18:09:05 UTC (rev 10943)
@@ -38,6 +38,7 @@
import org.eclipse.core.runtime.preferences.IScopeContext;
import org.eclipse.datatools.connectivity.IConnectionProfile;
import org.eclipse.datatools.connectivity.ProfileManager;
+import org.eclipse.emf.common.util.EList;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.core.JavaConventions;
@@ -45,6 +46,10 @@
import org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.jst.common.project.facet.core.ClasspathHelper;
+import org.eclipse.jst.j2ee.application.Application;
+import org.eclipse.jst.j2ee.application.ApplicationFactory;
+import org.eclipse.jst.j2ee.application.EjbModule;
+import org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit;
import org.eclipse.jst.j2ee.model.IModelProvider;
import org.eclipse.jst.j2ee.model.ModelProviderManager;
import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetConstants;
@@ -456,8 +461,8 @@
new File(seamGenResFolder, "META-INF/jboss-app.xml"), //$NON-NLS-1$
metaInfFolder, new FilterSetCollection(earFilterSet), false);
- if(!applicationXml.exists()) {
- // TODO configure application.xml
+ if(applicationXml.exists()) {
+ configureApplicationXml(project, monitor);
}
// Copy configuration files from template
try {
@@ -476,6 +481,39 @@
viewFilterSetCollection, false);
}
+ protected void configureApplicationXml(IProject project, IProgressMonitor monitor) {
+ EARArtifactEdit earArtifactEdit = null;
+ try {
+ earArtifactEdit = EARArtifactEdit.getEARArtifactEditForWrite(project);
+ if(earArtifactEdit!=null) {
+ Application application = earArtifactEdit.getApplication();
+ EList modules = application.getModules();
+ boolean moduleExists = false;
+ for (Iterator iterator = modules.iterator(); iterator.hasNext();) {
+ Object module = iterator.next();
+ if(module instanceof EjbModule) {
+ EjbModule ejbModule = (EjbModule)module;
+ if("jboss-seam.jar".equals(ejbModule.getUri())) {
+ moduleExists = true;
+ break;
+ }
+ }
+ }
+ if(!moduleExists) {
+ EjbModule module = ApplicationFactory.eINSTANCE.createEjbModule();
+ module.setUri("jboss-seam.jar");
+ application.getModules().add(module);
+ }
+
+ earArtifactEdit.save(monitor);
+ }
+ } finally {
+ if(earArtifactEdit!=null) {
+ earArtifactEdit.dispose();
+ }
+ }
+ }
+
/**
* Fill ear contents
*/
16 years, 2 months
JBoss Tools SVN: r10942 - trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2008-10-17 14:06:39 -0400 (Fri, 17 Oct 2008)
New Revision: 10942
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELProposalProcessor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2397 Make EL code completions beautifull and context relevant
The relevance is fixed for the SEAm EL proposals
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELProposalProcessor.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELProposalProcessor.java 2008-10-17 17:24:39 UTC (rev 10941)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELProposalProcessor.java 2008-10-17 18:06:39 UTC (rev 10942)
@@ -271,7 +271,7 @@
* Returns the relevance of the proposal
*/
public int getRelevance() {
- return XMLRelevanceConstants.R_XML_ATTRIBUTE_VALUE;
+ return XMLRelevanceConstants.R_XML_ATTRIBUTE_VALUE+10;
}
}
16 years, 2 months
JBoss Tools SVN: r10941 - in trunk/jst/plugins/org.jboss.tools.jst.firstrun: src/org/jboss/tools/jst/firstrun and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2008-10-17 13:24:39 -0400 (Fri, 17 Oct 2008)
New Revision: 10941
Modified:
trunk/jst/plugins/org.jboss.tools.jst.firstrun/META-INF/MANIFEST.MF
trunk/jst/plugins/org.jboss.tools.jst.firstrun/src/org/jboss/tools/jst/firstrun/JBossASAdapterInitializer.java
Log:
https://jira.jboss.org/jira/browse/JBDS-425
Modified: trunk/jst/plugins/org.jboss.tools.jst.firstrun/META-INF/MANIFEST.MF
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.firstrun/META-INF/MANIFEST.MF 2008-10-17 17:04:52 UTC (rev 10940)
+++ trunk/jst/plugins/org.jboss.tools.jst.firstrun/META-INF/MANIFEST.MF 2008-10-17 17:24:39 UTC (rev 10941)
@@ -11,7 +11,8 @@
org.eclipse.jdt.launching,
org.eclipse.jface,
org.eclipse.datatools.connectivity;visibility:=reexport,
- org.eclipse.datatools.connectivity.db.generic
+ org.eclipse.datatools.connectivity.db.generic,
+ org.jboss.tools.common;bundle-version="2.0.0"
Bundle-Activator: org.jboss.tools.jst.firstrun.JstFirstRunPlugin
Eclipse-LazyStart: true
Export-Package: org.jboss.tools.jst.firstrun
Modified: trunk/jst/plugins/org.jboss.tools.jst.firstrun/src/org/jboss/tools/jst/firstrun/JBossASAdapterInitializer.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.firstrun/src/org/jboss/tools/jst/firstrun/JBossASAdapterInitializer.java 2008-10-17 17:04:52 UTC (rev 10940)
+++ trunk/jst/plugins/org.jboss.tools.jst.firstrun/src/org/jboss/tools/jst/firstrun/JBossASAdapterInitializer.java 2008-10-17 17:24:39 UTC (rev 10941)
@@ -48,6 +48,7 @@
import org.eclipse.wst.server.core.ServerUtil;
import org.eclipse.wst.server.core.internal.RuntimeWorkingCopy;
import org.eclipse.wst.server.core.internal.ServerWorkingCopy;
+import org.jboss.tools.common.util.FileUtil;
/**
* @author eskimo
@@ -56,6 +57,8 @@
public class JBossASAdapterInitializer implements IStartup {
public static final String JBOSS_AS_HOME = "../../../../jboss-eap/jboss-as"; // JBoss AS home directory (relative to plugin)- <RHDS_HOME>/jbossas.
+
+ public static final String SERVERS_FILE = "../../../application_platforms.properties";
public static final String JBOSS_AS_RUNTIME_TYPE_ID
= "org.jboss.ide.eclipse.as.runtime.42";
@@ -98,7 +101,51 @@
return;
}
JstFirstRunPlugin.getDefault().getPreferenceStore().setValue(FIRST_START_PREFERENCE_NAME, false);
+
+ File serversFile = new File(SERVERS_FILE);
+ if(serversFile.exists()){
+ String str = FileUtil.readFile(serversFile);
+ int position = 0;
+ while(true){
+ String jbossASLocation = null;
+
+ position = str.indexOf("=",position);
+ if(position < 0) break;
+
+ // server name
+ position = str.indexOf(",",position);
+ if(position < 0) break;
+ // server type
+ position = str.indexOf(",",position);
+ if(position < 0) break;
+
+ // server location
+ position = str.indexOf(",",position);
+ if(position < 0) break;
+
+ int next = str.indexOf("server",position);
+
+ if(next < 0)
+ jbossASLocation = str.substring(position+1,str.length()-1);
+ else
+ jbossASLocation = str.substring(position+1,next);
+
+ jbossASLocation = jbossASLocation.trim();
+
+ IRuntimeWorkingCopy runtime = null;
+ IProgressMonitor progressMonitor = new NullProgressMonitor();
+ if (runtime == null) {
+ runtime = createRuntime(jbossASLocation, progressMonitor);
+ }
+ if (runtime != null) {
+ createServer(progressMonitor, runtime);
+ }
+
+ createDriver(jbossASLocation);
+ }
+ }
+
String jbossASLocation = null;
String pluginLocation = FileLocator.resolve(JstFirstRunPlugin.getDefault().getBundle().getEntry("/")).getPath();
File jbossASDir = new File(pluginLocation, JBOSS_AS_HOME);
16 years, 2 months
JBoss Tools SVN: r10940 - trunk/birt/docs/en/modules.
by jbosstools-commits@lists.jboss.org
Author: abogachuk
Date: 2008-10-17 13:04:52 -0400 (Fri, 17 Oct 2008)
New Revision: 10940
Modified:
trunk/birt/docs/en/modules/birt_designer.xml
Log:
style and language verification
Modified: trunk/birt/docs/en/modules/birt_designer.xml
===================================================================
--- trunk/birt/docs/en/modules/birt_designer.xml 2008-10-17 16:55:28 UTC (rev 10939)
+++ trunk/birt/docs/en/modules/birt_designer.xml 2008-10-17 17:04:52 UTC (rev 10940)
@@ -52,16 +52,16 @@
<title>BIRT Report Designer Features</title>
<para>Here are the main BIRT Report Designer features:</para>
<itemizedlist><listitem><para><emphasis role="bold">Palette</emphasis> - contains tables, labels, and charts. It is used in conjunction with the Layout View to design reports.</para></listitem>
- <listitem><para><emphasis role="bold">Data Explorer</emphasis> - Organizes your data sources and data sets. The Data Sets editor enables testing your data set to check whether the report receives the correct data. You can also create cubes using your data sets (when building any dynamic cross tables) and design necessary report parameters.</para></listitem>
+ <listitem><para><emphasis role="bold">Data Explorer</emphasis> - organizes your data sources and data sets. The Data Sets editor enables testing your data set to check whether the report receives the correct data. You can also create cubes using your data sets (when building any dynamic cross tables) and design necessary report parameters.</para></listitem>
<listitem><para><emphasis role="bold">Resource Explorer</emphasis> - BIRT allows the reuse of report objects, such as tables, data sources and styles. Objects created for reuse are stored in a library file. To browse the contents of report libraries BIRT supplies the Resource Explorer view. This view lists all libraries within the resource folder, in addition to other shared content such as images and JavaScript files.</para></listitem>
- <listitem><para><emphasis role="bold">Property Editor</emphasis> - Shows the most commonly used properties. BIRT also integrates with the standard Eclipse property view to display a detailed listing of all properties for an item.</para></listitem>
+ <listitem><para><emphasis role="bold">Property Editor</emphasis> - shows the most commonly used properties. BIRT also integrates with the standard Eclipse property view to display a detailed listing of all properties for an item.</para></listitem>
<listitem><para><emphasis role="bold">Layout View</emphasis> - WYSIWYG editor. You can select any element from the Palette, drag and drop it to the report and then edit the way you like.</para></listitem>
- <listitem><para><emphasis role="bold">Script Editor</emphasis> - Scripting adds business logic to reports during data access, during report generation, or during viewing. The code editor provides standard Eclipse features for editing your scripts: syntax coloring, auto-complete and more. An interesting new feature, for BIRT 2.3 is the ability to debug scripts while the report is running.</para></listitem>
- <listitem><para><emphasis role="bold">Report Preview</emphasis> - You can test your report at any time with real data. The preview is a window directly within Eclipse.</para></listitem>
- <listitem><para><emphasis role="bold">Chart Builder</emphasis> - Adding Charts to BIRT designs is expedited with the Chart Builder. Chart creation is separated into three phases: Select Chart Type, Select Data, and Format Chart.</para></listitem>
- <listitem><para><emphasis role="bold">Expression Builder </emphasis> - BIRT expressions are really just simple scripts that return a value. Expressions are used for assigning data values to report elements, building image locations, hyperlinks, parameter default values and many other places. Expressions are constructed within BIRT using the Expression Builder.</para></listitem>
- <listitem><para><emphasis role="bold">Cheat Sheets</emphasis> - Learning a new tool is always a challenge, but Eclipse offers an innovative solution: cheat sheets. These are short bits of documentation that walk you through new tasks.</para></listitem>
- <listitem><para><emphasis role="bold">Outline</emphasis> - BIRT reports are organized as a tree structure with the overall report as the root, and separate categories for styles, report content, data sources, data sets, report parameters and more. The Outline view provides a compact overview of your entire report structure.</para></listitem>
+ <listitem><para><emphasis role="bold">Script Editor</emphasis> - scripting adds business logic to reports during data access, report generation, or viewing. The code editor provides standard features for editing scripts: syntax coloring, auto-complete etc. You also can debug scripts when the report is running.</para></listitem>
+ <listitem><para><emphasis role="bold">Report Preview</emphasis> - Report Preview is used to test your newly created report with some real data.</para></listitem>
+ <listitem><para><emphasis role="bold">Chart Builder</emphasis> - using the Chart Builder you can add any charts to the design of your report. Just select a chart type, then data and, finally, format the chart.</para></listitem>
+ <listitem><para><emphasis role="bold">Expression Builder </emphasis> - expressions are simple scripts that return a value. They are used to assign data values to report elements, build image locations, hyperlinks, parameter default values etc.</para></listitem>
+ <listitem><para><emphasis role="bold">Cheat Sheets</emphasis> - Cheat sheets are small pices of useful dosumentation that lead you through a report creation process. Just select when you need and then follow the instructions.</para></listitem>
+ <listitem><para><emphasis role="bold">Outline</emphasis> - this view provides a compact overview of the entire report structure.</para></listitem>
</itemizedlist>
16 years, 2 months
JBoss Tools SVN: r10939 - trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2008-10-17 12:55:28 -0400 (Fri, 17 Oct 2008)
New Revision: 10939
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/.project
Log:
Share project 'org.jboss.tools.jsf.text.ext.richfaces' into 'https://svn.jboss.org/repos/jbosstools/trunk'
JBIDE-1898 OpenOns for attributes of richfaces tags
JBIDE-2406 openon doesn't work for "viewId" attribute of <a4j:include> component.
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/.project
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/.project 2008-10-17 16:53:14 UTC (rev 10938)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/.project 2008-10-17 16:55:28 UTC (rev 10939)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>org.jboss.tools.jsf.text.ext.facelets</name>
+ <name>org.jboss.tools.jsf.text.ext.richfaces</name>
<comment></comment>
<projects>
</projects>
16 years, 2 months
JBoss Tools SVN: r10938 - in documentation/trunk/movies: Reverse_engineering_and_code_generation and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: msorokin
Date: 2008-10-17 12:53:14 -0400 (Fri, 17 Oct 2008)
New Revision: 10938
Added:
documentation/trunk/movies/Reverse_engineering_and_code_generation/
documentation/trunk/movies/Reverse_engineering_and_code_generation/Reverse_engineering_and_code_generation.wnk
Log:
Added: documentation/trunk/movies/Reverse_engineering_and_code_generation/Reverse_engineering_and_code_generation.wnk
===================================================================
(Binary files differ)
Property changes on: documentation/trunk/movies/Reverse_engineering_and_code_generation/Reverse_engineering_and_code_generation.wnk
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 2 months
JBoss Tools SVN: r10937 - trunk.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2008-10-17 12:50:27 -0400 (Fri, 17 Oct 2008)
New Revision: 10937
Removed:
trunk/trunk/
Log:
Deleting after incorrect checkin.
16 years, 2 months
JBoss Tools SVN: r10936 - trunk/trunk.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2008-10-17 12:50:05 -0400 (Fri, 17 Oct 2008)
New Revision: 10936
Removed:
trunk/trunk/jsf/
Log:
Deleting after incorrect checkin.
16 years, 2 months
JBoss Tools SVN: r10935 - trunk/trunk/jsf.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2008-10-17 12:49:48 -0400 (Fri, 17 Oct 2008)
New Revision: 10935
Removed:
trunk/trunk/jsf/plugins/
Log:
Deleting after incorrect checkin.
16 years, 2 months
JBoss Tools SVN: r10934 - in trunk: trunk/jsf/plugins and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2008-10-17 12:47:54 -0400 (Fri, 17 Oct 2008)
New Revision: 10934
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/
Removed:
trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/
Log:
Moving the plugin to the correct place
Copied: trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces (from rev 10933, trunk/trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces)
16 years, 2 months