diff options
author | kmoore | 2008-02-07 15:34:56 +0000 |
---|---|---|
committer | kmoore | 2008-02-07 15:34:56 +0000 |
commit | 07a1d93353211cdd7b9364113b0b6e5c9b472bfe (patch) | |
tree | 43774f3a69adda579111f87136bb2164181e9457 /jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/JoinColumnsComposite.java | |
parent | d052222116056e51bbdf2179878ccfb17f779a04 (diff) | |
download | webtools.dali-07a1d93353211cdd7b9364113b0b6e5c9b472bfe.tar.gz webtools.dali-07a1d93353211cdd7b9364113b0b6e5c9b472bfe.tar.xz webtools.dali-07a1d93353211cdd7b9364113b0b6e5c9b472bfe.zip |
213467 - committing a patch from Pascal
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/JoinColumnsComposite.java')
-rw-r--r-- | jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/JoinColumnsComposite.java | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/JoinColumnsComposite.java b/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/JoinColumnsComposite.java index 015cf7546a..b1d5141f51 100644 --- a/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/JoinColumnsComposite.java +++ b/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/mappings/details/JoinColumnsComposite.java @@ -49,14 +49,25 @@ import org.eclipse.swt.widgets.Composite; */ public class JoinColumnsComposite<T extends IJpaNode> extends AbstractFormPane<T> { + /** + * The editor used to perform the common behaviors defined in the list pane. + */ private IJoinColumnsEditor<T> joinColumnsEditor; /** + * Keeps track of the list pane in order to update its enablement state when + * required. + */ + private AddRemoveListPane<T> joinColumnsListPane; + + /** * Creates a new <code>JoinColumnsComposite</code>. * * @param parentPane The parent controller of this one * @param parent The parent container * @param widgetFactory The factory used to create various common widgets + * @param joinColumnsEditor The editor used to perform the common behaviors + * defined in the list pane */ public JoinColumnsComposite(AbstractFormPane<? extends T> parentPane, Composite parent, @@ -74,6 +85,8 @@ public class JoinColumnsComposite<T extends IJpaNode> extends AbstractFormPane<T * @param subjectHolder The holder of this pane's subject * @param parent The parent container * @param widgetFactory The factory used to create various common widgets + * @param joinColumnsEditor The editor used to perform the common behaviors + * defined in the list pane */ public JoinColumnsComposite(AbstractFormPane<?> parentPane, PropertyValueModel<? extends T> subjectHolder, @@ -209,13 +222,22 @@ public class JoinColumnsComposite<T extends IJpaNode> extends AbstractFormPane<T * (non-Javadoc) */ @Override + public void enableWidgets(boolean enabled) { + super.enableWidgets(enabled); + joinColumnsListPane.enableWidgets(enabled); + } + + /* + * (non-Javadoc) + */ + @Override protected void initializeLayout(Composite container) { } private void initializeLayout2() { // Join Columns list pane - new AddRemoveListPane<T>( + joinColumnsListPane = new AddRemoveListPane<T>( this, getControl(), buildJoinColumnsAdapter(), |