mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Externalized string in DiscoveredPathContainerPage.
Fix for 99275: ScannerInfo UI extension point issue.
This commit is contained in:
parent
2e043c84e6
commit
f33fc3358d
3 changed files with 9 additions and 8 deletions
|
@ -270,6 +270,7 @@ ScannerConfigOptionsDialog.error.message=An error occurred while setting the pro
|
|||
DiscoveredScannerConfigurationContainerPage.title=Edit container
|
||||
DiscoveredScannerConfigurationContainerPage.description=Manage discovered scanner configuration
|
||||
DiscoveredScannerConfigurationContainerPage.list.title=Discovered include paths and symbol definitions
|
||||
DiscoveredScannerConfigurationContainerPage.initialization.error.message=Error initializing Discovered paths container
|
||||
|
||||
CopyDiscoveredPathAction.title=Copy
|
||||
CopyDiscoveredPathAction.description=Copy as text
|
||||
|
|
|
@ -68,31 +68,31 @@ public abstract class AbstractDiscoveryOptionsBlock extends AbstractCOptionPage
|
|||
/**
|
||||
* @return Returns the project.
|
||||
*/
|
||||
protected IProject getProject() {
|
||||
public IProject getProject() {
|
||||
return getContainer().getProject();
|
||||
}
|
||||
/**
|
||||
* @return Returns the fPrefs.
|
||||
*/
|
||||
protected Preferences getPrefs() {
|
||||
public Preferences getPrefs() {
|
||||
return fPrefs;
|
||||
}
|
||||
/**
|
||||
* @return Returns the fBuildInfo.
|
||||
*/
|
||||
protected IScannerConfigBuilderInfo2 getBuildInfo() {
|
||||
public IScannerConfigBuilderInfo2 getBuildInfo() {
|
||||
return fBuildInfo;
|
||||
}
|
||||
/**
|
||||
* @return Returns the fInitialized.
|
||||
*/
|
||||
protected boolean isInitialized() {
|
||||
public boolean isInitialized() {
|
||||
return fInitialized;
|
||||
}
|
||||
/**
|
||||
* @param initialized The fInitialized to set.
|
||||
*/
|
||||
protected void setInitialized(boolean initialized) {
|
||||
public void setInitialized(boolean initialized) {
|
||||
fInitialized = initialized;
|
||||
}
|
||||
|
||||
|
@ -214,7 +214,7 @@ public abstract class AbstractDiscoveryOptionsBlock extends AbstractCOptionPage
|
|||
}
|
||||
}
|
||||
|
||||
protected void updateContainer() {
|
||||
public void updateContainer() {
|
||||
getContainer().updateContainer();
|
||||
}
|
||||
|
||||
|
|
|
@ -92,6 +92,7 @@ public class DiscoveredPathContainerPage extends WizardPage implements IPathEntr
|
|||
private static final String CONTAINER_LABEL = PREFIX + ".title"; //$NON-NLS-1$
|
||||
private static final String CONTAINER_DESCRIPTION = PREFIX + ".description"; //$NON-NLS-1$
|
||||
private static final String CONTAINER_LIST_LABEL = PREFIX + ".list.title"; //$NON-NLS-1$
|
||||
private static final String CONTAINER_INITIALIZATION_ERROR = PREFIX +".initialization.error.message"; //$NON-NLS-1$
|
||||
|
||||
private final int IDX_UP = 0;
|
||||
private final int IDX_DOWN = 1;
|
||||
|
@ -161,7 +162,7 @@ public class DiscoveredPathContainerPage extends WizardPage implements IPathEntr
|
|||
try {
|
||||
info = MakeCorePlugin.getDefault().getDiscoveryManager().getDiscoveredInfo(fCProject.getProject());
|
||||
} catch (CoreException e) {
|
||||
setErrorMessage("Error initializing Discovered paths container");
|
||||
setErrorMessage(MakeUIPlugin.getResourceString(CONTAINER_INITIALIZATION_ERROR));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -531,7 +532,6 @@ public class DiscoveredPathContainerPage extends WizardPage implements IPathEntr
|
|||
* @param index
|
||||
*/
|
||||
private void containerPageCustomButtonPressed(TreeListDialogField field, int index) {
|
||||
DiscoveredElement[] containers = null;
|
||||
switch (index) {
|
||||
case IDX_UP:
|
||||
/* move entry up */
|
||||
|
|
Loading…
Add table
Reference in a new issue