JBoss Tools SVN: r29819 - in branches/jbosstools-3.2.x/deltacloud/plugins: org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-03-16 11:59:52 -0400 (Wed, 16 Mar 2011)
New Revision: 29819
Modified:
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/AbstractCloudElementFilter.java
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/AllFieldMatcher.java
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/AllImageFilter.java
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/AllInstanceFilter.java
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/FieldMatcher.java
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/ICloudElementFilter.java
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/IFieldMatcher.java
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/IImageFilter.java
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/IInstanceFilter.java
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/ImageFilter.java
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/InstanceFilter.java
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/ImageView.java
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/InstanceView.java
Log:
[JBIDE-8323]
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/AbstractCloudElementFilter.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/AbstractCloudElementFilter.java 2011-03-16 15:11:23 UTC (rev 29818)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/AbstractCloudElementFilter.java 2011-03-16 15:59:52 UTC (rev 29819)
@@ -91,4 +91,9 @@
public IFieldMatcher getIdRule() {
return idRule;
}
+
+ public boolean isFiltering() {
+ return !idRule.isMatchesAll()
+ || !nameRule.isMatchesAll();
+ }
}
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/AllFieldMatcher.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/AllFieldMatcher.java 2011-03-16 15:11:23 UTC (rev 29818)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/AllFieldMatcher.java 2011-03-16 15:59:52 UTC (rev 29819)
@@ -12,4 +12,8 @@
return "*"; //$NON-NLS-1$
}
+ public boolean isMatchesAll() {
+ return true;
+ }
+
}
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/AllImageFilter.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/AllImageFilter.java 2011-03-16 15:11:23 UTC (rev 29818)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/AllImageFilter.java 2011-03-16 15:59:52 UTC (rev 29819)
@@ -10,6 +10,8 @@
******************************************************************************/
package org.jboss.tools.deltacloud.core;
+import java.util.regex.PatternSyntaxException;
+
/**
* A filter for images that matches on all elements (no criteria checked)
*
@@ -33,7 +35,7 @@
}
@Override
- public void setRules(String ruleString) {
+ public void setRules(String rulesString) throws PatternSyntaxException {
// ignore, never set the rules for this filter
}
@@ -55,6 +57,10 @@
return matcher;
}
+ public boolean isFiltering() {
+ return false;
+ }
+
@Override
public String toString() {
return ALL_STRING;
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/AllInstanceFilter.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/AllInstanceFilter.java 2011-03-16 15:11:23 UTC (rev 29818)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/AllInstanceFilter.java 2011-03-16 15:59:52 UTC (rev 29819)
@@ -1,5 +1,7 @@
package org.jboss.tools.deltacloud.core;
+import java.util.regex.PatternSyntaxException;
+
/**
* A filter for instances that matches on all elements (no criteria checked)
*
@@ -23,10 +25,9 @@
}
@Override
- public void setRules(String ruleString) {
+ public void setRules(String rulesString) throws PatternSyntaxException {
// ignore, never set the rules for this filter
}
-
@Override
public IFieldMatcher getNameRule() {
@@ -63,8 +64,14 @@
return matcher;
}
+ public boolean isFiltering() {
+ return false;
+ }
+
@Override
public String toString() {
return ALL_STRING;
}
+
+
}
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/FieldMatcher.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/FieldMatcher.java 2011-03-16 15:11:23 UTC (rev 29818)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/FieldMatcher.java 2011-03-16 15:59:52 UTC (rev 29819)
@@ -56,4 +56,8 @@
return rule;
}
+ public boolean isMatchesAll() {
+ return false;
+ }
+
}
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/ICloudElementFilter.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/ICloudElementFilter.java 2011-03-16 15:11:23 UTC (rev 29818)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/ICloudElementFilter.java 2011-03-16 15:59:52 UTC (rev 29819)
@@ -29,12 +29,6 @@
public static final String ALL_MATCHER_EXPRESSION = "*"; //$NON-NLS-1$
- public static final String ALL_STRING =
- ALL_MATCHER_EXPRESSION + EXPRESSION_DELIMITER // name
- + ALL_MATCHER_EXPRESSION + EXPRESSION_DELIMITER // id
- + ALL_MATCHER_EXPRESSION + EXPRESSION_DELIMITER // arch
- + ALL_MATCHER_EXPRESSION; // desc
-
public Collection<CLOUDELEMENT> filter(CLOUDELEMENT[] cloudElements) throws DeltaCloudException;
public void setRules(String ruleString);
@@ -42,4 +36,6 @@
public IFieldMatcher getNameRule();
public IFieldMatcher getIdRule();
+
+ public boolean isFiltering();
}
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/IFieldMatcher.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/IFieldMatcher.java 2011-03-16 15:11:23 UTC (rev 29818)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/IFieldMatcher.java 2011-03-16 15:59:52 UTC (rev 29819)
@@ -16,5 +16,6 @@
public interface IFieldMatcher {
public boolean matches(String input);
+ public boolean isMatchesAll();
}
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/IImageFilter.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/IImageFilter.java 2011-03-16 15:11:23 UTC (rev 29818)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/IImageFilter.java 2011-03-16 15:59:52 UTC (rev 29819)
@@ -16,6 +16,12 @@
*/
public interface IImageFilter extends ICloudElementFilter<DeltaCloudImage> {
+ public static final String ALL_STRING =
+ ALL_MATCHER_EXPRESSION + EXPRESSION_DELIMITER // name
+ + ALL_MATCHER_EXPRESSION + EXPRESSION_DELIMITER // id
+ + ALL_MATCHER_EXPRESSION + EXPRESSION_DELIMITER // arch
+ + ALL_MATCHER_EXPRESSION; // desc
+
public IFieldMatcher getArchRule();
public IFieldMatcher getDescRule();
}
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/IInstanceFilter.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/IInstanceFilter.java 2011-03-16 15:11:23 UTC (rev 29818)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/IInstanceFilter.java 2011-03-16 15:59:52 UTC (rev 29819)
@@ -16,6 +16,15 @@
*/
public interface IInstanceFilter extends ICloudElementFilter<DeltaCloudInstance> {
+ public static final String ALL_STRING =
+ ALL_MATCHER_EXPRESSION + EXPRESSION_DELIMITER // name
+ + ALL_MATCHER_EXPRESSION + EXPRESSION_DELIMITER // id
+ + ALL_MATCHER_EXPRESSION + EXPRESSION_DELIMITER // imageId
+ + ALL_MATCHER_EXPRESSION + EXPRESSION_DELIMITER // ownerId
+ + ALL_MATCHER_EXPRESSION + EXPRESSION_DELIMITER // keynameId
+ + ALL_MATCHER_EXPRESSION + EXPRESSION_DELIMITER // realm
+ + ALL_MATCHER_EXPRESSION; // profile
+
public IFieldMatcher getImageIdRule();
public IFieldMatcher getOwnerIdRule();
public IFieldMatcher getKeyNameRule();
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/ImageFilter.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/ImageFilter.java 2011-03-16 15:11:23 UTC (rev 29818)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/ImageFilter.java 2011-03-16 15:59:52 UTC (rev 29819)
@@ -27,6 +27,7 @@
public ImageFilter(DeltaCloud cloud) {
super(cloud);
+ setRules(ALL_STRING);
}
private IFieldMatcher descRule;
@@ -60,4 +61,11 @@
public IFieldMatcher getDescRule() {
return descRule;
}
+
+ public boolean isFiltering() {
+ return super.isFiltering()
+ || !archRule.isMatchesAll()
+ || !descRule.isMatchesAll();
+ }
+
}
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/InstanceFilter.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/InstanceFilter.java 2011-03-16 15:11:23 UTC (rev 29818)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/InstanceFilter.java 2011-03-16 15:59:52 UTC (rev 29819)
@@ -31,6 +31,7 @@
public InstanceFilter(DeltaCloud cloud) {
super(cloud);
+ setRules(ALL_STRING);
}
@Override
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java 2011-03-16 15:11:23 UTC (rev 29818)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java 2011-03-16 15:59:52 UTC (rev 29819)
@@ -47,6 +47,7 @@
import org.jboss.tools.deltacloud.core.DeltaCloud;
import org.jboss.tools.deltacloud.core.DeltaCloudException;
import org.jboss.tools.deltacloud.core.DeltaCloudManager;
+import org.jboss.tools.deltacloud.core.ICloudElementFilter;
import org.jboss.tools.deltacloud.core.IDeltaCloudElement;
import org.jboss.tools.deltacloud.core.IDeltaCloudManagerListener;
import org.jboss.tools.deltacloud.core.IInstanceFilter;
@@ -56,7 +57,7 @@
import org.jboss.tools.deltacloud.ui.views.Columns;
import org.jboss.tools.deltacloud.ui.views.Columns.Column;
import org.jboss.tools.internal.deltacloud.ui.preferences.StringPreferenceValue;
-import org.jboss.tools.internal.deltacloud.ui.utils.UIUtils;
+import org.jboss.tools.internal.deltacloud.ui.utils.WorkbenchUtils;
/**
* A common superclass for viewers that operate on IDeltaCloudElements
@@ -78,10 +79,12 @@
private Combo currentCloudSelector;
private Label currentCloudSelectorLabel;
+ private Label filteredLabel;
+ private Composite container;
private TableViewer viewer;
private DeltaCloud currentCloud;
+
private StringPreferenceValue lastSelectedCloudPref;
- private Composite container;
private ModifyListener currentCloudModifyListener = new ModifyListener() {
@@ -102,6 +105,7 @@
@Override
public void run() {
+ updateFilteredLabel();
setViewerInput(currentCloud);
}
});
@@ -115,7 +119,7 @@
public void selectionChanged(IWorkbenchPart part, ISelection selection) {
// we want to listen to selection changes in the deltacloud view
// only
- DeltaCloud cloud = UIUtils.getFirstAdaptedElement(selection, DeltaCloud.class);
+ DeltaCloud cloud = WorkbenchUtils.getFirstAdaptedElement(selection, DeltaCloud.class);
if (isNewCloud(cloud)) {
int index = getCloudIndex(cloud, getClouds());
currentCloudSelector.select(index);
@@ -174,9 +178,10 @@
createCloudSelector(container);
initCloudSelector(lastSelectedCloudPref.get(), currentCloudSelector, clouds);
- Label filterLabel = new Label(container, SWT.NULL);
- filterLabel.setText(CVMessages.getString(FILTERED_LABEL));
- filterLabel.setToolTipText(CVMessages.getString(FILTERED_TOOLTIP));
+ this.filteredLabel = new Label(container, SWT.NULL);
+ filteredLabel.setText(CVMessages.getString(FILTERED_LABEL));
+ filteredLabel.setToolTipText(CVMessages.getString(FILTERED_TOOLTIP));
+ updateFilteredLabel();
Composite tableArea = new Composite(container, SWT.NULL);
viewer = createTableViewer(tableArea);
@@ -184,7 +189,7 @@
currentCloud = getCloud(currentCloudSelector.getSelectionIndex(), clouds);
addPropertyChangeListener(currentCloud);
setViewerInput(currentCloud);
- setFilterLabelVisible(currentCloud, filterLabel);
+ setFilterLabelVisible(currentCloud, filteredLabel);
Point p1 = currentCloudSelectorLabel.computeSize(SWT.DEFAULT, SWT.DEFAULT);
Point p2 = currentCloudSelector.computeSize(SWT.DEFAULT, SWT.DEFAULT);
@@ -203,7 +208,7 @@
f = new FormData();
f.top = new FormAttachment(0, 5 + centering);
f.right = new FormAttachment(100, -10);
- filterLabel.setLayoutData(f);
+ filteredLabel.setLayoutData(f);
f = new FormData();
f.top = new FormAttachment(currentCloudSelector, 8);
@@ -224,20 +229,17 @@
private TableViewer createTableViewer(Composite tableArea) {
TableColumnLayout tableLayout = new TableColumnLayout();
tableArea.setLayout(tableLayout);
-
- TableViewer viewer = new TableViewer(tableArea,
- SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER | SWT.MULTI);
+ TableViewer viewer = new TableViewer(
+ tableArea, SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER | SWT.MULTI);
Table table = viewer.getTable();
table.setHeaderVisible(true);
table.setLinesVisible(true);
ITableContentAndLabelProvider<CLOUDELEMENT> provider = getContentAndLabelProvider();
viewer.setContentProvider(provider);
viewer.setLabelProvider(provider);
- createColumns(provider, tableLayout, table);
-
+ createColumns(provider.getColumns(), tableLayout, table);
viewer.setComparator(new TableViewerColumnComparator());
table.setSortDirection(SWT.NONE);
-
return viewer;
}
@@ -296,7 +298,7 @@
}
IInstanceFilter filter = currentCloud.getInstanceFilter();
- filterLabel.setVisible(!filter.toString().equals(IInstanceFilter.ALL_STRING));
+ filterLabel.setVisible(!filter.isFiltering());
}
private DeltaCloud getCloud(int cloudIndex, DeltaCloud[] clouds) {
@@ -307,18 +309,16 @@
return clouds[cloudIndex];
}
- private void createColumns(ITableContentAndLabelProvider<CLOUDELEMENT> provider, TableColumnLayout tableLayout,
- Table table) {
- Columns<CLOUDELEMENT> columns = provider.getColumns();
-
+ private void createColumns(Columns<CLOUDELEMENT> columns, TableColumnLayout tableLayout, Table table) {
for (int i = 0; i < columns.getSize(); ++i) {
Column<CLOUDELEMENT> c = columns.getColumn(i);
TableColumn tc = new TableColumn(table, SWT.NONE);
if (i == 0) {
table.setSortColumn(tc);
}
- tc.setText(CVMessages.getString(c.getName()));
tableLayout.setColumnData(tc, new ColumnWeightData(c.getWeight(), true));
+ tc.setText(c.getName());
+ tc.setMoveable(true);
tc.addSelectionListener(new ColumnListener(i));
}
}
@@ -340,8 +340,8 @@
}
private void hookContextMenu(Control control) {
- IMenuManager contextMenu = UIUtils.createContextMenu(control);
- UIUtils.registerContributionManager(UIUtils.getContextMenuId(getViewID()), contextMenu, control);
+ IMenuManager contextMenu = WorkbenchUtils.createContextMenu(control);
+ WorkbenchUtils.registerContributionManager(WorkbenchUtils.getContextMenuId(getViewID()), contextMenu, control);
}
protected abstract String getViewID();
@@ -366,7 +366,7 @@
DeltaCloud[] clouds = getClouds();
final int index = getCloudIndex(cloud, clouds);
Display.getDefault().syncExec(new Runnable() {
-
+
@Override
public void run() {
if (index >= 0) {
@@ -382,8 +382,9 @@
currentCloudSelector.addModifyListener(currentCloudModifyListener);
}
container.layout(true, true);
+
}
-
+
private String[] getSelectorItems(final DeltaCloud cloud, final int index) {
List<String> names = new ArrayList<String>(Arrays.asList(currentCloudSelector.getItems()));
names.set(index, cloud.getName());
@@ -481,4 +482,21 @@
return super.getAdapter(adapter);
}
}
+
+ protected void updateFilteredLabel() {
+ filteredLabel.getDisplay().syncExec(new Runnable() {
+
+ @Override
+ public void run() {
+ boolean visible = false;
+ if (currentCloud != null) {
+ ICloudElementFilter<CLOUDELEMENT> filter = getFilter(currentCloud);
+ visible = filter.isFiltering();
+ }
+ filteredLabel.setVisible(visible);
+ }
+ });
+ }
+
+ protected abstract ICloudElementFilter<CLOUDELEMENT> getFilter(DeltaCloud cloud);
}
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/ImageView.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/ImageView.java 2011-03-16 15:11:23 UTC (rev 29818)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/ImageView.java 2011-03-16 15:59:52 UTC (rev 29819)
@@ -10,8 +10,11 @@
*******************************************************************************/
package org.jboss.tools.deltacloud.ui.views.cloudelements;
+import java.beans.PropertyChangeEvent;
+
import org.jboss.tools.deltacloud.core.DeltaCloud;
import org.jboss.tools.deltacloud.core.DeltaCloudImage;
+import org.jboss.tools.deltacloud.core.ICloudElementFilter;
import org.jboss.tools.deltacloud.ui.IDeltaCloudPreferenceConstants;
/**
@@ -45,10 +48,15 @@
}
@Override
- protected void addPropertyChangeListener(DeltaCloud cloud) {
- if (cloud != null) {
- super.addPropertyChangeListener(cloud);
- cloud.addPropertyChangeListener(DeltaCloud.PROP_IMAGES, this);
+ public void propertyChange(PropertyChangeEvent event) {
+ super.propertyChange(event);
+ if (DeltaCloud.PROP_IMAGES.equals(event.getPropertyName())) {
+ updateFilteredLabel();
}
}
+
+ @Override
+ protected ICloudElementFilter<DeltaCloudImage> getFilter(DeltaCloud cloud) {
+ return cloud.getImageFilter();
+ }
}
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/InstanceView.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/InstanceView.java 2011-03-16 15:11:23 UTC (rev 29818)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/InstanceView.java 2011-03-16 15:59:52 UTC (rev 29819)
@@ -10,10 +10,13 @@
*******************************************************************************/
package org.jboss.tools.deltacloud.ui.views.cloudelements;
+import java.beans.PropertyChangeEvent;
+
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.services.IEvaluationService;
import org.jboss.tools.deltacloud.core.DeltaCloud;
import org.jboss.tools.deltacloud.core.DeltaCloudInstance;
+import org.jboss.tools.deltacloud.core.ICloudElementFilter;
import org.jboss.tools.deltacloud.ui.IDeltaCloudPreferenceConstants;
/**
@@ -57,4 +60,18 @@
cloud.addPropertyChangeListener(DeltaCloud.PROP_INSTANCES, this);
}
}
+
+ @Override
+ public void propertyChange(PropertyChangeEvent event) {
+ super.propertyChange(event);
+ if (DeltaCloud.PROP_INSTANCES.equals(event.getPropertyName())) {
+ updateFilteredLabel();
+ }
+ }
+
+ @Override
+ protected ICloudElementFilter<DeltaCloudInstance> getFilter(DeltaCloud cloud) {
+ return cloud.getInstanceFilter();
+ }
+
}
13 years, 10 months
JBoss Tools SVN: r29818 - in branches/jbosstools-3.2.x/deltacloud/plugins: org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/rse/util and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-03-16 11:11:23 -0400 (Wed, 16 Mar 2011)
New Revision: 29818
Modified:
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloudInstance.java
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/rse/util/RSEUtils.java
Log:
[JBIDE-8294] corrected alias reporting
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloudInstance.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloudInstance.java 2011-03-16 14:46:42 UTC (rev 29817)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloudInstance.java 2011-03-16 15:11:23 UTC (rev 29818)
@@ -86,6 +86,9 @@
}
public String getAlias() {
+ if (alias == null || alias.length() == 0) {
+ return instance.getName();
+ }
return alias;
}
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/rse/util/RSEUtils.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/rse/util/RSEUtils.java 2011-03-16 14:46:42 UTC (rev 29817)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/rse/util/RSEUtils.java 2011-03-16 15:11:23 UTC (rev 29818)
@@ -70,11 +70,7 @@
public static String createConnectionName(DeltaCloudInstance instance) {
Assert.isLegal(instance != null, "Cannot create connection name: instance is not defined");
- String connectionName = instance.getAlias();
- if (connectionName == null || connectionName.length() == 0) {
- connectionName = instance.getName();
- }
- return connectionName;
+ return instance.getAlias();
}
/**
13 years, 10 months
JBoss Tools SVN: r29817 - in trunk/deltacloud/plugins: org.jboss.tools.deltacloud.core/src/org/jboss/tools/internal/deltacloud/core/observable and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-03-16 10:46:42 -0400 (Wed, 16 Mar 2011)
New Revision: 29817
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/ChangeLog
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/internal/deltacloud/core/observable/ObservablePojo.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/property/CVPropertySheetPage.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/ImageView.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/InstanceView.java
Log:
[JBIDE-8590]
* adding listeners only if they're not added yet
* removing propertyChangeListeners on disposal
* registering listeners for all props only (was: several for each property)
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/ChangeLog 2011-03-16 01:34:06 UTC (rev 29816)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/ChangeLog 2011-03-16 14:46:42 UTC (rev 29817)
@@ -1,3 +1,11 @@
+2011-03-16 André Dietisheim <André Dietisheim@adietisheim-thinkpad>
+
+ * src/org/jboss/tools/internal/deltacloud/core/observable/ObservablePojo.java
+ (contains):
+ (addPropertyChangeListener):
+ (addPropertyChangeListener):
+ [JBIDE-8590] adding listeners only if they're not added yet
+
2011-03-11 André Dietisheim <André Dietisheim@adietisheim-thinkpad>
* src/org/jboss/tools/deltacloud/core/DeltaCloudInstance.java (performAction):
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/internal/deltacloud/core/observable/ObservablePojo.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/internal/deltacloud/core/observable/ObservablePojo.java 2011-03-16 01:34:06 UTC (rev 29816)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/internal/deltacloud/core/observable/ObservablePojo.java 2011-03-16 14:46:42 UTC (rev 29817)
@@ -34,11 +34,15 @@
}
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener) {
- propertyChangeSupport.addPropertyChangeListener(propertyName, listener);
+ if (!contains(listener)) {
+ propertyChangeSupport.addPropertyChangeListener(propertyName, listener);
+ }
}
public void addPropertyChangeListener(PropertyChangeListener listener) {
- propertyChangeSupport.addPropertyChangeListener(listener);
+ if (!contains(listener)) {
+ propertyChangeSupport.addPropertyChangeListener(listener);
+ }
}
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener) {
@@ -50,6 +54,17 @@
propertyChangeSupport.removePropertyChangeListener(listener);
}
+ protected boolean contains(PropertyChangeListener listener) {
+ boolean contains = false;
+ for (PropertyChangeListener registeredListener : propertyChangeSupport.getPropertyChangeListeners()) {
+ if (registeredListener == listener) {
+ contains = true;
+ break;
+ }
+ }
+ return contains;
+ }
+
protected PropertyChangeSupport getPropertyChangeSupport() {
return propertyChangeSupport;
}
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2011-03-16 01:34:06 UTC (rev 29816)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2011-03-16 14:46:42 UTC (rev 29817)
@@ -1,3 +1,13 @@
+2011-03-16 André Dietisheim <André Dietisheim@adietisheim-thinkpad>
+
+ * src/org/jboss/tools/deltacloud/ui/views/cloudelements/InstanceView.java:
+ * src/org/jboss/tools/deltacloud/ui/views/cloudelements/ImageView.java:
+ * src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java
+ (dispose):
+ (addPropertyChangeListener):
+ [JBIDE-8590] removing propertyChangeListeners on disposal,
+ registering listeners for all props only (was: several for each property)
+
2011-03-14 André Dietisheim <André Dietisheim@adietisheim-thinkpad>
* src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/property/CVPropertySheetPage.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/property/CVPropertySheetPage.java 2011-03-16 01:34:06 UTC (rev 29816)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/property/CVPropertySheetPage.java 2011-03-16 14:46:42 UTC (rev 29817)
@@ -33,7 +33,7 @@
@Override
public void propertyChange(PropertyChangeEvent evt) {
Display.getDefault().syncExec(new Runnable() {
-
+
@Override
public void run() {
refresh();
@@ -74,4 +74,8 @@
}
}
+ @Override
+ public void dispose() {
+ removePropertyChangeListener(deltaCloud);
+ }
}
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java 2011-03-16 01:34:06 UTC (rev 29816)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/AbstractCloudElementTableView.java 2011-03-16 14:46:42 UTC (rev 29817)
@@ -188,6 +188,7 @@
currentCloud = getCloud(currentCloudSelector.getSelectionIndex(), clouds);
addPropertyChangeListener(currentCloud);
+
setViewerInput(currentCloud);
setFilterLabelVisible(currentCloud, filteredLabel);
@@ -431,7 +432,7 @@
protected void addPropertyChangeListener(DeltaCloud cloud) {
if (cloud != null) {
- cloud.addPropertyChangeListener(DeltaCloud.PROP_NAME, this);
+ cloud.addPropertyChangeListener(this);
}
}
@@ -469,6 +470,7 @@
@Override
public void dispose() {
+ removePropertyChangeListener(currentCloud);
getSite().getWorkbenchWindow().getSelectionService().removePostSelectionListener(workbenchSelectionListener);
DeltaCloudManager.getDefault().removeCloudManagerListener(this);
super.dispose();
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/ImageView.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/ImageView.java 2011-03-16 01:34:06 UTC (rev 29816)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/ImageView.java 2011-03-16 14:46:42 UTC (rev 29817)
@@ -56,14 +56,6 @@
}
@Override
- protected void addPropertyChangeListener(DeltaCloud cloud) {
- if (cloud != null) {
- super.addPropertyChangeListener(cloud);
- cloud.addPropertyChangeListener(DeltaCloud.PROP_IMAGES, this);
- }
- }
-
- @Override
protected ICloudElementFilter<DeltaCloudImage> getFilter(DeltaCloud cloud) {
return cloud.getImageFilter();
}
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/InstanceView.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/InstanceView.java 2011-03-16 01:34:06 UTC (rev 29816)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloudelements/InstanceView.java 2011-03-16 14:46:42 UTC (rev 29817)
@@ -62,14 +62,6 @@
}
@Override
- protected void addPropertyChangeListener(DeltaCloud cloud) {
- if (cloud != null) {
- super.addPropertyChangeListener(cloud);
- cloud.addPropertyChangeListener(DeltaCloud.PROP_INSTANCES, this);
- }
- }
-
- @Override
protected ICloudElementFilter<DeltaCloudInstance> getFilter(DeltaCloud cloud) {
return cloud.getInstanceFilter();
}
13 years, 10 months
JBoss Tools SVN: r29815 - trunk/jsf/docs/userguide/en-US.
by jbosstools-commits@lists.jboss.org
Author: mcaspers
Date: 2011-03-15 20:59:08 -0400 (Tue, 15 Mar 2011)
New Revision: 29815
Modified:
trunk/jsf/docs/userguide/en-US/palette.xml
trunk/jsf/docs/userguide/en-US/web_projects.xml
Log:
"General editing and screenshot updates"
Modified: trunk/jsf/docs/userguide/en-US/palette.xml
===================================================================
--- trunk/jsf/docs/userguide/en-US/palette.xml 2011-03-16 00:45:00 UTC (rev 29814)
+++ trunk/jsf/docs/userguide/en-US/palette.xml 2011-03-16 00:59:08 UTC (rev 29815)
@@ -12,11 +12,11 @@
</chapterinfo>
<title>JBoss Tools Palette</title>
<para>
- This chapter will introduce you to the functionality provided by <property>JBoss Tools Palette</property>. The Palette allows you to quickly and easily create your JSP or JSF pages. Now you can do it more faster without additional knowledge.
+ This chapter will introduce you to the functionality provided by <guilabel>JBoss Tools Palette</guilabel>. The Palette allows you to quickly and easily create your <filename>JSP</filename> or <filename>JSF</filename> pages. Now you can do it more faster without additional knowledge.
</para>
<para>
- The <property>JBoss Tools Palette</property> allows you to:
+ The <guilabel>JBoss Tools Palette</guilabel> allows you to:
</para>
<itemizedlist>
@@ -97,15 +97,15 @@
</figure>
<para>
- By default <property>JBoss Tools Palette</property> is not displayed. If you want to use it select <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Show View Other...</guimenuitem><guimenuitem>JBoss Tools Web</guimenuitem><guimenuitem>JBoss Tools Palette</guimenuitem></menuchoice> from the menu bar.
+ By default <guilabel>JBoss Tools Palette</guilabel> is not displayed. If you want to use it select <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Show View Other...</guimenuitem><guimenuitem>JBoss Tools Web</guimenuitem><guimenuitem>JBoss Tools Palette</guimenuitem></menuchoice> from the menu bar.
</para>
<para>
- The standard <property>Eclipse Palette</property> is displayed by default in both Web Development and Seam perspectives. Now the standard <property>Eclipse Palette</property> is featured with all <property>JBoss Tools Palette</property> options and capabilities.
+ The standard <guilabel>Eclipse Palette</guilabel> is displayed by default in both Web Development and Seam perspectives. Now the standard <guilabel>Eclipse Palette</guilabel> is featured with all <guilabel>JBoss Tools Palette</guilabel> options and capabilities.
</para>
<para>
- To open the standard <property>Eclipse Palette</property> navigate to <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Show View</guimenuitem><guimenuitem>Others</guimenuitem><guimenuitem>General</guimenuitem><guimenuitem>Palette</guimenuitem></menuchoice>.
+ To open the standard <guilabel>Eclipse Palette</guilabel> navigate to <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Show View</guimenuitem><guimenuitem>Others</guimenuitem><guimenuitem>General</guimenuitem><guimenuitem>Palette</guimenuitem></menuchoice>.
</para>
<para>
@@ -115,7 +115,7 @@
<itemizedlist>
<listitem>
<para>
- The standard <property>Eclipse Palette</property> is blank by default. Content of the palette is available only if Visual Page Editor is open and active, while JBoss Tools Palette always contains a predefined set of components.
+ The standard <guilabel>Eclipse Palette</guilabel> is blank by default. Content of the palette is available only if Visual Page Editor is open and active, while JBoss Tools Palette always contains a predefined set of components.
</para>
</listitem>
@@ -140,19 +140,19 @@
<itemizedlist>
<listitem>
<para>
- to <property>edit the palette</property> content by adding, removing or changing the palette elements
+ to edit the palette content by adding, removing or changing the palette elements
</para>
</listitem>
<listitem>
<para>
- to <property>show/hide</property> groups, subgroups
+ to show/hide groups, subgroups
</para>
</listitem>
<listitem>
<para>
- to <property>import</property> groups, subgroups
+ to import groups, subgroups
</para>
</listitem>
</itemizedlist>
@@ -170,11 +170,11 @@
<?dbhtml filename="PaletteEditor.html"?>
<title>Palette Editor</title>
<para>
- JBoss Tools Palette contains existing libraries of tags, thus the <property>Palette editor</property> is intended to work with them or create your new one as well.
+ JBoss Tools Palette contains existing libraries of tags, thus the <guilabel>Palette editor</guilabel> is intended to work with them or create your new one as well.
</para>
<para>
- To open the editor, click on the <emphasis> <property>Palette Editor</property> </emphasis> icon(
+ To open the editor, click on the <guilabel>Palette Editor</guilabel> icon(
<inlinemediaobject>
<imageobject>
<imagedata fileref="images/palette/palette_7.png"/>
@@ -188,13 +188,13 @@
</para>
<para>
- It can also be done by right click and using <emphasis> <property>Edit…</property> </emphasis> option.
+ It can also be done by right click and using <guimenuitem>Edit…</guimenuitem> option.
</para>
<literallayout/>
<para>
- For example, <property>JSF</property> group consists of <property>Core</property>, <property>Facelets</property>, <property>HTML</property> tag libraries and the attributes as <property>name</property>, <property>description</property> and <property>hidden</property> which are available for editing:
+ For example, <guilabel>JSF</guilabel> group consists of <guilabel>Core</guilabel>, <guilabel>Facelets</guilabel>, <guilabel>HTML</guilabel> tag libraries and the attributes as <guilabel>name</guilabel>, <guilabel>description</guilabel> and <guilabel>hidden</guilabel> which are available for editing:
</para>
<figure>
@@ -217,11 +217,11 @@
</para>
<para>
- <emphasis> <property>Icons</property> </emphasis> is the root folder for the icon sets. The first step is creating the icon set. Right click on the <emphasis> <property>Icons</property> </emphasis> folder and select <menuchoice><guimenuitem>Create</guimenuitem><guimenuitem>Create Set...</guimenuitem></menuchoice>.
+ <guilabel>Icons</guilabel> is the root folder for the icon sets. The first step is creating the icon set. Right click on the <emphasis> <guilabel>Icons</guilabel> </emphasis> folder and select <menuchoice><guimenuitem>Create</guimenuitem><guimenuitem>Create Set...</guimenuitem></menuchoice>.
</para>
<para>
- Set the value of the name in the <emphasis> <property>Add Icons</property> </emphasis> window and click the <guibutton>Finish</guibutton> button. A new element will appear in the list.
+ Set the value of the name in the <guilabel>Add Icons</guilabel> window and click the <guibutton>Finish</guibutton> button. A new element will appear in the list.
</para>
<figure>
@@ -234,7 +234,7 @@
</figure>
<para>
- Also you can delete the set. Right click on the set of icons that you wish to remove and chose the <emphasis> <property>Delete</property> </emphasis> option from the pop-up menu or click the <emphasis> <property>Delete</property> </emphasis> keyboard button.
+ Also you can delete the set. Right click on the set of icons that you wish to remove and chose the <guimenuitem>Delete</guimenuitem> option from the pop-up menu or click the <keycap>Delete</keycap> keyboard button.
</para>
</listitem>
@@ -267,11 +267,11 @@
</para>
<para>
- The first step in work with the editor is creating a group of libraries. It's very easy to do, right mouse button click on the <emphasis> <property>Palette</property> </emphasis> folder and select <menuchoice><guimenuitem>Create</guimenuitem><guimenuitem>Create Group…</guimenuitem></menuchoice>
+ The first step in work with the editor is creating a group of libraries. It's very easy to do, right mouse button click on the <guilabel>Palette</guilabel> folder and select <menuchoice><guimenuitem>Create</guimenuitem><guimenuitem>Create Group…</guimenuitem></menuchoice>
</para>
<para>
- Set a name of a group in the <property>Create Group</property> window and click the <guibutton>OK</guibutton> button. A new element will appear at the end of the list.
+ Set a name of a group in the <guilabel>Create Group</guilabel> window and click the <guibutton>OK</guibutton> button. A new element will appear at the end of the list.
</para>
<figure>
@@ -284,7 +284,7 @@
</figure>
<para>
- You are allowed to edit or delete a group as well. If you'd like to change attributes of a group, use the right editing window of the palette editor or the <emphasis> <property>Edit...</property> </emphasis> option, like it was mentioned before. In order to remove the group, right click on the group that you wish to remove and choose the <emphasis> <property>Delete</property> </emphasis> option or click the <emphasis> <property>Delete</property> </emphasis> keyboard button.
+ You are allowed to edit or delete a group as well. If you'd like to change attributes of a group, use the right editing window of the palette editor or the <guimenuitem>Edit...</guimenuitem> option, like it was mentioned before. In order to remove the group, right click on the group that you wish to remove and choose the <guimenuitem>Delete</guimenuitem> option or click the <keycap>Delete</keycap> keyboard button.
</para>
<important>
@@ -301,7 +301,7 @@
</para>
<para>
- The group maintains a list of tag libraries. If you'd like to create your own library, click right mouse button on the group and choose <emphasis> <property>Create Group…</property> </emphasis> option.
+ The group maintains a list of tag libraries. If you'd like to create your own library, click right mouse button on the group and choose <guimenuitem>Create Group…</guimenuitem> option.
</para>
<figure>
@@ -325,7 +325,7 @@
</note>
<para>
- You are allowed to edit or delete the tag library, as well. If you'd like to change attributes of the library or choose another icon, use the right editing window of the palette editor or the <emphasis> <property>Edit...</property> </emphasis> option. In order to remove the tag library, right click on the library that you wish to remove and chose the <emphasis> <property>Delete</property> </emphasis> option or click the <emphasis> <property>Delete</property> </emphasis> keyboard button.
+ You are allowed to edit or delete the tag library, as well. If you'd like to change attributes of the library or choose another icon, use the right editing window of the palette editor or the <guimenuitem>Edit...</guimenuitem> option. In order to remove the tag library, right click on the library that you wish to remove and chose the <guimenuitem>Delete</guimenuitem> option or click the <keycap>Delete</keycap> keyboard button.
</para>
<important>
@@ -355,7 +355,7 @@
</figure>
<para>
- In the <property>Add Palette Macro</property> window you can configure the tag element. Attribute <emphasis> <property>Name</property> </emphasis> is mandatory to fill and it will be the name of the tag element. Other settings are optional. You can choose the icon and set the <emphasis> <property>Start Text</property> </emphasis> and the <emphasis> <property>End Text</property> </emphasis> for your tag element. If your tag text is too long, use the <emphasis> <property>Change...</property> </emphasis> button to see it all. For <emphasis> <property>start text</property> </emphasis> and <emphasis> <property>end text</property> </emphasis> there is a possibility to control the cursor position by using "|" symbol.
+ In the <guilabel>Add Palette Macro</guilabel> window you can configure the tag element. Attribute <guilabel>Name</guilabel> is mandatory to fill and it will be the name of the tag element. Other settings are optional. You can choose the icon and set the <guilabel>Start Text</guilabel> and the <guilabel>End Text</guilabel> for your tag element. If your tag text is too long, use the <guibutton>Change...</guibutton> button to see it all. For <guilabel>start text</guilabel> and <guilabel>end text</guilabel> there is a possibility to control the cursor position by using "|" symbol.
</para>
<figure>
@@ -368,7 +368,7 @@
</figure>
<para>
- After all the attributes are set, click <emphasis> <property>Finish</property> </emphasis> button.
+ After all the attributes are set, click the <guibutton>Finish</guibutton> button.
</para>
<note>
@@ -379,7 +379,7 @@
</note>
<para>
- You are also allowed to edit or delete the tag. If you'd like to change the attributes of the tag or choose another icon for it, use the right editing window of the palette editor or the <emphasis> <property>Edit...</property> </emphasis> option from the pop-up menu. In order to remove the tag, right click on the tag that you wish to remove and chose the <emphasis> <property>Delete</property> </emphasis> option or click the <emphasis> <property>Delete</property> </emphasis> keyboard button.
+ You are also allowed to edit or delete the tag. If you'd like to change the attributes of the tag or choose another icon for it, use the right editing window of the palette editor or the <guimenuitem>Edit...</guimenuitem> option from the pop-up menu. In order to remove the tag, right click on the tag that you wish to remove and chose the <guimenuitem>Delete</guimenuitem> option or click the <keycap>Delete</keycap> keyboard button.
</para>
<important>
@@ -392,7 +392,7 @@
</itemizedlist>
<para>
- If you have changed any object in the tree view and you don't like the final result you can always use the <emphasis><property>Restore Defaults</property></emphasis> button. Click on it will restore defaults for the object selected and for its children elements. Please remember that the button will only restore data for objects defined in the default palette. If selected object is created by you, the button will be disabled. Child objects added by you will not be removed.
+ If you have changed any object in the tree view and you don't like the final result you can always use the <guibutton>Restore Defaults</guibutton> button. Click on it will restore defaults for the object selected and for its children elements. Please remember that the button will only restore data for objects defined in the default palette. If selected object is created by you, the button will be disabled. Child objects added by you will not be removed.
</para>
<para>
@@ -404,13 +404,13 @@
<?dbhtml filename="Show/Hide.html"?>
<title>Show/Hide</title>
<para>
- <emphasis> <property>Show/Hide</property> </emphasis> is a very useful feature that allows you to control the number of tag groups that are shown on the palette.
+ <guibutton>Show/Hide</guibutton> is a very useful feature that allows you to control the number of tag groups that are shown on the palette.
</para>
<itemizedlist>
<listitem>
<para>
- Click <emphasis> <property>Show/Hide</property> </emphasis> button(
+ Click the <guibutton>Show/Hide</guibutton> button(
<inlinemediaobject>
<imageobject>
<imagedata fileref="images/palette/palette_10.png"/>
@@ -447,7 +447,7 @@
<itemizedlist>
<listitem>
<para>
- Click <emphasis><property>OK</property>.</emphasis> The new groups will now be shown on the palette:
+ Click the <guibutton>OK</guibutton> button. The new groups will now be shown on the palette:
</para>
</listitem>
</itemizedlist>
@@ -488,7 +488,7 @@
</para>
<para>
- Let's do it. Open your JSP file and place the cursor in a place where you'd like to add a tag and then click that tag in the palette. In the <property>Insert Tag</property> window that appears, you can set the value of<emphasis> <property>general</property> </emphasis> and <emphasis> <property>advanced</property> </emphasis> attributes of the tag that you choose.
+ Let's do it. Open your JSP file and place the cursor in a place where you'd like to add a tag and then click that tag in the palette. In the <guilabel>Insert Tag</guilabel> window that appears, you can set the value of<guilabel>general</guilabel> and <guilabel>advanced</guilabel> attributes of the tag that you choose.
</para>
<figure>
@@ -501,7 +501,7 @@
</figure>
<para>
- In the example below the <emphasis> <property>commandButton</property> </emphasis> tag has been inserted.
+ In the example below the <guibutton>commandButton</guibutton> tag has been inserted.
</para>
<figure>
@@ -516,7 +516,7 @@
<note>
<title>Tip:</title>
<para>
- if you place the cursor over any tag, a balloon hint is shown with all the <emphasis role="italic"> <property>"tag"</property> </emphasis> attributes.
+ if you place the cursor over any tag, a balloon hint is shown with all the tag attributes.
</para>
</note>
@@ -551,7 +551,7 @@
<?dbhtml filename="AddingCustomJSFTagsToTheJBossToolsPalette.html"?>
<title>Adding Custom JSF Tags to the JBoss Tools Palette</title>
<para>
- There are two ways to add any custom (including custom Facelets libraries) or 3rd party tag library to the <property>JBoss Tools Palette</property>:
+ There are two ways to add any custom (including custom Facelets libraries) or 3rd party tag library to the JBoss Tools Palette:
</para>
<itemizedlist>
@@ -569,7 +569,7 @@
</itemizedlist>
<para>
- Before you add your custom component library, you need to make sure it is included in your project. You need to either place the <emphasis role="italic"> <property>".tld"</property> </emphasis> file or the <emphasis role="italic"> <property>".jar"</property> </emphasis> that includes your tag library under the lib folder in your project. Or you can just add <emphasis> <property>".tld"</property> </emphasis>or <emphasis> <property>".jar"</property></emphasis> file to the classpath and the library will be added to the Tag Library List in Web Projects View.
+ Before you add your custom component library, you need to make sure it is included in your project. You need to either place the <filename>TLD</filename> file or the <filename>JAR</filename> that includes your tag library under the lib folder in your project. Or you can just add <filename>TLD</filename> or <filename>JAR</filename> file to the classpath and the library will be added to the Tag Library List in Web Projects View.
</para>
<section id="Drag_and_Drop65332">
@@ -593,7 +593,7 @@
</para>
<para>
- You will see the following dialog window. As you can see JBoss Developer Studio takes care of all the details. Chosen <emphasis> <property>TLD file</property> </emphasis>, <emphasis> <property>name</property> </emphasis> and <emphasis> <property>prefix</property> </emphasis> of the library and <emphasis> <property>Library URL</property> </emphasis> are detected thus just need to set the <emphasis> <property>Group</property> </emphasis> name to which you wish to place this tag library. You can either add this tag library to an existing Group or just create a new one.
+ You will see the following dialog window. As you can see JBoss Developer Studio takes care of all the details. Chosen <guilabel>TLD file</guilabel>, <guilabel>name</guilabel> and <guilabel>prefix</guilabel> of the library and <guilabel>Library URL</guilabel> are detected thus just need to set the <guilabel>Group name</guilabel> to which you wish to place this tag library. You can either add this tag library to an existing Group or just create a new one.
</para>
<figure>
@@ -623,7 +623,7 @@
<?dbhtml filename="ImportButton.html"?>
<title>Import Button</title>
<para>
- The same you can do with <emphasis> <property>Import</property> </emphasis> button(
+ The same you can do with <guibutton>Import</guibutton> button(
<inlinemediaobject>
<imageobject>
<imagedata fileref="images/palette/palette_6.png"/>
@@ -633,8 +633,8 @@
</para>
<para>
- By clicking on the <emphasis> <property>Import button</property> </emphasis> you will see the Import Tag window a similar like in the <xref
- linkend="Drag_and_Drop65332"/> method. Set the name and prefix of the library and Library URL. Also you need to set the Group name to which you'd like to add your tag library. And like in the previous method you can add it to an existing Group or create a new one. On this Import Tag form you can use <emphasis> <property>Browse...</property> </emphasis>button to locate the tag library that you want to add:
+ By clicking on the <guibutton>Import</guibutton> button you will see the Import Tag window a similar like in the <xref
+ linkend="Drag_and_Drop65332"/> method. Set the name and prefix of the library and Library URL. Also you need to set the Group name to which you'd like to add your tag library. And like in the previous method you can add it to an existing Group or create a new one. On this Import Tag form you can use <guibutton>Browse...</guibutton> button to locate the tag library that you want to add:
</para>
<figure>
Modified: trunk/jsf/docs/userguide/en-US/web_projects.xml
===================================================================
--- trunk/jsf/docs/userguide/en-US/web_projects.xml 2011-03-16 00:45:00 UTC (rev 29814)
+++ trunk/jsf/docs/userguide/en-US/web_projects.xml 2011-03-16 00:59:08 UTC (rev 29815)
@@ -3,7 +3,7 @@
<?dbhtml filename="web_projects.html"?>
<title>Web Projects View</title>
<para>
- <property>Web Projects</property> is a special view that comes with JBoss Developer Studio.
+ Web Projects is a special view that comes with JBoss Developer Studio.
</para>
<para>
@@ -119,11 +119,11 @@
<section id="ForAProperty">
<title>For a Property</title>
<para>
- Expand the <property>Resources Bundles</property> folder that holds all the Property files in your project. Select the file from which you want to add the property and then select the property.
+ Expand the Resources Bundles folder that holds all the Property files in your project. Select the file from which you want to add the property and then select the property.
</para>
<para>
- We will be dragging and dropping a property file value inside the outputText tag for the <emphasis role="italic"><property>"value"</property></emphasis> attribute.
+ We will be dragging and dropping a property file value inside the outputText tag for the <code>value</code> attribute.
</para>
<figure>
@@ -169,7 +169,7 @@
<section id="ForManagedBeanAttributes">
<title>For Managed Bean Attributes</title>
<para>
- Select a <emphasis role="italic"><property>"managed bean"</property></emphasis> attribute and then drag and drop it onto the JSP page. We are going to place it inside the <emphasis role="italic"><property>"value"</property></emphasis> attribute of the inputText tag.
+ Select a "managed bean" attribute and then drag and drop it onto the JSP page. We are going to place it inside the <code>value</code> attribute of the inputText tag.
</para>
<figure>
@@ -315,7 +315,7 @@
<section id="ExpandingTagLibraryFiles">
<title>Expanding Tag Library Files</title>
<para>
- You can easily expand any TLD file in the project. Browse to the Tag Libraries folder. Right-click a TLD file and select <emphasis><property>Expand</property></emphasis>:
+ You can easily expand any TLD file in the project. Browse to the Tag Libraries folder. Right-click a TLD file and select <guimenuitem>Expand</guimenuitem>:
</para>
<figure>
13 years, 10 months
JBoss Tools SVN: r29814 - trunk/jsf/docs/userguide/en-US.
by jbosstools-commits@lists.jboss.org
Author: mcaspers
Date: 2011-03-15 20:45:00 -0400 (Tue, 15 Mar 2011)
New Revision: 29814
Modified:
trunk/jsf/docs/userguide/en-US/Visual_Web_Tools.xml
trunk/jsf/docs/userguide/en-US/conclusion.xml
trunk/jsf/docs/userguide/en-US/editors.xml
trunk/jsf/docs/userguide/en-US/vwt_faq.xml
Log:
"General editing and screenshot updates"
Modified: trunk/jsf/docs/userguide/en-US/Visual_Web_Tools.xml
===================================================================
--- trunk/jsf/docs/userguide/en-US/Visual_Web_Tools.xml 2011-03-16 00:40:37 UTC (rev 29813)
+++ trunk/jsf/docs/userguide/en-US/Visual_Web_Tools.xml 2011-03-16 00:45:00 UTC (rev 29814)
@@ -14,7 +14,7 @@
</chapterinfo>
<title>Visual Web Tools</title>
<para>
- This guide covers the usage of Visual Web Tools in <property>JBoss Developer Studio</property> and <property>JBoss Tools</property>. The difference between these products is that JBoss Tools are just a set of Eclipse plugins where JBoss Developer Studio adds the following functionality:
+ This guide covers the usage of Visual Web Tools in JBoss Developer Studio and JBoss Tools. The difference between these products is that JBoss Tools are just a set of Eclipse plugins where JBoss Developer Studio adds the following functionality:
</para>
<itemizedlist>
Modified: trunk/jsf/docs/userguide/en-US/conclusion.xml
===================================================================
--- trunk/jsf/docs/userguide/en-US/conclusion.xml 2011-03-16 00:40:37 UTC (rev 29813)
+++ trunk/jsf/docs/userguide/en-US/conclusion.xml 2011-03-16 00:45:00 UTC (rev 29814)
@@ -1,18 +1,12 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<chapter id="conclusion">
- <?dbhtml filename="conclusion.html"?>
- <title>Conclusion</title>
-
- <para>On the whole, this document should guide you to those parts of <property>JBoss
- Tools</property> which you specifically need to develop Web Applications. It covers
- different aspects of visual components such as editors, views, etc. for browsing,
- representing and editing web resources you are working with.</para>
-
- <para>If there's anything we didn't cover or you can't figure
- out, please feel free to visit our <ulink
- url="http://www.jboss.com/index.html?module=bb&op=viewforum&f=258"
- >JBoss Developer Studio Users Forum</ulink> or <ulink
- url="http://www.jboss.com/index.html?module=bb&op=viewforum&f=201"
- >JBoss Tools Users Forum</ulink> to ask questions. There we are also looking for
- your suggestions and comments.</para>
-</chapter>
\ No newline at end of file
+<?xml version='1.0' encoding='UTF-8'?>
+<chapter id="conclusion">
+<?dbhtml filename="conclusion.html"?>
+ <title>Conclusion</title>
+ <para>
+ On the whole, this document should guide you to those parts of JBoss Tools which you specifically need to develop Web Applications. It covers different aspects of visual components such as editors, views, etc. for browsing, representing and editing web resources you are working with.
+ </para>
+
+ <para>
+ If there's anything we didn't cover or you can't figure out, please feel free to visit our <ulink url="http://www.jboss.com/index.html?module=bb&op=viewforum&f=258">JBoss Developer Studio Users Forum</ulink> or <ulink url="http://www.jboss.com/index.html?module=bb&op=viewforum&f=201">JBoss Tools Users Forum</ulink> to ask questions. There we are also looking for your suggestions and comments.
+ </para>
+</chapter>
Modified: trunk/jsf/docs/userguide/en-US/editors.xml
===================================================================
--- trunk/jsf/docs/userguide/en-US/editors.xml 2011-03-16 00:40:37 UTC (rev 29813)
+++ trunk/jsf/docs/userguide/en-US/editors.xml 2011-03-16 00:45:00 UTC (rev 29814)
@@ -2914,7 +2914,7 @@
</para>
<para>
- To edit the deployment descriptor JBoss Developer Studio provides its own <filename>web.xml editor</filename> that comes with the same features you will find in all other JBoss Developer Studio editors:
+ To edit the deployment descriptor JBoss Developer Studio provides its own <filename>web.xml</filename> editor that comes with the same features you will find in all other JBoss Developer Studio editors:
</para>
<itemizedlist>
Modified: trunk/jsf/docs/userguide/en-US/vwt_faq.xml
===================================================================
--- trunk/jsf/docs/userguide/en-US/vwt_faq.xml 2011-03-16 00:40:37 UTC (rev 29813)
+++ trunk/jsf/docs/userguide/en-US/vwt_faq.xml 2011-03-16 00:45:00 UTC (rev 29814)
@@ -5,7 +5,7 @@
<section id="question_1">
<title>What should I do if Visual Page Editor does not start under Linux?</title>
<para>
- The <property>Visual Page Editor</property> requires the library <filename>libstdc++.so.5</filename>. This library is contained in the compat-libstdc++-33.i386 package.
+ The Visual Page Editor requires the library <filename>libstdc++.so.5</filename>. This library is contained in the <filename>compat-libstdc++-33.i386</filename> package.
</para>
<itemizedlist>
@@ -44,7 +44,7 @@
</itemizedlist>
<para>
- In case you have the library installed and you still have issue with starting the <property>Visual Page Editor</property> then close all browser views/editors and leave one <property>Visual Page Editor</property> open and restart eclipse. This should force a load of the right XULRunner viewer.
+ In case you have the library installed and you still have issue with starting the Visual Page Editor then close all browser views/editors and leave one Visual Page Editor open and restart eclipse. This should force a load of the right XULRunner viewer.
</para>
<para>
@@ -83,7 +83,7 @@
<section id="question_2">
<title>How do I change the auto-formating preferences for the Visual Page Editor?</title>
<para>
- JBoss HTML/JSP editor uses basic eclipse HTML formatter to format files. So if you want to change preferences of formatter for the <property>Visual Page Editor</property>, you should change it for eclipse html editor (open <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Preferences</guimenuitem></menuchoice> then choose <menuchoice><guimenuitem>Web</guimenuitem><guimenuitem>HTML Files</guimenuitem><guimenuitem>Editor</guimenuitem></menuchoice>).
+ JBoss HTML/JSP editor uses basic eclipse HTML formatter to format files. So if you want to change preferences of formatter for the Visual Page Editor, you should change it for eclipse html editor (open <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Preferences</guimenuitem></menuchoice> then choose <menuchoice><guimenuitem>Web</guimenuitem><guimenuitem>HTML Files</guimenuitem><guimenuitem>Editor</guimenuitem></menuchoice>).
</para>
</section>
@@ -123,7 +123,7 @@
</orderedlist>
<para>
- If you are sure that your project does not need JSF capabilities, just disable this message box by checking <property>Do not show this dialog again!</property> checkbox.
+ If you are sure that your project does not need JSF capabilities, just disable this message box by checking <guilabel>Do not show this dialog again!</guilabel> checkbox.
</para>
</section>
</chapter>
13 years, 10 months
JBoss Tools SVN: r29813 - trunk/jsf/docs/userguide/en-US.
by jbosstools-commits@lists.jboss.org
Author: mcaspers
Date: 2011-03-15 20:40:37 -0400 (Tue, 15 Mar 2011)
New Revision: 29813
Modified:
trunk/jsf/docs/userguide/en-US/editors.xml
Log:
"General editing and screenshot updates"
Modified: trunk/jsf/docs/userguide/en-US/editors.xml
===================================================================
--- trunk/jsf/docs/userguide/en-US/editors.xml 2011-03-16 00:34:03 UTC (rev 29812)
+++ trunk/jsf/docs/userguide/en-US/editors.xml 2011-03-16 00:40:37 UTC (rev 29813)
@@ -18,7 +18,7 @@
<section id="editors_features">
<title>Editors Features</title>
<para>
- <property>JBoss Developer Studio</property> has powerful editing features that help you easily navigate within your application and make use of content and code assist no matter what type of project file (<filename>.jsp</filename>, <filename>.xhtml</filename>, <filename>.xml</filename>, <filename>.css</filename> etc.) you are working on.
+ JBoss Developer Studio has powerful editing features that help you easily navigate within your application and make use of content and code assist no matter what type of project file (<filename>.jsp</filename>, <filename>.xhtml</filename>, <filename>.xml</filename>, <filename>.css</filename> etc.) you are working on.
</para>
<para>
@@ -165,7 +165,7 @@
<section id="JSPPages223">
<title>JSP/XHTML Pages</title>
<para>
- OpenOn is also available in <filename>JSP</filename> and <filename>XHTML</filename> pages edited in the <property>Visual Page Editor</property>. It will allow you to quickly jump to the reference instead of having to hunt around in the project structure.
+ OpenOn is also available in <filename>JSP</filename> and <filename>XHTML</filename> pages edited in the Visual Page Editor. It will allow you to quickly jump to the reference instead of having to hunt around in the project structure.
</para>
<para>
@@ -224,7 +224,7 @@
</para>
<para>
- For <filename>JSP</filename> files in a JSF project, you can easily open the navigation rules by applying <property>OpenOn</property> to the JSF tag for the navigation outcome:
+ For <filename>JSP</filename> files in a JSF project, you can easily open the navigation rules by applying OpenOn to the JSF tag for the navigation outcome:
</para>
<figure>
@@ -313,7 +313,7 @@
<section id="CodeAssistAndDynamicCodeAssist42BasedOnProjectData">
<title>Content Assist</title>
<para>
- <property>Content assist</property> is available when working with:
+ Content assist is available when working with:
</para>
<itemizedlist>
@@ -1787,7 +1787,7 @@
</figure>
<para>
- Click on the <property>Browse</property> button to open a dialog to select the CSS file to create a CSS class for:
+ Click on the <guibutton>Browse</guibutton> button to open a dialog to select the CSS file to create a CSS class for:
</para>
<figure>
@@ -1812,7 +1812,7 @@
</para>
<para>
- To call the <property>Template dialog</property> for a tag, right-click on it in Visual mode and select <guimenuitem>Setup Visual Template for <tag name></guimenuitem> option.
+ To call the <guilabel>Template</guilabel> dialog for a tag, right-click on it in Visual mode and select <guimenuitem>Setup Visual Template for <tag name></guimenuitem> option.
</para>
<figure>
@@ -1825,7 +1825,7 @@
</figure>
<para id="template_dialog">
- Here is what the <property>Template dialog</property> looks like.
+ Here is what the <guilabel>Template</guilabel> dialog looks like.
</para>
<figure>
@@ -2058,13 +2058,13 @@
<section id="vpe_preferences">
<title>Preferences</title>
<para>
- The <emphasis> <property>Preferences</property> </emphasis> button (
+ The <guibutton>Preferences</guibutton> button (
<inlinemediaobject>
<imageobject>
<imagedata fileref="images/visual_page/icon_1.png"/>
</imageobject>
</inlinemediaobject>
- ) provides a quick access to the <property>Visual Page Editor</property> preferences.
+ ) provides a quick access to the Visual Page Editor preferences.
</para>
<figure>
@@ -2077,7 +2077,7 @@
</figure>
<para>
- This page provides a number of options associated with the editor representation. The more detailed description on each one you can find in the <property>"JBoss Tools Preferences"</property> chapter under <xref linkend="VisualPageEditor2"/>.
+ This page provides a number of options associated with the editor representation. The more detailed description on each one you can find in the "JBoss Tools Preferences" chapter under <xref linkend="VisualPageEditor2"/>.
</para>
</section>
@@ -2192,7 +2192,7 @@
</programlisting>
<para>
- When you open the <filename>main.jsp</filename> file in <property>Visual Page Editor</property>, it will not be able to resolve the image from the header, however it will work fine in runtime. To fix this in design time, click the <guibutton>Page Design Options</guibutton> button and set <guilabel>Actual Run-Time Relative Folder</guilabel> to <menuchoice><guimenuitem>[Project Name]</guimenuitem><guimenuitem>WebContent</guimenuitem><guimenuitem>pages</guimenuitem></menuchoice> and you will see the image appeared.
+ When you open the <filename>main.jsp</filename> file in Visual Page Editor, it will not be able to resolve the image from the header, however it will work fine in runtime. To fix this in design time, click the <guibutton>Page Design Options</guibutton> button and set <guilabel>Actual Run-Time Relative Folder</guilabel> to <menuchoice><guimenuitem>[Project Name]</guimenuitem><guimenuitem>WebContent</guimenuitem><guimenuitem>pages</guimenuitem></menuchoice> and you will see the image appeared.
</para>
<para/>
@@ -2208,15 +2208,15 @@
</programlisting>
<para>
- This will work fine in runtime, but the <property>Visual Page Editor</property> does not know what <code>requestContextPath</code> in design time is. In order to see the necessary styles applied in design time your should add a path to your stylesheet in the <guilabel>CSS File Path</guilabel> section.
+ This will work fine in runtime, but the Visual Page Editor does not know what <code>requestContextPath</code> in design time is. In order to see the necessary styles applied in design time your should add a path to your stylesheet in the <guilabel>CSS File Path</guilabel> section.
</para>
<para>
- The next <property>URI</property> section lets you add URI taglibs so that the editor knows where to find the tag libraries.
+ The next URI section lets you add URI taglibs so that the editor knows where to find the tag libraries.
</para>
<para>
- And the last <property>Substituted EL expressions</property> section is provided to specify the values for specific EL variables. It can be useful for a preview generation.
+ And the last Substituted EL expressions section is provided to specify the values for specific EL variables. It can be useful for a preview generation.
</para>
<para>
@@ -2325,7 +2325,7 @@
</imageobject>
</mediaobject>
</figure>
- Note, at the current view there is only <emphasis> <property> one</property> </emphasis> button, that proposes the possibility to change it in order the Source and the View are moved <emphasis> <property>in a clockwise direction</property> </emphasis>.
+ Note, at the current view there is only <emphasis>one</emphasis> button, that proposes the possibility to change it in order the Source and the View are moved <emphasis>in a clockwise direction</emphasis>.
<figure>
<title>Visual Page Editor After Layout Changing </title>
<mediaobject>
@@ -2353,7 +2353,7 @@
<section id="vpe_show_nonvisual_tags">
<title>Show Non-visual Tags</title>
<para>
- <property>Visual Page Editor</property> provides the option for displaying non-visual tags in Visual mode of the editor. To enable it select the <guibutton>Show non-visual tags</guibutton> button (
+ Visual Page Editor provides the option for displaying non-visual tags in Visual mode of the editor. To enable it select the <guibutton>Show non-visual tags</guibutton> button (
<inlinemediaobject>
<imageobject>
<imagedata fileref="images/visual_page/show_nonvisual.png"/>
@@ -2389,7 +2389,7 @@
<section id="vpe_show_selection_bar">
<title>Show Selection Bar</title>
<para>
- You can find useful one more functionality provided by VPE. At the bottom of the <guilabel>Visual/Source</guilabel> view there is a <property>Selection Tag Bar</property>. It's updated automatically allowing to see tags tree for a current component selected in Visual or Source mode, also it allows to select tags back and forward.
+ You can find useful one more functionality provided by VPE. At the bottom of the <guilabel>Visual/Source</guilabel> view there is a <guilabel>Selection Tag Bar</guilabel>. It's updated automatically allowing to see tags tree for a current component selected in Visual or Source mode, also it allows to select tags back and forward.
</para>
<figure>
@@ -2402,7 +2402,7 @@
</figure>
<para>
- If you want to hide the <property>Selection Tag Bar</property>, use the <guibutton>Show Selection Bar</guibutton> button (
+ If you want to hide the <guilabel>Selection Tag Bar</guilabel>, use the <guibutton>Show Selection Bar</guibutton> button (
<inlinemediaobject>
<imageobject>
<imagedata fileref="images/visual_page/show_selection_bar.png"/>
@@ -2416,7 +2416,7 @@
<section id="page_preview">
<title>Page Preview</title>
<para>
- <property>VPE</property> comes with design-time preview feature which is available for:
+ The Visual Page Editor comes with design-time preview feature which is available for:
</para>
<itemizedlist>
@@ -2440,7 +2440,7 @@
</itemizedlist>
<para>
- <property>Preview view</property> is read-only, it shows how the page will look like in a browser.
+ <guilabel>Preview</guilabel> view is read-only, it shows how the page will look like in a browser.
</para>
<figure>
@@ -2458,7 +2458,7 @@
<section id="vpe_errors">
<title>Error Messages</title>
<para>
- <property>Visual Page Editor</property> provide a user friendly and effective <property>error</property> messages, which should make solving problems easier. <property>Error</property> message contains a reference to the problem and its description. Also in <property>Error</property> area you can find a link to <property>Visual Page Editor</property> forum and <property>Details</property> button whick is used to see a error trace.
+ Visual Page Editor provide a user friendly and effective error messages, which should make solving problems easier. Error message contains a reference to the problem and its description. Also in Error area you can find a link to Visual Page Editor forum and a <guibutton>Details</guibutton> button which is used to see a error trace.
</para>
<para>
@@ -2478,7 +2478,7 @@
<section id="custom_facelets_support">
<title>Support for Custom Facelets Components</title>
<para>
- <property>Visual Page Editor</property> (starting from 3.0.0.M3 version of <property>JBoss Tools</property>) supports custom Facelets tag libraries both declared in the <literal>web.xml</literal> file (for details, see <ulink url="http://www.ibm.com/developerworks/java/library/j-facelets/#N10294">Creating a component</ulink>) and packed into the <filename>JAR</filename> file.
+ Visual Page Editor (starting from 3.0.0.M3 version of JBoss Tools) supports custom Facelets tag libraries both declared in the <literal>web.xml</literal> file (for details, see <ulink url="http://www.ibm.com/developerworks/java/library/j-facelets/#N10294">Creating a component</ulink>) and packed into the <filename>JAR</filename> file.
</para>
<note>
@@ -2489,7 +2489,7 @@
</note>
<para>
- <property>Visual Page Editor</property> recognizes the tags from the custom Facelets tag library and correctly renders them both in source and visual view of the editor.
+ Visual Page Editor recognizes the tags from the custom Facelets tag library and correctly renders them both in source and visual view of the editor.
</para>
<figure>
@@ -2558,7 +2558,7 @@
<section id="openOnInXHTML">
<title>OpenOn in XHTML Files That Use Custom Facelets Components</title>
<para>
- OpenOn functionality in XHTML files is available in two views of the <property>Visual Page Editor</property>:
+ OpenOn functionality in XHTML files is available in two views of the Visual Page Editor:
</para>
<orderedlist>
@@ -2600,7 +2600,7 @@
</para>
<para>
- In the visual view of the <property>VPE</property>, double-click a custom component and the Facelets tag file (<literal>*.taglib.xml</literal>) where it is declared will be opened.
+ In the visual view of the Visual Page Editor, double-click a custom component and the Facelets tag file (<code>*.taglib.xml</code>) where it is declared will be opened.
</para>
</listitem>
</orderedlist>
@@ -2627,7 +2627,7 @@
<section id="SetupnotesforLinu895x">
<title>Setup notes for Linux</title>
<para>
- Linux users who are going to use earlier versions of JBoss Tools then 3.1.0.M4 may need to do the following to get the <property>Visual Page Editor</property> to work correctly on their machines.
+ Linux users who are going to use earlier versions of JBoss Tools then 3.1.0.M4 may need to do the following to get the Visual Page Editor to work correctly on their machines.
</para>
<para>
@@ -2763,7 +2763,7 @@
<section id="GraphicalPropertiesEditor">
<title>Graphical Properties Editor</title>
<para>
- <property>The Properties editor</property> allows you to work in two different modes and also supports unicode characters.
+ The <guilabel>Properties</guilabel> editor allows you to work in two different modes and also supports unicode characters.
</para>
<para>
@@ -2807,9 +2807,9 @@
</section>
<section id="GraphicalTLDEditor">
- <title>Graphical TLD Editor</title>
+ <title>Graphical Tag Library Editor</title>
<para>
- <property>The TLD editor</property> comes with same features you will find in all other JBoss Developer Studio editors:
+ The <guilabel>Tag Library Editor</guilabel> comes with same features you will find in all other JBoss Developer Studio editors:
</para>
<itemizedlist>
@@ -2854,7 +2854,7 @@
</figure>
<para>
- You can easily add a <property>new tag</property>:
+ You can easily add a new tag:
</para>
<figure>
@@ -2867,7 +2867,7 @@
</figure>
<para>
- You can also easily add a <property>new attribute</property> to an existing tag:
+ You can also easily add a new attribute to an existing tag:
</para>
<figure>
@@ -2914,7 +2914,7 @@
</para>
<para>
- To edit the deployment descriptor <property>JBoss Developer Studio</property> provides its own <filename>web.xml editor</filename> that comes with the same features you will find in all other <property>JBDS</property> editors:
+ To edit the deployment descriptor JBoss Developer Studio provides its own <filename>web.xml editor</filename> that comes with the same features you will find in all other JBoss Developer Studio editors:
</para>
<itemizedlist>
@@ -2934,7 +2934,7 @@
<section id="TreeView1">
<title>Tree View</title>
<para>
- Switch to the <property>Tree view</property> if you want to edit <filename>web.xml</filename> in a graphical mode. All elements that <filename>web.xml</filename> could include are located in the left area of the editor in a tree format. Click a node on the left to display and edit its properties that will appear in the right-hand area.
+ Switch to the <guilabel>Tree</guilabel> view if you want to edit <filename>web.xml</filename> in a graphical mode. All elements that <filename>web.xml</filename> could include are located in the left area of the editor in a tree format. Click a node on the left to display and edit its properties that will appear in the right-hand area.
</para>
<figure>
@@ -2947,7 +2947,7 @@
</figure>
<para>
- You can add any new elements right in the <property>Tree viewer</property>:
+ You can add any new elements right in the <guilabel>Tree</guilabel> viewer:
</para>
<figure>
@@ -2963,7 +2963,7 @@
<section id="SourceView2">
<title>Source View</title>
<para>
- Switch to the <property>Source viewer </property>to edit the <filename>web.xml</filename> file by hand at any time:
+ Switch to the <guilabel>Source</guilabel> viewer to edit the <filename>web.xml</filename> file by hand at any time:
</para>
<figure>
@@ -3012,7 +3012,7 @@
<section id="CSSEditor">
<title>CSS Editor</title>
<para>
- The <property>CSS editor</property> comes with the same features you will find in all other JBoss Developer Studio editors.
+ The CSS editor comes with the same features you will find in all other JBoss Developer Studio editors.
</para>
<itemizedlist>
@@ -3074,7 +3074,7 @@
<section id="JavaScriptEditor">
<title>JavaScript Editor</title>
<para>
- The <property>JavaScript editor</property> is a Source viewer in which you can use code assist:
+ The JavaScript editor is a Source viewer in which you can use code assist:
</para>
<figure>
@@ -3087,7 +3087,7 @@
</figure>
<para>
- You can also use the <property>JavaScript editor</property> with the Outline view to navigate around the file:
+ You can also use the JavaScript editor with the Outline view to navigate around the file:
</para>
<figure>
@@ -3118,7 +3118,7 @@
<section id="XSDEditor">
<title>XSD Editor</title>
<para>
- JBoss Developer Studio comes with an <property>XSD Editor</property> for XML Schema files. This editor comes from the Web Tools Project (WTP) (see <ulink url="http://www.eclipse.org/webtools/testtutorials/gettingstarted/GettingStart...">WTP Getting Started</ulink>).
+ JBoss Developer Studio comes with an XSD Editor for XML Schema files. This editor comes from the Web Tools Project (WTP) (see <ulink url="http://www.eclipse.org/webtools/testtutorials/gettingstarted/GettingStart...">WTP Getting Started</ulink>).
</para>
<para>
13 years, 10 months
JBoss Tools SVN: r29812 - trunk/jsf/docs/userguide/en-US.
by jbosstools-commits@lists.jboss.org
Author: mcaspers
Date: 2011-03-15 20:34:03 -0400 (Tue, 15 Mar 2011)
New Revision: 29812
Modified:
trunk/jsf/docs/userguide/en-US/editors.xml
trunk/jsf/docs/userguide/en-US/preferences.xml
trunk/jsf/docs/userguide/en-US/vwt_faq.xml
Log:
"General editing and screenshot updates"
Modified: trunk/jsf/docs/userguide/en-US/editors.xml
===================================================================
--- trunk/jsf/docs/userguide/en-US/editors.xml 2011-03-16 00:26:35 UTC (rev 29811)
+++ trunk/jsf/docs/userguide/en-US/editors.xml 2011-03-16 00:34:03 UTC (rev 29812)
@@ -94,7 +94,7 @@
</para>
<para>
- Use the OpenOn functionality for the next entries defined in XML file:
+ Use the OpenOn functionality for the next entries defined in <filename>XML</filename> file:
</para>
<orderedlist>
@@ -493,7 +493,7 @@
<entry>
<para>
- Used to show navigation rules defined in the <property>faces-config.xml</property> .
+ Used to show navigation rules defined in the <filename>faces-config.xml</filename> .
</para>
</entry>
</row>
@@ -517,7 +517,7 @@
<entry>
<para>
- Used to show <property>Messages Resources</property> items.
+ Used to show Messages Resources items.
</para>
</entry>
</row>
@@ -587,7 +587,7 @@
<section id="JSFProjectFiles3087">
<title>JSF Project Files</title>
<para>
- When working with a JSF project in JBoss Developer Studio, you can use various <property>Content Assist features</property> while developing:
+ When working with a JSF project in JBoss Developer Studio, you can use various Content Assist features while developing:
</para>
<itemizedlist>
@@ -611,7 +611,7 @@
<listitem>
<para>
- Content Assist with graphical JSF editor
+ Content Assist with graphical <filename>JSF</filename> editor
</para>
</listitem>
</itemizedlist>
@@ -619,7 +619,7 @@
<section id="ContentAssistForXMLJSPAndJSFConfigurationFiles865">
<title>Content Assist for XML, JSP and JSF configuration files</title>
<para>
- At any point when working with any XML, JSP and JSF configuration files Content Assist is available to help you. Simply press <keycombo><keycap>Ctrl</keycap><keycap>Space</keycap></keycombo> to see what options are available.
+ At any point when working with any <filename>XML</filename>, <filename>JSP</filename> and <filename>JSF</filename> configuration files Content Assist is available to help you. Simply press <keycombo><keycap>Ctrl</keycap><keycap>Space</keycap></keycombo> to see what options are available.
</para>
<para>
@@ -693,7 +693,7 @@
<listitem>
<para>
- <emphasis role="italic"> <property>"Managed beans"</property> </emphasis> attributes and methods
+ Managed beans attributes and methods
</para>
</listitem>
@@ -730,7 +730,7 @@
</figure>
<para>
- In the following screenshot we are inserting a <emphasis role="italic"> <property>"Managed bean"</property> </emphasis> attribute value. Again, by simply clicking <keycombo><keycap>Ctrl</keycap><keycap>Space</keycap></keycombo>, JBoss Developer Studio will show a list of all possible values that can be inserted.
+ In the following screenshot we are inserting a Managed bean attribute value. Again, by simply clicking <keycombo><keycap>Ctrl</keycap><keycap>Space</keycap></keycombo>, JBoss Developer Studio will show a list of all possible values that can be inserted.
</para>
<para>
@@ -773,7 +773,7 @@
</figure>
<para>
- Moreover <property>Code Assist</property> is able to define <property>Resource Bundles</property> on template pages and provides the proposals on the client page.
+ Moreover Code Assist is able to define Resource Bundles on template pages and provides the proposals on the client page.
</para>
<figure>
@@ -1012,7 +1012,7 @@
<section id="ContentAssistForEL">
<title>Content Assist for EL expressions</title>
<para>
- <property>Content Assist</property> also provides expression language (JSF EL) support. It is used in web application pages to access the <property>JavaBeans</property> components in the page bean and in other beans associated with the web application, such as the session bean and the application bean.
+ Content Assist also provides expression language (JSF EL) support. It is used in web application pages to access the JavaBeans components in the page bean and in other beans associated with the web application, such as the session bean and the application bean.
</para>
<figure>
@@ -1247,7 +1247,7 @@
<section id="FullControlOverSourceFiles-SynchronizedSourcAndVisualEditing74">
<title>Synchronized Source and Visual Editing</title>
<para>
- <property>JBoss Developer Studio</property> offers the ability to edit the source code of a file, as well as providing visual editors for many file types. The source code and visual editors can be viewed and edited at the same time in a split screen view, and any changes you make in the source code editor will immediately appear in the visual editor.
+ JBoss Developer Studio offers the ability to edit the source code of a file, as well as providing visual editors for many file types. The source code and visual editors can be viewed and edited at the same time in a split screen view, and any changes you make in the source code editor will immediately appear in the visual editor.
</para>
<para>
@@ -1264,7 +1264,7 @@
</figure>
<para>
- The same is true of all other <property>JBoss Developer Studio</property> editors.
+ The same is true of all other JBoss Developer Studio editors.
</para>
<para>
@@ -1281,7 +1281,7 @@
</figure>
<para>
- The <property>JBoss Developer Studio</property> TLD file editor is shown below in Tree view. At any point you can edit the source by switching to the Source view.
+ The JBoss Developer Studio TLD file editor is shown below in Tree view. At any point you can edit the source by switching to the Source view.
</para>
<figure>
@@ -1298,15 +1298,15 @@
<section id="visual_page" role="updated">
<title>Visual Page Editor</title>
<para>
- <property>JBoss Developer Studio</property> comes with a powerful and customizable <property>Visual Page Editor</property> (VPE). You can use the Visual Page Editor to develop an application using any technology such as JSF, Struts, JSP, HTML and more. Double-click on a file in the <guilabel>Package Explorer</guilabel> view to open it in the Visual Editor, or just drag-and-drop it into perspective (the drag-and-drop feature can be also applied to <filename>JSP</filename>, <filename>XHTML</filename> or <filename>HTML</filename> files created locally).
+ JBoss Developer Studio comes with a powerful and customizable Visual Page Editor (VPE). You can use the Visual Page Editor to develop an application using any technology such as JSF, Struts, JSP, HTML and more. Double-click on a file in the <guilabel>Package Explorer</guilabel> view to open it in the Visual Editor, or just drag-and-drop it into perspective (the drag-and-drop feature can be also applied to <filename>JSP</filename>, <filename>XHTML</filename> or <filename>HTML</filename> files created locally).
</para>
<para>
- As a new JSF 2.0 specification has been released, support of new features is now implemented in the <property>Visual Page Editor</property>. The JSF 2.0 tags like <literal><h:body></literal>, <literal><h:head></literal>, <literal><h:outputscript></literal>, <literal><h:outputstyle></literal> are supported in the editor, as well as the composite components and expression language resource handling. (See the <ulink url="http://www.ibm.com/developerworks/java/library/j-jsf2fu2/index.html">JSF 2 fu, Part 2: Templating and composite components</ulink> for information on how to use composite components and <ulink url="http://blogs.sun.com/rlubke/entry/jsf_2_0_new_feature3">JSF 2.0 New Feature Preview Series (Part 2.3): Resources</ulink> on how to handle EL resources).
+ As a new JSF 2.0 specification has been released, support of new features is now implemented in the Visual Page Editor. The JSF 2.0 tags like <code><h:body></code>, <code><h:head></code>, <code><h:outputscript></code>, <code><h:outputstyle></code> are supported in the editor, as well as the composite components and expression language resource handling. (See the <ulink url="http://www.ibm.com/developerworks/java/library/j-jsf2fu2/index.html">JSF 2 fu, Part 2: Templating and composite components</ulink> for information on how to use composite components and <ulink url="http://blogs.sun.com/rlubke/entry/jsf_2_0_new_feature3">JSF 2.0 New Feature Preview Series (Part 2.3): Resources</ulink> on how to handle EL resources).
</para>
<para>
- The current VPE version has three tabs: <property>Visual/Source</property>, <property>Source</property> and <property>Preview</property>. To switch between the views you can use tabs at the bottom of the VPE or the shortcut keys <keycombo><keycap>Ctrl</keycap><keycap>PageUp</keycap></keycombo> and <keycombo><keycap>Ctrl</keycap><keycap>PageDown</keycap></keycombo>.
+ The current VPE version has three tabs: <guilabel>Visual/Source</guilabel>, <guilabel>Source</guilabel> and <guilabel>Preview</guilabel>. To switch between the views you can use tabs at the bottom of the VPE or the shortcut keys <keycombo><keycap>Ctrl</keycap><keycap>PageUp</keycap></keycombo> and <keycombo><keycap>Ctrl</keycap><keycap>PageDown</keycap></keycombo>.
</para>
<figure>
@@ -1495,7 +1495,7 @@
<section id="comments">
<title>Commenting out Code</title>
<para>
- <property>VPE</property> supports the ability to add comments in files you are working with (<filename>JSP</filename>, <filename>XHTML</filename>, etc.):
+ The Visual Page Editor supports the ability to add comments in files you are working with (<filename>JSP</filename>, <filename>XHTML</filename>, etc.):
</para>
<itemizedlist>
@@ -1516,11 +1516,11 @@
<section id="codefolding">
<title>Using Code Folding</title>
<para>
- <property>Visual Page Editor</property> lets you collapse (hide) and expand (show) sections of your code to make it easier to navigate and read.
+ The Visual Page Editor lets you collapse (hide) and expand (show) sections of your code to make it easier to navigate and read.
</para>
<para>
- Code folding can be enabled by right-clicking on the left margin on the Source part of Visual Page Editor, selecting <property>Folding</property> and checking the <property>Enable Folding</property> checkbox or using the <keycombo><keycap>Ctrl</keycap><keycap>Numpad Divide</keycap></keycombo> shortcut.
+ Code folding can be enabled by right-clicking on the left margin on the Source part of Visual Page Editor, selecting <guimenuitem>Folding</guimenuitem> and checking the <guilabel>Enable Folding</guilabel> checkbox or using the <keycombo><keycap>Ctrl</keycap><keycap>Numpad Divide</keycap></keycombo> shortcut.
</para>
<para>
@@ -1586,7 +1586,7 @@
</para>
<para>
- VPE templates also provide a support for various versions of tag libraries. It means that the <property>VPE</property> takes control over those components which have different parameters or preview according to the framework version (like seam 1.2 and seam 2.0, or JSF 1.1 and JSF 1.2).
+ VPE templates also provide a support for various versions of tag libraries. It means that the Visual Page Editor takes control over those components which have different parameters or preview according to the framework version (like seam 1.2 and seam 2.0, or JSF 1.1 and JSF 1.2).
</para>
<para>
@@ -1598,13 +1598,13 @@
<section id="pages_styling">
<title>Pages Styling</title>
<para>
- Most web pages use the cascading style sheets (CSS) to control the way they look. With <property>Visual Page Editor</property> you can easily stylize your pages. In this section we are going to introduce you to a powerful mechanism that <property>VPE</property> provides for a complete control over pages styling. More helpful information on work with CSS files can be found in <xref linkend="css_perspective"/>
+ Most web pages use the cascading style sheets (CSS) to control the way they look. With Visual Page Editor you can easily stylize your pages. In this section we are going to introduce you to a powerful mechanism that Visual Page Editor provides for a complete control over pages styling. More helpful information on work with CSS files can be found in <xref linkend="css_perspective"/>
</para>
<section id="inline_styling">
<title>Inline Style Editing</title>
<para>
- In the Visual part of the <property>VPE</property> there is a graphical toolbar, use it to add inline styling to JSF and Struts tags on your page. The toolbar can be hidden with the help of the special button (
+ In the Visual part of the Visual Page Editor there is a graphical toolbar, use it to add inline styling to JSF and Struts tags on your page. The toolbar can be hidden with the help of the special button (
<inlinemediaobject>
<imageobject>
<imagedata fileref="images/visual_page/formatting_bar_icon.png"/>
@@ -1623,7 +1623,7 @@
</figure>
<para>
- For editing inline styles for DOM elements <property>VPE</property> provides the <property>CSS Dialog</property>. It can be called from <guilabel> style</guilabel> line in the <guilabel>Properties</guilabel> view for a currently selected element.
+ For editing inline styles for DOM elements the Visual Page Editor provides the <guilabel>CSS Dialog</guilabel>. It can be called from <guilabel> style</guilabel> line in the <guilabel>Properties</guilabel> view for a currently selected element.
</para>
<figure>
@@ -1652,7 +1652,7 @@
<section id="external_stylesheets">
<title>External Stylesheets</title>
<para>
- The pages you are working with in <property>VPE</property> can use external stylesheets. <property>VPE</property> allows you to create new style classes in existing stylesheets and/or edit them as well. For these purposes <guilabel>Edit Style Class</guilabel> Dialog is provided.
+ The pages you are working with in the Visual Page Editor can use external stylesheets. The Visual Page Editor allows you to create new style classes in existing stylesheets and/or edit them as well. For these purposes <guilabel>Edit Style Class</guilabel> Dialog is provided.
</para>
<para>
@@ -1682,7 +1682,7 @@
</figure>
<para>
- Choose a style class from the variants provided and click on the <property>Ok</property> button to apply the changes.
+ Choose a style class from the variants provided and click on the <guibutton>OK</guibutton> button to apply the changes.
</para>
<para>
@@ -1696,7 +1696,7 @@
</para>
<para>
- To create a new CSS class for the file click on the <property>Add CSS Class</property> button, write its name in the field appeared and click on the <property>Ok</property> button:
+ To create a new CSS class for the file click on the <guibutton>Add CSS Class</guibutton> button, write its name in the field appeared and click on the <guibutton>OK</guibutton> button:
</para>
<figure>
Modified: trunk/jsf/docs/userguide/en-US/preferences.xml
===================================================================
--- trunk/jsf/docs/userguide/en-US/preferences.xml 2011-03-16 00:26:35 UTC (rev 29811)
+++ trunk/jsf/docs/userguide/en-US/preferences.xml 2011-03-16 00:34:03 UTC (rev 29812)
@@ -2,7 +2,7 @@
<chapter id="preferences">
<title>JBoss Tools Preferences</title>
<para>
- Configuring the various <property>JBoss Developer Studio</property> features is done via the <property>Preferences</property> screen by selecting <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Preferences</guimenuitem><guimenuitem>JBoss Tools</guimenuitem></menuchoice> from the menu bar.
+ Configuring the various <property>JBoss Developer Studio</property> features is done via the <guilabel>Preferences</guilabel> screen by selecting <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Preferences</guimenuitem><guimenuitem>JBoss Tools</guimenuitem></menuchoice> from the menu bar.
</para>
<figure>
@@ -147,14 +147,14 @@
</itemizedlist>
<para>
- The <property>Preferences</property> dialog (<menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Preferences</guimenuitem></menuchoice> ) also allows to adjust settings for <xref linkend="JBossServerPreferences"/> and <xref linkend="XDoclet"/> module.
+ The <guilabel>Preferences</guilabel> dialog (<menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Preferences</guimenuitem></menuchoice> ) also allows to adjust settings for <xref linkend="JBossServerPreferences"/> and <xref linkend="XDoclet"/> module.
</para>
<section id="ProjectArchives">
<?dbhtml filename="ProjectArchives.html"?>
<title>Project Archives</title>
<para>
- Click on the <emphasis> <property>Project Archives</property> </emphasis> to open the page for changing Project Archives preferences.
+ Click on the <guilabel>Project Archives</guilabel> to open the page for changing Project Archives preferences.
</para>
<para>
@@ -1199,7 +1199,7 @@
<?dbhtml filename="StrutsCustomization"?>
<title>Struts Customization</title>
<para>
- The following preferences can be changed on the <emphasis> <property>JBoss Tools > Web > Struts > Customization</property> </emphasis> page.
+ The following preferences can be changed on the <menuchoice><guimenuitem>JBoss Tools</guimenuitem><guimenuitem>Web</guimenuitem><guimenuitem>Struts</guimenuitem><guimenuitem>Customization</guimenuitem></menuchoice> page.
</para>
<para>
@@ -1220,7 +1220,7 @@
<?dbhtml filename="StrutsProject.html"?>
<title>Struts Project</title>
<para>
- You can change the following preferences on the <emphasis> <property>JBoss Tools > Web > Struts > Project</property> </emphasis> preference page:
+ You can change the following preferences on the <menuchoice><guimenuitem>JBoss Tools</guimenuitem><guimenuitem>Web</guimenuitem><guimenuitem>Struts</guimenuitem><guimenuitem>Project</guimenuitem></menuchoice> preference page:
</para>
<para>
@@ -1254,7 +1254,7 @@
<?dbhtml filename="StrutsSupport.html"?>
<title>Struts Support</title>
<para>
- The following preferences can be changed on the <emphasis> <property>JBoss Tools > Web > Struts > Project > Struts Support</property> </emphasis> page.
+ The following preferences can be changed on the <menuchoice><guimenuitem>JBoss Tools</guimenuitem><guimenuitem>Web</guimenuitem><guimenuitem>Struts</guimenuitem><guimenuitem>Project</guimenuitem><guimenuitem>Struts Support</guimenuitem></menuchoice> page.
</para>
<para>
@@ -1275,7 +1275,7 @@
<?dbhtml filename="StrutsPages.html"?>
<title>Struts Pages</title>
<para>
- You can change the following preferences on the JBoss Tools > Web > Struts > Struts Pages preference page.
+ You can change the following preferences on the <menuchoice><guimenuitem>JBoss Tools</guimenuitem><guimenuitem>Web</guimenuitem><guimenuitem>Struts</guimenuitem><guimenuitem>Struts Pages</guimenuitem></menuchoice> preference page.
</para>
<para>
@@ -1296,7 +1296,7 @@
<?dbhtml filename="StrutsFlowDiagram.html"?>
<title>Struts Flow Diagram</title>
<para>
- Similarly to the JSF Flow Diagram screen, selecting <emphasis> <property>JBoss Tools > Web > Editor > Struts Flow Diagram</property> </emphasis> page allows you to specify aspects of the Diagram mode of the Struts configuration file editor. The Struts Flow Diagram screen adds an option to hide the Diagram tab and labeling settings for additional artifacts.
+ Similarly to the JSF Flow Diagram screen, selecting <menuchoice><guimenuitem>JBoss Tools</guimenuitem><guimenuitem>Web</guimenuitem><guimenuitem>Editor</guimenuitem><guimenuitem>Struts Flow Diagram</guimenuitem></menuchoice> page allows you to specify aspects of the Diagram mode of the Struts configuration file editor. The Struts Flow Diagram screen adds an option to hide the Diagram tab and labeling settings for additional artifacts.
</para>
<figure>
@@ -1326,7 +1326,7 @@
<?dbhtml filename="titles_diagram.html"?>
<title>Tiles Diagram</title>
<para>
- <emphasis> <property>JBoss Tools > Web > Editors > Title Diagram</property> </emphasis> screen allows you control some settings for the placement of Tiles definitions in the Diagram mode of the JBoss Tools Tiles editor.
+ <menuchoice><guimenuitem>JBoss Tools</guimenuitem><guimenuitem>Web</guimenuitem><guimenuitem>Editors</guimenuitem><guimenuitem>Title Diagram</guimenuitem></menuchoice> screen allows you control some settings for the placement of Tiles definitions in the Diagram mode of the JBoss Tools Tiles editor.
</para>
<figure>
@@ -1343,7 +1343,7 @@
<?dbhtml filename="Verification.html"?>
<title>Verification</title>
<para>
- The following preferences can be changed on the <emphasis> <property>JBoss Tools > Web > Verification</property> </emphasis> page.
+ The following preferences can be changed on the <menuchoice><guimenuitem>JBoss Tools</guimenuitem><guimenuitem>Web</guimenuitem><guimenuitem>Verification</guimenuitem></menuchoice> page.
</para>
<para>
@@ -1390,7 +1390,7 @@
</figure>
<para>
- On the <emphasis> <property>Server > Runtime Environments</property> </emphasis> page you can add new or modify already defined Server Runtime.
+ On the <menuchoice><guimenuitem>Server</guimenuitem><guimenuitem>Runtime Environments</guimenuitem></menuchoice> page you can add new or modify already defined Server Runtime.
</para>
<figure>
@@ -1403,7 +1403,7 @@
</figure>
<para>
- Server Launching preferences can be configured on the <emphasis> <property>Server > Launching</property> </emphasis> page.
+ Server Launching preferences can be configured on the <menuchoice><guimenuitem>Server</guimenuitem><guimenuitem>Launching</guimenuitem></menuchoice> page.
</para>
<figure>
@@ -1416,7 +1416,7 @@
</figure>
<para>
- Going to <emphasis> <property>Server > Audio</property> </emphasis> you can enable/disable the sound notification for different Server states and actions and set the sound volume as well.
+ Going to <menuchoice><guimenuitem>Server</guimenuitem><guimenuitem>Audio</guimenuitem></menuchoice> you can enable or disable the sound notification for different Server states and actions and set the sound volume as well.
</para>
<figure>
@@ -1433,11 +1433,11 @@
<?dbhtml filename="XDoclet.html"?>
<title>XDoclet</title>
<para>
- The preferences for XDoclet can be changed if you click <emphasis> <property>XDoclet</property> </emphasis> on the left navigation bar.
+ The preferences for XDoclet can be changed if you click <guilabel>XDoclet</guilabel> on the left navigation bar.
</para>
<para>
- On the <emphasis> <property>XDoclet</property> </emphasis> screen it's possible to enable/disable XDoclet builder by checking proper box, specify XDoclet home and determine XDoclet module version as well.
+ On the <guilabel>XDoclet</guilabel> screen it is possible to enable or disable XDoclet builder by checking proper box, specify XDoclet home and determine XDoclet module version as well.
</para>
<figure>
@@ -1450,7 +1450,7 @@
</figure>
<para>
- Switch to <emphasis> <property>XDoclet > ejbdoclet</property> </emphasis> page in order to adjust settings for EJB-specific sub-tasks.
+ Switch to <menuchoice><guimenuitem>XDoclet</guimenuitem><guimenuitem>ejbdoclet</guimenuitem></menuchoice> page in order to adjust settings for EJB-specific sub-tasks.
</para>
<figure>
@@ -1463,7 +1463,7 @@
</figure>
<para>
- To configure settings for various web-specific XDoclet sub-tasks, follow to <emphasis> <property>XDoclet > webdoclet</property> </emphasis> page.
+ To configure settings for various web-specific XDoclet sub-tasks, follow to <menuchoice><guimenuitem>XDoclet</guimenuitem><guimenuitem>webdoclet</guimenuitem></menuchoice> page.
</para>
<figure>
@@ -1590,10 +1590,7 @@
<orderedlist>
<listitem>
- <para>Select<emphasis>
- <property> Window > Preferences > JBoss Tools > Web > {JSF or Struts} >
- Project</property>
- </emphasis></para>
+ <para>Select<menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Preferences</guimenuitem><guimenuitem>JBoss Tools</guimenuitem><guimenuitem>Web</guimenuitem><guimenuitem>{JSF or Struts}</guimenuitem><guimenuitem>Project</guimenuitem></menuchoice></para>
</listitem>
<listitem>
<para>For Project Template set the template you want to be the default one</para>
Modified: trunk/jsf/docs/userguide/en-US/vwt_faq.xml
===================================================================
--- trunk/jsf/docs/userguide/en-US/vwt_faq.xml 2011-03-16 00:26:35 UTC (rev 29811)
+++ trunk/jsf/docs/userguide/en-US/vwt_faq.xml 2011-03-16 00:34:03 UTC (rev 29812)
@@ -1,102 +1,129 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<chapter id="vwt_faq">
- <?dbhtml filename="vwt_faq.html"?>
- <title>FAQ</title>
-
- <section id="question_1">
- <title>What should I do if Visual Page Editor does not start under Linux?</title>
-
- <para> The <property>Visual Page Editor</property> requires the library libstdc++.so.5. This library is
- contained in the compat-libstdc++-33.i386 package.</para>
-
- <itemizedlist>
- <listitem>
- <para>To install this package on Fedora Core or Red Hat Enterprise Linux run the
- following command:</para>
- <programlisting role="JAVA"><![CDATA[yum install compat-libstdc++-33.i386
-]]></programlisting>
- </listitem>
-
- <listitem>
- <para>On any other rpm based distributions download libstdc++.so.5 and run the
- following command:</para>
- <programlisting role="JAVA"><![CDATA[rpm -Uvh compat-libstdc++-33.i386
-]]></programlisting>
- </listitem>
-
- <listitem>
- <para>On Debian based distributions run the following command: </para>
- <programlisting role="JAVA"><![CDATA[apt-get install compat-libstdc++-33.i386
-]]></programlisting>
- </listitem>
- </itemizedlist>
-
- <para> In case you have the library installed and you still have issue with starting the
- <property>Visual Page Editor</property> then close all browser views/editors and leave one <property>Visual Page
- Editor</property> open and restart eclipse. This should force a load of the right XULRunner
- viewer.</para>
- <para> If it doesn't help and you use Fedora Core Linux and Eclipse Version: 3.4.1, the issue can be produced because libswt-xulrunner-gtk-3449.so file doesn't present
- in eclipse-swt-3.4.1-5.fc10.x86_64.rpm/eclipse/plugins/org.eclipse.swt.gtk.linux.x86_64_3.4.1.v3449c.jar.To add this file to eclipse you should:
- </para>
- <itemizedlist>
- <listitem>
- <para>Decompress eclipse/plugins/org.eclipse.swt.gtk.linux.x86_3.4.1.v3449c.jar form eclipse-SDK-3.4.1-linux-gtk-x86_64.tar.gz</para>
- </listitem>
- <listitem>
- <para>Copy <property>libswt-xulrunner-gtk-3449.so</property> file to your Fedora Eclipse location. </para>
- </listitem>
-
- <listitem>
- <para>Open the file eclipse.ini,which can be found in your Fedora Eclipse location and add the following line: </para>
- <programlisting role="JAVA"><![CDATA[-Dswt.library.path=/usr/lib/eclipse
-]]></programlisting><para>,where <code>/usr/lib/eclipse</code> is the path to your eclipse folder.</para>
- </listitem>
- </itemizedlist>
- </section>
-
- <section id="question_2">
- <title>How do I change the auto-formating preferences for the Visual Page Editor?</title>
-
- <para>JBoss HTML/JSP editor uses basic eclipse HTML formatter to format files. So if you
- want to change preferences of formatter for the <property>Visual Page Editor</property>, you should change it
- for eclipse html editor (open <emphasis><property>Window >
- Preferences</property>,</emphasis> then choose <emphasis>
- <property>Web > HTML Files > Editor</property>
- </emphasis>).</para>
- </section>
- <section id="question_3">
- <title>Visual Editor starts OK, but the Missing Natures dialog appears</title>
-
- <figure>
- <title>Missing Nature</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/faq/missingnauture.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
-
- <para>
-
- Some functionality of Visual Editor may not work if a project doesn't have <property>org.jboss.tools.jsf.jsfnature</property> or <property>org.jboss.tools.jst.web.kb.kbnature</property> in <property>.project</property> configuration. To fix this problem and turn off the message box execute next steps:
-</para>
-<orderedlist>
-<listitem><para>
- Right mouse button click on a project in Package Explorer.
- </para></listitem>
- <listitem><para>
- Select <property>Configure -> Add JSF Capabilities</property> from the context menu.
- </para></listitem>
- <listitem><para>
- Configure your project using Add JSF Capabilities wizard and press Finish.
-</para></listitem>
-
-</orderedlist>
-<para>
-If you are sure that your project does not need JSF capabilities, just disable this message box by checking <property>Do not show this dialog again!</property> checkbox.
- </para>
-
- </section>
-
-</chapter>
+<?xml version='1.0' encoding='UTF-8'?>
+<chapter id="vwt_faq">
+<?dbhtml filename="vwt_faq.html"?>
+ <title>FAQ</title>
+ <section id="question_1">
+ <title>What should I do if Visual Page Editor does not start under Linux?</title>
+ <para>
+ The <property>Visual Page Editor</property> requires the library <filename>libstdc++.so.5</filename>. This library is contained in the compat-libstdc++-33.i386 package.
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ To install this package on Fedora Core or Red Hat Enterprise Linux run the following command:
+ </para>
+
+ <programlisting role="JAVA">
+<![CDATA[yum install compat-libstdc++-33.i386
+]]>
+ </programlisting>
+ </listitem>
+
+ <listitem>
+ <para>
+ On any other rpm based distributions download <filename>libstdc++.so.5</filename> and run the following command:
+ </para>
+
+ <programlisting role="JAVA">
+<![CDATA[rpm -Uvh compat-libstdc++-33.i386
+]]>
+ </programlisting>
+ </listitem>
+
+ <listitem>
+ <para>
+ On Debian based distributions run the following command:
+ </para>
+
+ <programlisting role="JAVA">
+<![CDATA[apt-get install compat-libstdc++-33.i386
+]]>
+ </programlisting>
+ </listitem>
+ </itemizedlist>
+
+ <para>
+ In case you have the library installed and you still have issue with starting the <property>Visual Page Editor</property> then close all browser views/editors and leave one <property>Visual Page Editor</property> open and restart eclipse. This should force a load of the right XULRunner viewer.
+ </para>
+
+ <para>
+ If it doesn't help and you use Fedora Core Linux and Eclipse Version: 3.4.1, the issue can be produced because <filename>libswt-xulrunner-gtk-3449.so</filename> file doesn't present in <filename>eclipse-swt-3.4.1-5.fc10.x86_64.rpm/eclipse/plugins/org.eclipse.swt.gtk.linux.x86_64_3.4.1.v3449c.jar</filename>. To add this file to eclipse you should:
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ Decompress <filename>eclipse/plugins/org.eclipse.swt.gtk.linux.x86_3.4.1.v3449c.jar</filename> from <filename>eclipse-SDK-3.4.1-linux-gtk-x86_64.tar.gz</filename>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Copy <filename>libswt-xulrunner-gtk-3449.so</filename> file to your Fedora Eclipse location.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Open the file eclipse.ini,which can be found in your Fedora Eclipse location and add the following line:
+ </para>
+
+ <programlisting role="JAVA">
+<![CDATA[-Dswt.library.path=/usr/lib/eclipse
+]]>
+ </programlisting>
+ <para>
+ ,where <code>/usr/lib/eclipse</code> is the path to your eclipse folder.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id="question_2">
+ <title>How do I change the auto-formating preferences for the Visual Page Editor?</title>
+ <para>
+ JBoss HTML/JSP editor uses basic eclipse HTML formatter to format files. So if you want to change preferences of formatter for the <property>Visual Page Editor</property>, you should change it for eclipse html editor (open <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Preferences</guimenuitem></menuchoice> then choose <menuchoice><guimenuitem>Web</guimenuitem><guimenuitem>HTML Files</guimenuitem><guimenuitem>Editor</guimenuitem></menuchoice>).
+ </para>
+ </section>
+
+ <section id="question_3">
+ <title>Visual Editor starts OK, but the Missing Natures dialog appears</title>
+ <figure>
+ <title>Missing Nature</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/faq/missingnauture.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>
+ Some functionality of Visual Editor may not work if a project doesn't have <code>org.jboss.tools.jsf.jsfnature</code> or <code>org.jboss.tools.jst.web.kb.kbnature</code> in <filename>.project</filename> configuration. To fix this problem and turn off the message box execute next steps:
+ </para>
+
+ <orderedlist>
+ <listitem>
+ <para>
+ Right mouse button click on a project in Package Explorer.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Select <menuchoice><guimenuitem>Configure</guimenuitem><guimenuitem>Add JSF Capabilities</guimenuitem></menuchoice> from the context menu.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Configure your project using Add JSF Capabilities wizard and press Finish.
+ </para>
+ </listitem>
+ </orderedlist>
+
+ <para>
+ If you are sure that your project does not need JSF capabilities, just disable this message box by checking <property>Do not show this dialog again!</property> checkbox.
+ </para>
+ </section>
+</chapter>
13 years, 10 months
JBoss Tools SVN: r29811 - trunk/jsf/docs/jsf_tools_tutorial.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2011-03-15 20:26:35 -0400 (Tue, 15 Mar 2011)
New Revision: 29811
Modified:
trunk/jsf/docs/jsf_tools_tutorial/pom.xml
Log:
updated with pom fix for referencing the master file
Modified: trunk/jsf/docs/jsf_tools_tutorial/pom.xml
===================================================================
--- trunk/jsf/docs/jsf_tools_tutorial/pom.xml 2011-03-16 00:08:41 UTC (rev 29810)
+++ trunk/jsf/docs/jsf_tools_tutorial/pom.xml 2011-03-16 00:26:35 UTC (rev 29811)
@@ -185,7 +185,7 @@
<configuration>
<sourceDirectory>${project.basedir}</sourceDirectory>
<!-- <sourceDocumentName>${docname}.xml</sourceDocumentName> -->
- <sourceDocumentName>master.xml</sourceDocumentName>
+ <sourceDocumentName>{master}</sourceDocumentName>
<masterTranslation>en-US</masterTranslation>
<imageResource>
<directory>${project.basedir}/en-US</directory>
13 years, 10 months