mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-06 12:23:55 +00:00
bug3529 Removed AbstractRootPerspectiveComposite marker
This commit is contained in:
1 parent
ee6a5d2f61
commit
e3a7e3a991
4 files changed
+8
-25
No files matched your search
+2
-2
@@ -27,7 +27,7 @@ import com.sap.sse.gwt.client.ErrorReporter;
|
|||||||
import com.sap.sse.gwt.client.async.AsyncActionsExecutor;
|
import com.sap.sse.gwt.client.async.AsyncActionsExecutor;
|
||||||
import com.sap.sse.gwt.client.player.Timer;
|
import com.sap.sse.gwt.client.player.Timer;
|
||||||
import com.sap.sse.gwt.client.shared.components.SettingsDialogComponent;
|
import com.sap.sse.gwt.client.shared.components.SettingsDialogComponent;
|
||||||
import com.sap.sse.gwt.client.shared.perspective.AbstractRootPerspectiveComposite;
|
import com.sap.sse.gwt.client.shared.perspective.AbstractPerspectiveComposite;
|
||||||
import com.sap.sse.gwt.client.shared.perspective.PerspectiveLifecycleWithAllSettings;
|
import com.sap.sse.gwt.client.shared.perspective.PerspectiveLifecycleWithAllSettings;
|
||||||
import com.sap.sse.gwt.client.useragent.UserAgentDetails;
|
import com.sap.sse.gwt.client.useragent.UserAgentDetails;
|
||||||
import com.sap.sse.security.ui.client.UserService;
|
import com.sap.sse.security.ui.client.UserService;
|
||||||
@@ -38,7 +38,7 @@ import com.sap.sse.security.ui.client.UserService;
|
|||||||
* @author Frank Mittag
|
* @author Frank Mittag
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class LeaderboardWithHeaderPerspective extends AbstractRootPerspectiveComposite<LeaderboardWithHeaderPerspectiveLifecycle,
|
public class LeaderboardWithHeaderPerspective extends AbstractPerspectiveComposite<LeaderboardWithHeaderPerspectiveLifecycle,
|
||||||
LeaderboardWithHeaderPerspectiveSettings> implements LeaderboardUpdateProvider {
|
LeaderboardWithHeaderPerspectiveSettings> implements LeaderboardUpdateProvider {
|
||||||
private final DockLayoutPanel dockPanel;
|
private final DockLayoutPanel dockPanel;
|
||||||
private final static int SAP_HEADER_HEIGHT = 75;
|
private final static int SAP_HEADER_HEIGHT = 75;
|
||||||
|
|||||||
+2
-2
@@ -91,7 +91,7 @@ import com.sap.sse.gwt.client.player.Timer;
|
|||||||
import com.sap.sse.gwt.client.shared.components.Component;
|
import com.sap.sse.gwt.client.shared.components.Component;
|
||||||
import com.sap.sse.gwt.client.shared.components.SettingsDialog;
|
import com.sap.sse.gwt.client.shared.components.SettingsDialog;
|
||||||
import com.sap.sse.gwt.client.shared.components.SettingsDialogComponent;
|
import com.sap.sse.gwt.client.shared.components.SettingsDialogComponent;
|
||||||
import com.sap.sse.gwt.client.shared.perspective.AbstractRootPerspectiveComposite;
|
import com.sap.sse.gwt.client.shared.perspective.AbstractPerspectiveComposite;
|
||||||
import com.sap.sse.gwt.client.shared.perspective.PerspectiveLifecycleWithAllSettings;
|
import com.sap.sse.gwt.client.shared.perspective.PerspectiveLifecycleWithAllSettings;
|
||||||
import com.sap.sse.gwt.client.useragent.UserAgentDetails;
|
import com.sap.sse.gwt.client.useragent.UserAgentDetails;
|
||||||
import com.sap.sse.gwt.shared.GwtHttpRequestUtils;
|
import com.sap.sse.gwt.shared.GwtHttpRequestUtils;
|
||||||
@@ -110,7 +110,7 @@ import com.sap.sse.security.ui.client.UserService;
|
|||||||
* @author Frank Mittag, Axel Uhl (d043530)
|
* @author Frank Mittag, Axel Uhl (d043530)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RaceBoardPanel extends AbstractRootPerspectiveComposite<RaceBoardPerspectiveLifecycle, RaceBoardPerspectiveSettings> implements LeaderboardUpdateListener, PopupPositionProvider, RequiresResize
|
public class RaceBoardPanel extends AbstractPerspectiveComposite<RaceBoardPerspectiveLifecycle, RaceBoardPerspectiveSettings> implements LeaderboardUpdateListener, PopupPositionProvider, RequiresResize
|
||||||
{
|
{
|
||||||
private final SailingServiceAsync sailingService;
|
private final SailingServiceAsync sailingService;
|
||||||
private final MediaServiceAsync mediaService;
|
private final MediaServiceAsync mediaService;
|
||||||
|
|||||||
+4
-9
@@ -51,15 +51,10 @@ public abstract class AbstractComponentContextWithSettingsStorage<PL extends Per
|
|||||||
|
|
||||||
final PerspectiveCompositeSettings<PS> newRootPerspectiveSettings;
|
final PerspectiveCompositeSettings<PS> newRootPerspectiveSettings;
|
||||||
if(parentPerspective == null) {
|
if(parentPerspective == null) {
|
||||||
if(component instanceof AbstractRootPerspectiveComposite) {
|
//root perspective is updating its perspective own settings
|
||||||
//root perspective is updating its perspective own settings
|
Perspective<PS> rootPerspective = (Perspective<PS>) component;
|
||||||
AbstractRootPerspectiveComposite<? extends PerspectiveLifecycle<PS>, PS> rootPerspective = (AbstractRootPerspectiveComposite<? extends PerspectiveLifecycle<PS>, PS>) component;
|
newRootPerspectiveSettings = (PerspectiveCompositeSettings<PS>)newDefaultSettings;
|
||||||
newRootPerspectiveSettings = (PerspectiveCompositeSettings<PS>)newDefaultSettings;
|
rootPerspective.getPerspectiveLifecycleWithAllSettings().setAllSettings(newRootPerspectiveSettings);
|
||||||
rootPerspective.getPerspectiveLifecycleWithAllSettings().setAllSettings(newRootPerspectiveSettings);
|
|
||||||
} else {
|
|
||||||
throw new IllegalStateException("Component must belong to a perspective when updating default settings");
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
newRootPerspectiveSettings = (PerspectiveCompositeSettings<PS>) updatePerspectiveLifecycleWithAllSettings(parentPerspective, component, newDefaultSettings);
|
newRootPerspectiveSettings = (PerspectiveCompositeSettings<PS>) updatePerspectiveLifecycleWithAllSettings(parentPerspective, component, newDefaultSettings);
|
||||||
}
|
}
|
||||||
|
|||||||
-12
@@ -1,12 +0,0 @@
|
|||||||
package com.sap.sse.gwt.client.shared.perspective;
|
|
||||||
|
|
||||||
import com.sap.sse.common.settings.Settings;
|
|
||||||
|
|
||||||
public abstract class AbstractRootPerspectiveComposite<PL extends PerspectiveLifecycle<PS>, PS extends Settings> extends AbstractPerspectiveComposite<PL, PS> {
|
|
||||||
|
|
||||||
public AbstractRootPerspectiveComposite(AbstractComponentContextWithSettingsStorage<PL, PS> componentContext,
|
|
||||||
PerspectiveLifecycleWithAllSettings<PL, PS> perspectiveLifecycleWithAllSettings) {
|
|
||||||
super(componentContext, perspectiveLifecycleWithAllSettings);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user