Author: sdzmitrovich
Date: 2009-02-27 12:29:37 -0500 (Fri, 27 Feb 2009)
New Revision: 13892
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3869
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-02-27
17:25:46 UTC (rev 13891)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-02-27
17:29:37 UTC (rev 13892)
@@ -574,27 +574,27 @@
*/
private void cssStyleClassChanged() {
if (currentFile != null && !currentFile.equals(Constants.EMPTY)) {
- if (styleChanged && currentClassStyle != null &&
!currentClassStyle.equals(Constants.EMPTY)) {
- MessageBox messageBox = new MessageBox(getParentShell(), SWT.YES | SWT.NO |
SWT.ICON_QUESTION);
- messageBox.setText(JstUIMessages.CSS_SAVE_DIALOG_TITLE);
- messageBox.setMessage(CSSClassDialog.getMessageForSaveDialog(currentFile));
- int result = messageBox.open();
- if (result == SWT.YES) {
- // update ComboBox element list
- if (classCombo.indexOf(currentClassStyle) == -1) {
- classCombo.add(currentClassStyle);
- }
- saveChanges(false);
- // update content assist proposals
- SimpleContentProposalProvider proposalProvider =
-
(SimpleContentProposalProvider)contentAssistAdapter.getContentProposalProvider();
- proposalProvider.setProposals(classCombo.getItems());
- } else {
- // FOR
https://jira.jboss.org/jira/browse/JBIDE-3542
- // cssModel.init(currentFile);
- // styleComposite.revertPreview();
- }
- }
+// if (styleChanged && currentClassStyle != null &&
!currentClassStyle.equals(Constants.EMPTY)) {
+// MessageBox messageBox = new MessageBox(getParentShell(), SWT.YES | SWT.NO |
SWT.ICON_QUESTION);
+// messageBox.setText(JstUIMessages.CSS_SAVE_DIALOG_TITLE);
+// messageBox.setMessage(CSSClassDialog.getMessageForSaveDialog(currentFile));
+// int result = messageBox.open();
+// if (result == SWT.YES) {
+// // update ComboBox element list
+// if (classCombo.indexOf(currentClassStyle) == -1) {
+// classCombo.add(currentClassStyle);
+// }
+// saveChanges(false);
+// // update content assist proposals
+// SimpleContentProposalProvider proposalProvider =
+//
(SimpleContentProposalProvider)contentAssistAdapter.getContentProposalProvider();
+// proposalProvider.setProposals(classCombo.getItems());
+// } else {
+// // FOR
https://jira.jboss.org/jira/browse/JBIDE-3542
+// // cssModel.init(currentFile);
+// // styleComposite.revertPreview();
+// }
+// }
// update current class style value
currentClassStyle = classCombo.getText().trim();