• R/O
  • SSH
  • HTTPS

maskat: Commit


Commit MetaInfo

Révision115 (tree)
l'heure2009-03-03 12:20:16
Auteurkazatoh

Message de Log

マスカットIDE 2.0.0 のソースフォルダに合わせてリソースを移動

Change Summary

Modification

--- maskat-ide/trunk/org.maskat.ui/src/org/maskat/ui/views/properties/AbstractComponentPropertySource.java (nonexistent)
+++ maskat-ide/trunk/org.maskat.ui/src/org/maskat/ui/views/properties/AbstractComponentPropertySource.java (revision 115)
@@ -0,0 +1,41 @@
1+/*
2+ * Copyright 2006 Maskat Project.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+package org.maskat.ui.views.properties;
17+
18+import org.eclipse.ui.views.properties.IPropertySource;
19+
20+public abstract class AbstractComponentPropertySource implements IPropertySource {
21+
22+ public Object getPropertyValue(Object id) {
23+ Object result = doGetPropertyValue(id);
24+ if (result == null)
25+ return "";
26+ return result;
27+ }
28+
29+ abstract public Object doGetPropertyValue(Object id);
30+
31+ abstract public void doSetPropertyValue(Object id, Object value);
32+
33+ public void setPropertyValue(Object id, Object value) {
34+ if ("".equals(value)) {
35+ value = null;
36+ //PropertySource�ɋ󔒕������n���Ȃ��悤��
37+ //xml�� name="" �̂悤��attribute���o�͂��Ȃ��悤��
38+ }
39+ doSetPropertyValue(id, value);
40+ }
41+}
Afficher sur ancien navigateur de dépôt.