| author | Rainer Pielmann | 2012-02-20 09:57:28 (EST) |
|---|---|---|
| committer | Stephan Born | 2012-04-24 10:13:01 (EDT) |
| commit | ae1fe38aa872bc1e5973e333cb898f43a70826c0 (patch) (side-by-side diff) | |
| tree | 59e90040cd7182bfcb250ab79956b13eedaa3a3f | |
| parent | c411af8736152b5dbcde0a0a2a6b2932446a2d2b (diff) | |
| download | org.eclipse.stardust.ide-ae1fe38aa872bc1e5973e333cb898f43a70826c0.zip org.eclipse.stardust.ide-ae1fe38aa872bc1e5973e333cb898f43a70826c0.tar.gz org.eclipse.stardust.ide-ae1fe38aa872bc1e5973e333cb898f43a70826c0.tar.bz2 | |
Jira-ID: CRNT-23159 Session Bean Application: Restore default button throws NPE
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@53925 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
| -rw-r--r-- | modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/spi/applicationTypes/sessionBean/SessionBean20PropertyPage.java | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/spi/applicationTypes/sessionBean/SessionBean20PropertyPage.java b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/spi/applicationTypes/sessionBean/SessionBean20PropertyPage.java index b005682..c48eab9 100644 --- a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/spi/applicationTypes/sessionBean/SessionBean20PropertyPage.java +++ b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/spi/applicationTypes/sessionBean/SessionBean20PropertyPage.java @@ -53,23 +53,27 @@ public class SessionBean20PropertyPage extends AbstractModelElementPropertyPage public void loadFieldsFromElement(IModelElementNodeSymbol symbol, IModelElement element) { - TypeFinder finder = new TypeFinder(element); - remoteBrowser.setTypeFinder(finder); - remoteBrowser.setFilter(EJBObject.class); - homeBrowser.setTypeFinder(finder); - homeBrowser.setFilter(EJBHome.class); - completionBrowser.setTypeFinder(finder); - creationBrowser.setTypeFinder(finder); - - WidgetBindingManager wBndMgr = getWidgetBindingManager(); - wBndMgr.bind(remoteText, (IExtensibleElement) element, CarnotConstants.REMOTE_INTERFACE_ATT); - wBndMgr.bind(homeText, (IExtensibleElement) element, CarnotConstants.HOME_INTERFACE_ATT); - wBndMgr.bind(jndiText, (IExtensibleElement) element, CarnotConstants.JNDI_PATH_ATT); - wBndMgr.bind(localBinding, (IExtensibleElement) element, CarnotConstants.IS_LOCAL_ATT); - wBndMgr.bind(completionText, (IExtensibleElement) element, CarnotConstants.METHOD_NAME_ATT); - wBndMgr.bind(creationText, (IExtensibleElement) element, CarnotConstants.CREATE_METHOD_NAME_ATT); - - updateMethodBrowserStyle(); + if (remoteBrowser != null) + { + TypeFinder finder = new TypeFinder(element); + remoteBrowser.setTypeFinder(finder); + remoteBrowser.setFilter(EJBObject.class); + homeBrowser.setTypeFinder(finder); + homeBrowser.setFilter(EJBHome.class); + completionBrowser.setTypeFinder(finder); + creationBrowser.setTypeFinder(finder); + + WidgetBindingManager wBndMgr = getWidgetBindingManager(); + wBndMgr.bind(remoteText, (IExtensibleElement) element, CarnotConstants.REMOTE_INTERFACE_ATT); + wBndMgr.bind(homeText, (IExtensibleElement) element, CarnotConstants.HOME_INTERFACE_ATT); + wBndMgr.bind(jndiText, (IExtensibleElement) element, CarnotConstants.JNDI_PATH_ATT); + wBndMgr.bind(localBinding, (IExtensibleElement) element, CarnotConstants.IS_LOCAL_ATT); + wBndMgr.bind(completionText, (IExtensibleElement) element, CarnotConstants.METHOD_NAME_ATT); + wBndMgr.bind(creationText, (IExtensibleElement) element, CarnotConstants.CREATE_METHOD_NAME_ATT); + + updateMethodBrowserStyle(); + + } } public void loadElementFromFields(IModelElementNodeSymbol symbol, IModelElement element) |

