summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshingil.kang <shingil.kang@samsung.com>2013-04-10 11:24:53 +0900
committershingil.kang <shingil.kang@samsung.com>2013-04-10 11:24:53 +0900
commit5d9524b83f961ceb911387f1eccdcc43c4445215 (patch)
tree0f2b0197835d2589303007a43b17198254a64643
parent5c7b748a9cc92a6e68d385d2234d315ae73077cb (diff)
downloadcommon-eplugin-5d9524b83f961ceb911387f1eccdcc43c4445215.tar.gz
common-eplugin-5d9524b83f961ceb911387f1eccdcc43c4445215.tar.bz2
common-eplugin-5d9524b83f961ceb911387f1eccdcc43c4445215.zip
[Title] Added Tizen IDE shortcuts pdf file and menu
[Desc.] [Issue]
-rwxr-xr-xorg.tizen.common.feature/feature.xml7
-rw-r--r--org.tizen.common.ui/.classpath7
-rw-r--r--org.tizen.common.ui/.project28
-rw-r--r--org.tizen.common.ui/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--org.tizen.common.ui/META-INF/MANIFEST.MF11
-rw-r--r--org.tizen.common.ui/OSGI-INF/l10n/bundle.properties2
-rw-r--r--org.tizen.common.ui/build.properties7
-rw-r--r--org.tizen.common.ui/icons/16_TIZEN_SDK_icon.pngbin0 -> 3614 bytes
-rw-r--r--org.tizen.common.ui/plugin.xml37
-rw-r--r--org.tizen.common.ui/src/org/tizen/common/ui/Activator.java74
-rw-r--r--org.tizen.common.ui/src/org/tizen/common/ui/commands/DownloadCardCommandHandler.java56
-rwxr-xr-xorg.tizen.common/src/org/tizen/common/core/application/InstallPathConfig.java7
-rw-r--r--package/addingFiles/documents/shortcuts.pdfbin0 -> 346760 bytes
-rw-r--r--package/changelog3
-rw-r--r--package/pkginfo.manifest4
15 files changed, 247 insertions, 3 deletions
diff --git a/org.tizen.common.feature/feature.xml b/org.tizen.common.feature/feature.xml
index 03ff740d2..33e370420 100755
--- a/org.tizen.common.feature/feature.xml
+++ b/org.tizen.common.feature/feature.xml
@@ -70,4 +70,11 @@
version="0.0.0"
unpack="false"/>
+ <plugin
+ id="org.tizen.common.ui"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
</feature>
diff --git a/org.tizen.common.ui/.classpath b/org.tizen.common.ui/.classpath
new file mode 100644
index 000000000..ad32c83a7
--- /dev/null
+++ b/org.tizen.common.ui/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/org.tizen.common.ui/.project b/org.tizen.common.ui/.project
new file mode 100644
index 000000000..8cc1453cd
--- /dev/null
+++ b/org.tizen.common.ui/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.tizen.common.ui</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/org.tizen.common.ui/.settings/org.eclipse.jdt.core.prefs b/org.tizen.common.ui/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 000000000..c537b6306
--- /dev/null
+++ b/org.tizen.common.ui/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
diff --git a/org.tizen.common.ui/META-INF/MANIFEST.MF b/org.tizen.common.ui/META-INF/MANIFEST.MF
new file mode 100644
index 000000000..6d9b82d27
--- /dev/null
+++ b/org.tizen.common.ui/META-INF/MANIFEST.MF
@@ -0,0 +1,11 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %Bundle-Name
+Bundle-SymbolicName: org.tizen.common.ui;singleton:=true
+Bundle-Version: 2.0.0.qualifier
+Bundle-Activator: org.tizen.common.ui.Activator
+Bundle-Vendor: %Bundle-Vendor
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.tizen.common
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
diff --git a/org.tizen.common.ui/OSGI-INF/l10n/bundle.properties b/org.tizen.common.ui/OSGI-INF/l10n/bundle.properties
new file mode 100644
index 000000000..a41fe4cfd
--- /dev/null
+++ b/org.tizen.common.ui/OSGI-INF/l10n/bundle.properties
@@ -0,0 +1,2 @@
+Bundle-Vendor = The Linux Foundation
+Bundle-Name = Tizen Common UI
diff --git a/org.tizen.common.ui/build.properties b/org.tizen.common.ui/build.properties
new file mode 100644
index 000000000..660d08d6a
--- /dev/null
+++ b/org.tizen.common.ui/build.properties
@@ -0,0 +1,7 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ OSGI-INF/,\
+ plugin.xml,\
+ icons/
diff --git a/org.tizen.common.ui/icons/16_TIZEN_SDK_icon.png b/org.tizen.common.ui/icons/16_TIZEN_SDK_icon.png
new file mode 100644
index 000000000..1b75de141
--- /dev/null
+++ b/org.tizen.common.ui/icons/16_TIZEN_SDK_icon.png
Binary files differ
diff --git a/org.tizen.common.ui/plugin.xml b/org.tizen.common.ui/plugin.xml
new file mode 100644
index 000000000..fb2e90529
--- /dev/null
+++ b/org.tizen.common.ui/plugin.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.ui.commands">
+ <category
+ id="org.tizen.common.ui.category"
+ name="Tizen SDK">
+ </category>
+ <command
+ categoryId="org.tizen.common.ui.category"
+ defaultHandler="org.tizen.common.ui.commands.DownloadCardCommandHandler"
+ description="Download keyboard shortcuts in PDF"
+ id="org.tizen.common.ui.command.downloadcard"
+ name="Keyboard Shortcuts">
+ </command>
+ </extension>
+ <extension
+ point="org.eclipse.ui.menus">
+ <menuContribution
+ locationURI="menu:help?before=helpEnd">
+ <menu
+ icon="icons/16_TIZEN_SDK_icon.png"
+ id="tizensdkhelp"
+ label="Tizen SDK">
+ <command
+ commandId="org.tizen.common.ui.command.downloadcard"
+ style="push">
+ </command>
+ </menu>
+ <separator
+ name="helpSep"
+ visible="true">
+ </separator>
+ </menuContribution>
+ </extension>
+</plugin>
diff --git a/org.tizen.common.ui/src/org/tizen/common/ui/Activator.java b/org.tizen.common.ui/src/org/tizen/common/ui/Activator.java
new file mode 100644
index 000000000..4375faf37
--- /dev/null
+++ b/org.tizen.common.ui/src/org/tizen/common/ui/Activator.java
@@ -0,0 +1,74 @@
+/*
+ * Common
+ *
+ * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * Shingil Kang <shingil.kang@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+package org.tizen.common.ui;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.tizen.nativecpp.ui"; //$NON-NLS-1$
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+}
diff --git a/org.tizen.common.ui/src/org/tizen/common/ui/commands/DownloadCardCommandHandler.java b/org.tizen.common.ui/src/org/tizen/common/ui/commands/DownloadCardCommandHandler.java
new file mode 100644
index 000000000..638286b52
--- /dev/null
+++ b/org.tizen.common.ui/src/org/tizen/common/ui/commands/DownloadCardCommandHandler.java
@@ -0,0 +1,56 @@
+/*
+ * Common
+ *
+ * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact:
+ * Shingil Kang <shingil.kang@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
+package org.tizen.common.ui.commands;
+
+import java.awt.Desktop;
+import java.io.File;
+import java.io.IOException;
+
+import org.eclipse.core.commands.AbstractHandler;
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.tizen.common.core.application.InstallPathConfig;
+
+public class DownloadCardCommandHandler extends AbstractHandler {
+ final Logger logger = LoggerFactory.getLogger(DownloadCardCommandHandler.class);
+ final String pdfFileName = "shortcuts.pdf";
+ final String pdfFilePath = InstallPathConfig.getDocumentsPath() + File.separator + pdfFileName;
+
+ @Override
+ public Object execute(ExecutionEvent event) throws ExecutionException {
+ File pdfFile = new File(pdfFilePath);
+ try {
+ Desktop.getDesktop().open(pdfFile);
+ } catch (IOException e) {
+ // fallback
+ logger.error("Failed to open a file " + pdfFile, e);
+ }
+ return null;
+ }
+}
diff --git a/org.tizen.common/src/org/tizen/common/core/application/InstallPathConfig.java b/org.tizen.common/src/org/tizen/common/core/application/InstallPathConfig.java
index c9b972708..1d8462107 100755
--- a/org.tizen.common/src/org/tizen/common/core/application/InstallPathConfig.java
+++ b/org.tizen.common/src/org/tizen/common/core/application/InstallPathConfig.java
@@ -55,6 +55,7 @@ final public class InstallPathConfig {
private static final String DIR_LIBRARY = "library";
private static final String DIR_SDK_DATA = "tizen-sdk-data";
private static final String DIR_CHECKER = "checker";
+ private static final String DIR_DOCUMENTS = "documents";
private final static String SDKSUFFIX = DIR_SDK_DATA + File.separatorChar + "tizensdkpath";
@@ -187,6 +188,10 @@ final public class InstallPathConfig {
return getUserHomePath() + File.separator + DIR_SDK_DATA;
}
+ public static String getDocumentsPath() {
+ return getSDKPath() + File.separator + DIR_DOCUMENTS;
+ }
+
private static void loadSdkPath(String sdkPath) {
boolean status = true;
if (HostUtil.exists(sdkPath)) {
@@ -236,4 +241,4 @@ final public class InstallPathConfig {
return value;
}
-} \ No newline at end of file
+}
diff --git a/package/addingFiles/documents/shortcuts.pdf b/package/addingFiles/documents/shortcuts.pdf
new file mode 100644
index 000000000..b6724895c
--- /dev/null
+++ b/package/addingFiles/documents/shortcuts.pdf
Binary files differ
diff --git a/package/changelog b/package/changelog
index 76970cb26..9ee7d7a3c 100644
--- a/package/changelog
+++ b/package/changelog
@@ -1,3 +1,6 @@
+* 2.1.16
+- Added Tizen IDE shortcuts pdf file and menu
+== shingil.kang <shingil.kang@samsung.com> 2013-04-10
* 2.1.15
- Fixed template attribute (data-inline)
== changhyun1.lee <changhyun1.lee@samsung.com> 2013-04-07 20:34
diff --git a/package/pkginfo.manifest b/package/pkginfo.manifest
index 26c5f9888..77cca4f9b 100644
--- a/package/pkginfo.manifest
+++ b/package/pkginfo.manifest
@@ -1,6 +1,6 @@
-Version:2.1.15
+Version:2.1.16
Source:common-eplugin
-Maintainer:kangho kim <kh5325.kim@samsung.com>, yoonki park <yoonki.park@samsung.com>, hyunsik non <hyunsik.noh@samsung.com>, taeyoung son <taeyoung2.son@samsung.com>, gune Kim <gune.kim@samsung.com>, ho namkoong <ho.namkoong@samsung.com>, hyeongseok heo <hyeong-seok.heo@samsung.com>, gyeongseok seo <gyeongseok.seo@samsung.com>, jihoon song <jihoon80.song@samsung.com>, changhyun lee <changhyun1.lee@samsung.com>, bonyong lee <bonyong.lee@samsung.com>
+Maintainer:kangho kim <kh5325.kim@samsung.com>, yoonki park <yoonki.park@samsung.com>, hyunsik non <hyunsik.noh@samsung.com>, taeyoung son <taeyoung2.son@samsung.com>, gune Kim <gune.kim@samsung.com>, ho namkoong <ho.namkoong@samsung.com>, hyeongseok heo <hyeong-seok.heo@samsung.com>, gyeongseok seo <gyeongseok.seo@samsung.com>, jihoon song <jihoon80.song@samsung.com>, changhyun lee <changhyun1.lee@samsung.com>, bonyong lee <bonyong.lee@samsung.com>, shingil kang <shingil.kang@samsung.com>
Package:common-eplugin
OS:ubuntu-32