mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-28 06:47:15 +00:00
removed getPerspectiveName() and use getLocalizedShortName() instead
Change-Id: I372e7038c73e4d57c4600d0571246f94dfdc647b
This commit is contained in:
1 parent
2d424f005b
commit
000f6b10b0
6 files changed
+1
-20
No files matched your search
+1
-1
@@ -137,7 +137,7 @@ public class DesktopStartView extends Composite implements StartView {
|
||||
|
||||
private <P extends PerspectiveLifecycle<?,S,?>, S extends Settings> void openPerspectiveSettingsDialog(final PerspectiveLifecycleWithAllSettings<P,S> perspectiveLifecycleAndSettings) {
|
||||
PerspectiveCompositeLifecycleTabbedSettingsDialog<P,S> dialog = new PerspectiveCompositeLifecycleTabbedSettingsDialog<>(StringMessages.INSTANCE,
|
||||
perspectiveLifecycleAndSettings.getAllSettings(), perspectiveLifecycleAndSettings.getPerspectiveLifecycle().getPerspectiveName(),
|
||||
perspectiveLifecycleAndSettings.getAllSettings(), perspectiveLifecycleAndSettings.getPerspectiveLifecycle().getLocalizedShortName(),
|
||||
new DialogCallback<PerspectiveCompositeLifecycleSettings<P,S>>() {
|
||||
@Override
|
||||
public void ok(PerspectiveCompositeLifecycleSettings<P,S> newSettings) {
|
||||
|
||||
-5
@@ -96,11 +96,6 @@ public class LeaderboardWithHeaderPerspective extends AbstractPerspectiveComposi
|
||||
initWidget(dockPanel);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPerspectiveName() {
|
||||
return perspectiveLifecycle.getPerspectiveName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLocalizedShortName() {
|
||||
return perspectiveLifecycle.getLocalizedShortName();
|
||||
|
||||
-5
@@ -573,11 +573,6 @@ public class RaceBoardPanel extends AbstractPerspectiveComposite<RaceBoardPerspe
|
||||
return "";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPerspectiveName() {
|
||||
return perspectiveLifecycle.getPerspectiveName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Component<?>> getComponents() {
|
||||
return components;
|
||||
|
||||
-5
@@ -43,9 +43,4 @@ public abstract class AbstractPerspectiveLifecycle<P extends Perspective<Setting
|
||||
public Iterable<ComponentLifecycle<?,?,?>> getComponentLifecycles() {
|
||||
return componentLifecycles;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPerspectiveName() {
|
||||
return getLocalizedShortName();
|
||||
}
|
||||
}
|
||||
@@ -19,8 +19,6 @@ public interface Perspective<SettingsType extends Settings> extends Component<Se
|
||||
|
||||
void updateSettingsOfComponents(CompositeSettings settingsOfComponents);
|
||||
|
||||
String getPerspectiveName();
|
||||
|
||||
List<Component<?>> getComponents();
|
||||
|
||||
}
|
||||
-2
@@ -22,6 +22,4 @@ public interface PerspectiveLifecycle<P extends Perspective<S>, S extends Settin
|
||||
Iterable<ComponentLifecycle<?,?,?>> getComponentLifecycles();
|
||||
|
||||
CompositeLifecycleSettings getComponentLifecyclesAndDefaultSettings();
|
||||
|
||||
String getPerspectiveName();
|
||||
}
|
||||
Reference in new issue
Block a user