1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Replace CCorePlugin.log() with CUIPlugin.log()

This commit is contained in:
Markus Schorn 2009-02-04 11:28:08 +00:00
parent 0ba589e4ae
commit 1ac3e5e1eb
20 changed files with 50 additions and 53 deletions

View file

@ -48,6 +48,7 @@ import org.eclipse.cdt.core.index.IIndexMacro;
import org.eclipse.cdt.core.index.IndexFilter; import org.eclipse.cdt.core.index.IndexFilter;
import org.eclipse.cdt.core.model.CoreModel; import org.eclipse.cdt.core.model.CoreModel;
import org.eclipse.cdt.core.model.ICElement; import org.eclipse.cdt.core.model.ICElement;
import org.eclipse.cdt.ui.CUIPlugin;
import org.eclipse.cdt.ui.browser.typeinfo.TypeSelectionDialog; import org.eclipse.cdt.ui.browser.typeinfo.TypeSelectionDialog;
import org.eclipse.cdt.internal.core.browser.IndexModelUtil; import org.eclipse.cdt.internal.core.browser.IndexModelUtil;
@ -326,9 +327,9 @@ public class ElementSelectionDialog extends TypeSelectionDialog {
index.releaseReadLock(); index.releaseReadLock();
} }
} catch(CoreException ce) { } catch(CoreException ce) {
CCorePlugin.log(ce); CUIPlugin.log(ce);
} catch(InterruptedException ie) { } catch(InterruptedException ie) {
CCorePlugin.log(ie); CUIPlugin.log(ie);
} }
} }
return types.toArray(new ITypeInfo[types.size()]); return types.toArray(new ITypeInfo[types.size()]);

View file

@ -41,7 +41,6 @@ import org.eclipse.ui.texteditor.IUpdate;
import org.eclipse.cdt.core.CCorePlugin; import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.browser.IQualifiedTypeName; import org.eclipse.cdt.core.browser.IQualifiedTypeName;
import org.eclipse.cdt.core.browser.PathUtil;
import org.eclipse.cdt.core.browser.QualifiedTypeName; import org.eclipse.cdt.core.browser.QualifiedTypeName;
import org.eclipse.cdt.core.dom.ast.ICompositeType; import org.eclipse.cdt.core.dom.ast.ICompositeType;
import org.eclipse.cdt.core.dom.ast.IEnumeration; import org.eclipse.cdt.core.dom.ast.IEnumeration;
@ -61,6 +60,7 @@ import org.eclipse.cdt.ui.IFunctionSummary;
import org.eclipse.cdt.ui.IRequiredInclude; import org.eclipse.cdt.ui.IRequiredInclude;
import org.eclipse.cdt.ui.browser.typeinfo.TypeInfoLabelProvider; import org.eclipse.cdt.ui.browser.typeinfo.TypeInfoLabelProvider;
import org.eclipse.cdt.ui.text.ICHelpInvocationContext; import org.eclipse.cdt.ui.text.ICHelpInvocationContext;
import org.eclipse.cdt.utils.PathUtil;
import org.eclipse.cdt.internal.corext.codemanipulation.AddIncludesOperation; import org.eclipse.cdt.internal.corext.codemanipulation.AddIncludesOperation;
@ -192,7 +192,7 @@ public class AddIncludeOnSelectionAction extends Action implements IUpdate {
} }
return null; return null;
} catch (CoreException e) { } catch (CoreException e) {
CCorePlugin.log(e); CUIPlugin.log(e);
return null; return null;
} }
} }

View file

