mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +02:00
Deprecated logErrorMessage method.
This commit is contained in:
parent
2fefb9f6ab
commit
a455830b35
1 changed files with 7 additions and 11 deletions
|
@ -107,7 +107,6 @@ import org.eclipse.cdt.internal.ui.viewsupport.CDTContextActivator;
|
||||||
* @noinstantiate This class is not intended to be instantiated by clients.
|
* @noinstantiate This class is not intended to be instantiated by clients.
|
||||||
*/
|
*/
|
||||||
public class CUIPlugin extends AbstractUIPlugin {
|
public class CUIPlugin extends AbstractUIPlugin {
|
||||||
|
|
||||||
public static final String PLUGIN_ID = "org.eclipse.cdt.ui"; //$NON-NLS-1$
|
public static final String PLUGIN_ID = "org.eclipse.cdt.ui"; //$NON-NLS-1$
|
||||||
public static final String PLUGIN_CORE_ID = "org.eclipse.cdt.core"; //$NON-NLS-1$
|
public static final String PLUGIN_CORE_ID = "org.eclipse.cdt.core"; //$NON-NLS-1$
|
||||||
public static final String EDITOR_ID = PLUGIN_ID + ".editor.CEditor"; //$NON-NLS-1$
|
public static final String EDITOR_ID = PLUGIN_ID + ".editor.CEditor"; //$NON-NLS-1$
|
||||||
|
@ -237,8 +236,7 @@ public class CUIPlugin extends AbstractUIPlugin {
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
fgResourceBundle = ResourceBundle.getBundle("org.eclipse.cdt.internal.ui.CPluginResources"); //$NON-NLS-1$
|
fgResourceBundle = ResourceBundle.getBundle("org.eclipse.cdt.internal.ui.CPluginResources"); //$NON-NLS-1$
|
||||||
}
|
} catch (MissingResourceException x) {
|
||||||
catch (MissingResourceException x) {
|
|
||||||
fgResourceBundle = null;
|
fgResourceBundle = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -259,11 +257,9 @@ public class CUIPlugin extends AbstractUIPlugin {
|
||||||
public static String getResourceString(String key) {
|
public static String getResourceString(String key) {
|
||||||
try {
|
try {
|
||||||
return fgResourceBundle.getString(key);
|
return fgResourceBundle.getString(key);
|
||||||
}
|
} catch (MissingResourceException e) {
|
||||||
catch (MissingResourceException e) {
|
|
||||||
return "!" + key + "!"; //$NON-NLS-1$ //$NON-NLS-2$
|
return "!" + key + "!"; //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
}
|
} catch (NullPointerException e) {
|
||||||
catch (NullPointerException e) {
|
|
||||||
return "#" + key + "#"; //$NON-NLS-1$ //$NON-NLS-2$
|
return "#" + key + "#"; //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -652,10 +648,11 @@ public class CUIPlugin extends AbstractUIPlugin {
|
||||||
return EditorsUI.getSharedTextColors();
|
return EditorsUI.getSharedTextColors();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void configurePluginDebugOptions(){
|
public void configurePluginDebugOptions() {
|
||||||
if(isDebugging()){
|
if (isDebugging()) {
|
||||||
String option = Platform.getDebugOption(CONTENTASSIST);
|
String option = Platform.getDebugOption(CONTENTASSIST);
|
||||||
if(option != null) Util.VERBOSE_CONTENTASSIST = option.equalsIgnoreCase("true") ; //$NON-NLS-1$
|
if (option != null)
|
||||||
|
Util.VERBOSE_CONTENTASSIST = option.equalsIgnoreCase("true") ; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1000,5 +997,4 @@ public class CUIPlugin extends AbstractUIPlugin {
|
||||||
IWorkbenchWindow[] windows = getDefault().getWorkbench().getWorkbenchWindows();
|
IWorkbenchWindow[] windows = getDefault().getWorkbench().getWorkbenchWindows();
|
||||||
return windows[0].getShell();
|
return windows[0].getShell();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue