mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Cosmetics.
This commit is contained in:
parent
4d70fc3fd4
commit
7728d48724
5 changed files with 32 additions and 35 deletions
|
@ -14,6 +14,14 @@
|
|||
*******************************************************************************/
|
||||
package org.eclipse.cdt.internal.core.pdom.db;
|
||||
|
||||
import com.ibm.icu.text.MessageFormat;
|
||||
|
||||
import org.eclipse.cdt.core.CCorePlugin;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.IStatus;
|
||||
import org.eclipse.core.runtime.Status;
|
||||
import org.eclipse.osgi.util.NLS;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
|
@ -24,14 +32,6 @@ import java.nio.channels.ClosedChannelException;
|
|||
import java.nio.channels.FileChannel;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import org.eclipse.cdt.core.CCorePlugin;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.IStatus;
|
||||
import org.eclipse.core.runtime.Status;
|
||||
import org.eclipse.osgi.util.NLS;
|
||||
|
||||
import com.ibm.icu.text.MessageFormat;
|
||||
|
||||
/**
|
||||
* Database encapsulates access to a flat binary format file with a memory-manager-like API for
|
||||
* obtaining and releasing areas of storage (memory).
|
||||
|
@ -374,8 +374,8 @@ public class Database {
|
|||
if (address >= MAX_DB_SIZE) {
|
||||
Object bindings[] = { this.getLocation().getAbsolutePath(), MAX_DB_SIZE };
|
||||
throw new CoreException(new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID,
|
||||
CCorePlugin.STATUS_PDOM_TOO_LARGE, NLS.bind(CCorePlugin
|
||||
.getResourceString("pdom.DatabaseTooLarge"), bindings), null)); //$NON-NLS-1$
|
||||
CCorePlugin.STATUS_PDOM_TOO_LARGE, NLS.bind(
|
||||
CCorePlugin.getResourceString("pdom.DatabaseTooLarge"), bindings), null)); //$NON-NLS-1$
|
||||
}
|
||||
return address;
|
||||
}
|
||||
|
|
|
@ -15,10 +15,6 @@
|
|||
*******************************************************************************/
|
||||
package org.eclipse.cdt.internal.core.pdom.dom.cpp;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.cdt.core.CCorePlugin;
|
||||
import org.eclipse.cdt.core.dom.IPDOMVisitor;
|
||||
import org.eclipse.cdt.core.dom.ast.ASTTypeUtil;
|
||||
|
@ -46,6 +42,10 @@ import org.eclipse.cdt.internal.core.pdom.dom.PDOMName;
|
|||
import org.eclipse.cdt.internal.core.pdom.dom.PDOMNode;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Doug Schaefer
|
||||
*/
|
||||
|
|
|
@ -41,7 +41,6 @@ import org.eclipse.core.runtime.CoreException;
|
|||
* Enumerations in the index.
|
||||
*/
|
||||
class PDOMCPPEnumeration extends PDOMCPPBinding implements IPDOMCPPEnumType, IPDOMMemberOwner {
|
||||
|
||||
private static final int OFFSET_ENUMERATOR_LIST = PDOMBinding.RECORD_SIZE;
|
||||
private static final int OFFSET_MIN_VALUE= OFFSET_ENUMERATOR_LIST + Database.PTR_SIZE;
|
||||
private static final int OFFSET_MAX_VALUE= OFFSET_MIN_VALUE + 8;
|
||||
|
|
|
@ -19,7 +19,6 @@ import org.eclipse.cdt.internal.core.pdom.dom.PDOMNode;
|
|||
import org.eclipse.core.runtime.CoreException;
|
||||
|
||||
class PDOMCPPFriend extends PDOMNode {
|
||||
|
||||
private static final int FRIEND_SPECIFIER = PDOMNode.RECORD_SIZE + 0;
|
||||
private static final int NEXT_FRIEND = PDOMNode.RECORD_SIZE + 4;
|
||||
|
||||
|
@ -79,5 +78,4 @@ class PDOMCPPFriend extends PDOMNode {
|
|||
public void delete() throws CoreException {
|
||||
getDB().free(record);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue