[Title] remove default button in ConnectionExplorer
authorhyunsik.noh <hyunsik.noh@samsung.com>
Thu, 3 Nov 2011 04:30:22 +0000 (13:30 +0900)
committerhyunsik.noh <hyunsik.noh@samsung.com>
Thu, 3 Nov 2011 04:30:22 +0000 (13:30 +0900)
[Type] Feature
[Module] common
[Priority] Minor
[Redmine#] #3135

com.samsung.slp.common.connection/plugin.xml
com.samsung.slp.common.connection/src/com/samsung/slp/common/connection/properties/ConnectionExplorerInfoPropertyPages.java
com.samsung.slp.common.connection/src/com/samsung/slp/common/connection/properties/ConnectionExplorerPermissionPropertyPages.java

index 5248a23..e1476f3 100644 (file)
    <extension
          point="org.eclipse.ui.propertyPages">
       <page
+            adaptable="true"
             class="com.samsung.slp.common.connection.properties.ConnectionExplorerInfoPropertyPages"
             id="com.samsung.slp.common.connection.properties.Info"
             name="Info"
-            nameFilter="*.*">
+            nameFilter="*"
+            objectClass="com.samsung.slp.sdblib.FileListingService$FileEntry">
       </page>
          <page
-            class="com.samsung.slp.common.connection.properties.ConnectionExplorerPermissionPropertyPages"
-            id="com.samsung.slp.common.connection.properties.Permission"
-            name="Permission"
-            nameFilter="*.*">
+               adaptable="true"
+               class="com.samsung.slp.common.connection.properties.ConnectionExplorerPermissionPropertyPages"
+               id="com.samsung.slp.common.connection.properties.Permission"
+               name="Permission"
+               nameFilter="*"
+               objectClass="com.samsung.slp.sdblib.FileListingService$FileEntry">
       </page>
    </extension>
    <extension
index f98ade1..a1dc864 100644 (file)
@@ -7,11 +7,12 @@ import org.eclipse.swt.layout.GridLayout;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
 import org.eclipse.swt.widgets.Label;
+import org.eclipse.ui.IWorkbenchPropertyPage;
 import org.eclipse.ui.dialogs.PropertyPage;
 
 import com.samsung.slp.sdblib.FileListingService.FileEntry;
 
-public class ConnectionExplorerInfoPropertyPages extends PropertyPage {
+public class ConnectionExplorerInfoPropertyPages extends PropertyPage implements IWorkbenchPropertyPage{
 
        
        private static final String NAME_TITLE = "Name:";
@@ -111,6 +112,7 @@ public class ConnectionExplorerInfoPropertyPages extends PropertyPage {
         * @see PreferencePage#createContents(Composite)
         */
        protected Control createContents(Composite parent) {
+               noDefaultAndApplyButton();
                Composite composite = new Composite(parent, SWT.NONE);
                GridLayout layout = new GridLayout();
                composite.setLayout(layout);
index 43ca579..62650b1 100644 (file)
@@ -30,6 +30,7 @@ public class ConnectionExplorerPermissionPropertyPages extends PropertyPage {
         */
        public ConnectionExplorerPermissionPropertyPages() {
                super();
+       
        }
 
        private void addFirstSection(Composite parent) {
@@ -65,6 +66,7 @@ public class ConnectionExplorerPermissionPropertyPages extends PropertyPage {
         * @see PreferencePage#createContents(Composite)
         */
        protected Control createContents(Composite parent) {
+               noDefaultAndApplyButton();
                Composite composite = new Composite(parent, SWT.NONE);
                GridLayout layout = new GridLayout();
                composite.setLayout(layout);
@@ -79,7 +81,7 @@ public class ConnectionExplorerPermissionPropertyPages extends PropertyPage {
                }       
                createTable(composite);
                addFirstSection(composite);
-//             addSeparator(composite);
+               addSeparator(composite);
                return composite;
        }