* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-package org.sonar.server.ui;
-import org.sonar.api.server.ServerSide;
-import org.sonar.api.web.PageDecoration;
+package org.sonar.server.ui;
import java.util.Collections;
import java.util.List;
+import org.sonar.api.server.ServerSide;
+import org.sonar.api.web.PageDecoration;
/**
* @since 3.3
+ * @deprecated since 6.3 see {@link org.sonar.api.web.page.PageDefinition}. This class has not effect.
*/
@ServerSide
+@Deprecated
public final class PageDecorations {
private final PageDecoration[] decorations;
}
public PageDecorations() {
- this(Collections.<PageDecoration>emptyList());
+ this(Collections.emptyList());
}
public PageDecoration[] get() {
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-package org.sonar.api.web;
-import org.apache.commons.io.FileUtils;
-import org.apache.commons.io.IOUtils;
-import org.sonar.api.utils.SonarException;
+package org.sonar.api.web;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
+import org.apache.commons.io.FileUtils;
+import org.apache.commons.io.IOUtils;
+import org.sonar.api.utils.SonarException;
/**
- * It's useful in development environment to see browser rendering in real time while editing the template. To do that, just
- * return an absolute path in the method getTemplatePath() :<br>
- * <pre>
- * <code>
- * protected String getTemplatePath() {
- * return "/tmp/sample_dashboard_widget.erb";
- * }
- * </code>
- * </pre>
- * Build and deploy the plugin in /extensions/plugins. The file /tmp/sample_dashboard_widget.erb will be reloaded on each request.
- * <br>
- * <br>
- * In production environment, you have to return the classloader path, for example "/org/sonar/myplugin/sample_dashboard_widget.erb".
- *
* @since 1.11
+ * @deprecated since 6.3. This class is ignored.
*/
+@Deprecated
public abstract class AbstractRubyTemplate {
private String cache = null;
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+
package org.sonar.api.web;
import com.google.common.base.MoreObjects;
+import java.util.List;
+import org.sonar.api.batch.sensor.SensorContext;
import org.sonar.api.task.TaskExtension;
import org.sonar.colorizer.Tokenizer;
-import java.util.List;
-
/**
* Extend the library sonar-colorizer to support new languages.
*
* @since 1.12
- * @deprecated since 4.5.2 use {@link org.sonar.api.source.Highlightable}
+ * @deprecated since 4.5.2 use {@link SensorContext#newHighlighting()}
*/
@Deprecated
public abstract class CodeColorizerFormat implements TaskExtension {
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+
package org.sonar.api.web;
import java.lang.annotation.ElementType;
/**
* @since 2.0
+ * @deprecated since 6.3 see {@link org.sonar.api.web.page.PageDefinition}. This class is ignored.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
+@Deprecated
public @interface DefaultTab {
// default value is all metrics
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+
package org.sonar.api.web;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
+/**
+ * @deprecated since 6.3 see {@link org.sonar.api.web.page.PageDefinition}. This class is ignored.
+ */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
+@Deprecated
public @interface Description {
String value();
}
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+
package org.sonar.api.web;
import java.lang.annotation.ElementType;
* The Page is displayed only in listed sections. This annotation is ignored on Widgets.
*
* @since 1.11
+ * @deprecated since 6.3 see {@link org.sonar.api.web.page.PageDefinition}. This class is ignored.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
+@Deprecated
public @interface NavigationSection {
String HOME = "home";
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+
package org.sonar.api.web;
/**
* @since 2.0
+ * @deprecated since 6.3 see {@link org.sonar.api.web.page.PageDefinition}. This class is ignored.
*/
+@Deprecated
public interface Page extends View {
}
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+
package org.sonar.api.web;
import org.sonar.api.ExtensionPoint;
import org.sonar.api.server.ServerSide;
/**
- * Adds content to HTML pages. A PageDecoration is a Rails template (html.erb file) that executes content_for blocks on predefined locations :
- * <ul>
- * <li><code>script</code> : javascript header</li>
- * <li><code>style</code> : CSS header</li>
- * <li><code>header</code> : area over the black top navigation bar</li>
- * <li><code>footer</code> : area below the main page</li>
- * <li><code>sidebar</code> : area in the sidebar between the menu and the sonar logo</li>
- * </ul>
- *
- * <p>Example of template:
-<pre>
- <% content_for :script do %>
- <script>alert('page loaded')</script>
- <% end %>
-
- <% content_for :footer do %>
- <div>this is <b>my footer</b></div>
-<% end %>
-</pre>
- *
* @since 3.3
+ * @deprecated since 6.3 see {@link org.sonar.api.web.page.PageDefinition}. This class is ignored.
*/
@ServerSide
@ExtensionPoint
+@Deprecated
public abstract class PageDecoration extends AbstractRubyTemplate {
}
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+
package org.sonar.api.web;
import java.lang.annotation.ElementType;
* The view is displayed only if the selected resource has the same language.
*
* @since 1.11
+ * @deprecated since 6.3 see {@link org.sonar.api.web.page.PageDefinition}. This class is ignored.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
+@Deprecated
public @interface ResourceLanguage {
/**
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+
package org.sonar.api.web;
import java.lang.annotation.ElementType;
* The view is displayed only if the selected resource has the same qualifier.
*
* @since 1.11
+ * @deprecated since 6.3 see {@link org.sonar.api.web.page.PageDefinition}. This class is ignored.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
+@Deprecated
public @interface ResourceQualifier {
/**
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+
package org.sonar.api.web;
import java.lang.annotation.ElementType;
* The view is displayed only if the selected resource has the same qualifier.
*
* @since 1.11
+ * @deprecated since 6.3 see {@link org.sonar.api.web.page.PageDefinition}. This class is ignored.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
+@Deprecated
public @interface ResourceScope {
/**
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+
package org.sonar.api.web;
/**
* @since 1.11
+ * @deprecated since 6.3 see {@link org.sonar.api.web.page.PageDefinition}. This class is ignored.
*/
+@Deprecated
public interface RubyRailsPage extends Page {
/**
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+
package org.sonar.api.web;
import org.sonar.api.ExtensionPoint;
/**
* @since 1.11
+ * @deprecated since 6.3 see {@link org.sonar.api.web.page.PageDefinition}. This class is ignored.
*/
@ServerSide
@ExtensionPoint
+@Deprecated
public interface View {
String getId();