Skip to content

Commit a56ca36

Browse files
ChsudeeptaChsudeepta
authored andcommitted
Removed unintended changes
1 parent b772626 commit a56ca36

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

base/uk.ac.stfc.isis.ibex.configserver/src/uk/ac/stfc/isis/ibex/configserver/configuration/GlobalMacro.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,31 @@ public int compareTo(GlobalMacro other) {
8181
return 0;
8282
}
8383

84+
@Override
85+
public boolean equals(Object obj) {
86+
if (this == obj) {
87+
return true;
88+
}
89+
if (obj == null || getClass() != obj.getClass()) {
90+
return false;
91+
}
92+
GlobalMacro other = (GlobalMacro) obj;
93+
if (this.name == null && other.name == null) {
94+
return true;
95+
}
96+
if (this.name == null || other.name == null) {
97+
return false;
98+
}
99+
return this.name.equals(other.name);
100+
}
101+
102+
@Override
103+
public int hashCode() {
104+
return name == null ? 0 : name.hashCode();
105+
}
106+
107+
@Override
108+
public String toString() {
109+
return "GlobalMacro [name=" + name + ", macros=" + macros + "]";
110+
}
84111
}

base/uk.ac.stfc.isis.ibex.ui.configserver/src/uk/ac/stfc/isis/ibex/ui/configserver/editing/ConfigEditorPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public void widgetSelected(SelectionEvent e) {
125125
setConfigToEdit(config);
126126

127127
if (!config.getGlobalmacros().isEmpty()) {
128-
final GlobalMacroOverviewPanel globalMacros = new GlobalMacroOverviewPanel(editorTabs, SWT.NONE, config);
128+
final GlobalMacroOverviewPanel globalMacros = new GlobalMacroOverviewPanel(editorTabs, config);
129129
TabItem globalMacrosTab = new TabItem(editorTabs, SWT.NONE);
130130
globalMacrosTab.setText("Global Macros");
131131
globalMacrosTab.setControl(globalMacros);

base/uk.ac.stfc.isis.ibex.ui.configserver/src/uk/ac/stfc/isis/ibex/ui/configserver/editing/macros/GlobalMacroOverviewPanel.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ public class GlobalMacroOverviewPanel extends Composite {
4545
* Constructor for the Macro panel.
4646
*
4747
* @param parent The parent composite.
48-
* @param style The SWT style.
4948
* @param config The configuration details.
5049
*/
51-
public GlobalMacroOverviewPanel(Composite parent, int style, EditableConfiguration config) {
50+
public GlobalMacroOverviewPanel(Composite parent, EditableConfiguration config) {
5251
super(parent, SWT.NONE);
5352
setLayout(new FillLayout(SWT.HORIZONTAL));
5453
table = new GlobalMacroTable(this, SWT.NONE, SWT.V_SCROLL | SWT.MULTI | SWT.FULL_SELECTION);

0 commit comments

Comments
 (0)