Skip to content

Commit 8a20637

Browse files
gzsomborjukzi
authored andcommitted
Make a couple of methods private around JDIModelPresentation
1 parent 5b7b412 commit 8a20637

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIModelPresentation.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public void computeDetail(IValue value, IValueDetailListener listener) {
186186
* the target in which a thread is required
187187
* @return thread or <code>null</code>
188188
*/
189-
public static IJavaThread getEvaluationThread(IJavaDebugTarget target) {
189+
private static IJavaThread getEvaluationThread(IJavaDebugTarget target) {
190190
IJavaStackFrame frame = EvaluationContextManager.getEvaluationContext((IWorkbenchWindow)null);
191191
IJavaThread thread = null;
192192
if (frame != null) {
@@ -1958,14 +1958,14 @@ private List<String> getNameList(String listName) {
19581958
/**
19591959
* Plug in the single argument to the resource String for the key to get a formatted resource String
19601960
*/
1961-
public static String getFormattedString(String key, String arg) {
1961+
private static String getFormattedString(String key, String arg) {
19621962
return getFormattedString(key, new String[] {arg});
19631963
}
19641964

19651965
/**
19661966
* Plug in the arguments to the resource String for the key to get a formatted resource String
19671967
*/
1968-
public static String getFormattedString(String string, String[] args) {
1968+
private static String getFormattedString(String string, String[] args) {
19691969
return NLS.bind(string, args);
19701970
}
19711971

@@ -2005,7 +2005,7 @@ protected void appendInstanceFilter(IJavaBreakpoint breakpoint, StringBuilder bu
20052005
}
20062006
}
20072007

2008-
protected static org.eclipse.jdt.internal.debug.ui.ImageDescriptorRegistry getDebugImageRegistry() {
2008+
private static org.eclipse.jdt.internal.debug.ui.ImageDescriptorRegistry getDebugImageRegistry() {
20092009
if (fgDebugImageRegistry == null) {
20102010
fgDebugImageRegistry = JDIDebugUIPlugin.getImageDescriptorRegistry();
20112011
}

org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/variables/JavaVariableLabelProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
*/
5656
public class JavaVariableLabelProvider extends VariableLabelProvider implements IPreferenceChangeListener {
5757

58-
public static JDIModelPresentation fLabelProvider = new JDIModelPresentation();
58+
private final static JDIModelPresentation fLabelProvider = new JDIModelPresentation();
59+
5960
/**
6061
* Map of view id to qualified name setting
6162
*/

0 commit comments

Comments
 (0)