diff options
author | Taeyoung Son <taeyoung2.son@samsung.com> | 2014-05-15 10:54:44 +0900 |
---|---|---|
committer | Taeyoung Son <taeyoung2.son@samsung.com> | 2014-06-09 16:03:08 +0900 |
commit | bfa6dfddbb3e382089f5de91bf2cdd6eecaa0bff (patch) | |
tree | da329135535495246e70df4db4668d33664a405b | |
parent | 89fe8384c0fdc896ed4f1fffdbc5607412e172b7 (diff) | |
download | common-eplugin-bfa6dfddbb3e382089f5de91bf2cdd6eecaa0bff.tar.gz common-eplugin-bfa6dfddbb3e382089f5de91bf2cdd6eecaa0bff.tar.bz2 common-eplugin-bfa6dfddbb3e382089f5de91bf2cdd6eecaa0bff.zip |
MISC: Added messages.
Added messages.
Change-Id: Icf95ac7f7b56d1199f931df2b29fe6863f223eb0
Signed-off-by: Taeyoung Son <taeyoung2.son@samsung.com>
5 files changed, 41 insertions, 1 deletions
diff --git a/org.tizen.common.packager/src/org/tizen/common/packager/ide/PackageMessages.java b/org.tizen.common.packager/src/org/tizen/common/packager/ide/PackageMessages.java index b94212841..4bd334e3f 100644 --- a/org.tizen.common.packager/src/org/tizen/common/packager/ide/PackageMessages.java +++ b/org.tizen.common.packager/src/org/tizen/common/packager/ide/PackageMessages.java @@ -38,6 +38,9 @@ import org.eclipse.osgi.util.NLS; public class PackageMessages { private static final String BUNDLE_NAME = "org.tizen.common.packager.ide.messages"; //$NON-NLS-1$ + public static String DIALOG_TOGGLE_ALWAYS_PACKAGE_WITHOUT_ASKING; + public static String DIALOG_QUESTION_CONTINUE_EVEN_IF_IT_HAS_ERROR; + public static String PACKAGING_APPLICATION; static { diff --git a/org.tizen.common.packager/src/org/tizen/common/packager/ide/messages.properties b/org.tizen.common.packager/src/org/tizen/common/packager/ide/messages.properties index 5f348ac9b..3b34f5f0d 100644 --- a/org.tizen.common.packager/src/org/tizen/common/packager/ide/messages.properties +++ b/org.tizen.common.packager/src/org/tizen/common/packager/ide/messages.properties @@ -1 +1,3 @@ -PACKAGING_APPLICATION = Packaging application...
\ No newline at end of file +PACKAGING_APPLICATION = Packaging application... +DIALOG_TOGGLE_ALWAYS_PACKAGE_WITHOUT_ASKING = Errors exist in project.\n\nProceed with package? +DIALOG_QUESTION_CONTINUE_EVEN_IF_IT_HAS_ERROR = Always package without asking
\ No newline at end of file diff --git a/org.tizen.common/src/org/tizen/common/launch/LaunchMessages.java b/org.tizen.common/src/org/tizen/common/launch/LaunchMessages.java index 0e1560d8c..9ab3cda82 100644 --- a/org.tizen.common/src/org/tizen/common/launch/LaunchMessages.java +++ b/org.tizen.common/src/org/tizen/common/launch/LaunchMessages.java @@ -28,10 +28,15 @@ package org.tizen.common.launch; import org.eclipse.osgi.util.NLS; public class LaunchMessages extends NLS { + + static { NLS.initializeMessages(LaunchMessages.class.getName(), LaunchMessages.class); } + public static String DIALOG_TOGGLE_ALWAYS_LAUNCH_WITHOUT_ASKING; + public static String DIALOG_QUESTION_CONTINUE_EVEN_IF_IT_HAS_ERROR; + public static String FAIL; public static String SUCCESS; diff --git a/org.tizen.common/src/org/tizen/common/launch/LaunchMessages.properties b/org.tizen.common/src/org/tizen/common/launch/LaunchMessages.properties index 3f396b630..fd3e516a8 100644 --- a/org.tizen.common/src/org/tizen/common/launch/LaunchMessages.properties +++ b/org.tizen.common/src/org/tizen/common/launch/LaunchMessages.properties @@ -41,3 +41,7 @@ LAUNCH_END_WITHOUT_RUN = The application is not available for {0}. So the applic # Exception SDB_TIMEOUT_EXCEPTION = There is no response while {0} seconds. Please retry again. + +# Dialog +DIALOG_QUESTION_CONTINUE_EVEN_IF_IT_HAS_ERROR = Errors exist in project.\n\nProceed with launch? +DIALOG_TOGGLE_ALWAYS_LAUNCH_WITHOUT_ASKING = Always launch without asking diff --git a/org.tizen.common/src/org/tizen/common/util/ResourceUtil.java b/org.tizen.common/src/org/tizen/common/util/ResourceUtil.java new file mode 100644 index 000000000..74f0a8154 --- /dev/null +++ b/org.tizen.common/src/org/tizen/common/util/ResourceUtil.java @@ -0,0 +1,26 @@ +package org.tizen.common.util; + +import org.tizen.common.file.IResource; + +public class ResourceUtil { + + public static IResource getResource(final String fullPath, IResource ... resources) { + String findPath = fullPath; + for (IResource resource : resources) { + String compPath = FileUtil.appendPath(resource.getFileHandler().getCurrentWorkingDirectory(), resource.getPath()); + compPath = FilenameUtil.getCanonicalForm(compPath); + findPath = FilenameUtil.getCanonicalForm(fullPath); + if (compPath.equals(findPath)) { + return resource; + } + } + return null; + } + + public static void removeResource(String companionFullPath, + IResource[] array) { + // TODO Auto-generated method stub + + } + +} |