@ -39,7 +39,6 @@ import org.eclipse.ui.IActionBars;
import org.eclipse.ui.IWorkbenchActionConstants; import org.eclipse.ui.IWorkbenchActionConstants;
import org.eclipse.ui.part.ViewPart; import org.eclipse.ui.part.ViewPart;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.dom.IPDOMNode; import org.eclipse.cdt.core.dom.IPDOMNode;
import org.eclipse.cdt.core.dom.IPDOMVisitor; import org.eclipse.cdt.core.dom.IPDOMVisitor;
import org.eclipse.cdt.core.index.IIndex; import org.eclipse.cdt.core.index.IIndex;
@ -140,7 +139,7 @@ public class IndexView extends ViewPart implements PDOM.IListener, IElementChang
} }
} }
} catch (CoreException e) { } catch (CoreException e) {
CCorePlugin.log(e); CUIPlugin.log(e);
} }
} }
else if (element instanceof PDOMLinkage) { else if (element instanceof PDOMLinkage) {

View file

@ -39,7 +39,6 @@ import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.TableItem; import org.eclipse.swt.widgets.TableItem;
import org.eclipse.ui.dialogs.PropertyPage; import org.eclipse.ui.dialogs.PropertyPage;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.language.ProjectLanguageConfiguration; import org.eclipse.cdt.core.language.ProjectLanguageConfiguration;
import org.eclipse.cdt.core.model.CoreModel; import org.eclipse.cdt.core.model.CoreModel;
import org.eclipse.cdt.core.model.ILanguage; import org.eclipse.cdt.core.model.ILanguage;
@ -251,7 +250,7 @@ public class FileLanguageMappingPropertyPage extends PropertyPage {
findSelection(configuration, selectedLanguage, combo); findSelection(configuration, selectedLanguage, combo);
fContents.layout(); fContents.layout();
} catch (CoreException e) { } catch (CoreException e) {
CCorePlugin.log(e); CUIPlugin.log(e);
} }
} }
@ -343,7 +342,7 @@ public class FileLanguageMappingPropertyPage extends PropertyPage {
fHasChanges = false; fHasChanges = false;
return true; return true;
} catch (CoreException e) { } catch (CoreException e) {
CCorePlugin.log(e); CUIPlugin.log(e);
return false; return false;
} }
} }

View file

@ -28,7 +28,6 @@ import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.MessageBox; import org.eclipse.swt.widgets.MessageBox;
import org.eclipse.ui.dialogs.PropertyPage; import org.eclipse.ui.dialogs.PropertyPage;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.language.ProjectLanguageConfiguration; import org.eclipse.cdt.core.language.ProjectLanguageConfiguration;
import org.eclipse.cdt.core.language.WorkspaceLanguageConfiguration; import org.eclipse.cdt.core.language.WorkspaceLanguageConfiguration;
import org.eclipse.cdt.core.model.CoreModel; import org.eclipse.cdt.core.model.CoreModel;
@ -37,6 +36,7 @@ import org.eclipse.cdt.core.model.ILanguageMappingChangeEvent;
import org.eclipse.cdt.core.model.ILanguageMappingChangeListener; import org.eclipse.cdt.core.model.ILanguageMappingChangeListener;
import org.eclipse.cdt.core.model.LanguageManager; import org.eclipse.cdt.core.model.LanguageManager;
import org.eclipse.cdt.core.settings.model.ICProjectDescription; import org.eclipse.cdt.core.settings.model.ICProjectDescription;
import org.eclipse.cdt.ui.CUIPlugin;
import org.eclipse.cdt.internal.ui.preferences.PreferencesMessages; import org.eclipse.cdt.internal.ui.preferences.PreferencesMessages;
import org.eclipse.cdt.internal.ui.util.Messages; import org.eclipse.cdt.internal.ui.util.Messages;
@ -130,7 +130,7 @@ public class ProjectLanguageMappingPropertyPage extends PropertyPage {
fMappingWidget.setMappings(fMappings.getContentTypeMappings()); fMappingWidget.setMappings(fMappings.getContentTypeMappings());
} catch (CoreException e) { } catch (CoreException e) {
CCorePlugin.log(e); CUIPlugin.log(e);
} }
} }
@ -151,7 +151,7 @@ public class ProjectLanguageMappingPropertyPage extends PropertyPage {
fInheritedMappingWidget.setMappings(workspaceMappings.getWorkspaceMappings()); fInheritedMappingWidget.setMappings(workspaceMappings.getWorkspaceMappings());
} catch (CoreException e) { } catch (CoreException e) {
CCorePlugin.log(e); CUIPlugin.log(e);
} }
} }
@ -175,7 +175,7 @@ public class ProjectLanguageMappingPropertyPage extends PropertyPage {
fMappingWidget.setChanged(false); fMappingWidget.setChanged(false);
return true; return true;
} catch (CoreException e) { } catch (CoreException e) {
CCorePlugin.log(e); CUIPlugin.log(e);
return false; return false;
} }
} }

