Skip to content

Commit

Permalink
Removes unnecessary method override #72
Browse files Browse the repository at this point in the history
  • Loading branch information
ujhelyiz committed May 25, 2021
1 parent 7b58c40 commit 420cf10
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.incquerylabs.v4md;

import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

Expand All @@ -13,9 +12,7 @@
import com.nomagic.magicdraw.core.options.EnvironmentOptions.EnvironmentChangeListener;
import com.nomagic.magicdraw.properties.BooleanProperty;
import com.nomagic.magicdraw.properties.Property;
import com.nomagic.magicdraw.properties.PropertyManager;
import com.nomagic.magicdraw.properties.PropertyResourceProvider;
import com.nomagic.magicdraw.properties.Style;
import com.nomagic.magicdraw.ui.notification.HRefRunnable;
import com.nomagic.magicdraw.ui.notification.Notification;
import com.nomagic.magicdraw.ui.notification.NotificationManager;
Expand Down Expand Up @@ -52,18 +49,6 @@ public static V4MDSpecificEnvironmentOptionsGroup getCurrentGroup() {
public String getName() {
return V4MD_GROUP_NAME;
}

@Override
public void loadOptions(Style style, boolean paramBoolean) {
// This method is used, when the option is previously persisted
// It was the only place where we could apply the read-only behavior on UI
ArrayList<Property> collection = new ArrayList<>();
for (PropertyManager manager : style.getManagers()) {
manager.getProperty(USE_EMPTY_QUERY_SCOPE_ID).setEditable(true);
collection.addAll(manager.getProperties());
}
this.getOptions().apply(collection);
}

@Override
public void setDefaultValues() {
Expand Down

0 comments on commit 420cf10

Please sign in to comment.