Lines 64-69
Link Here
|
64 |
import org.openide.util.NbCollections; |
64 |
import org.openide.util.NbCollections; |
65 |
import org.openide.util.SharedClassObject; |
65 |
import org.openide.util.SharedClassObject; |
66 |
import org.openide.util.NbBundle; |
66 |
import org.openide.util.NbBundle; |
|
|
67 |
import org.openide.util.Utilities; |
67 |
import org.openide.util.lookup.InstanceContent; |
68 |
import org.openide.util.lookup.InstanceContent; |
68 |
import org.xml.sax.SAXException; |
69 |
import org.xml.sax.SAXException; |
69 |
|
70 |
|
Lines 679-704
Link Here
|
679 |
if (m.getCodeNameBase ().equals ("org.openide.modules")) { // NOI18N |
680 |
if (m.getCodeNameBase ().equals ("org.openide.modules")) { // NOI18N |
680 |
List<String> arr = new ArrayList<String>(4); |
681 |
List<String> arr = new ArrayList<String>(4); |
681 |
|
682 |
|
682 |
boolean isOS2 = (org.openide.util.Utilities.getOperatingSystem () & org.openide.util.Utilities.OS_OS2) != 0; |
683 |
if (Utilities.isUnix()) { |
683 |
|
684 |
arr.add("org.openide.modules.os.Unix"); // NOI18N |
684 |
if (org.openide.util.Utilities.isUnix ()) { |
685 |
if (!Utilities.isMac()) { |
685 |
arr.add ("org.openide.modules.os.Unix"); // NOI18N |
|
|
686 |
if (!org.openide.util.Utilities.isMac()) { |
687 |
arr.add("org.openide.modules.os.PlainUnix"); // NOI18N |
686 |
arr.add("org.openide.modules.os.PlainUnix"); // NOI18N |
688 |
} |
687 |
} |
689 |
} |
|
|
690 |
|
691 |
if ( |
692 |
org.openide.util.Utilities.isWindows () |
693 |
) { |
694 |
arr.add ("org.openide.modules.os.Windows"); // NOI18N |
695 |
} |
696 |
|
697 |
if (org.openide.util.Utilities.isMac()) { |
698 |
arr.add ("org.openide.modules.os.MacOSX"); // NOI18N |
699 |
} |
688 |
} |
700 |
if (isOS2) { |
689 |
if (Utilities.isWindows()) { |
701 |
arr.add ("org.openide.modules.os.OS2"); // NOI18N |
690 |
arr.add("org.openide.modules.os.Windows"); // NOI18N |
|
|
691 |
} |
692 |
if (Utilities.isMac()) { |
693 |
arr.add("org.openide.modules.os.MacOSX"); // NOI18N |
694 |
} |
695 |
if ((Utilities.getOperatingSystem() & Utilities.OS_OS2) != 0) { |
696 |
arr.add("org.openide.modules.os.OS2"); // NOI18N |
697 |
} |
698 |
if ((Utilities.getOperatingSystem() & Utilities.OS_LINUX) != 0) { |
699 |
arr.add("org.openide.modules.os.Linux"); // NOI18N |
700 |
} |
701 |
if ((Utilities.getOperatingSystem() & Utilities.OS_SOLARIS) != 0) { |
702 |
arr.add("org.openide.modules.os.Solaris"); // NOI18N |
702 |
} |
703 |
} |
703 |
|
704 |
|
704 |
// module format is now 1 |
705 |
// module format is now 1 |