Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2011-07-22 13:14:23 -0400
committerAlexander Kurtakov2011-07-22 17:03:05 -0400
commitcdf2921ee422d9564835959cfc781d50cbc68f1e (patch)
treecbc44a71b5a124d9b5b5429484e987c37c2b882b /rpmstubby
parentaf8c65c99833bd00d8532f6198cb17b8e32f92e3 (diff)
downloadorg.eclipse.linuxtools-cdf2921ee422d9564835959cfc781d50cbc68f1e.tar.gz
org.eclipse.linuxtools-cdf2921ee422d9564835959cfc781d50cbc68f1e.tar.xz
org.eclipse.linuxtools-cdf2921ee422d9564835959cfc781d50cbc68f1e.zip
Remove interactive mode it was used only to control whether to show
message dialogs - do this always.
Diffstat (limited to 'rpmstubby')
-rw-r--r--rpmstubby/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/SpecfileWriter.java5
-rw-r--r--rpmstubby/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/preferences/PreferenceConstants.java2
-rw-r--r--rpmstubby/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/preferences/PreferenceInitializer.java1
-rw-r--r--rpmstubby/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/preferences/StubbyPreferencePage.java3
4 files changed, 0 insertions, 11 deletions
diff --git a/rpmstubby/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/SpecfileWriter.java b/rpmstubby/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/SpecfileWriter.java
index f2236dced5..e2718052e7 100644
--- a/rpmstubby/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/SpecfileWriter.java
+++ b/rpmstubby/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/SpecfileWriter.java
@@ -19,7 +19,6 @@ import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.linuxtools.rpmstubby.model.MainPackage;
import org.eclipse.linuxtools.rpmstubby.model.SubPackage;
-import org.eclipse.linuxtools.rpmstubby.preferences.PreferenceConstants;
/**
* Utility class used for writing the generated specfile to a file.
@@ -75,12 +74,8 @@ public class SpecfileWriter {
+ "' feature was not found.\n\n"
+ "Please, add these feature somewhere in your workspace.\n";
}
- if (store.getBoolean(PreferenceConstants.P_STUBBY_INTERACTIVE)) {
MessageDialog.openError(StubbyPlugin.getActiveWorkbenchShell(),
null, message);
- } else {
- System.err.println(message);
- }
} else {
// Write generated files to the main feature project
StubbyGenerator generator = new StubbyGenerator(mainPackage,
diff --git a/rpmstubby/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/preferences/PreferenceConstants.java b/rpmstubby/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/preferences/PreferenceConstants.java
index e1d2f1694c..83e9b45302 100644
--- a/rpmstubby/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/preferences/PreferenceConstants.java
+++ b/rpmstubby/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/preferences/PreferenceConstants.java
@@ -18,12 +18,10 @@ public class PreferenceConstants {
/*
* keys
*/
- public static final String P_STUBBY_INTERACTIVE = "StubbyInteractive";
public static final String P_STUBBY_USE_PDEBUILD_SCRIPT = "StubbyUsePdebuildScript";
/*
* default values
*/
- public static final boolean DP_STUBBY_INTERACTIVE = true;
public static final boolean DP_STUBBY_USE_PDEBUILD_SCRIPT = true;
}
diff --git a/rpmstubby/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/preferences/PreferenceInitializer.java b/rpmstubby/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/preferences/PreferenceInitializer.java
index 2b59a85822..988be36d3b 100644
--- a/rpmstubby/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/preferences/PreferenceInitializer.java
+++ b/rpmstubby/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/preferences/PreferenceInitializer.java
@@ -27,7 +27,6 @@ public class PreferenceInitializer extends AbstractPreferenceInitializer {
@Override
public void initializeDefaultPreferences() {
IPreferenceStore store = StubbyPlugin.getDefault().getPreferenceStore();
- store.setDefault(PreferenceConstants.P_STUBBY_INTERACTIVE, PreferenceConstants.DP_STUBBY_INTERACTIVE);
store.setDefault(PreferenceConstants.P_STUBBY_USE_PDEBUILD_SCRIPT, PreferenceConstants.DP_STUBBY_USE_PDEBUILD_SCRIPT);
}
diff --git a/rpmstubby/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/preferences/StubbyPreferencePage.java b/rpmstubby/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/preferences/StubbyPreferencePage.java
index ccf9f722d9..fa798c066e 100644
--- a/rpmstubby/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/preferences/StubbyPreferencePage.java
+++ b/rpmstubby/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/rpmstubby/preferences/StubbyPreferencePage.java
@@ -38,9 +38,6 @@ public class StubbyPreferencePage extends FieldEditorPreferencePage implements
@Override
public void createFieldEditors() {
addField(new BooleanFieldEditor(
- PreferenceConstants.P_STUBBY_INTERACTIVE,
- "Stubby interactive mode", getFieldEditorParent()));
- addField(new BooleanFieldEditor(
PreferenceConstants.P_STUBBY_USE_PDEBUILD_SCRIPT,
"Use the pdebuild script for building", getFieldEditorParent()));
}

Back to the top