iter = myCalendars.iterator();
+ while (iter.hasNext()) {
+ String role = iter.next().getAccessRole();
+ if (!role.equals("owner") || !role.equals("writer"))
+ iter.remove();
}
+ return myCalendars;
}
+
}
\ No newline at end of file
diff --git a/ganttproject-builder/settings.gradle b/ganttproject-builder/settings.gradle
index dd50998004..9934f28060 100644
--- a/ganttproject-builder/settings.gradle
+++ b/ganttproject-builder/settings.gradle
@@ -1 +1 @@
-include ':..:ganttproject','..:biz.ganttproject.core','..:biz.ganttproject.impex.ical','..:biz.ganttproject.impex.msproject2','..:org.ganttproject.impex.htmlpdf','..:org.ganttproject.chart.pert','..:ganttproject-tester'
+include ':..:ganttproject','..:biz.ganttproject.core','..:biz.ganttproject.impex.ical','..:biz.ganttproject.impex.msproject2','..:org.ganttproject.impex.htmlpdf','..:org.ganttproject.chart.pert','..:ganttproject-tester','..:biz.ganttproject.impex.google'
diff --git a/ganttproject/build.gradle b/ganttproject/build.gradle
index f6379378e7..c96b488630 100644
--- a/ganttproject/build.gradle
+++ b/ganttproject/build.gradle
@@ -12,9 +12,6 @@ dependencies {
mavenDeps group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.8.1'
mavenDeps group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.1'
mavenDeps group: 'de.jensd', name: 'fontawesomefx-fontawesome', version: '4.6.3', transitive: true
- mavenDeps group: 'com.google.api-client', name: 'google-api-client', version: '1.22.0'
- mavenDeps group: 'com.google.oauth-client', name: 'google-oauth-client-jetty', version: '1.22.0'
- mavenDeps group: 'com.google.apis', name: 'google-api-services-calendar', version: 'v3-rev237-1.22.0'
}
diff --git a/ganttproject/data/resources/language/i18n.properties b/ganttproject/data/resources/language/i18n.properties
index 89e126b8dc..3e8b682b05 100644
--- a/ganttproject/data/resources/language/i18n.properties
+++ b/ganttproject/data/resources/language/i18n.properties
@@ -177,6 +177,7 @@ impex.csv.description = Comma-Separated-Values file
impex.csv.error.parse_date = Failed to parse date {0}. Date is expected to have format {1} (e.g. today is {2}). You can change date format in the settings dialog
impex.csv.importErrorReport = The following problems were detected during import. Please note that some of them may be harmlessThis report has been written to the log file. If you send it to GanttProject developers, please attach your CSV file
impex.html.description = HTML report
+impex.google.description = Google Export
impex.ics = iCalendar file
impex.image.description = Raster image file
impex.msproject.description = Microsoft Project file
@@ -374,8 +375,6 @@ optionPage.impex.ftp.description
#optionPage.impex.ftp.description = Configure access to your FTP-server. This data is used to publish your projects to your project to your web-server. If you specify a subdirectory, it must exist on the server.
optionPage.impex.ftp.label = FTP
optionPage.impex.ftp.title = FTP server settings
-optionPage.impex.google.label = Google Export
-optionPage.impex.google.title = Google Export settings page
optionPage.project.basic.label = Name and description
optionPage.project.basic.title = Basic project settings
optionPage.project.calendar.label = Calendar
@@ -570,7 +569,7 @@ separatedFields = Columns delimiter
separator = Separator
settings.app = $Settings...
settings.app.description = Show GanttProject settings
-settings.app.pageOrder = ui.general,pageGroup.chart,ganttChart,resourceChart,pageGroup.export,impex.ftp,impex.csv,storage.webdav,impex.google
+settings.app.pageOrder = ui.general,pageGroup.chart,ganttChart,resourceChart,pageGroup.export,impex.ftp,impex.csv,storage.webdav
settings.project.pageOrder = project.basic,project.calendar,project.roles
shape = Shape
shortDescription = Description
diff --git a/ganttproject/plugin.xml b/ganttproject/plugin.xml
index 6224bff578..faf6905d9f 100644
--- a/ganttproject/plugin.xml
+++ b/ganttproject/plugin.xml
@@ -81,40 +81,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -154,7 +120,6 @@
-