Skip to content

Commit bd2debc

Browse files
Changed the default sidepanel location from left to top right + removed Recent Activity tab name at the bottom
1 parent a438542 commit bd2debc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ide-common/src/main/kotlin/org/digma/intellij/plugin/ui/service/AbstractViewService.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ abstract class AbstractViewService(val project: Project) : Disposable {
125125
panel?.reset()
126126

127127
if (toolWindowContent != null) {
128-
toolWindowContent?.displayName = getViewDisplayName()
128+
// there is no need to display the tab name for now as we have only one tab
129+
// toolWindowContent?.displayName = getViewDisplayName()
129130
//reset focusable component methods, some panels are dynamic in what they return, see for example NoConnectionWrapper
130131
toolWindowContent?.setPreferredFocusedComponent { panel?.getPreferredFocusedComponent() }
131132
toolWindowContent?.preferredFocusableComponent = panel?.getPreferredFocusableComponent()

src/main/java/org/digma/intellij/plugin/toolwindow/DigmaBottomToolWindowFactory.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
import java.util.List;
4949
import java.util.Map;
5050

51-
import static org.digma.intellij.plugin.toolwindow.ToolWindowUtil.BOTTOM_TAB_NAME;
5251
import static org.digma.intellij.plugin.toolwindow.ToolWindowUtil.RECENT_ACTIVITY_GET_DATA;
5352
import static org.digma.intellij.plugin.toolwindow.ToolWindowUtil.RECENT_ACTIVITY_GO_TO_SPAN;
5453
import static org.digma.intellij.plugin.toolwindow.ToolWindowUtil.RECENT_ACTIVITY_GO_TO_TRACE;
@@ -162,7 +161,7 @@ public void onQueryCanceled(CefBrowser browser, CefFrame frame, long queryId) {
162161
jcefDigmaPanel.setLayout(new BorderLayout());
163162
jcefDigmaPanel.add(browserPanel, BorderLayout.CENTER);
164163

165-
var jcefContent = contentFactory.createContent(jcefDigmaPanel, BOTTOM_TAB_NAME, false);
164+
var jcefContent = contentFactory.createContent(jcefDigmaPanel, null, false);
166165

167166
toolWindow.getContentManager().addContent(jcefContent);
168167
return jcefContent;

src/main/resources/META-INF/plugin.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222

2323
<extensions defaultExtensionNs="com.intellij">
2424
<toolWindow id="Digma"
25-
secondary="true"
25+
secondary="false"
2626
icon="org.digma.intellij.plugin.icons.AppIcons.TOOL_WINDOW"
27-
anchor="left"
27+
anchor="right"
2828
factoryClass="org.digma.intellij.plugin.toolwindow.DigmaLeftToolWindowFactory"/>
2929

3030
<toolWindow id="Observability"

0 commit comments

Comments
 (0)