JBoss Tools SVN: r4634 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/templates.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2007-11-01 12:07:23 -0400 (Thu, 01 Nov 2007)
New Revision: 4634
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/templates/vpe-templates-ajax4jsf.xml
Log:
http://jira.jboss.com/jira/browse/JBIDE-1242
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/templates/vpe-templates-ajax4jsf.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/templates/vpe-templates-ajax4jsf.xml 2007-11-01 15:57:16 UTC (rev 4633)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/templates/vpe-templates-ajax4jsf.xml 2007-11-01 16:07:23 UTC (rev 4634)
@@ -64,7 +64,7 @@
</vpe:dnd>
<vpe:textFormating>
<vpe:format type="BlockFormat"
- handler="com.exadel.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
<vpe:format type="UnderlineFormat" setDefault="true">
<vpe:formatAttribute type="style"/>
</vpe:format>
@@ -278,7 +278,7 @@
</vpe:dnd>
<vpe:textFormating>
<vpe:format type="BlockFormat"
- handler="com.exadel.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
<vpe:format type="UnderlineFormat" setDefault="true">
<vpe:formatAttribute type="style"/>
</vpe:format>
17 years, 2 months
JBoss Tools SVN: r4633 - in trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui: preferences and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-11-01 11:57:16 -0400 (Thu, 01 Nov 2007)
New Revision: 4633
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIMessages.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencePage.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.properties
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePage.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java
Log:
JBIDE-1186
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIMessages.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIMessages.java 2007-11-01 15:39:31 UTC (rev 4632)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIMessages.java 2007-11-01 15:57:16 UTC (rev 4633)
@@ -216,6 +216,8 @@
public static String SEAM_RUNTIME_LIST_FIELD_EDITOR_CANNOT_READ_JAR_FILE;
public static String SEAM_RUNTIME_LIST_FIELD_EDITOR_CREATE_A_SEAM_RUNTIME;
+
+ public static String SEAM_RUNTIME_LIST_FIELD_EDITOR_MODIFY_SEAM_RUNTIME;
public static String SEAM_RUNTIME_LIST_FIELD_EDITOR_EDITOR_SUPPORTS_ONLY_GRID_LAYOUT;
@@ -231,6 +233,8 @@
public static String SEAM_RUNTIME_LIST_FIELD_EDITOR_NEW_SEAM_RUNTIME;
+ public static String SEAM_RUNTIME_LIST_FIELD_EDITOR_EDIT_SEAM_RUNTIME;
+
public static String SEAM_RUNTIME_LIST_FIELD_EDITOR_PARENT_CONTROL_SHOULD_BE_COMPOSITE;
public static String SEAM_RUNTIME_LIST_FIELD_EDITOR_PATH;
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties 2007-11-01 15:39:31 UTC (rev 4632)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties 2007-11-01 15:57:16 UTC (rev 4633)
@@ -38,6 +38,7 @@
SEAM_ENTITY_WIZARD_PAGE1_ENTITY_MASTER_PAGE=Entity master page
SEAM_ENTITY_WIZARD_ENTITY_CREATING_OPERATION=Entity creating operation
SEAM_RUNTIME_LIST_FIELD_EDITOR_NEW_SEAM_RUNTIME=New Seam Runtime
+SEAM_RUNTIME_LIST_FIELD_EDITOR_EDIT_SEAM_RUNTIME=Edit Seam Runtime
SEAM_INSTALL_WIZARD_PAGE_DB_TABLES_ALREADY_EXISTS=DB Tables already exists in database:
SEAM_INSTALL_WIZARD_PAGE_RECREATE_DATABASE_TABLES_AND_DATA_ON_DEPLOY=Recreate database tables and data on deploy:
SEAM_ACTION_WIZARD_PAGE1_SELECT_THE_NAME_OF_THE_SEAM_CONVERSATION=Select the name of the new Seam Conversation. A new Java interface and SLSB
@@ -58,6 +59,7 @@
SEAM_PROJECT_WIZARD_PAGE1_FILE_EXTENSION_MUST_BE_MPE=File extension must be "mpe"
SEAM_RUNTIME_LIST_FIELD_EDITOR_AN_INSTANCEOF_OF_LIST=an instance of List<SeamRuntime>.
SEAM_RUNTIME_LIST_FIELD_EDITOR_CREATE_A_SEAM_RUNTIME=Create a Seam Runtime
+SEAM_RUNTIME_LIST_FIELD_EDITOR_MODIFY_SEAM_RUNTIME=Input new values
SEAM_BASE_WIZARD_OPERATION_IS_NOT_DEFINED_FOR_WIZARD=Operation is not defined for wizard
SEAM_INSTALL_WIZARD_PAGE_ENTITY_BEAN_PACKAGE_NAME=Entity Bean Package Name:
SEAM_PROJECT_WIZARD_PAGE1_FILE_NAME_MUST_BE_VALID=File name must be valid
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencePage.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencePage.java 2007-11-01 15:39:31 UTC (rev 4632)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencePage.java 2007-11-01 15:57:16 UTC (rev 4633)
@@ -40,6 +40,8 @@
public class SeamPreferencePage extends PreferencePage implements
IWorkbenchPreferencePage, PropertyChangeListener {
+ public static String SEAM_PREFERENCES_ID = "org.jboss.tools.common.model.ui.seam";
+
/**
*
*/
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.java 2007-11-01 15:39:31 UTC (rev 4632)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.java 2007-11-01 15:57:16 UTC (rev 4633)
@@ -23,6 +23,8 @@
public static String SEAM_SETTINGS_PREFERENCE_PAGE_ADD;
+ public static String SEAM_SETTINGS_PREFERENCE_PAGE_INSTALLED_RUNTIMES;
+
public static String SEAM_SETTINGS_PREFERENCE_PAGE_RUNTIME;
public static String SEAM_SETTINGS_PREFERENCE_PAGE_SEAM_RUNTIME_IS_NOT_SELECTED;
@@ -38,7 +40,7 @@
public static String SEAM_VALIDATOR_CONFIGURATION_BLOCK_WARNING;
public static String SEAM_VALIDATOR_PREFERENCE_PAGE_SEAM_VALIDATOR;
-
+
//Validator Preference page
public static String SeamValidatorConfigurationBlock_common_description;
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.properties 2007-11-01 15:39:31 UTC (rev 4632)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.properties 2007-11-01 15:57:16 UTC (rev 4633)
@@ -68,3 +68,4 @@
SEAM_SETTINGS_PREFERENCE_PAGE_SEAM_RUNTIME_IS_NOT_SELECTED=Seam runtime is not selected
SEAM_SETTINGS_PREFERENCE_PAGE_ADD=Add
SEAM_PREFERENCE_PAGE_SEAM_RUNTIMES=Seam Runtimes
+SEAM_SETTINGS_PREFERENCE_PAGE_INSTALLED_RUNTIMES=Installed Runtimes
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePage.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePage.java 2007-11-01 15:39:31 UTC (rev 4632)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePage.java 2007-11-01 15:57:16 UTC (rev 4633)
@@ -25,13 +25,19 @@
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.jface.dialogs.IMessageProvider;
+import org.eclipse.jface.preference.PreferenceDialog;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.dialogs.PreferencesUtil;
import org.eclipse.ui.dialogs.PropertyPage;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.seam.core.ISeamProject;
@@ -46,6 +52,8 @@
import org.jboss.tools.seam.ui.widget.editor.IFieldEditor;
import org.jboss.tools.seam.ui.widget.editor.IFieldEditorFactory;
import org.jboss.tools.seam.ui.widget.editor.ITaggedFieldEditor;
+import org.jboss.tools.seam.ui.widget.editor.LabelFieldEditor;
+import org.jboss.tools.seam.ui.widget.editor.ButtonFieldEditor.ButtonPressedAction;
import org.jboss.tools.seam.ui.widget.editor.SeamRuntimeListFieldEditor.SeamRuntimeNewWizard;
/**
@@ -56,6 +64,9 @@
IFieldEditor seamEnablement;
IFieldEditor runtime;
+ IFieldEditor installedRuntimes;
+
+ ISeamProject seamProject;
public SeamSettingsPreferencePage() {
}
@@ -65,12 +76,14 @@
super.setElement(element);
project = (IProject) getElement().getAdapter(IProject.class);
}
+
+ boolean hasSeamSupport() {
+ return seamProject != null;
+ }
@Override
protected Control createContents(Composite parent) {
- ISeamProject seamProject = SeamCorePlugin
- .getSeamProject(project, false);
- boolean hasSeamSupport = seamProject != null;
+ seamProject = SeamCorePlugin.getSeamProject(project, false);
boolean cannotBeModified = false;
@@ -83,37 +96,46 @@
seamEnablement = IFieldEditorFactory.INSTANCE.createCheckboxEditor(
SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCE_PAGE_SEAM_SUPPORT, SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCE_PAGE_SEAM_SUPPORT, false);
- seamEnablement.setValue(hasSeamSupport);
+ seamEnablement.setValue(hasSeamSupport());
SeamRuntime rs = SeamRuntimeManager.getInstance().getDefaultRuntime();
- Set<String> names = new TreeSet<String>();
- names.addAll(SeamRuntimeManager.getInstance().getRuntimeNames());
- if(hasSeamSupport) {
- String currentName = seamProject.getRuntimeName();
- if(currentName != null) names.add(currentName);
- }
- List<String> namesAsList = new ArrayList<String>();
- namesAsList.addAll(names);
+ List<String> namesAsList = getNameList();
runtime = IFieldEditorFactory.INSTANCE.createComboWithButton(SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCE_PAGE_RUNTIME,
SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCE_PAGE_RUNTIME, namesAsList,
rs==null?"":rs.getName(),true,new NewSeamRuntimeAction(),(IValidator)null); //$NON-NLS-1$
+ ButtonPressedAction action = new ButtonPressedAction(SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCE_PAGE_INSTALLED_RUNTIMES) {
+ public void run() {
+ PreferenceDialog prefsdlg = PreferencesUtil.createPreferenceDialogOn(
+ PlatformUI.getWorkbench().getDisplay().getActiveShell(),
+ SeamPreferencePage.SEAM_PREFERENCES_ID,
+ new String[] {SeamPreferencePage.SEAM_PREFERENCES_ID}, null
+ );
+
+ prefsdlg.open();
+
+ String v = runtime.getValueAsString();
+ List<String> list = getNameList();
+ ((ITaggedFieldEditor) ((CompositeEditor) runtime)
+ .getEditors().get(1)).setTags(list.toArray(new String[0]));
+ if(v != null && list.contains(v)) {
+ runtime.setValue(v);
+ } else {
+ setCurrentValue();
+ }
+ }
+ };
+
+ installedRuntimes = new ButtonFieldEditor(SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCE_PAGE_INSTALLED_RUNTIMES, action, null);
+
List<IFieldEditor> editorOrder = new ArrayList<IFieldEditor>();
editorOrder.add(seamEnablement);
editorOrder.add(runtime);
+// editorOrder.add(installedRuntimes);
- if (hasSeamSupport) {
- String currentName = seamProject.getRuntimeName();
- if (currentName != null) {
- runtime.setValue(currentName);
- } else {
- runtime.setValue("");
- }
- } else if(isEarPartInEarSeamProject(project)) {
- runtime.setValue("");
- }
+ setCurrentValue();
seamEnablement.addPropertyChangeListener(new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent evt) {
@@ -125,7 +147,7 @@
}
}
});
-
+
runtime.addPropertyChangeListener(new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent evt) {
validate();
@@ -147,9 +169,26 @@
for (IFieldEditor fieldEditor2 : editorOrder) {
fieldEditor2.doFillIntoGrid(composite);
}
+
+ LabelFieldEditor filler = new LabelFieldEditor("filler", "");
+ Object[] fs = filler.getEditorControls(composite);
+ if(fs != null && fs.length > 0 && fs[0] instanceof Label) {
+ Label l = (Label)fs[0];
+ GridData d = new GridData();
+ d.horizontalSpan = columnNumber - 1;
+ l.setLayoutData(d);
+ }
+
+ Object[] cs = installedRuntimes.getEditorControls(composite);
+ if(cs != null && cs.length > 0 && cs[0] instanceof Button) {
+ Button b = (Button)cs[0];
+ GridData d = new GridData();
+ d.horizontalAlignment = SWT.END;
+ b.setLayoutData(d);
+ }
runtime.setEditable(false);
- if (!hasSeamSupport) {
+ if (!hasSeamSupport()) {
updateRuntimeEnablement(false);
}
@@ -164,6 +203,31 @@
return composite;
}
+ private List<String> getNameList() {
+ Set<String> names = new TreeSet<String>();
+ names.addAll(SeamRuntimeManager.getInstance().getRuntimeNames());
+ if(hasSeamSupport()) {
+ String currentName = seamProject.getRuntimeName();
+ if(currentName != null) names.add(currentName);
+ }
+ List<String> namesAsList = new ArrayList<String>();
+ namesAsList.addAll(names);
+ return namesAsList;
+ }
+
+ private void setCurrentValue() {
+ if (hasSeamSupport()) {
+ String currentName = seamProject.getRuntimeName();
+ if (currentName != null) {
+ runtime.setValue(currentName);
+ } else {
+ runtime.setValue("");
+ }
+ } else if(isEarPartInEarSeamProject(project)) {
+ runtime.setValue("");
+ }
+ }
+
private boolean isEarPartInEarSeamProject(IProject p) {
IProject[] ps = ResourcesPlugin.getWorkspace().getRoot().getProjects();
for (int i = 0; i < ps.length; i++) {
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java 2007-11-01 15:39:31 UTC (rev 4632)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java 2007-11-01 15:57:16 UTC (rev 4633)
@@ -41,6 +41,7 @@
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.SelectionChangedEvent;
+import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.jface.wizard.WizardDialog;
@@ -153,6 +154,7 @@
createCommandBar(root);
bar.setEnabled(REMOVE, false);
+ bar.setEnabled(XChildrenEditor.EDIT, false);
TableColumn tc1 = new TableColumn(tableView.getTable(),SWT.CENTER);
tc1.setWidth(21);
@@ -498,8 +500,10 @@
SeamRuntime source = null;
public SeamRuntimeEditWizard(List<SeamRuntime> value, SeamRuntime source, List<SeamRuntime> added, Map<SeamRuntime, SeamRuntime> changed) {
super();
- setWindowTitle(SeamUIMessages.SEAM_RUNTIME_LIST_FIELD_EDITOR_NEW_SEAM_RUNTIME);
+ setWindowTitle(SeamUIMessages.SEAM_RUNTIME_LIST_FIELD_EDITOR_EDIT_SEAM_RUNTIME);
page1 = new SeamRuntimeWizardPage(value);
+ page1.setMessage(SeamUIMessages.SEAM_RUNTIME_LIST_FIELD_EDITOR_MODIFY_SEAM_RUNTIME);
+ page1.setTitle(SeamUIMessages.SEAM_RUNTIME_LIST_FIELD_EDITOR_EDIT_SEAM_RUNTIME);
addPage(page1);
this.value = value;
this.added = added;
@@ -526,8 +530,13 @@
source.setVersion(rt.getVersion());
} else {
changed.put(rt, source);
- value.remove(source);
- value.add(rt);
+ int i = value.indexOf(source);
+ if(i >= 0) {
+ value.set(i, rt);
+ } else {
+ value.remove(source);
+ value.add(rt);
+ }
}
return true;
}
@@ -547,8 +556,10 @@
public void selectionChanged(SeamRuntime selection) {
if(selection == null) {
bar.setEnabled(REMOVE, false);
+ bar.setEnabled(XChildrenEditor.EDIT, false);
} else {
bar.setEnabled(REMOVE, true);
+ bar.setEnabled(XChildrenEditor.EDIT, true);
}
if(selection==null
|| selection == SeamRuntimeManager.getInstance().getDefaultRuntime()) {
@@ -623,12 +634,25 @@
Wizard wiz = new SeamRuntimeEditWizard((List<SeamRuntime>)getValue(), (SeamRuntime)o, added, changed);
WizardDialog dialog = new WizardDialog(Display.getCurrent().getActiveShell(), wiz);
dialog.open();
+ tableView.refresh();
+ if(changed.containsValue(o)) {
+ SeamRuntime c = findChangedRuntime((SeamRuntime)o);
+ if(c != null) {
+ tableView.setSelection(new StructuredSelection(c));
+ }
+ }
}
}
- tableView.refresh();
}
}
+ private SeamRuntime findChangedRuntime(SeamRuntime source) {
+ for(SeamRuntime r: changed.keySet()) {
+ if(source == changed.get(r)) return r;
+ }
+ return null;
+ }
+
public void dispose() {
bar.dispose();
super.dispose();
17 years, 2 months
JBoss Tools SVN: r4632 - trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2007-11-01 11:39:31 -0400 (Thu, 01 Nov 2007)
New Revision: 4632
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1241
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java 2007-11-01 14:47:10 UTC (rev 4631)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java 2007-11-01 15:39:31 UTC (rev 4632)
@@ -235,6 +235,9 @@
model = (IDataModel) config;
sync = new DataModelSynchronizer(model);
model.addListener(this);
+
+ model.setProperty(ISeamFacetDataModelProperties.HIBERNATE_DIALECT,
+ HIBERNATE_HELPER.getDialectClass(jBossHibernateDbTypeEditor.getValueAsString()));
}
/**
@@ -387,6 +390,9 @@
}
}
);
+
+
+
Dialog.applyDialogFont(parent);
}
17 years, 2 months
JBoss Tools SVN: r4631 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2007-11-01 10:47:10 -0400 (Thu, 01 Nov 2007)
New Revision: 4631
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1200
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2007-11-01 14:38:37 UTC (rev 4630)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2007-11-01 14:47:10 UTC (rev 4631)
@@ -241,6 +241,26 @@
return false;
}
+ private boolean reCreateNode(nsIDOMNode visualOldNode, Node sourceNode, nsIDOMNode visualContainer) {
+ nsIDOMNode visualNewNode = createNode(sourceNode, visualContainer);
+ try {
+ if (visualNewNode != null) {
+ nsIDOMHTMLInputElement iDOMInputElement = (nsIDOMHTMLInputElement) visualNewNode.queryInterface(nsIDOMHTMLInputElement.NS_IDOMHTMLINPUTELEMENT_IID);
+ iDOMInputElement.setReadOnly(true);
+ }
+ } catch(XPCOMException ex) {
+ //just ignore this exception
+ }
+ if (visualNewNode != null) {
+ visualContainer.replaceChild(visualOldNode, visualNewNode);
+ return true;
+ }
+ else {
+ visualContainer.removeChild(visualOldNode);
+ }
+ return false;
+ }
+
private nsIDOMElement createBorder(Node sourceNode,
nsIDOMElement visualNode, boolean block) {
nsIDOMElement border = null;
@@ -799,8 +819,7 @@
nsIDOMNode visualContainer = visualOldNode.getParentNode();
nsIDOMNode visualNextNode = visualOldNode.getNextSibling();
if (visualContainer != null) {
- visualContainer.removeChild(visualOldNode);
- addNode(sourceNode, visualNextNode, visualContainer);
+ reCreateNode(visualOldNode, sourceNode, visualContainer);
}
} else {
if (sourceNode.getNodeType() == Node.TEXT_NODE) {
@@ -2003,7 +2022,9 @@
protected nsIDOMNode createTextNode(Node sourceNode, boolean registerFlag ) {
String sourceText = sourceNode.getNodeValue();
if (sourceText.trim().length() <= 0) {
- registerNodes(new VpeNodeMapping(sourceNode, null));
+ if (registerFlag) {
+ registerNodes(new VpeNodeMapping(sourceNode, null));
+ }
return null;
}
17 years, 2 months
JBoss Tools SVN: r4630 - in trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui: widget/editor and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-11-01 10:38:37 -0400 (Thu, 01 Nov 2007)
New Revision: 4630
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencePage.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java
Log:
JBIDE-1186
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencePage.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencePage.java 2007-11-01 14:38:05 UTC (rev 4629)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencePage.java 2007-11-01 14:38:37 UTC (rev 4630)
@@ -15,6 +15,10 @@
import java.beans.PropertyChangeListener;
import java.util.ArrayList;
import java.util.Arrays;
+import java.util.Map;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.jface.preference.PreferencePage;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.SWT;
@@ -23,6 +27,8 @@
import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
+import org.jboss.tools.seam.core.ISeamProject;
+import org.jboss.tools.seam.core.SeamCorePlugin;
import org.jboss.tools.seam.core.project.facet.SeamRuntime;
import org.jboss.tools.seam.core.project.facet.SeamRuntimeManager;
import org.jboss.tools.seam.ui.widget.editor.SeamRuntimeListFieldEditor;
@@ -106,6 +112,18 @@
if(initialDefault != null && seamRuntimes.getDefaultSeamRuntime() != initialDefault) {
initialDefault.setDefault(false);
}
+ Map<SeamRuntime,SeamRuntime> changed = seamRuntimes.getChangedSeamRuntimes();
+ for (SeamRuntime c: changed.keySet()) {
+ SeamRuntime o = changed.get(c);
+ o.setHomeDir(c.getHomeDir());
+ o.setVersion(c.getVersion());
+ String oldName = o.getName();
+ String newName = c.getName();
+ if(!oldName.equals(newName)) {
+ SeamRuntimeManager.getInstance().changeRuntimeName(oldName, newName);
+ }
+ }
+ seamRuntimes.getChangedSeamRuntimes().clear();
seamRuntimes.getDefaultSeamRuntime().setDefault(true);
SeamRuntimeManager.getInstance().save();
}
@@ -125,4 +143,5 @@
performApply();
return super.performOk();
}
+
}
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java 2007-11-01 14:38:05 UTC (rev 4629)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java 2007-11-01 14:38:37 UTC (rev 4630)
@@ -28,6 +28,7 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.Assert;
+import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.viewers.CheckStateChangedEvent;
@@ -40,7 +41,6 @@
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.jface.wizard.WizardDialog;
@@ -49,15 +49,18 @@
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
+import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.ui.wizards.datatransfer.ZipFileStructureProvider;
+import org.jboss.tools.common.model.ui.action.CommandBar;
+import org.jboss.tools.common.model.ui.action.CommandBarListener;
+import org.jboss.tools.common.model.ui.objecteditor.XChildrenEditor;
import org.jboss.tools.seam.core.ISeamProject;
import org.jboss.tools.seam.core.SeamCorePlugin;
import org.jboss.tools.seam.core.project.facet.SeamRuntime;
@@ -72,13 +75,11 @@
* @author eskimo
*
*/
-public class SeamRuntimeListFieldEditor extends BaseFieldEditor implements ISelectionChangedListener, SelectionListener {
-
+public class SeamRuntimeListFieldEditor extends BaseFieldEditor implements ISelectionChangedListener, SelectionListener, CommandBarListener {
+ static String REMOVE = "&Remove";
CheckboxTableViewer tableView = null;
Composite root = null;
- Button rmBtn = null;
- Button addBtn = null;
- Button removeBtn = null;
+ protected CommandBar bar = new CommandBar();
/**
* @param name
* @param label
@@ -86,7 +87,7 @@
*/
public SeamRuntimeListFieldEditor(String name, String label, Object defaultValue) {
super(name, label, defaultValue);
-
+ bar.addCommandBarListener(this);
}
private SeamRuntime checkedElement = null;
@@ -150,50 +151,9 @@
tableView.getControl().setLayoutData(gd);
tableView.addSelectionChangedListener(this);
- Composite buttons = new Composite(root,SWT.NONE);
- buttons.setLayout(new GridLayout(1,false));
- gd = new GridData();
- gd.horizontalAlignment = GridData.FILL;
- gd.verticalAlignment = GridData.FILL;
- gd.grabExcessVerticalSpace = true;
- buttons.setLayoutData(gd);
+ createCommandBar(root);
+ bar.setEnabled(REMOVE, false);
- addBtn = new Button(buttons,SWT.PUSH);
- addBtn.setText(SeamUIMessages.SEAM_RUNTIME_LIST_FIELD_EDITOR_ADD);
- gd = new GridData(GridData.FILL_HORIZONTAL,GridData.CENTER,false,false);
- gd.horizontalAlignment = GridData.FILL;
- gd.verticalAlignment = GridData.VERTICAL_ALIGN_BEGINNING;
- gd.widthHint = 50;
-
- addBtn.setLayoutData(gd);
- addBtn.addSelectionListener(this);
-
- removeBtn = new Button(buttons,SWT.PUSH);
- removeBtn.setEnabled(false);
- removeBtn.setText(SeamUIMessages.SEAM_RUNTIME_LIST_FIELD_EDITOR_REMOVE);
- gd = new GridData(GridData.FILL_HORIZONTAL,GridData.CENTER,false,false);
- gd.horizontalAlignment = GridData.FILL;
- gd.verticalAlignment = GridData.VERTICAL_ALIGN_BEGINNING;
- gd.widthHint = 50;
-
- removeBtn.setLayoutData(gd);
- removeBtn.addSelectionListener(this);
-
- /*rmBtn = new Button(buttons,SWT.PUSH);
- rmBtn.setText("Remove");
- gd = new GridData(GridData.FILL_HORIZONTAL,GridData.CENTER,false,false);
- gd.horizontalAlignment = GridData.FILL;
- gd.verticalAlignment = GridData.VERTICAL_ALIGN_BEGINNING;
- rmBtn.setLayoutData(gd);
- rmBtn.addSelectionListener(this);
-
- final Button editBtn = new Button(buttons,SWT.PUSH);
- editBtn.setText("Edit");
- gd = new GridData(GridData.FILL_HORIZONTAL,GridData.CENTER,false,false);
- gd.horizontalAlignment = GridData.FILL;
- gd.verticalAlignment = GridData.VERTICAL_ALIGN_BEGINNING;
- editBtn.setLayoutData(gd);*/
-
TableColumn tc1 = new TableColumn(tableView.getTable(),SWT.CENTER);
tc1.setWidth(21);
tc1.setResizable(false);
@@ -330,6 +290,8 @@
IFieldEditor dflt = IFieldEditorFactory.INSTANCE.createCheckboxEditor(
"default", SeamUIMessages.SEAM_RUNTIME_LIST_FIELD_EDITOR_USE_AS_DEFAULT, false); //$NON-NLS-1$
+ SeamRuntime current = null;
+
/**
* @param parent
* @param style
@@ -402,12 +364,22 @@
return;
}
for (SeamRuntime rt : value) {
+ if(current != null && current.getName().equals(rt.getName())) continue;
if(rt.getName().equals(name.getValueAsString())) {
setErrorMessage(SeamUIMessages.SEAM_RUNTIME_LIST_FIELD_EDITOR_RUNTIME+name.getValueAsString()+ SeamUIMessages.SEAM_RUNTIME_LIST_FIELD_EDITOR_ALREADY_EXISTS);
setPageComplete(false);
return;
}
- }
+ }
+
+ if(current != null && current.getName().equals(name.getValueAsString())
+ && current.getVersion().toString().equals(version.getValueAsString())
+ && current.getHomeDir().equals(homeDir.getValueAsString())
+ ) {
+ setErrorMessage(null);
+ setPageComplete(false);
+ return;
+ }
if(homeDir.getValueAsString()==null || "".equals(homeDir.getValueAsString().trim())) { //$NON-NLS-1$
setErrorMessage(SeamUIMessages.SEAM_RUNTIME_LIST_FIELD_EDITOR_PATH_TO_SEAM_HOME_DIRECTORY_CANNOT_BE_EMPTY);
@@ -518,6 +490,49 @@
}
}
+ public static class SeamRuntimeEditWizard extends Wizard {
+ SeamRuntimeWizardPage page1 = null;
+ List<SeamRuntime> added = null;
+ Map<SeamRuntime, SeamRuntime> changed = null;
+ List<SeamRuntime> value = null;
+ SeamRuntime source = null;
+ public SeamRuntimeEditWizard(List<SeamRuntime> value, SeamRuntime source, List<SeamRuntime> added, Map<SeamRuntime, SeamRuntime> changed) {
+ super();
+ setWindowTitle(SeamUIMessages.SEAM_RUNTIME_LIST_FIELD_EDITOR_NEW_SEAM_RUNTIME);
+ page1 = new SeamRuntimeWizardPage(value);
+ addPage(page1);
+ this.value = value;
+ this.added = added;
+ this.changed = changed;
+ this.source = source;
+ page1.name.setValue(source.getName());
+ page1.homeDir.setValue(source.getHomeDir());
+ page1.version.setValue(source.getVersion().toString());
+ page1.current = source;
+ }
+
+ @Override
+ public boolean performFinish() {
+ SeamRuntime rt = page1.getRuntime();
+ if(rt.getName().equals(source.getName())
+ && rt.getVersion().toString().equals(source.getVersion().toString())
+ && rt.getHomeDir().equals(source.getHomeDir())
+ ) {
+ return true;
+ }
+ if(added.contains(source) || changed.containsKey(source)) {
+ source.setName(rt.getName());
+ source.setHomeDir(rt.getName());
+ source.setVersion(rt.getVersion());
+ } else {
+ changed.put(rt, source);
+ value.remove(source);
+ value.add(rt);
+ }
+ return true;
+ }
+ }
+
/**
* @see org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
*/
@@ -531,9 +546,9 @@
*/
public void selectionChanged(SeamRuntime selection) {
if(selection == null) {
- removeBtn.setEnabled(false);
+ bar.setEnabled(REMOVE, false);
} else {
- removeBtn.setEnabled(true);
+ bar.setEnabled(REMOVE, true);
}
if(selection==null
|| selection == SeamRuntimeManager.getInstance().getDefaultRuntime()) {
@@ -550,24 +565,6 @@
* @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent)
*/
public void widgetSelected(SelectionEvent e) {
- if(e.widget==addBtn) {
- Wizard wiz = new SeamRuntimeNewWizard((List<SeamRuntime>)getValue(), added);
- WizardDialog dialog = new WizardDialog(Display.getCurrent().getActiveShell(), wiz);
- dialog.open();
- tableView.refresh();
- } else if(e.widget == removeBtn) {
- ISelection s = tableView.getSelection();
- if(s == null || s.isEmpty() || !(s instanceof IStructuredSelection)) return;
- IStructuredSelection ss = (IStructuredSelection)s;
- Iterator<?> i = ss.iterator();
- while(i.hasNext()) {
- Object o = i.next();
- if(o instanceof SeamRuntime) {
- removeRuntime((SeamRuntime)o);
- }
- }
- tableView.refresh();
- }
}
private void removeRuntime(SeamRuntime r) {
@@ -576,8 +573,11 @@
String message = (used)
? NLS.bind(SeamUIMessages.RUNTIME_DELETE_USED_CONFIRM, r.getName())
: NLS.bind(SeamUIMessages.RUNTIME_DELETE_NOT_USED_CONFIRM, r.getName());
- boolean b = MessageDialog.openConfirm(removeBtn.getShell(), title, message);
+ boolean b = MessageDialog.openConfirm(bar.getControl().getShell(), title, message);
if(!b) return;
+ if(changed.containsKey(r)) {
+ r = changed.remove(r);
+ }
removed.add(r);
if(added.contains(r)) {
added.remove(r);
@@ -593,4 +593,71 @@
}
return false;
}
+
+ public void action(String command) {
+ if(XChildrenEditor.ADD.equals(command)) {
+ Wizard wiz = new SeamRuntimeNewWizard((List<SeamRuntime>)getValue(), added);
+ WizardDialog dialog = new WizardDialog(Display.getCurrent().getActiveShell(), wiz);
+ dialog.open();
+ tableView.refresh();
+ } else if(REMOVE.equals(command)) {
+ ISelection s = tableView.getSelection();
+ if(s == null || s.isEmpty() || !(s instanceof IStructuredSelection)) return;
+ IStructuredSelection ss = (IStructuredSelection)s;
+ Iterator<?> i = ss.iterator();
+ while(i.hasNext()) {
+ Object o = i.next();
+ if(o instanceof SeamRuntime) {
+ removeRuntime((SeamRuntime)o);
+ }
+ }
+ tableView.refresh();
+ } else if(XChildrenEditor.EDIT.equals(command)) {
+ ISelection s = tableView.getSelection();
+ if(s == null || s.isEmpty() || !(s instanceof IStructuredSelection)) return;
+ IStructuredSelection ss = (IStructuredSelection)s;
+ Iterator<?> i = ss.iterator();
+ while(i.hasNext()) {
+ Object o = i.next();
+ if(o instanceof SeamRuntime) {
+ Wizard wiz = new SeamRuntimeEditWizard((List<SeamRuntime>)getValue(), (SeamRuntime)o, added, changed);
+ WizardDialog dialog = new WizardDialog(Display.getCurrent().getActiveShell(), wiz);
+ dialog.open();
+ }
+ }
+ tableView.refresh();
+ }
+ }
+
+ public void dispose() {
+ bar.dispose();
+ super.dispose();
+ }
+
+ protected void createCommandBar(Composite control) {
+ //TODO insert EDIT command
+ String[] commands = new String[]{XChildrenEditor.ADD, XChildrenEditor.EDIT, REMOVE};
+ bar.setCommands(commands);
+ bar.getLayout().direction = SWT.VERTICAL;
+ bar.getLayout().buttonWidth = convertHorizontalDLUsToPixels(control, IDialogConstants.BUTTON_WIDTH);
+ setMargins(bar);
+ bar.createControl(control);
+ bar.getControl().setLayoutData(new GridData(GridData.FILL_VERTICAL));
+ }
+
+ protected void setMargins(CommandBar bar) {
+ bar.getLayout().setMargins(0,10,0,0);
+ }
+
+ protected int convertHorizontalDLUsToPixels(Control control, int dlus) {
+ GC gc= new GC(control);
+ gc.setFont(control.getFont());
+ int averageWidth= gc.getFontMetrics().getAverageCharWidth();
+ gc.dispose();
+
+ double horizontalDialogUnitSize = averageWidth * 0.25;
+
+ return (int)Math.round(dlus * horizontalDialogUnitSize);
+ }
+
}
17 years, 2 months
JBoss Tools SVN: r4629 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/project/facet.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-11-01 10:38:05 -0400 (Thu, 01 Nov 2007)
New Revision: 4629
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/project/facet/SeamRuntimeManager.java
Log:
JBIDE-1186
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/project/facet/SeamRuntimeManager.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/project/facet/SeamRuntimeManager.java 2007-11-01 14:38:01 UTC (rev 4628)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/project/facet/SeamRuntimeManager.java 2007-11-01 14:38:05 UTC (rev 4629)
@@ -213,5 +213,24 @@
}
}
}
+
+ public void changeRuntimeName(String oldName, String newName) {
+ SeamRuntime o = findRuntimeByName(oldName);
+ if(o == null) {
+ return;
+ }
+ o.setName(newName);
+ onRuntimeNameChanged(oldName, newName);
+ }
+ private void onRuntimeNameChanged(String oldName, String newName) {
+ IProject[] ps = ResourcesPlugin.getWorkspace().getRoot().getProjects();
+ for (int i = 0; i < ps.length; i++) {
+ ISeamProject sp = SeamCorePlugin.getSeamProject(ps[i], false);
+ if(sp != null && oldName.equals(sp.getRuntimeName())) {
+ sp.setRuntimeName(newName);
+ }
+ }
+ }
+
}
17 years, 2 months
JBoss Tools SVN: r4628 - in trunk/as/docs/reference/en: images and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: afedosik
Date: 2007-11-01 10:38:01 -0400 (Thu, 01 Nov 2007)
New Revision: 4628
Added:
trunk/as/docs/reference/en/images/projects/
trunk/as/docs/reference/en/images/projects/wizard1.jpg
trunk/as/docs/reference/en/images/projects/wizard2.jpg
trunk/as/docs/reference/en/images/serverRuntimes/
trunk/as/docs/reference/en/images/serverRuntimes/installedRuntimes.JPG
trunk/as/docs/reference/en/images/serverRuntimes/new4.0Runtime.JPG
trunk/as/docs/reference/en/images/serverRuntimes/newRuntime.JPG
trunk/as/docs/reference/en/images/serverRuntimes/newServer.JPG
trunk/as/docs/reference/en/images/serverRuntimes/newServer2.JPG
trunk/as/docs/reference/en/modules/DeployingModules.xml
trunk/as/docs/reference/en/modules/WebToolsprojects.xml
Modified:
trunk/as/docs/reference/en/master.xml
trunk/as/docs/reference/en/modules/RuntimesAndServers.xml
Log:
http://jira.jboss.com/jira/browse/RHDS-270 "out of date" chapters added (they will be updated then).
Added: trunk/as/docs/reference/en/images/projects/wizard1.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/projects/wizard1.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/projects/wizard2.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/projects/wizard2.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/serverRuntimes/installedRuntimes.JPG
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/serverRuntimes/installedRuntimes.JPG
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/serverRuntimes/new4.0Runtime.JPG
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/serverRuntimes/new4.0Runtime.JPG
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/serverRuntimes/newRuntime.JPG
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/serverRuntimes/newRuntime.JPG
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/serverRuntimes/newServer.JPG
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/serverRuntimes/newServer.JPG
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/serverRuntimes/newServer2.JPG
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/serverRuntimes/newServer2.JPG
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/as/docs/reference/en/master.xml
===================================================================
--- trunk/as/docs/reference/en/master.xml 2007-11-01 14:35:29 UTC (rev 4627)
+++ trunk/as/docs/reference/en/master.xml 2007-11-01 14:38:01 UTC (rev 4628)
@@ -4,8 +4,9 @@
[<!ENTITY RuntimesAndServers SYSTEM "modules/RuntimesAndServers.xml">
<!ENTITY JBossASPerspective SYSTEM "modules/JBossASPerspective.xml">
+<!ENTITY WebToolsprojects SYSTEM "modules/WebToolsprojects.xml">
+<!ENTITY DeployingModules SYSTEM "modules/DeployingModules.xml">
-
]>
<book>
@@ -25,5 +26,6 @@
<toc/>
&RuntimesAndServers;
&JBossASPerspective;
-
+ &WebToolsprojects;
+ &DeployingModules;
</book>
Added: trunk/as/docs/reference/en/modules/DeployingModules.xml
===================================================================
--- trunk/as/docs/reference/en/modules/DeployingModules.xml (rev 0)
+++ trunk/as/docs/reference/en/modules/DeployingModules.xml 2007-11-01 14:38:01 UTC (rev 4628)
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<chapter id="deploy">
+ <title>Deploying Modules (out of date!)</title>
+
+ <para>
+ Deploying to a server is mostly painless.
+ There are several ways to do it provided by Webtools,
+ and some additional methods provided by RHDS. </para>
+ <section><title>WTP Projects</title>
+ <section><title>Run On Server</title>
+ <para>
+ The first WTP method is to right-click on a webtools project,
+ such as a dynamic web project, ejb project, or ear project.
+ and then selecting <emphasis>run on server...</emphasis>.
+ The resulting dialog allows you to select which supporting
+ server the project can be published to. </para>
+ <para>
+ For the JBoss AS Server Adapters, publishing using this method
+ will force a default, best-guess, packaging configuration
+ for your project. This best-guess does <emphasis>not</emphasis>
+ publish incrementally, but instead repackages your entire
+ project into a .war, .jar, or .ear as appropriate, and
+ then coppies that file into the proper deploy directory.
+ For quicker smarter deployment, you will need to create
+ archives using the <emphasis>Project Archives</emphasis>
+ view and customize packaging yourself.</para>
+ </section>
+ <section><title>Add / Remove Projects</title>
+ <para>
+ Another method is in either the Servers View, or the JBoss
+ Servers View, to right click on a server and select
+ the <emphasis>Add or Remove Projects</emphasis> menu item.
+ This will bring up a dialog allowing you to either publish
+ projects / modules to a server, or remove them from the server.</para>
+
+ <para>
+ If the selected module is a webtools project,
+ it will be published as in the <emphasis>Run on Server</emphasis>
+ option, with a best-guess full package. If, however, the selected
+ element is an archive from the <emphasis>Project Archives View</emphasis>,
+ it will be published according to the rules of that module type, which
+ are explained below.</para>
+ </section>
+ <section><title>JBoss Servers View, Publish</title>
+ <para>
+ In the JBoss Server's View, in the bottom section, is a
+ category called <emphasis>Modules</emphasis> which should
+ display all currently-published modules on the server.
+ By right-clicking on the desired module and selecting
+ <emphasis>Publish</emphasis>, it will force a full
+ rebuild of the entire module. </para>
+ </section>
+ <section><title>Project Archives View</title>
+ <para>In the Project Archives View, you can
+ right-click on any declared archive and select the
+ <emphasis>Publish To Server</emphasis> element, as described in
+ the last chapter. </para>
+ <para>
+ The ONLY WAY to ensure an <emphasis>Incremental Build</emphasis>,
+ such as changes to one jsp, html, or .class file, is to
+ enable the builder for that project. This is done by either changing
+ the global preferences for the Archives View, or in enabling
+ project-specific preferences and ensuring the builder is on.</para>
+ </section>
+ <!--
+ <figure id="viewMain"> <title>JBoss Servers View: Main Section</title>
+ <mediaobject>
+ <alt>JBoss Servers View Main Section</alt>
+ <imageobject>
+ <imagedata
+ fileref="..\..\..\..\reference\en\images\asPerspective\viewMain.jpg"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ -->
+ </section>
+ </chapter>
Modified: trunk/as/docs/reference/en/modules/RuntimesAndServers.xml
===================================================================
--- trunk/as/docs/reference/en/modules/RuntimesAndServers.xml 2007-11-01 14:35:29 UTC (rev 4627)
+++ trunk/as/docs/reference/en/modules/RuntimesAndServers.xml 2007-11-01 14:38:01 UTC (rev 4628)
@@ -10,6 +10,198 @@
<keyword>JBoss</keyword>
</keywordset>
</chapterinfo>
- <title>Runtimes and Servers in the JBoss AS plugin</title>
+ <title>Runtimes and Servers in the JBoss AS plugin (out of date!)</title>
+
+ <para>The JBoss AS plugin makes use of Webtools. This includes
+ starting and stopping servers in run or debug mode. It also includes
+ targeting webtools projects, such as dynamic web projects,
+ to certain server runtimes in order to ensure that the proper jars
+ from a specific server are added to the project's classpath properly.
+ </para>
+ <para>
+ In order to get started creating, running, and debugging J2EE
+ applications, we must start with creating our runtime and
+ server instances.
+ </para>
+
+ <section>
+ <title>Webtools Runtimes</title>
+ <section><title>What is a runtime used for?</title>
+ <para>
+ In RHDS, Server Runtimes have one main purpose:
+ to point to a server installation somewhere on disk.
+ In our case, this will be a JBoss installation, and it
+ can than be used for two primary purposes.
+
+ First,
+ it provides classpath additions to webtools projects that require them.
+ Second, for JBoss server at least, it provides information necessary
+ for the starting and stopping of the server, such as which jars
+ to run and which configuration to use.
+ </para>
+ </section>
+
+ <section><title>Installing a new Runtime</title>
+ <para>
+ You can install runtimes into eclipse from the Window -> Preferences...
+ menu, and then selecting Server -> Installed Runtimes from the categories available.
+ </para>
+ <figure id="installedRuntimeWindow"> <title>Installed Runtimes</title>
+ <mediaobject>
+ <alt>Installed Server Runtime Preferences</alt>
+ <imageobject>
+ <imagedata
+ fileref="..\..\..\..\reference\en\images\serverRuntimes\installedRuntimes.JPG"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+
+ <para>
+ From this preference page you can see what runtimes are declared,
+ and what type they are. In the image shown above, there are three declared
+ runtimes, including a Tomcat 5.5 instance and a JBoss 4.2 instance.
+ </para>
+
+ <para>
+ To create a JBoss runtime, we begin by clicking the add button.
+ This will open another dialog that allows us to choose what type
+ of runtime we want to create. Most of the runtime options are provided
+ by webtools, but those provided by RHDS are the ones we will focus on.
+
+ </para>
+
+ <figure id="addRuntimeWindow"> <title>Adding a Runtime</title>
+ <mediaobject>
+ <alt>Adding a Runtime</alt>
+ <imageobject>
+ <imagedata
+ fileref="..\..\..\..\reference\en\images\serverRuntimes\newRuntime.JPG"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>
+ As seen above, there appear to be two JBoss categories. The first is
+ contributed by webtools, and is a generic adapter that is not upkept very well.
+ For this reason, RHDS provides updated and supported adapters of our own.
+ There is one for each of JBoss 3.2, 4.0, amd 4.2. You'll also note a deploy-only
+ runtime type. This type provides no classpath for webtools projects.
+ It is used solely by it's server type for the purpose of setting up a deploy directory
+ for users who don't wish to make use of starting, stopping, or debugging their projects
+ inside eclipse.
+ </para>
+
+
+ <figure id="add40RuntimeWindow"> <title>Adding a JBoss 4.0 Runtime</title>
+ <mediaobject>
+ <alt>Adding a JBoss 4.0 Runtime</alt>
+ <imageobject>
+ <imagedata
+ fileref="..\..\..\..\reference\en\images\serverRuntimes\new4.0Runtime.JPG"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>
+ As shown above, all you need to do to create the runtime is to name it, browse to it's install directory,
+ select a Java Runtime Environment, and select which configuration you want.
+ As you browse to a valid installation folder, the list of configurations will
+ update allowing you to select the configuration of your choice.
+ </para>
+ <para>
+ Once the runtime is created, the configuration is an unchanging property
+ of that runtime. This is because many of the jars
+ necessary to provide for classpaths, such as the ejb3 jar locations or the servlet jar locations,
+ are located in deploy directories of each configurations (depending on which
+ version of JBoss is being used). Because of this, to compile against
+ a different configuration's jars, you will need to create a new runtime from that configuration.
+ </para>
+ <para>
+ Also, because of the open-source nature of JBoss, it is likely that a user may want to
+ modify and repackage some of the configuration-specific jboss jars and create
+ their own configuration using those modified jars. Rather than forcing the user to copy his
+ entire JBoss installation, this structure allows them to create only a new configuration instead.
+ </para>
+ <para>
+ As a result of having each runtime represent a specific configuration rather than
+ the server installation as a whole, it is very likely you'll create several different runtimes
+ to test each of your configurations. It becomes important to ensure your runtimes,
+ and later your servers, are given descriptive names that help you remember which is which.
+ It will do no good to try to remember if "JBoss-runtime 5" is the 4.0 install with ejb3? Or the
+ 4.2 install's custom configuration you decided to create.
+ </para>
+ <para>
+ After pressing finish, you'll see that your new runtime has been added to the list
+ and can now be targeted by webtools type projects or servers, both of which we'll get to later.
+ </para>
+ </section>
+ </section>
+
+
+
+
+ <section>
+ <title>Webtools Servers</title>
+ <section>
+ <title>What is a Server used for?</title>
+ <para>
+ Webtools servers are eclipse-representations of a backing server installation.
+ They are used to start or stop servers, deploy to servers, or debug code
+ that will run on the server. They keep track of what modules (jars, wars, etc)
+ you deploy to the server and also allow you to undeploy those modules. </para>
+ <para>
+ Servers can be started or stopped with different command-line arguments.
+ They are often backed by a runtime object representing that server's location. </para>
+ </section>
+ <section>
+ <title>Creating a New Server</title>
+ <para>
+ There are many ways to get to the new server wizard. One way
+ is to use the old standard File -> New -> Other... wizard,
+ and type in Server. This should show the screen below, which
+ does not look that different from the initial screen when
+ creating a new runtime. </para>
+ <figure id="addServerWindow"> <title>Adding a JBoss Server</title>
+ <mediaobject>
+ <alt>Adding a JBoss Server</alt>
+ <imageobject>
+ <imagedata
+ fileref="..\..\..\..\reference\en\images\serverRuntimes\newServer.JPG"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>
+ Because the server object is what keeps track of things like command line arguments
+ when starting or stopping, and runtimes keep track of the location of the installation,
+ each server instance must be backed by an appropriate runtime. </para>
+ <para>
+ Because there may be many runtimes of each type declared, the wizard allows you to select
+ which runtime you want your server to be backed by. The combo box below the view lets you
+ select which declared runtime to use. For example, if there were already multiple JBoss 4.0
+ runtimes declared, the combo box would list all of the 4.0 runtimes available. </para>
+ <para>
+ If none of the runtimes declared are one you want to use, for example if
+ you declared a default and a minimal runtime before but now want your server
+ to be backed by the ALL configuration, then you can click on the
+ <emphasis>Installed Runtimes... </emphasis> Button to bring up the preference page
+ shown at the beginning of this chapter. </para>
+ <para>
+ If the server you want to create doesn't have any installed runtime yet, the combo
+ box and button will disappear, and the next page in the wizard will force you to create
+ the associated runtime first. </para>
+ <para>
+ Either way, after targeting your server to a runtime, the final screen
+ in this wizard is largely confirmational, giving the user a chance to verify
+ that he's selected the appropriate runtime. It also allows the user
+ to name the server appropriately. </para>
+ </section>
+ </section>
+
+ <section>
+ <title>Well then...</title>
+ <para>Now that we've created our runtimes and servers,
+ we'll explore how to use them in future chapters. </para>
+ </section>
</chapter>
Added: trunk/as/docs/reference/en/modules/WebToolsprojects.xml
===================================================================
--- trunk/as/docs/reference/en/modules/WebToolsprojects.xml (rev 0)
+++ trunk/as/docs/reference/en/modules/WebToolsprojects.xml 2007-11-01 14:38:01 UTC (rev 4628)
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<chapter id="webtoolsProjects">
+ <title>Webtools Projects (out of date!)</title>
+ <section><title>Description</title>
+ <para>
+ Webtools provides what are called "faceted" projects,
+ Their most popular such projects are their J2EE projects,
+ such as their Dynamic Web Project, their EJB Project,
+ or their EAR project. </para>
+ <para>
+ The idea behind faceted projects is that each project
+ can accept units of functionality, or facets, which can be
+ added or removed by the user. Some examples of these facets
+ are adding a webdoclet facet to a web project, or an
+ ejbdoclet to an EJB Project. </para>
+ <para>
+ Most often, these "facets" either add to the project's classpath,
+ enable a builder, or watch the project in some other fashion. </para>
+ <para>
+ WTP projects have undergone some criticism as being
+ <emphasis>over-engineered</emphasis> or too restrictive in their
+ design. WTP projects are set up in a tree-relationship to each other,
+ where one project can be a child of another. For example, an EAR
+ project may have a Web Project child, an EJB project child,
+ or other types. </para>
+ <para>
+ The benefit of this is that the structure of your projects is
+ then known, and packaging it up *should* be trivial. However,
+ if your project is non-standard, or you feel too confined by
+ such rigid structural requirements, you can still choose to
+ package your project using the Archives plugin as described
+ in the last chapter</para>
+
+ </section>
+ <section><title>Faceted Project Wizards</title>
+ <figure id="faceted1"> <title>Faceted Project Wizard: First Page</title>
+ <mediaobject>
+ <alt>Faceted Project Wizard: First Page</alt>
+ <imageobject>
+ <imagedata width="5in" scalefit="0"
+ fileref="..\..\..\..\reference\en\images\projects\wizard1.jpg"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>
+ The first page of most WTP projects allows you to target a specific runtime,
+ representing a server's library location. It will also provide you the ability to
+ add this project to an EAR project, and select a pre-selected default set of facets,
+ called a configuration, rather than manually select each facet you might want.</para>
+ <para>
+ Selecting the runtime, again, allows the project to install the proper
+ classpaths to the project so it knows what code to compile against.</para>
+ <figure id="faceted2"> <title>Faceted Project Wizard: Second Page</title>
+ <mediaobject>
+ <alt>Faceted Project Wizard: Second Page</alt>
+ <imageobject>
+ <imagedata width="5in" scalefit="0"
+ fileref="..\..\..\..\reference\en\images\projects\wizard2.jpg"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>
+ The second page of the wizard allows you to enable or disable specific facets, as
+ described above. Some facets may require others, and some may conflict with others,
+ but on the whole this page allows you to add any number of facets that don't conflict
+ with each other. </para>
+ <para>
+ Further pages are specific to either hte project type, or the facets selected.</para>
+ </section>
+</chapter>
17 years, 2 months
JBoss Tools SVN: r4627 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2007-11-01 10:35:29 -0400 (Thu, 01 Nov 2007)
New Revision: 4627
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsolePerspectiveFactory.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1121
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsolePerspectiveFactory.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsolePerspectiveFactory.java 2007-11-01 14:13:19 UTC (rev 4626)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsolePerspectiveFactory.java 2007-11-01 14:35:29 UTC (rev 4627)
@@ -21,6 +21,7 @@
*/
package org.hibernate.eclipse.console;
+import org.eclipse.debug.ui.IDebugUIConstants;
import org.eclipse.jdt.ui.JavaUI;
import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
@@ -59,6 +60,7 @@
IFolderLayout propertiesFolder= layout.createFolder("leftBottom", IPageLayout.BOTTOM, (float)0.75, "left"); //$NON-NLS-1$
propertiesFolder.addView(ID_PROPERTY_SHEET_VIEW);
+ layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET);
IFolderLayout outputfolder= layout.createFolder("bottom", IPageLayout.BOTTOM, (float)0.75, editorArea); //$NON-NLS-1$
outputfolder.addView("org.eclipse.pde.runtime.LogView");
17 years, 2 months
JBoss Tools SVN: r4626 - in trunk/as/docs: reference and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: afedosik
Date: 2007-11-01 10:13:19 -0400 (Thu, 01 Nov 2007)
New Revision: 4626
Added:
trunk/as/docs/reference/
trunk/as/docs/reference/build.xml
trunk/as/docs/reference/en/
trunk/as/docs/reference/en/images/
trunk/as/docs/reference/en/images/JBossASPerspective/
trunk/as/docs/reference/en/images/JBossASPerspective/Enableprefer.png
trunk/as/docs/reference/en/images/JBossASPerspective/JBSVAddinganxpath.png
trunk/as/docs/reference/en/images/JBossASPerspective/JBSVAddxpath.png
trunk/as/docs/reference/en/images/JBossASPerspective/JBSVaddingcategory.png
trunk/as/docs/reference/en/images/JBossASPerspective/JBSVxpathpreview.png
trunk/as/docs/reference/en/images/JBossASPerspective/JBVEventlogactions.png
trunk/as/docs/reference/en/images/JBossASPerspective/JBVExtensions.png
trunk/as/docs/reference/en/images/JBossASPerspective/JBVModulesactions.png
trunk/as/docs/reference/en/images/JBossASPerspective/JBVServerisstopped.png
trunk/as/docs/reference/en/images/JBossASPerspective/JBVxmlconfigandprop.png
trunk/as/docs/reference/en/images/JBossASPerspective/archives1.png
trunk/as/docs/reference/en/images/JBossASPerspective/archives2.png
trunk/as/docs/reference/en/images/JBossASPerspective/archives3.png
trunk/as/docs/reference/en/images/JBossASPerspective/archives4.png
trunk/as/docs/reference/en/images/JBossASPerspective/deploytoserver.png
trunk/as/docs/reference/en/images/JBossASPerspective/jbossserverview.png
trunk/as/docs/reference/en/master.xml
trunk/as/docs/reference/en/modules/
trunk/as/docs/reference/en/modules/JBossASPerspective.xml
trunk/as/docs/reference/en/modules/RuntimesAndServers.xml
Log:
http://jira.jboss.com/jira/browse/RHDS-270 "reference" folder added instead of "userguide"
Added: trunk/as/docs/reference/build.xml
===================================================================
--- trunk/as/docs/reference/build.xml (rev 0)
+++ trunk/as/docs/reference/build.xml 2007-11-01 14:13:19 UTC (rev 4626)
@@ -0,0 +1,20 @@
+<project name="Documentation" default="all.doc" basedir=".">
+
+ <!-- Set the following property to generate the doco in the output folder -->
+ <property name="build.dir" value="${basedir}/../build/reference"/>
+
+ <property name="pdf.name" value="Getting_Started_with_RHDS.pdf" />
+ <import file="../resources/support.xml" />
+
+ <target name="all.doc" depends="clean">
+ <antcall target="lang.all"><param name="lang" value="en"/></antcall>
+ </target>
+
+ <!-- Use this alternate target to enable uptodate checking, i.e.
+ don't generate docs if nothing has changed
+ <target name="all.doc">
+ <antcall target="lang.all.run"><param name="lang" value="en"/></antcall>
+ </target>
+ -->
+
+</project>
Added: trunk/as/docs/reference/en/images/JBossASPerspective/Enableprefer.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/JBossASPerspective/Enableprefer.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/JBossASPerspective/JBSVAddinganxpath.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/JBossASPerspective/JBSVAddinganxpath.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/JBossASPerspective/JBSVAddxpath.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/JBossASPerspective/JBSVAddxpath.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/JBossASPerspective/JBSVaddingcategory.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/JBossASPerspective/JBSVaddingcategory.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/JBossASPerspective/JBSVxpathpreview.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/JBossASPerspective/JBSVxpathpreview.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/JBossASPerspective/JBVEventlogactions.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/JBossASPerspective/JBVEventlogactions.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/JBossASPerspective/JBVExtensions.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/JBossASPerspective/JBVExtensions.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/JBossASPerspective/JBVModulesactions.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/JBossASPerspective/JBVModulesactions.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/JBossASPerspective/JBVServerisstopped.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/JBossASPerspective/JBVServerisstopped.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/JBossASPerspective/JBVxmlconfigandprop.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/JBossASPerspective/JBVxmlconfigandprop.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/JBossASPerspective/archives1.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/JBossASPerspective/archives1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/JBossASPerspective/archives2.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/JBossASPerspective/archives2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/JBossASPerspective/archives3.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/JBossASPerspective/archives3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/JBossASPerspective/archives4.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/JBossASPerspective/archives4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/JBossASPerspective/deploytoserver.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/JBossASPerspective/deploytoserver.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/JBossASPerspective/jbossserverview.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/JBossASPerspective/jbossserverview.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/master.xml
===================================================================
--- trunk/as/docs/reference/en/master.xml (rev 0)
+++ trunk/as/docs/reference/en/master.xml 2007-11-01 14:13:19 UTC (rev 4626)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3CR3//EN"
+"../../resources/support/docbook-dtd/docbookx.dtd"
+
+[<!ENTITY RuntimesAndServers SYSTEM "modules/RuntimesAndServers.xml">
+<!ENTITY JBossASPerspective SYSTEM "modules/JBossASPerspective.xml">
+
+
+]>
+
+<book>
+
+ <bookinfo>
+ <title>JBoss Server Manager Reference Guide</title>
+ <copyright>
+ <year>2007</year>
+ <holder>Red Hat</holder>
+ </copyright>
+ <releaseinfo>
+<para>Version: 1.0.0.beta2</para>
+<para>Note: This document is a work in progress and hence some sections might be incomplete and screenshots not 100% accurate.</para></releaseinfo>
+ </bookinfo>
+
+
+ <toc/>
+ &RuntimesAndServers;
+ &JBossASPerspective;
+
+</book>
Added: trunk/as/docs/reference/en/modules/JBossASPerspective.xml
===================================================================
--- trunk/as/docs/reference/en/modules/JBossASPerspective.xml (rev 0)
+++ trunk/as/docs/reference/en/modules/JBossASPerspective.xml 2007-11-01 14:13:19 UTC (rev 4626)
@@ -0,0 +1,251 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="JBossASPerspective" xreflabel="JBossASPerspective">
+ <?dbhtml filename="JBossASPerspective.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>Red Hat Developer Studio</keyword>
+ <keyword>Eclipse</keyword>
+ <keyword>Deploy</keyword>
+ <keyword>Deployment</keyword>
+ <keyword>JBoss</keyword>
+ </keywordset>
+ </chapterinfo>
+ <title>JBoss AS Perspective</title>
+
+ <para>The <property>JBoss AS</property> Perspective is similar to the Java perspective, but it contains a few additional views. Two of the additional views are standard views, specifically the <property>Console </property> view and the <property>Properties</property> view.
+ The other two views that are added are the <property>Project archives</property> view and the <property>JBoss Servers View</property>.</para>
+
+ <section id="JBossServersView">
+ <?dbhtml filename="JBossServerView.html"?>
+ <title>The JBoss Servers View</title>
+ <para>This chapter will focus on the the JBoss Server's View. The JBoss Servers View is based on the Webtool's view, Servers View. The top half of the JBoss Servers View essentially embeds the original Servers View directly into it, making slight changes to the context menu.
+ A second half was added to provide additional information about the server selected in the top half. In the image provided, categories in the second half include which modules are currently deployed.</para>
+
+ <figure>
+ <title>The JBoss Servers View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/JBossASPerspective/jbossserverview.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+
+ <para>In order to access the view's preferences, you should access <emphasis><property>Window > Preferences > JBoss Tools > JBoss Servers > View</property></emphasis>.
+ This preference page allows you to select which view extensions you want on or off, the order they appear
+ in the view, as well as any other extension-specific preferences that may be available.</para>
+ <figure>
+ <title>View Preferences</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/JBossASPerspective/Enableprefer.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Extender is meant to provide additional functionality relevent to the server selected in the top half of the view. If a standard server element is selected from above, some
+ of the extensions may still provide the additional information. Others may not.
+
+ So, let's look at the currently available extensions to the JBoss Server's View.</para>
+ <figure>
+ <title>View Extensions</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/JBossASPerspective/JBVExtensions.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The <property>Modules</property> section shows what modules are currently deployed to the server, and allows you to remove them
+ from the server, or force a full republish upon them. It only shows which modules have been deployed through Eclipse,
+ not any and all modules that happen to be in the deploy directory.</para>
+ <figure>
+ <title>Modules Action</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/JBossASPerspective/JBVModulesactions.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The <property>Event Log</property> will show relevent information to your server's startup, shutdown, and publish processes. This allows
+ you to keep an eye on what's going on (such as automatic incremental deployment if you have it enabled).
+ The only action available is to clear the event log. However if the properties view is opened, you can receive further
+ information on each event log item (when available).</para>
+ <figure>
+ <title>Event Log Actions</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/JBossASPerspective/JBVEventlogactions.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <figure>
+ <title>Stopping the Server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/JBossASPerspective/JBVServerisstopped.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The <property>XML Configuration</property> category allows you to quickly browse to descriptor files in your server's deploy directory and
+ check or change the values. Its use requires the Properties view. Basically, XML Configuration are XML XPaths where a xpath is a path used to access
+ some specific part of an xml document.</para>
+ <figure>
+ <title>XML Configuration and Properties View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/JBossASPerspective/JBVxmlconfigandprop.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The view itself contains only a list of categories. By right-clicking on <emphasis><property>XML Configuration</property></emphasis>, you can create a new category.
+ Ports are provided by default and is filled with many of the most commonly used ports in the JBoss Server.</para>
+ <figure>
+ <title>Adding New Category</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/JBossASPerspective/JBSVaddingcategory.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>By right-clicking on <emphasis><property>Ports</property></emphasis>, you can create a new XPaths.</para>
+ <figure>
+ <title>Adding New XPath</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/JBossASPerspective/JBSVAddxpath.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>After that, the dialog shown below will appear.</para>
+ <figure>
+ <title>Adding New XPath</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/JBossASPerspective/JBSVAddinganxpath.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>As you type, the fields autocomplete to help you locate exactly what xpath you're looking for. The goal here is to
+ get an end result where the xpath matches up with an easily changed property. With that in mind, if the property
+ you want to change is the text of an element, then the final field Attribute Name
+ should be left blank and your xpath should end with port.
+ If, on the other hand, your desired field is the port attribute of <fieldName port="35">, then your xpath will end
+ with fieldName and your Attribute Name will be "port".
+ When finished, you can click <emphasis><property>Preview</property></emphasis> to see how many matches you have for that particular xpath, as shown below.</para>
+ <figure>
+ <title>XPath Preview</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/JBossASPerspective/JBSVxpathpreview.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="Project_archivesView">
+ <title>Project archives View</title>
+ <para>Every application, whether plain old Java, J2EE, or some other language altogether, needs to be packaged in some way. In Java-related projects,
+ many people use ANT. Red Hat Developer Studio comes with our own archives tool with a bit easier and less-verbose XML and a handy user interface.</para>
+ <para>The Project Archives plugin consists primarily of a view to set up each packaging configuration. Each project can enable or disable its builder, or depend on the global setting.</para>
+ <para>The packaging configuration for each project is stored in that project's root folder, and is in a file named <property>.packages</property>, which has a fairly simple XML
+ structure. Modifying the file by hand is neither required nor reccommended, and using the UI is the official way of modifying your packaging structure.</para>
+ <para>Aside from the builder, the other preferences for the plugin are mostly cosmetic, allowing you to show full or truncated paths, show the project at the
+ root, etc. None of these have any effect on the functionality of the packaging plugin.</para>
+
+ <section id="Creating an archive">
+ <title>Creating an Archive</title>
+ <para>When creating a new archive, you have some different options at your disposal. If the project has no <property>.packages</property> file, your
+ options will be presented to you all at once for you to choose from (as above). Otherwise you will right-click inside the view and select <emphasis><property>New Archive</property></emphasis>
+ to see your archive type options.</para>
+ <figure>
+ <title>Create an Archive</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/JBossASPerspective/archives1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>JAR is the standard archive type, and does very little configuration, leaving most of the work up to you. You can customize the name, add folders,
+ filesets, and inner jars to it.</para>
+ <para>The other types, for the most part, simply start off with a default setting, usually the jar with some specific children based on an expected
+ structure of the project. For example, if the project is a dynamic web project, and you create a WAR archive, the archive will be created with a few filesets relevant to the known structure of the project.</para>
+
+ <para>Because the first page of all new archive wizards are the same, and it is also the only page in the New Jar Wizard, that page is shown below.</para>
+ <figure>
+ <title>New JAR Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/JBossASPerspective/archives2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The page is pretty simple. All it asks is for the name of your new archive, a destination, which we'll get to in a moment, and whether the archive
+ is exploded or packaged up.</para>
+ <para>The destination of an archive can be anywhere on the filesystem, anywhere in the workspace, inside some other archive, or inside a folder
+ declared inside an archive. You can browse to workspace or filesystem destinations by clicking on their respective buttons. To select a destination
+ inside some other archive, you'll need to press the <property>Workspace...</property> button. At the bottom of the list, you'll see archives that have been declared in the
+ workspace.</para>
+ <section id="CreatingaFolder">
+ <title>Creating a Folder</title>
+ <para>Creating a folder is much easier. You simply right-click on an archive or folder you want your new folder to be a child under. The only piece of
+ required information is naming the file.</para>
+ </section>
+ <section id="CreatingaFileSet">
+ <title>Creating a FileSet</title>
+ <para>To create a new fileset, you click on an available target location such as an archive, a nested archive, or a folder within an archive, and select
+ New Fileset. The New Fileset Wizard requires a destination (where the files will go), and a root directory (or where the files are coming from).
+ The source can be anywhere in the workspace or from the filesystem at large.</para>
+ <para>Below that, the fileset requires only an includes pattern and an excludes pattern. As you type in either of these fields, the preview viewer should
+ update itself with which files are matched.</para>
+ </section>
+ </section>
+ <section id="View Actions">
+ <title>View Actions</title>
+ <figure>
+ <title>Context Menu on the Item</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/JBossASPerspective/archives3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The context menu on the items in the view is extendable, but there are several that come standard. The first is the <property>Build Archive</property> action, enabled
+ only on top-level archives, which initiates a full build on that archive. Editing and deleting nodes are also standard actions, with deletion not needing
+ an explanation. The edit action brings up the wizard associated with that particular node type and allows the details to be changed. The final action
+ contribution here is the ability to publish to a declared server.</para>
+ </section>
+ <section id="PublishToServer">
+ <title>Publish to Server</title>
+ <figure>
+ <title>Context Menu on the Item</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/JBossASPerspective/archives4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The dialog above appears after selecting <property>Publish To Server</property>. To simply publish once, you just select the server(s) that you want, and finish.
+ If you want the Publish to Server action on that particular Archive to always publish to that set of servers, then check the appropriate checkbox.
+ And finally, to enable automatic publishing upon build events, check the last checkbox.</para>
+ <para>The automatic publishing feature is nice if, for example, your package's destination (where it is built) is a temporary folder and you want the
+ archive published to several servers. If you only really want your archive published to one server, it might be easier to have the archive's destination
+ folder be the deploy folder of the server.</para>
+ </section>
+
+ </section>
+
+ <section id="Deploy to Server">
+ <?dbhtml filename="DeployToServer.html"?>
+ <title>Deploy to Server</title>
+ <para>In the context menu of files there is a <property>Deploy To Server</property> option that allows a single file deployment. To deploy these non-WTP files/projects right click on the file (-ds.xml, .ear, .jar etc.) and select <emphasis><property>Deploy To server</property></emphasis> and it will be automatically deployed.</para>
+ <figure>
+ <title>Deploy to Sever</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/JBossASPerspective/deploytoserver.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The deployed files are listed side-by-side with other modules that are deployed to the server.</para>
+
+</section>
+</chapter>
Added: trunk/as/docs/reference/en/modules/RuntimesAndServers.xml
===================================================================
--- trunk/as/docs/reference/en/modules/RuntimesAndServers.xml (rev 0)
+++ trunk/as/docs/reference/en/modules/RuntimesAndServers.xml 2007-11-01 14:13:19 UTC (rev 4626)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="RuntimesAndServers" xreflabel="RuntimesAndServers">
+ <?dbhtml filename="RuntimesAndServers.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>Red Hat Developer Studio</keyword>
+ <keyword>Eclipse</keyword>
+ <keyword>Deploy</keyword>
+ <keyword>Deployment</keyword>
+ <keyword>JBoss</keyword>
+ </keywordset>
+ </chapterinfo>
+ <title>Runtimes and Servers in the JBoss AS plugin</title>
+
+ </chapter>
17 years, 2 months