JBoss Tools SVN: r8039 - workspace.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-05-12 18:08:28 -0400 (Mon, 12 May 2008)
New Revision: 8039
Added:
workspace/dgolovin/
Log:
17 years, 11 months
JBoss Tools SVN: r8038 - in trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui: preferences and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-05-11 05:20:35 -0400 (Sun, 11 May 2008)
New Revision: 8038
Modified:
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/JbossWSUIMessages.java
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/UIUtils.java
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JbossWSRuntimePreferencePage.java
Log:
JBIDE2047: modify for validating ws location
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/JbossWSUIMessages.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/JbossWSUIMessages.java 2008-05-11 09:20:09 UTC (rev 8037)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/JbossWSUIMessages.java 2008-05-11 09:20:35 UTC (rev 8038)
@@ -13,6 +13,9 @@
import org.eclipse.osgi.util.NLS;
+/**
+ * @author Grid Qian
+ */
public final class JbossWSUIMessages extends NLS {
private static final String BUNDLE_NAME =
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/UIUtils.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/UIUtils.java 2008-05-11 09:20:09 UTC (rev 8037)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/UIUtils.java 2008-05-11 09:20:35 UTC (rev 8038)
@@ -23,7 +23,6 @@
import java.util.ArrayList;
import java.util.List;
-import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.GridData;
@@ -39,6 +38,9 @@
import org.eclipse.swt.widgets.Tree;
import org.eclipse.ui.PlatformUI;
+/**
+ * @author Grid Qian
+ */
public class UIUtils {
/**
* A default padding value for horizontalResize().
@@ -46,10 +48,6 @@
public final static int DEFAULT_PADDING = 35;
String infoPopid_;
-
- // verify the jbossws jar directory
- private static boolean alreadyComputedTempAxis2Directory = false;
- private static String tempJbosswsDir = null;
public UIUtils(String infoPopid) {
infoPopid_ = infoPopid;
@@ -275,40 +273,6 @@
target.setSize(referenceSize.x + padding, originalSize.y);
}
- //
- // jboss ws lib copy
-
- public static String tempAxis2Directory() {
- if (!alreadyComputedTempAxis2Directory){
- String[] nodes = {JbossWSUIMessages.DIR_DOT_METADATA,
- JbossWSUIMessages.DIR_DOT_PLUGINS,
- JbossWSUIMessages.TEMP_JBOSSWS_FACET_DIR};
- tempJbosswsDir =addNodesToPath(
- ResourcesPlugin.getWorkspace().getRoot().getLocation().toOSString(), nodes);
- alreadyComputedTempAxis2Directory= true;
- }
- return tempJbosswsDir;
- }
-
- public static String tempAxis2WebappFileLocation() {
- return
- addAnotherNodeToPath(tempAxis2Directory(),
- JbossWSUIMessages.WEBAPP_EXPLODED_SERVER_LOCATION_FILE);
- }
-
-
- public static String tempRuntimeStatusFileLocation() {
- return
- addAnotherNodeToPath(tempAxis2Directory(),
- JbossWSUIMessages.SERVER_STATUS_LOCATION_FILE);
- }
-
- public static String tempWarStatusFileLocation() {
- return
- addAnotherNodeToPath(tempAxis2Directory(),
- JbossWSUIMessages.WAR_STATUS_LOCATION_FILE);
- }
-
public static void writePropertyToFile(File file,String key, String value) throws IOException {
Writer out = new BufferedWriter(new OutputStreamWriter(
new FileOutputStream(file), "8859_1"));
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JbossWSRuntimePreferencePage.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JbossWSRuntimePreferencePage.java 2008-05-11 09:20:09 UTC (rev 8037)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/preferences/JbossWSRuntimePreferencePage.java 2008-05-11 09:20:35 UTC (rev 8038)
@@ -38,6 +38,9 @@
import org.jboss.tools.ws.ui.JbossWSUIPlugin;
import org.jboss.tools.ws.ui.UIUtils;
+/**
+ * @author Grid Qian
+ */
public class JbossWSRuntimePreferencePage extends PreferencePage implements
IWorkbenchPreferencePage {
17 years, 11 months
JBoss Tools SVN: r8037 - in trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui: wsrt and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-05-11 05:20:09 -0400 (Sun, 11 May 2008)
New Revision: 8037
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/widgets/ProviderInvokeCodeGenConfigWidget.java
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWSProviderInvokeConfigWidgetFactory.java
Log:
JBIDE2047: modify for validating ws location
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/widgets/ProviderInvokeCodeGenConfigWidget.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/widgets/ProviderInvokeCodeGenConfigWidget.java 2008-05-11 09:19:56 UTC (rev 8036)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/widgets/ProviderInvokeCodeGenConfigWidget.java 2008-05-11 09:20:09 UTC (rev 8037)
@@ -7,62 +7,59 @@
*
* Contributors:
* Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
+ ******************************************************************************/
package org.jboss.tools.ws.creation.ui.widgets;
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.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.Display;
-import org.eclipse.swt.widgets.FileDialog;
-import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Listener;
-import org.eclipse.swt.widgets.Text;
import org.eclipse.wst.command.internal.env.ui.widgets.SimpleWidgetDataContributor;
import org.eclipse.wst.command.internal.env.ui.widgets.WidgetDataEvents;
import org.jboss.tools.ws.creation.core.data.ServiceModel;
-public class ProviderInvokeCodeGenConfigWidget extends SimpleWidgetDataContributor {
-
+/**
+ * @author Grid Qian
+ */
+public class ProviderInvokeCodeGenConfigWidget extends
+ SimpleWidgetDataContributor {
+
private ServiceModel model;
- public ProviderInvokeCodeGenConfigWidget(ServiceModel model){
+ public ProviderInvokeCodeGenConfigWidget(ServiceModel model) {
this.model = model;
model.setGenWSDL(true);
}
-
- public WidgetDataEvents addControls( Composite parent, Listener statusListener){
-
+
+ public WidgetDataEvents addControls(Composite parent,
+ Listener statusListener) {
+
Composite configCom = new Composite(parent, SWT.NONE);
- GridLayout layout = new GridLayout(2, false);
+ GridLayout layout = new GridLayout(2, false);
configCom.setLayout(layout);
configCom.setLayoutData(new GridData(GridData.FILL_BOTH));
-
- final Button wsdlGen = new Button(configCom, SWT.CHECK|SWT.NONE);
+
+ final Button wsdlGen = new Button(configCom, SWT.CHECK | SWT.NONE);
GridData wsdlGenData = new GridData();
wsdlGenData.horizontalSpan = 2;
wsdlGen.setLayoutData(wsdlGenData);
wsdlGen.setText("Generete WSDL file");
- wsdlGen.setSelection(true);
- wsdlGen.addSelectionListener(new SelectionListener(){
+ wsdlGen.setSelection(true);
+ wsdlGen.addSelectionListener(new SelectionListener() {
+ public void widgetDefaultSelected(SelectionEvent e) {
- public void widgetDefaultSelected(SelectionEvent e) {
-
}
public void widgetSelected(SelectionEvent e) {
model.setGenWSDL(wsdlGen.getSelection());
-
+
}
-
+
});
return this;
}
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWSProviderInvokeConfigWidgetFactory.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWSProviderInvokeConfigWidgetFactory.java 2008-05-11 09:19:56 UTC (rev 8036)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWSProviderInvokeConfigWidgetFactory.java 2008-05-11 09:20:09 UTC (rev 8037)
@@ -20,9 +20,11 @@
import org.eclipse.wst.command.internal.env.ui.widgets.WidgetDataContributor;
import org.jboss.tools.ws.creation.core.commands.InitialCommand;
import org.jboss.tools.ws.creation.core.data.ServiceModel;
-import org.jboss.tools.ws.creation.ui.widgets.CodeGenConfigWidget;
import org.jboss.tools.ws.creation.ui.widgets.ProviderInvokeCodeGenConfigWidget;
+/**
+ * @author Grid Qian
+ */
public class JBossWSProviderInvokeConfigWidgetFactory implements
INamedWidgetContributorFactory {
17 years, 11 months
JBoss Tools SVN: r8036 - in trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core: classpath and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-05-11 05:19:56 -0400 (Sun, 11 May 2008)
New Revision: 8036
Modified:
trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/JbossWSCore.properties
trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/JbossWSCoreMessages.java
trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/classpath/JbossWSRuntimeClassPathInitializer.java
trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/command/JbossWSClassPathCommand.java
trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/command/JbossWSRuntimeCommand.java
trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/facet/delegate/JbossWSInstallRuntimeDelegate.java
trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/utils/JbossWSCoreUtils.java
Log:
JBIDE2047: modify for validating ws location
Modified: trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/JbossWSCore.properties
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/JbossWSCore.properties 2008-05-11 09:19:31 UTC (rev 8035)
+++ trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/JbossWSCore.properties 2008-05-11 09:19:56 UTC (rev 8036)
@@ -4,4 +4,9 @@
DIR_WEB_INF=WEB-INF
DIR_WEB_CONTENT=WebContent
ERROR_COPY=Exception while copy JBossWS jars
-WS_LOCATION=jbosswsruntimelocation
\ No newline at end of file
+WS_LOCATION=jbosswsruntimelocation
+JBOSSWS_RUNTIME_LIB=JbossWSRuntimeLib
+JBOSSWS_RUNTIME=JBoss WS Runtime
+JBOSSAS=JBOSS
+ERROR_WS_LOCATION=The JBoss WS Runtime Location is NULL
+ERROR_WS_CLASSPATH=A error comes up when create JBoss WS Classpath
\ No newline at end of file
Modified: trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/JbossWSCoreMessages.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/JbossWSCoreMessages.java 2008-05-11 09:19:31 UTC (rev 8035)
+++ trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/JbossWSCoreMessages.java 2008-05-11 09:19:56 UTC (rev 8036)
@@ -13,6 +13,9 @@
import org.eclipse.osgi.util.NLS;
+/**
+ * @author Grid Qian
+ */
public class JbossWSCoreMessages {
private static final String BUNDLE_NAME = "org.jboss.tools.ws.core.JbossWSCore"; //$NON-NLS-1$
@@ -28,6 +31,11 @@
public static String DIR_WEB_CONTENT;
public static String ERROR_COPY;
public static String WS_LOCATION;
+ public static String JBOSSWS_RUNTIME_LIB;
+ public static String JBOSSWS_RUNTIME;
+ public static String JBOSSAS;
+ public static String ERROR_WS_LOCATION;
+ public static String ERROR_WS_CLASSPATH;
static {
Modified: trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/classpath/JbossWSRuntimeClassPathInitializer.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/classpath/JbossWSRuntimeClassPathInitializer.java 2008-05-11 09:19:31 UTC (rev 8035)
+++ trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/classpath/JbossWSRuntimeClassPathInitializer.java 2008-05-11 09:19:56 UTC (rev 8036)
@@ -11,13 +11,15 @@
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.launching.JavaRuntime;
+import org.jboss.tools.ws.core.JbossWSCoreMessages;
import org.jboss.tools.ws.core.utils.JbossWSCoreUtils;
+/**
+ * @author Grid Qian
+ */
public class JbossWSRuntimeClassPathInitializer extends
ClasspathContainerInitializer {
- public static final String ID = "JbossWSRuntimeLib";
-
public JbossWSRuntimeClassPathInitializer() {
}
@@ -25,20 +27,13 @@
public void initialize(IPath containerPath, IJavaProject project)
throws CoreException {
- if (containerPath.segment(0).equals(ID)) {
+ if (containerPath.segment(0).equals(
+ JbossWSCoreMessages.JBOSSWS_RUNTIME_LIB)) {
JbossWSRuntimeClasspathContainer container = new JbossWSRuntimeClasspathContainer(
containerPath);
- System.out.println(project.getElementName()+ " before "+project.getRawClasspath().length);
- for(int i=0;i<project.getRawClasspath().length;i++){
- System.out.println(i+" classpath entry = " + project.getRawClasspath()[i]);
- }
JavaCore.setClasspathContainer(containerPath,
- new IJavaProject[] {project},
- new IClasspathContainer[] {container}, null);
- System.out.println(project.getElementName()+" after "+project.getRawClasspath().length);
- for(int i=0;i<project.getRawClasspath().length;i++){
- System.out.println(i+" classpath entry = " + project.getRawClasspath()[i]);
- }
+ new IJavaProject[] { project },
+ new IClasspathContainer[] { container }, null);
}
}
@@ -56,7 +51,7 @@
}
public String getDescription() {
- return "JBoss WS Runtime";
+ return JbossWSCoreMessages.JBOSSWS_RUNTIME;
}
public int getKind() {
@@ -69,24 +64,21 @@
public IClasspathEntry[] getClasspathEntries() {
if (entries == null) {
- loadClasspathEntries();
+ ArrayList<IClasspathEntry> list = new ArrayList<IClasspathEntry>();
+ IPath wsPath = JbossWSCoreUtils.getJbossWSRuntimePath();
+ if (wsPath != null) {
+ IPath libPath = wsPath.append(JbossWSCoreMessages.DIR_LIB);
+ list.addAll(Arrays.asList(getEntries(libPath)));
+ libPath = wsPath.append(JbossWSCoreMessages.DIR_CLIENT);
+ list.addAll(Arrays.asList(getEntries(libPath)));
+ entries = list.toArray(new IClasspathEntry[list.size()]);
+ }
if (entries == null)
return new IClasspathEntry[0];
}
return entries;
}
- private void loadClasspathEntries() {
- ArrayList<IClasspathEntry> list = new ArrayList<IClasspathEntry>();
- IPath libpath = JbossWSCoreUtils.getJbossLibPath();
- list.addAll(Arrays.asList(getEntries(libpath)));
- libpath = JbossWSCoreUtils.getJbossClientPath();
-
- list.addAll(Arrays.asList(getEntries(libpath)));
-
- entries = list.toArray(new IClasspathEntry[list.size()]);
- }
-
protected IClasspathEntry getEntry(IPath path) {
return JavaRuntime.newArchiveRuntimeClasspathEntry(path)
.getClasspathEntry();
@@ -98,7 +90,10 @@
for (int i = 0; i < files.length; i++) {
if (files[i].endsWith(".jar")) {
list.add(getEntry(folder.append(files[i])));
- }//else if(new File(files[i] instanceof Folder)){}
+ } else if (folder.append(files[i]).toFile().isDirectory()) {
+ list.addAll(Arrays.asList(getEntries(folder
+ .append(files[i]))));
+ }
}
return list.toArray(new IClasspathEntry[list.size()]);
}
Modified: trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/command/JbossWSClassPathCommand.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/command/JbossWSClassPathCommand.java 2008-05-11 09:19:31 UTC (rev 8035)
+++ trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/command/JbossWSClassPathCommand.java 2008-05-11 09:19:56 UTC (rev 8036)
@@ -16,10 +16,21 @@
import org.eclipse.core.runtime.IAdaptable;
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.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.JavaCore;
+import org.eclipse.jdt.core.JavaModelException;
+import org.eclipse.osgi.util.NLS;
import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation;
-import org.jboss.tools.ws.core.utils.JbossWSCoreUtils;
+import org.jboss.tools.ws.core.JbossWSCoreMessages;
+import org.jboss.tools.ws.core.utils.StatusUtils;
+/**
+ * @author Grid Qian
+ */
public class JbossWSClassPathCommand extends AbstractDataModelOperation {
IProject project;
@@ -36,8 +47,54 @@
public IStatus executeOverride(IProgressMonitor monitor) {
IStatus status = Status.OK_STATUS;
- JbossWSCoreUtils.addClassPath(project);
+ status = addClassPath(project);
return status;
}
+ public IStatus addClassPath(IProject project) {
+ IStatus status = Status.OK_STATUS;
+ try {
+
+ IJavaProject javaProject = JavaCore.create(project);
+
+ IClasspathEntry newClasspath = JavaCore.newContainerEntry(new Path(
+ JbossWSCoreMessages.JBOSSWS_RUNTIME_LIB));
+
+ IClasspathEntry[] oldClasspathEntries = javaProject
+ .readRawClasspath();
+
+ boolean isFolderInClassPathAlready = false;
+ for (int i = 0; i < oldClasspathEntries.length
+ && !isFolderInClassPathAlready; i++) {
+ if (oldClasspathEntries[i].getPath().equals(
+ project.getFullPath())
+ || oldClasspathEntries[i].getPath().lastSegment()
+ .toUpperCase().contains(
+ JbossWSCoreMessages.JBOSSAS)) {
+ isFolderInClassPathAlready = true;
+ break;
+ }
+ }
+
+ if (!isFolderInClassPathAlready) {
+
+ IClasspathEntry[] newClasspathEntries = new IClasspathEntry[oldClasspathEntries.length + 1];
+ for (int i = 0; i < oldClasspathEntries.length; i++) {
+ newClasspathEntries[i] = oldClasspathEntries[i];
+ }
+ newClasspathEntries[oldClasspathEntries.length] = newClasspath;
+
+ javaProject.setRawClasspath(newClasspathEntries,
+ new NullProgressMonitor());
+ }
+ } catch (JavaModelException e) {
+ status = StatusUtils.errorStatus(NLS.bind(
+ JbossWSCoreMessages.ERROR_COPY, new String[] { e
+ .getLocalizedMessage() }), e);
+ return status;
+ }
+
+ return status;
+ }
+
}
\ No newline at end of file
Modified: trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/command/JbossWSRuntimeCommand.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/command/JbossWSRuntimeCommand.java 2008-05-11 09:19:31 UTC (rev 8035)
+++ trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/command/JbossWSRuntimeCommand.java 2008-05-11 09:19:56 UTC (rev 8036)
@@ -18,10 +18,15 @@
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
+import org.eclipse.osgi.util.NLS;
import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation;
import org.jboss.tools.ws.core.JbossWSCoreMessages;
import org.jboss.tools.ws.core.utils.JbossWSCoreUtils;
+import org.jboss.tools.ws.core.utils.StatusUtils;
+/**
+ * @author Grid Qian
+ */
public class JbossWSRuntimeCommand extends AbstractDataModelOperation {
IProject project;
@@ -40,14 +45,28 @@
IStatus status = Status.OK_STATUS;
// copy lib jars to project's folder
- IPath libPath = JbossWSCoreUtils.getJbossLibPath();
+ IPath wsPath = JbossWSCoreUtils.getJbossWSRuntimePath();
+ IPath libPath = null;
+ try {
+ libPath = wsPath.append(JbossWSCoreMessages.DIR_LIB);
+ } catch (Exception e) {
+ status = StatusUtils.errorStatus(NLS.bind(
+ JbossWSCoreMessages.ERROR_WS_LOCATION, new String[] { e
+ .getLocalizedMessage() }), e);
+ return status;
+ }
IPath targetPath = JbossWSCoreUtils.pathToWebProjectContainer(project
.toString());
- targetPath = targetPath
- .append(JbossWSCoreMessages.DIR_WEB_INF).append(
- JbossWSCoreMessages.DIR_LIB);
+ targetPath = targetPath.append(JbossWSCoreMessages.DIR_WEB_INF).append(
+ JbossWSCoreMessages.DIR_LIB);
status = JbossWSCoreUtils.copy(libPath, targetPath);
-
+
+ if (status == Status.OK_STATUS) {
+ // copy client jars to project's folder
+ libPath = wsPath.append(JbossWSCoreMessages.DIR_CLIENT);
+ status = JbossWSCoreUtils.copy(libPath, targetPath);
+ }
+
return status;
}
Modified: trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/facet/delegate/JbossWSInstallRuntimeDelegate.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/facet/delegate/JbossWSInstallRuntimeDelegate.java 2008-05-11 09:19:31 UTC (rev 8035)
+++ trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/facet/delegate/JbossWSInstallRuntimeDelegate.java 2008-05-11 09:19:56 UTC (rev 8036)
@@ -19,6 +19,9 @@
import org.jboss.tools.ws.core.JbossWSCoreMessages;
import org.jboss.tools.ws.core.command.JbossWSClassPathCommand;
+/**
+ * @author Grid Qian
+ */
public class JbossWSInstallRuntimeDelegate implements IDelegate {
public void execute(IProject project, IProjectFacetVersion arg1, Object arg2,
Modified: trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/utils/JbossWSCoreUtils.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/utils/JbossWSCoreUtils.java 2008-05-11 09:19:31 UTC (rev 8035)
+++ trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/utils/JbossWSCoreUtils.java 2008-05-11 09:19:56 UTC (rev 8036)
@@ -39,6 +39,9 @@
import org.jboss.tools.ws.core.JbossWSCoreMessages;
import org.jboss.tools.ws.core.JbossWSCorePlugin;
+/**
+ * @author Grid Qian
+ */
public class JbossWSCoreUtils {
public static IPath pathToWebProjectContainer(String project) {
@@ -217,83 +220,14 @@
return file;
}
}
-
- public static IStatus addClassPath(IProject project) {
- IStatus status = Status.OK_STATUS;
- try {
-
- IJavaProject javaProject = JavaCore.create(project);
-
- IClasspathEntry newClasspath = JavaCore
- .newContainerEntry(new Path("JbossWSRuntimeLib"));
-
- IClasspathEntry[] oldClasspathEntries = javaProject
- .readRawClasspath();
-
- boolean isFolderInClassPathAlready = false;
- for (int i = 0; i < oldClasspathEntries.length
- && !isFolderInClassPathAlready; i++) {
- if (oldClasspathEntries[i].getPath().equals(
- project.getFullPath())) {
- isFolderInClassPathAlready = true;
- break;
- }
- }
-
- if (!isFolderInClassPathAlready) {
-
- IClasspathEntry[] newClasspathEntries = new IClasspathEntry[oldClasspathEntries.length + 1];
- for (int i = 0; i < oldClasspathEntries.length; i++) {
- newClasspathEntries[i] = oldClasspathEntries[i];
- }
- newClasspathEntries[oldClasspathEntries.length] = newClasspath;
-
- javaProject.setRawClasspath(newClasspathEntries,
- new NullProgressMonitor());
- }
- } catch (JavaModelException e) {
- status = StatusUtils.errorStatus(NLS.bind(
- JbossWSCoreMessages.ERROR_COPY, new String[] { e
- .getLocalizedMessage() }), e);
- return status;
- }
-
- return status;
- }
-
- public static IPath getJbossLibPath() {
- IPreferenceStore ps = JbossWSCorePlugin.getDefault()
- .getPreferenceStore();
- String runtimeLocation = ps.getString(JbossWSCoreMessages.WS_LOCATION);
-
- if(runtimeLocation == null || runtimeLocation.equals("")){
-
- }
-
- IPath libPath = new Path(runtimeLocation);
- return libPath.append(JbossWSCoreMessages.DIR_LIB);
- }
- public static IPath getJbossClientPath() {
- IPreferenceStore ps = JbossWSCorePlugin.getDefault()
- .getPreferenceStore();
- String runtimeLocation = ps.getString(JbossWSCoreMessages.WS_LOCATION);
-
- if(runtimeLocation == null || runtimeLocation.equals("")){
-
- }
-
- IPath libPath = new Path(runtimeLocation);
- return libPath.append(JbossWSCoreMessages.DIR_CLIENT);
- }
-
public static IPath getJbossWSRuntimePath() {
IPreferenceStore ps = JbossWSCorePlugin.getDefault()
.getPreferenceStore();
String runtimeLocation = ps.getString(JbossWSCoreMessages.WS_LOCATION);
if(runtimeLocation == null || runtimeLocation.equals("")){
-
+ return null;
}
return new Path(runtimeLocation);
}
17 years, 11 months
JBoss Tools SVN: r8035 - trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-05-11 05:19:31 -0400 (Sun, 11 May 2008)
New Revision: 8035
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/WSProviderInvokeCommand.java
Log:
JBIDE2047: modify for validating ws location
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/WSProviderInvokeCommand.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/WSProviderInvokeCommand.java 2008-05-09 17:16:41 UTC (rev 8034)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/WSProviderInvokeCommand.java 2008-05-11 09:19:31 UTC (rev 8035)
@@ -17,6 +17,9 @@
import org.jboss.tools.ws.creation.core.data.ServiceModel;
import org.jboss.tools.ws.creation.core.utils.JBossWSCreationUtils;
+/**
+ * @author Grid Qian
+ */
public class WSProviderInvokeCommand extends AbstractDataModelOperation{
private ServiceModel model;
17 years, 11 months
JBoss Tools SVN: r8034 - in trunk/documentation/jbosstools-jdocbook-style: src/main/css/css and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: newtonm
Date: 2008-05-09 13:16:41 -0400 (Fri, 09 May 2008)
New Revision: 8034
Added:
trunk/documentation/jbosstools-jdocbook-style/src/main/css/css/tools.css
Removed:
trunk/documentation/jbosstools-jdocbook-style/src/main/css/css/html.css
trunk/documentation/jbosstools-jdocbook-style/src/main/css/script/toggle.js
trunk/documentation/jbosstools-jdocbook-style/src/main/images/images/bg_table.gif
trunk/documentation/jbosstools-jdocbook-style/src/main/images/images/ico_important.gif
trunk/documentation/jbosstools-jdocbook-style/src/main/images/images/ico_note.gif
trunk/documentation/jbosstools-jdocbook-style/src/main/images/images/ico_tip.gif
Modified:
trunk/documentation/jbosstools-jdocbook-style/pom.xml
Log:
Changed this plugin to a CSS customization layer on top of the JBoss.org CSS.
Modified: trunk/documentation/jbosstools-jdocbook-style/pom.xml
===================================================================
--- trunk/documentation/jbosstools-jdocbook-style/pom.xml 2008-05-09 17:16:03 UTC (rev 8033)
+++ trunk/documentation/jbosstools-jdocbook-style/pom.xml 2008-05-09 17:16:41 UTC (rev 8034)
@@ -7,15 +7,15 @@
<groupId>org.jboss.tools</groupId>
<artifactId>jbosstools-jdocbook-style</artifactId>
<packaging>jdocbook-style</packaging>
- <version>1.0.0</version>
+ <version>1.0.0-SNAPSHOT</version>
<name>JBoss Tools Documentation Styles</name>
<description>The JDocBook styles for the JBoss Tools Documentation.</description>
- <url>http://labs.jboss.com/tools</url>
+ <url>http://www.jboss.org/tools</url>
<organization>
<name>JBoss.org</name>
- <url>http://jboss.org</url>
+ <url>http://www.jboss.org</url>
</organization>
<contributors>
@@ -30,6 +30,11 @@
</contributor>
</contributors>
+ <scm>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/jbosstools/trunk/documentation/jbosst...</developerConnection>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/jbosstools/trunk/documentation/jbo...</connection>
+ </scm>
+
<build>
<plugins>
<plugin>
Deleted: trunk/documentation/jbosstools-jdocbook-style/src/main/css/css/html.css
===================================================================
--- trunk/documentation/jbosstools-jdocbook-style/src/main/css/css/html.css 2008-05-09 17:16:03 UTC (rev 8033)
+++ trunk/documentation/jbosstools-jdocbook-style/src/main/css/css/html.css 2008-05-09 17:16:41 UTC (rev 8034)
@@ -1,409 +0,0 @@
-* {
- LINE-HEIGHT: 20px; FONT-FAMILY: verdana, helvetica, sans-serif
-}
-DIV.navheader TABLE, DIV.navheader TABLE td, DIV.navfooter TABLE, DIV.navfooter TABLE td{
- BORDER-RIGHT: 0px; BORDER-TOP: 0px; MARGIN: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px; FONT-SIZE: 11px; padding : 0px;
-}
-A {
- COLOR: #2a7bd4; FONT-FAMILY: verdana, helvetica, sans-serif
-}
-A:hover {
- COLOR: #003399; FONT-FAMILY: verdana, helvetica, sans-serif
-}
-A:visited {
- COLOR: #888888; FONT-FAMILY: verdana, helvetica, sans-serif
-}
-P {
- FONT-SIZE: 12px; COLOR: #000000; margin : 5px 0px 5px 0px;
-}
-OL {
- FONT-SIZE: 12px; COLOR: #000000; margin-top : 5px; margin-bottom : 5px;
-}
-UL {
- FONT-SIZE: 12px; COLOR: #000000; margin-top : 5px; margin-bottom : 5px;
-}
-LI {
- FONT-SIZE: 12px; COLOR: #000000; margin-top : 5px; margin-bottom : 5px;
-}
-DL {
- FONT-SIZE: 12px; COLOR: #000000; margin-top : 5px; margin-bottom : 5px;
-}
-DT {
- FONT-SIZE: 12px; COLOR: #000000; margin-top : 5px; margin-bottom : 5px;
-}
-DD {
- FONT-SIZE: 12px; COLOR: #000000; margin-top : 5px; margin-bottom : 5px;
-}
-BLOCKQUOTE {
- FONT-SIZE: 12px; COLOR: #000000
-}
-TD {
- COLOR: #000000
-}
-TH {
- COLOR: #000000
-}
-SPAN {
- COLOR: #000000
-}
-SPAN.property {
- COLOR: #008cca;
-}
-SPAN.italic {
- FONT-STYLE: italic;
-}
-
-BLOCKQUOTE {
- MARGIN-RIGHT: 0px
-}
-
-P.title {
- MARGIN-BOTTOM: 5px;
- MARGIN-top: 20px;
-}
-
-div.book div.chapter .title {
- text-align: left;
-}
-
-
-div.book .title {
- text-align: center;
-}
-
-div.book .subtitle {
- text-align: center;
-}
-
-.mediaobject{
- padding : 5px 10px 5px 35px;
-}
-H1 {
- MARGIN: 0px; FONT-SIZE: 22px; COLOR: #ff6600; PADDING: 45px 0px 10px 0px;
-}
-H2 {
- MARGIN: 0px; FONT-SIZE: 18px; COLOR: #2a7bd4; PADDING: 25px 0px 10px 0px;
-}
-H3 {
- MARGIN: 0px; FONT-SIZE: 15px; COLOR: #000000; PADDING: 20px 0px 10px 0px;
-}
-H4 {
- MARGIN: 0px; FONT-SIZE: 12px; COLOR: #000000; PADDING: 15px 0px 10px 0px;
-}
-H5 {
- MARGIN: 0px; FONT-SIZE: 12px; COLOR: #000000; PADDING: 15px 0px 10px 0px;
-}
-H6 {
- MARGIN: 0px; FONT-SIZE: 11px; COLOR: #000000; PADDING: 5px 0px 0px 0px;
-}
-
-div.book div.section div.mediaobject{
-text-align:left;
-}
-
-
-div.book div.mediaobject{
-text-align:center;
-}
-
-div.mediaobject, div.mediaobject img *{
-text-align:left;
-
-}
-
-DIV.note{
- BORDER: #CECECE 1px solid; PADDING: 3px 10px 10px 50px; line-height : 14px; MARGIN: 10px 0px 10px 0px; FONT-SIZE: 11px; WIDTH: 500px; BACKGROUND-COLOR: #FFFDD3;
- background-image : url('images/ico_note.gif'); background-repeat : no-repeat; background-position :top left;
-}
-
-DIV.note *{
- line-height : 14px;
-}
-
-.note P {
- MARGIN-TOP: 0px; MARGIN-BOTTOM: 1em; PADDING-BOTTOM: 0px; PADDING-TOP: 0px
-}
-.important P {
- MARGIN-TOP: 0px; MARGIN-BOTTOM: 1em; PADDING-BOTTOM: 0px; PADDING-TOP: 0px
-}
-DIV.important {
- BORDER: #CECECE 1px solid; PADDING: 3px 10px 10px 50px; line-height : 14px; MARGIN: 10px 0px 10px 0px; FONT-SIZE: 11px; WIDTH: 500px; BACKGROUND-COLOR: #fee3d9;
- background-image : url('images/ico_important.gif'); background-repeat : no-repeat; background-position :top left;
-}
-
-DIV.important *{
- line-height : 14px;
-}
-
-.important pre.XML {
-PADDING: 1px 1px 1px 10px;
-
-}
-
-DIV.tip {
- BORDER: #CECECE 1px solid; PADDING: 3px 10px 10px 50px; line-height : 14px; MARGIN: 10px 0px 10px 0px; FONT-SIZE: 11px; WIDTH: 500px; BACKGROUND-COLOR: #CFE3FF; background-repeat : no-repeat; background-position :top left; background-image : url('images/ico_tip.gif');
-}
-
-DIV.tip *{
- line-height : 14px;
-}
-
-.tip pre.XML {
-PADDING: 1px 1px 1px 10px;
-
-}
-
-TABLE {
- BORDER: #cccccc 1px solid; FONT-SIZE: 11px; BORDER-COLLAPSE: collapse; border-spacing: 0; empty-cells: hide; margin-bottom : 10px;
-}
-
-table *{
- line-height : 14px;
-}
-
-
-.table TH {
- WHITE-SPACE: nowrap; BACKGROUND-COLOR: #EEF5FF; TEXT-ALIGN: center; BORDER-BOTTOM: #CAE1FF 2px solid; PADDING: 2px 8px 2px 8px;
- background-image : url('images/bg_table.gif'); background-repeat : repeat-x; background-position :top left;
-}
-TD {
- PADDING: 4px 8px 4px 8px; BORDER-BOTTOM: #cccccc 1px dotted; BORDER-right: #cccccc 1px dotted;
-}
-P.copyright {
- TEXT-ALIGN: center
-}
-TT {
- FONT-SIZE: 90%; COLOR: #000000; FONT-FAMILY: "Courier New", Courier, monospace
-}
-DL {
- MARGIN-BOTTOM: 6px; MARGIN-LEFT: 8px
-}
-DT {
- MARGIN-BOTTOM: 6px; MARGIN-LEFT: 8px
-}
-DD {
- MARGIN-BOTTOM: 6px; MARGIN-LEFT: 8px
-}
-PRE {
- BORDER: #cccccc 1px solid; PADDING: 5px 15px 5px 25px; FONT-SIZE: 11px; BACKGROUND-COLOR: #f5f5f5;
-}
-HR {
- BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; WIDTH: 100%; COLOR: #cccccc; PADDING-TOP: 0px; HEIGHT: 1px; BACKGROUND-COLOR: #cccccc; BORDER-RIGHT-WIDTH: 0px
-}
-.variablelist {
- PADDING-BOTTOM: 10px; MARGIN: 0px; PADDING-TOP: 10px
-}
-.itemizedlist {
- FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px;TEXT-ALIGN: justify
-}
-.term {
- FONT-WEIGHT: bold
-}
-PRE.JAVA {
- LINE-HEIGHT: 0px
-}
-PRE.XML {
- LINE-HEIGHT: 0px
-}
-PRE.JSP {
- LINE-HEIGHT: 0px
-}
-PRE.XHTML {
- LINE-HEIGHT: 0px
-}
-.java_type {
- COLOR: #008cca
-}
-.java_keyword {
- FONT-WEIGHT: bold; COLOR: rgb(0,0,0)
-}
-.java_javadoc_comment {
- COLOR: rgb(147,147,147); FONT-STYLE: italic; BACKGROUND-COLOR: rgb(247,247,247)
-}
-.java_comment {
- COLOR: rgb(147,147,147); BACKGROUND-COLOR: rgb(247,247,247)
-}
-.java_operator {
- COLOR: #003399
-}
-.java_plain {
- COLOR: rgb(0,0,0)
-}
-.java_literal {
- COLOR: #ff6600
-}
-PRE CODE {
- FONT-SIZE: 12px; COLOR: rgb(0,0,0); FONT-FAMILY: monospace; WHITE-SPACE: nowrap
-}
-.java_javadoc_tag {
- FONT-WEIGHT: bold; COLOR: rgb(147,147,147); FONT-STYLE: italic; BACKGROUND-COLOR: rgb(247,247,247)
-}
-.java_separator {
- COLOR: #008cca
-}
-.xml_plain {
- COLOR: rgb(0,0,0)
-}
-.xml_tag_name {
- COLOR: #008cca
-}
-.xml_comment {
- COLOR: rgb(147,147,147); BACKGROUND-COLOR: rgb(247,247,247)
-}
-.xml_tag_symbols {
- COLOR: #008cca
-}
-.xml_rife_tag {
- COLOR: rgb(0,0,0); BACKGROUND-COLOR: rgb(228,230,160)
-}
-.xml_attribute_value {
- COLOR: #ff6600
-}
-.xml_attribute_name {
- FONT-WEIGHT: bold; COLOR: rgb(0,0,0)
-}
-.xml_char_data {
- COLOR: rgb(0,0,0)
-}
-.xml_rife_name {
- COLOR: #008cca; BACKGROUND-COLOR: rgb(228,230,160)
-}
-.xml_processing_instruction {
- FONT-WEIGHT: bold; COLOR: rgb(0,0,0); FONT-STYLE: italic
-}
-TD.java {
- VERTICAL-ALIGN: top; LINE-HEIGHT: 10px
-}
-TD.java-ln {
- VERTICAL-ALIGN: top; LINE-HEIGHT: 10px
-}
-TT.java {
- MARGIN-BOTTOM: 0em; LINE-HEIGHT: 10px
-}
-TT.java-ln {
- MARGIN-BOTTOM: 0em; LINE-HEIGHT: 10px
-}
-PRE.java {
- MARGIN-BOTTOM: 0em; LINE-HEIGHT: 10px
-}
-PRE.java-ln {
- MARGIN-BOTTOM: 0em; LINE-HEIGHT: 10px
-}
-TD.java-ln {
- LINE-HEIGHT: 10px; TEXT-ALIGN: right
-}
-TT.java-ln {
- COLOR: #888888; LINE-HEIGHT: 10px
-}
-PRE.java-ln {
- COLOR: #888888; LINE-HEIGHT: 10px
-}
-SPAN.java0 {
- FONT-SIZE: 8pt; COLOR: #ffffff; LINE-HEIGHT: 10px
-}
-SPAN.java1 {
- FONT-SIZE: 8pt; COLOR: #808080
-}
-SPAN.java2 {
- FONT-SIZE: 8pt; COLOR: #3f7f5f; LINE-HEIGHT: 10px
-}
-SPAN.java3 {
- FONT-SIZE: 8pt; COLOR: #3f7f5f; LINE-HEIGHT: 10px
-}
-SPAN.java4 {
- FONT-WEIGHT: bold; FONT-SIZE: 8pt; COLOR: #ff6600; LINE-HEIGHT: 10px
-}
-SPAN.java5 {
- FONT-SIZE: 8pt; COLOR: #2a00ff; LINE-HEIGHT: 10px
-}
-SPAN.java6 {
- FONT-SIZE: 8pt; COLOR: #990000; LINE-HEIGHT: 10px
-}
-SPAN.java7 {
- FONT-SIZE: 8pt; COLOR: #990000; LINE-HEIGHT: 10px
-}
-SPAN.java8 {
- FONT-SIZE: 8pt; COLOR: #000000; LINE-HEIGHT: 10px
-}
-SPAN.java9 {
- FONT-WEIGHT: bold; FONT-SIZE: 8pt; COLOR: #ff6600; LINE-HEIGHT: 10px
-}
-SPAN.java10 {
- FONT-SIZE: 8pt; COLOR: #000000; LINE-HEIGHT: 10px
-}
-SPAN.java11 {
- FONT-SIZE: 8pt; COLOR: #7f9fbf; LINE-HEIGHT: 10px
-}
-SPAN.java12 {
- FONT-SIZE: 8pt; COLOR: #7f7f9f; LINE-HEIGHT: 10px
-}
-SPAN.java13 {
- FONT-SIZE: 8pt; COLOR: #3f3fbf; LINE-HEIGHT: 10px
-}
-SPAN.java14 {
- FONT-SIZE: 8pt; COLOR: #3f5fbf; LINE-HEIGHT: 10px
-}
-SPAN.java15 {
- FONT-SIZE: 8pt; COLOR: #ff6100; LINE-HEIGHT: 10px
-}
-SPAN.java16 {
- FONT-SIZE: 8pt; COLOR: #646464; LINE-HEIGHT: 10px
-}
-
-.expand_collapse_toc {
- clear:both;
- float:left;
- font-family:monospace;
- width:20px;
- color: #2A7BD4;
- cursor: pointer;
-}
-
-pre.CSS, pre.css {
- line-height:0px;
- margin-bottom:0em;
-}
-.css_normal {
- line-height:0px;
- color:#000000;
-}
-.css_colon {
-color:#000000;
-}
-.css_semi_colon {
-color:#000000;
-}
-.css_curly_brace {
-color:#000000;
-}
-.css_comment {
-color:#939393;
-}
-.css_error {
-color:#BF3F3F;
-}
-.css_selector {
-color:#008cca;
-}
-.css_null {
-color:#008cca;
-}
-.css_property_name {
-color:#000000;
-font-weight:bold;
-}
-.css_property_value {
-color:#ff6600;
-}
-.css_uri {
-color:#2A00FF;
-}
-.css_atmark_rule {
-color:#3F7F7F;
-}
-.css_media {
-color:#336699;
-}
-.css_string {
-color:#336699;
-}
\ No newline at end of file
Added: trunk/documentation/jbosstools-jdocbook-style/src/main/css/css/tools.css
===================================================================
--- trunk/documentation/jbosstools-jdocbook-style/src/main/css/css/tools.css (rev 0)
+++ trunk/documentation/jbosstools-jdocbook-style/src/main/css/css/tools.css 2008-05-09 17:16:41 UTC (rev 8034)
@@ -0,0 +1 @@
+@import url("jbossorg.css");
Deleted: trunk/documentation/jbosstools-jdocbook-style/src/main/css/script/toggle.js
===================================================================
--- trunk/documentation/jbosstools-jdocbook-style/src/main/css/script/toggle.js 2008-05-09 17:16:03 UTC (rev 8033)
+++ trunk/documentation/jbosstools-jdocbook-style/src/main/css/script/toggle.js 2008-05-09 17:16:41 UTC (rev 8034)
@@ -1,43 +0,0 @@
-function dbToggle(node, expandText, collapseText) {
- var dt = node.parentNode;
- if (dt.nodeName.toLowerCase() == 'dt') {
- var dd = dt.nextSibling;
-
- if (dd && dd.nodeName.toLowerCase() == 'dd') {
-
- if (dd.style && dd.style.display == 'none') {
- dd.style.display = '';
- node.innerHTML = collapseText;
- } else {
- dd.style.display = 'none';
- node.innerHTML = expandText;
- }
-
- }
-
- }
-
-}
-
-var toc = {
- expand: function(node) {
- toc.show(toc.findDD(node))
- toc.hide(node);
- toc.show(node.nextSibling);
- },
- collapse : function(node) {
- toc.hide(toc.findDD(node))
- toc.hide(node);
- toc.show(node.previousSibling);
- },
- findDD : function(node) {
- return node.parentNode.nextSibling;
- },
-
- hide: function(node) {
- node.style.display = "none";
- },
- show: function(node) {
- node.style.display = "";
- }
-};
\ No newline at end of file
Deleted: trunk/documentation/jbosstools-jdocbook-style/src/main/images/images/bg_table.gif
===================================================================
(Binary files differ)
Deleted: trunk/documentation/jbosstools-jdocbook-style/src/main/images/images/ico_important.gif
===================================================================
(Binary files differ)
Deleted: trunk/documentation/jbosstools-jdocbook-style/src/main/images/images/ico_note.gif
===================================================================
(Binary files differ)
Deleted: trunk/documentation/jbosstools-jdocbook-style/src/main/images/images/ico_tip.gif
===================================================================
(Binary files differ)
17 years, 11 months
JBoss Tools SVN: r8033 - in trunk/documentation/jbosstools-docbook-xslt: src/main/resources/xslt/org/jboss and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: newtonm
Date: 2008-05-09 13:16:03 -0400 (Fri, 09 May 2008)
New Revision: 8033
Added:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/common.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/eclipse.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/pdf.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-single.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml.xsl
Removed:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/collapsing-navigation.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/eclipse.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/fopdf.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/highlight.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/html.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/html_chunk.xsl
Modified:
trunk/documentation/jbosstools-docbook-xslt/pom.xml
Log:
Changed this plugin into an XSL customization layer on top of the JBoss.org default XSL.
Modified: trunk/documentation/jbosstools-docbook-xslt/pom.xml
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/pom.xml 2008-05-09 15:33:47 UTC (rev 8032)
+++ trunk/documentation/jbosstools-docbook-xslt/pom.xml 2008-05-09 17:16:03 UTC (rev 8033)
@@ -7,11 +7,11 @@
<groupId>org.jboss.tools</groupId>
<artifactId>jbosstools-docbook-xslt</artifactId>
<packaging>jar</packaging>
- <version>1.0.0</version>
+ <version>1.0.0-SNAPSHOT</version>
<name>JBoss Tools DocBook XSLT</name>
<description>The main project to transform DocBook XML into XHTML and other formats for JBoss Tools Documentation.</description>
- <url>http://labs.jboss.com/tools/</url>
+ <url>http://www.jboss.org/tools/</url>
<contributors>
<contributor>
@@ -25,23 +25,47 @@
</contributor>
</contributors>
+ <scm>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/jbosstools/trunk/documentation/jbosst...</developerConnection>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/jbosstools/trunk/documentation/jbo...</connection>
+ </scm>
+
<dependencies>
<dependency>
- <groupId>net.sf.docbook</groupId>
- <artifactId>docbook</artifactId>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-docbook-xslt</artifactId>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
- <groupId>net.sf.docbook</groupId>
- <artifactId>docbook</artifactId>
- <version>1.72.0</version>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-docbook-xslt</artifactId>
+ <version>1.1.0.Beta1</version>
</dependency>
</dependencies>
</dependencyManagement>
+ <build>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.wagon</groupId>
+ <artifactId>wagon-webdav</artifactId>
+ <version>1.0-beta-2</version>
+ </extension>
+ </extensions>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.1.0-200803311251UTC-MPJDOCBOOK-8</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
<distributionManagement>
<repository>
<!-- Copy the dist to the local checkout of the JBoss maven2 repo ${maven.repository.root} -->
Deleted: trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/collapsing-navigation.xsl
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/collapsing-navigation.xsl 2008-05-09 15:33:47 UTC (rev 8032)
+++ trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/collapsing-navigation.xsl 2008-05-09 17:16:03 UTC (rev 8033)
@@ -1,199 +0,0 @@
-<!DOCTYPE xsl:stylesheet>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0" xmlns="http://www.w3.org/TR/xhtml1/transitional"
- exclude-result-prefixes="#default">
-
- <xsl:template name="subtoc">
- <xsl:param name="toc-context" select="." />
- <xsl:param name="nodes" select="NOT-AN-ELEMENT" />
-
- <xsl:variable name="toc.mark">
- <xsl:apply-templates mode="toc.mark" select="." />
- </xsl:variable>
-
- <xsl:variable name="should.collapse.list"
- select="string-length(string($toc.mark)) > 0">
- </xsl:variable>
-
- <xsl:variable name="toc.on.plus.mark">
- <xsl:choose>
- <xsl:when test="$should.collapse.list">
- <xsl:copy-of select="$toc.mark"></xsl:copy-of>
- </xsl:when>
- <xsl:otherwise>
- <span class="expand_collapse_toc" style="visibility:hidden;">  </span>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="nodes.plus" select="$nodes | qandaset" />
-
- <xsl:variable name="subtoc">
- <xsl:element name="{$toc.list.type}">
- <xsl:choose>
- <xsl:when test="$qanda.in.toc != 0">
- <xsl:apply-templates mode="toc"
- select="$nodes.plus">
- <xsl:with-param name="toc-context"
- select="$toc-context" />
- </xsl:apply-templates>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates mode="toc"
- select="$nodes">
- <xsl:with-param name="toc-context"
- select="$toc-context" />
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:element>
- </xsl:variable>
-
- <xsl:variable name="depth">
- <xsl:choose>
- <xsl:when test="local-name(.) = 'section'">
- <xsl:value-of select="count(ancestor::section) + 1" />
- </xsl:when>
- <xsl:when test="local-name(.) = 'sect1'">1</xsl:when>
- <xsl:when test="local-name(.) = 'sect2'">2</xsl:when>
- <xsl:when test="local-name(.) = 'sect3'">3</xsl:when>
- <xsl:when test="local-name(.) = 'sect4'">4</xsl:when>
- <xsl:when test="local-name(.) = 'sect5'">5</xsl:when>
- <xsl:when test="local-name(.) = 'refsect1'">1</xsl:when>
- <xsl:when test="local-name(.) = 'refsect2'">2</xsl:when>
- <xsl:when test="local-name(.) = 'refsect3'">3</xsl:when>
- <xsl:when test="local-name(.) = 'simplesect'">
- <!-- sigh... -->
- <xsl:choose>
- <xsl:when test="local-name(..) = 'section'">
- <xsl:value-of
- select="count(ancestor::section)" />
- </xsl:when>
- <xsl:when test="local-name(..) = 'sect1'">
- 2
- </xsl:when>
- <xsl:when test="local-name(..) = 'sect2'">
- 3
- </xsl:when>
- <xsl:when test="local-name(..) = 'sect3'">
- 4
- </xsl:when>
- <xsl:when test="local-name(..) = 'sect4'">
- 5
- </xsl:when>
- <xsl:when test="local-name(..) = 'sect5'">
- 6
- </xsl:when>
- <xsl:when test="local-name(..) = 'refsect1'">
- 2
- </xsl:when>
- <xsl:when test="local-name(..) = 'refsect2'">
- 3
- </xsl:when>
- <xsl:when test="local-name(..) = 'refsect3'">
- 4
- </xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>0</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="depth.from.context"
- select="count(ancestor::*)-count($toc-context/ancestor::*)" />
-
- <xsl:variable name="subtoc.list">
- <xsl:choose>
- <xsl:when test="$toc.dd.type = ''">
- <xsl:copy-of select="$subtoc" />
- </xsl:when>
- <xsl:otherwise>
- <xsl:element name="{$toc.dd.type}">
- <xsl:if test="$should.collapse.list">
- <xsl:attribute name="style">display:none;</xsl:attribute>
- </xsl:if>
- <xsl:copy-of select="$subtoc" />
- </xsl:element>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
-
- <xsl:element name="{$toc.listitem.type}">
-
- <xsl:copy-of select="$toc.on.plus.mark"></xsl:copy-of>
- <xsl:call-template name="toc.line">
- <xsl:with-param name="toc-context"
- select="$toc-context" />
- </xsl:call-template>
-
- <xsl:if
- test="$toc.listitem.type = 'li'
- and $toc.section.depth > $depth and
- ( ($qanda.in.toc = 0 and count($nodes)>0) or
- ($qanda.in.toc != 0 and count($nodes.plus)>0) )
- and $toc.max.depth > $depth.from.context">
- <xsl:copy-of select="$subtoc.list" />
- </xsl:if>
- </xsl:element>
- <xsl:if
- test="$toc.listitem.type != 'li'
- and $toc.section.depth > $depth and
- ( ($qanda.in.toc = 0 and count($nodes)>0) or
- ($qanda.in.toc != 0 and count($nodes.plus)>0) )
- and $toc.max.depth > $depth.from.context">
- <xsl:copy-of select="$subtoc.list" />
- </xsl:if>
- </xsl:template>
-
- <xsl:template match="section|chapter" mode="toc.mark">
- <xsl:variable name="subchapters">
- <xsl:apply-templates select="child::section" mode="toc" />
- </xsl:variable>
-
- <xsl:if test="string-length(string($subchapters))">
- <xsl:call-template name="toggle.expand.mark" />
- <xsl:call-template name="toggle.collapse.mark" />
- </xsl:if>
-
- </xsl:template>
-
- <xsl:template match="*" mode="toc.mark">
-
- </xsl:template>
-
- <xsl:template name="user.head.content">
- <xsl:param name="node" select="." />
- <script type="text/javascript" src="script/toggle.js"></script>
- </xsl:template>
-
- <xsl:template name="toggle.expand.mark">
- <xsl:param name="visible" select="true()"/>
- <span onclick="toc.expand(this)" class="expand_collapse_toc">
- <xsl:call-template name="render.display">
- <xsl:with-param name="visible" select="$visible" />
- </xsl:call-template>
- <xsl:text>+</xsl:text>
- </span>
- </xsl:template>
-
- <xsl:template name="toggle.collapse.mark">
- <xsl:param name="visible" select="false()"/>
- <span onclick="toc.collapse(this)" class="expand_collapse_toc">
- <xsl:call-template name="render.display">
- <xsl:with-param name="visible" select="$visible" />
- </xsl:call-template>
- <xsl:text>-</xsl:text>
- </span>
- </xsl:template>
-
- <xsl:template name="render.display">
- <xsl:param name="visible" select="false()"/>
- <xsl:attribute name="style">
- <xsl:if test="not($visible)">display:none;</xsl:if>
- </xsl:attribute>
- </xsl:template>
-
-
-</xsl:stylesheet>
Deleted: trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/eclipse.xsl
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/eclipse.xsl 2008-05-09 15:33:47 UTC (rev 8032)
+++ trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/eclipse.xsl 2008-05-09 17:16:03 UTC (rev 8033)
@@ -1,185 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE xsl:stylesheet [
-<!ENTITY db_xsl_path "../../support/docbook-xsl/">
-]>
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0"
- xmlns="http://www.w3.org/TR/xhtml1/transitional"
- exclude-result-prefixes="#default">
-
-
-
-
- <!-- Import of the original stylesheet which "just" creates
- a bunch of HTML files from any valid DocBook instance -->
- <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.72.0/html/chunk.xsl"/>
- <xsl:include href="./highlight.xsl"></xsl:include>
-
- <!--START HTML_CHUNK -->
-
- <!--###################################################
- HTML Settings
- ################################################### -->
-
- <xsl:param name="chunk.section.depth">'5'</xsl:param>
- <xsl:param name="use.id.as.filename">'1'</xsl:param>
- <xsl:param name="html.stylesheet">css/html.css</xsl:param>
-
- <!-- These extensions are required for table printing and other stuff -->
- <xsl:param name="use.extensions">1</xsl:param>
- <xsl:param name="tablecolumns.extension">0</xsl:param>
- <xsl:param name="callout.extensions">1</xsl:param>
- <xsl:param name="graphicsize.extension">0</xsl:param>
-
- <!--###################################################
- Table Of Contents
- ################################################### -->
-
- <!-- Generate the TOCs for named components only -->
- <xsl:param name="generate.toc">
- book toc
- </xsl:param>
-
- <!-- Show only Sections up to level 5 in the TOCs -->
- <xsl:param name="toc.section.depth">5</xsl:param>
-
- <!--###################################################
- Labels
- ################################################### -->
-
- <!-- Label Chapters and Sections (numbering) -->
- <xsl:param name="chapter.autolabel">1</xsl:param>
- <xsl:param name="section.autolabel" select="1"/>
- <xsl:param name="section.label.includes.component.label" select="1"/>
-
- <!--###################################################
- Callouts
- ################################################### -->
-
- <!-- Don't use graphics, use a simple number style -->
- <xsl:param name="callout.graphics">0</xsl:param>
-
- <!-- Place callout marks at this column in annotated areas -->
- <xsl:param name="callout.defaultcolumn">90</xsl:param>
-
- <!--###################################################
- Misc
- ################################################### -->
-
- <!-- Placement of titles -->
- <xsl:param name="formal.title.placement">
- figure after
- example before
- equation before
- table before
- procedure before
- </xsl:param>
- <xsl:template match="section[@role = 'NotInToc']//*" mode="toc" />
- <xsl:template match="chapter[@role = 'NotInToc']//section//*" mode="toc" />
-
- <xsl:param name="ignore.image.scaling" select="1"/>
-
-
-<!--END HTML_CHUNK -->
-
- <!-- You must plug-in your custom templates here -->
- <xsl:template match="/">
- <!-- Call original code from the imported stylesheet -->
- <xsl:apply-imports/>
-
- <!-- Call custom templates for the ToC and the manifest -->
- <xsl:call-template name="etoc"/>
- <xsl:call-template name="plugin.xml"/>
- </xsl:template>
-
- <!-- Template for creating auxiliary ToC file -->
- <xsl:template name="etoc">
- <xsl:call-template name="write.chunk">
- <xsl:with-param name="filename" select="'target/docbook/eclipse/toc.xml'"/>
- <xsl:with-param name="method" select="'xml'"/>
- <xsl:with-param name="encoding" select="'utf-8'"/>
- <xsl:with-param name="indent" select="'yes'"/>
- <xsl:with-param name="content">
-
- <!-- Get the title of the root element -->
- <xsl:variable name="title">
- <xsl:apply-templates select="/*" mode="title.markup"/>
- </xsl:variable>
-
- <!-- Get HTML filename for the root element -->
- <xsl:variable name="href">
- <xsl:call-template name="href.target.with.base.dir">
- <xsl:with-param name="object" select="/*"/>
- </xsl:call-template>
- </xsl:variable>
-
- <!-- Create root element of ToC file -->
- <toc label="{$title}" topic="{$href}">
- <!-- Get ToC for all children of the root element -->
- <xsl:apply-templates select="/*/*" mode="etoc"/>
- </toc>
-
- </xsl:with-param>
- </xsl:call-template>
- </xsl:template>
-
- <!-- Template which converts all DocBook containers into
- one entry in the ToC file -->
- <xsl:template match="book|part|reference|preface|chapter|
- bibliography|appendix|article|glossary|
- section|sect1|sect2|sect3|sect4|sect5|
- refentry|colophon|bibliodiv|index"
- mode="etoc">
- <!-- Get the title of the current element -->
- <xsl:variable name="title">
- <xsl:apply-templates select="." mode="title.markup"/>
- </xsl:variable>
-
- <!-- Get HTML filename for the current element -->
- <xsl:variable name="href">
- <xsl:call-template name="href.target.with.base.dir"/>
- </xsl:variable>
-
- <!-- Create ToC entry for the current node and process its
- container-type children further -->
- <topic label="{$title}" href="{$href}">
- <xsl:apply-templates select="part|reference|preface|chapter|
- bibliography|appendix|article|
- glossary|section|sect1|sect2|
- sect3|sect4|sect5|refentry|
- colophon|bibliodiv|index"
- mode="etoc"/>
- </topic>
-
- </xsl:template>
-
- <!-- Default processing in the etoc mode is no processing -->
- <xsl:template match="text()" mode="etoc"/>
-
- <!-- Template for generating the manifest file -->
- <xsl:template name="plugin.xml">
- <xsl:call-template name="write.chunk">
- <xsl:with-param name="filename" select="'target/docbook/eclipse/plugin.xml'"/>
- <xsl:with-param name="method" select="'xml'"/>
- <xsl:with-param name="encoding" select="'utf-8'"/>
- <xsl:with-param name="indent" select="'yes'"/>
- <xsl:with-param name="content">
- <plugin name="{$eclipse.plugin.name}"
- id="{$eclipse.plugin.id}"
- version="1.0"
- provider-name="{$eclipse.plugin.provider}">
- <extension point="org.eclipse.help.toc">
- <toc file="toc.xml" primary="true"/>
- </extension>
- </plugin>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:template>
-
- <!-- Customization parameters for the manifest file -->
- <xsl:param name="eclipse.plugin.name">DocBook Online Help Sample</xsl:param>
- <xsl:param name="eclipse.plugin.id">com.example.help</xsl:param>
- <xsl:param name="eclipse.plugin.provider">Example provider</xsl:param>
-
-</xsl:stylesheet>
Deleted: trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/fopdf.xsl
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/fopdf.xsl 2008-05-09 15:33:47 UTC (rev 8032)
+++ trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/fopdf.xsl 2008-05-09 17:16:03 UTC (rev 8033)
@@ -1,543 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
- This was originally the XSL FO configuration file for the Hibernate
- Reference Documentation. It defines a custom titlepage and
- the parameters for the A4 sized PDF printable output. It is released
- under the LGPL.
-
- Modifications were made to better suit the needs of the JBoss documentation.
--->
-
-<!DOCTYPE xsl:stylesheet [
- <!ENTITY db_xsl_path "../../support/docbook-xsl/">
-]>
-
-<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/TR/xhtml1/transitional"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="#default">
-
-
- <!-- import the main docbook.xsl before we apply our overrides -->
- <!--<xsl:import href="&db_xsl_path;/fo/docbook.xsl"/>-->
- <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.72.0/fo/docbook.xsl"/>
-
- <!-- ########## XRef -->
- <!-- this controls whether xrefs have the title in it. We
- don't want that -->
- <xsl:param name="xref.with.number.and.title" select="0"/>
-
- <xsl:template match="processing-instruction('lb')">
- <fo:block>
- <xsl:text> </xsl:text>
- </fo:block>
- </xsl:template>
-
- <!--########## Custom Title Page -->
- <xsl:template name="book.titlepage.recto">
- <fo:block>
- <fo:table table-layout="fixed" width="175mm">
- <fo:table-column column-width="175mm"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell text-align="center">
- <xsl:if test="bookinfo/mediaobject">
- <fo:block>
- <fo:external-graphic>
- <xsl:attribute name="src">
- FILE:<xsl:value-of
- select="bookinfo/mediaobject/imageobject/imagedata/@fileref" />
- </xsl:attribute>
- </fo:external-graphic>
- </fo:block>
- </xsl:if>
- <xsl:if test="bookinfo/title">
- <fo:block font-family="Helvetica" font-size="22pt" padding-before="10mm">
- <xsl:value-of select="bookinfo/title"/>
- </fo:block>
- </xsl:if>
- <xsl:if test="bookinfo/subtitle">
- <fo:block font-family="Helvetica" font-size="18pt" padding-before="10mm">
- <xsl:value-of select="bookinfo/subtitle"/>
- </fo:block>
- </xsl:if>
- <xsl:if test="bookinfo/releaseinfo">
- <fo:block font-family="Helvetica" font-size="12pt"
- padding="10mm"><xsl:value-of select="bookinfo/releaseinfo"/>
- </fo:block>
- </xsl:if>
- <xsl:if test="bookinfo/copyright">
- <fo:block font-family="Helvetica" font-size="12pt"
- padding="10mm">
-
- <xsl:apply-templates select="bookinfo/copyright"
- mode="titlepage.mode"/>
- </fo:block>
- </xsl:if>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:block>
- </xsl:template>
-
- <!-- Prevent blank pages in output -->
- <xsl:template name="book.titlepage.before.verso"/>
- <xsl:template name="book.titlepage.verso"/>
- <xsl:template name="book.titlepage.separator"/>
-
-
- <!--###################################################
- Header
- ################################################### -->
- <!-- More space in the center header for long text -->
- <xsl:attribute-set name="header.content.properties">
- <xsl:attribute name="font-family">
- <xsl:value-of select="$body.font.family"/>
- </xsl:attribute>
- <xsl:attribute name="margin-left">-5em</xsl:attribute>
- <xsl:attribute name="margin-right">-5em</xsl:attribute>
- </xsl:attribute-set>
-
-
- <!--###################################################
- Custom Footer
- ################################################### -->
- <!-- This footer prints the Hibernate version number on the left side -->
- <xsl:template name="footer.content">
- <xsl:param name="pageclass" select="''"/>
- <xsl:param name="sequence" select="''"/>
- <xsl:param name="position" select="''"/>
- <xsl:param name="gentext-key" select="''"/>
- <xsl:variable name="Version">
- <xsl:choose>
- <xsl:when test="//releaseinfo">
- <xsl:text></xsl:text>
- <xsl:value-of select="//releaseinfo"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- nop -->
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$sequence='blank'">
- <xsl:choose>
- <xsl:when test="$double.sided != 0 and $position = 'left'">
- <xsl:value-of select="$Version"/>
- </xsl:when>
- <xsl:when test="$double.sided = 0 and $position = 'center'">
- <!-- nop -->
- </xsl:when>
- <xsl:otherwise>
- <fo:page-number/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="$pageclass='titlepage'">
- <!-- nop: other titlepage sequences have no footer -->
- </xsl:when>
- <xsl:when test="$double.sided != 0 and $sequence = 'even' and $position='left'">
- <fo:page-number/>
- </xsl:when>
- <xsl:when test="$double.sided != 0 and $sequence = 'odd' and $position='right'">
- <fo:page-number/>
- </xsl:when>
- <xsl:when test="$double.sided = 0 and $position='right'">
- <fo:page-number/>
- </xsl:when>
- <xsl:when test="$double.sided != 0 and $sequence = 'odd' and $position='left'">
- <xsl:value-of select="$Version"/>
- </xsl:when>
- <xsl:when test="$double.sided != 0 and $sequence = 'even' and $position='right'">
- <xsl:value-of select="$Version"/>
- </xsl:when>
- <xsl:when test="$double.sided = 0 and $position='left'">
- <xsl:value-of select="$Version"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- nop -->
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
- <!--###################################################
- Custom Toc Line
- ################################################### -->
- <!-- Improve the TOC. -->
- <xsl:template name="toc.trt">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
- <xsl:variable name="label">
- <xsl:apply-templates select="." mode="label.markup"/>
- </xsl:variable>
- <fo:block text-align-last="justify" end-indent="{$toc.indent.width}pt" last-line-end-indent="-{$toc.indent.width}pt">
- <fo:inline keep-with-next.within-line="always">
- <fo:basic-link internal-destination="{$id}">
- <!-- Chapter titles should be bold. -->
- <xsl:choose>
- <xsl:when test="local-name(.) = 'chapter'">
- <xsl:attribute name="font-weight">bold</xsl:attribute>
- </xsl:when>
- </xsl:choose>
- <xsl:if test="$label != ''">
- <xsl:copy-of select="$label"/>
- <xsl:value-of select="$autotoc.label.separator"/>
- </xsl:if>
- <xsl:apply-templates select="." mode="titleabbrev.markup"/>
- </fo:basic-link>
- </fo:inline>
- <fo:inline keep-together.within-line="always">
- <xsl:text/>
- <fo:leader leader-pattern="dots" leader-pattern-width="3pt"
- leader-alignment="reference-area" keep-with-next.within-line="always"/>
- <xsl:text/>
- <fo:basic-link internal-destination="{$id}">
- <fo:page-number-citation ref-id="{$id}"/>
- </fo:basic-link>
- </fo:inline>
- </fo:block>
- </xsl:template>
-
-
- <!--###################################################
- Extensions
- ################################################### -->
- <!-- These extensions are required for table printing and other stuff -->
- <xsl:param name="use.extensions">1</xsl:param>
-
- <xsl:param name="linenumbering.extension">1</xsl:param>
- <xsl:param name="linenumbering.everyNth">1</xsl:param>
- <xsl:param name="linenumbering.separator">: </xsl:param>
-
- <xsl:param name="tablecolumns.extension">0</xsl:param>
- <!-- FOP provide only PDF Bookmarks at the moment -->
- <xsl:param name="fop1.extensions">1</xsl:param>
-
-
-
- <!--###################################################
- Table Of Contents
- ################################################### -->
- <!-- Generate the TOCs for named components only -->
- <xsl:param name="generate.toc"> book toc,title</xsl:param>
- <!-- ,figure,table,equation -->
- <!-- Show only Sections up to level 5 in the TOCs -->
- <xsl:param name="toc.section.depth">5</xsl:param>
- <!-- Dot and Whitespace as separator in TOC between Label and Title-->
- <xsl:param name="autotoc.label.separator" select="'. '"/>
-
-
- <!--###################################################
- Paper & Page Size
- ################################################### -->
- <!-- Paper type, no headers on blank pages, no double sided printing -->
-<!-- <xsl:param name="paper.type" select="'A4'"/>-->
- <xsl:param name="double.sided">0</xsl:param>
- <xsl:param name="headers.on.blank.pages">0</xsl:param>
- <xsl:param name="footers.on.blank.pages">0</xsl:param>
- <!-- Space between paper border and content (chaotic stuff, don't touch) -->
- <xsl:param name="page.margin.top">5mm</xsl:param>
- <xsl:param name="region.before.extent">10mm</xsl:param>
- <xsl:param name="body.margin.top">10mm</xsl:param>
- <xsl:param name="body.margin.bottom">15mm</xsl:param>
- <xsl:param name="region.after.extent">10mm</xsl:param>
- <xsl:param name="page.margin.bottom">0mm</xsl:param>
- <xsl:param name="page.margin.outer">18mm</xsl:param>
- <xsl:param name="page.margin.inner">18mm</xsl:param>
- <!-- No intendation of Titles -->
- <xsl:param name="title.margin.left">0pc</xsl:param>
-
-
- <!--###################################################
- Fonts & Styles
- ################################################### -->
- <!-- Default Font size -->
- <xsl:param name="body.font.master">11</xsl:param>
- <!-- Line height in body text -->
- <xsl:param name="line-height">1.4</xsl:param>
- <!-- Monospaced fonts are smaller than regular text -->
- <xsl:attribute-set name="monospace.properties">
- <xsl:attribute name="font-family">
- <xsl:value-of select="$monospace.font.family"/>
- </xsl:attribute>
- <xsl:attribute name="font-size">0.8em</xsl:attribute>
- </xsl:attribute-set>
-
-
- <!--###################################################
- Tables
- ################################################### -->
- <!-- The table width should be adapted to the paper size -->
- <xsl:param name="default.table.width">17.4cm</xsl:param>
- <!-- Some padding inside tables -->
- <xsl:attribute-set name="table.cell.padding">
- <xsl:attribute name="padding-left">4pt</xsl:attribute>
- <xsl:attribute name="padding-right">4pt</xsl:attribute>
- <xsl:attribute name="padding-top">4pt</xsl:attribute>
- <xsl:attribute name="padding-bottom">4pt</xsl:attribute>
- </xsl:attribute-set>
- <!-- Only hairlines as frame and cell borders in tables -->
- <xsl:param name="table.frame.border.thickness">0.1pt</xsl:param>
- <xsl:param name="table.cell.border.thickness">0.1pt</xsl:param>
-
-
-
- <!--###################################################
- Labels
- ################################################### -->
- <!-- Label Chapters and Sections (numbering) -->
- <xsl:param name="chapter.autolabel">1</xsl:param>
- <xsl:param name="section.autolabel" select="1"/>
- <xsl:param name="section.label.includes.component.label" select="1"/>
-
-
- <!--###################################################
- Titles
- ################################################### -->
-
- <xsl:attribute-set name="chapter.titlepage.recto.style">
- <xsl:attribute name="text-align">right</xsl:attribute>
- <xsl:attribute name="font-weight">bold</xsl:attribute>
- <xsl:attribute name="font-size">
- <xsl:value-of select="$body.font.master * 1.8"/>
- <xsl:text>pt</xsl:text>
- </xsl:attribute>
- </xsl:attribute-set>
-
-
- <xsl:attribute-set name="appendix.titlepage.recto.style">
- <xsl:attribute name="text-align">right</xsl:attribute>
- <xsl:attribute name="font-weight">bold</xsl:attribute>
- <xsl:attribute name="font-size">
- <xsl:value-of select="$body.font.master * 1.8"/>
- <xsl:text>pt</xsl:text>
- </xsl:attribute>
- </xsl:attribute-set>
-
- <xsl:template name="appendix.titlepage.before.recto">
- <xsl:param name="node" select="ancestor-or-self::appendix[1]"/>
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
- text-align="right"
- font-size="72pt" font-weight="bold">
- <xsl:number from="book" format="A"/>
- </fo:block>
- </xsl:template>
-
- <xsl:template name="chapter.titlepage.before.recto">
- <xsl:param name="node" select="ancestor-or-self::chapter[1]"/>
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
- text-align="right"
- font-size="72pt" font-weight="bold">
- <xsl:number from="book" format="1"/>
- </fo:block>
- </xsl:template>
-
- <xsl:template match="title" mode="appendix.titlepage.recto.auto.mode">
- <xsl:variable name="titleabbrev">
- <xsl:apply-templates select="ancestor-or-self::appendix[1]"
- mode="titleabbrev.markup"/>
- </xsl:variable>
-
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xsl:use-attribute-sets="appendix.titlepage.recto.style">
- <xsl:value-of select="$titleabbrev" />
- </fo:block>
- </xsl:template>
-
- <xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
- <xsl:variable name="titleabbrev">
- <xsl:apply-templates select="ancestor-or-self::chapter[1]"
- mode="titleabbrev.markup"/>
- </xsl:variable>
-
- <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xsl:use-attribute-sets="chapter.titlepage.recto.style">
- <xsl:value-of select="$titleabbrev" />
- </fo:block>
- </xsl:template>
-
-
- <!-- Sections 1, 2 and 3 titles have a small bump factor and padding -->
- <xsl:attribute-set name="section.title.level1.properties">
- <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
- <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
- <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
- <xsl:attribute name="font-size">
- <xsl:value-of select="$body.font.master * 1.5"/>
- <xsl:text>pt</xsl:text>
- </xsl:attribute>
- <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
- <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
- <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
- </xsl:attribute-set>
- <xsl:attribute-set name="section.title.level2.properties">
- <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
- <xsl:attribute name="space-before.minimum">0.6em</xsl:attribute>
- <xsl:attribute name="space-before.maximum">0.6em</xsl:attribute>
- <xsl:attribute name="font-size">
- <xsl:value-of select="$body.font.master * 1.25"/>
- <xsl:text>pt</xsl:text>
- </xsl:attribute>
- <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
- <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
- <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
- </xsl:attribute-set>
- <xsl:attribute-set name="section.title.level3.properties">
- <xsl:attribute name="space-before.optimum">0.4em</xsl:attribute>
- <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
- <xsl:attribute name="space-before.maximum">0.4em</xsl:attribute>
- <xsl:attribute name="font-size">
- <xsl:value-of select="$body.font.master * 1.0"/>
- <xsl:text>pt</xsl:text>
- </xsl:attribute>
- <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
- <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
- <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
- </xsl:attribute-set>
-
- <!-- Titles of formal objects (tables, examples, ...) -->
- <xsl:attribute-set name="formal.title.properties"
- use-attribute-sets="normal.para.spacing">
- <xsl:attribute name="font-weight">bold</xsl:attribute>
- <xsl:attribute name="font-size">
- <xsl:value-of select="$body.font.master"/>
- <xsl:text>pt</xsl:text>
- </xsl:attribute>
- <xsl:attribute name="hyphenate">false</xsl:attribute>
- <xsl:attribute name="space-after.minimum">0.4em</xsl:attribute>
- <xsl:attribute name="space-after.optimum">0.6em</xsl:attribute>
- <xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
- </xsl:attribute-set>
-
-
-
- <!-- ########## blockquote -->
- <xsl:attribute-set name="blockquote.properties">
- <xsl:attribute name="space-before.minimum">1em</xsl:attribute>
- <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
- <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
- <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
- <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
- <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
- <xsl:attribute name="border-color">#444444</xsl:attribute>
- <xsl:attribute name="border-style">solid</xsl:attribute>
- <xsl:attribute name="border-width">0.1pt</xsl:attribute>
- <xsl:attribute name="padding-top">0.5em</xsl:attribute>
- <xsl:attribute name="padding-left">0.5em</xsl:attribute>
- <xsl:attribute name="padding-right">0.5em</xsl:attribute>
- <xsl:attribute name="padding-bottom">0.5em</xsl:attribute>
- <xsl:attribute name="margin-left">0.5em</xsl:attribute>
- <xsl:attribute name="margin-right">0.5em</xsl:attribute>
- <xsl:attribute name="background-color">#F0F0F0</xsl:attribute>
- </xsl:attribute-set>
-
-
-
- <!--###################################################
- Programlistings
- ################################################### -->
- <!-- Verbatim text formatting (programlistings) -->
- <xsl:attribute-set name="verbatim.properties">
- <xsl:attribute name="space-before.minimum">1em</xsl:attribute>
- <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
- <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
- <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
- <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
- <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
- <xsl:attribute name="border-color">#444444</xsl:attribute>
- <xsl:attribute name="border-style">solid</xsl:attribute>
- <xsl:attribute name="border-width">0.1pt</xsl:attribute>
- <xsl:attribute name="padding-top">0.5em</xsl:attribute>
- <xsl:attribute name="padding-left">0.5em</xsl:attribute>
- <xsl:attribute name="padding-right">0.5em</xsl:attribute>
- <xsl:attribute name="padding-bottom">0.5em</xsl:attribute>
- <xsl:attribute name="margin-left">0.5em</xsl:attribute>
- <xsl:attribute name="margin-right">0.5em</xsl:attribute>
- </xsl:attribute-set>
- <!-- Shade (background) programlistings -->
- <xsl:param name="shade.verbatim">1</xsl:param>
- <xsl:attribute-set name="shade.verbatim.style">
- <xsl:attribute name="background-color">#F0F0F0</xsl:attribute>
- </xsl:attribute-set>
-
-
-
- <!--###################################################
- Callouts
- ################################################### -->
- <!-- We want to use callouts... -->
- <xsl:param name="callout.extensions">1</xsl:param>
- <!-- Place callout bullets at this column in programmlisting.-->
- <xsl:param name="callout.defaultcolumn">90</xsl:param>
- <!--
- No, don't use crappy graphics for the callout bullets. This setting
- enables some weird Unicode rendering for some fancy bullet points
- in callouts. By default, this can only count to 10 and produces
- strange results if you ever have more than 10 callouts for one
- programlisting. We will fix that next.
- -->
- <xsl:param name="callout.graphics">0</xsl:param>
- <!--
- Again, fun with DocBook XSL: The callout bullets are rendered in
- two places: In the programlisting itself and in the list below
- the listing, with the actual callout text. The rendering in the
- programlisting is some XSL transformer extension (e.g. a Saxon
- extension), so we can't change that without messing with the
- extensions. We only can turn it off by setting this limit to
- zero, then, a simple bracket style like "(3)" and "(4)" will
- be used in the programlisting.
- -->
- <xsl:param name="callout.unicode.number.limit" select="'0'"/>
- <!--
- The callout bullets in the actual callout list will be rendered
- with an XSL FO template. The default template is broken: limited to 10
- nice looking Unicode bullet points and then it doesn't print anything,
- the fallback doesn't work. We implement our own template, which is not
- as complicated, more ugly, but works. As always, function is more
- important than form.
- -->
- <xsl:template name="callout-bug">
- <xsl:param name="conum" select="1"/>
- <fo:inline color="black" padding-top="0.1em" padding-bottom="0.1em"
- padding-start="0.2em" padding-end="0.2em" baseline-shift="0.1em"
- font-family="{$monospace.font.family}" font-weight="bold" font-size="75%">
- <xsl:text>(</xsl:text>
- <xsl:value-of select="$conum"/>
- <xsl:text>)</xsl:text>
- </fo:inline>
- </xsl:template>
-
-
-
- <!--###################################################
- Misc
- ################################################### -->
- <!-- Correct placement of titles for figures and examples. -->
- <xsl:param name="formal.title.placement"> figure after example before
- equation before table before procedure before </xsl:param>
- <!-- Format Variable Lists as Blocks (prevents horizontal overflow). -->
- <xsl:param name="variablelist.as.blocks">1</xsl:param>
- <!-- The horrible list spacing problems, this is much better. -->
- <xsl:attribute-set name="list.block.spacing">
- <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
- <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
- <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
- <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
- <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
- <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
- </xsl:attribute-set>
- <!-- Newer DocBook XSL apparently thinks that some sections are by
- default "draft" status, and this idiotic thing is by default
- also set to "maybe", so it spits out a lot of errors with the
- latest FOP as the XSL/FO styles have references to some draft
- watermarks, which you actually don't want in the first place.
- Turn this crap off. If you have to work with the "status"
- attribute, don't.
- -->
- <xsl:param name="draft.mode" select="'no'"/>
-
-</xsl:stylesheet>
Deleted: trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/highlight.xsl
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/highlight.xsl 2008-05-09 15:33:47 UTC (rev 8032)
+++ trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/highlight.xsl 2008-05-09 17:16:03 UTC (rev 8033)
@@ -1,18 +0,0 @@
-<!DOCTYPE xsl:stylesheet>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0" xmlns="http://www.w3.org/TR/xhtml1/transitional"
- exclude-result-prefixes="#default">
-
- <xsl:template match="programlisting[@role='XML']|programlisting[@role='JAVA']|programlisting[@role='XHTML']|programlisting[@role='JSP']">
- <xsl:variable name="kidz">
- <xsl:apply-templates></xsl:apply-templates>
- </xsl:variable>
- <pre class="{@role}">
- <xsl:value-of
- select="javahl:highlight(string($kidz), attribute::role)"
- xmlns:javahl="java:com.exadel.docbook.colorer.HighLighter"
- disable-output-escaping="yes"/>
- </pre>
- </xsl:template>
-
-</xsl:stylesheet>
Deleted: trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/html.xsl
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/html.xsl 2008-05-09 15:33:47 UTC (rev 8032)
+++ trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/html.xsl 2008-05-09 17:16:03 UTC (rev 8033)
@@ -1,90 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-
- This is the XSL HTML configuration file for the Hibernate
- Reference Documentation.
-
- It took me days to figure out this stuff and fix most of
- the obvious bugs in the DocBook XSL distribution. Some of
- the workarounds might not be appropriate with a newer version
- of DocBook XSL. This file is released as part of Hibernate,
- hence LGPL licensed.
-
- christian(a)hibernate.org
--->
-
-<!DOCTYPE xsl:stylesheet [
- <!ENTITY db_xsl_path "../../support/docbook-xsl">
-]>
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0"
- xmlns="http://www.w3.org/TR/xhtml1/transitional"
- exclude-result-prefixes="#default">
-
-<!--<xsl:import href="&db_xsl_path;/html/docbook.xsl"/>-->
-<xsl:import href="http://docbook.sourceforge.net/release/xsl/1.72.0/html/docbook.xsl"/>
-<xsl:include href="./collapsing-navigation.xsl"></xsl:include>
-<xsl:include href="./highlight.xsl"></xsl:include>
-
-
-<!--###################################################
- HTML Settings
- ################################################### -->
-
- <xsl:param name="html.stylesheet">css/html.css</xsl:param>
-
- <!-- These extensions are required for table printing and other stuff -->
- <xsl:param name="use.extensions">1</xsl:param>
- <xsl:param name="tablecolumns.extension">0</xsl:param>
- <xsl:param name="callout.extensions">1</xsl:param>
- <xsl:param name="graphicsize.extension">0</xsl:param>
-
-<!--###################################################
- Table Of Contents
- ################################################### -->
-
- <!-- Generate the TOCs for named components only -->
- <xsl:param name="generate.toc">
- book toc
- </xsl:param>
-
- <!-- Show only Sections up to level 5 in the TOCs -->
- <xsl:param name="toc.section.depth">5</xsl:param>
-
-<!--###################################################
- Labels
- ################################################### -->
-
- <!-- Label Chapters and Sections (numbering) -->
- <xsl:param name="chapter.autolabel">1</xsl:param>
- <xsl:param name="section.autolabel" select="1"/>
- <xsl:param name="section.label.includes.component.label" select="1"/>
-
-<!--###################################################
- Callouts
- ################################################### -->
-
- <!-- Don't use graphics, use a simple number style -->
- <xsl:param name="callout.graphics">0</xsl:param>
-
- <!-- Place callout marks at this column in annotated areas -->
- <xsl:param name="callout.defaultcolumn">90</xsl:param>
-
-<!--###################################################
- Misc
- ################################################### -->
-
- <!-- Placement of titles -->
- <xsl:param name="formal.title.placement">
- figure after
- example before
- equation before
- table before
- procedure before
- </xsl:param>
- <xsl:template match="section[@role = 'NotInToc']//*" mode="toc" />
- <xsl:template match="chapter[@role = 'NotInToc']//section//*" mode="toc" />
-
-</xsl:stylesheet>
Deleted: trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/html_chunk.xsl
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/html_chunk.xsl 2008-05-09 15:33:47 UTC (rev 8032)
+++ trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/html_chunk.xsl 2008-05-09 17:16:03 UTC (rev 8033)
@@ -1,93 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-
- This is the XSL HTML configuration file for the Hibernate
- Reference Documentation.
-
- It took me days to figure out this stuff and fix most of
- the obvious bugs in the DocBook XSL distribution. Some of
- the workarounds might not be appropriate with a newer version
- of DocBook XSL. This file is released as part of Hibernate,
- hence LGPL licensed.
-
- christian(a)hibernate.org
--->
-
-<!DOCTYPE xsl:stylesheet [
- <!ENTITY db_xsl_path "../../support/docbook-xsl/">
-]>
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0"
- xmlns="http://www.w3.org/TR/xhtml1/transitional"
- exclude-result-prefixes="#default">
-
-<!--<xsl:import href="&db_xsl_path;/html/chunk.xsl"/>-->
-<xsl:import href="http://docbook.sourceforge.net/release/xsl/1.72.0/html/chunk.xsl"/>
-
-<xsl:include href="./collapsing-navigation.xsl"></xsl:include>
-<xsl:include href="./highlight.xsl"></xsl:include>
-
-
-<!--###################################################
- HTML Settings
- ################################################### -->
-
- <xsl:param name="chunk.section.depth">'5'</xsl:param>
- <xsl:param name="use.id.as.filename">'1'</xsl:param>
- <xsl:param name="html.stylesheet">css/html.css</xsl:param>
-
- <!-- These extensions are required for table printing and other stuff -->
- <xsl:param name="use.extensions">1</xsl:param>
- <xsl:param name="tablecolumns.extension">0</xsl:param>
- <xsl:param name="callout.extensions">1</xsl:param>
- <xsl:param name="graphicsize.extension">0</xsl:param>
-
-<!--###################################################
- Table Of Contents
- ################################################### -->
-
- <!-- Generate the TOCs for named components only -->
- <xsl:param name="generate.toc">
- book toc
- </xsl:param>
-
- <!-- Show only Sections up to level 5 in the TOCs -->
- <xsl:param name="toc.section.depth">5</xsl:param>
-
-<!--###################################################
- Labels
- ################################################### -->
-
- <!-- Label Chapters and Sections (numbering) -->
- <xsl:param name="chapter.autolabel">1</xsl:param>
- <xsl:param name="section.autolabel" select="1"/>
- <xsl:param name="section.label.includes.component.label" select="1"/>
-
-<!--###################################################
- Callouts
- ################################################### -->
-
- <!-- Don't use graphics, use a simple number style -->
- <xsl:param name="callout.graphics">0</xsl:param>
-
- <!-- Place callout marks at this column in annotated areas -->
- <xsl:param name="callout.defaultcolumn">90</xsl:param>
-
-<!--###################################################
- Misc
- ################################################### -->
-
- <!-- Placement of titles -->
- <xsl:param name="formal.title.placement">
- figure after
- example before
- equation before
- table before
- procedure before
- </xsl:param>
- <xsl:template match="section[@role = 'NotInToc']//*" mode="toc" />
- <xsl:template match="chapter[@role = 'NotInToc']//section//*" mode="toc" />
-
-</xsl:stylesheet>
Added: trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/common.xsl
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/common.xsl (rev 0)
+++ trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/common.xsl 2008-05-09 17:16:03 UTC (rev 8033)
@@ -0,0 +1,16 @@
+<?xml version='1.0'?>
+
+<!--
+ Copyright 2008 JBoss, a division of Red Hat
+ License: LGPL
+ Author: Mark Newton <mark.newton(a)jboss.org>
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+ <!-- XHTML settings -->
+ <xsl:param name="html.stylesheet" select="'css/tools.css'"/>
+
+ <!-- XHTML and PDF -->
+
+</xsl:stylesheet>
Added: trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/eclipse.xsl
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/eclipse.xsl (rev 0)
+++ trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/eclipse.xsl 2008-05-09 17:16:03 UTC (rev 8033)
@@ -0,0 +1,17 @@
+<?xml version='1.0'?>
+
+<!--
+ Copyright 2008 JBoss, a division of Red Hat
+ License: LGPL
+ Author: Mark Newton <mark.newton(a)jboss.org>
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+ <xsl:import href="classpath:/xslt/org/jboss/eclipse.xsl"/>
+ <xsl:import href="common.xsl"/>
+
+ <xsl:param name="eclipse.plugin.name">JBoss Tools Help</xsl:param>
+ <xsl:param name="eclipse.plugin.id">org.jboss.tools.help</xsl:param>
+
+</xsl:stylesheet>
Added: trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/pdf.xsl
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/pdf.xsl (rev 0)
+++ trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/pdf.xsl 2008-05-09 17:16:03 UTC (rev 8033)
@@ -0,0 +1,14 @@
+<?xml version='1.0'?>
+
+<!--
+ Copyright 2008 JBoss, a division of Red Hat
+ License: LGPL
+ Author: Mark Newton <mark.newton(a)jboss.org>
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+ <xsl:import href="classpath:/xslt/org/jboss/pdf.xsl"/>
+ <xsl:import href="common.xsl"/>
+
+</xsl:stylesheet>
Added: trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-single.xsl
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-single.xsl (rev 0)
+++ trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-single.xsl 2008-05-09 17:16:03 UTC (rev 8033)
@@ -0,0 +1,14 @@
+<?xml version='1.0'?>
+
+<!--
+ Copyright 2008 JBoss, a division of Red Hat
+ License: LGPL
+ Author: Mark Newton <mark.newton(a)jboss.org>
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+ <xsl:import href="classpath:/xslt/org/jboss/xhtml-single.xsl"/>
+ <xsl:import href="common.xsl"/>
+
+</xsl:stylesheet>
Added: trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml.xsl
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml.xsl (rev 0)
+++ trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml.xsl 2008-05-09 17:16:03 UTC (rev 8033)
@@ -0,0 +1,14 @@
+<?xml version='1.0'?>
+
+<!--
+ Copyright 2008 JBoss, a division of Red Hat
+ License: LGPL
+ Author: Mark Newton <mark.newton(a)jboss.org>
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+ <xsl:import href="classpath:/xslt/org/jboss/xhtml.xsl"/>
+ <xsl:import href="common.xsl"/>
+
+</xsl:stylesheet>
17 years, 11 months
JBoss Tools SVN: r8032 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/viewers/xpl.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2008-05-09 11:33:47 -0400 (Fri, 09 May 2008)
New Revision: 8032
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/viewers/xpl/MTreeViewer.java
Log:
JBIDE-2201 The visibility of the org.eclipse.jface.viewers.ColumnViewer.isBusy() method is changed from a package to public
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/viewers/xpl/MTreeViewer.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/viewers/xpl/MTreeViewer.java 2008-05-09 07:04:08 UTC (rev 8031)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/viewers/xpl/MTreeViewer.java 2008-05-09 15:33:47 UTC (rev 8032)
@@ -47,34 +47,6 @@
super(parent, style);
}
- // some little hack - cause TreeViewer has lack design for extensions
- public boolean isBusy() {
-
- Object obj = null;
- Class clazz = org.eclipse.jface.viewers.ColumnViewer.class;
- try {
- Method hiddenMethod = clazz.getDeclaredMethod("isBusy", new Class[0]);
- if (null != hiddenMethod) {
- hiddenMethod.setAccessible(true);
- obj = hiddenMethod.invoke(this, new Object[0]);
- }
- } catch (IllegalArgumentException e) {
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- e.printStackTrace();
- } catch (InvocationTargetException e) {
- e.printStackTrace();
- } catch (SecurityException e) {
- e.printStackTrace();
- } catch (NoSuchMethodException e) {
- e.printStackTrace();
- }
- if (obj instanceof Boolean) {
- return ((Boolean)obj).booleanValue();
- }
- return false;
- }
-
/**
* Adds the given child elements to this viewer as children of the given
* parent element. If this viewer does not have a sorter, the elements are
17 years, 11 months
JBoss Tools SVN: r8031 - trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt.
by jbosstools-commits@lists.jboss.org
Author: dennyxu
Date: 2008-05-09 03:04:08 -0400 (Fri, 09 May 2008)
New Revision: 8031
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWebService.java
Log:
JBIDE-2200: add binding file validation for topdown service creation, fix a typo
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWebService.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWebService.java 2008-05-09 05:19:10 UTC (rev 8030)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/wsrt/JBossWebService.java 2008-05-09 07:04:08 UTC (rev 8031)
@@ -12,7 +12,7 @@
import org.eclipse.wst.ws.internal.wsrt.WebServiceScenario;
import org.jboss.tools.ws.creation.core.commands.BindingFilesValidationCommand;
import org.jboss.tools.ws.creation.core.commands.InitialCommand;
-import org.jboss.tools.ws.creation.core.commands.WSDL2JavaCommnad;
+import org.jboss.tools.ws.creation.core.commands.WSDL2JavaCommand;
import org.jboss.tools.ws.creation.core.commands.WSProviderInvokeCommand;
import org.jboss.tools.ws.creation.core.data.ServiceModel;
@@ -47,7 +47,7 @@
if (ctx.getScenario().getValue() == WebServiceScenario.TOPDOWN) {
commands.add(new InitialCommand(model, this, WebServiceScenario.TOPDOWN));
commands.add(new BindingFilesValidationCommand(model));
- commands.add(new WSDL2JavaCommnad(model));
+ commands.add(new WSDL2JavaCommand(model));
//commands.add(new JbossWSRuntimeCommand(ResourcesPlugin.getWorkspace().getRoot().getProject(project)));
}
else if (ctx.getScenario().getValue() == WebServiceScenario.BOTTOMUP){
17 years, 11 months