View file

@ -48,6 +48,7 @@ import org.eclipse.cdt.core.model.ICProject;
import org.eclipse.cdt.core.model.ISourceRange; import org.eclipse.cdt.core.model.ISourceRange;
import org.eclipse.cdt.core.model.ISourceReference; import org.eclipse.cdt.core.model.ISourceReference;
import org.eclipse.cdt.core.model.ITranslationUnit; import org.eclipse.cdt.core.model.ITranslationUnit;
import org.eclipse.cdt.ui.CUIPlugin;
import org.eclipse.cdt.internal.ui.refactoring.utils.SelectionHelper; import org.eclipse.cdt.internal.ui.refactoring.utils.SelectionHelper;
@ -79,7 +80,7 @@ public abstract class CRefactoring extends Refactoring {
final ISourceRange sourceRange = sourceRef.getSourceRange(); final ISourceRange sourceRange = sourceRef.getSourceRange();
this.region = new Region(sourceRange.getIdStartPos(), sourceRange.getIdLength()); this.region = new Region(sourceRange.getIdStartPos(), sourceRange.getIdLength());
} catch (CModelException e) { } catch (CModelException e) {
CCorePlugin.log(e); CUIPlugin.log(e);
} }
} }
else { else {

View file

@ -39,7 +39,6 @@ import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.IDocumentListener; import org.eclipse.jface.text.IDocumentListener;
import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Display;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.model.BufferChangedEvent; import org.eclipse.cdt.core.model.BufferChangedEvent;
import org.eclipse.cdt.core.model.CModelException; import org.eclipse.cdt.core.model.CModelException;
import org.eclipse.cdt.core.model.IBuffer; import org.eclipse.cdt.core.model.IBuffer;
@ -47,6 +46,7 @@ import org.eclipse.cdt.core.model.IBufferChangedListener;
import org.eclipse.cdt.core.model.IOpenable; import org.eclipse.cdt.core.model.IOpenable;
import org.eclipse.cdt.core.model.ITranslationUnit; import org.eclipse.cdt.core.model.ITranslationUnit;
import org.eclipse.cdt.core.model.IWorkingCopy; import org.eclipse.cdt.core.model.IWorkingCopy;
import org.eclipse.cdt.ui.CUIPlugin;
import org.eclipse.cdt.internal.core.model.IBufferFactory; import org.eclipse.cdt.internal.core.model.IBufferFactory;
@ -424,7 +424,7 @@ public class DocumentAdapter implements IBuffer, IAdaptable, IDocumentListener {
existingDelimiters.add(curr); existingDelimiters.add(curr);
} }
} catch (BadLocationException e) { } catch (BadLocationException e) {
CCorePlugin.log(e); CUIPlugin.log(e);
} }
} }
if (existingDelimiters.isEmpty()) { if (existingDelimiters.isEmpty()) {
@ -449,10 +449,10 @@ public class DocumentAdapter implements IBuffer, IAdaptable, IDocumentListener {
for (int k= 0; k < curr.length(); k++) { for (int k= 0; k < curr.length(); k++) {
buf.append(String.valueOf((int) curr.charAt(k))); buf.append(String.valueOf((int) curr.charAt(k)));
} }
CCorePlugin.log(new Exception(buf.toString())); CUIPlugin.log(new Exception(buf.toString()));
} }
} catch (BadLocationException e) { } catch (BadLocationException e) {
CCorePlugin.log(e); CUIPlugin.log(e);
} }
} }
} }

View file

@ -24,12 +24,12 @@ import org.eclipse.text.edits.MalformedTreeException;
import org.eclipse.text.edits.TextEdit; import org.eclipse.text.edits.TextEdit;
import org.eclipse.text.edits.UndoEdit; import org.eclipse.text.edits.UndoEdit;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.model.CoreModel; import org.eclipse.cdt.core.model.CoreModel;
import org.eclipse.cdt.core.model.IBuffer; import org.eclipse.cdt.core.model.IBuffer;
import org.eclipse.cdt.core.model.ICElement; import org.eclipse.cdt.core.model.ICElement;
import org.eclipse.cdt.core.model.ITranslationUnit; import org.eclipse.cdt.core.model.ITranslationUnit;
import org.eclipse.cdt.core.model.IWorkingCopy; import org.eclipse.cdt.core.model.IWorkingCopy;
import org.eclipse.cdt.ui.CUIPlugin;
/** /**
* UndoCTextFileChange that uses a working copy in order to generate CModel events. * UndoCTextFileChange that uses a working copy in order to generate CModel events.
@ -76,9 +76,9 @@ public class UndoCTextFileChange
wc.commit(false, pm); wc.commit(false, pm);
return new UndoCTextFileChange(getName(), file, redo, null, getSaveMode()); return new UndoCTextFileChange(getName(), file, redo, null, getSaveMode());
} catch (MalformedTreeException e) { } catch (MalformedTreeException e) {
CCorePlugin.log(e); CUIPlugin.log(e);
} catch (BadLocationException e) { } catch (BadLocationException e) {
CCorePlugin.log(e); CUIPlugin.log(e);
} }
finally { finally {
wc.destroy(); wc.destroy();

View file

@ -12,7 +12,6 @@ package org.eclipse.cdt.internal.ui.refactoring.rename;
import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IFile;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.dom.ast.DOMException; import org.eclipse.cdt.core.dom.ast.DOMException;
import org.eclipse.cdt.core.dom.ast.IASTName; import org.eclipse.cdt.core.dom.ast.IASTName;
import org.eclipse.cdt.core.dom.ast.IASTTranslationUnit; import org.eclipse.cdt.core.dom.ast.IASTTranslationUnit;
@ -33,6 +32,7 @@ import org.eclipse.cdt.core.model.CModelException;
import org.eclipse.cdt.core.model.ICElement; import org.eclipse.cdt.core.model.ICElement;
import org.eclipse.cdt.core.model.ISourceRange; import org.eclipse.cdt.core.model.ISourceRange;
import org.eclipse.cdt.core.model.ISourceReference; import org.eclipse.cdt.core.model.ISourceReference;
import org.eclipse.cdt.ui.CUIPlugin;
/** /**
@ -68,7 +68,7 @@ public class CRefactoringArgument {
fOffset= sr.getIdStartPos(); fOffset= sr.getIdStartPos();
fLength= sr.getIdLength(); fLength= sr.getIdLength();
} catch (CModelException e) { } catch (CModelException e) {
CCorePlugin.log(e); CUIPlugin.log(e);
} }
} }
} }

View file

@ -28,6 +28,7 @@ import org.eclipse.ui.ide.IDE;
import org.eclipse.cdt.core.CCorePlugin; import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.model.ICElement; import org.eclipse.cdt.core.model.ICElement;
import org.eclipse.cdt.core.model.IWorkingCopy; import org.eclipse.cdt.core.model.IWorkingCopy;
import org.eclipse.cdt.ui.CUIPlugin;
/** /**
@ -91,7 +92,7 @@ public class CRefactory {
processor.unlockIndex(); processor.unlockIndex();
} }
} catch (CoreException e) { } catch (CoreException e) {
CCorePlugin.log(e); CUIPlugin.log(e);
} catch (InterruptedException e) { } catch (InterruptedException e) {
Thread.currentThread().interrupt(); Thread.currentThread().interrupt();
} }
@ -122,7 +123,7 @@ public class CRefactory {
} catch (InterruptedException e) { } catch (InterruptedException e) {
Thread.currentThread().interrupt(); Thread.currentThread().interrupt();
} catch (CoreException e) { } catch (CoreException e) {
CCorePlugin.log(e); CUIPlugin.log(e);
} }
} }

View file

@ -241,7 +241,7 @@ public class OpenDeclarationsAction extends SelectionParseAction implements ASTR
} }
} }
} catch (RuntimeException e) { } catch (RuntimeException e) {
CCorePlugin.log(e); CUIPlugin.log(e);
} }
} }
@ -270,7 +270,7 @@ public class OpenDeclarationsAction extends SelectionParseAction implements ASTR
} }
return navigateCElements(elems); return navigateCElements(elems);
} catch (CoreException e) { } catch (CoreException e) {
CCorePlugin.log(e); CUIPlugin.log(e);
} }
} }
return false; return false;
@ -492,7 +492,7 @@ public class OpenDeclarationsAction extends SelectionParseAction implements ASTR
try { try {
fSelectedText= document.get(reg.getOffset(), reg.getLength()); fSelectedText= document.get(reg.getOffset(), reg.getLength());
} catch (BadLocationException e) { } catch (BadLocationException e) {
CCorePlugin.log(e); CUIPlugin.log(e);
} }
} }
} }

View file

@ -235,12 +235,12 @@ public class DocCommentOwnerManager {
String name= element.getAttribute(ATTRKEY_OWNER_NAME); String name= element.getAttribute(ATTRKEY_OWNER_NAME);
if(result.put(id, new DocCommentOwner(id, name, multi, single))!=null) { if(result.put(id, new DocCommentOwner(id, name, multi, single))!=null) {
String msg= MessageFormat.format(Messages.DocCommentOwnerManager_DuplicateMapping0, id); String msg= MessageFormat.format(Messages.DocCommentOwnerManager_DuplicateMapping0, id);
CCorePlugin.log(new Status(IStatus.WARNING, CUIPlugin.PLUGIN_ID, msg)); CUIPlugin.log(new Status(IStatus.WARNING, CUIPlugin.PLUGIN_ID, msg));
} }
} }
} }
} catch(CoreException ce) { } catch(CoreException ce) {
CCorePlugin.log(ce); CUIPlugin.log(ce);
} }
} }

View file

@ -32,7 +32,6 @@ import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI; import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.progress.WorkbenchJob; import org.eclipse.ui.progress.WorkbenchJob;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.model.CModelException; import org.eclipse.cdt.core.model.CModelException;
import org.eclipse.cdt.core.model.CoreModel; import org.eclipse.cdt.core.model.CoreModel;
import org.eclipse.cdt.core.model.ICElement; import org.eclipse.cdt.core.model.ICElement;
@ -63,7 +62,7 @@ public class EditorReopener implements IDocCommentOwnershipListener {
reopenEditors(window, parts); reopenEditors(window, parts);
} }
} catch(CoreException ce) { } catch(CoreException ce) {
CCorePlugin.log(ce); CUIPlugin.log(ce);
} }
} }
} }
@ -80,7 +79,7 @@ public class EditorReopener implements IDocCommentOwnershipListener {
reopenEditors(window, parts); reopenEditors(window, parts);
} }
} catch(CoreException ce) { } catch(CoreException ce) {
CCorePlugin.log(ce); CUIPlugin.log(ce);
} }
} }
} }
@ -165,9 +164,9 @@ public class EditorReopener implements IDocCommentOwnershipListener {
if(oldPart == oldActive) if(oldPart == oldActive)
newActive= newPart; newActive= newPart;
} catch(PartInitException pie) { } catch(PartInitException pie) {
CCorePlugin.log(pie); CUIPlugin.log(pie);
} catch(CModelException cme) { } catch(CModelException cme) {
CCorePlugin.log(cme); CUIPlugin.log(cme);
} }
} }

View file

@ -323,14 +323,14 @@ public class TeamProjectIndexExportWizardPage extends WizardDataTransferPage {
} catch (InterruptedException e) { } catch (InterruptedException e) {
return false; return false;
} catch (InvocationTargetException e) { } catch (InvocationTargetException e) {
CCorePlugin.log(CCorePlugin.createStatus(Messages.TeamProjectIndexExportWizardPage_errorExporting, CUIPlugin.log(CCorePlugin.createStatus(Messages.TeamProjectIndexExportWizardPage_errorExporting,
e.getTargetException())); e.getTargetException()));
displayErrorDialog(e.getTargetException()); displayErrorDialog(e.getTargetException());
return false; return false;
} }
if (!status.isOK()) { if (!status.isOK()) {
CCorePlugin.log(status); CUIPlugin.log(status);
ErrorDialog.openError(getContainer().getShell(), ErrorDialog.openError(getContainer().getShell(),
getErrorDialogTitle(), getErrorDialogTitle(),
null, // no special message null, // no special message

View file

@ -33,7 +33,6 @@ import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowPulldownDelegate2; import org.eclipse.ui.IWorkbenchWindowPulldownDelegate2;
import org.eclipse.ui.dialogs.ListSelectionDialog; import org.eclipse.ui.dialogs.ListSelectionDialog;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.model.CoreModel; import org.eclipse.cdt.core.model.CoreModel;
import org.eclipse.cdt.core.model.ICContainer; import org.eclipse.cdt.core.model.ICContainer;
import org.eclipse.cdt.core.model.ICElement; import org.eclipse.cdt.core.model.ICElement;
@ -128,7 +127,7 @@ implements IWorkbenchWindowPulldownDelegate2, IObjectActionDelegate {
ICSourceEntry[] newEntries = CDataUtil.setExcluded(res.getFullPath(), (res instanceof IFolder), exclude, cfg.getSourceEntries()); ICSourceEntry[] newEntries = CDataUtil.setExcluded(res.getFullPath(), (res instanceof IFolder), exclude, cfg.getSourceEntries());
cfg.setSourceEntries(newEntries); cfg.setSourceEntries(newEntries);
} catch (CoreException e) { } catch (CoreException e) {
CCorePlugin.log(e); CUIPlugin.log(e);
} }
} }

View file

@ -20,7 +20,7 @@ import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.dialogs.PropertyPage; import org.eclipse.ui.dialogs.PropertyPage;
import org.eclipse.cdt.core.CCorePlugin; import org.eclipse.cdt.ui.CUIPlugin;
import org.eclipse.cdt.ui.dialogs.DocCommentOwnerBlock; import org.eclipse.cdt.ui.dialogs.DocCommentOwnerBlock;
import org.eclipse.cdt.ui.dialogs.ICOptionContainer; import org.eclipse.cdt.ui.dialogs.ICOptionContainer;
@ -57,7 +57,7 @@ public class Page_head_general extends PropertyPage implements ICOptionContainer
try { try {
fDocBlock.performApply(new NullProgressMonitor()); fDocBlock.performApply(new NullProgressMonitor());
} catch(CoreException ce) { } catch(CoreException ce) {
CCorePlugin.log(ce); CUIPlugin.log(ce);
} }
} }
return true; return true;

View file

@ -31,7 +31,6 @@ import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow; import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI; import org.eclipse.ui.PlatformUI;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.dom.ast.ASTVisitor; import org.eclipse.cdt.core.dom.ast.ASTVisitor;
import org.eclipse.cdt.core.dom.ast.IASTDeclaration; import org.eclipse.cdt.core.dom.ast.IASTDeclaration;
import org.eclipse.cdt.core.dom.ast.IASTNode; import org.eclipse.cdt.core.dom.ast.IASTNode;
@ -248,9 +247,9 @@ public class DefaultMultilineCommentAutoEditStrategy implements IAutoEditStrateg
return ast; return ast;
} }
} catch(CModelException ce) { } catch(CModelException ce) {
CCorePlugin.log(ce); CUIPlugin.log(ce);
} catch(CoreException ce) { } catch(CoreException ce) {
CCorePlugin.log(ce); CUIPlugin.log(ce);
} }
return null; return null;
} }

View file

@ -24,7 +24,6 @@ import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.preference.PreferenceConverter; import org.eclipse.jface.preference.PreferenceConverter;
import org.eclipse.swt.graphics.RGB; import org.eclipse.swt.graphics.RGB;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.ui.CUIPlugin; import org.eclipse.cdt.ui.CUIPlugin;
import org.eclipse.cdt.ui.text.doctools.generic.GenericDocTag; import org.eclipse.cdt.ui.text.doctools.generic.GenericDocTag;
@ -63,7 +62,7 @@ public class DoxygenHelper extends AbstractPreferenceInitializer {
fTags= temp.toArray(new GenericDocTag[temp.size()]); fTags= temp.toArray(new GenericDocTag[temp.size()]);
} catch(IOException ioe) { } catch(IOException ioe) {
fTags= new GenericDocTag[0]; fTags= new GenericDocTag[0];
CCorePlugin.log(ioe); CUIPlugin.log(ioe);
} }
} }
return fTags; return fTags;

View file

@ -11,14 +11,14 @@
package org.eclipse.cdt.ui.wizards.conversion; package org.eclipse.cdt.ui.wizards.conversion;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.ui.CUIPlugin;
import org.eclipse.cdt.ui.wizards.NewCProjectWizard;
import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.IWorkbench; import org.eclipse.ui.IWorkbench;
import org.eclipse.cdt.ui.CUIPlugin;
import org.eclipse.cdt.ui.wizards.NewCProjectWizard;
/** /**
* ConversionWizard This wizard provides a method by which the user can * ConversionWizard This wizard provides a method by which the user can
* change the nature of their projects. This class cannot be implemented. It * change the nature of their projects. This class cannot be implemented. It
@ -120,7 +120,7 @@ public abstract class ConversionWizard
try{ try{
mainPage.doRun(monitor, getProjectID(), getBuildSystemId()); mainPage.doRun(monitor, getProjectID(), getBuildSystemId());
} catch (CoreException ce){ } catch (CoreException ce){
CCorePlugin.log(ce); CUIPlugin.log(ce);
throw ce; throw ce;
} finally{ } finally{
doRunEpilogue(monitor); doRunEpilogue(monitor);

View file

@ -13,10 +13,10 @@ package org.eclipse.cdt.ui.templateengine;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.templateengine.TemplateEngine; import org.eclipse.cdt.core.templateengine.TemplateEngine;
import org.eclipse.cdt.core.templateengine.TemplateInfo; import org.eclipse.cdt.core.templateengine.TemplateInfo;
import org.eclipse.cdt.core.templateengine.TemplateInitializationException; import org.eclipse.cdt.core.templateengine.TemplateInitializationException;
import org.eclipse.cdt.ui.CUIPlugin;
/** /**
* TemplateEngine is implemented as a Singleton. TemplateEngine is responsible for * TemplateEngine is implemented as a Singleton. TemplateEngine is responsible for
@ -47,7 +47,7 @@ public class TemplateEngineUI {
try { try {
templatesList.add(new Template(info)); templatesList.add(new Template(info));
} catch (TemplateInitializationException tie) { } catch (TemplateInitializationException tie) {
CCorePlugin.log(tie); CUIPlugin.log(tie);
} }
} }
return templatesList.toArray(new Template[templatesList.size()]); return templatesList.toArray(new Template[templatesList.size()]);
@ -71,7 +71,7 @@ public class TemplateEngineUI {
try { try {
templatesList.add(new Template(templateInfoArray[i])); templatesList.add(new Template(templateInfoArray[i]));
} catch (TemplateInitializationException tie) { } catch (TemplateInitializationException tie) {
CCorePlugin.log(tie); CUIPlugin.log(tie);
} }
} }
return templatesList.toArray(new Template[templatesList.size()]); return templatesList.toArray(new Template[templatesList.size()]);