mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 22:22:11 +02:00
Cosmetics.
This commit is contained in:
parent
38ecfea632
commit
cf5d550888
5 changed files with 11 additions and 12 deletions
|
@ -117,6 +117,7 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
|
||||
private final class PCL implements IPreferenceChangeListener {
|
||||
private ICProject fProject;
|
||||
|
||||
public PCL(ICProject prj) {
|
||||
fProject= prj;
|
||||
}
|
||||
|
|
|
@ -770,7 +770,7 @@ public class PDOMFile implements IIndexFragmentFile {
|
|||
}
|
||||
return result;
|
||||
}
|
||||
return new IIndexFragmentFile[0];
|
||||
return IIndexFragmentFile.EMPTY_ARRAY;
|
||||
}
|
||||
|
||||
public static PDOMFile recreateFile(PDOM pdom, final long record) throws CoreException {
|
||||
|
|
|
@ -6,13 +6,11 @@
|
|||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* QNX - Initial API and implementation
|
||||
* Markus Schorn (Wind River Systems)
|
||||
* QNX - Initial API and implementation
|
||||
* Markus Schorn (Wind River Systems)
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.cdt.internal.core.pdom.indexer;
|
||||
|
||||
|
||||
import org.eclipse.cdt.core.dom.IPDOMIndexerTask;
|
||||
import org.eclipse.cdt.core.dom.IPDOMManager;
|
||||
import org.eclipse.cdt.core.model.ITranslationUnit;
|
||||
|
@ -23,7 +21,7 @@ import org.eclipse.cdt.core.model.ITranslationUnit;
|
|||
public class PDOMFastIndexer extends AbstractPDOMIndexer {
|
||||
// Must match extension id
|
||||
public static final String ID = IPDOMManager.ID_FAST_INDEXER;
|
||||
|
||||
|
||||
@Override
|
||||
public String getID() {
|
||||
return ID;
|
||||
|
|
|
@ -6,14 +6,13 @@
|
|||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* Markus Schorn - initial API and implementation
|
||||
* Markus Schorn - initial API and implementation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.internal.ui.actions;
|
||||
|
||||
import org.eclipse.cdt.core.index.IIndexManager;
|
||||
|
||||
public class FreshenIndexAction extends AbstractUpdateIndexAction {
|
||||
|
||||
@Override
|
||||
protected int getUpdateOptions() {
|
||||
return IIndexManager.UPDATE_ALL | IIndexManager.UPDATE_EXTERNAL_FILES_FOR_PROJECT;
|
||||
|
|
|
@ -6,17 +6,18 @@
|
|||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* Markus Schorn - initial API and implementation
|
||||
* Markus Schorn - initial API and implementation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.internal.ui.actions;
|
||||
|
||||
import org.eclipse.cdt.core.index.IIndexManager;
|
||||
|
||||
public class UpdateIndexWithModifiedFilesAction extends AbstractUpdateIndexAction {
|
||||
|
||||
@Override
|
||||
protected int getUpdateOptions() {
|
||||
return IIndexManager.UPDATE_CHECK_TIMESTAMPS | IIndexManager.UPDATE_CHECK_CONFIGURATION |
|
||||
IIndexManager.UPDATE_EXTERNAL_FILES_FOR_PROJECT | IIndexManager.UPDATE_CHECK_CONTENTS_HASH;
|
||||
return IIndexManager.UPDATE_CHECK_TIMESTAMPS |
|
||||
IIndexManager.UPDATE_CHECK_CONFIGURATION |
|
||||
IIndexManager.UPDATE_EXTERNAL_FILES_FOR_PROJECT |
|
||||
IIndexManager.UPDATE_CHECK_CONTENTS_HASH;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue