@@ -66,15 +66,15 @@ private void InitializeComponent()
66
66
this . textBox . Anchor = ( ( System . Windows . Forms . AnchorStyles ) ( ( ( System . Windows . Forms . AnchorStyles . Top | System . Windows . Forms . AnchorStyles . Left ) | System . Windows . Forms . AnchorStyles . Right ) ) ) ;
67
67
this . textBox . Location = new System . Drawing . Point ( 12 , 32 ) ;
68
68
this . textBox . Name = "textBox" ;
69
- this . textBox . Size = new System . Drawing . Size ( 446 , 22 ) ;
69
+ this . textBox . Size = new System . Drawing . Size ( 466 , 22 ) ;
70
70
this . textBox . TabIndex = 1 ;
71
71
this . textBox . TextChanged += new System . EventHandler ( this . TextBoxTextChanged ) ;
72
72
this . textBox . KeyDown += new System . Windows . Forms . KeyEventHandler ( this . TextBoxKeyDown ) ;
73
73
//
74
74
// refreshButton
75
75
//
76
76
this . refreshButton . Anchor = ( ( System . Windows . Forms . AnchorStyles ) ( ( System . Windows . Forms . AnchorStyles . Top | System . Windows . Forms . AnchorStyles . Right ) ) ) ;
77
- this . refreshButton . Location = new System . Drawing . Point ( 465 , 30 ) ;
77
+ this . refreshButton . Location = new System . Drawing . Point ( 485 , 30 ) ;
78
78
this . refreshButton . Name = "refreshButton" ;
79
79
this . refreshButton . Size = new System . Drawing . Size ( 26 , 23 ) ;
80
80
this . refreshButton . TabIndex = 4 ;
@@ -83,21 +83,20 @@ private void InitializeComponent()
83
83
// cbInClasspathsOnly
84
84
//
85
85
this . cbInClasspathsOnly . Anchor = ( ( System . Windows . Forms . AnchorStyles ) ( ( System . Windows . Forms . AnchorStyles . Top | System . Windows . Forms . AnchorStyles . Right ) ) ) ;
86
- this . cbInClasspathsOnly . Location = new System . Drawing . Point ( 279 , 9 ) ;
87
- this . cbInClasspathsOnly . Size = new System . Drawing . Size ( 111 , 17 ) ;
88
- this . cbInClasspathsOnly . AutoSize = true ;
86
+ this . cbInClasspathsOnly . Location = new System . Drawing . Point ( 380 , 9 ) ;
87
+ this . cbInClasspathsOnly . Size = new System . Drawing . Size ( 26 , 24 ) ;
88
+ this . cbInClasspathsOnly . Text = "In Classpaths only" ;
89
89
this . cbInClasspathsOnly . Name = "cbInClasspathsOnly" ;
90
+ this . cbInClasspathsOnly . AutoSize = true ;
90
91
this . cbInClasspathsOnly . TabIndex = 2 ;
91
- this . cbInClasspathsOnly . Text = "In Classpaths only" ;
92
+ this . cbInClasspathsOnly . Checked = false ;
92
93
this . cbInClasspathsOnly . CheckedChanged += new System . EventHandler ( this . CbInClasspathsOnlyCheckedChanged ) ;
93
94
//
94
95
// checkBox
95
96
//
96
97
this . checkBox . Anchor = ( ( System . Windows . Forms . AnchorStyles ) ( ( System . Windows . Forms . AnchorStyles . Top | System . Windows . Forms . AnchorStyles . Right ) ) ) ;
97
- this . checkBox . Location = new System . Drawing . Point ( 396 , 9 ) ;
98
+ this . checkBox . Location = new System . Drawing . Point ( 480 , 9 ) ;
98
99
this . checkBox . Size = new System . Drawing . Size ( 26 , 24 ) ;
99
- this . checkBox . CheckAlign = ContentAlignment . MiddleRight ;
100
- this . checkBox . TextAlign = ContentAlignment . MiddleLeft ;
101
100
this . checkBox . Text = "Code files only" ;
102
101
this . checkBox . Name = "checkBox" ;
103
102
this . checkBox . AutoSize = true ;
@@ -112,7 +111,7 @@ private void InitializeComponent()
112
111
this . listBox . FormattingEnabled = true ;
113
112
this . listBox . Location = new System . Drawing . Point ( 12 , 62 ) ;
114
113
this . listBox . Name = "listBox" ;
115
- this . listBox . Size = new System . Drawing . Size ( 478 , 276 ) ;
114
+ this . listBox . Size = new System . Drawing . Size ( 498 , 276 ) ;
116
115
this . listBox . TabIndex = 5 ;
117
116
this . listBox . DrawItem += new System . Windows . Forms . DrawItemEventHandler ( this . ListBoxDrawItem ) ;
118
117
this . listBox . Resize += new System . EventHandler ( this . ListBoxResize ) ;
@@ -122,7 +121,7 @@ private void InitializeComponent()
122
121
//
123
122
this . AutoScaleDimensions = new System . Drawing . SizeF ( 6F , 13F ) ;
124
123
this . AutoScaleMode = System . Windows . Forms . AutoScaleMode . Font ;
125
- this . ClientSize = new System . Drawing . Size ( 502 , 340 ) ;
124
+ this . ClientSize = new System . Drawing . Size ( 522 , 340 ) ;
126
125
this . Controls . Add ( this . cbInClasspathsOnly ) ;
127
126
this . Controls . Add ( this . listBox ) ;
128
127
this . Controls . Add ( this . textBox ) ;
@@ -131,7 +130,7 @@ private void InitializeComponent()
131
130
this . Controls . Add ( this . checkBox ) ;
132
131
this . MaximizeBox = false ;
133
132
this . MinimizeBox = false ;
134
- this . MinimumSize = new System . Drawing . Size ( 400 , 300 ) ;
133
+ this . MinimumSize = new System . Drawing . Size ( 480 , 300 ) ;
135
134
this . Name = "OpenResourceForm" ;
136
135
this . ShowIcon = false ;
137
136
this . KeyPreview = true ;
@@ -401,15 +400,15 @@ public List<String> GetProjectFolders()
401
400
{
402
401
String projectFolder = Path . GetDirectoryName ( PluginBase . CurrentProject . ProjectPath ) ;
403
402
List < String > folders = new List < String > ( ) ;
404
- if ( ! cbInClasspathsOnly . Checked ) folders . Add ( projectFolder ) ;
403
+ if ( ! cbInClasspathsOnly . Checked ) folders . Add ( projectFolder ) ;
405
404
if ( ! PluginMain . Settings . SearchExternalClassPath ) return folders ;
406
405
foreach ( String path in PluginBase . CurrentProject . SourcePaths )
407
406
{
408
407
if ( Path . IsPathRooted ( path ) ) folders . Add ( path ) ;
409
408
else
410
409
{
411
410
String folder = Path . GetFullPath ( Path . Combine ( projectFolder , path ) ) ;
412
- if ( ! folder . StartsWith ( projectFolder ) ) folders . Add ( folder ) ;
411
+ if ( cbInClasspathsOnly . Checked || ! folder . StartsWith ( projectFolder ) ) folders . Add ( folder ) ;
413
412
}
414
413
}
415
414
return folders ;
0 commit comments