1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2011-12-12 12:05:37 -08:00
parent c8a91faa25
commit 7b7b645804
3 changed files with 6 additions and 15 deletions

View file

@ -12,7 +12,6 @@
*******************************************************************************/
package org.eclipse.cdt.core.model;
import java.net.URI;
import org.eclipse.cdt.core.CCProjectNature;
@ -1425,7 +1424,7 @@ public class CoreModel {
}
/**
* forces the cached data of the specified projects to be re-calculated.
* Forces the cached data of the specified projects to be re-calculated.
* if the <code>projects</code> argument is <code>null</code> al projects
* within the workspace are updated
*
@ -1438,14 +1437,14 @@ public class CoreModel {
}
/**
* answers whether the given project is a new-style project, i.e. CConfigurationDataProvider-driven
* Answers whether the given project is a new-style project, i.e. CConfigurationDataProvider-driven
*/
public boolean isNewStyleProject(IProject project){
return descriptionManager.isNewStyleProject(project);
}
/**
* answers whether the given project is a new-style project, i.e. CConfigurationDataProvider-driven
* Answers whether the given project is a new-style project, i.e. CConfigurationDataProvider-driven
*/
public boolean isNewStyleProject(ICProjectDescription des){
return descriptionManager.isNewStyleProject(des);

View file

@ -62,7 +62,6 @@ import org.eclipse.cdt.internal.ui.util.SWTUtil;
* for displaying/editing CDT file type associations
*/
public class CFileTypesPreferenceBlock {
private static final int COL_PATTERN = 0;
private static final int COL_DESCRIPTION = 1;
private static final int COL_STATUS = 2;
@ -167,7 +166,6 @@ public class CFileTypesPreferenceBlock {
public String getText(Object element) {
return getColumnText(element, 0);
}
}
public CFileTypesPreferenceBlock() {
@ -502,8 +500,7 @@ public class CFileTypesPreferenceBlock {
IContentTypeSettings settings;
if (fInput == null) {
settings= assoc.getContentType();
}
else {
} else {
try {
settings= assoc.getContentType().getSettings(new ProjectScope(fInput));
} catch (CoreException e) {

View file

@ -11,8 +11,6 @@
*******************************************************************************/
package org.eclipse.cdt.internal.ui.preferences;
import org.eclipse.cdt.internal.ui.ICHelpContextIds;
import org.eclipse.jface.preference.PreferencePage;
import org.eclipse.swt.SWT;
@ -29,7 +27,6 @@ import org.eclipse.ui.PlatformUI;
* type associations for the workspace
*/
public class CFileTypesPreferencePage extends PreferencePage implements IWorkbenchPreferencePage {
private CFileTypesPreferenceBlock fPrefsBlock;
public CFileTypesPreferencePage() {
@ -72,11 +69,9 @@ public class CFileTypesPreferencePage extends PreferencePage implements IWorkben
*/
@Override
public boolean performOk() {
if (fPrefsBlock.performOk()) {
}
return super.performOk();
}
}