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

Removed the ReferencedProjects tab from the C/C++ Projects Properties.

See GNATS bug 13758
This commit is contained in:
Judy N. Green 2002-10-31 20:41:08 +00:00
parent b31adfd4de
commit 20ae7ae730
2 changed files with 18 additions and 17 deletions

View file

@ -1,3 +1,19 @@
2002-10-31 Judy N. Green
Removed the ReferenceBlock from the Project Properties display. Eclipse
adds a Project Properties entry to the Project Properties.
This was resulting in confusion since the
C/C++ Project --> Project References (filtered on nature == cnature)
and the
Project References (unfiltered, showing all projects)
Both listed some files in common, but they were not linked in any way
so the user could get into a very awkward state, when selecting or deselecting
as one view woud over ride the other.
src/org/eclipse/cdt/internal/ui/preferences/CProjectPropertyPage.java
2002-10-29 David Inglis 2002-10-29 David Inglis
Refactor ui.internal.CPlugin to ui.CUIPlugin with method to get the new Refactor ui.internal.CPlugin to ui.CUIPlugin with method to get the new

View file

@ -9,7 +9,6 @@ import org.eclipse.cdt.internal.ui.ICHelpContextIds;
import org.eclipse.cdt.internal.ui.dialogs.IStatusChangeListener; import org.eclipse.cdt.internal.ui.dialogs.IStatusChangeListener;
import org.eclipse.cdt.internal.ui.dialogs.StatusTool; import org.eclipse.cdt.internal.ui.dialogs.StatusTool;
import org.eclipse.cdt.ui.CUIPlugin; import org.eclipse.cdt.ui.CUIPlugin;
import org.eclipse.cdt.ui.wizards.ReferenceBlock;
import org.eclipse.cdt.ui.wizards.SettingsBlock; import org.eclipse.cdt.ui.wizards.SettingsBlock;
import org.eclipse.cdt.utils.ui.controls.TabFolderLayout; import org.eclipse.cdt.utils.ui.controls.TabFolderLayout;
import org.eclipse.cdt.utils.ui.swt.IValidation; import org.eclipse.cdt.utils.ui.swt.IValidation;
@ -32,7 +31,6 @@ public class CProjectPropertyPage extends PropertyPage implements IStatusChangeL
private static final String MSG_CLOSEDPROJECT= "CProjectPropertyPage.closedproject"; private static final String MSG_CLOSEDPROJECT= "CProjectPropertyPage.closedproject";
private TabFolder folder; private TabFolder folder;
ReferenceBlock referenceBlock;
SettingsBlock settingsBlock; SettingsBlock settingsBlock;
protected Control createContents(Composite parent) { protected Control createContents(Composite parent) {
@ -53,15 +51,6 @@ public class CProjectPropertyPage extends PropertyPage implements IStatusChangeL
folder = new TabFolder(parent, SWT.NONE); folder = new TabFolder(parent, SWT.NONE);
folder.setLayout(new TabFolderLayout()); folder.setLayout(new TabFolderLayout());
referenceBlock = new ReferenceBlock(this, getProject());
TabItem item = new TabItem(folder, SWT.NONE);
item.setText(referenceBlock.getLabel());
Image img = referenceBlock.getImage();
if (img != null)
item.setImage(img);
item.setData(referenceBlock);
item.setControl(referenceBlock.getControl(folder));
settingsBlock = new SettingsBlock(this, getProject()); settingsBlock = new SettingsBlock(this, getProject());
TabItem item2 = new TabItem(folder, SWT.NONE); TabItem item2 = new TabItem(folder, SWT.NONE);
item2.setText(settingsBlock.getLabel()); item2.setText(settingsBlock.getLabel());
@ -84,9 +73,7 @@ public class CProjectPropertyPage extends PropertyPage implements IStatusChangeL
public void setComplete(boolean complete) { public void setComplete(boolean complete) {
boolean ok = true; boolean ok = true;
if (referenceBlock != null) {
ok = referenceBlock.isValid();
}
if (ok && settingsBlock != null) { if (ok && settingsBlock != null) {
ok = settingsBlock.isValid(); ok = settingsBlock.isValid();
} }
@ -99,8 +86,7 @@ public class CProjectPropertyPage extends PropertyPage implements IStatusChangeL
public boolean performOk() { public boolean performOk() {
if (settingsBlock != null) if (settingsBlock != null)
settingsBlock.doRun(getProject(), null); settingsBlock.doRun(getProject(), null);
if (referenceBlock != null)
referenceBlock.doRun(getProject(), null);
return true; return true;
} }
@ -119,7 +105,6 @@ public class CProjectPropertyPage extends PropertyPage implements IStatusChangeL
super.setVisible(visible); super.setVisible(visible);
if (visible && folder != null) { if (visible && folder != null) {
settingsBlock.setVisible(visible); settingsBlock.setVisible(visible);
referenceBlock.setVisible(visible);
folder.setFocus(); folder.setFocus();
} }
} }