52
52
import org .openide .util .NbBundle ;
53
53
import org .openide .util .NbPreferences ;
54
54
import org .openide .util .RequestProcessor ;
55
- import org .openide .util .Utilities ;
56
55
57
56
/**
58
57
*
@@ -76,6 +75,8 @@ public final class ProfilerPresets {
76
75
77
76
static final String DEFINE_CLASSES = NbBundle .getMessage (ProfilerPresets .class , "HINT_Define_roots" ); // NOI18N
78
77
78
+ private static final String INTERNAL_JAVA_FILTER = "com.sun.**, sun.**, sunw.**,\n apple.laf.**, apple.awt.**, com.apple.**,\n org.omg.CORBA.**, org.omg.CosNaming.**, COM.rsa.**" ; // NOI18N
79
+ private static final String CORE_JAVA_FILTER = "java.**, javax.**, jdk.**,\n " +INTERNAL_JAVA_FILTER ; // NOI18N
79
80
80
81
public static synchronized ProfilerPresets getInstance () {
81
82
if (INSTANCE == null ) INSTANCE = new ProfilerPresets ();
@@ -298,9 +299,7 @@ private static String getMainClass(Application application) {
298
299
}
299
300
300
301
private static String getDefaultFiltersS () {
301
- return Utilities .isMac () ?
302
- "java.**, javax.**,\n sun.**, sunw.**, com.sun.**,\n com.apple.**, apple.awt.**, apple.laf.**" : // NOI18N
303
- "java.**, javax.**,\n sun.**, sunw.**, com.sun.**" ; // NOI18N
302
+ return CORE_JAVA_FILTER ;
304
303
}
305
304
306
305
private static String getDefaultRootsP (Application application ) {
@@ -313,12 +312,7 @@ private static String getDefaultRootsP(Application application) {
313
312
}
314
313
315
314
private static String getDefaultFiltersP (String defaultRoots ) {
316
- if (defaultRoots .isEmpty ())
317
- return !Utilities .isMac () ? "sun.**, sunw.**, com.sun.**" : // NOI18N
318
- "sun.**, sunw.**, com.sun.**,\n com.apple.**, apple.awt.**, apple.laf.**" ; // NOI18N
319
- else
320
- return !Utilities .isMac () ? "java.**, javax.**,\n sun.**, sunw.**, com.sun.**" : // NOI18N
321
- "java.**, javax.**,\n sun.**, sunw.**, com.sun.**,\n com.apple.**, apple.awt.**, apple.laf.**" ; // NOI18N
315
+ return defaultRoots .isEmpty () ? INTERNAL_JAVA_FILTER : CORE_JAVA_FILTER ;
322
316
}
323
317
324
318
private static String getDefaultMemoryFilterP (Application application ) {
0 commit comments