Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Ufimtsev2018-01-03 21:46:57 +0000
committerLeo Ufimtsev2018-01-03 21:46:57 +0000
commit0c832f172161d6204e7bde3004248295dff81492 (patch)
tree8d07a38973a91f7f5b38f5cecb65983bebde0f17
parent6b5a2bc28086a89bbeb698524d34f1666fb1fbff (diff)
downloadeclipse.platform.swt-I20180103-2000.tar.gz
eclipse.platform.swt-I20180103-2000.tar.xz
eclipse.platform.swt-I20180103-2000.zip
Bug 529352 (swtGdbusBindingsInCommonCode) Adding minor permission fixesI20180103-2000
- Making some items private that should not be public. - Adding a no ref note. Verified against jUnits. Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=529352 Change-Id: Ib9eccca0f9f78ac8b0de1e0bb6b0f7666f99ab08 Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebkitGDBus.java25
1 files changed, 21 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebkitGDBus.java b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebkitGDBus.java
index 3450573a37..de2dc641ea 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebkitGDBus.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebkitGDBus.java
@@ -1,9 +1,23 @@
+/*******************************************************************************
+ * Copyright (c) 2017 Red Hat and others. All rights reserved.
+ * The contents of this file are made available under the terms
+ * of the GNU Lesser General Public License (LGPL) Version 2.1 that
+ * accompanies this distribution (lgpl-v21.txt). The LGPL is also
+ * available at http://www.gnu.org/licenses/lgpl.html. If the version
+ * of the LGPL at http://www.gnu.org is different to the version of
+ * the LGPL accompanying this distribution and there is any conflict
+ * between the two license versions, the terms of the LGPL accompanying
+ * this distribution shall govern.
+ *
+ * Contributors:
+ * Red Hat - initial API and implementation
+ *******************************************************************************/
+
package org.eclipse.swt.browser;
import org.eclipse.swt.*;
import org.eclipse.swt.internal.*;
import org.eclipse.swt.internal.gtk.*;
-import org.eclipse.swt.internal.webkit.*;
/**
* Logic for Webkit to interact with it's Webkit extension via GDBus.
@@ -71,9 +85,9 @@ class WebkitGDBus {
* To get around this, we use magic numbers to represent special cases.
* Currently this is specific to Webkit to deal with Javascript data type conversions.
* @category gdbus */
- public static final byte SWT_DBUS_MAGIC_NUMBER_EMPTY_ARRAY = 101;
+ private static final byte SWT_DBUS_MAGIC_NUMBER_EMPTY_ARRAY = 101;
/** @category gdbus */
- public static final byte SWT_DBUS_MAGIC_NUMBER_NULL = 48;
+ private static final byte SWT_DBUS_MAGIC_NUMBER_NULL = 48;
/** GDBusNodeInfo */
@@ -97,6 +111,8 @@ class WebkitGDBus {
}
static private boolean initialized;
+
+ /** This method is not intended to be referenced by clients. Internal class. */
static void init(String uniqueId) {
if (initialized)
return;
@@ -116,7 +132,8 @@ class WebkitGDBus {
}
}
- static void teardown_gdbus() {
+ @SuppressWarnings("unused")
+ private static void teardown_gdbus() {
// Currently GDBus is persistent across browser instances.
// If ever needed, gdbus can be disposed via:
// g_bus_unown_name (owner_id); // owner_id would need to be made global

Back to the top