Author: mvw Date: 2008-03-31 08:09:01-0700 New Revision: 14265 Modified: trunk/src/app/src/org/argouml/profile/init/InitProfileSubsystem.java
Log: Don't use the InitSubsystem interface, since this subsystem needs to be initialised before the GUI, and using the InitSubsystem interface would mean that someone may be tempted to initialise some UI here, which won't work. Modified: trunk/src/app/src/org/argouml/profile/init/InitProfileSubsystem.java Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/app/src/org/argouml/profile/init/InitProfileSubsystem.java?view=diff&rev=14265&p1=trunk/src/app/src/org/argouml/profile/init/InitProfileSubsystem.java&p2=trunk/src/app/src/org/argouml/profile/init/InitProfileSubsystem.java&r1=14264&r2=14265 ============================================================================== --- trunk/src/app/src/org/argouml/profile/init/InitProfileSubsystem.java (original) +++ trunk/src/app/src/org/argouml/profile/init/InitProfileSubsystem.java 2008-03-31 08:09:01-0700 @@ -24,13 +24,6 @@ package org.argouml.profile.init; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; - -import org.argouml.application.api.AbstractArgoJPanel; -import org.argouml.application.api.GUISettingsTabInterface; -import org.argouml.application.api.InitSubsystem; import org.argouml.profile.ProfileFacade; /** @@ -38,23 +31,14 @@ * * @author Luis Sergio Oliveira (euluis) */ -public class InitProfileSubsystem implements InitSubsystem { - - public List<GUISettingsTabInterface> getProjectSettingsTabs() { - return new ArrayList<GUISettingsTabInterface>(); - } - - public List<GUISettingsTabInterface> getSettingsTabs() { - return new ArrayList<GUISettingsTabInterface>(); - } +public class InitProfileSubsystem { + /** + * Initialize the Profiles subsystem by binding the 2 packages together. + */ public void init() { ProfileFacade.setManager( new org.argouml.profile.internal.ProfileManagerImpl()); } - public List<AbstractArgoJPanel> getDetailsTabs() { - return Collections.emptyList(); - } - } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
