JBoss Tools SVN: r7904 - in branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui: wizard and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2008-04-30 05:41:51 -0400 (Wed, 30 Apr 2008)
New Revision: 7904
Modified:
branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/BaseFieldEditor.java
branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/ComboFieldEditor.java
branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/CompositeEditor.java
branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/IFieldEditor.java
branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardFactory.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-2127 Fixed
Modified: branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/BaseFieldEditor.java
===================================================================
--- branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/BaseFieldEditor.java 2008-04-30 09:40:17 UTC (rev 7903)
+++ branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/BaseFieldEditor.java 2008-04-30 09:41:51 UTC (rev 7904)
@@ -13,14 +13,22 @@
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.util.HashMap;
+import java.util.HashSet;
import java.util.Map;
+import java.util.Set;
import org.eclipse.core.runtime.Assert;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.DisposeEvent;
+import org.eclipse.swt.events.DisposeListener;
+import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Widget;
import org.jboss.tools.seam.ui.SeamUIMessages;
/**
@@ -31,11 +39,13 @@
public abstract class BaseFieldEditor implements IFieldEditor {
PropertyChangeSupport pcs = new PropertyChangeSupport(this);
-
+
+ Set<DisposeListener> disposeListeners = new HashSet<DisposeListener>();
+
private Object value = new Object();
-
+
private String labelText = SeamUIMessages.BASE_FIELD_EDITOR_NO_LABEL;
-
+
private String nameText = null;
Label labelControl = null;
@@ -64,10 +74,18 @@
Assert.isTrue(parent instanceof Composite, SeamUIMessages.BASE_FIELD_EDITOR_PARENT_CONTROL_SHOULD_BE_COMPOSITE);
Assert.isTrue(((Composite)parent).getLayout() instanceof GridLayout,SeamUIMessages.BASE_FIELD_EDITOR_EDITOR_SUPPORTS_ONLY_GRID_LAYOUT);
Composite aComposite = (Composite) parent;
- getEditorControls(aComposite);
+ final Control[] controls = (Control[])getEditorControls(aComposite);
GridLayout gl = (GridLayout)((Composite)parent).getLayout();
doFillIntoGrid(aComposite,gl.numColumns);
+ if(controls.length>0) {
+ controls[0].addDisposeListener(new DisposeListener(){
+ public void widgetDisposed(DisposeEvent e) {
+ dispose();
+ controls[0].removeDisposeListener(this);
+ }
+ });
+ }
}
/**
@@ -84,7 +102,7 @@
public void addPropertyChangeListener(PropertyChangeListener listener) {
pcs.addPropertyChangeListener(listener);
}
-
+
/**
*
*/
@@ -219,9 +237,10 @@
public String getName() {
return nameText;
}
-
- /**
- *
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.seam.ui.widget.editor.IFieldEditor#dispose()
*/
public void dispose() {
PropertyChangeListener[] listeners = pcs.getPropertyChangeListeners();
@@ -231,6 +250,34 @@
}
}
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.seam.ui.widget.editor.IFieldEditor#dispose(org.eclipse.swt.events.DisposeEvent)
+ */
+ public void dispose(DisposeEvent e) {
+ dispose();
+ for (DisposeListener disposeListener : disposeListeners) {
+ disposeListener.widgetDisposed(e);
+ }
+ disposeListeners.clear();
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.seam.ui.widget.editor.IFieldEditor#addDisposeListener(org.eclipse.swt.events.DisposeListener)
+ */
+ public void addDisposeListener(DisposeListener listener) {
+ disposeListeners.add(listener);
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.seam.ui.widget.editor.IFieldEditor#removeDisposeListener(org.eclipse.swt.events.DisposeListener)
+ */
+ public void removeDisposeListener(DisposeListener listener) {
+ disposeListeners.remove(listener);
+ }
+
/**
*
* @return
Modified: branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/ComboFieldEditor.java
===================================================================
--- branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/ComboFieldEditor.java 2008-04-30 09:40:17 UTC (rev 7903)
+++ branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/ComboFieldEditor.java 2008-04-30 09:41:51 UTC (rev 7904)
@@ -16,6 +16,9 @@
import java.util.List;
import org.eclipse.core.runtime.Assert;
+import org.eclipse.swt.events.DisposeEvent;
+import org.eclipse.swt.events.DisposeListener;
+import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.jboss.tools.seam.ui.widget.field.ComboBoxField;
@@ -47,6 +50,13 @@
if(comboField == null) {
comboField = new ComboBoxField(composite,values,getValue(),editable);
comboField.addPropertyChangeListener(this);
+ final Combo combo =comboField.getComboControl();
+ combo.addDisposeListener(new DisposeListener(){
+ public void widgetDisposed(DisposeEvent e) {
+ dispose(e);
+ combo.removeDisposeListener(this);
+ }
+ });
} else if(composite!=null) {
Assert.isTrue(comboField.getControl().getParent()==composite);
}
Modified: branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/CompositeEditor.java
===================================================================
--- branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/CompositeEditor.java 2008-04-30 09:40:17 UTC (rev 7903)
+++ branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/CompositeEditor.java 2008-04-30 09:41:51 UTC (rev 7904)
@@ -19,6 +19,8 @@
import org.eclipse.core.runtime.Assert;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.DisposeEvent;
+import org.eclipse.swt.events.DisposeListener;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Combo;
@@ -44,9 +46,9 @@
SeamUIMessages.COMPOSITE_EDITOR_EDITOR_SUPPORTS_ONLY_GRID_LAYOUT);
Composite aComposite = (Composite) parent;
- Control[] controls = (Control[]) getEditorControls(aComposite);
+ final Control[] controls = (Control[]) getEditorControls(aComposite);
GridLayout gl = (GridLayout) ((Composite) parent).getLayout();
-
+
for (int i = 0; i < controls.length; i++) {
GridData gd = new GridData();
gd.horizontalSpan = i == 1 ? gl.numColumns - controls.length + 1 : 1;
@@ -59,7 +61,16 @@
controls[i].setLayoutData(gd);
controls[i].setEnabled(isEnabled());
- }
+
+ if(i==0) {
+ controls[i].addDisposeListener(new DisposeListener(){
+ public void widgetDisposed(DisposeEvent e) {
+ dispose();
+ controls[0].removeDisposeListener(this);
+ }
+ });
+ }
+ }
}
List<Control> controls = new ArrayList<Control>();
Modified: branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/IFieldEditor.java
===================================================================
--- branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/IFieldEditor.java 2008-04-30 09:40:17 UTC (rev 7903)
+++ branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/IFieldEditor.java 2008-04-30 09:41:51 UTC (rev 7904)
@@ -12,6 +12,10 @@
import java.beans.PropertyChangeListener;
+import org.eclipse.swt.events.DisposeEvent;
+import org.eclipse.swt.events.DisposeListener;
+import org.eclipse.swt.widgets.Listener;
+
public interface IFieldEditor extends INamedElement {
/**
@@ -48,6 +52,18 @@
*
* @param listener
*/
+ public void addDisposeListener(DisposeListener listener);
+
+ /**
+ *
+ * @param listener
+ */
+ public void removeDisposeListener(DisposeListener listener);
+
+ /**
+ *
+ * @param listener
+ */
public void removePropertyChangeListener(PropertyChangeListener listener);
/**
@@ -85,6 +101,11 @@
*/
public void dispose();
+ /**
+ *
+ * @param e
+ */
+ public void dispose(DisposeEvent e);
/**
* Sets the application defined property of this editor
Modified: branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardFactory.java
===================================================================
--- branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardFactory.java 2008-04-30 09:40:17 UTC (rev 7903)
+++ branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardFactory.java 2008-04-30 09:41:51 UTC (rev 7904)
@@ -26,6 +26,8 @@
import org.eclipse.datatools.connectivity.internal.ui.wizards.NewCPWizardCategoryFilter;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.jface.wizard.WizardDialog;
+import org.eclipse.swt.events.DisposeEvent;
+import org.eclipse.swt.events.DisposeListener;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.internal.dialogs.PropertyDialog;
import org.hibernate.console.ConsoleConfiguration;
@@ -40,6 +42,7 @@
import org.jboss.tools.seam.ui.internal.project.facet.IValidator;
import org.jboss.tools.seam.ui.internal.project.facet.ValidatorFactory;
import org.jboss.tools.seam.ui.widget.editor.ButtonFieldEditor;
+import org.jboss.tools.seam.ui.widget.editor.ComboFieldEditor;
import org.jboss.tools.seam.ui.widget.editor.CompositeEditor;
import org.jboss.tools.seam.ui.widget.editor.IFieldEditor;
import org.jboss.tools.seam.ui.widget.editor.IFieldEditorFactory;
@@ -197,7 +200,7 @@
* @param canBeEmpty
* @return
*/
- public static IFieldEditor createConnectionProfileSelectionFieldEditor(Object defaultValue, IValidator validator, boolean canBeEmpty) {
+ public static IFieldEditor createConnectionProfileSelectionFieldEditor(Object defaultValue, IValidator validator, final boolean canBeEmpty) {
EditConnectionProfileAction editAction = new EditConnectionProfileAction(validator);
NewConnectionProfileAction newAction = new NewConnectionProfileAction(validator);
List<String> profiles = getConnectionProfileNameList();
@@ -224,6 +227,34 @@
}
});
}
+ final ComboFieldEditor comboEditor = ((ComboFieldEditor)((CompositeEditor)connProfileSelEditor).getEditors().get(1));
+ final IProfileListener profileListener = new IProfileListener() {
+ private void update() {
+ List<String> profiles = getConnectionProfileNameList();
+ if(canBeEmpty) {
+ profiles.add(0, "");
+ }
+ comboEditor.setTags((profiles.toArray(new String[0])));
+ }
+
+ public void profileAdded(IConnectionProfile profile) {
+ update();
+ }
+
+ public void profileChanged(IConnectionProfile profile) {
+ update();
+ }
+
+ public void profileDeleted(IConnectionProfile profile) {
+ update();
+ }
+ };
+ ProfileManager.getInstance().addProfileListener(profileListener);
+ comboEditor.addDisposeListener(new DisposeListener(){
+ public void widgetDisposed(DisposeEvent e) {
+ ProfileManager.getInstance().removeProfileListener(profileListener);
+ }
+ });
return connProfileSelEditor;
}
16 years, 8 months
JBoss Tools SVN: r7903 - trunk/jsf/docs/userguide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: tromanovich
Date: 2008-04-30 05:40:17 -0400 (Wed, 30 Apr 2008)
New Revision: 7903
Modified:
trunk/jsf/docs/userguide/en/modules/Visual_Web_Tools.xml
Log:
Updating references between internal documents in the documentation\jboss-tools-docs\nightly-docs\ bundle
Modified: trunk/jsf/docs/userguide/en/modules/Visual_Web_Tools.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/Visual_Web_Tools.xml 2008-04-30 09:36:16 UTC (rev 7902)
+++ trunk/jsf/docs/userguide/en/modules/Visual_Web_Tools.xml 2008-04-30 09:40:17 UTC (rev 7903)
@@ -103,8 +103,7 @@
<entry>OpenOn</entry>
<entry>Easy navigation between views and other parts of your projects.</entry>
<entry>
- <ulink url="OpenOnSelection4Hyperlinknavigation">facelets
- support</ulink>
+ <link linkend="OpenOnSelection4Hyperlinknavigation">facelets support</link>
</entry>
</row>
@@ -115,8 +114,7 @@
graphical editor. Code completion for values from property files, beans attributes and
methods, navigation rule outcomes and jsf variables.</entry>
<entry>
- <ulink url="CodeAssistAndDynamicCodeAssist42BasedOnProjectData">content
- assist</ulink>
+ <link linkend="CodeAssistAndDynamicCodeAssist42BasedOnProjectData">content assist</link>
</entry>
</row>
16 years, 8 months
JBoss Tools SVN: r7902 - trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/actions.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2008-04-30 05:36:16 -0400 (Wed, 30 Apr 2008)
New Revision: 7902
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/actions/FindSeamAction.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-2121 Different behavior(result) of actions Find Seam Declarations and Find Seam References when call them using hot keys or selection from Navigate menu.
No critical changes (The only imports are organized to be consistent with branch 2.1.x)
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/actions/FindSeamAction.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/actions/FindSeamAction.java 2008-04-30 09:33:44 UTC (rev 7901)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/actions/FindSeamAction.java 2008-04-30 09:36:16 UTC (rev 7902)
@@ -32,20 +32,14 @@
import org.eclipse.jface.text.ITextViewer;
import org.eclipse.jface.text.source.ISourceViewer;
import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IActionDelegate2;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IFileEditorInput;
-import org.eclipse.ui.IPageListener;
import org.eclipse.ui.ISelectionListener;
-import org.eclipse.ui.IWindowListener;
import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.IWorkbenchListener;
-import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;
@@ -53,8 +47,6 @@
import org.eclipse.ui.part.MultiPageEditorPart;
import org.eclipse.ui.progress.IProgressService;
import org.eclipse.ui.texteditor.AbstractTextEditor;
-import org.eclipse.wst.sse.ui.StructuredTextEditor;
-import org.jboss.tools.common.model.ui.ModelUIPlugin;
import org.jboss.tools.common.model.ui.editor.EditorPartWrapper;
import org.jboss.tools.common.model.ui.texteditors.xmleditor.XMLTextEditor;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
@@ -63,15 +55,10 @@
import org.jboss.tools.seam.core.SeamCorePlugin;
import org.jboss.tools.seam.internal.core.el.ELOperandToken;
import org.jboss.tools.seam.internal.core.el.SeamELCompletionEngine;
-import org.jboss.tools.seam.internal.core.el.SeamELOperandTokenizer;
-import org.jboss.tools.seam.internal.core.el.SeamELOperandTokenizerForward;
-import org.jboss.tools.seam.internal.core.el.ElVarSearcher.Var;
import org.jboss.tools.seam.ui.SeamGuiPlugin;
import org.jboss.tools.seam.ui.search.SeamSearchQuery;
import org.jboss.tools.seam.ui.search.SeamSearchScope;
-import com.mchange.v2.async.StrandedTaskReporting;
-
/**
* Base class for Seam Find actions
*
16 years, 8 months
JBoss Tools SVN: r7901 - branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/actions.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2008-04-30 05:33:44 -0400 (Wed, 30 Apr 2008)
New Revision: 7901
Modified:
branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/actions/FindSeamAction.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-2121 Different behavior(result) of actions Find Seam Declarations and Find Seam References when call them using hot keys or selection from Navigate menu.
Find Seam Declarations/References actions enablement is modified.
Fixed for branch 2.1.x
Modified: branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/actions/FindSeamAction.java
===================================================================
--- branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/actions/FindSeamAction.java 2008-04-30 09:29:20 UTC (rev 7900)
+++ branches/jbosstools-2.1.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/actions/FindSeamAction.java 2008-04-30 09:33:44 UTC (rev 7901)
@@ -32,20 +32,14 @@
import org.eclipse.jface.text.ITextViewer;
import org.eclipse.jface.text.source.ISourceViewer;
import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IActionDelegate2;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IFileEditorInput;
-import org.eclipse.ui.IPageListener;
import org.eclipse.ui.ISelectionListener;
-import org.eclipse.ui.IWindowListener;
import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.IWorkbenchListener;
-import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;
@@ -53,8 +47,6 @@
import org.eclipse.ui.part.MultiPageEditorPart;
import org.eclipse.ui.progress.IProgressService;
import org.eclipse.ui.texteditor.AbstractTextEditor;
-import org.eclipse.wst.sse.ui.StructuredTextEditor;
-import org.jboss.tools.common.model.ui.ModelUIPlugin;
import org.jboss.tools.common.model.ui.editor.EditorPartWrapper;
import org.jboss.tools.common.model.ui.texteditors.xmleditor.XMLTextEditor;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
@@ -63,15 +55,10 @@
import org.jboss.tools.seam.core.SeamCorePlugin;
import org.jboss.tools.seam.internal.core.el.ELOperandToken;
import org.jboss.tools.seam.internal.core.el.SeamELCompletionEngine;
-import org.jboss.tools.seam.internal.core.el.SeamELOperandTokenizer;
-import org.jboss.tools.seam.internal.core.el.SeamELOperandTokenizerForward;
-import org.jboss.tools.seam.internal.core.el.ElVarSearcher.Var;
import org.jboss.tools.seam.ui.SeamGuiPlugin;
import org.jboss.tools.seam.ui.search.SeamSearchQuery;
import org.jboss.tools.seam.ui.search.SeamSearchScope;
-import com.mchange.v2.async.StrandedTaskReporting;
-
/**
* Base class for Seam Find actions
*
@@ -452,33 +439,8 @@
}
}
- /*
- * Updates availability on the action delegate
- *
- * @param part
- * @param selection
- */
- private void update(IWorkbenchPart part, ISelection selection) {
- boolean enabled = false;
- try {
- if (!(part instanceof IEditorPart))
- return;
-
- ISourceViewer viewer = getEditorViewer((IEditorPart)part);
- if (viewer == null)
- return;
-
- enabled = (getTextSelection(selection) != null);
- } finally {
- setEnabled(enabled);
- if (fDelegatorAction != null) {
- fDelegatorAction.setEnabled(enabled);
- }
- }
- }
-
// ISelectionListener
public void selectionChanged(IWorkbenchPart part, ISelection selection) {
- update(selection);
+ update(getTextSelection(getEditorViewer(part)));
}
}
16 years, 8 months
JBoss Tools SVN: r7900 - trunk/struts/docs/struts_tools_ref_guide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-04-30 05:29:20 -0400 (Wed, 30 Apr 2008)
New Revision: 7900
Modified:
trunk/struts/docs/struts_tools_ref_guide/en/modules/introduction.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-153 - Key Features list is added for Struts tools
Modified: trunk/struts/docs/struts_tools_ref_guide/en/modules/introduction.xml
===================================================================
--- trunk/struts/docs/struts_tools_ref_guide/en/modules/introduction.xml 2008-04-30 08:39:38 UTC (rev 7899)
+++ trunk/struts/docs/struts_tools_ref_guide/en/modules/introduction.xml 2008-04-30 09:29:20 UTC (rev 7900)
@@ -15,8 +15,86 @@
<para>If you prefer to develop web applications using Struts technology JBoss Tools also meet
your needs. The professional developer toolset provides all necessary editors and wizards
- for creating Struts resources that enhances the process of building high-quality web applications.</para>
- <note><para>Note that JBoss Tools support the Struts 1.1, 1.2.x versions.</para></note>
-
- <para>In this guide you will learn how to take advantage of Struts support that JBoss Tools provide.</para>
+ for creating Struts resources that enhances the process of building high-quality web
+ applications.</para>
+ <note>
+ <para>Note that JBoss Tools support the Struts 1.1, 1.2.x versions.</para>
+ </note>
+
+ <para>In this guide you will learn how to take advantage of Struts support that <property>JBoss Tools</property>
+ provide.</para>
+
+ <section id="struts_key_features">
+ <title>Key Features of Struts Tools</title>
+
+ <para>For a start, we propose you to look through the table of main features of Struts
+ Tools:</para>
+
+ <table>
+
+ <title>Key Functionality for Struts Tools</title>
+ <tgroup cols="3">
+
+ <colspec colnum="1" colwidth="2*"/>
+ <colspec colnum="2" colwidth="4*"/>
+ <colspec colnum="3" colwidth="2*"/>
+
+ <thead>
+ <row>
+ <entry>Feature</entry>
+ <entry>Benefit</entry>
+ <entry>Chapter</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><para>Struts Support</para></entry>
+ <entry><para>Step-by-step wizards for creating a new struts project with a number
+ of predefined templates, importing existing ones and adding struts
+ capabilities to non-struts web projects.</para></entry>
+ <entry>
+ <link linkend="projects">struts support</link>
+ </entry>
+ </row>
+
+ <row>
+ <entry><para>Support for Struts Configuration File</para></entry>
+ <entry><para>Working on file using three modes: diagram, tree and source.
+ Synchronization between the modes and full control over the code. Easy
+ moving around the diagram using the Diagram Navigator. Working with
+ struts projects that have multiple modules. Possibility to use Struts
+ configuration file debugger allowing to set break points on struts
+ diagram and then launch the server in debug mode.</para></entry>
+ <entry>
+ <link linkend="struts_config_editor">graphical editor for struts</link>
+ <link linkend="config_file_debugger">configuration file debugger</link>
+ </entry>
+ </row>
+
+ <row>
+ <entry><para>Support for Struts modules</para></entry>
+ <entry><para>A Struts module (struts-config.xml) is automatically created while
+ creating a new project. There is also possibility to add new ones or edit
+ already existing modules in your existing project or while importing Struts project.</para></entry>
+ <entry>
+ <link linkend="modules">modules</link>
+ </entry>
+ </row>
+
+ <row>
+ <entry><para>Verification and Validation</para></entry>
+ <entry><para>All occuring errors will be immediately reported by verification
+ feature, no matter in what view you are working. Constant validation and
+ errors checking allows to catch many of the errors during development
+ process that significantly reduces development time.</para></entry>
+ <entry>
+ <link linkend="project_verification">verification and validation</link>
+ </entry>
+
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ </section>
</chapter>
16 years, 8 months
JBoss Tools SVN: r7899 - trunk/jsf/docs/userguide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: tromanovich
Date: 2008-04-30 04:39:38 -0400 (Wed, 30 Apr 2008)
New Revision: 7899
Modified:
trunk/jsf/docs/userguide/en/modules/Visual_Web_Tools.xml
trunk/jsf/docs/userguide/en/modules/editors.xml
Log:
Updating references between internal documents in the documentation\jboss-tools-docs\nightly-docs\ bundle
Modified: trunk/jsf/docs/userguide/en/modules/Visual_Web_Tools.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/Visual_Web_Tools.xml 2008-04-29 23:33:38 UTC (rev 7898)
+++ trunk/jsf/docs/userguide/en/modules/Visual_Web_Tools.xml 2008-04-30 08:39:38 UTC (rev 7899)
@@ -103,7 +103,7 @@
<entry>OpenOn</entry>
<entry>Easy navigation between views and other parts of your projects.</entry>
<entry>
- <ulink url="../../jsf_tools_ref_guide/html_single/index.html#FaceletsSupport865">facelets
+ <ulink url="OpenOnSelection4Hyperlinknavigation">facelets
support</ulink>
</entry>
</row>
@@ -115,7 +115,7 @@
graphical editor. Code completion for values from property files, beans attributes and
methods, navigation rule outcomes and jsf variables.</entry>
<entry>
- <ulink url="../../jsf_tools_ref_guide/html_single/index.html#ContentAssist976">content
+ <ulink url="CodeAssistAndDynamicCodeAssist42BasedOnProjectData">content
assist</ulink>
</entry>
</row>
Modified: trunk/jsf/docs/userguide/en/modules/editors.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/editors.xml 2008-04-29 23:33:38 UTC (rev 7898)
+++ trunk/jsf/docs/userguide/en/modules/editors.xml 2008-04-30 08:39:38 UTC (rev 7899)
@@ -12,10 +12,10 @@
<title>Editors</title>
<para>In previous chapters you had possibility to read about Graphical Editor for
- <ulink url="../../jsf_tools_ref_guide/html_single/index.html#jsf_config_file">JSF</ulink> and
- <ulink url="../../struts_tools_ref_guide/html_single/index.html#struts_config_editor">Struts</ulink> configuration files,
- <ulink url="../../struts_tools_ref_guide/html_single/index.html#GraphicalEditorForTilesFiles132">Graphical Editor for Tiles Files</ulink>,
- <ulink url="../../struts_tools_ref_guide/html_single/index.html#GraphicalEditorForStrutsValidationFiles86">Graphical Editor for Struts Validation Files</ulink>.
+ <ulink url="../../../../jsf_tools_ref_guide/publish/en-US/html_single/index.html#jsf_config_file">JSF</ulink> and
+ <ulink url="../../../../struts_tools_ref_guide/publish/en-US/html_single/index.html#struts_config_editor">Struts</ulink> configuration files,
+ <ulink url="../../../../struts_tools_ref_guide/publish/en-US/html_single/index.html#GraphicalEditorForTilesFiles132">Graphical Editor for Tiles Files</ulink>,
+ <ulink url="../../../../struts_tools_ref_guide/publish/en-US/html_single/index.html#GraphicalEditorForStrutsValidationFiles86">Graphical Editor for Struts Validation Files</ulink>.
All these editors have <link linkend="OpenOnSelection4Hyperlinknavigation"><property>OpenOn</property></link> and
<link linkend="CodeAssistAndDynamicCodeAssist42BasedOnProjectData"><property>Content Assist</property></link> features,
they are described more detail in this chapter. In addition you get to know a <link linkend="visual_page">Visual Page Editor</link> for combined visual and source editing
@@ -150,7 +150,7 @@
<itemizedlist>
<listitem>
<para>
- <ulink url="../../seam/html_single/index.html#ContentAssist">Seam project files</ulink>
+ <ulink url="../../../../seam/publish/en-US/html_single/index.html#ContentAssist">Seam project files</ulink>
</para>
</listitem>
16 years, 8 months
JBoss Tools SVN: r7898 - branches/ganymede/trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/browser/wtp.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2008-04-29 19:33:38 -0400 (Tue, 29 Apr 2008)
New Revision: 7898
Modified:
branches/ganymede/trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/browser/wtp/RunOnServerContext.java
Log:
JBIDE-2171 I'm committing this even though upstream is wrong. Upstream is promised to be fixed in m7, and I already saw Tim DeBoer's commit. This will fix itself in the next milestone.
Modified: branches/ganymede/trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/browser/wtp/RunOnServerContext.java
===================================================================
--- branches/ganymede/trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/browser/wtp/RunOnServerContext.java 2008-04-29 20:49:31 UTC (rev 7897)
+++ branches/ganymede/trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/browser/wtp/RunOnServerContext.java 2008-04-29 23:33:38 UTC (rev 7898)
@@ -132,7 +132,7 @@
Object launchable = new HttpLaunchable(new URL(lastRunUrl));
IClient[] clients = getClients(server, launchable, launchMode);
IClient client = clients[0];
- client.launch(server, launchable, launchMode, ((Server)server).getExistingLaunch());
+ client.launch(server, launchable, launchMode, server.getLaunch());
} catch (Exception e) {
WebModelPlugin.getPluginLog().logError(e);
runJustUrl();
16 years, 8 months
JBoss Tools SVN: r7897 - branches/ganymede/trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-04-29 16:49:31 -0400 (Tue, 29 Apr 2008)
New Revision: 7897
Modified:
branches/ganymede/trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/HibernateRefactoringUtil.java
Log:
[JBIDE-2157] [Ganymede] The method serializeDocument(Document) is undefined for the type LaunchingPlugin
Modified: branches/ganymede/trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/HibernateRefactoringUtil.java
===================================================================
--- branches/ganymede/trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/HibernateRefactoringUtil.java 2008-04-29 20:08:35 UTC (rev 7896)
+++ branches/ganymede/trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/HibernateRefactoringUtil.java 2008-04-29 20:49:31 UTC (rev 7897)
@@ -251,7 +251,8 @@
transformer = tf.newTransformer();
transformer.transform(domSource, result);
return writer.toString();*/
- String newMemento = LaunchingPlugin.serializeDocument(doc);
+
+ String newMemento = DebugPlugin.serializeDocument(doc);
return newMemento;
} catch (ParserConfigurationException e) {
IStatus status = new Status(IStatus.ERROR, HibernateConsolePlugin.ID, error_mess, e);
16 years, 8 months
JBoss Tools SVN: r7896 - branches/ganymede/trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/search.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2008-04-29 16:08:35 -0400 (Tue, 29 Apr 2008)
New Revision: 7896
Modified:
branches/ganymede/trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/search/SeamSearchQuery.java
Log:
JBIDE-2158 [Ganymede] The constructor FileMatch(IFile, int, int) is undefined FileMatch last= (FileMatch) fCache
Modified: branches/ganymede/trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/search/SeamSearchQuery.java
===================================================================
--- branches/ganymede/trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/search/SeamSearchQuery.java 2008-04-29 20:06:25 UTC (rev 7895)
+++ branches/ganymede/trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/search/SeamSearchQuery.java 2008-04-29 20:08:35 UTC (rev 7896)
@@ -27,6 +27,7 @@
import org.eclipse.search.internal.core.text.PatternConstructor;
import org.eclipse.search.internal.ui.Messages;
import org.eclipse.search.internal.ui.text.FileMatch;
+import org.eclipse.search.internal.ui.text.LineElement;
import org.eclipse.search.internal.ui.text.SearchResultUpdater;
import org.eclipse.search.ui.ISearchQuery;
import org.eclipse.search.ui.ISearchResult;
@@ -76,10 +77,67 @@
}
public boolean acceptPatternMatch(TextSearchMatchAccess matchRequestor) throws CoreException {
- fCachedMatches.add(new FileMatch(matchRequestor.getFile(), matchRequestor.getMatchOffset(), matchRequestor.getMatchLength()));
+ int matchOffset= matchRequestor.getMatchOffset();
+
+ LineElement lineElement= getLineElement(matchOffset, matchRequestor);
+ if (lineElement != null)
+ fCachedMatches.add(new FileMatch(matchRequestor.getFile(), matchRequestor.getMatchOffset(), matchRequestor.getMatchLength(),lineElement));
return true;
}
+ private LineElement getLineElement(int offset, TextSearchMatchAccess matchRequestor) {
+ int lineNumber= 1;
+ int lineStart= 0;
+ if (!fCachedMatches.isEmpty()) {
+ // match on same line as last?
+ FileMatch last= (FileMatch) fCachedMatches.get(fCachedMatches.size() - 1);
+ LineElement lineElement= last.getLineElement();
+ if (lineElement.contains(offset)) {
+ return lineElement;
+ }
+ // start with the offset and line information from the last match
+ lineStart= lineElement.getOffset() + lineElement.getLength();
+ lineNumber= lineElement.getLine() + 1;
+ }
+ if (offset < lineStart) {
+ return null; // offset before the last line
+ }
+
+ int i= lineStart;
+ int contentLength= matchRequestor.getFileContentLength();
+ while (i < contentLength) {
+ char ch= matchRequestor.getFileContentChar(i++);
+ if (ch == '\n' || ch == '\r') {
+ if (ch == '\r' && i < contentLength && matchRequestor.getFileContentChar(i) == '\n') {
+ i++;
+ }
+ if (offset < i) {
+ String lineContent= getContents(matchRequestor, lineStart, i); // include line delimiter
+ return new LineElement(matchRequestor.getFile(), lineNumber, lineStart, lineContent);
+ }
+ lineNumber++;
+ lineStart= i;
+ }
+ }
+ if (offset < i) {
+ String lineContent= getContents(matchRequestor, lineStart, i); // until end of file
+ return new LineElement(matchRequestor.getFile(), lineNumber, lineStart, lineContent);
+ }
+ return null; // offset outside of range
+ }
+
+ private static String getContents(TextSearchMatchAccess matchRequestor, int start, int end) {
+ StringBuffer buf= new StringBuffer();
+ for (int i= start; i < end; i++) {
+ char ch= matchRequestor.getFileContentChar(i);
+ if (Character.isWhitespace(ch) || Character.isISOControl(ch)) {
+ buf.append(' ');
+ } else {
+ buf.append(ch);
+ }
+ }
+ return buf.toString();
+ }
public boolean acceptSeamDeclarationSourceReferenceMatch(ISeamJavaSourceReference element) throws CoreException {
fCachedMatches.add(new SeamElementMatch(element));
return true;
16 years, 8 months
JBoss Tools SVN: r7895 - branches/ganymede/trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2008-04-29 16:06:25 -0400 (Tue, 29 Apr 2008)
New Revision: 7895
Modified:
branches/ganymede/trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageContributor.java
Log:
JBIDE-2131 [WTP-Ganymede] ActionDefinitionIds.INFORMATION cannot be resolved
Modified: branches/ganymede/trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageContributor.java
===================================================================
--- branches/ganymede/trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageContributor.java 2008-04-29 19:49:13 UTC (rev 7894)
+++ branches/ganymede/trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageContributor.java 2008-04-29 20:06:25 UTC (rev 7895)
@@ -67,10 +67,9 @@
if(fContentAssistTip == null) {
fContentAssistTip = new RetargetTextEditorAction(resourceBundle,
- StructuredTextEditorActionConstants.ACTION_NAME_INFORMATION
- + StructuredTextEditorActionConstants.UNDERSCORE);
+ ITextEditorActionConstants.SHOW_INFORMATION);
fContentAssistTip
- .setActionDefinitionId(ActionDefinitionIds.INFORMATION);
+ .setActionDefinitionId(ITextEditorActionDefinitionIds.SHOW_INFORMATION);
}
}
@@ -184,7 +183,7 @@
fContentAssistTip
.setAction(getAction(
textEditor,
- StructuredTextEditorActionConstants.ACTION_NAME_INFORMATION));
+ ITextEditorActionConstants.SHOW_INFORMATION));
}
if (fActiveEditorPart instanceof ITextEditorExtension) {
ITextEditorExtension extension = (ITextEditorExtension) fActiveEditorPart;
16 years, 8 months