From e369b0cc59d4cde8aba065ea031195299e46b091 Mon Sep 17 00:00:00 2001 From: leewyatt Date: Thu, 21 Nov 2024 14:04:53 +0900 Subject: [PATCH] Change DataRepository2 references to DataRepository Renamed all instances of DataRepository2 to DataRepository across the project. This change aligns with the recent updates in the jfxcentral-data project, where DataRepository2 was deprecated and renamed to DataRepository. This update ensures consistency with the latest project structure and removes references to the now-obsolete DataRepository2. --- .../dlsc/jfxcentral2/app/JFXCentral2App.java | 6 ++--- .../jfxcentral2/app/JFXCentral2MobileApp.java | 4 ++-- .../jfxcentral2/app/RepositoryManager.java | 4 ++-- .../dlsc/jfxcentral2/app/TrayIconManager.java | 4 ++-- .../app/pages/DetailsPageBase.java | 12 +++++----- .../app/pages/LinksOfTheWeekPage.java | 8 +++---- .../dlsc/jfxcentral2/app/pages/StartPage.java | 6 ++--- .../dlsc/jfxcentral2/app/pages/TeamPage.java | 4 ++-- .../app/pages/category/BlogsCategoryPage.java | 4 ++-- .../app/pages/category/BooksCategoryPage.java | 4 ++-- .../pages/category/CompaniesCategoryPage.java | 4 ++-- .../category/DocumentationCategoryPage.java | 4 ++-- .../pages/category/DownloadsCategoryPage.java | 4 ++-- .../category/LearnJavaFXCategoryPage.java | 4 ++-- .../category/LearnMobileCategoryPage.java | 4 ++-- .../LearnRaspberryPiCategoryPage.java | 4 ++-- .../pages/category/LibrariesCategoryPage.java | 4 ++-- .../pages/category/PeopleCategoryPage.java | 4 ++-- .../pages/category/ShowcasesCategoryPage.java | 4 ++-- .../app/pages/category/TipCategoryPage.java | 4 ++-- .../app/pages/category/ToolsCategoryPage.java | 4 ++-- .../pages/category/TutorialsCategoryPage.java | 4 ++-- .../pages/category/UtilitiesCategoryPage.java | 4 ++-- .../pages/category/VideosCategoryPage.java | 4 ++-- .../app/service/LoadPullRequestsService.java | 4 ++-- .../app/utils/RepositoryUpdater.java | 4 ++-- .../components/FeaturesContainer.java | 22 +++++++++---------- .../components/LearnPaginationBox.java | 8 +++---- .../components/LibraryPreviewBox.java | 4 ++-- .../components/LinksOfTheWeekView.java | 6 ++--- .../components/MemberCellView.java | 4 ++-- .../components/PacksIconsView.java | 4 ++-- .../jfxcentral2/components/TopMenuBar.java | 4 ++-- .../components/WeekLinksLiteView.java | 4 ++-- .../components/detailsbox/DetailsBoxBase.java | 6 ++--- .../detailsbox/LibraryCoordinatesBox.java | 4 ++-- .../filters/DocumentationFilterView.java | 4 ++-- .../components/filters/LearnFilterView.java | 8 +++---- .../filters/ShowcaseFilterView.java | 4 ++-- .../components/filters/VideosFilterView.java | 4 ++-- .../headers/PersonDetailHeader.java | 4 ++-- .../overviewbox/BlogOverviewBox.java | 4 ++-- .../overviewbox/BookOverviewBox.java | 6 ++--- .../overviewbox/CompanyOverviewBox.java | 6 ++--- .../overviewbox/DownloadOverviewBox.java | 6 ++--- .../overviewbox/LearnOverviewBox.java | 14 ++++++------ .../overviewbox/LibraryOverviewBox.java | 6 ++--- .../overviewbox/ShowcaseOverviewBox.java | 6 ++--- .../overviewbox/TipOverviewBox.java | 6 ++--- .../overviewbox/ToolOverviewBox.java | 6 ++--- .../overviewbox/TutorialOverviewBox.java | 6 ++--- .../overviewbox/UtilityOverviewBox.java | 4 ++-- .../overviewbox/VideoOverviewBox.java | 4 ++-- .../components/tiles/LearnTileView.java | 4 ++-- .../components/tiles/PersonTileView.java | 4 ++-- .../components/tiles/SimpleTileView.java | 4 ++-- .../topcontent/TopContentContainerView.java | 18 +++++++-------- .../jfxcentral2/utils/IkonliPackUtil.java | 4 ++-- .../utils/QuickLinksGenerator.java | 6 ++--- .../mobile/components/LearnListCell.java | 4 ++-- .../mobile/components/LearnPagination.java | 10 ++++----- .../mobile/components/LinkedObjectsBox.java | 4 ++-- .../mobile/components/LotwPagination.java | 4 ++-- .../components/MobileBlogOverviewBox.java | 4 ++-- .../components/MobilePersonDetailView.java | 4 ++-- .../mobile/components/MobileSearchView.java | 6 ++--- .../mobile/home/CategoryPreviewView.java | 4 ++-- .../mobile/home/WeekLinksView.java | 4 ++-- .../mobile/pages/MobileHomePage.java | 16 +++++++------- .../pages/MobileLinksOfTheWeekPage.java | 4 ++-- .../category/MobileBlogsCategoryPage.java | 4 ++-- .../category/MobileBooksCategoryPage.java | 4 ++-- .../category/MobileCompaniesCategoryPage.java | 4 ++-- .../mobile/pages/category/MobileDocPage.java | 4 ++-- .../MobileLearnJavaFXCategoryPage.java | 4 ++-- .../MobileLearnMobileCategoryPage.java | 4 ++-- .../MobileLearnRaspberryPiCategoryPage.java | 4 ++-- .../category/MobileLibrariesCategoryPage.java | 4 ++-- .../category/MobilePeopleCategoryPage.java | 8 +++---- .../category/MobileShowcasesCategoryPage.java | 4 ++-- .../pages/category/MobileTipCategoryPage.java | 4 ++-- .../category/MobileToolsCategoryPage.java | 4 ++-- .../category/MobileTutorialsCategoryPage.java | 4 ++-- .../category/MobileVideosCategoryPage.java | 4 ++-- .../pages/details/MobileDetailsPageBase.java | 4 ++-- .../pages/details/MobileLearnDetailsPage.java | 14 ++++++------ .../dlsc/jfxcentral2/demo/HelloTeamView.java | 4 ++-- .../demo/components/HelloDownloadsBox.java | 4 ++-- .../demo/components/HelloIkonGridView.java | 4 ++-- .../components/HelloIkonPackTileView.java | 4 ++-- .../demo/components/HelloLibraryTileView.java | 4 ++-- .../demo/components/HelloPackGridView.java | 4 ++-- .../demo/components/HelloTopContentView.java | 4 ++-- .../devtools/HelloSVGPathExtractorView.java | 4 ++-- .../demo/mobile/HelloCategoryPreviewView.java | 10 ++++----- 95 files changed, 254 insertions(+), 254 deletions(-) diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/JFXCentral2App.java b/app/src/main/java/com/dlsc/jfxcentral2/app/JFXCentral2App.java index 2f950e25..161173fe 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/JFXCentral2App.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/JFXCentral2App.java @@ -1,7 +1,7 @@ package com.dlsc.jfxcentral2.app; import com.dlsc.gemsfx.util.StageManager; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.Blog; import com.dlsc.jfxcentral.data.model.Book; import com.dlsc.jfxcentral.data.model.Company; @@ -328,7 +328,7 @@ private Response createResponse(Request request, Class cl int index = request.getPath().lastIndexOf("/"); if (index > 0) { String id = request.getPath().substring(index + 1).trim(); - if (!DataRepository2.getInstance().isValidId(clazz, id)) { + if (!DataRepository.getInstance().isValidId(clazz, id)) { return Response.view(new ErrorPage(size, request)); } @@ -360,7 +360,7 @@ private Route createIconPackOrDetailRoute(String path) { String ikonliPackId = parts[1]; String iconDescription = parts[2]; - return DataRepository2.getInstance().getIkonliPackById(ikonliPackId) + return DataRepository.getInstance().getIkonliPackById(ikonliPackId) .flatMap(ikonliPack -> IkonliPackUtil.getInstance().getIkon(ikonliPack, iconDescription) .map(ikon -> { IconInfo iconInfo = new IconInfoBuilder(ikon, ikonliPack.getName(), ikonliPackId).build(); diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/JFXCentral2MobileApp.java b/app/src/main/java/com/dlsc/jfxcentral2/app/JFXCentral2MobileApp.java index a4781c04..17f378a6 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/JFXCentral2MobileApp.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/JFXCentral2MobileApp.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.Blog; import com.dlsc.jfxcentral.data.model.Book; import com.dlsc.jfxcentral.data.model.Company; @@ -220,7 +220,7 @@ private MobileRoute createCategoryOrDetailRoute(String path, Class 0 && clazz != null) { String id = url.substring(index + 1).trim(); - if (!DataRepository2.getInstance().isValidId(clazz, id)) { + if (!DataRepository.getInstance().isValidId(clazz, id)) { return MobileResponse.view(url, new Label("Error: 404")); } return MobileResponse.view(url, detailedResponse.call(id)); diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/RepositoryManager.java b/app/src/main/java/com/dlsc/jfxcentral2/app/RepositoryManager.java index 21c2e29e..2265d4e3 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/RepositoryManager.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/RepositoryManager.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral2.utils.LOGGER; import com.dlsc.jfxcentral2.utils.OSUtil; import javafx.application.Platform; @@ -62,7 +62,7 @@ public static void updateRepository(ProgressMonitor monitor) { } private static File getRepositoryDirectory() { - return DataRepository2.getRepositoryDirectory(); + return DataRepository.getInstance().getRepositoryDirectory(); } public static boolean isFirstTimeSetup() { diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/TrayIconManager.java b/app/src/main/java/com/dlsc/jfxcentral2/app/TrayIconManager.java index 48c368ed..4a9b7f69 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/TrayIconManager.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/TrayIconManager.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.Documentation; import com.dlsc.jfxcentral.data.model.ModelObject; import com.dlsc.jfxcentral2.utils.LOGGER; @@ -76,7 +76,7 @@ public void refresh() { Menu utilities = new Menu("Utilities"); Menu documentation = new Menu("Documentation"); - DataRepository2 repository = DataRepository2.getInstance(); + DataRepository repository = DataRepository.getInstance(); repository.getTools().stream().sorted(Comparator.comparing(ModelObject::getName)).forEach(mo -> createMenuItem(tools, mo)); repository.getPeople().stream().sorted(Comparator.comparing(ModelObject::getName)).forEach(mo -> createMenuItem(people, mo)); diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/DetailsPageBase.java b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/DetailsPageBase.java index 73444841..56a78154 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/DetailsPageBase.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/DetailsPageBase.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app.pages; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.Blog; import com.dlsc.jfxcentral.data.model.Book; import com.dlsc.jfxcentral.data.model.Company; @@ -51,7 +51,7 @@ public abstract class DetailsPageBase extends PageBase { public DetailsPageBase(ObjectProperty size, Class clazz, String itemId) { super(size, Mode.DARK); - setItem(DataRepository2.getInstance().getByID(clazz, itemId)); + setItem(DataRepository.getInstance().getByID(clazz, itemId)); } public T getItem() { @@ -120,7 +120,7 @@ private void maybeAddBox(ModelObject modelObject, Class return; } - List linkedObjects = DataRepository2.getInstance().getLinkedObjects(modelObject, clazz); + List linkedObjects = DataRepository.getInstance().getLinkedObjects(modelObject, clazz); if (!linkedObjects.isEmpty()) { DetailsBoxBase box = boxSupplier.get(); box.getItems().setAll(linkedObjects); @@ -130,9 +130,9 @@ private void maybeAddBox(ModelObject modelObject, Class } private void addLearnBox(ModelObject modelObject, List> boxList) { - List fxList = DataRepository2.getInstance().getLinkedObjects(modelObject, LearnJavaFX.class); - List mobileList = DataRepository2.getInstance().getLinkedObjects(modelObject, LearnMobile.class); - List learnRaspberryPiList = DataRepository2.getInstance().getLinkedObjects(modelObject, LearnRaspberryPi.class); + List fxList = DataRepository.getInstance().getLinkedObjects(modelObject, LearnJavaFX.class); + List mobileList = DataRepository.getInstance().getLinkedObjects(modelObject, LearnMobile.class); + List learnRaspberryPiList = DataRepository.getInstance().getLinkedObjects(modelObject, LearnRaspberryPi.class); if (!fxList.isEmpty() || !mobileList.isEmpty() || !learnRaspberryPiList.isEmpty()) { LearnDetailBox box = new LearnDetailBox(); box.getItems().setAll(fxList); diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/LinksOfTheWeekPage.java b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/LinksOfTheWeekPage.java index 8e24a1ed..2c52f810 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/LinksOfTheWeekPage.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/LinksOfTheWeekPage.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app.pages; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.LinksOfTheWeek; import com.dlsc.jfxcentral2.components.DetailsContentPane; import com.dlsc.jfxcentral2.components.LinksOfTheWeekView; @@ -67,7 +67,7 @@ public Node content() { // links of the week view LinksOfTheWeekView linksOfTheWeekView = new LinksOfTheWeekView(); - linksOfTheWeekView.getLinksOfTheWeeks().setAll(DataRepository2.getInstance().getLinksOfTheWeek()); + linksOfTheWeekView.getLinksOfTheWeeks().setAll(DataRepository.getInstance().getLinksOfTheWeek()); linksOfTheWeekView.sizeProperty().bind(sizeProperty()); // this is a category page, but we still need to use the details content pane for layout purposes @@ -130,7 +130,7 @@ private HBox createPaginationBox(LinksOfTheWeekView linksOfTheWeekView) { @Override protected ObservableList getCategoryItems() { - return FXCollections.observableArrayList(DataRepository2.getInstance().getLinksOfTheWeek()); + return FXCollections.observableArrayList(DataRepository.getInstance().getLinksOfTheWeek()); } @Override @@ -144,7 +144,7 @@ protected SearchFilterView createSearchFilterView() { } protected List createMenuItems(LinksOfTheWeekView linksOfTheWeekView) { - List linksOfTheWeek = DataRepository2.getInstance().getLinksOfTheWeek(); + List linksOfTheWeek = DataRepository.getInstance().getLinksOfTheWeek(); List weeks = new ArrayList<>(linksOfTheWeek); return weeks diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/StartPage.java b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/StartPage.java index 99c9ffbb..1982fdb8 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/StartPage.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/StartPage.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app.pages; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.LinksOfTheWeek; import com.dlsc.jfxcentral2.components.HomePageTopView; import com.dlsc.jfxcentral2.components.Mode; @@ -38,7 +38,7 @@ public Node content() { homePageTopView.sizeProperty().bind(sizeProperty()); // links of the Week - List linksOfTheWeek = DataRepository2.getInstance().getLinksOfTheWeek(); + List linksOfTheWeek = DataRepository.getInstance().getLinksOfTheWeek(); WeekLinksLiteView weekLinksLiteView = new WeekLinksLiteView(); weekLinksLiteView.sizeProperty().bind(sizeProperty()); @@ -56,7 +56,7 @@ public Node content() { // video gallery VideoGalleryView videoGallery = new VideoGalleryView(); videoGallery.sizeProperty().bind(sizeProperty()); - videoGallery.getVideos().setAll(randomSubList(DataRepository2.getInstance().getVideos(), 12)); + videoGallery.getVideos().setAll(randomSubList(DataRepository.getInstance().getVideos(), 12)); videoGallery.blockingProperty().addListener(it -> setBlocking(videoGallery.isBlocking())); videoGallery.onCloseGlassPaneProperty().addListener(it -> setOnCloseGlassPane(videoGallery.getOnCloseGlassPane())); return wrapContent(homePageTopView, weekLinksLiteView, websiteChangesView, videoGallery); diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/TeamPage.java b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/TeamPage.java index eeeea76c..d67bbb9e 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/TeamPage.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/TeamPage.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app.pages; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral2.components.FeaturesContainer; import com.dlsc.jfxcentral2.components.Mode; import com.dlsc.jfxcentral2.components.StripView; @@ -39,7 +39,7 @@ public Node content() { // team view TeamView teamView = new TeamView(); teamView.sizeProperty().bind(sizeProperty()); - teamView.getMembers().setAll(DataRepository2.getInstance().getMembers()); + teamView.getMembers().setAll(DataRepository.getInstance().getMembers()); // features FeaturesContainer featuresContainer = new FeaturesContainer(); diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/BlogsCategoryPage.java b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/BlogsCategoryPage.java index 6dd0e94b..f1fd8130 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/BlogsCategoryPage.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/BlogsCategoryPage.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app.pages.category; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.Blog; import com.dlsc.jfxcentral2.app.pages.CategoryPageBase; import com.dlsc.jfxcentral2.components.filters.BlogsFilterView; @@ -63,6 +63,6 @@ protected SearchFilterView createSearchFilterView() { @Override protected ObservableList getCategoryItems() { - return FXCollections.observableArrayList(DataRepository2.getInstance().getBlogs()); + return FXCollections.observableArrayList(DataRepository.getInstance().getBlogs()); } } diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/BooksCategoryPage.java b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/BooksCategoryPage.java index 3af83cda..b694ae0b 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/BooksCategoryPage.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/BooksCategoryPage.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app.pages.category; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.Book; import com.dlsc.jfxcentral2.app.pages.CategoryPageBase; import com.dlsc.jfxcentral2.components.filters.BooksFilterView; @@ -61,6 +61,6 @@ protected SearchFilterView createSearchFilterView() { @Override protected ObservableList getCategoryItems() { - return FXCollections.observableArrayList(DataRepository2.getInstance().getBooks()); + return FXCollections.observableArrayList(DataRepository.getInstance().getBooks()); } } diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/CompaniesCategoryPage.java b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/CompaniesCategoryPage.java index db9e9cc9..4a81a9fd 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/CompaniesCategoryPage.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/CompaniesCategoryPage.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app.pages.category; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.Company; import com.dlsc.jfxcentral2.app.pages.CategoryPageBase; import com.dlsc.jfxcentral2.components.filters.CompaniesFilterView; @@ -58,6 +58,6 @@ protected SearchFilterView createSearchFilterView() { @Override protected ObservableList getCategoryItems() { - return FXCollections.observableArrayList(DataRepository2.getInstance().getCompanies()); + return FXCollections.observableArrayList(DataRepository.getInstance().getCompanies()); } } diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/DocumentationCategoryPage.java b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/DocumentationCategoryPage.java index 85877d2c..4900175b 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/DocumentationCategoryPage.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/DocumentationCategoryPage.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app.pages.category; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.Documentation; import com.dlsc.jfxcentral2.app.pages.CategoryPageBase; import com.dlsc.jfxcentral2.components.filters.DocumentationFilterView; @@ -63,6 +63,6 @@ protected SearchFilterView createSearchFilterView() { @Override protected ObservableList getCategoryItems() { - return FXCollections.observableArrayList(DataRepository2.getInstance().getDocumentation()); + return FXCollections.observableArrayList(DataRepository.getInstance().getDocumentation()); } } diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/DownloadsCategoryPage.java b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/DownloadsCategoryPage.java index 22fcf903..d94ad357 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/DownloadsCategoryPage.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/DownloadsCategoryPage.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app.pages.category; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.Download; import com.dlsc.jfxcentral2.app.pages.CategoryPageBase; import com.dlsc.jfxcentral2.components.DownloadsBox; @@ -63,7 +63,7 @@ protected SearchFilterView createSearchFilterView() { @Override protected ObservableList getCategoryItems() { - return FXCollections.observableArrayList(DataRepository2.getInstance().getDownloads()); + return FXCollections.observableArrayList(DataRepository.getInstance().getDownloads()); } @Override diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/LearnJavaFXCategoryPage.java b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/LearnJavaFXCategoryPage.java index 7430e3b7..06f3fe6a 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/LearnJavaFXCategoryPage.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/LearnJavaFXCategoryPage.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app.pages.category; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.Learn; import com.dlsc.jfxcentral2.model.Size; import javafx.beans.property.ObjectProperty; @@ -35,7 +35,7 @@ protected String getCategoryDescription() { @Override protected ObservableList getCategoryItems() { - return FXCollections.observableArrayList(DataRepository2.getInstance().getLearnJavaFX()); + return FXCollections.observableArrayList(DataRepository.getInstance().getLearnJavaFX()); } } diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/LearnMobileCategoryPage.java b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/LearnMobileCategoryPage.java index 541652c8..c758b9a9 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/LearnMobileCategoryPage.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/LearnMobileCategoryPage.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app.pages.category; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.Learn; import com.dlsc.jfxcentral2.model.Size; import javafx.beans.property.ObjectProperty; @@ -36,6 +36,6 @@ protected String getCategoryDescription() { @Override protected ObservableList getCategoryItems() { - return FXCollections.observableArrayList(DataRepository2.getInstance().getLearnMobile()); + return FXCollections.observableArrayList(DataRepository.getInstance().getLearnMobile()); } } diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/LearnRaspberryPiCategoryPage.java b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/LearnRaspberryPiCategoryPage.java index 0f9edb79..10b6fe88 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/LearnRaspberryPiCategoryPage.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/LearnRaspberryPiCategoryPage.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app.pages.category; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.Learn; import com.dlsc.jfxcentral2.model.Size; import javafx.beans.property.ObjectProperty; @@ -36,6 +36,6 @@ protected String getCategoryDescription() { @Override protected ObservableList getCategoryItems() { - return FXCollections.observableArrayList(DataRepository2.getInstance().getLearnRaspberryPi()); + return FXCollections.observableArrayList(DataRepository.getInstance().getLearnRaspberryPi()); } } diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/LibrariesCategoryPage.java b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/LibrariesCategoryPage.java index 9a2c11cd..d62963bf 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/LibrariesCategoryPage.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/LibrariesCategoryPage.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app.pages.category; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.Library; import com.dlsc.jfxcentral2.app.pages.CategoryPageBase; import com.dlsc.jfxcentral2.components.filters.LibrariesFilterView; @@ -67,6 +67,6 @@ protected SearchFilterView createSearchFilterView() { @Override protected ObservableList getCategoryItems() { - return FXCollections.observableArrayList(DataRepository2.getInstance().getLibraries()); + return FXCollections.observableArrayList(DataRepository.getInstance().getLibraries()); } } diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/PeopleCategoryPage.java b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/PeopleCategoryPage.java index e5abec79..967c2258 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/PeopleCategoryPage.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/PeopleCategoryPage.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app.pages.category; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.Person; import com.dlsc.jfxcentral2.app.pages.CategoryPageBase; import com.dlsc.jfxcentral2.components.filters.PeopleFilterView; @@ -77,6 +77,6 @@ protected SearchFilterView createSearchFilterView() { @Override protected ObservableList getCategoryItems() { - return FXCollections.observableArrayList(DataRepository2.getInstance().getPeople()); + return FXCollections.observableArrayList(DataRepository.getInstance().getPeople()); } } diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/ShowcasesCategoryPage.java b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/ShowcasesCategoryPage.java index 77c90f14..5fd45e14 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/ShowcasesCategoryPage.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/ShowcasesCategoryPage.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app.pages.category; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.RealWorldApp; import com.dlsc.jfxcentral2.app.pages.CategoryPageBase; import com.dlsc.jfxcentral2.components.filters.SearchFilterView; @@ -58,6 +58,6 @@ protected SearchFilterView createSearchFilterView() { @Override protected ObservableList getCategoryItems() { - return FXCollections.observableArrayList(DataRepository2.getInstance().getRealWorldApps()); + return FXCollections.observableArrayList(DataRepository.getInstance().getRealWorldApps()); } } diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/TipCategoryPage.java b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/TipCategoryPage.java index 31dfe73c..aeb3eabe 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/TipCategoryPage.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/TipCategoryPage.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app.pages.category; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.Tip; import com.dlsc.jfxcentral2.app.pages.CategoryPageBase; import com.dlsc.jfxcentral2.components.filters.SearchFilterView; @@ -58,6 +58,6 @@ protected SearchFilterView createSearchFilterView() { @Override protected ObservableList getCategoryItems() { - return FXCollections.observableArrayList(DataRepository2.getInstance().getTips()); + return FXCollections.observableArrayList(DataRepository.getInstance().getTips()); } } diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/ToolsCategoryPage.java b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/ToolsCategoryPage.java index d9173d7a..8f8fc834 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/ToolsCategoryPage.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/ToolsCategoryPage.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app.pages.category; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.Tool; import com.dlsc.jfxcentral2.app.pages.CategoryPageBase; import com.dlsc.jfxcentral2.components.filters.SearchFilterView; @@ -63,6 +63,6 @@ protected SearchFilterView createSearchFilterView() { @Override protected ObservableList getCategoryItems() { - return FXCollections.observableArrayList(DataRepository2.getInstance().getTools()); + return FXCollections.observableArrayList(DataRepository.getInstance().getTools()); } } diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/TutorialsCategoryPage.java b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/TutorialsCategoryPage.java index 4d697cb5..89fb6ff0 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/TutorialsCategoryPage.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/TutorialsCategoryPage.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app.pages.category; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.Tutorial; import com.dlsc.jfxcentral2.app.pages.CategoryPageBase; import com.dlsc.jfxcentral2.components.filters.SearchFilterView; @@ -58,6 +58,6 @@ protected SearchFilterView createSearchFilterView() { @Override protected ObservableList getCategoryItems() { - return FXCollections.observableArrayList(DataRepository2.getInstance().getTutorials()); + return FXCollections.observableArrayList(DataRepository.getInstance().getTutorials()); } } diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/UtilitiesCategoryPage.java b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/UtilitiesCategoryPage.java index 8a11a198..c8fb85e4 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/UtilitiesCategoryPage.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/UtilitiesCategoryPage.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app.pages.category; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.Utility; import com.dlsc.jfxcentral2.app.pages.CategoryPageBase; import com.dlsc.jfxcentral2.components.filters.SearchFilterView; @@ -66,7 +66,7 @@ protected SearchFilterView createSearchFilterView() { @Override protected ObservableList getCategoryItems() { - return FXCollections.observableArrayList(DataRepository2.getInstance().getUtilities()) + return FXCollections.observableArrayList(DataRepository.getInstance().getUtilities()) .sorted((o1, o2) -> Boolean.compare(o2.isOnlineSupported(), o1.isOnlineSupported())); } } diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/VideosCategoryPage.java b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/VideosCategoryPage.java index d6294575..c3790abe 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/VideosCategoryPage.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/pages/category/VideosCategoryPage.java @@ -1,6 +1,6 @@ package com.dlsc.jfxcentral2.app.pages.category; -import com.dlsc.jfxcentral.data.DataRepository2; +import com.dlsc.jfxcentral.data.DataRepository; import com.dlsc.jfxcentral.data.model.Video; import com.dlsc.jfxcentral2.app.pages.CategoryPageBase; import com.dlsc.jfxcentral2.components.filters.SearchFilterView; @@ -69,6 +69,6 @@ protected Callback> getTileViewProvider() { @Override protected ObservableList