diff options
author | Tor Norbye <tnorbye@google.com> | 2014-08-20 17:01:23 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2014-08-20 17:01:23 -0700 |
commit | 1aa2e09bdbd413eacb677e9fa4b50630530d0656 (patch) | |
tree | 2f4cc6d69645bd460aa253fdecb606d764fbd25d /platform/platform-api/src/com/intellij/openapi/ui/ComponentWithActions.java | |
parent | 02cf98d65c798d368fcec43ed64a001d513bdd4f (diff) | |
download | idea-1aa2e09bdbd413eacb677e9fa4b50630530d0656.tar.gz |
Snapshot idea/138.1696 from git://git.jetbrains.org/idea/community.git
Change-Id: I50c97b83a815ce635e49a38380ba5b8765e4b16a
Diffstat (limited to 'platform/platform-api/src/com/intellij/openapi/ui/ComponentWithActions.java')
-rw-r--r-- | platform/platform-api/src/com/intellij/openapi/ui/ComponentWithActions.java | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/platform/platform-api/src/com/intellij/openapi/ui/ComponentWithActions.java b/platform/platform-api/src/com/intellij/openapi/ui/ComponentWithActions.java index d6310f508ed0..889fb2786188 100644 --- a/platform/platform-api/src/com/intellij/openapi/ui/ComponentWithActions.java +++ b/platform/platform-api/src/com/intellij/openapi/ui/ComponentWithActions.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,11 +41,11 @@ public interface ComponentWithActions { boolean isContentBuiltIn(); class Impl implements ComponentWithActions { - private ActionGroup myToolbar; - private String myToolbarPlace; - private JComponent myToolbarContext; - private JComponent mySearchComponent; - private JComponent myComponent; + private final ActionGroup myToolbar; + private final String myToolbarPlace; + private final JComponent myToolbarContext; + private final JComponent mySearchComponent; + private final JComponent myComponent; public Impl(final ActionGroup toolbar, final String toolbarPlace, final JComponent toolbarContext, final JComponent searchComponent, @@ -57,6 +57,7 @@ public interface ComponentWithActions { myComponent = component; } + @Override public boolean isContentBuiltIn() { return false; } @@ -65,22 +66,27 @@ public interface ComponentWithActions { this(null, null, null, null, component); } + @Override public ActionGroup getToolbarActions() { return myToolbar; } + @Override public JComponent getSearchComponent() { return mySearchComponent; } + @Override public String getToolbarPlace() { return myToolbarPlace; } + @Override public JComponent getToolbarContextComponent() { return myToolbarContext; } + @Override @NotNull public JComponent getComponent() { return myComponent; |