X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=plugins%2Forg.argeo.slc.client.ui.dist%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Fdist%2Feditors%2FGenericBundleEditor.java;h=7429ed0caaa8e9a66defd343ff3573f67bdbfd1d;hb=1e6cf7254fb9f150251594cf0383b3b1c5210517;hp=17e546aaf1a78ff21f4f697b1f0f786f031d303d;hpb=bd06b3358f8c754765fcb222ac3b2273d0d56c37;p=gpl%2Fargeo-slc.git diff --git a/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/editors/GenericBundleEditor.java b/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/editors/GenericBundleEditor.java index 17e546aaf..7429ed0ca 100644 --- a/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/editors/GenericBundleEditor.java +++ b/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/editors/GenericBundleEditor.java @@ -26,14 +26,12 @@ import org.eclipse.ui.PartInitException; import org.eclipse.ui.forms.editor.FormEditor; /** - * - * Exposes a bundle and enable its management - * + * Expose a bundle and enable its management */ public class GenericBundleEditor extends FormEditor { - // private final static Log log = // LogFactory.getLog(GenericNodeEditor.class); + public final static String ID = DistPlugin.ID + ".genericBundleEditor"; // business objects @@ -56,18 +54,13 @@ public class GenericBundleEditor extends FormEditor { try { bundleDetailsPage = new BundleDetailsPage(this, "Main", bundleNode); addPage(bundleDetailsPage); - bundleRawPage = new BundleRawPage(this, "Main", bundleNode); + bundleRawPage = new BundleRawPage(this, "Raw info", bundleNode); addPage(bundleRawPage); } catch (PartInitException e) { throw new ArgeoException("Not able to add an empty page ", e); } } - @Override - public void doSaveAs() { - // unused compulsory method - } - @Override public void doSave(IProgressMonitor monitor) { try { @@ -80,8 +73,14 @@ public class GenericBundleEditor extends FormEditor { } + // unused compulsory methods @Override public boolean isSaveAsAllowed() { - return true; + return false; } -} + + @Override + public void doSaveAs() { + } + +} \ No newline at end of file