+++ /dev/null
-/*
- * Common
- *
- * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- * Hyeongseok Heo <hyeongseok.heo@samsung.com>
- * Jihoon Song <jihoon80.song@samsung.com>
- * Kangho Kim <kh5325.kim@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;
-
-/**
- * IProjectInfo Interface that is used when getting web project's information.
- *
- * @author Kangho Kim{@literal <kh5325.kim@samsung.com>} (S-Core)
- * @author JIhoon Song {@literal<jihoon80.song@samsung.com>} (S-Core)
- */
-public interface IProjectInfo {
-
- /**
- * Returns whether the Tizen web project or not.
- *
- * @return If a project is the Tizen web project, return true.
- */
- public boolean isWebProject();
-
- /**
- * Returns the App ID from a config.xml.
- *
- * @return an App ID string. If could not get a value, return null.
- */
- public String getAppId();
-
- /**
- * Returns the Package ID from a manifest.xml.
- *
- * @return a Package ID string. If could not get a value, return null.
- */
- public String getPackageId();
-}
*/
public static ITizenProject getTizenProject(IProject project, Class adapter) {
if (project == null)
- throw new IllegalArgumentException("project can not be null");
+ throw new IllegalArgumentException("Project can not be null");
Object obj = project.getAdapter(adapter);
if (obj == null || !(obj instanceof ITizenProject))
- throw new IllegalArgumentException("project can not be adapted (obj - " + obj + ", adapter - " + adapter + ")");
+ throw new IllegalArgumentException("Project can not be adapted (obj - " + obj + ", adapter - " + adapter + ")");
return (ITizenProject) obj;
}