Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions application/org.openjdk.jmc.flightrecorder.ui/defaultPages.xml
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,30 @@
</eventList>
</state>
</page>

<page factory="org.openjdk.jmc.flightrecorder.ui.security" id="org.openjdk.jmc.flightrecorder.ui.security">
<state>
<sash />
<securityX509AlgorithmTable sortColumn="cryptoIcon">
<column id="cryptoIcon" width="100" sortAscending="true" />
<column id="cryptoRemark" hidden="false"/>
<column id="algorithm" hidden="false"/>
<column id="keyType" hidden="false"/>
<column id="keyLength" hidden="false" />
<column id="serialNumber" hidden="false"/>
<column id="subject" hidden="false" />
<column id="validFrom" hidden="false" />
<column id="validUntil" hidden="false"/>
<column id="thread" hidden="false" />
<column id="certificateId" hidden="false" />
<column id="issuer" hidden="false"/>
</securityX509AlgorithmTable>
<chart>
<series id="x509CertificateCount" />
</chart>
</state>
</page>

<page factory="org.openjdk.jmc.flightrecorder.ui.threaddumps" id="org.openjdk.jmc.flightrecorder.ui.threaddumps">
<state>
<sash weights="2,3" horizontal="true"/>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@
<description></description>
<topic href="PLUGINS_ROOT/org.openjdk.jmc.docs/html/GUID-4F885E48-A548-4140-B985-74B1685BEDEA.htm" label="Using the TLAB Allocations Page" />
</context>

<context id="security">
<description></description>
<topic href="PLUGINS_ROOT/org.openjdk.jmc.docs/html/GUID-4F885E48-A548-4140-B985-74B1685BEDEA.htm" label="Using the Security Page" />
</context>

<context id="environment">
<description></description>
Expand Down
4 changes: 4 additions & 0 deletions application/org.openjdk.jmc.flightrecorder.ui/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,10 @@
class="org.openjdk.jmc.flightrecorder.ui.pages.TlabPage$TlabPageFactory"
id="org.openjdk.jmc.flightrecorder.ui.tlab">
</factory>
<factory
class="org.openjdk.jmc.flightrecorder.ui.pages.SecurityPage$SecurityPageFactory"
id="org.openjdk.jmc.flightrecorder.ui.security">
</factory>
<factory
class="org.openjdk.jmc.flightrecorder.ui.pages.SystemPage$SystemPageFactory"
id="org.openjdk.jmc.flightrecorder.ui.system">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public class ImageConstants {
public static final String PAGE_COMPILATIONS = "pages/compilations.png"; //$NON-NLS-1$
public static final String PAGE_CLASSLOADING = "pages/classloading.png"; //$NON-NLS-1$
public static final String PAGE_TLAB_ALLOCATIONS = "pages/allocations.png"; //$NON-NLS-1$
public static final String PAGE_SECURITY = "pages/security16.png"; //$NON-NLS-1$
public static final String PAGE_ENVIRONMENT = "pages/system.png"; //$NON-NLS-1$
public static final String PAGE_PROCESSES = "pages/processes.png"; //$NON-NLS-1$
public static final String PAGE_ENVIRONMENT_VARIABLES = "pages/environment.png"; //$NON-NLS-1$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import java.util.stream.Stream;

import org.eclipse.jface.viewers.ArrayContentProvider;
import org.eclipse.jface.viewers.ColumnLabelProvider;
import org.eclipse.jface.viewers.ColumnViewerToolTipSupport;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.StructuredSelection;
Expand Down Expand Up @@ -83,6 +84,21 @@ public void addColumn(IAttribute<?> a) {
a.getContentType() instanceof LinearKindOfQuantity, accessor);
}

public void addColumn(IAttribute<?> a, ColumnLabelProvider iconProvider) {
@SuppressWarnings("deprecation")
IMemberAccessor<?, IItem> accessor = ItemToolkit.accessor(a);
addColumn(a.getIdentifier(), a.getName(), a.getDescription(),
a.getContentType() instanceof LinearKindOfQuantity, accessor, iconProvider);
}

private void addColumn(
String columnId, String name, String description, boolean right, IMemberAccessor<?, IItem> accessor,
ColumnLabelProvider iconProvider) {
columns.add(new ColumnBuilder(name, columnId, accessor, iconProvider).description(description)
.style(right ? SWT.RIGHT : SWT.NONE).build());

}

public void addColumn(
String columnId, String name, String description, boolean right, IMemberAccessor<?, IItem> accessor) {
columns.add(new ColumnBuilder(name, columnId, accessor).description(description)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,11 @@ public class Messages extends NLS {
public static String SAVE_AS_NO_SRC_ERROR_MSG;
public static String SAVE_AS_TITLE;
public static String SEARCH_TREE_TEXT;
public static String SecurityPage_PAGE_NAME;
public static String SecurityPage_TIMELINE_SELECTION;
public static String SecurityPage_TABLE_SELECTION;
public static String SecurityPage_SECTION_X509_CERTIFICATES;
public static String SecurityPage_SECTION_X509_ALGORITHMS;
public static String SELECTION_STORE_NO_SELECTION;
public static String SELECT_RANGE_WIZARD_DESCRIPTION;
public static String SELECT_RANGE_WIZARD_TEXT;
Expand Down
Loading